google-cloud-secret_manager-v1beta1 0.5.0 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cedd1bc12854ce0a61d41f303eec6b7a87a17b5410f42b3e547d3e521c01bec9
4
- data.tar.gz: b21c6a8db3ed700dbff1c348832712e1dbb5e0daaa038e9c8881ef6f474334ff
3
+ metadata.gz: 3de4377e3e60c98a103ee09acf624cd9e1b72b81beb8682930aa188e9078622a
4
+ data.tar.gz: 6635f21a630edcf744ecf34b95473bc6a14bfe5ffc07a73466fb72ff077fd020
5
5
  SHA512:
6
- metadata.gz: 8e1e4019b2f1e7aad52fac6fcdf4bc15091acc0130ab3abc67fc503363f0279071466e0b605125cc4aac1529f32040100b248d21c07405b3a652d7c60b3122bf
7
- data.tar.gz: 50c5fbc5bfbcd7e3d8d119e279d60fba3f1a75c98c3601f2db6f4d80019f434379b5172310191b96a1ab9ceac0d1358d5f9c4abaa9d8b54cf59453ccbf20b621
6
+ metadata.gz: 3f279d4a41f89d48e053c035c65bfc8296b88d3bfb024e6ba6caa9bd8ee58fff5ef92eafba071857afddc9f1fbadafbfb71d90d7c510e269cf0f9f4b8a2c63b2
7
+ data.tar.gz: f011beb44d7b756559231928d57a4de02d54a9b860455cbef14de8b9f0901ebf2bc005969e33647aa2d159b9deca3e6e22a38268bb2388efd903dfbf5ca26652
@@ -27,7 +27,7 @@ export SECRET_MANAGER_CREDENTIALS=path/to/keyfile.json
27
27
  ```ruby
28
28
  require "google/cloud/secret_manager/v1beta1"
29
29
 
30
- client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
30
+ client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
31
31
  ```
32
32
 
33
33
  ## Credential Lookup
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-secret_manager-v1beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Credentials}):
67
+ {::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Credentials}):
68
68
 
69
69
  1. `SECRET_MANAGER_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `SECRET_MANAGER_KEYFILE` - Path to JSON file, or JSON contents
@@ -77,7 +77,7 @@ require "google/cloud/secret_manager/v1beta1"
77
77
 
78
78
  ENV["SECRET_MANAGER_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
80
- client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
80
+ client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
81
81
  ```
82
82
 
83
83
  ### Configuration
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
88
88
  ```ruby
89
89
  require "google/cloud/secret_manager/v1beta1"
90
90
 
91
- client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new do |config|
91
+ client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new do |config|
92
92
  config.credentials = "path/to/keyfile.json"
93
93
  end
94
94
  ```
@@ -98,11 +98,11 @@ Or configured globally for all clients:
98
98
  ```ruby
99
99
  require "google/cloud/secret_manager/v1beta1"
100
100
 
101
- Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.configure do |config|
101
+ ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.configure do |config|
102
102
  config.credentials = "path/to/keyfile.json"
103
103
  end
104
104
 
105
- client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
105
+ client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
106
106
  ```
107
107
 
108
108
  ### Cloud SDK
data/README.md CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
25
25
  ```ruby
26
26
  require "google/cloud/secret_manager/v1beta1"
27
27
 
28
- client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
28
+ client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
29
29
  request = my_create_request
30
30
  response = client.list_secrets request
31
31
  ```
@@ -26,7 +26,7 @@ module Google
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
28
  # require "google/cloud/secret_manager/v1beta1"
29
- # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
29
+ # client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
30
30
  #
31
31
  module V1beta1
32
32
  end
@@ -36,13 +36,13 @@ module Google
36
36
  # Manages secrets and operations using those secrets. Implements a REST
37
37
  # model with the following objects:
38
38
  #
39
- # * {Google::Cloud::SecretManager::V1beta1::Secret Secret}
40
- # * {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}
39
+ # * {::Google::Cloud::SecretManager::V1beta1::Secret Secret}
40
+ # * {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}
41
41
  #
42
42
  # To load this service and instantiate a client:
43
43
  #
44
44
  # require "google/cloud/secret_manager/v1beta1/secret_manager_service"
45
- # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
45
+ # client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
46
46
  #
47
47
  module SecretManagerService
48
48
  end
@@ -32,8 +32,8 @@ module Google
32
32
  # Manages secrets and operations using those secrets. Implements a REST
33
33
  # model with the following objects:
34
34
  #
35
- # * {Google::Cloud::SecretManager::V1beta1::Secret Secret}
36
- # * {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}
35
+ # * {::Google::Cloud::SecretManager::V1beta1::Secret Secret}
36
+ # * {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}
37
37
  #
38
38
  class Client
39
39
  include Paths
@@ -44,15 +44,15 @@ module Google
44
44
  ##
45
45
  # Configure the SecretManagerService Client class.
46
46
  #
47
- # See {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client::Configuration}
47
+ # See {::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client::Configuration}
48
48
  # for a description of the configuration fields.
49
49
  #
50
50
  # ## Example
51
51
  #
52
52
  # To modify the configuration for all SecretManagerService clients:
53
53
  #
54
- # Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.configure do |config|
55
- # config.timeout = 10_000
54
+ # ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.configure do |config|
55
+ # config.timeout = 10.0
56
56
  # end
57
57
  #
58
58
  # @yield [config] Configure the Client client.
@@ -120,7 +120,7 @@ module Google
120
120
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
121
121
  # should be made on {Client.configure}.
122
122
  #
123
- # See {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client::Configuration}
123
+ # See {::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client::Configuration}
124
124
  # for a description of the configuration fields.
125
125
  #
126
126
  # @yield [config] Configure the Client client.
@@ -141,13 +141,13 @@ module Google
141
141
  # To create a new SecretManagerService client with the default
142
142
  # configuration:
143
143
  #
144
- # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
144
+ # client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new
145
145
  #
146
146
  # To create a new SecretManagerService client with a custom
147
147
  # configuration:
148
148
  #
149
- # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new do |config|
150
- # config.timeout = 10_000
149
+ # client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new do |config|
150
+ # config.timeout = 10.0
151
151
  # end
152
152
  #
153
153
  # @yield [config] Configure the SecretManagerService client.
@@ -172,10 +172,11 @@ module Google
172
172
  if credentials.is_a?(String) || credentials.is_a?(Hash)
173
173
  credentials = Credentials.new credentials, scope: @config.scope
174
174
  end
175
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
175
+ @quota_project_id = @config.quota_project
176
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
176
177
 
177
- @secret_manager_service_stub = Gapic::ServiceStub.new(
178
- Google::Cloud::SecretManager::V1beta1::SecretManagerService::Stub,
178
+ @secret_manager_service_stub = ::Gapic::ServiceStub.new(
179
+ ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Stub,
179
180
  credentials: credentials,
180
181
  endpoint: @config.endpoint,
181
182
  channel_args: @config.channel_args,
@@ -186,16 +187,16 @@ module Google
186
187
  # Service calls
187
188
 
188
189
  ##
189
- # Lists {Google::Cloud::SecretManager::V1beta1::Secret Secrets}.
190
+ # Lists {::Google::Cloud::SecretManager::V1beta1::Secret Secrets}.
190
191
  #
191
192
  # @overload list_secrets(request, options = nil)
192
193
  # Pass arguments to `list_secrets` via a request object, either of type
193
- # {Google::Cloud::SecretManager::V1beta1::ListSecretsRequest} or an equivalent Hash.
194
+ # {::Google::Cloud::SecretManager::V1beta1::ListSecretsRequest} or an equivalent Hash.
194
195
  #
195
- # @param request [Google::Cloud::SecretManager::V1beta1::ListSecretsRequest, Hash]
196
+ # @param request [::Google::Cloud::SecretManager::V1beta1::ListSecretsRequest, ::Hash]
196
197
  # A request object representing the call parameters. Required. To specify no
197
198
  # parameters, or to keep all the default parameter values, pass an empty Hash.
198
- # @param options [Gapic::CallOptions, Hash]
199
+ # @param options [::Gapic::CallOptions, ::Hash]
199
200
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
200
201
  #
201
202
  # @overload list_secrets(parent: nil, page_size: nil, page_token: nil)
@@ -203,38 +204,38 @@ module Google
203
204
  # least one keyword argument is required. To specify no parameters, or to keep all
204
205
  # the default parameter values, pass an empty Hash as a request object (see above).
205
206
  #
206
- # @param parent [String]
207
+ # @param parent [::String]
207
208
  # Required. The resource name of the project associated with the
208
- # {Google::Cloud::SecretManager::V1beta1::Secret Secrets}, in the format `projects/*`.
209
- # @param page_size [Integer]
209
+ # {::Google::Cloud::SecretManager::V1beta1::Secret Secrets}, in the format `projects/*`.
210
+ # @param page_size [::Integer]
210
211
  # Optional. The maximum number of results to be returned in a single page. If
211
212
  # set to 0, the server decides the number of results to return. If the
212
213
  # number is greater than 25000, it is capped at 25000.
213
- # @param page_token [String]
214
+ # @param page_token [::String]
214
215
  # Optional. Pagination token, returned earlier via
215
- # {Google::Cloud::SecretManager::V1beta1::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
216
+ # {::Google::Cloud::SecretManager::V1beta1::ListSecretsResponse#next_page_token ListSecretsResponse.next_page_token}.
216
217
  #
217
218
  # @yield [response, operation] Access the result along with the RPC operation
218
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecretManager::V1beta1::Secret>]
219
- # @yieldparam operation [GRPC::ActiveCall::Operation]
219
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::Secret>]
220
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
220
221
  #
