Skip to content

Commit 83cdfc6

Browse files
yoshi-automationmiguelvelezsa
authored andcommitted
feat(backupdr): update the API
#### backupdr:v1 The following keys were added: - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.description - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.flatPath - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.httpMethod - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.id - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameterOrder - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.filter.description - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.filter.location - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.filter.type - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.orderBy.description - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.orderBy.location - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.orderBy.type - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.pageSize.description - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.pageSize.format - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.pageSize.location - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.pageSize.type - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.pageToken.description - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.pageToken.location - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.pageToken.type - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.parent.description - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.parent.location - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.parent.pattern - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.parent.required - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.parent.type - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.resourceType.description - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.resourceType.location - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.resourceType.type - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.view.description - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.view.enum - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.view.enumDescriptions - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.view.location - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.parameters.view.type - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.path - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.response.$ref - resources.projects.resources.locations.resources.backupVaults.resources.dataSources.resources.backups.methods.fetchForResourceType.scopes - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.description - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.flatPath - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.httpMethod - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.id - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameterOrder - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.filter.description - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.filter.location - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.filter.type - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.orderBy.description - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.orderBy.location - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.orderBy.type - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.pageSize.format - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.pageSize.location - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.pageSize.type - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.pageToken.description - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.pageToken.location - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.pageToken.type - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.parent.description - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.parent.location - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.parent.pattern - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.parent.required - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.parameters.parent.type - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.path - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.response.$ref - resources.projects.resources.locations.resources.dataSourceReferences.methods.list.scopes - schemas.Backup.properties.gcpResource.$ref - schemas.Backup.properties.gcpResource.description - schemas.Backup.properties.gcpResource.readOnly - schemas.BackupGcpResource.description - schemas.BackupGcpResource.id - schemas.BackupGcpResource.properties.gcpResourcename.description - schemas.BackupGcpResource.properties.gcpResourcename.type - schemas.BackupGcpResource.properties.location.description - schemas.BackupGcpResource.properties.location.type - schemas.BackupGcpResource.properties.type.description - schemas.BackupGcpResource.properties.type.type - schemas.BackupGcpResource.type - schemas.CloudSqlInstanceBackupProperties.properties.instanceCreateTime.description - schemas.CloudSqlInstanceBackupProperties.properties.instanceCreateTime.format - schemas.CloudSqlInstanceBackupProperties.properties.instanceCreateTime.readOnly - schemas.CloudSqlInstanceBackupProperties.properties.instanceCreateTime.type - schemas.CloudSqlInstanceBackupProperties.properties.instanceDeleteTime.description - schemas.CloudSqlInstanceBackupProperties.properties.instanceDeleteTime.format - schemas.CloudSqlInstanceBackupProperties.properties.instanceDeleteTime.readOnly - schemas.CloudSqlInstanceBackupProperties.properties.instanceDeleteTime.type - schemas.DataSourceReference.properties.totalStoredBytes.description - schemas.DataSourceReference.properties.totalStoredBytes.format - schemas.DataSourceReference.properties.totalStoredBytes.readOnly - schemas.DataSourceReference.properties.totalStoredBytes.type - schemas.FetchBackupsForResourceTypeResponse.description - schemas.FetchBackupsForResourceTypeResponse.id - schemas.FetchBackupsForResourceTypeResponse.properties.backups.description - schemas.FetchBackupsForResourceTypeResponse.properties.backups.items.$ref - schemas.FetchBackupsForResourceTypeResponse.properties.backups.type - schemas.FetchBackupsForResourceTypeResponse.properties.nextPageToken.description - schemas.FetchBackupsForResourceTypeResponse.properties.nextPageToken.type - schemas.FetchBackupsForResourceTypeResponse.type - schemas.ListDataSourceReferencesResponse.description - schemas.ListDataSourceReferencesResponse.id - schemas.ListDataSourceReferencesResponse.properties.dataSourceReferences.description - schemas.ListDataSourceReferencesResponse.properties.dataSourceReferences.items.$ref - schemas.ListDataSourceReferencesResponse.properties.dataSourceReferences.type - schemas.ListDataSourceReferencesResponse.properties.nextPageToken.description - schemas.ListDataSourceReferencesResponse.properties.nextPageToken.type - schemas.ListDataSourceReferencesResponse.type
1 parent 1af14f1 commit 83cdfc6

File tree

2 files changed

+629
-2
lines changed

2 files changed

+629
-2
lines changed

discovery/backupdr-v1.json

