Skip to content

Commit bae978d

Browse files
yoshi-automationfeywind
authored andcommitted
feat(backupdr): update the API
#### backupdr:v1 The following keys were added: - schemas.BackupPlan.properties.maxCustomOnDemandRetentionDays.description - schemas.BackupPlan.properties.maxCustomOnDemandRetentionDays.format - schemas.BackupPlan.properties.maxCustomOnDemandRetentionDays.type - schemas.TriggerBackupRequest.properties.customRetentionDays.description - schemas.TriggerBackupRequest.properties.customRetentionDays.format - schemas.TriggerBackupRequest.properties.customRetentionDays.type The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description
1 parent c13919d commit bae978d

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

discovery/backupdr-v1.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
],
170170
"parameters": {
171171
"extraLocationTypes": {
172-
"description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.",
172+
"description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.",
173173
"location": "query",
174174
"repeated": true,
175175
"type": "string"
@@ -2234,7 +2234,7 @@
22342234
}
22352235
}
22362236
},
2237-
"revision": "20251015",
2237+
"revision": "20251022",
22382238
"rootUrl": "https://backupdr.googleapis.com/",
22392239
"schemas": {
22402240
"AbandonBackupRequest": {
@@ -3182,6 +3182,11 @@
31823182
"format": "int64",
31833183
"type": "string"
31843184
},
3185+
"maxCustomOnDemandRetentionDays": {
3186+
"description": "Optional. Optional field to configure the maximum number of days for which a backup can be retained. This field is only applicable for on-demand backups taken with custom retention value.",
3187+
"format": "int32",
3188+
"type": "integer"
3189+
},
31853190
"name": {
31863191
"description": "Output only. Identifier. The resource name of the `BackupPlan`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`",
31873192
"readOnly": true,
@@ -6385,6 +6390,11 @@
63856390
"description": "Request message for triggering a backup.",
63866391
"id": "TriggerBackupRequest",
63876392
"properties": {
6393+
"customRetentionDays": {
6394+
"description": "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.",
6395+
"format": "int32",
6396+
"type": "integer"
6397+
},
63886398
"requestId": {
63896399
"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).",
63906400
"type": "string"

src/apis/backupdr/v1.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,10 @@ export namespace backupdr_v1 {
735735
* Optional. Applicable only for CloudSQL resource_type. Configures how long logs will be stored. It is defined in “days”. This value should be greater than or equal to minimum enforced log retention duration of the backup vault.
736736
*/
737737
logRetentionDays?: string | null;
738+
/**
739+
* Optional. Optional field to configure the maximum number of days for which a backup can be retained. This field is only applicable for on-demand backups taken with custom retention value.
740+
*/
741+
maxCustomOnDemandRetentionDays?: number | null;
738742
/**
739743
* Output only. Identifier. The resource name of the `BackupPlan`. Format: `projects/{project\}/locations/{location\}/backupPlans/{backup_plan\}`
740744
*/
@@ -2829,6 +2833,10 @@ export namespace backupdr_v1 {
28292833
* Request message for triggering a backup.
28302834
*/
28312835
export interface Schema$TriggerBackupRequest {
2836+
/**
2837+
* 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.
2838+
*/
2839+
customRetentionDays?: number | null;
28322840
/**
28332841
* 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).
28342842
*/
@@ -3230,7 +3238,7 @@ export namespace backupdr_v1 {
32303238
*
32313239
* // Do the magic
32323240
* const res = await backupdr.projects.locations.list({
3233-
* // Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
3241+
* // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
32343242
* extraLocationTypes: 'placeholder-value',
32353243
* // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
32363244
* filter: 'placeholder-value',
@@ -3365,7 +3373,7 @@ export namespace backupdr_v1 {
33653373
export interface Params$Resource$Projects$Locations$List
33663374
extends StandardParameters {
33673375
/**
3368-
* Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.
3376+
* Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
33693377
*/
33703378
extraLocationTypes?: string[];
33713379
/**
@@ -4365,6 +4373,7 @@ export namespace backupdr_v1 {
43654373
* requestBody: {
43664374
* // request body parameters
43674375
* // {
4376+
* // "customRetentionDays": 0,
43684377
* // "requestId": "my_requestId",
43694378
* // "ruleId": "my_ruleId"
43704379
* // }
@@ -4656,6 +4665,7 @@ export namespace backupdr_v1 {
46564665
* // "etag": "my_etag",
46574666
* // "labels": {},
46584667
* // "logRetentionDays": "my_logRetentionDays",
4668+
* // "maxCustomOnDemandRetentionDays": 0,
46594669
* // "name": "my_name",
46604670
* // "resourceType": "my_resourceType",
46614671
* // "revisionId": "my_revisionId",
@@ -4959,6 +4969,7 @@ export namespace backupdr_v1 {
49594969
* // "etag": "my_etag",
49604970
* // "labels": {},
49614971
* // "logRetentionDays": "my_logRetentionDays",
4972+
* // "maxCustomOnDemandRetentionDays": 0,
49624973
* // "name": "my_name",
49634974
* // "resourceType": "my_resourceType",
49644975
* // "revisionId": "my_revisionId",
@@ -5260,6 +5271,7 @@ export namespace backupdr_v1 {
52605271
* // "etag": "my_etag",
52615272
* // "labels": {},
52625273
* // "logRetentionDays": "my_logRetentionDays",
5274+
* // "maxCustomOnDemandRetentionDays": 0,
52635275
* // "name": "my_name",
52645276
* // "resourceType": "my_resourceType",
52655277
* // "revisionId": "my_revisionId",

0 commit comments

Comments
 (0)