221
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecretManager::V1beta1::Secret>]
222
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::Secret>]
222
223
  #
223
- # @raise [Google::Cloud::Error] if the RPC is aborted.
224
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
224
225
  #
225
226
  def list_secrets request, options = nil
226
- raise ArgumentError, "request must be provided" if request.nil?
227
+ raise ::ArgumentError, "request must be provided" if request.nil?
227
228
 
228
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::ListSecretsRequest
229
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::ListSecretsRequest
229
230
 
230
231
  # Converts hash and nil to an options object
231
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
232
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
232
233
 
233
234
  # Customize the options with defaults
234
235
  metadata = @config.rpcs.list_secrets.metadata.to_h
235
236
 
236
237
  # Set x-goog-api-client and x-goog-user-project headers
237
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
238
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
238
239
  lib_name: @config.lib_name, lib_version: @config.lib_version,
239
240
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
240
241
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -252,25 +253,25 @@ module Google
252
253
  retry_policy: @config.retry_policy
253
254
 
254
255
  @secret_manager_service_stub.call_rpc :list_secrets, request, options: options do |response, operation|
255
- response = Gapic::PagedEnumerable.new @secret_manager_service_stub, :list_secrets, request, response, operation, options
256
+ response = ::Gapic::PagedEnumerable.new @secret_manager_service_stub, :list_secrets, request, response, operation, options
256
257
  yield response, operation if block_given?
257
258
  return response
258
259
  end
259
- rescue GRPC::BadStatus => e
260
- raise Google::Cloud::Error.from_error(e)
260
+ rescue ::GRPC::BadStatus => e
261
+ raise ::Google::Cloud::Error.from_error(e)
261
262
  end
262
263
 
263
264
  ##
264
- # Creates a new {Google::Cloud::SecretManager::V1beta1::Secret Secret} containing no {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions}.
265
+ # Creates a new {::Google::Cloud::SecretManager::V1beta1::Secret Secret} containing no {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions}.
265
266
  #
266
267
  # @overload create_secret(request, options = nil)
267
268
  # Pass arguments to `create_secret` via a request object, either of type
268
- # {Google::Cloud::SecretManager::V1beta1::CreateSecretRequest} or an equivalent Hash.
269
+ # {::Google::Cloud::SecretManager::V1beta1::CreateSecretRequest} or an equivalent Hash.
269
270
  #
270
- # @param request [Google::Cloud::SecretManager::V1beta1::CreateSecretRequest, Hash]
271
+ # @param request [::Google::Cloud::SecretManager::V1beta1::CreateSecretRequest, ::Hash]
271
272
  # A request object representing the call parameters. Required. To specify no
272
273
  # parameters, or to keep all the default parameter values, pass an empty Hash.
273
- # @param options [Gapic::CallOptions, Hash]
274
+ # @param options [::Gapic::CallOptions, ::Hash]
274
275
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
275
276
  #
276
277
  # @overload create_secret(parent: nil, secret_id: nil, secret: nil)
@@ -278,39 +279,39 @@ module Google
278
279
  # least one keyword argument is required. To specify no parameters, or to keep all
279
280
  # the default parameter values, pass an empty Hash as a request object (see above).
280
281
  #
281
- # @param parent [String]
282
+ # @param parent [::String]
282
283
  # Required. The resource name of the project to associate with the
283
- # {Google::Cloud::SecretManager::V1beta1::Secret Secret}, in the format `projects/*`.
284
- # @param secret_id [String]
284
+ # {::Google::Cloud::SecretManager::V1beta1::Secret Secret}, in the format `projects/*`.
285
+ # @param secret_id [::String]
285
286
  # Required. This must be unique within the project.
286
287
  #
287
288
  # A secret ID is a string with a maximum length of 255 characters and can
288
289
  # contain uppercase and lowercase letters, numerals, and the hyphen (`-`) and
289
290
  # underscore (`_`) characters.
290
- # @param secret [Google::Cloud::SecretManager::V1beta1::Secret, Hash]
291
- # A {Google::Cloud::SecretManager::V1beta1::Secret Secret} with initial field values.
291
+ # @param secret [::Google::Cloud::SecretManager::V1beta1::Secret, ::Hash]
292
+ # Required. A {::Google::Cloud::SecretManager::V1beta1::Secret Secret} with initial field values.
292
293
  #
293
294
  # @yield [response, operation] Access the result along with the RPC operation
294
- # @yieldparam response [Google::Cloud::SecretManager::V1beta1::Secret]
295
- # @yieldparam operation [GRPC::ActiveCall::Operation]
295
+ # @yieldparam response [::Google::Cloud::SecretManager::V1beta1::Secret]
296
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
296
297
  #
297
- # @return [Google::Cloud::SecretManager::V1beta1::Secret]
298
+ # @return [::Google::Cloud::SecretManager::V1beta1::Secret]
298
299
  #
299
- # @raise [Google::Cloud::Error] if the RPC is aborted.
300
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
300
301
  #
301
302
  def create_secret request, options = nil
302
- raise ArgumentError, "request must be provided" if request.nil?
303
+ raise ::ArgumentError, "request must be provided" if request.nil?
303
304
 
304
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::CreateSecretRequest
305
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::CreateSecretRequest
305
306
 
306
307
  # Converts hash and nil to an options object
307
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
308
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
308
309
 
309
310
  # Customize the options with defaults
310
311
  metadata = @config.rpcs.create_secret.metadata.to_h
311
312
 
312
313
  # Set x-goog-api-client and x-goog-user-project headers
313
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
314
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
314
315
  lib_name: @config.lib_name, lib_version: @config.lib_version,
315
316
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
316
317
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -331,22 +332,22 @@ module Google
331
332
  yield response, operation if block_given?
332
333
  return response
333
334
  end
334
- rescue GRPC::BadStatus => e
335
- raise Google::Cloud::Error.from_error(e)
335
+ rescue ::GRPC::BadStatus => e
336
+ raise ::Google::Cloud::Error.from_error(e)
336
337
  end
337
338
 
338
339
  ##
339
- # Creates a new {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} containing secret data and attaches
340
- # it to an existing {Google::Cloud::SecretManager::V1beta1::Secret Secret}.
340
+ # Creates a new {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} containing secret data and attaches
341
+ # it to an existing {::Google::Cloud::SecretManager::V1beta1::Secret Secret}.
341
342
  #
342
343
  # @overload add_secret_version(request, options = nil)
343
344
  # Pass arguments to `add_secret_version` via a request object, either of type
344
- # {Google::Cloud::SecretManager::V1beta1::AddSecretVersionRequest} or an equivalent Hash.
345
+ # {::Google::Cloud::SecretManager::V1beta1::AddSecretVersionRequest} or an equivalent Hash.
345
346
  #
346
- # @param request [Google::Cloud::SecretManager::V1beta1::AddSecretVersionRequest, Hash]
347
+ # @param request [::Google::Cloud::SecretManager::V1beta1::AddSecretVersionRequest, ::Hash]
347
348
  # A request object representing the call parameters. Required. To specify no
348
349
  # parameters, or to keep all the default parameter values, pass an empty Hash.
349
- # @param options [Gapic::CallOptions, Hash]
350
+ # @param options [::Gapic::CallOptions, ::Hash]
350
351
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
351
352
  #
352
353
  # @overload add_secret_version(parent: nil, payload: nil)
@@ -354,33 +355,33 @@ module Google
354
355
  # least one keyword argument is required. To specify no parameters, or to keep all
355
356
  # the default parameter values, pass an empty Hash as a request object (see above).
356
357
  #
357
- # @param parent [String]
358
- # Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::Secret Secret} to associate with the
359
- # {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the format `projects/*/secrets/*`.
360
- # @param payload [Google::Cloud::SecretManager::V1beta1::SecretPayload, Hash]
361
- # Required. The secret payload of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
358
+ # @param parent [::String]
359
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1beta1::Secret Secret} to associate with the
360
+ # {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the format `projects/*/secrets/*`.
361
+ # @param payload [::Google::Cloud::SecretManager::V1beta1::SecretPayload, ::Hash]
362
+ # Required. The secret payload of the {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
362
363
  #
363
364
  # @yield [response, operation] Access the result along with the RPC operation
364
- # @yieldparam response [Google::Cloud::SecretManager::V1beta1::SecretVersion]
365
- # @yieldparam operation [GRPC::ActiveCall::Operation]
365
+ # @yieldparam response [::Google::Cloud::SecretManager::V1beta1::SecretVersion]
366
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
366
367
  #
367
- # @return [Google::Cloud::SecretManager::V1beta1::SecretVersion]
368
+ # @return [::Google::Cloud::SecretManager::V1beta1::SecretVersion]
368
369
  #
369
- # @raise [Google::Cloud::Error] if the RPC is aborted.
370
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
370
371
  #
371
372
  def add_secret_version request, options = nil
372
- raise ArgumentError, "request must be provided" if request.nil?
373
+ raise ::ArgumentError, "request must be provided" if request.nil?
373
374
 
374
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::AddSecretVersionRequest
375
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::AddSecretVersionRequest
375
376
 
376
377
  # Converts hash and nil to an options object
377
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
378
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
378
379
 
379
380
  # Customize the options with defaults
380
381
  metadata = @config.rpcs.add_secret_version.metadata.to_h
381
382
 
