Skip to content

Commit a2b30f0

Browse files
feat: Automated regeneration of backupdr v1 client (googleapis#25477)
Auto-created at 2026-01-25 10:28:17 +0000 using the toys pull request generator.
1 parent 4f6fc6b commit a2b30f0

5 files changed

Lines changed: 131 additions & 2 deletions

File tree

api_names_out.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52274,13 +52274,23 @@
5227452274
"/backupdr:v1/AllocationAffinity/values": values
5227552275
"/backupdr:v1/AllocationAffinity/values/value": value
5227652276
"/backupdr:v1/AlloyDBClusterBackupPlanAssociationProperties": alloy_db_cluster_backup_plan_association_properties
52277+
"/backupdr:v1/AlloyDBClusterBackupPlanAssociationProperties/clusterUid": cluster_uid
5227752278
"/backupdr:v1/AlloyDBClusterDataSourceProperties": alloy_db_cluster_data_source_properties
52279+
"/backupdr:v1/AlloyDBClusterDataSourceProperties/clusterUid": cluster_uid
5227852280
"/backupdr:v1/AlloyDBClusterDataSourceProperties/name": name
52281+
"/backupdr:v1/AlloyDBClusterDataSourceProperties/pitrWindows": pitr_windows
52282+
"/backupdr:v1/AlloyDBClusterDataSourceProperties/pitrWindows/pitr_window": pitr_window
52283+
"/backupdr:v1/AlloyDBClusterDataSourceReferenceProperties": alloy_db_cluster_data_source_reference_properties
52284+
"/backupdr:v1/AlloyDBClusterDataSourceReferenceProperties/name": name
5227952285
"/backupdr:v1/AlloyDbClusterBackupProperties": alloy_db_cluster_backup_properties
5228052286
"/backupdr:v1/AlloyDbClusterBackupProperties/chainId": chain_id
5228152287
"/backupdr:v1/AlloyDbClusterBackupProperties/databaseVersion": database_version
5228252288
"/backupdr:v1/AlloyDbClusterBackupProperties/description": description
5228352289
"/backupdr:v1/AlloyDbClusterBackupProperties/storedBytes": stored_bytes
52290+
"/backupdr:v1/AlloyDbPitrWindow": alloy_db_pitr_window
52291+
"/backupdr:v1/AlloyDbPitrWindow/endTime": end_time
52292+
"/backupdr:v1/AlloyDbPitrWindow/logRetentionDays": log_retention_days
52293+
"/backupdr:v1/AlloyDbPitrWindow/startTime": start_time
5228452294
"/backupdr:v1/AssetLocation": asset_location
5228552295
"/backupdr:v1/AssetLocation/ccfeRmsPath": ccfe_rms_path
5228652296
"/backupdr:v1/AssetLocation/expected": expected
@@ -52621,6 +52631,7 @@
5262152631
"/backupdr:v1/DataSourceGcpResource/location": location
5262252632
"/backupdr:v1/DataSourceGcpResource/type": type
5262352633
"/backupdr:v1/DataSourceGcpResourceInfo": data_source_gcp_resource_info
52634+
"/backupdr:v1/DataSourceGcpResourceInfo/alloyDbClusterProperties": alloy_db_cluster_properties
5262452635
"/backupdr:v1/DataSourceGcpResourceInfo/cloudSqlInstanceProperties": cloud_sql_instance_properties
5262552636
"/backupdr:v1/DataSourceGcpResourceInfo/gcpResourcename": gcp_resourcename
5262652637
"/backupdr:v1/DataSourceGcpResourceInfo/location": location

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.50.0 (2026-01-25)
4+
5+
* Regenerated from discovery document revision 20260116
6+
37
### v0.49.0 (2026-01-11)
48

59
* Regenerated from discovery document revision 20251227

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

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,18 @@ def update!(**args)
250250
class AlloyDbClusterBackupPlanAssociationProperties
251251
include Google::Apis::Core::Hashable
252252

253+
# Output only. The cluster UID of the AlloyDB cluster.
254+
# Corresponds to the JSON property `clusterUid`
255+
# @return [String]
256+
attr_accessor :cluster_uid
257+
253258
def initialize(**args)
254259
update!(**args)
255260
end
256261

257262
# Update properties of this object
258263
def update!(**args)
264+
@cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
259265
end
260266
end
261267

@@ -264,11 +270,46 @@ def update!(**args)
264270
class AlloyDbClusterDataSourceProperties
265271
include Google::Apis::Core::Hashable
266272

273+
# Output only. The cluster UID of the AlloyDB cluster backed up by the
274+
# datasource.
275+
# Corresponds to the JSON property `clusterUid`
276+
# @return [String]
277+
attr_accessor :cluster_uid
278+
267279
# Output only. Name of the AlloyDB cluster backed up by the datasource.
268280
# Corresponds to the JSON property `name`
269281
# @return [String]
270282
attr_accessor :name
271283

284+
# Output only. Point in time recovery windows. The order is guaranteed to be
285+
# ascending by start time.
286+
# Corresponds to the JSON property `pitrWindows`
287+
# @return [Array<Google::Apis::BackupdrV1::AlloyDbPitrWindow>]
288+
attr_accessor :pitr_windows
289+
290+
def initialize(**args)
291+
update!(**args)
292+
end
293+
294+
# Update properties of this object
295+
def update!(**args)
296+
@cluster_uid = args[:cluster_uid] if args.key?(:cluster_uid)
297+
@name = args[:name] if args.key?(:name)
298+
@pitr_windows = args[:pitr_windows] if args.key?(:pitr_windows)
299+
end
300+
end
301+
302+
# AlloyDBClusterDataSourceReferenceProperties represents the properties of an
303+
# AlloyDB cluster that are stored in the DataSourceReference.
304+
class AlloyDbClusterDataSourceReferenceProperties
305+
include Google::Apis::Core::Hashable
306+
307+
# Output only. Name of the AlloyDB cluster backed up by the datasource. Format:
308+
# projects/`project`/locations/`location`/clusters/`cluster`
309+
# Corresponds to the JSON property `name`
310+
# @return [String]
311+
attr_accessor :name
312+
272313
def initialize(**args)
273314
update!(**args)
274315
end
@@ -319,6 +360,38 @@ def update!(**args)
319360
end
320361
end
321362

363+
# Point in time recovery window for an AlloyDB cluster.
364+
class AlloyDbPitrWindow
365+
include Google::Apis::Core::Hashable
366+
367+
# Output only. The end time of the PITR window. It is not set if the
368+
# corresponding Backup Plan Association is active.
369+
# Corresponds to the JSON property `endTime`
370+
# @return [String]
371+
attr_accessor :end_time
372+
373+
# Output only. Log retention days for the PITR window.
374+
# Corresponds to the JSON property `logRetentionDays`
375+
# @return [Fixnum]
376+
attr_accessor :log_retention_days
377+
378+
# Output only. The start time of the PITR window.
379+
# Corresponds to the JSON property `startTime`
380+
# @return [String]
381+
attr_accessor :start_time
382+
383+
def initialize(**args)
384+
update!(**args)
385+
end
386+
387+
# Update properties of this object
388+
def update!(**args)
389+
@end_time = args[:end_time] if args.key?(:end_time)
390+
@log_retention_days = args[:log_retention_days] if args.key?(:log_retention_days)
391+
@start_time = args[:start_time] if args.key?(:start_time)
392+
end
393+
end
394+
322395
# An instance-attached disk resource.
323396
class AttachedDisk
324397
include Google::Apis::Core::Hashable
@@ -2617,6 +2690,12 @@ def update!(**args)
26172690
class DataSourceGcpResourceInfo
26182691
include Google::Apis::Core::Hashable
26192692

2693+
# AlloyDBClusterDataSourceReferenceProperties represents the properties of an
2694+
# AlloyDB cluster that are stored in the DataSourceReference.
2695+
# Corresponds to the JSON property `alloyDbClusterProperties`
2696+
# @return [Google::Apis::BackupdrV1::AlloyDbClusterDataSourceReferenceProperties]
2697+
attr_accessor :alloy_db_cluster_properties
2698+
26202699
# CloudSqlInstanceDataSourceReferenceProperties represents the properties of a
26212700
# Cloud SQL resource that are stored in the DataSourceReference.
26222701
# Corresponds to the JSON property `cloudSqlInstanceProperties`
@@ -2647,6 +2726,7 @@ def initialize(**args)
26472726

26482727
# Update properties of this object
26492728
def update!(**args)
2729+
@alloy_db_cluster_properties = args[:alloy_db_cluster_properties] if args.key?(:alloy_db_cluster_properties)
26502730
@cloud_sql_instance_properties = args[:cloud_sql_instance_properties] if args.key?(:cloud_sql_instance_properties)
26512731
@gcp_resourcename = args[:gcp_resourcename] if args.key?(:gcp_resourcename)
26522732
@location = args[:location] if args.key?(:location)

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.49.0"
19+
GEM_VERSION = "0.50.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 = "20251227"
25+
REVISION = "20260116"
2626
end
2727
end
2828
end

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7070
include Google::Apis::Core::JsonObjectSupport
7171
end
7272

73+
class AlloyDbClusterDataSourceReferenceProperties
74+
class Representation < Google::Apis::Core::JsonRepresentation; end
75+
76+
include Google::Apis::Core::JsonObjectSupport
77+
end
78+
7379
class AlloyDbClusterBackupProperties
7480
class Representation < Google::Apis::Core::JsonRepresentation; end
7581

7682
include Google::Apis::Core::JsonObjectSupport
7783
end
7884

85+
class AlloyDbPitrWindow
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
7991
class AttachedDisk
8092
class Representation < Google::Apis::Core::JsonRepresentation; end
8193

@@ -843,10 +855,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
843855
class AlloyDbClusterBackupPlanAssociationProperties
844856
# @private
845857
class Representation < Google::Apis::Core::JsonRepresentation
858+
property :cluster_uid, as: 'clusterUid'
846859
end
847860
end
848861

849862
class AlloyDbClusterDataSourceProperties
863+
# @private
864+
class Representation < Google::Apis::Core::JsonRepresentation
865+
property :cluster_uid, as: 'clusterUid'
866+
property :name, as: 'name'
867+
collection :pitr_windows, as: 'pitrWindows', class: Google::Apis::BackupdrV1::AlloyDbPitrWindow, decorator: Google::Apis::BackupdrV1::AlloyDbPitrWindow::Representation
868+
869+
end
870+
end
871+
872+
class AlloyDbClusterDataSourceReferenceProperties
850873
# @private
851874
class Representation < Google::Apis::Core::JsonRepresentation
852875
property :name, as: 'name'
@@ -863,6 +886,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
863886
end
864887
end
865888

889+
class AlloyDbPitrWindow
890+
# @private
891+
class Representation < Google::Apis::Core::JsonRepresentation
892+
property :end_time, as: 'endTime'
893+
property :log_retention_days, :numeric_string => true, as: 'logRetentionDays'
894+
property :start_time, as: 'startTime'
895+
end
896+
end
897+
866898
class AttachedDisk
867899
# @private
868900
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1403,6 +1435,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
14031435
class DataSourceGcpResourceInfo
14041436
# @private
14051437
class Representation < Google::Apis::Core::JsonRepresentation
1438+
property :alloy_db_cluster_properties, as: 'alloyDbClusterProperties', class: Google::Apis::BackupdrV1::AlloyDbClusterDataSourceReferenceProperties, decorator: Google::Apis::BackupdrV1::AlloyDbClusterDataSourceReferenceProperties::Representation
1439+
14061440
property :cloud_sql_instance_properties, as: 'cloudSqlInstanceProperties', class: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceReferenceProperties, decorator: Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceReferenceProperties::Representation
14071441

14081442
property :gcp_resourcename, as: 'gcpResourcename'

0 commit comments

Comments
 (0)