google-apis-backupdr_v1 0.37.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c55b169e9f4abd6b32cfd9632eb2fb4ce635880367eb7c9308411bd0e7af1f8d
4
- data.tar.gz: 8ab1a209944faa8122928d45eb0f5653f1066ccbecf31b219f6878dc4c1b0a63
3
+ metadata.gz: f745d7ab17f4aa89dcffe905fc7f566afc5042c57ad6d5c1afa619299a3883e6
4
+ data.tar.gz: eb5bceb4c9272f436328be0fd2cbffb96fbc72f5a37ea15a6317b3c9926cb179
5
5
  SHA512:
6
- metadata.gz: d27de9c097d1c38695f17db32820d4bc8397e5753baba2f90f29dca0385a5134d2030c11edf0e3483927a3115375490361d5f0e8c5c9418a1152196bea26008b
7
- data.tar.gz: 79166fa3e2733a8bea38182c70da6ef3b854d3d52aebf098f22953b282a0329b640b2430240b030e4b992d63b7799b73aa1b4fc68f19a8cd0e8db5f594031dc9
6
+ metadata.gz: ed636d991e0b08c0808ebee660d581fd769a0b013c32da5216a1927d497a7a5f72a478a9fb371e1836c208b576dfa81b21d392ca9c12c0edaee6d85108599e2f
7
+ data.tar.gz: f66d3957c37243fbde61f40670431b47ab557397a1fb0424e9deffba216ff386918e5760d1617b65f2a092c08e504160d36857e4672d2512c159432184375b37
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-backupdr_v1
2
2
 
3
+ ### v0.39.0 (2025-09-14)
4
+
5
+ * Regenerated from discovery document revision 20250902
6
+
7
+ ### v0.38.0 (2025-08-31)
8
+
9
+ * Regenerated from discovery document revision 20250825
10
+
3
11
  ### v0.37.0 (2025-08-10)
4
12
 
5
13
  * Regenerated from discovery document revision 20250730
@@ -1298,7 +1298,9 @@ module Google
1298
1298
  # defined in “days”. The value should be greater than or equal to minimum
1299
1299
  # enforced retention of the backup vault. Minimum value is 1 and maximum value
1300
1300
  # is 36159 for custom retention on-demand backup. Minimum and maximum values are
1301
- # workload specific for all other rules.
1301
+ # workload specific for all other rules. Note: Longer retention can lead to
1302
+ # higher storage costs post introductory trial. We recommend starting with a
1303
+ # short duration of 3 days or less.
1302
1304
  # Corresponds to the JSON property `backupRetentionDays`
1303
1305
  # @return [Fixnum]
1304
1306
  attr_accessor :backup_retention_days
@@ -1353,7 +1355,10 @@ module Google
1353
1355
  attr_accessor :backup_count
1354
1356
 
1355
1357
  # Required. The default and minimum enforced retention for each backup within
1356
- # the backup vault. The enforced retention for each backup can be extended.
1358
+ # the backup vault. The enforced retention for each backup can be extended. Note:
1359
+ # Longer minimum enforced retention period impacts potential storage costs post
1360
+ # introductory trial. We recommend starting with a short duration of 3 days or
1361
+ # less.
1357
1362
  # Corresponds to the JSON property `backupMinimumEnforcedRetentionDuration`
1358
1363
  # @return [String]
1359
1364
  attr_accessor :backup_minimum_enforced_retention_duration
@@ -5129,6 +5134,19 @@ module Google
5129
5134
  end
5130
5135
  end
5131
5136
 
5137
+ # Request message for subscribing to a trial.
5138
+ class SubscribeTrialRequest
5139
+ include Google::Apis::Core::Hashable
5140
+
5141
+ def initialize(**args)
5142
+ update!(**args)
5143
+ end
5144
+
5145
+ # Update properties of this object
5146
+ def update!(**args)
5147
+ end
5148
+ end
5149
+
5132
5150
  # A set of instance tags.
5133
5151
  class Tags
5134
5152
  include Google::Apis::Core::Hashable
@@ -5208,6 +5226,50 @@ module Google
5208
5226
  end
5209
5227
  end
5210
5228
 
5229
+ # Represents a Trial for a project.
5230
+ class Trial
5231
+ include Google::Apis::Core::Hashable
5232
+
5233
+ # Output only. The reason for ending the trial.
5234
+ # Corresponds to the JSON property `endReason`
5235
+ # @return [String]
5236
+ attr_accessor :end_reason
5237
+
5238
+ # Output only. The time when the trial will expire.
5239
+ # Corresponds to the JSON property `endTime`
5240
+ # @return [String]
5241
+ attr_accessor :end_time
5242
+
5243
+ # Identifier. The resource name of the trial. Format: projects/`project`/
5244
+ # locations/`location`/trial
5245
+ # Corresponds to the JSON property `name`
5246
+ # @return [String]
5247
+ attr_accessor :name
5248
+
5249
+ # Output only. The time when the trial was subscribed.
5250
+ # Corresponds to the JSON property `startTime`
5251
+ # @return [String]
5252
+ attr_accessor :start_time
5253
+
5254
+ # Output only. The state of the trial.
5255
+ # Corresponds to the JSON property `state`
5256
+ # @return [String]
5257
+ attr_accessor :state
5258
+
5259
+ def initialize(**args)
5260
+ update!(**args)
5261
+ end
5262
+
5263
+ # Update properties of this object
5264
+ def update!(**args)
5265
+ @end_reason = args[:end_reason] if args.key?(:end_reason)
5266
+ @end_time = args[:end_time] if args.key?(:end_time)
5267
+ @name = args[:name] if args.key?(:name)
5268
+ @start_time = args[:start_time] if args.key?(:start_time)
5269
+ @state = args[:state] if args.key?(:state)
5270
+ end
5271
+ end
5272
+
5211
5273
  # Request message for triggering a backup.
5212
5274
  class TriggerBackupRequest
5213
5275
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BackupdrV1
18
18
  # Version of the google-apis-backupdr_v1 gem
19
- GEM_VERSION = "0.37.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250730"
25
+ REVISION = "20250902"
26
26
  end
27
27
  end
28
28
  end
@@ -670,6 +670,12 @@ module Google
670
670
  include Google::Apis::Core::JsonObjectSupport
671
671
  end
672
672
 
673
+ class SubscribeTrialRequest
674
+ class Representation < Google::Apis::Core::JsonRepresentation; end
675
+
676
+ include Google::Apis::Core::JsonObjectSupport
677
+ end
678
+
673
679
  class Tags
674
680
  class Representation < Google::Apis::Core::JsonRepresentation; end
675
681
 
@@ -694,6 +700,12 @@ module Google
694
700
  include Google::Apis::Core::JsonObjectSupport
695
701
  end
696
702
 
703
+ class Trial
704
+ class Representation < Google::Apis::Core::JsonRepresentation; end
705
+
706
+ include Google::Apis::Core::JsonObjectSupport
707
+ end
708
+
697
709
  class TriggerBackupRequest
698
710
  class Representation < Google::Apis::Core::JsonRepresentation; end
699
711
 
@@ -1965,6 +1977,12 @@ module Google
1965
1977
  end
1966
1978
  end
1967
1979
 
1980
+ class SubscribeTrialRequest
1981
+ # @private
1982
+ class Representation < Google::Apis::Core::JsonRepresentation
1983
+ end
1984
+ end
1985
+
1968
1986
  class Tags
1969
1987
  # @private
1970
1988
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1994,6 +2012,17 @@ module Google
1994
2012
  end
1995
2013
  end
1996
2014
 
2015
+ class Trial
2016
+ # @private
2017
+ class Representation < Google::Apis::Core::JsonRepresentation
2018
+ property :end_reason, as: 'endReason'
2019
+ property :end_time, as: 'endTime'
2020
+ property :name, as: 'name'
2021
+ property :start_time, as: 'startTime'
2022
+ property :state, as: 'state'
2023
+ end
2024
+ end
2025
+
1997
2026
  class TriggerBackupRequest
1998
2027
  # @private
