Skip to content

Commit adc09cb

Browse files
yoshi-automationquirogas
authored andcommitted
feat(backupdr): update the API
#### backupdr:v1 The following keys were added: - schemas.Backup.properties.backupRetentionInheritance.description - schemas.Backup.properties.backupRetentionInheritance.enum - schemas.Backup.properties.backupRetentionInheritance.enumDescriptions - schemas.Backup.properties.backupRetentionInheritance.readOnly - schemas.Backup.properties.backupRetentionInheritance.type - schemas.Backup.properties.kmsKeyVersions.description - schemas.Backup.properties.kmsKeyVersions.items.type - schemas.Backup.properties.kmsKeyVersions.readOnly - schemas.Backup.properties.kmsKeyVersions.type - schemas.BackupVault.properties.backupRetentionInheritance.description - schemas.BackupVault.properties.backupRetentionInheritance.enum - schemas.BackupVault.properties.backupRetentionInheritance.enumDescriptions - schemas.BackupVault.properties.backupRetentionInheritance.type - schemas.BackupVault.properties.encryptionConfig.$ref - schemas.BackupVault.properties.encryptionConfig.description - schemas.EncryptionConfig.description - schemas.EncryptionConfig.id - schemas.EncryptionConfig.properties.kmsKeyName.description - schemas.EncryptionConfig.properties.kmsKeyName.type - schemas.EncryptionConfig.type - schemas.RestoreBackupRequest.properties.clearOverridesFieldMask.description - schemas.RestoreBackupRequest.properties.clearOverridesFieldMask.format - schemas.RestoreBackupRequest.properties.clearOverridesFieldMask.type - schemas.TriggerBackupRequest.properties.labels.additionalProperties.type - schemas.TriggerBackupRequest.properties.labels.description - schemas.TriggerBackupRequest.properties.labels.type
1 parent 9f4a2be commit adc09cb

File tree

2 files changed

+110
-1
lines changed

2 files changed

+110
-1
lines changed

discovery/backupdr-v1.json

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2234,7 +2234,7 @@
22342234
}
22352235
}
22362236
},
2237-
"revision": "20251029",
2237+
"revision": "20251105",
22382238
"rootUrl": "https://backupdr.googleapis.com/",
22392239
"schemas": {
22402240
"AbandonBackupRequest": {
@@ -2646,6 +2646,21 @@
26462646
},
26472647
"type": "array"
26482648
},
2649+
"backupRetentionInheritance": {
2650+
"description": "Output only. Setting for how the enforced retention end time is inherited. This value is copied from this backup's BackupVault.",
2651+
"enum": [
2652+
"BACKUP_RETENTION_INHERITANCE_UNSPECIFIED",
2653+
"INHERIT_VAULT_RETENTION",
2654+
"MATCH_BACKUP_EXPIRE_TIME"
2655+
],
2656+
"enumDescriptions": [
2657+
"Inheritance behavior not set. This will default to `INHERIT_VAULT_RETENTION`.",
2658+
"The enforced retention end time of a backup will be inherited from the backup vault's `backup_minimum_enforced_retention_duration` field. This is the default behavior.",
2659+
"The enforced retention end time of a backup will always match the expire time of the backup. If this is set, the backup's enforced retention end time will be set to match the expire time during creation of the backup. When updating, the ERET and expire time must be updated together and have the same value. Invalid update requests will be rejected by the server."
2660+
],
2661+
"readOnly": true,
2662+
"type": "string"
2663+
},
26492664
"backupType": {
26502665
"description": "Output only. Type of the backup, unspecified, scheduled or ondemand.",
26512666
"enum": [
@@ -2719,6 +2734,14 @@
27192734
"description": "Output only. Unique identifier of the GCP resource that is being backed up.",
27202735
"readOnly": true
27212736
},
2737+
"kmsKeyVersions": {
2738+
"description": "Optional. Output only. The list of KMS key versions used to encrypt the backup.",
2739+
"items": {
2740+
"type": "string"
2741+
},
2742+
"readOnly": true,
2743+
"type": "array"
2744+
},
27222745
"labels": {
27232746
"additionalProperties": {
27242747
"type": "string"
@@ -3435,6 +3458,20 @@
34353458
"format": "google-duration",
34363459
"type": "string"
34373460
},
3461+
"backupRetentionInheritance": {
3462+
"description": "Optional. Setting for how a backup's enforced retention end time is inherited.",
3463+
"enum": [
3464+
"BACKUP_RETENTION_INHERITANCE_UNSPECIFIED",
3465+
"INHERIT_VAULT_RETENTION",
3466+
"MATCH_BACKUP_EXPIRE_TIME"
3467+
],
3468+
"enumDescriptions": [
3469+
"Inheritance behavior not set. This will default to `INHERIT_VAULT_RETENTION`.",
3470+
"The enforced retention end time of a backup will be inherited from the backup vault's `backup_minimum_enforced_retention_duration` field. This is the default behavior.",
3471+
"The enforced retention end time of a backup will always match the expire time of the backup. If this is set, the backup's enforced retention end time will be set to match the expire time during creation of the backup. When updating, the ERET and expire time must be updated together and have the same value. Invalid update requests will be rejected by the server."
3472+
],
3473+
"type": "string"
3474+
},
34383475
"createTime": {
34393476
"description": "Output only. The time when the instance was created.",
34403477
"format": "google-datetime",
@@ -3455,6 +3492,10 @@
34553492
"format": "google-datetime",
34563493
"type": "string"
34573494
},
3495+
"encryptionConfig": {
3496+
"$ref": "EncryptionConfig",
3497+
"description": "Optional. The encryption config of the backup vault."
3498+
},
34583499
"etag": {
34593500
"description": "Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.",
34603501
"type": "string"
@@ -4566,6 +4607,17 @@
45664607
"properties": {},
45674608
"type": "object"
45684609
},
4610+
"EncryptionConfig": {
4611+
"description": "Message describing the EncryptionConfig of backup vault. This determines how data within the vault is encrypted at rest.",
4612+
"id": "EncryptionConfig",
4613+
"properties": {
4614+
"kmsKeyName": {
4615+
"description": "Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}",
4616+
"type": "string"
4617+
}
4618+
},
4619+
"type": "object"
4620+
},
45694621
"Entry": {
45704622
"description": "A key/value pair to be used for storing metadata.",
45714623
"id": "Entry",
@@ -5879,6 +5931,11 @@
58795931
"description": "Request message for restoring from a Backup.",
58805932
"id": "RestoreBackupRequest",
58815933
"properties": {
5934+
"clearOverridesFieldMask": {
5935+
"description": "Optional. A field mask used to clear server-side default values for fields within the `instance_properties` oneof. When a field in this mask is cleared, the server will not apply its default logic (like inheriting a value from the source) for that field. The most common current use case is clearing default encryption keys. Examples of field mask paths: - Compute Instance Disks: `compute_instance_restore_properties.disks.*.disk_encryption_key` - Single Disk: `disk_restore_properties.disk_encryption_key`",
5936+
"format": "google-fieldmask",
5937+
"type": "string"
5938+
},
58825939
"computeInstanceRestoreProperties": {
58835940
"$ref": "ComputeInstanceRestoreProperties",
58845941
"description": "Compute Engine instance properties to be overridden during restore."
@@ -6402,6 +6459,13 @@
64026459
"format": "int32",
64036460
"type": "integer"
64046461
},
6462+
"labels": {
6463+
"additionalProperties": {
6464+
"type": "string"
6465+
},
6466+
"description": "Optional. Labels to be applied on the backup.",
6467+
"type": "object"
6468+
},
64056469
"requestId": {
64066470
"description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
64076471
"type": "string"

src/apis/backupdr/v1.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@ export namespace backupdr_v1 {
379379
* Optional. The list of BackupLocks taken by the accessor Backup Appliance.
380380
*/
381381
backupApplianceLocks?: Schema$BackupLock[];
382+
/**
383+
* Output only. Setting for how the enforced retention end time is inherited. This value is copied from this backup's BackupVault.
384+
*/
385+
backupRetentionInheritance?: string | null;
382386
/**
383387
* Output only. Type of the backup, unspecified, scheduled or ondemand.
384388
*/
@@ -427,6 +431,10 @@ export namespace backupdr_v1 {
427431
* Output only. Unique identifier of the GCP resource that is being backed up.
428432
*/
429433
gcpResource?: Schema$BackupGcpResource;
434+
/**
435+
* Optional. Output only. The list of KMS key versions used to encrypt the backup.
436+
*/
437+
kmsKeyVersions?: string[] | null;
430438
/**
431439
* Optional. Resource labels to represent user provided metadata. No labels currently defined.
432440
*/
@@ -883,6 +891,10 @@ export namespace backupdr_v1 {
883891
* Required. The default and minimum enforced retention for each backup within the backup vault. The enforced retention for each backup can be extended. Note: Longer minimum enforced retention period impacts potential storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.
884892
*/
885893
backupMinimumEnforcedRetentionDuration?: string | null;
894+
/**
895+
* Optional. Setting for how a backup's enforced retention end time is inherited.
896+
*/
897+
backupRetentionInheritance?: string | null;
886898
/**
887899
* Output only. The time when the instance was created.
888900
*/
@@ -899,6 +911,10 @@ export namespace backupdr_v1 {
899911
* Optional. Time after which the BackupVault resource is locked.
900912
*/
901913
effectiveTime?: string | null;
914+
/**
915+
* Optional. The encryption config of the backup vault.
916+
*/
917+
encryptionConfig?: Schema$EncryptionConfig;
902918
/**
903919
* Optional. Server specified ETag for the backup vault resource to prevent simultaneous updates from overwiting each other.
904920
*/
@@ -1676,6 +1692,15 @@ export namespace backupdr_v1 {
16761692
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
16771693
*/
16781694
export interface Schema$Empty {}
1695+
/**
1696+
* Message describing the EncryptionConfig of backup vault. This determines how data within the vault is encrypted at rest.
1697+
*/
1698+
export interface Schema$EncryptionConfig {
1699+
/**
1700+
* Optional. The Cloud KMS key name to encrypt backups in this backup vault. Must be in the same region as the vault. Some workload backups like compute disk backups may use their inherited source key instead. Format: projects/{project\}/locations/{location\}/keyRings/{ring\}/cryptoKeys/{key\}
1701+
*/
1702+
kmsKeyName?: string | null;
1703+
}
16791704
/**
16801705
* A key/value pair to be used for storing metadata.
16811706
*/
@@ -2553,6 +2578,10 @@ export namespace backupdr_v1 {
25532578
* Request message for restoring from a Backup.
25542579
*/
25552580
export interface Schema$RestoreBackupRequest {
2581+
/**
2582+
* Optional. A field mask used to clear server-side default values for fields within the `instance_properties` oneof. When a field in this mask is cleared, the server will not apply its default logic (like inheriting a value from the source) for that field. The most common current use case is clearing default encryption keys. Examples of field mask paths: - Compute Instance Disks: `compute_instance_restore_properties.disks.*.disk_encryption_key` - Single Disk: `disk_restore_properties.disk_encryption_key`
2583+
*/
2584+
clearOverridesFieldMask?: string | null;
25562585
/**
25572586
* Compute Engine instance properties to be overridden during restore.
25582587
*/
@@ -2841,6 +2870,10 @@ export namespace backupdr_v1 {
28412870
* Optional. The duration for which backup data will be kept, while taking an on-demand backup with custom retention. It is defined in "days". It is mutually exclusive with rule_id. This field is required if rule_id is not provided.
28422871
*/
28432872
customRetentionDays?: number | null;
2873+
/**
2874+
* Optional. Labels to be applied on the backup.
2875+
*/
2876+
labels?: {[key: string]: string} | null;
28442877
/**
28452878
* Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
28462879
*/
@@ -4378,6 +4411,7 @@ export namespace backupdr_v1 {
43784411
* // request body parameters
43794412
* // {
43804413
* // "customRetentionDays": 0,
4414+
* // "labels": {},
43814415
* // "requestId": "my_requestId",
43824416
* // "ruleId": "my_ruleId"
43834417
* // }
@@ -5850,10 +5884,12 @@ export namespace backupdr_v1 {
58505884
* // "annotations": {},
58515885
* // "backupCount": "my_backupCount",
58525886
* // "backupMinimumEnforcedRetentionDuration": "my_backupMinimumEnforcedRetentionDuration",
5887+
* // "backupRetentionInheritance": "my_backupRetentionInheritance",
58535888
* // "createTime": "my_createTime",
58545889
* // "deletable": false,
58555890
* // "description": "my_description",
58565891
* // "effectiveTime": "my_effectiveTime",
5892+
* // "encryptionConfig": {},
58575893
* // "etag": "my_etag",
58585894
* // "labels": {},
58595895
* // "name": "my_name",
@@ -6320,10 +6356,12 @@ export namespace backupdr_v1 {
63206356
* // "annotations": {},
63216357
* // "backupCount": "my_backupCount",
63226358
* // "backupMinimumEnforcedRetentionDuration": "my_backupMinimumEnforcedRetentionDuration",
6359+
* // "backupRetentionInheritance": "my_backupRetentionInheritance",
63236360
* // "createTime": "my_createTime",
63246361
* // "deletable": false,
63256362
* // "description": "my_description",
63266363
* // "effectiveTime": "my_effectiveTime",
6364+
* // "encryptionConfig": {},
63276365
* // "etag": "my_etag",
63286366
* // "labels": {},
63296367
* // "name": "my_name",
@@ -6630,10 +6668,12 @@ export namespace backupdr_v1 {
66306668
* // "annotations": {},
66316669
* // "backupCount": "my_backupCount",
66326670
* // "backupMinimumEnforcedRetentionDuration": "my_backupMinimumEnforcedRetentionDuration",
6671+
* // "backupRetentionInheritance": "my_backupRetentionInheritance",
66336672
* // "createTime": "my_createTime",
66346673
* // "deletable": false,
66356674
* // "description": "my_description",
66366675
* // "effectiveTime": "my_effectiveTime",
6676+
* // "encryptionConfig": {},
66376677
* // "etag": "my_etag",
66386678
* // "labels": {},
66396679
* // "name": "my_name",
@@ -8948,6 +8988,7 @@ export namespace backupdr_v1 {
89488988
* // "alloyDbBackupProperties": {},
89498989
* // "backupApplianceBackupProperties": {},
89508990
* // "backupApplianceLocks": [],
8991+
* // "backupRetentionInheritance": "my_backupRetentionInheritance",
89518992
* // "backupType": "my_backupType",
89528993
* // "cloudSqlInstanceBackupProperties": {},
89538994
* // "computeInstanceBackupProperties": {},
@@ -8960,6 +9001,7 @@ export namespace backupdr_v1 {
89609001
* // "expireTime": "my_expireTime",
89619002
* // "gcpBackupPlanInfo": {},
89629003
* // "gcpResource": {},
9004+
* // "kmsKeyVersions": [],
89639005
* // "labels": {},
89649006
* // "name": "my_name",
89659007
* // "resourceSizeBytes": "my_resourceSizeBytes",
@@ -9262,6 +9304,7 @@ export namespace backupdr_v1 {
92629304
* // "alloyDbBackupProperties": {},
92639305
* // "backupApplianceBackupProperties": {},
92649306
* // "backupApplianceLocks": [],
9307+
* // "backupRetentionInheritance": "my_backupRetentionInheritance",
92659308
* // "backupType": "my_backupType",
92669309
* // "cloudSqlInstanceBackupProperties": {},
92679310
* // "computeInstanceBackupProperties": {},
@@ -9274,6 +9317,7 @@ export namespace backupdr_v1 {
92749317
* // "expireTime": "my_expireTime",
92759318
* // "gcpBackupPlanInfo": {},
92769319
* // "gcpResource": {},
9320+
* // "kmsKeyVersions": [],
92779321
* // "labels": {},
92789322
* // "name": "my_name",
92799323
* // "resourceSizeBytes": "my_resourceSizeBytes",
@@ -9429,6 +9473,7 @@ export namespace backupdr_v1 {
94299473
* requestBody: {
94309474
* // request body parameters
94319475
* // {
9476+
* // "clearOverridesFieldMask": "my_clearOverridesFieldMask",
94329477
* // "computeInstanceRestoreProperties": {},
94339478
* // "computeInstanceTargetEnvironment": {},
94349479
* // "diskRestoreProperties": {},

0 commit comments

Comments
 (0)