@@ -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
0 commit comments