Skip to content

Commit 8f62a35

Browse files
feat: Automated regeneration of backupdr v1 client (#24719)
Auto-created at 2025-10-26 09:44:17 +0000 using the toys pull request generator.
1 parent 8144f2d commit 8f62a35

File tree

6 files changed

+309
-2
lines changed

6 files changed

+309
-2
lines changed

api_names_out.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49176,6 +49176,7 @@
4917649176
"/backupdr:v1/Backup/etag": etag
4917749177
"/backupdr:v1/Backup/expireTime": expire_time
4917849178
"/backupdr:v1/Backup/gcpBackupPlanInfo": gcp_backup_plan_info
49179+
"/backupdr:v1/Backup/gcpResource": gcp_resource
4917949180
"/backupdr:v1/Backup/labels": labels
4918049181
"/backupdr:v1/Backup/labels/label": label
4918149182
"/backupdr:v1/Backup/name": name
@@ -49235,6 +49236,10 @@
4923549236
"/backupdr:v1/BackupDrTemplateConfig": backup_dr_template_config
4923649237
"/backupdr:v1/BackupDrTemplateConfig/firstPartyManagementUri": first_party_management_uri
4923749238
"/backupdr:v1/BackupDrTemplateConfig/thirdPartyManagementUri": third_party_management_uri
49239+
"/backupdr:v1/BackupGcpResource": backup_gcp_resource
49240+
"/backupdr:v1/BackupGcpResource/gcpResourcename": gcp_resourcename
49241+
"/backupdr:v1/BackupGcpResource/location": location
49242+
"/backupdr:v1/BackupGcpResource/type": type
4923849243
"/backupdr:v1/BackupLocation": backup_location
4923949244
"/backupdr:v1/BackupLocation/locationId": location_id
4924049245
"/backupdr:v1/BackupLocation/type": type
@@ -49330,6 +49335,8 @@
4933049335
"/backupdr:v1/CloudSqlInstanceBackupProperties": cloud_sql_instance_backup_properties
4933149336
"/backupdr:v1/CloudSqlInstanceBackupProperties/databaseInstalledVersion": database_installed_version
4933249337
"/backupdr:v1/CloudSqlInstanceBackupProperties/finalBackup": final_backup
49338+
"/backupdr:v1/CloudSqlInstanceBackupProperties/instanceCreateTime": instance_create_time
49339+
"/backupdr:v1/CloudSqlInstanceBackupProperties/instanceDeleteTime": instance_delete_time
4933349340
"/backupdr:v1/CloudSqlInstanceBackupProperties/instanceTier": instance_tier
4933449341
"/backupdr:v1/CloudSqlInstanceBackupProperties/sourceInstance": source_instance
4933549342
"/backupdr:v1/CloudSqlInstanceDataSourceProperties": cloud_sql_instance_data_source_properties
@@ -49459,6 +49466,7 @@
4945949466
"/backupdr:v1/DataSourceReference/dataSourceBackupCount": data_source_backup_count
4946049467
"/backupdr:v1/DataSourceReference/dataSourceGcpResourceInfo": data_source_gcp_resource_info
4946149468
"/backupdr:v1/DataSourceReference/name": name
49469+
"/backupdr:v1/DataSourceReference/totalStoredBytes": total_stored_bytes
4946249470
"/backupdr:v1/DirectLocationAssignment": direct_location_assignment
4946349471
"/backupdr:v1/DirectLocationAssignment/location": location
4946449472
"/backupdr:v1/DirectLocationAssignment/location/location": location
@@ -49539,6 +49547,10 @@
4953949547
"/backupdr:v1/FetchBackupPlanAssociationsForResourceTypeResponse/backupPlanAssociations": backup_plan_associations
4954049548
"/backupdr:v1/FetchBackupPlanAssociationsForResourceTypeResponse/backupPlanAssociations/backup_plan_association": backup_plan_association
4954149549
"/backupdr:v1/FetchBackupPlanAssociationsForResourceTypeResponse/nextPageToken": next_page_token
49550+
"/backupdr:v1/FetchBackupsForResourceTypeResponse": fetch_backups_for_resource_type_response
49551+
"/backupdr:v1/FetchBackupsForResourceTypeResponse/backups": backups
49552+
"/backupdr:v1/FetchBackupsForResourceTypeResponse/backups/backup": backup
49553+
"/backupdr:v1/FetchBackupsForResourceTypeResponse/nextPageToken": next_page_token
4954249554
"/backupdr:v1/FetchDataSourceReferencesForResourceTypeResponse": fetch_data_source_references_for_resource_type_response
4954349555
"/backupdr:v1/FetchDataSourceReferencesForResourceTypeResponse/dataSourceReferences": data_source_references
4954449556
"/backupdr:v1/FetchDataSourceReferencesForResourceTypeResponse/dataSourceReferences/data_source_reference": data_source_reference
@@ -49637,6 +49649,10 @@
4963749649
"/backupdr:v1/ListBackupsResponse/nextPageToken": next_page_token
4963849650
"/backupdr:v1/ListBackupsResponse/unreachable": unreachable
4963949651
"/backupdr:v1/ListBackupsResponse/unreachable/unreachable": unreachable
49652+
"/backupdr:v1/ListDataSourceReferencesResponse": list_data_source_references_response
49653+
"/backupdr:v1/ListDataSourceReferencesResponse/dataSourceReferences": data_source_references
49654+
"/backupdr:v1/ListDataSourceReferencesResponse/dataSourceReferences/data_source_reference": data_source_reference
49655+
"/backupdr:v1/ListDataSourceReferencesResponse/nextPageToken": next_page_token
4964049656
"/backupdr:v1/ListDataSourcesResponse": list_data_sources_response
4964149657
"/backupdr:v1/ListDataSourcesResponse/dataSources": data_sources
4964249658
"/backupdr:v1/ListDataSourcesResponse/dataSources/data_source": data_source
@@ -49955,6 +49971,14 @@
4995549971
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.delete": delete_project_location_backup_vault_data_source_backup
4995649972
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.delete/name": name
4995749973
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.delete/requestId": request_id
49974+
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.fetchForResourceType": fetch_project_location_backup_vault_data_source_backup_for_resource_type
49975+
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.fetchForResourceType/filter": filter
49976+
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.fetchForResourceType/orderBy": order_by
49977+
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.fetchForResourceType/pageSize": page_size
49978+
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.fetchForResourceType/pageToken": page_token
49979+
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.fetchForResourceType/parent": parent
49980+
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.fetchForResourceType/resourceType": resource_type
49981+
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.fetchForResourceType/view": view
4995849982
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.get": get_project_location_backup_vault_data_source_backup
4995949983
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.get/name": name
4996049984
"/backupdr:v1/backupdr.projects.locations.backupVaults.dataSources.backups.get/view": view
@@ -50036,6 +50060,12 @@
5003650060
"/backupdr:v1/backupdr.projects.locations.dataSourceReferences.fetchForResourceType/resourceType": resource_type
5003750061
"/backupdr:v1/backupdr.projects.locations.dataSourceReferences.get": get_project_location_data_source_reference
5003850062
"/backupdr:v1/backupdr.projects.locations.dataSourceReferences.get/name": name
50063+
"/backupdr:v1/backupdr.projects.locations.dataSourceReferences.list": list_project_location_data_source_references
50064+
"/backupdr:v1/backupdr.projects.locations.dataSourceReferences.list/filter": filter
50065+
"/backupdr:v1/backupdr.projects.locations.dataSourceReferences.list/orderBy": order_by
50066+
"/backupdr:v1/backupdr.projects.locations.dataSourceReferences.list/pageSize": page_size
50067+
"/backupdr:v1/backupdr.projects.locations.dataSourceReferences.list/pageToken": page_token
50068+
"/backupdr:v1/backupdr.projects.locations.dataSourceReferences.list/parent": parent
5003950069
"/backupdr:v1/backupdr.projects.locations.get": get_project_location
5004050070
"/backupdr:v1/backupdr.projects.locations.get/name": name
5004150071
"/backupdr:v1/backupdr.projects.locations.getTrial": get_project_location_trial

generated/google-apis-backupdr_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-backupdr_v1
22

3+
### v0.43.0 (2025-10-26)
4+
5+
* Regenerated from discovery document revision 20251015
6+
37
### v0.42.0 (2025-10-12)
48

59
* Regenerated from discovery document revision 20251001

generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/classes.rb

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,11 @@ class Backup
580580
# @return [Google::Apis::BackupdrV1::GcpBackupPlanInfo]
581581
attr_accessor :gcp_backup_plan_info
582582

583+
# Minimum details to identify a Google Cloud resource for a backup.
584+
# Corresponds to the JSON property `gcpResource`
585+
# @return [Google::Apis::BackupdrV1::BackupGcpResource]
586+
attr_accessor :gcp_resource
587+
583588
# Optional. Resource labels to represent user provided metadata. No labels
584589
# currently defined.
585590
# Corresponds to the JSON property `labels`
@@ -647,6 +652,7 @@ def update!(**args)
647652
@etag = args[:etag] if args.key?(:etag)
648653
@expire_time = args[:expire_time] if args.key?(:expire_time)
649654
@gcp_backup_plan_info = args[:gcp_backup_plan_info] if args.key?(:gcp_backup_plan_info)
655+
@gcp_resource = args[:gcp_resource] if args.key?(:gcp_resource)
650656
@labels = args[:labels] if args.key?(:labels)
651657
@name = args[:name] if args.key?(:name)
652658
@resource_size_bytes = args[:resource_size_bytes] if args.key?(:resource_size_bytes)
@@ -1025,6 +1031,38 @@ def update!(**args)
10251031
end
10261032
end
10271033

1034+
# Minimum details to identify a Google Cloud resource for a backup.
1035+
class BackupGcpResource
1036+
include Google::Apis::Core::Hashable
1037+
1038+
# Name of the Google Cloud resource.
1039+
# Corresponds to the JSON property `gcpResourcename`
1040+
# @return [String]
1041+
attr_accessor :gcp_resourcename
1042+
1043+
# Location of the resource: //"global"/"unspecified".
1044+
# Corresponds to the JSON property `location`
1045+
# @return [String]
1046+
attr_accessor :location
1047+
1048+
# Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.
1049+
# com/Instance.
1050+
# Corresponds to the JSON property `type`
1051+
# @return [String]
1052+
attr_accessor :type
1053+
1054+
def initialize(**args)
1055+
update!(**args)
1056+
end
1057+
1058+
# Update properties of this object
1059+
def update!(**args)
1060+
@gcp_resourcename = args[:gcp_resourcename] if args.key?(:gcp_resourcename)
1061+
@location = args[:location] if args.key?(:location)
1062+
@type = args[:type] if args.key?(:type)
1063+
end
1064+
end
1065+
10281066
# BackupLocation represents a cloud location where a backup can be stored.
10291067
class BackupLocation
10301068
include Google::Apis::Core::Hashable
@@ -1703,6 +1741,16 @@ class CloudSqlInstanceBackupProperties
17031741
attr_accessor :final_backup
17041742
alias_method :final_backup?, :final_backup
17051743

1744+
# Output only. The instance creation timestamp.
1745+
# Corresponds to the JSON property `instanceCreateTime`
1746+
# @return [String]
1747+
attr_accessor :instance_create_time
1748+
1749+
# Output only. The instance delete timestamp.
1750+
# Corresponds to the JSON property `instanceDeleteTime`
1751+
# @return [String]
1752+
attr_accessor :instance_delete_time
1753+
17061754
# Output only. The tier (or machine type) for this instance. Example: `db-custom-
17071755
# 1-3840`
17081756
# Corresponds to the JSON property `instanceTier`
@@ -1723,6 +1771,8 @@ def initialize(**args)
17231771
def update!(**args)
17241772
@database_installed_version = args[:database_installed_version] if args.key?(:database_installed_version)
17251773
@final_backup = args[:final_backup] if args.key?(:final_backup)
1774+
@instance_create_time = args[:instance_create_time] if args.key?(:instance_create_time)
1775+
@instance_delete_time = args[:instance_delete_time] if args.key?(:instance_delete_time)
17261776
@instance_tier = args[:instance_tier] if args.key?(:instance_tier)
17271777
@source_instance = args[:source_instance] if args.key?(:source_instance)
17281778
end
@@ -2584,6 +2634,12 @@ class DataSourceReference
25842634
# @return [String]
25852635
attr_accessor :name
25862636

2637+
# Output only. Total size of the storage used by all backup resources for the
2638+
# referenced datasource.
2639+
# Corresponds to the JSON property `totalStoredBytes`
2640+
# @return [Fixnum]
2641+
attr_accessor :total_stored_bytes
2642+
25872643
def initialize(**args)
25882644
update!(**args)
25892645
end
@@ -2597,6 +2653,7 @@ def update!(**args)
25972653
@data_source_backup_count = args[:data_source_backup_count] if args.key?(:data_source_backup_count)
25982654
@data_source_gcp_resource_info = args[:data_source_gcp_resource_info] if args.key?(:data_source_gcp_resource_info)
25992655
@name = args[:name] if args.key?(:name)
2656+
@total_stored_bytes = args[:total_stored_bytes] if args.key?(:total_stored_bytes)
26002657
end
26012658
end
26022659

@@ -3109,6 +3166,32 @@ def update!(**args)
31093166
end
31103167
end
31113168

3169+
# Response for the FetchBackupsForResourceType method.
3170+
class FetchBackupsForResourceTypeResponse
3171+
include Google::Apis::Core::Hashable
3172+
3173+
# The Backups from the specified parent.
3174+
# Corresponds to the JSON property `backups`
3175+
# @return [Array<Google::Apis::BackupdrV1::Backup>]
3176+
attr_accessor :backups
3177+
3178+
# A token, which can be sent as `page_token` to retrieve the next page. If this
3179+
# field is omitted, there are no subsequent pages.
3180+
# Corresponds to the JSON property `nextPageToken`
3181+
# @return [String]
3182+
attr_accessor :next_page_token
3183+
3184+
def initialize(**args)
3185+
update!(**args)
3186+
end
3187+
3188+
# Update properties of this object
3189+
def update!(**args)
3190+
@backups = args[:backups] if args.key?(:backups)
3191+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3192+
end
3193+
end
3194+
31123195
# Response for the FetchDataSourceReferencesForResourceType method.
31133196
class FetchDataSourceReferencesForResourceTypeResponse
31143197
include Google::Apis::Core::Hashable
@@ -3760,6 +3843,32 @@ def update!(**args)
37603843
end
37613844
end
37623845

3846+
# Response for the ListDataSourceReferences method.
3847+
class ListDataSourceReferencesResponse
3848+
include Google::Apis::Core::Hashable
3849+
3850+
# The DataSourceReferences from the specified parent.
3851+
# Corresponds to the JSON property `dataSourceReferences`
3852+
# @return [Array<Google::Apis::BackupdrV1::DataSourceReference>]
3853+
attr_accessor :data_source_references
3854+
3855+
# A token, which can be sent as `page_token` to retrieve the next page. If this
3856+
# field is omitted, there are no subsequent pages.
3857+
# Corresponds to the JSON property `nextPageToken`
3858+
# @return [String]
3859+
attr_accessor :next_page_token
3860+
3861+
def initialize(**args)
3862+
update!(**args)
3863+
end
3864+
3865+
# Update properties of this object
3866+
def update!(**args)
3867+
@data_source_references = args[:data_source_references] if args.key?(:data_source_references)
3868+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3869+
end
3870+
end
3871+
37633872
# Response message for listing DataSources.
37643873
class ListDataSourcesResponse
37653874
include Google::Apis::Core::Hashable

generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module BackupdrV1
1818
# Version of the google-apis-backupdr_v1 gem
19-
GEM_VERSION = "0.42.0"
19+
GEM_VERSION = "0.43.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20251001"
25+
REVISION = "20251015"
2626
end
2727
end
2828
end

generated/google-apis-backupdr_v1/lib/google/apis/backupdr_v1/representations.rb

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
142142
include Google::Apis::Core::JsonObjectSupport
143143
end
144144

145+
class BackupGcpResource
146+
class Representation < Google::Apis::Core::JsonRepresentation; end
147+
148+
include Google::Apis::Core::JsonObjectSupport
149+
end
150+
145151
class BackupLocation
146152
class Representation < Google::Apis::Core::JsonRepresentation; end
147153

@@ -370,6 +376,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
370376
include Google::Apis::Core::JsonObjectSupport
371377
end
372378

379+
class FetchBackupsForResourceTypeResponse
380+
class Representation < Google::Apis::Core::JsonRepresentation; end
381+
382+
include Google::Apis::Core::JsonObjectSupport
383+
end
384+
373385
class FetchDataSourceReferencesForResourceTypeResponse
374386
class Representation < Google::Apis::Core::JsonRepresentation; end
375387

@@ -484,6 +496,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
484496
include Google::Apis::Core::JsonObjectSupport
485497
end
486498

499+
class ListDataSourceReferencesResponse
500+
class Representation < Google::Apis::Core::JsonRepresentation; end
501+
502+
include Google::Apis::Core::JsonObjectSupport
503+
end
504+
487505
class ListDataSourcesResponse
488506
class Representation < Google::Apis::Core::JsonRepresentation; end
489507

@@ -882,6 +900,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
882900
property :expire_time, as: 'expireTime'
883901
property :gcp_backup_plan_info, as: 'gcpBackupPlanInfo', class: Google::Apis::BackupdrV1::GcpBackupPlanInfo, decorator: Google::Apis::BackupdrV1::GcpBackupPlanInfo::Representation
884902

903+
property :gcp_resource, as: 'gcpResource', class: Google::Apis::BackupdrV1::BackupGcpResource, decorator: Google::Apis::BackupdrV1::BackupGcpResource::Representation
904+
885905
hash :labels, as: 'labels'
886906
property :name, as: 'name'
887907
property :resource_size_bytes, :numeric_string => true, as: 'resourceSizeBytes'
@@ -988,6 +1008,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
9881008
end
9891009
end
9901010

1011+
class BackupGcpResource
1012+
# @private
1013+
class Representation < Google::Apis::Core::JsonRepresentation
1014+
property :gcp_resourcename, as: 'gcpResourcename'
1015+
property :location, as: 'location'
1016+
property :type, as: 'type'
1017+
end
1018+
end
1019+
9911020
class BackupLocation
9921021
# @private
9931022
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1129,6 +1158,8 @@ class CloudSqlInstanceBackupProperties
11291158
class Representation < Google::Apis::Core::JsonRepresentation
11301159
property :database_installed_version, as: 'databaseInstalledVersion'
11311160
property :final_backup, as: 'finalBackup'
1161+
property :instance_create_time, as: 'instanceCreateTime'
1162+
property :instance_delete_time, as: 'instanceDeleteTime'
11321163
property :instance_tier, as: 'instanceTier'
11331164
property :source_instance, as: 'sourceInstance'
11341165
end
@@ -1352,6 +1383,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
13521383
property :data_source_gcp_resource_info, as: 'dataSourceGcpResourceInfo', class: Google::Apis::BackupdrV1::DataSourceGcpResourceInfo, decorator: Google::Apis::BackupdrV1::DataSourceGcpResourceInfo::Representation
13531384

13541385
property :name, as: 'name'
1386+
property :total_stored_bytes, :numeric_string => true, as: 'totalStoredBytes'
13551387
end
13561388
end
13571389

@@ -1479,6 +1511,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
14791511
end
14801512
end
14811513

1514+
class FetchBackupsForResourceTypeResponse
1515+
# @private
1516+
class Representation < Google::Apis::Core::JsonRepresentation
1517+
collection :backups, as: 'backups', class: Google::Apis::BackupdrV1::Backup, decorator: Google::Apis::BackupdrV1::Backup::Representation
1518+
1519+
property :next_page_token, as: 'nextPageToken'
1520+
end
1521+
end
1522+
14821523
class FetchDataSourceReferencesForResourceTypeResponse
14831524
# @private
14841525
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1655,6 +1696,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
16551696
end
16561697
end
16571698

1699+
class ListDataSourceReferencesResponse
1700+
# @private
1701+
class Representation < Google::Apis::Core::JsonRepresentation
1702+
collection :data_source_references, as: 'dataSourceReferences', class: Google::Apis::BackupdrV1::DataSourceReference, decorator: Google::Apis::BackupdrV1::DataSourceReference::Representation
1703+
1704+
property :next_page_token, as: 'nextPageToken'
1705+
end
1706+
end
1707+
16581708
class ListDataSourcesResponse
16591709
# @private
16601710
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)