382
383
  # Set x-goog-api-client and x-goog-user-project headers
383
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
384
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
384
385
  lib_name: @config.lib_name, lib_version: @config.lib_version,
385
386
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
386
387
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -401,21 +402,21 @@ module Google
401
402
  yield response, operation if block_given?
402
403
  return response
403
404
  end
404
- rescue GRPC::BadStatus => e
405
- raise Google::Cloud::Error.from_error(e)
405
+ rescue ::GRPC::BadStatus => e
406
+ raise ::Google::Cloud::Error.from_error(e)
406
407
  end
407
408
 
408
409
  ##
409
- # Gets metadata for a given {Google::Cloud::SecretManager::V1beta1::Secret Secret}.
410
+ # Gets metadata for a given {::Google::Cloud::SecretManager::V1beta1::Secret Secret}.
410
411
  #
411
412
  # @overload get_secret(request, options = nil)
412
413
  # Pass arguments to `get_secret` via a request object, either of type
413
- # {Google::Cloud::SecretManager::V1beta1::GetSecretRequest} or an equivalent Hash.
414
+ # {::Google::Cloud::SecretManager::V1beta1::GetSecretRequest} or an equivalent Hash.
414
415
  #
415
- # @param request [Google::Cloud::SecretManager::V1beta1::GetSecretRequest, Hash]
416
+ # @param request [::Google::Cloud::SecretManager::V1beta1::GetSecretRequest, ::Hash]
416
417
  # A request object representing the call parameters. Required. To specify no
417
418
  # parameters, or to keep all the default parameter values, pass an empty Hash.
418
- # @param options [Gapic::CallOptions, Hash]
419
+ # @param options [::Gapic::CallOptions, ::Hash]
419
420
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
420
421
  #
421
422
  # @overload get_secret(name: nil)
@@ -423,30 +424,30 @@ module Google
423
424
  # least one keyword argument is required. To specify no parameters, or to keep all
424
425
  # the default parameter values, pass an empty Hash as a request object (see above).
425
426
  #
426
- # @param name [String]
427
- # Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::Secret Secret}, in the format `projects/*/secrets/*`.
427
+ # @param name [::String]
428
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1beta1::Secret Secret}, in the format `projects/*/secrets/*`.
428
429
  #
429
430
  # @yield [response, operation] Access the result along with the RPC operation
430
- # @yieldparam response [Google::Cloud::SecretManager::V1beta1::Secret]
431
- # @yieldparam operation [GRPC::ActiveCall::Operation]
431
+ # @yieldparam response [::Google::Cloud::SecretManager::V1beta1::Secret]
432
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
432
433
  #
433
- # @return [Google::Cloud::SecretManager::V1beta1::Secret]
434
+ # @return [::Google::Cloud::SecretManager::V1beta1::Secret]
434
435
  #
435
- # @raise [Google::Cloud::Error] if the RPC is aborted.
436
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
436
437
  #
437
438
  def get_secret request, options = nil
438
- raise ArgumentError, "request must be provided" if request.nil?
439
+ raise ::ArgumentError, "request must be provided" if request.nil?
439
440
 
440
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::GetSecretRequest
441
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::GetSecretRequest
441
442
 
442
443
  # Converts hash and nil to an options object
443
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
444
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
444
445
 
445
446
  # Customize the options with defaults
446
447
  metadata = @config.rpcs.get_secret.metadata.to_h
447
448
 
448
449
  # Set x-goog-api-client and x-goog-user-project headers
449
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
450
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
450
451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
451
452
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
452
453
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -467,21 +468,21 @@ module Google
467
468
  yield response, operation if block_given?
468
469
  return response
469
470
  end
470
- rescue GRPC::BadStatus => e
471
- raise Google::Cloud::Error.from_error(e)
471
+ rescue ::GRPC::BadStatus => e
472
+ raise ::Google::Cloud::Error.from_error(e)
472
473
  end
473
474
 
474
475
  ##
475
- # Updates metadata of an existing {Google::Cloud::SecretManager::V1beta1::Secret Secret}.
476
+ # Updates metadata of an existing {::Google::Cloud::SecretManager::V1beta1::Secret Secret}.
476
477
  #
477
478
  # @overload update_secret(request, options = nil)
478
479
  # Pass arguments to `update_secret` via a request object, either of type
479
- # {Google::Cloud::SecretManager::V1beta1::UpdateSecretRequest} or an equivalent Hash.
480
+ # {::Google::Cloud::SecretManager::V1beta1::UpdateSecretRequest} or an equivalent Hash.
480
481
  #
481
- # @param request [Google::Cloud::SecretManager::V1beta1::UpdateSecretRequest, Hash]
482
+ # @param request [::Google::Cloud::SecretManager::V1beta1::UpdateSecretRequest, ::Hash]
482
483
  # A request object representing the call parameters. Required. To specify no
483
484
  # parameters, or to keep all the default parameter values, pass an empty Hash.
484
- # @param options [Gapic::CallOptions, Hash]
485
+ # @param options [::Gapic::CallOptions, ::Hash]
485
486
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
486
487
  #
487
488
  # @overload update_secret(secret: nil, update_mask: nil)
@@ -489,32 +490,32 @@ module Google
489
490
  # least one keyword argument is required. To specify no parameters, or to keep all
490
491
  # the default parameter values, pass an empty Hash as a request object (see above).
491
492
  #
492
- # @param secret [Google::Cloud::SecretManager::V1beta1::Secret, Hash]
493
- # Required. {Google::Cloud::SecretManager::V1beta1::Secret Secret} with updated field values.
494
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
493
+ # @param secret [::Google::Cloud::SecretManager::V1beta1::Secret, ::Hash]
494
+ # Required. {::Google::Cloud::SecretManager::V1beta1::Secret Secret} with updated field values.
495
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
495
496
  # Required. Specifies the fields to be updated.
496
497
  #
497
498
  # @yield [response, operation] Access the result along with the RPC operation
498
- # @yieldparam response [Google::Cloud::SecretManager::V1beta1::Secret]
499
- # @yieldparam operation [GRPC::ActiveCall::Operation]
499
+ # @yieldparam response [::Google::Cloud::SecretManager::V1beta1::Secret]
500
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
500
501
  #
501
- # @return [Google::Cloud::SecretManager::V1beta1::Secret]
502
+ # @return [::Google::Cloud::SecretManager::V1beta1::Secret]
502
503
  #
503
- # @raise [Google::Cloud::Error] if the RPC is aborted.
504
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
504
505
  #
505
506
  def update_secret request, options = nil
506
- raise ArgumentError, "request must be provided" if request.nil?
507
+ raise ::ArgumentError, "request must be provided" if request.nil?
507
508
 
508
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::UpdateSecretRequest
509
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::UpdateSecretRequest
509
510
 
510
511
  # Converts hash and nil to an options object
511
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
512
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
512
513
 
513
514
  # Customize the options with defaults
514
515
  metadata = @config.rpcs.update_secret.metadata.to_h
515
516
 
516
517
  # Set x-goog-api-client and x-goog-user-project headers
517
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
518
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
518
519
  lib_name: @config.lib_name, lib_version: @config.lib_version,
519
520
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
520
521
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -535,21 +536,21 @@ module Google
535
536
  yield response, operation if block_given?
536
537
  return response
537
538
  end
538
- rescue GRPC::BadStatus => e
539
- raise Google::Cloud::Error.from_error(e)
539
+ rescue ::GRPC::BadStatus => e
540
+ raise ::Google::Cloud::Error.from_error(e)
540
541
  end
541
542
 
542
543
  ##
543
- # Deletes a {Google::Cloud::SecretManager::V1beta1::Secret Secret}.
544
+ # Deletes a {::Google::Cloud::SecretManager::V1beta1::Secret Secret}.
544
545
  #
545
546
  # @overload delete_secret(request, options = nil)
546
547
  # Pass arguments to `delete_secret` via a request object, either of type
547
- # {Google::Cloud::SecretManager::V1beta1::DeleteSecretRequest} or an equivalent Hash.
548
+ # {::Google::Cloud::SecretManager::V1beta1::DeleteSecretRequest} or an equivalent Hash.
548
549
  #
549
- # @param request [Google::Cloud::SecretManager::V1beta1::DeleteSecretRequest, Hash]
550
+ # @param request [::Google::Cloud::SecretManager::V1beta1::DeleteSecretRequest, ::Hash]
550
551
  # A request object representing the call parameters. Required. To specify no
551
552
  # parameters, or to keep all the default parameter values, pass an empty Hash.
552
- # @param options [Gapic::CallOptions, Hash]
553
+ # @param options [::Gapic::CallOptions, ::Hash]
553
554
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
554
555
  #
555
556
  # @overload delete_secret(name: nil)
@@ -557,31 +558,31 @@ module Google
557
558
  # least one keyword argument is required. To specify no parameters, or to keep all
558
559
  # the default parameter values, pass an empty Hash as a request object (see above).
559
560
  #
560
- # @param name [String]
561
- # Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::Secret Secret} to delete in the format
561
+ # @param name [::String]
562
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1beta1::Secret Secret} to delete in the format
562
563
  # `projects/*/secrets/*`.
563
564
  #
564
565
  # @yield [response, operation] Access the result along with the RPC operation
565
- # @yieldparam response [Google::Protobuf::Empty]
566
- # @yieldparam operation [GRPC::ActiveCall::Operation]
566
+ # @yieldparam response [::Google::Protobuf::Empty]
567
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
567
568
  #
568
- # @return [Google::Protobuf::Empty]
569
+ # @return [::Google::Protobuf::Empty]
569
570
  #
570
- # @raise [Google::Cloud::Error] if the RPC is aborted.
571
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
571
572
  #
572
573
  def delete_secret request, options = nil
573
- raise ArgumentError, "request must be provided" if request.nil?
574
+ raise ::ArgumentError, "request must be provided" if request.nil?
574
575
 
575
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::DeleteSecretRequest
576
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::DeleteSecretRequest
576
577
 
577
578
  # Converts hash and nil to an options object
578
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
579
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
579
580
 
580
581
  # Customize the options with defaults
581
582
  metadata = @config.rpcs.delete_secret.metadata.to_h
582
583
 
583
584
  # Set x-goog-api-client and x-goog-user-project headers
584
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
585
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
585
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
586
587
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
587
588
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -602,22 +603,22 @@ module Google
602
603
  yield response, operation if block_given?
603
604
  return response
604
605
  end
605
- rescue GRPC::BadStatus => e
606
- raise Google::Cloud::Error.from_error(e)
606
+ rescue ::GRPC::BadStatus => e
607
+ raise ::Google::Cloud::Error.from_error(e)
607
608
  end
608
609
 
609
610
  ##
610
- # Lists {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions}. This call does not return secret
611
+ # Lists {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions}. This call does not return secret
611
612
  # data.
612
613
  #
613
614
  # @overload list_secret_versions(request, options = nil)
614
615
  # Pass arguments to `list_secret_versions` via a request object, either of type
615
- # {Google::Cloud::SecretManager::V1beta1::ListSecretVersionsRequest} or an equivalent Hash.
616
+ # {::Google::Cloud::SecretManager::V1beta1::ListSecretVersionsRequest} or an equivalent Hash.
616
617
  #
617
- # @param request [Google::Cloud::SecretManager::V1beta1::ListSecretVersionsRequest, Hash]
618
+ # @param request [::Google::Cloud::SecretManager::V1beta1::ListSecretVersionsRequest, ::Hash]
618
619
  # A request object representing the call parameters. Required. To specify no
619
620
  # parameters, or to keep all the default parameter values, pass an empty Hash.
620
- # @param options [Gapic::CallOptions, Hash]
621
+ # @param options [::Gapic::CallOptions, ::Hash]
621
622
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
622
623
  #
623
624
  # @overload list_secret_versions(parent: nil, page_size: nil, page_token: nil)
@@ -625,39 +626,39 @@ module Google
625
626
  # least one keyword argument is required. To specify no parameters, or to keep all
626
627
  # the default parameter values, pass an empty Hash as a request object (see above).
627
628
  #
628
- # @param parent [String]
629
- # Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::Secret Secret} associated with the
630
- # {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions} to list, in the format
629
+ # @param parent [::String]
630
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1beta1::Secret Secret} associated with the
631
+ # {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions} to list, in the format
631
632
  # `projects/*/secrets/*`.
632
- # @param page_size [Integer]
633
+ # @param page_size [::Integer]
633
634
  # Optional. The maximum number of results to be returned in a single page. If
634
635
  # set to 0, the server decides the number of results to return. If the
635
636
  # number is greater than 25000, it is capped at 25000.
636
- # @param page_token [String]
637
+ # @param page_token [::String]
637
638
  # Optional. Pagination token, returned earlier via
638
639
  # ListSecretVersionsResponse.next_page_token][].
639
640
  #
640
641
  # @yield [response, operation] Access the result along with the RPC operation
641
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecretManager::V1beta1::SecretVersion>]
642
- # @yieldparam operation [GRPC::ActiveCall::Operation]
642
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::SecretVersion>]
643
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
643
644
  #
644
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecretManager::V1beta1::SecretVersion>]
645
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::SecretVersion>]
645
646
  #
646
- # @raise [Google::Cloud::Error] if the RPC is aborted.
647
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
647
648
  #
648
649
  def list_secret_versions request, options = nil
649
- raise ArgumentError, "request must be provided" if request.nil?
650
+ raise ::ArgumentError, "request must be provided" if request.nil?
650
651
 
651
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::ListSecretVersionsRequest
652
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::ListSecretVersionsRequest
652
653
 
653
654
  # Converts hash and nil to an options object
654
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
655
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
655
656
 
656
657
  # Customize the options with defaults
657
658
  metadata = @config.rpcs.list_secret_versions.metadata.to_h
658
659
 
659
660
  # Set x-goog-api-client and x-goog-user-project headers
660
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
661
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
661
662
  lib_name: @config.lib_name, lib_version: @config.lib_version,
662
663
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
663
664
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -675,28 +676,28 @@ module Google
675
676
  retry_policy: @config.retry_policy
676
677
 
677
678
  @secret_manager_service_stub.call_rpc :list_secret_versions, request, options: options do |response, operation|
678
- response = Gapic::PagedEnumerable.new @secret_manager_service_stub, :list_secret_versions, request, response, operation, options
679
+ response = ::Gapic::PagedEnumerable.new @secret_manager_service_stub, :list_secret_versions, request, response, operation, options
679
680
  yield response, operation if block_given?
680
681
  return response
681
682
  end
682
- rescue GRPC::BadStatus => e
683
- raise Google::Cloud::Error.from_error(e)
683
+ rescue ::GRPC::BadStatus => e
684
+ raise ::Google::Cloud::Error.from_error(e)
684
685
  end
685
686
 
686
687
  ##
687
- # Gets metadata for a {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
688
+ # Gets metadata for a {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
688
689
  #
689
690
  # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
690
- # {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
691
+ # {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
691
692
  #
692
693
  # @overload get_secret_version(request, options = nil)
693
694
  # Pass arguments to `get_secret_version` via a request object, either of type
694
- # {Google::Cloud::SecretManager::V1beta1::GetSecretVersionRequest} or an equivalent Hash.
695
+ # {::Google::Cloud::SecretManager::V1beta1::GetSecretVersionRequest} or an equivalent Hash.
695
696
  #
696
- # @param request [Google::Cloud::SecretManager::V1beta1::GetSecretVersionRequest, Hash]
697
+ # @param request [::Google::Cloud::SecretManager::V1beta1::GetSecretVersionRequest, ::Hash]
697
698
  # A request object representing the call parameters. Required. To specify no
698
699
  # parameters, or to keep all the default parameter values, pass an empty Hash.
699
- # @param options [Gapic::CallOptions, Hash]
700
+ # @param options [::Gapic::CallOptions, ::Hash]
700
701
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
701
702
  #
702
703
  # @overload get_secret_version(name: nil)
@@ -704,33 +705,33 @@ module Google
704
705
  # least one keyword argument is required. To specify no parameters, or to keep all
705
706
  # the default parameter values, pass an empty Hash as a request object (see above).
706
707
  #
707
- # @param name [String]
708
- # Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the format
708
+ # @param name [::String]
709
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the format
709
710
  # `projects/*/secrets/*/versions/*`.
710
711
  # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
711
- # {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
712
+ # {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
712
713
  #
713
714
  # @yield [response, operation] Access the result along with the RPC operation
714
- # @yieldparam response [Google::Cloud::SecretManager::V1beta1::SecretVersion]
715
- # @yieldparam operation [GRPC::ActiveCall::Operation]
715
+ # @yieldparam response [::Google::Cloud::SecretManager::V1beta1::SecretVersion]
716
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
716
717
  #
717
- # @return [Google::Cloud::SecretManager::V1beta1::SecretVersion]
718
+ # @return [::Google::Cloud::SecretManager::V1beta1::SecretVersion]
718
719
  #
719
- # @raise [Google::Cloud::Error] if the RPC is aborted.
720
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
720
721
  #
721
722
  def get_secret_version request, options = nil
722
- raise ArgumentError, "request must be provided" if request.nil?
723
+ raise ::ArgumentError, "request must be provided" if request.nil?
723
724
 
724
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::GetSecretVersionRequest
725
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::GetSecretVersionRequest
725
726
 
726
727
  # Converts hash and nil to an options object
727
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
728
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
728
729
 
729
730
  # Customize the options with defaults
730
731
  metadata = @config.rpcs.get_secret_version.metadata.to_h
731
732
 
732
733
  # Set x-goog-api-client and x-goog-user-project headers
733
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
734
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
734
735
  lib_name: @config.lib_name, lib_version: @config.lib_version,
735
736
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
736
737
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -751,24 +752,24 @@ module Google
751
752
  yield response, operation if block_given?
752
753
  return response
753
754
  end
754
- rescue GRPC::BadStatus => e
755
- raise Google::Cloud::Error.from_error(e)
755
+ rescue ::GRPC::BadStatus => e
756
+ raise ::Google::Cloud::Error.from_error(e)
756
757
  end
757
758
 
758
759
  ##
759
- # Accesses a {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}. This call returns the secret data.
760
+ # Accesses a {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}. This call returns the secret data.
760
761
  #
761
762
  # `projects/*/secrets/*/versions/latest` is an alias to the `latest`
762
- # {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
763
+ # {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
763
764
  #
764
765
  # @overload access_secret_version(request, options = nil)
765
766
  # Pass arguments to `access_secret_version` via a request object, either of type
766
- # {Google::Cloud::SecretManager::V1beta1::AccessSecretVersionRequest} or an equivalent Hash.
767
+ # {::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionRequest} or an equivalent Hash.
767
768
  #
768
- # @param request [Google::Cloud::SecretManager::V1beta1::AccessSecretVersionRequest, Hash]
769
+ # @param request [::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionRequest, ::Hash]
769
770
  # A request object representing the call parameters. Required. To specify no
770
771
  # parameters, or to keep all the default parameter values, pass an empty Hash.
771
- # @param options [Gapic::CallOptions, Hash]
772
+ # @param options [::Gapic::CallOptions, ::Hash]
772
773
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
773
774
  #
774
775
  # @overload access_secret_version(name: nil)
@@ -776,31 +777,31 @@ module Google
776
777
  # least one keyword argument is required. To specify no parameters, or to keep all
777
778
  # the default parameter values, pass an empty Hash as a request object (see above).
778
779
  #
779
- # @param name [String]
780
- # Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the format
780
+ # @param name [::String]
781
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} in the format
781
782
  # `projects/*/secrets/*/versions/*`.
782
783
  #
783
784
  # @yield [response, operation] Access the result along with the RPC operation
784
- # @yieldparam response [Google::Cloud::SecretManager::V1beta1::AccessSecretVersionResponse]
785
- # @yieldparam operation [GRPC::ActiveCall::Operation]
785
+ # @yieldparam response [::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionResponse]
786
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
786
787
  #
787
- # @return [Google::Cloud::SecretManager::V1beta1::AccessSecretVersionResponse]
788
+ # @return [::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionResponse]
788
789
  #
789
- # @raise [Google::Cloud::Error] if the RPC is aborted.
790
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
790
791
  #
791
792
  def access_secret_version request, options = nil
792
- raise ArgumentError, "request must be provided" if request.nil?
793
+ raise ::ArgumentError, "request must be provided" if request.nil?
793
794
 
794
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::AccessSecretVersionRequest
795
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionRequest
795
796
 
796
797
  # Converts hash and nil to an options object
797
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
798
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
798
799
 
799
800
  # Customize the options with defaults
800
801
  metadata = @config.rpcs.access_secret_version.metadata.to_h
801
802
 
802
803
  # Set x-goog-api-client and x-goog-user-project headers
803
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
804
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
804
805
  lib_name: @config.lib_name, lib_version: @config.lib_version,
805
806
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
806
807
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -821,24 +822,24 @@ module Google
821
822
  yield response, operation if block_given?
822
823
  return response
823
824
  end
824
- rescue GRPC::BadStatus => e
825
- raise Google::Cloud::Error.from_error(e)
825
+ rescue ::GRPC::BadStatus => e
826
+ raise ::Google::Cloud::Error.from_error(e)
826
827
  end
827
828
 
828
829
  ##
829
- # Disables a {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
830
+ # Disables a {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
830
831
  #
831
- # Sets the {Google::Cloud::SecretManager::V1beta1::SecretVersion#state state} of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to
832
- # {Google::Cloud::SecretManager::V1beta1::SecretVersion::State::DISABLED DISABLED}.
832
+ # Sets the {::Google::Cloud::SecretManager::V1beta1::SecretVersion#state state} of the {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to
833
+ # {::Google::Cloud::SecretManager::V1beta1::SecretVersion::State::DISABLED DISABLED}.
833
834
  #
834
835
  # @overload disable_secret_version(request, options = nil)
835
836
  # Pass arguments to `disable_secret_version` via a request object, either of type
836
- # {Google::Cloud::SecretManager::V1beta1::DisableSecretVersionRequest} or an equivalent Hash.
837
+ # {::Google::Cloud::SecretManager::V1beta1::DisableSecretVersionRequest} or an equivalent Hash.
837
838
  #
838
- # @param request [Google::Cloud::SecretManager::V1beta1::DisableSecretVersionRequest, Hash]
839
+ # @param request [::Google::Cloud::SecretManager::V1beta1::DisableSecretVersionRequest, ::Hash]
839
840
  # A request object representing the call parameters. Required. To specify no
840
841
  # parameters, or to keep all the default parameter values, pass an empty Hash.
841
- # @param options [Gapic::CallOptions, Hash]
842
+ # @param options [::Gapic::CallOptions, ::Hash]
842
843
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
843
844
  #
844
845
  # @overload disable_secret_version(name: nil)
@@ -846,31 +847,31 @@ module Google
846
847
  # least one keyword argument is required. To specify no parameters, or to keep all
847
848
  # the default parameter values, pass an empty Hash as a request object (see above).
848
849
  #
849
- # @param name [String]
850
- # Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to disable in the format
850
+ # @param name [::String]
851
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to disable in the format
851
852
  # `projects/*/secrets/*/versions/*`.
852
853
  #
853
854
  # @yield [response, operation] Access the result along with the RPC operation
854
- # @yieldparam response [Google::Cloud::SecretManager::V1beta1::SecretVersion]
855
- # @yieldparam operation [GRPC::ActiveCall::Operation]
855
+ # @yieldparam response [::Google::Cloud::SecretManager::V1beta1::SecretVersion]
856
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
856
857
  #
857
- # @return [Google::Cloud::SecretManager::V1beta1::SecretVersion]
858
+ # @return [::Google::Cloud::SecretManager::V1beta1::SecretVersion]
858
859
  #
859
- # @raise [Google::Cloud::Error] if the RPC is aborted.
860
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
860
861
  #
861
862
  def disable_secret_version request, options = nil
862
- raise ArgumentError, "request must be provided" if request.nil?
863
+ raise ::ArgumentError, "request must be provided" if request.nil?
863
864
 
864
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::DisableSecretVersionRequest
865
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::DisableSecretVersionRequest
865
866
 
866
867
  # Converts hash and nil to an options object
867
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
868
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
868
869
 
869
870
  # Customize the options with defaults
870
871
  metadata = @config.rpcs.disable_secret_version.metadata.to_h
871
872
 
872
873
  # Set x-goog-api-client and x-goog-user-project headers
873
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
874
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
874
875
  lib_name: @config.lib_name, lib_version: @config.lib_version,
875
876
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
876
877
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -891,24 +892,24 @@ module Google
891
892
  yield response, operation if block_given?
892
893
  return response
893
894
  end
894
- rescue GRPC::BadStatus => e
895
- raise Google::Cloud::Error.from_error(e)
895
+ rescue ::GRPC::BadStatus => e
896
+ raise ::Google::Cloud::Error.from_error(e)
896
897
  end
897
898
 
898
899
  ##
899
- # Enables a {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
900
+ # Enables a {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
900
901
  #
901
- # Sets the {Google::Cloud::SecretManager::V1beta1::SecretVersion#state state} of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to
902
- # {Google::Cloud::SecretManager::V1beta1::SecretVersion::State::ENABLED ENABLED}.
902
+ # Sets the {::Google::Cloud::SecretManager::V1beta1::SecretVersion#state state} of the {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to
903
+ # {::Google::Cloud::SecretManager::V1beta1::SecretVersion::State::ENABLED ENABLED}.
903
904
  #
904
905
  # @overload enable_secret_version(request, options = nil)
905
906
  # Pass arguments to `enable_secret_version` via a request object, either of type
906
- # {Google::Cloud::SecretManager::V1beta1::EnableSecretVersionRequest} or an equivalent Hash.
907
+ # {::Google::Cloud::SecretManager::V1beta1::EnableSecretVersionRequest} or an equivalent Hash.
907
908
  #
908
- # @param request [Google::Cloud::SecretManager::V1beta1::EnableSecretVersionRequest, Hash]
909
+ # @param request [::Google::Cloud::SecretManager::V1beta1::EnableSecretVersionRequest, ::Hash]
909
910
  # A request object representing the call parameters. Required. To specify no
910
911
  # parameters, or to keep all the default parameter values, pass an empty Hash.
911
- # @param options [Gapic::CallOptions, Hash]
912
+ # @param options [::Gapic::CallOptions, ::Hash]
912
913
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
913
914
  #
914
915
  # @overload enable_secret_version(name: nil)
@@ -916,31 +917,31 @@ module Google
916
917
  # least one keyword argument is required. To specify no parameters, or to keep all
917
918
  # the default parameter values, pass an empty Hash as a request object (see above).
918
919
  #
919
- # @param name [String]
920
- # Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to enable in the format
920
+ # @param name [::String]
921
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to enable in the format
921
922
  # `projects/*/secrets/*/versions/*`.
922
923
  #
923
924
  # @yield [response, operation] Access the result along with the RPC operation
924
- # @yieldparam response [Google::Cloud::SecretManager::V1beta1::SecretVersion]
925
- # @yieldparam operation [GRPC::ActiveCall::Operation]
925
+ # @yieldparam response [::Google::Cloud::SecretManager::V1beta1::SecretVersion]
926
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
926
927
  #
927
- # @return [Google::Cloud::SecretManager::V1beta1::SecretVersion]
928
+ # @return [::Google::Cloud::SecretManager::V1beta1::SecretVersion]
928
929
  #
929
- # @raise [Google::Cloud::Error] if the RPC is aborted.
930
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
930
931
  #
931
932
  def enable_secret_version request, options = nil
932
- raise ArgumentError, "request must be provided" if request.nil?
933
+ raise ::ArgumentError, "request must be provided" if request.nil?
933
934
 
934
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::EnableSecretVersionRequest
935
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::EnableSecretVersionRequest
935
936
 
936
937
  # Converts hash and nil to an options object
937
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
938
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
938
939
 
939
940
  # Customize the options with defaults
940
941
  metadata = @config.rpcs.enable_secret_version.metadata.to_h
941
942
 
942
943
  # Set x-goog-api-client and x-goog-user-project headers
943
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
944
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
944
945
  lib_name: @config.lib_name, lib_version: @config.lib_version,
945
946
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
946
947
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -961,25 +962,25 @@ module Google
961
962
  yield response, operation if block_given?
962
963
  return response
963
964
  end
964
- rescue GRPC::BadStatus => e
965
- raise Google::Cloud::Error.from_error(e)
965
+ rescue ::GRPC::BadStatus => e
966
+ raise ::Google::Cloud::Error.from_error(e)
966
967
  end
967
968
 
968
969
  ##
969
- # Destroys a {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
970
+ # Destroys a {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion}.
970
971
  #
971
- # Sets the {Google::Cloud::SecretManager::V1beta1::SecretVersion#state state} of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to
972
- # {Google::Cloud::SecretManager::V1beta1::SecretVersion::State::DESTROYED DESTROYED} and irrevocably destroys the
972
+ # Sets the {::Google::Cloud::SecretManager::V1beta1::SecretVersion#state state} of the {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to
973
+ # {::Google::Cloud::SecretManager::V1beta1::SecretVersion::State::DESTROYED DESTROYED} and irrevocably destroys the
973
974
  # secret data.
974
975
  #
975
976
  # @overload destroy_secret_version(request, options = nil)
976
977
  # Pass arguments to `destroy_secret_version` via a request object, either of type
977
- # {Google::Cloud::SecretManager::V1beta1::DestroySecretVersionRequest} or an equivalent Hash.
978
+ # {::Google::Cloud::SecretManager::V1beta1::DestroySecretVersionRequest} or an equivalent Hash.
978
979
  #
979
- # @param request [Google::Cloud::SecretManager::V1beta1::DestroySecretVersionRequest, Hash]
980
+ # @param request [::Google::Cloud::SecretManager::V1beta1::DestroySecretVersionRequest, ::Hash]
980
981
  # A request object representing the call parameters. Required. To specify no
981
982
  # parameters, or to keep all the default parameter values, pass an empty Hash.
982
- # @param options [Gapic::CallOptions, Hash]
983
+ # @param options [::Gapic::CallOptions, ::Hash]
983
984
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
984
985
  #
985
986
  # @overload destroy_secret_version(name: nil)
@@ -987,31 +988,31 @@ module Google
987
988
  # least one keyword argument is required. To specify no parameters, or to keep all
988
989
  # the default parameter values, pass an empty Hash as a request object (see above).
989
990
  #
990
- # @param name [String]
991
- # Required. The resource name of the {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to destroy in the format
991
+ # @param name [::String]
992
+ # Required. The resource name of the {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersion} to destroy in the format
992
993
  # `projects/*/secrets/*/versions/*`.
993
994
  #
994
995
  # @yield [response, operation] Access the result along with the RPC operation
995
- # @yieldparam response [Google::Cloud::SecretManager::V1beta1::SecretVersion]
996
- # @yieldparam operation [GRPC::ActiveCall::Operation]
996
+ # @yieldparam response [::Google::Cloud::SecretManager::V1beta1::SecretVersion]
997
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
997
998
  #
998
- # @return [Google::Cloud::SecretManager::V1beta1::SecretVersion]
999
+ # @return [::Google::Cloud::SecretManager::V1beta1::SecretVersion]
999
1000
  #
1000
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1001
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1001
1002
  #
1002
1003
  def destroy_secret_version request, options = nil
1003
- raise ArgumentError, "request must be provided" if request.nil?
1004
+ raise ::ArgumentError, "request must be provided" if request.nil?
1004
1005
 
1005
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecretManager::V1beta1::DestroySecretVersionRequest
1006
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecretManager::V1beta1::DestroySecretVersionRequest
1006
1007
 
1007
1008
  # Converts hash and nil to an options object
1008
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1009
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1009
1010
 
1010
1011
  # Customize the options with defaults
1011
1012
  metadata = @config.rpcs.destroy_secret_version.metadata.to_h
1012
1013
 
1013
1014
  # Set x-goog-api-client and x-goog-user-project headers
1014
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1015
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1015
1016
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1016
1017
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1017
1018
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1032,25 +1033,25 @@ module Google
1032
1033
  yield response, operation if block_given?
1033
1034
  return response
1034
1035
  end
1035
- rescue GRPC::BadStatus => e
1036
- raise Google::Cloud::Error.from_error(e)
1036
+ rescue ::GRPC::BadStatus => e
1037
+ raise ::Google::Cloud::Error.from_error(e)
1037
1038
  end
1038
1039
 
1039
1040
  ##
1040
1041
  # Sets the access control policy on the specified secret. Replaces any
1041
1042
  # existing policy.
1042
1043
  #
1043
- # Permissions on {Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions} are enforced according
1044
- # to the policy set on the associated {Google::Cloud::SecretManager::V1beta1::Secret Secret}.
1044
+ # Permissions on {::Google::Cloud::SecretManager::V1beta1::SecretVersion SecretVersions} are enforced according
1045
+ # to the policy set on the associated {::Google::Cloud::SecretManager::V1beta1::Secret Secret}.
1045
1046
  #
1046
1047
  # @overload set_iam_policy(request, options = nil)
1047
1048
  # Pass arguments to `set_iam_policy` via a request object, either of type
1048
- # {Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
1049
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
1049
1050
  #
1050
- # @param request [Google::Iam::V1::SetIamPolicyRequest, Hash]
1051
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
1051
1052
  # A request object representing the call parameters. Required. To specify no
1052
1053
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1053
- # @param options [Gapic::CallOptions, Hash]
1054
+ # @param options [::Gapic::CallOptions, ::Hash]
1054
1055
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1055
1056
  #
1056
1057
  # @overload set_iam_policy(resource: nil, policy: nil)
@@ -1058,36 +1059,36 @@ module Google
1058
1059
  # least one keyword argument is required. To specify no parameters, or to keep all
1059
1060
  # the default parameter values, pass an empty Hash as a request object (see above).
1060
1061
  #
1061
- # @param resource [String]
1062
+ # @param resource [::String]
1062
1063
  # REQUIRED: The resource for which the policy is being specified.
1063
1064
  # See the operation documentation for the appropriate value for this field.
1064
- # @param policy [Google::Iam::V1::Policy, Hash]
1065
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
1065
1066
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
1066
1067
  # the policy is limited to a few 10s of KB. An empty policy is a
1067
1068
  # valid policy but certain Cloud Platform services (such as Projects)
1068
1069
  # might reject them.
1069
1070
  #
1070
1071
  # @yield [response, operation] Access the result along with the RPC operation
1071
- # @yieldparam response [Google::Iam::V1::Policy]
1072
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1072
+ # @yieldparam response [::Google::Iam::V1::Policy]
1073
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1073
1074
  #
1074
- # @return [Google::Iam::V1::Policy]
1075
+ # @return [::Google::Iam::V1::Policy]
1075
1076
  #
1076
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1077
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1077
1078
  #
1078
1079
  def set_iam_policy request, options = nil
1079
- raise ArgumentError, "request must be provided" if request.nil?
1080
+ raise ::ArgumentError, "request must be provided" if request.nil?
1080
1081
 
1081
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::SetIamPolicyRequest
1082
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
1082
1083
 
1083
1084
  # Converts hash and nil to an options object
1084
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1085
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1085
1086
 
1086
1087
  # Customize the options with defaults
1087
1088
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1088
1089
 
1089
1090
  # Set x-goog-api-client and x-goog-user-project headers
1090
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1091
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1091
1092
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1092
1093
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1093
1094
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1108,8 +1109,8 @@ module Google
1108
1109
  yield response, operation if block_given?
1109
1110
  return response
1110
1111
  end
1111
- rescue GRPC::BadStatus => e
1112
- raise Google::Cloud::Error.from_error(e)
1112
+ rescue ::GRPC::BadStatus => e
1113
+ raise ::Google::Cloud::Error.from_error(e)
1113
1114
  end
1114
1115
 
1115
1116
  ##
@@ -1118,12 +1119,12 @@ module Google
1118
1119
  #
1119
1120
  # @overload get_iam_policy(request, options = nil)
1120
1121
  # Pass arguments to `get_iam_policy` via a request object, either of type
1121
- # {Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
1122
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
1122
1123
  #
1123
- # @param request [Google::Iam::V1::GetIamPolicyRequest, Hash]
1124
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
1124
1125
  # A request object representing the call parameters. Required. To specify no
1125
1126
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1126
- # @param options [Gapic::CallOptions, Hash]
1127
+ # @param options [::Gapic::CallOptions, ::Hash]
1127
1128
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1128
1129
  #
1129
1130
  # @overload get_iam_policy(resource: nil, options: nil)
@@ -1131,34 +1132,34 @@ module Google
1131
1132
  # least one keyword argument is required. To specify no parameters, or to keep all
1132
1133
  # the default parameter values, pass an empty Hash as a request object (see above).
1133
1134
  #
1134
- # @param resource [String]
1135
+ # @param resource [::String]
1135
1136
  # REQUIRED: The resource for which the policy is being requested.
1136
1137
  # See the operation documentation for the appropriate value for this field.
1137
- # @param options [Google::Iam::V1::GetPolicyOptions, Hash]
1138
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
1138
1139
  # OPTIONAL: A `GetPolicyOptions` object for specifying options to
1139
1140
  # `GetIamPolicy`. This field is only used by Cloud IAM.
1140
1141
  #
1141
1142
  # @yield [response, operation] Access the result along with the RPC operation
1142
- # @yieldparam response [Google::Iam::V1::Policy]
1143
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1143
+ # @yieldparam response [::Google::Iam::V1::Policy]
1144
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1144
1145
  #
1145
- # @return [Google::Iam::V1::Policy]
1146
+ # @return [::Google::Iam::V1::Policy]
1146
1147
  #
1147
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1148
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1148
1149
  #
1149
1150
  def get_iam_policy request, options = nil
1150
- raise ArgumentError, "request must be provided" if request.nil?
1151
+ raise ::ArgumentError, "request must be provided" if request.nil?
1151
1152
 
1152
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::GetIamPolicyRequest
1153
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
1153
1154
 
1154
1155
  # Converts hash and nil to an options object
1155
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1156
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1156
1157
 
1157
1158
  # Customize the options with defaults
1158
1159
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1159
1160
 
1160
1161
  # Set x-goog-api-client and x-goog-user-project headers
1161
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1162
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1162
1163
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1163
1164
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1164
1165
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1179,8 +1180,8 @@ module Google
1179
1180
  yield response, operation if block_given?
1180
1181
  return response
1181
1182
  end
1182
- rescue GRPC::BadStatus => e
1183
- raise Google::Cloud::Error.from_error(e)
1183
+ rescue ::GRPC::BadStatus => e
1184
+ raise ::Google::Cloud::Error.from_error(e)
1184
1185
  end
1185
1186
 
1186
1187
  ##
@@ -1194,12 +1195,12 @@ module Google
1194
1195
  #
1195
1196
  # @overload test_iam_permissions(request, options = nil)
1196
1197
  # Pass arguments to `test_iam_permissions` via a request object, either of type
1197
- # {Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
1198
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
1198
1199
  #
1199
- # @param request [Google::Iam::V1::TestIamPermissionsRequest, Hash]
1200
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
1200
1201
  # A request object representing the call parameters. Required. To specify no
1201
1202
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1202
- # @param options [Gapic::CallOptions, Hash]
1203
+ # @param options [::Gapic::CallOptions, ::Hash]
1203
1204
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1204
1205
  #
1205
1206
  # @overload test_iam_permissions(resource: nil, permissions: nil)
@@ -1207,36 +1208,36 @@ module Google
1207
1208
  # least one keyword argument is required. To specify no parameters, or to keep all
1208
1209
  # the default parameter values, pass an empty Hash as a request object (see above).
1209
1210
  #
1210
- # @param resource [String]
1211
+ # @param resource [::String]
1211
1212
  # REQUIRED: The resource for which the policy detail is being requested.
1212
1213
  # See the operation documentation for the appropriate value for this field.
1213
- # @param permissions [Array<String>]
1214
+ # @param permissions [::Array<::String>]
1214
1215
  # The set of permissions to check for the `resource`. Permissions with
1215
1216
  # wildcards (such as '*' or 'storage.*') are not allowed. For more
1216
1217
  # information see
1217
1218
  # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1218
1219
  #
1219
1220
  # @yield [response, operation] Access the result along with the RPC operation
1220
- # @yieldparam response [Google::Iam::V1::TestIamPermissionsResponse]
1221
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1221
+ # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
1222
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1222
1223
  #
1223
- # @return [Google::Iam::V1::TestIamPermissionsResponse]
1224
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1224
1225
  #
1225
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1226
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1226
1227
  #
1227
1228
  def test_iam_permissions request, options = nil
1228
- raise ArgumentError, "request must be provided" if request.nil?
1229
+ raise ::ArgumentError, "request must be provided" if request.nil?
1229
1230
 
1230
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::TestIamPermissionsRequest
1231
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
1231
1232
 
1232
1233
  # Converts hash and nil to an options object
1233
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1234
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1234
1235
 
1235
1236
  # Customize the options with defaults
1236
1237
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1237
1238
 
1238
1239
  # Set x-goog-api-client and x-goog-user-project headers
1239
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1240
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1240
1241
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1241
1242
  gapic_version: ::Google::Cloud::SecretManager::V1beta1::VERSION
1242
1243
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1257,8 +1258,8 @@ module Google
1257
1258
  yield response, operation if block_given?
1258
1259
  return response
1259
1260
  end
1260
- rescue GRPC::BadStatus => e
1261
- raise Google::Cloud::Error.from_error(e)
1261
+ rescue ::GRPC::BadStatus => e
1262
+ raise ::Google::Cloud::Error.from_error(e)
1262
1263
  end
1263
1264
 
1264
1265
  ##
@@ -1268,7 +1269,7 @@ module Google
1268
1269
  # providing control over timeouts, retry behavior, logging, transport
1269
1270
  # parameters, and other low-level controls. Certain parameters can also be
1270
1271
  # applied individually to specific RPCs. See
1271
- # {Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client::Configuration::Rpcs}
1272
+ # {::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client::Configuration::Rpcs}
1272
1273
  # for a list of RPCs that can be configured independently.
1273
1274
  #
1274
1275
  # Configuration can be applied globally to all clients, or to a single client
@@ -1279,22 +1280,22 @@ module Google
1279
1280
  # To modify the global config, setting the timeout for list_secrets
1280
1281
  # to 20 seconds, and all remaining timeouts to 10 seconds:
1281
1282
  #
1282
- # Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.configure do |config|
1283
- # config.timeout = 10_000
1284
- # config.rpcs.list_secrets.timeout = 20_000
1283
+ # ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.configure do |config|
1284
+ # config.timeout = 10.0
1285
+ # config.rpcs.list_secrets.timeout = 20.0
1285
1286
  # end
1286
1287
  #
1287
1288
  # To apply the above configuration only to a new client:
1288
1289
  #
1289
- # client = Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new do |config|
1290
- # config.timeout = 10_000
1291
- # config.rpcs.list_secrets.timeout = 20_000
1290
+ # client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client.new do |config|
1291
+ # config.timeout = 10.0
1292
+ # config.rpcs.list_secrets.timeout = 20.0
1292
1293
  # end
1293
1294
  #
1294
1295
  # @!attribute [rw] endpoint
1295
1296
  # The hostname or hostname:port of the service endpoint.
1296
1297
  # Defaults to `"secretmanager.googleapis.com"`.
1297
- # @return [String]
1298
+ # @return [::String]
1298
1299
  # @!attribute [rw] credentials
1299
1300
  # Credentials to send with calls. You may provide any of the following types:
1300
1301
  # * (`String`) The path to a service account key file in JSON format
@@ -1306,29 +1307,29 @@ module Google
1306
1307
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1307
1308
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1308
1309
  # * (`nil`) indicating no credentials
1309
- # @return [Object]
1310
+ # @return [::Object]
1310
1311
  # @!attribute [rw] scope
1311
1312
  # The OAuth scopes
1312
- # @return [Array<String>]
1313
+ # @return [::Array<::String>]
1313
1314
  # @!attribute [rw] lib_name
1314
1315
  # The library name as recorded in instrumentation and logging
1315
- # @return [String]
1316
+ # @return [::String]
1316
1317
  # @!attribute [rw] lib_version
1317
1318
  # The library version as recorded in instrumentation and logging
1318
- # @return [String]
1319
+ # @return [::String]
1319
1320
  # @!attribute [rw] channel_args
1320
1321
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
1321
1322
  # `GRPC::Core::Channel` object is provided as the credential.
1322
- # @return [Hash]
1323
+ # @return [::Hash]
1323
1324
  # @!attribute [rw] interceptors
1324
1325
  # An array of interceptors that are run before calls are executed.
1325
- # @return [Array<GRPC::ClientInterceptor>]
1326
+ # @return [::Array<::GRPC::ClientInterceptor>]
1326
1327
  # @!attribute [rw] timeout
1327
- # The call timeout in milliseconds.
1328
- # @return [Numeric]
1328
+ # The call timeout in seconds.
1329
+ # @return [::Numeric]
1329
1330
  # @!attribute [rw] metadata
1330
1331
  # Additional gRPC headers to be sent with the call.
1331
- # @return [Hash{Symbol=>String}]
1332
+ # @return [::Hash{::Symbol=>::String}]
1332
1333
  # @!attribute [rw] retry_policy
1333
1334
  # The retry policy. The value is a hash with the following keys:
1334
1335
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -1336,25 +1337,29 @@ module Google
1336
1337
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1337
1338
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1338
1339
  # trigger a retry.
1339
- # @return [Hash]
1340
+ # @return [::Hash]
1341
+ # @!attribute [rw] quota_project
1342
+ # A separate project against which to charge quota.
1343
+ # @return [::String]
1340
1344
  #
1341
1345
  class Configuration
1342
- extend Gapic::Config
1346
+ extend ::Gapic::Config
1343
1347
 
1344
- config_attr :endpoint, "secretmanager.googleapis.com", String
1345
- config_attr :credentials, nil do |value|
1348
+ config_attr :endpoint, "secretmanager.googleapis.com", ::String
1349
+ config_attr :credentials, nil do |value|
1346
1350
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1347
1351
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1348
1352
  allowed.any? { |klass| klass === value }
1349
1353
  end