1999
2028
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -81,12 +81,42 @@ module Google
81
81
  execute_or_queue_command(command, &block)
82
82
  end
83
83
 
84
+ # Gets the Trial state for a given project
85
+ # @param [String] name
86
+ # Required. The name of the trial to retrieve.
87
+ # @param [String] fields
88
+ # Selector specifying which fields to include in a partial response.
89
+ # @param [String] quota_user
90
+ # Available to use for quota purposes for server-side applications. Can be any
91
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
92
+ # @param [Google::Apis::RequestOptions] options
93
+ # Request-specific options
94
+ #
95
+ # @yield [result, err] Result & error if block supplied
96
+ # @yieldparam result [Google::Apis::BackupdrV1::Trial] parsed result object
97
+ # @yieldparam err [StandardError] error object if request failed
98
+ #
99
+ # @return [Google::Apis::BackupdrV1::Trial]
100
+ #
101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
104
+ def get_project_location_trial(name, fields: nil, quota_user: nil, options: nil, &block)
105
+ command = make_simple_command(:get, 'v1/{+name}', options)
106
+ command.response_representation = Google::Apis::BackupdrV1::Trial::Representation
107
+ command.response_class = Google::Apis::BackupdrV1::Trial
108
+ command.params['name'] = name unless name.nil?
109
+ command.query['fields'] = fields unless fields.nil?
110
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
111
+ execute_or_queue_command(command, &block)
112
+ end
113
+
84
114
  # Lists information about the supported locations for this service.
85
115
  # @param [String] name
86
116
  # The resource that owns the locations collection, if applicable.
87
117
  # @param [Array<String>, String] extra_location_types
88
- # Optional. A list of extra location types that should be used as conditions for
89
- # controlling the visibility of the locations.
118
+ # Optional. Do not use this field. It is unsupported and is ignored unless
119
+ # explicitly documented otherwise. This is primarily for internal usage.
90
120
  # @param [String] filter
91
121
  # A filter to narrow down results to a preferred subset. The filtering language
92
122
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -2317,6 +2347,39 @@ module Google
2317
2347
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2318
2348
  execute_or_queue_command(command, &block)
2319
2349
  end
2350
+
2351
+ # Subscribes to a trial for a project
2352
+ # @param [String] parent
2353
+ # Required. The parent resource where this trial will be created.
2354
+ # @param [Google::Apis::BackupdrV1::SubscribeTrialRequest] subscribe_trial_request_object
2355
+ # @param [String] fields
2356
+ # Selector specifying which fields to include in a partial response.
2357
+ # @param [String] quota_user
2358
+ # Available to use for quota purposes for server-side applications. Can be any
2359
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2360
+ # @param [Google::Apis::RequestOptions] options
2361
+ # Request-specific options
2362
+ #
2363
+ # @yield [result, err] Result & error if block supplied
2364
+ # @yieldparam result [Google::Apis::BackupdrV1::Trial] parsed result object
2365
+ # @yieldparam err [StandardError] error object if request failed
2366
+ #
2367
+ # @return [Google::Apis::BackupdrV1::Trial]
2368
+ #
2369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2372
+ def subscribe_trial(parent, subscribe_trial_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2373
+ command = make_simple_command(:post, 'v1/{+parent}/trial:subscribe', options)
2374
+ command.request_representation = Google::Apis::BackupdrV1::SubscribeTrialRequest::Representation
2375
+ command.request_object = subscribe_trial_request_object
2376
+ command.response_representation = Google::Apis::BackupdrV1::Trial::Representation
2377
+ command.response_class = Google::Apis::BackupdrV1::Trial
2378
+ command.params['parent'] = parent unless parent.nil?
2379
+ command.query['fields'] = fields unless fields.nil?
2380
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2381
+ execute_or_queue_command(command, &block)
2382
+ end
2320
2383
 
2321
2384
  protected
2322
2385
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-backupdr_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-backupdr_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-backupdr_v1/v0.37.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-backupdr_v1/v0.39.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-backupdr_v1
62
62
  rdoc_options: []
63
63
  require_paths: