Skip to content

Commit 0745c12

Browse files
feat: Automated regeneration of backupdr v1 client (#24837)
Auto-created at 2025-11-02 10:19:58 +0000 using the toys pull request generator.
1 parent 48cf941 commit 0745c12

File tree

6 files changed

+28
-4
lines changed

6 files changed

+28
-4
lines changed

api_names_out.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49382,6 +49382,7 @@
4938249382
"/backupdr:v1/BackupPlan/labels": labels
4938349383
"/backupdr:v1/BackupPlan/labels/label": label
4938449384
"/backupdr:v1/BackupPlan/logRetentionDays": log_retention_days
49385+
"/backupdr:v1/BackupPlan/maxCustomOnDemandRetentionDays": max_custom_on_demand_retention_days
4938549386
"/backupdr:v1/BackupPlan/name": name
4938649387
"/backupdr:v1/BackupPlan/resourceType": resource_type
4938749388
"/backupdr:v1/BackupPlan/revisionId": revision_id
@@ -50020,6 +50021,7 @@
5002050021
"/backupdr:v1/Trial/startTime": start_time
5002150022
"/backupdr:v1/Trial/state": state
5002250023
"/backupdr:v1/TriggerBackupRequest": trigger_backup_request
50024+
"/backupdr:v1/TriggerBackupRequest/customRetentionDays": custom_retention_days
5002350025
"/backupdr:v1/TriggerBackupRequest/requestId": request_id
5002450026
"/backupdr:v1/TriggerBackupRequest/ruleId": rule_id
5002550027
"/backupdr:v1/WeekDayOfMonth": week_day_of_month

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.44.0 (2025-11-02)
4+
5+
* Regenerated from discovery document revision 20251022
6+
37
### v0.43.0 (2025-10-26)
48

59
* Regenerated from discovery document revision 20251015

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,13 @@ class BackupPlan
11821182
# @return [Fixnum]
11831183
attr_accessor :log_retention_days
11841184

1185+
# Optional. Optional field to configure the maximum number of days for which a
1186+
# backup can be retained. This field is only applicable for on-demand backups
1187+
# taken with custom retention value.
1188+
# Corresponds to the JSON property `maxCustomOnDemandRetentionDays`
1189+
# @return [Fixnum]
1190+
attr_accessor :max_custom_on_demand_retention_days
1191+
11851192
# Output only. Identifier. The resource name of the `BackupPlan`. Format: `
11861193
# projects/`project`/locations/`location`/backupPlans/`backup_plan``
11871194
# Corresponds to the JSON property `name`
@@ -1237,6 +1244,7 @@ def update!(**args)
12371244
@etag = args[:etag] if args.key?(:etag)
12381245
@labels = args[:labels] if args.key?(:labels)
12391246
@log_retention_days = args[:log_retention_days] if args.key?(:log_retention_days)
1247+
@max_custom_on_demand_retention_days = args[:max_custom_on_demand_retention_days] if args.key?(:max_custom_on_demand_retention_days)
12401248
@name = args[:name] if args.key?(:name)
12411249
@resource_type = args[:resource_type] if args.key?(:resource_type)
12421250
@revision_id = args[:revision_id] if args.key?(:revision_id)
@@ -5464,6 +5472,13 @@ def update!(**args)
54645472
class TriggerBackupRequest
54655473
include Google::Apis::Core::Hashable
54665474

5475+
# Optional. The duration for which backup data will be kept, while taking an on-
5476+
# demand backup with custom retention. It is defined in "days". It is mutually
5477+
# exclusive with rule_id. This field is required if rule_id is not provided.
5478+
# Corresponds to the JSON property `customRetentionDays`
5479+
# @return [Fixnum]
5480+
attr_accessor :custom_retention_days
5481+
54675482
# Optional. An optional request ID to identify requests. Specify a unique
54685483
# request ID so that if you must retry your request, the server will know to
54695484
# ignore the request if it has already been completed. The server will guarantee
@@ -5490,6 +5505,7 @@ def initialize(**args)
54905505

54915506
# Update properties of this object
54925507
def update!(**args)
5508+
@custom_retention_days = args[:custom_retention_days] if args.key?(:custom_retention_days)
54935509
@request_id = args[:request_id] if args.key?(:request_id)
54945510
@rule_id = args[:rule_id] if args.key?(:rule_id)
54955511
end

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.43.0"
19+
GEM_VERSION = "0.44.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 = "20251015"
25+
REVISION = "20251022"
2626
end
2727
end
2828
end

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
10481048
property :etag, as: 'etag'
10491049
hash :labels, as: 'labels'
10501050
property :log_retention_days, :numeric_string => true, as: 'logRetentionDays'
1051+
property :max_custom_on_demand_retention_days, as: 'maxCustomOnDemandRetentionDays'
10511052
property :name, as: 'name'
10521053
property :resource_type, as: 'resourceType'
10531054
property :revision_id, as: 'revisionId'
@@ -2110,6 +2111,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
21102111
class TriggerBackupRequest
21112112
# @private
21122113
class Representation < Google::Apis::Core::JsonRepresentation
2114+
property :custom_retention_days, as: 'customRetentionDays'
21132115
property :request_id, as: 'requestId'
21142116
property :rule_id, as: 'ruleId'
21152117
end

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def get_project_location_trial(name, fields: nil, quota_user: nil, options: nil,
117117
# @param [String] name
118118
# The resource that owns the locations collection, if applicable.
119119
# @param [Array<String>, String] extra_location_types
120-
# Optional. Unless explicitly documented otherwise, don't use this unsupported
121-
# field which is primarily intended for internal usage.
120+
# Optional. Do not use this field. It is unsupported and is ignored unless
121+
# explicitly documented otherwise. This is primarily for internal usage.
122122
# @param [String] filter
123123
# A filter to narrow down results to a preferred subset. The filtering language
124124
# accepts strings like `"displayName=tokyo"`, and is documented in more detail

0 commit comments

Comments
 (0)