Lines changed: 191 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,6 +1363,72 @@
13631363
"https://www.googleapis.com/auth/cloud-platform"
13641364
]
13651365
},
1366+
"fetchForResourceType": {
1367+
"description": "Fetch Backups for a given resource type.",
1368+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups:fetchForResourceType",
1369+
"httpMethod": "GET",
1370+
"id": "backupdr.projects.locations.backupVaults.dataSources.backups.fetchForResourceType",
1371+
"parameterOrder": [
1372+
"parent"
1373+
],
1374+
"parameters": {
1375+
"filter": {
1376+
"description": "Optional. A filter expression that filters the results fetched in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. Supported fields:",
1377+
"location": "query",
1378+
"type": "string"
1379+
},
1380+
"orderBy": {
1381+
"description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.",
1382+
"location": "query",
1383+
"type": "string"
1384+
},
1385+
"pageSize": {
1386+
"description": "Optional. The maximum number of Backups to return. The service may return fewer than this value. If unspecified, at most 50 Backups will be returned. The maximum value is 100; values above 100 will be coerced to 100.",
1387+
"format": "int32",
1388+
"location": "query",
1389+
"type": "integer"
1390+
},
1391+
"pageToken": {
1392+
"description": "Optional. A page token, received from a previous call of `FetchBackupsForResourceType`. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchBackupsForResourceType` must match the call that provided the page token.",
1393+
"location": "query",
1394+
"type": "string"
1395+
},
1396+
"parent": {
1397+
"description": "Required. Datasources are the parent resource for the backups. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId}",
1398+
"location": "path",
1399+
"pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$",
1400+
"required": true,
1401+
"type": "string"
1402+
},
1403+
"resourceType": {
1404+
"description": "Required. The type of the GCP resource. Ex: sqladmin.googleapis.com/Instance",
1405+
"location": "query",
1406+
"type": "string"
1407+
},
1408+
"view": {
1409+
"description": "Optional. This parameter is used to specify the view of the backup. If not specified, the default view is BASIC.",
1410+
"enum": [
1411+
"BACKUP_VIEW_UNSPECIFIED",
1412+
"BACKUP_VIEW_BASIC",
1413+
"BACKUP_VIEW_FULL"
1414+
],
1415+
"enumDescriptions": [
1416+
"If the value is not set, the default 'FULL' view is used.",
1417+
"Includes basic data about the Backup, but not the full contents.",
1418+
"Includes all data about the Backup. This is the default value (for both ListBackups and GetBackup)."
1419+
],
1420+
"location": "query",
1421+
"type": "string"
1422+
}
1423+
},
1424+
"path": "v1/{+parent}/backups:fetchForResourceType",
1425+
"response": {
1426+
"$ref": "FetchBackupsForResourceTypeResponse"
1427+
},
1428+
"scopes": [
1429+
"https://www.googleapis.com/auth/cloud-platform"
1430+
]
1431+
},
13661432
"get": {
13671433
"description": "Gets details of a Backup.",
13681434
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups/{backupsId}",
@@ -1614,6 +1680,52 @@
16141680
"scopes": [
16151681
"https://www.googleapis.com/auth/cloud-platform"
16161682
]
1683+
},
1684+
"list": {
1685+
"description": "Lists DataSourceReferences for a given project and location.",
1686+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataSourceReferences",
1687+
"httpMethod": "GET",
1688+
"id": "backupdr.projects.locations.dataSourceReferences.list",
1689+
"parameterOrder": [
1690+
"parent"
1691+
],
1692+
"parameters": {
1693+
"filter": {
1694+
"description": "Optional. A filter expression that filters the results listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The following field and operator combinations are supported: * data_source_gcp_resource_info.gcp_resourcename with `=`, `!=` * data_source_gcp_resource_info.type with `=`, `!=`",
1695+
"location": "query",
1696+
"type": "string"
1697+
},
1698+
"orderBy": {
1699+
"description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * data_source * data_source_gcp_resource_info.gcp_resourcename",
1700+
"location": "query",
1701+
"type": "string"
1702+
},
1703+
"pageSize": {
1704+
"description": "Optional. The maximum number of DataSourceReferences to return. The service may return fewer than this value. If unspecified, at most 50 DataSourceReferences will be returned. The maximum value is 100; values above 100 will be coerced to 100.",
1705+
"format": "int32",
1706+
"location": "query",
1707+
"type": "integer"
1708+
},
1709+
"pageToken": {
1710+
"description": "Optional. A page token, received from a previous `ListDataSourceReferences` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDataSourceReferences` must match the call that provided the page token.",
1711+
"location": "query",
1712+
"type": "string"
1713+
},
1714+
"parent": {
1715+
"description": "Required. The parent resource name. Format: projects/{project}/locations/{location}",
1716+
"location": "path",
1717+
"pattern": "^projects/[^/]+/locations/[^/]+$",
1718+
"required": true,
1719+
"type": "string"
1720+
}
1721+
},
1722+
"path": "v1/{+parent}/dataSourceReferences",
1723+
"response": {
1724+
"$ref": "ListDataSourceReferencesResponse"
1725+
},
1726+
"scopes": [
1727+
"https://www.googleapis.com/auth/cloud-platform"
1728+
]
16171729
}
16181730
}
16191731
},
@@ -2122,7 +2234,7 @@
21222234
}
21232235
}
21242236
},
2125-
"revision": "20251001",
2237+
"revision": "20251015",
21262238
"rootUrl": "https://backupdr.googleapis.com/",
21272239
"schemas": {
21282240
"AbandonBackupRequest": {
@@ -2602,6 +2714,11 @@
26022714
"description": "Output only. Configuration for a Google Cloud resource.",
26032715
"readOnly": true
26042716
},
2717+
"gcpResource": {
2718+
"$ref": "BackupGcpResource",
2719+
"description": "Output only. Unique identifier of the GCP resource that is being backed up.",
2720+
"readOnly": true
2721+
},
26052722
"labels": {
26062723
"additionalProperties": {
26072724
"type": "string"
@@ -2950,6 +3067,25 @@
29503067
},
29513068
"type": "object"
29523069
},
3070+
"BackupGcpResource": {
3071+
"description": "Minimum details to identify a Google Cloud resource for a backup.",
3072+
"id": "BackupGcpResource",
3073+
"properties": {
3074+
"gcpResourcename": {
3075+
"description": "Name of the Google Cloud resource.",
3076+
"type": "string"
3077+
},
3078+
"location": {
3079+
"description": "Location of the resource: //\"global\"/\"unspecified\".",
3080+
"type": "string"
3081+
},
3082+
"type": {
3083+
"description": "Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.",
3084+
"type": "string"
3085+
}
3086+
},
3087+
"type": "object"
3088+
},
29533089
"BackupLocation": {
29543090
"description": "BackupLocation represents a cloud location where a backup can be stored.",
29553091
"id": "BackupLocation",
@@ -3448,6 +3584,18 @@
34483584
"readOnly": true,
34493585
"type": "boolean"
34503586
},
3587+
"instanceCreateTime": {
3588+
"description": "Output only. The instance creation timestamp.",
3589+
"format": "google-datetime",
3590+
"readOnly": true,
3591+
"type": "string"
3592+
},
3593+
"instanceDeleteTime": {
3594+
"description": "Output only. The instance delete timestamp.",
3595+
"format": "google-datetime",
3596+
"readOnly": true,
3597+
"type": "string"
3598+
},
34513599
"instanceTier": {
34523600
"description": "Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`",
34533601
"readOnly": true,
@@ -4132,6 +4280,12 @@
41324280
"name": {
41334281
"description": "Identifier. The resource name of the DataSourceReference. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}",
41344282
"type": "string"
4283+
},
4284+
"totalStoredBytes": {
4285+
"description": "Output only. Total size of the storage used by all backup resources for the referenced datasource.",
4286+
"format": "int64",
4287+
"readOnly": true,
4288+
"type": "string"
41354289
}
41364290
},
41374291
"type": "object"
@@ -4501,6 +4655,24 @@
45014655
},
45024656
"type": "object"
45034657
},
4658+
"FetchBackupsForResourceTypeResponse": {
4659+
"description": "Response for the FetchBackupsForResourceType method.",
4660+
"id": "FetchBackupsForResourceTypeResponse",
4661+
"properties": {
4662+
"backups": {
4663+
"description": "The Backups from the specified parent.",
4664+
"items": {
4665+
"$ref": "Backup"
4666+
},
4667+
"type": "array"
4668+
},
4669+
"nextPageToken": {
4670+
"description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
4671+
"type": "string"
4672+
}
4673+
},
4674+
"type": "object"
4675+
},
45044676
"FetchDataSourceReferencesForResourceTypeResponse": {
45054677
"description": "Response for the FetchDataSourceReferencesForResourceType method.",
45064678
"id": "FetchDataSourceReferencesForResourceTypeResponse",
@@ -4938,6 +5110,24 @@
49385110
},
49395111
"type": "object"
49405112
},
5113+
"ListDataSourceReferencesResponse": {
5114+
"description": "Response for the ListDataSourceReferences method.",
5115+
"id": "ListDataSourceReferencesResponse",
5116+
"properties": {
5117+
"dataSourceReferences": {
5118+
"description": "The DataSourceReferences from the specified parent.",
5119+
"items": {
5120+
"$ref": "DataSourceReference"
5121+
},
5122+
"type": "array"
5123+
},
5124+
"nextPageToken": {
5125+
"description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
5126+
"type": "string"
5127+
}
5128+
},
5129+
"type": "object"
5130+
},
49415131
"ListDataSourcesResponse": {
49425132
"description": "Response message for listing DataSources.",
49435133
"id": "ListDataSourcesResponse",

0 commit comments

Comments
 (0)