google-apis-backupdr_v1 0.37.0 → 0.38.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: fbf94be3e14e737abb11999a94ff21c0ae3c3ff5b9d2ea4e6bc05c2cf8be74aa
4
+ data.tar.gz: 3eec3849278656258de8c6f366b014913bed6fe088dd766700fd2b7ed6d4197d
5
5
  SHA512:
6
- metadata.gz: d27de9c097d1c38695f17db32820d4bc8397e5753baba2f90f29dca0385a5134d2030c11edf0e3483927a3115375490361d5f0e8c5c9418a1152196bea26008b
7
- data.tar.gz: 79166fa3e2733a8bea38182c70da6ef3b854d3d52aebf098f22953b282a0329b640b2430240b030e4b992d63b7799b73aa1b4fc68f19a8cd0e8db5f594031dc9
6
+ metadata.gz: fe46e170e156abe036d6e4fad97e24cc4a8620397637d29938f8b298112d1ed74327851ba3e305dbca1ced409d7e3a5e805458e36a7099a4e76773cb002c275d
7
+ data.tar.gz: 5e6ad191b7c9b4de5108d61d074ce50d63752daa116811c5750e41f32059993f175c2dddb161071cb21f125c7caed11186cf7ca23a1f5b6db581ee36482ca577
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-backupdr_v1
2
2
 
3
+ ### v0.38.0 (2025-08-31)
4
+
5
+ * Regenerated from discovery document revision 20250825
6
+
3
7
  ### v0.37.0 (2025-08-10)
4
8
 
5
9
  * Regenerated from discovery document revision 20250730
@@ -5129,6 +5129,19 @@ module Google
5129
5129
  end
5130
5130
  end
5131
5131
 
5132
+ # Request message for subscribing to a trial.
5133
+ class SubscribeTrialRequest
5134
+ include Google::Apis::Core::Hashable
5135
+
5136
+ def initialize(**args)
5137
+ update!(**args)
5138
+ end
5139
+
5140
+ # Update properties of this object
5141
+ def update!(**args)
5142
+ end
5143
+ end
5144
+
5132
5145
  # A set of instance tags.
5133
5146
  class Tags
5134
5147
  include Google::Apis::Core::Hashable
@@ -5208,6 +5221,44 @@ module Google
5208
5221
  end
5209
5222
  end
5210
5223
 
5224
+ # Represents a Trial for a project.
5225
+ class Trial
5226
+ include Google::Apis::Core::Hashable
5227
+
5228
+ # Output only. The time when the trial will expire.
5229
+ # Corresponds to the JSON property `endTime`
5230
+ # @return [String]
5231
+ attr_accessor :end_time
5232
+
5233
+ # Identifier. The resource name of the trial. Format: projects/`project`/
5234
+ # locations/`location`/trial
5235
+ # Corresponds to the JSON property `name`
5236
+ # @return [String]
5237
+ attr_accessor :name
5238
+
5239
+ # Output only. The time when the trial was subscribed.
5240
+ # Corresponds to the JSON property `startTime`
5241
+ # @return [String]
5242
+ attr_accessor :start_time
5243
+
5244
+ # Output only. The state of the trial.
5245
+ # Corresponds to the JSON property `state`
5246
+ # @return [String]
5247
+ attr_accessor :state
5248
+
5249
+ def initialize(**args)
5250
+ update!(**args)
5251
+ end
5252
+
5253
+ # Update properties of this object
5254
+ def update!(**args)
5255
+ @end_time = args[:end_time] if args.key?(:end_time)
5256
+ @name = args[:name] if args.key?(:name)
5257
+ @start_time = args[:start_time] if args.key?(:start_time)
5258
+ @state = args[:state] if args.key?(:state)
5259
+ end
5260
+ end
5261
+
5211
5262
  # Request message for triggering a backup.
5212
5263
  class TriggerBackupRequest
5213
5264
  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.38.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 = "20250825"
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,16 @@ 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_time, as: 'endTime'
2019
+ property :name, as: 'name'
2020
+ property :start_time, as: 'startTime'
2021
+ property :state, as: 'state'
2022
+ end
2023
+ end
2024
+
1997
2025
  class TriggerBackupRequest
1998
2026
  # @private
1999
2027
  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.38.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.38.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: