Skip to content

Commit

Permalink
feat: add Database.SourceInfo and Database.source_info (information a…
Browse files Browse the repository at this point in the history
…bout database provenance, specifically for restored databases) (#2176)

- [ ] Regenerate this pull request now.

feat: add Database.CmekConfig and Database.cmek_config (information about CMEK enablement)
feat: allow specifying an encryption_config when restoring a database
feat: add Database.delete_time (the time a database was deleted, if it ever was)
feat: add Database.previous_id (if a database was deleted, what ID it was using beforehand)
docs: fix assorted capitalization issues with the word "ID"
docs: clarify restore details

PiperOrigin-RevId: 671737474

Source-Link: https://togithub.com/googleapis/googleapis/commit/070b0fd6acdfe19674f2d1e058659a30e5298988

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/9921c6823793498b29e253f4ef41d12336125e54
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTkyMWM2ODIzNzkzNDk4YjI5ZTI1M2Y0ZWY0MWQxMjMzNjEyNWU1NCJ9

BEGIN_NESTED_COMMIT
docs: Clarify maximum retention of backups (max 14 weeks)
docs: Remove note about backups running at a specific time
docs: Standardize on the capitalization of "ID"

PiperOrigin-RevId: 668987834

Source-Link: https://togithub.com/googleapis/googleapis/commit/296afd14291cc14dc4bc5408479ba62bf11ed7c0

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/f4db04004c64d52f87a9926e70185957713e8b5b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjRkYjA0MDA0YzY0ZDUyZjg3YTk5MjZlNzAxODU5NTc3MTNlOGI1YiJ9
END_NESTED_COMMIT
  • Loading branch information
gcf-owl-bot[bot] authored Dec 5, 2024
1 parent 1339dc2 commit 2779896
Show file tree
Hide file tree
Showing 21 changed files with 2,796 additions and 140 deletions.
150 changes: 150 additions & 0 deletions dev/protos/admin_v1.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"options": {
"syntax": "proto3"
},
"nested": {
"google": {
"nested": {
Expand Down Expand Up @@ -145,6 +148,13 @@
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"deleteTime": {
"type": "google.protobuf.Timestamp",
"id": 7,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"locationId": {
"type": "string",
"id": 9
Expand Down Expand Up @@ -190,6 +200,27 @@
"type": "DeleteProtectionState",
"id": 22
},
"cmekConfig": {
"type": "CmekConfig",
"id": 23,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
},
"previousId": {
"type": "string",
"id": 25,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"sourceInfo": {
"type": "SourceInfo",
"id": 26,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
},
"etag": {
"type": "string",
"id": 99
Expand Down Expand Up @@ -231,6 +262,104 @@
"DELETE_PROTECTION_DISABLED": 1,
"DELETE_PROTECTION_ENABLED": 2
}
},
"CmekConfig": {
"fields": {
"kmsKeyName": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
},
"activeKeyVersion": {
"rule": "repeated",
"type": "string",
"id": 2,
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
}
}
},
"SourceInfo": {
"oneofs": {
"source": {
"oneof": [
"backup"
]
}
},
"fields": {
"backup": {
"type": "BackupSource",
"id": 1
},
"operation": {
"type": "string",
"id": 3,
"options": {
"(google.api.resource_reference).type": "firestore.googleapis.com/Operation"
}
}
},
"nested": {
"BackupSource": {
"fields": {
"backup": {
"type": "string",
"id": 1,
"options": {
"(google.api.resource_reference).type": "firestore.googleapis.com/Backup"
}
}
}
}
}
},
"EncryptionConfig": {
"oneofs": {
"encryptionType": {
"oneof": [
"googleDefaultEncryption",
"useSourceEncryption",
"customerManagedEncryption"
]
}
},
"fields": {
"googleDefaultEncryption": {
"type": "GoogleDefaultEncryptionOptions",
"id": 1
},
"useSourceEncryption": {
"type": "SourceEncryptionOptions",
"id": 2
},
"customerManagedEncryption": {
"type": "CustomerManagedEncryptionOptions",
"id": 3
}
},
"nested": {
"GoogleDefaultEncryptionOptions": {
"fields": {}
},
"SourceEncryptionOptions": {
"fields": {}
},
"CustomerManagedEncryptionOptions": {
"fields": {
"kmsKeyName": {
"type": "string",
"id": 1,
"options": {
"(google.api.field_behavior)": "REQUIRED"
}
}
}
}
}
}
}
},
Expand Down Expand Up @@ -1445,6 +1574,13 @@
"(google.api.field_behavior)": "REQUIRED",
"(google.api.resource_reference).type": "firestore.googleapis.com/Backup"
}
},
"encryptionConfig": {
"type": "Database.EncryptionConfig",
"id": 9,
"options": {
"(google.api.field_behavior)": "OPTIONAL"
}
}
}
},
Expand Down Expand Up @@ -2176,6 +2312,20 @@
"common": {
"type": "CommonLanguageSettings",
"id": 1
},
"experimentalFeatures": {
"type": "ExperimentalFeatures",
"id": 2
}
},
"nested": {
"ExperimentalFeatures": {
"fields": {
"restAsyncIoEnabled": {
"type": "bool",
"id": 1
}
}
}
}
},
Expand Down
Loading

0 comments on commit 2779896

Please sign in to comment.