Skip to content

Commit 9fe4325

Browse files
feat: Automated regeneration of backupdr v1 client (googleapis#24448)
Auto-created at 2025-09-28 10:44:54 +0000 using the toys pull request generator.
1 parent 292e443 commit 9fe4325

File tree

6 files changed

+126
-4
lines changed

6 files changed

+126
-4
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48551,6 +48551,13 @@
4855148551
"/backupdr:v1/AllocationAffinity/key": key
4855248552
"/backupdr:v1/AllocationAffinity/values": values
4855348553
"/backupdr:v1/AllocationAffinity/values/value": value
48554+
"/backupdr:v1/AlloyDBClusterDataSourceProperties": alloy_db_cluster_data_source_properties
48555+
"/backupdr:v1/AlloyDBClusterDataSourceProperties/name": name
48556+
"/backupdr:v1/AlloyDbClusterBackupProperties": alloy_db_cluster_backup_properties
48557+
"/backupdr:v1/AlloyDbClusterBackupProperties/chainId": chain_id
48558+
"/backupdr:v1/AlloyDbClusterBackupProperties/databaseVersion": database_version
48559+
"/backupdr:v1/AlloyDbClusterBackupProperties/description": description
48560+
"/backupdr:v1/AlloyDbClusterBackupProperties/storedBytes": stored_bytes
4855448561
"/backupdr:v1/AssetLocation": asset_location
4855548562
"/backupdr:v1/AssetLocation/ccfeRmsPath": ccfe_rms_path
4855648563
"/backupdr:v1/AssetLocation/expected": expected
@@ -48590,6 +48597,7 @@
4859048597
"/backupdr:v1/AuditLogConfig/exemptedMembers/exempted_member": exempted_member
4859148598
"/backupdr:v1/AuditLogConfig/logType": log_type
4859248599
"/backupdr:v1/Backup": backup
48600+
"/backupdr:v1/Backup/alloyDbBackupProperties": alloy_db_backup_properties
4859348601
"/backupdr:v1/Backup/backupApplianceBackupProperties": backup_appliance_backup_properties
4859448602
"/backupdr:v1/Backup/backupApplianceLocks": backup_appliance_locks
4859548603
"/backupdr:v1/Backup/backupApplianceLocks/backup_appliance_lock": backup_appliance_lock
@@ -48867,6 +48875,7 @@
4886748875
"/backupdr:v1/DataSourceBackupConfigInfo/lastBackupState": last_backup_state
4886848876
"/backupdr:v1/DataSourceBackupConfigInfo/lastSuccessfulBackupConsistencyTime": last_successful_backup_consistency_time
4886948877
"/backupdr:v1/DataSourceGcpResource": data_source_gcp_resource
48878+
"/backupdr:v1/DataSourceGcpResource/alloyDbClusterDatasourceProperties": alloy_db_cluster_datasource_properties
4887048879
"/backupdr:v1/DataSourceGcpResource/cloudSqlInstanceDatasourceProperties": cloud_sql_instance_datasource_properties
4887148880
"/backupdr:v1/DataSourceGcpResource/computeInstanceDatasourceProperties": compute_instance_datasource_properties
4887248881
"/backupdr:v1/DataSourceGcpResource/diskDatasourceProperties": disk_datasource_properties

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.41.0 (2025-09-28)
4+
5+
* Regenerated from discovery document revision 20250916
6+
37
### v0.40.0 (2025-09-21)
48

59
* Regenerated from discovery document revision 20250910

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

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,66 @@ def update!(**args)
246246
end
247247
end
248248

249+
# AlloyDBClusterDataSourceProperties represents the properties of a AlloyDB
250+
# cluster resource that are stored in the DataSource. .
251+
class AlloyDbClusterDataSourceProperties
252+
include Google::Apis::Core::Hashable
253+
254+
# Output only. Name of the AlloyDB cluster backed up by the datasource.
255+
# Corresponds to the JSON property `name`
256+
# @return [String]
257+
attr_accessor :name
258+
259+
def initialize(**args)
260+
update!(**args)
261+
end
262+
263+
# Update properties of this object
264+
def update!(**args)
265+
@name = args[:name] if args.key?(:name)
266+
end
267+
end
268+
269+
# AlloyDbClusterBackupProperties represents AlloyDB cluster backup properties. .
270+
class AlloyDbClusterBackupProperties
271+
include Google::Apis::Core::Hashable
272+
273+
# Output only. The chain id of this backup. Backups belonging to the same chain
274+
# are sharing the same chain id. This property is calculated and maintained by
275+
# BackupDR.
276+
# Corresponds to the JSON property `chainId`
277+
# @return [String]
278+
attr_accessor :chain_id
279+
280+
# Output only. The PostgreSQL major version of the AlloyDB cluster when the
281+
# backup was taken.
282+
# Corresponds to the JSON property `databaseVersion`
283+
# @return [String]
284+
attr_accessor :database_version
285+
286+
# An optional text description for the backup.
287+
# Corresponds to the JSON property `description`
288+
# @return [String]
289+
attr_accessor :description
290+
291+
# Output only. Storage usage of this particular backup
292+
# Corresponds to the JSON property `storedBytes`
293+
# @return [Fixnum]
294+
attr_accessor :stored_bytes
295+
296+
def initialize(**args)
297+
update!(**args)
298+
end
299+
300+
# Update properties of this object
301+
def update!(**args)
302+
@chain_id = args[:chain_id] if args.key?(:chain_id)
303+
@database_version = args[:database_version] if args.key?(:database_version)
304+
@description = args[:description] if args.key?(:description)
305+
@stored_bytes = args[:stored_bytes] if args.key?(:stored_bytes)
306+
end
307+
end
308+
249309
# An instance-attached disk resource.
250310
class AttachedDisk
251311
include Google::Apis::Core::Hashable
@@ -446,6 +506,11 @@ def update!(**args)
446506
class Backup
447507
include Google::Apis::Core::Hashable
448508

509+
# AlloyDbClusterBackupProperties represents AlloyDB cluster backup properties. .
510+
# Corresponds to the JSON property `alloyDbBackupProperties`
511+
# @return [Google::Apis::BackupdrV1::AlloyDbClusterBackupProperties]
512+
attr_accessor :alloy_db_backup_properties
513+
449514
# BackupApplianceBackupProperties represents BackupDR backup appliance's
450515
# properties.
451516
# Corresponds to the JSON property `backupApplianceBackupProperties`
@@ -568,6 +633,7 @@ def initialize(**args)
568633

569634
# Update properties of this object
570635
def update!(**args)
636+
@alloy_db_backup_properties = args[:alloy_db_backup_properties] if args.key?(:alloy_db_backup_properties)
571637
@backup_appliance_backup_properties = args[:backup_appliance_backup_properties] if args.key?(:backup_appliance_backup_properties)
572638
@backup_appliance_locks = args[:backup_appliance_locks] if args.key?(:backup_appliance_locks)
573639
@backup_type = args[:backup_type] if args.key?(:backup_type)
@@ -2382,6 +2448,12 @@ def update!(**args)
23822448
class DataSourceGcpResource
23832449
include Google::Apis::Core::Hashable
23842450

2451+
# AlloyDBClusterDataSourceProperties represents the properties of a AlloyDB
2452+
# cluster resource that are stored in the DataSource. .
2453+
# Corresponds to the JSON property `alloyDbClusterDatasourceProperties`
2454+
# @return [Google::Apis::BackupdrV1::AlloyDbClusterDataSourceProperties]
2455+
attr_accessor :alloy_db_cluster_datasource_properties
2456+
23852457
# CloudSqlInstanceDataSourceProperties represents the properties of a Cloud SQL
23862458
# resource that are stored in the DataSource.
23872459
# Corresponds to the JSON property `cloudSqlInstanceDatasourceProperties`
@@ -2422,6 +2494,7 @@ def initialize(**args)
24222494

24232495
# Update properties of this object
24242496
def update!(**args)
2497+
@alloy_db_cluster_datasource_properties = args[:alloy_db_cluster_datasource_properties] if args.key?(:alloy_db_cluster_datasource_properties)
24252498
@cloud_sql_instance_datasource_properties = args[:cloud_sql_instance_datasource_properties] if args.key?(:cloud_sql_instance_datasource_properties)
24262499
@compute_instance_datasource_properties = args[:compute_instance_datasource_properties] if args.key?(:compute_instance_datasource_properties)
24272500
@disk_datasource_properties = args[:disk_datasource_properties] if args.key?(:disk_datasource_properties)

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.40.0"
19+
GEM_VERSION = "0.41.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 = "20250910"
25+
REVISION = "20250916"
2626
end
2727
end
2828
end

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
5858
include Google::Apis::Core::JsonObjectSupport
5959
end
6060

61+
class AlloyDbClusterDataSourceProperties
62+
class Representation < Google::Apis::Core::JsonRepresentation; end
63+
64+
include Google::Apis::Core::JsonObjectSupport
65+
end
66+
67+
class AlloyDbClusterBackupProperties
68+
class Representation < Google::Apis::Core::JsonRepresentation; end
69+
70+
include Google::Apis::Core::JsonObjectSupport
71+
end
72+
6173
class AttachedDisk
6274
class Representation < Google::Apis::Core::JsonRepresentation; end
6375

@@ -786,6 +798,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
786798
end
787799
end
788800

801+
class AlloyDbClusterDataSourceProperties
802+
# @private
803+
class Representation < Google::Apis::Core::JsonRepresentation
804+
property :name, as: 'name'
805+
end
806+
end
807+
808+
class AlloyDbClusterBackupProperties
809+
# @private
810+
class Representation < Google::Apis::Core::JsonRepresentation
811+
property :chain_id, as: 'chainId'
812+
property :database_version, as: 'databaseVersion'
813+
property :description, as: 'description'
814+
property :stored_bytes, :numeric_string => true, as: 'storedBytes'
815+
end
816+
end
817+
789818
class AttachedDisk
790819
# @private
791820
class Representation < Google::Apis::Core::JsonRepresentation
@@ -832,6 +861,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
832861
class Backup
833862
# @private
834863
class Representation < Google::Apis::Core::JsonRepresentation
864+
property :alloy_db_backup_properties, as: 'alloyDbBackupProperties', class: Google::Apis::BackupdrV1::AlloyDbClusterBackupProperties, decorator: Google::Apis::BackupdrV1::AlloyDbClusterBackupProperties::Representation
865+
835866
property :backup_appliance_backup_properties, as: 'backupApplianceBackupProperties', class: Google::Apis::BackupdrV1::BackupApplianceBackupProperties, decorator: Google::Apis::BackupdrV1::BackupApplianceBackupProperties::Representation
836867

837868
collection :backup_appliance_locks, as: 'backupApplianceLocks', class: Google::Apis::BackupdrV1::BackupLock, decorator: Google::Apis::BackupdrV1::BackupLock::Representation
@@ -1284,6 +1315,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
12841315
class DataSourceGcpResource
12851316
# @private
12861317
class Representation < Google::Apis::Core::JsonRepresentation
1318+
property :alloy_db_cluster_datasource_properties, as: 'alloyDbClusterDatasourceProperties', class: Google::Apis::BackupdrV1::AlloyDbClusterDataSourceProperties, decorator: Google::Apis::BackupdrV1::AlloyDbClusterDataSourceProperties::Representation
1319+
12871320
property :cloud_sql_instance_datasource_properties, as: 'cloudSqlInstanceDatasourceProperties', class: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceProperties, decorator: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceProperties::Representation
12881321

12891322
property :compute_instance_datasource_properties, as: 'computeInstanceDatasourceProperties', class: Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties, decorator: Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties::Representation

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
8383

8484
# Gets the Trial state for a given project
8585
# @param [String] name
86-
# Required. The name of the trial to retrieve.
86+
# Required. The project for which trial details need to be retrieved. Format:
87+
# projects/`project`/locations/`location` Supported Locations are - us, eu and
88+
# asia.
8789
# @param [String] fields
8890
# Selector specifying which fields to include in a partial response.
8991
# @param [String] quota_user
@@ -2350,7 +2352,8 @@ def initialize_service_config_service(name, initialize_service_request_object =
23502352

23512353
# Subscribes to a trial for a project
23522354
# @param [String] parent
2353-
# Required. The parent resource where this trial will be created.
2355+
# Required. The project where this trial will be created. Format: projects/`
2356+
# project`/locations/`location` Supported Locations are - us, eu and asia.
23542357
# @param [Google::Apis::BackupdrV1::SubscribeTrialRequest] subscribe_trial_request_object
23552358
# @param [String] fields
23562359
# Selector specifying which fields to include in a partial response.

0 commit comments

Comments
 (0)