1350
- config_attr :scope, nil, String, Array, nil
1351
- config_attr :lib_name, nil, String, nil
1352
- config_attr :lib_version, nil, String, nil
1353
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
1354
- config_attr :interceptors, nil, Array, nil
1355
- config_attr :timeout, nil, Numeric, nil
1356
- config_attr :metadata, nil, Hash, nil
1357
- config_attr :retry_policy, nil, Hash, Proc, nil
1354
+ config_attr :scope, nil, ::String, ::Array, nil
1355
+ config_attr :lib_name, nil, ::String, nil
1356
+ config_attr :lib_version, nil, ::String, nil
1357
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1358
+ config_attr :interceptors, nil, ::Array, nil
1359
+ config_attr :timeout, nil, ::Numeric, nil
1360
+ config_attr :metadata, nil, ::Hash, nil
1361
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1362
+ config_attr :quota_project, nil, ::String, nil
1358
1363
 
1359
1364
  # @private
1360
1365
  def initialize parent_config = nil
@@ -1370,7 +1375,7 @@ module Google
1370
1375
  def rpcs
1371
1376
  @rpcs ||= begin
1372
1377
  parent_rpcs = nil
1373
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
1378
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
1374
1379
  Rpcs.new parent_rpcs
1375
1380
  end
1376
1381
  end
@@ -1395,112 +1400,112 @@ module Google
1395
1400
  class Rpcs
1396
1401
  ##
1397
1402
  # RPC-specific configuration for `list_secrets`
1398
- # @return [Gapic::Config::Method]
1403
+ # @return [::Gapic::Config::Method]
1399
1404
  #
1400
1405
  attr_reader :list_secrets
1401
1406
  ##
1402
1407
  # RPC-specific configuration for `create_secret`
1403
- # @return [Gapic::Config::Method]
1408
+ # @return [::Gapic::Config::Method]
1404
1409
  #
1405
1410
  attr_reader :create_secret
1406
1411
  ##
1407
1412
  # RPC-specific configuration for `add_secret_version`
1408
- # @return [Gapic::Config::Method]
1413
+ # @return [::Gapic::Config::Method]
1409
1414
  #
1410
1415
  attr_reader :add_secret_version
1411
1416
  ##
1412
1417
  # RPC-specific configuration for `get_secret`
1413
- # @return [Gapic::Config::Method]
1418
+ # @return [::Gapic::Config::Method]
1414
1419
  #
1415
1420
  attr_reader :get_secret
1416
1421
  ##
1417
1422
  # RPC-specific configuration for `update_secret`
1418
- # @return [Gapic::Config::Method]
1423
+ # @return [::Gapic::Config::Method]
1419
1424
  #
1420
1425
  attr_reader :update_secret
1421
1426
  ##
1422
1427
  # RPC-specific configuration for `delete_secret`
1423
- # @return [Gapic::Config::Method]
1428
+ # @return [::Gapic::Config::Method]
1424
1429
  #
1425
1430
  attr_reader :delete_secret
1426
1431
  ##
1427
1432
  # RPC-specific configuration for `list_secret_versions`
1428
- # @return [Gapic::Config::Method]
1433
+ # @return [::Gapic::Config::Method]
1429
1434
  #
1430
1435
  attr_reader :list_secret_versions
1431
1436
  ##
1432
1437
  # RPC-specific configuration for `get_secret_version`
1433
- # @return [Gapic::Config::Method]
1438
+ # @return [::Gapic::Config::Method]
1434
1439
  #
1435
1440
  attr_reader :get_secret_version
1436
1441
  ##
1437
1442
  # RPC-specific configuration for `access_secret_version`
1438
- # @return [Gapic::Config::Method]
1443
+ # @return [::Gapic::Config::Method]
1439
1444
  #
1440
1445
  attr_reader :access_secret_version
1441
1446
  ##
1442
1447
  # RPC-specific configuration for `disable_secret_version`
1443
- # @return [Gapic::Config::Method]
1448
+ # @return [::Gapic::Config::Method]
1444
1449
  #
1445
1450
  attr_reader :disable_secret_version
1446
1451
  ##
1447
1452
  # RPC-specific configuration for `enable_secret_version`
1448
- # @return [Gapic::Config::Method]
1453
+ # @return [::Gapic::Config::Method]
1449
1454
  #
1450
1455
  attr_reader :enable_secret_version
1451
1456
  ##
1452
1457
  # RPC-specific configuration for `destroy_secret_version`
1453
- # @return [Gapic::Config::Method]
1458
+ # @return [::Gapic::Config::Method]
1454
1459
  #
1455
1460
  attr_reader :destroy_secret_version
1456
1461
  ##
1457
1462
  # RPC-specific configuration for `set_iam_policy`
1458
- # @return [Gapic::Config::Method]
1463
+ # @return [::Gapic::Config::Method]
1459
1464
  #
1460
1465
  attr_reader :set_iam_policy
1461
1466
  ##
1462
1467
  # RPC-specific configuration for `get_iam_policy`
1463
- # @return [Gapic::Config::Method]
1468
+ # @return [::Gapic::Config::Method]
1464
1469
  #
1465
1470
  attr_reader :get_iam_policy
1466
1471
  ##
1467
1472
  # RPC-specific configuration for `test_iam_permissions`
1468
- # @return [Gapic::Config::Method]
1473
+ # @return [::Gapic::Config::Method]
1469
1474
  #
1470
1475
  attr_reader :test_iam_permissions
1471
1476
 
1472
1477
  # @private
1473
1478
  def initialize parent_rpcs = nil
1474
1479
  list_secrets_config = parent_rpcs&.list_secrets if parent_rpcs&.respond_to? :list_secrets
1475
- @list_secrets = Gapic::Config::Method.new list_secrets_config
1480
+ @list_secrets = ::Gapic::Config::Method.new list_secrets_config
1476
1481
  create_secret_config = parent_rpcs&.create_secret if parent_rpcs&.respond_to? :create_secret
1477
- @create_secret = Gapic::Config::Method.new create_secret_config
1482
+ @create_secret = ::Gapic::Config::Method.new create_secret_config
1478
1483
  add_secret_version_config = parent_rpcs&.add_secret_version if parent_rpcs&.respond_to? :add_secret_version
1479
- @add_secret_version = Gapic::Config::Method.new add_secret_version_config
1484
+ @add_secret_version = ::Gapic::Config::Method.new add_secret_version_config
1480
1485
  get_secret_config = parent_rpcs&.get_secret if parent_rpcs&.respond_to? :get_secret
1481
- @get_secret = Gapic::Config::Method.new get_secret_config
1486
+ @get_secret = ::Gapic::Config::Method.new get_secret_config
1482
1487
  update_secret_config = parent_rpcs&.update_secret if parent_rpcs&.respond_to? :update_secret
1483
- @update_secret = Gapic::Config::Method.new update_secret_config
1488
+ @update_secret = ::Gapic::Config::Method.new update_secret_config
1484
1489
  delete_secret_config = parent_rpcs&.delete_secret if parent_rpcs&.respond_to? :delete_secret
1485
- @delete_secret = Gapic::Config::Method.new delete_secret_config
1490
+ @delete_secret = ::Gapic::Config::Method.new delete_secret_config
1486
1491
  list_secret_versions_config = parent_rpcs&.list_secret_versions if parent_rpcs&.respond_to? :list_secret_versions
1487
- @list_secret_versions = Gapic::Config::Method.new list_secret_versions_config
1492
+ @list_secret_versions = ::Gapic::Config::Method.new list_secret_versions_config
1488
1493
  get_secret_version_config = parent_rpcs&.get_secret_version if parent_rpcs&.respond_to? :get_secret_version
1489
- @get_secret_version = Gapic::Config::Method.new get_secret_version_config
1494
+ @get_secret_version = ::Gapic::Config::Method.new get_secret_version_config
1490
1495
  access_secret_version_config = parent_rpcs&.access_secret_version if parent_rpcs&.respond_to? :access_secret_version
1491
- @access_secret_version = Gapic::Config::Method.new access_secret_version_config
1496
+ @access_secret_version = ::Gapic::Config::Method.new access_secret_version_config
1492
1497
  disable_secret_version_config = parent_rpcs&.disable_secret_version if parent_rpcs&.respond_to? :disable_secret_version
1493
- @disable_secret_version = Gapic::Config::Method.new disable_secret_version_config
1498
+ @disable_secret_version = ::Gapic::Config::Method.new disable_secret_version_config
1494
1499
  enable_secret_version_config = parent_rpcs&.enable_secret_version if parent_rpcs&.respond_to? :enable_secret_version
1495
- @enable_secret_version = Gapic::Config::Method.new enable_secret_version_config
1500
+ @enable_secret_version = ::Gapic::Config::Method.new enable_secret_version_config
1496
1501
  destroy_secret_version_config = parent_rpcs&.destroy_secret_version if parent_rpcs&.respond_to? :destroy_secret_version
1497
- @destroy_secret_version = Gapic::Config::Method.new destroy_secret_version_config
1502
+ @destroy_secret_version = ::Gapic::Config::Method.new destroy_secret_version_config
1498
1503
  set_iam_policy_config = parent_rpcs&.set_iam_policy if parent_rpcs&.respond_to? :set_iam_policy
1499
- @set_iam_policy = Gapic::Config::Method.new set_iam_policy_config
1504
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1500
1505
  get_iam_policy_config = parent_rpcs&.get_iam_policy if parent_rpcs&.respond_to? :get_iam_policy
1501
- @get_iam_policy = Gapic::Config::Method.new get_iam_policy_config
1506
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
1502
1507
  test_iam_permissions_config = parent_rpcs&.test_iam_permissions if parent_rpcs&.respond_to? :test_iam_permissions
1503
- @test_iam_permissions = Gapic::Config::Method.new test_iam_permissions_config
1508
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
1504
1509
 
1505
1510
  yield self if block_given?
1506
1511
  end