google-cloud-asset-v1beta1 0.1.1 → 0.2.1

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.
@@ -24,7 +24,7 @@ module Google
24
24
  module V1beta1
25
25
  module AssetService
26
26
  # Credentials for the AssetService API.
27
- class Credentials < Google::Auth::Credentials
27
+ class Credentials < ::Google::Auth::Credentials
28
28
  self.scope = [
29
29
  "https://www.googleapis.com/auth/cloud-platform"
30
30
  ]
@@ -16,11 +16,7 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "gapic/common"
20
19
  require "gapic/operation"
21
-
22
- require "google/cloud/asset/v1beta1/version"
23
- require "google/cloud/asset/v1beta1/asset_service/client"
24
20
  require "google/longrunning/operations_pb"
25
21
 
26
22
  module Google
@@ -89,9 +85,11 @@ module Google
89
85
  if credentials.is_a?(String) || credentials.is_a?(Hash)
90
86
  credentials = Credentials.new credentials, scope: @config.scope
91
87
  end
88
+ @quota_project_id = @config.quota_project
89
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
92
90
 
93
- @operations_stub = Gapic::ServiceStub.new(
94
- Google::Longrunning::Operations::Stub,
91
+ @operations_stub = ::Gapic::ServiceStub.new(
92
+ ::Google::Longrunning::Operations::Stub,
95
93
  credentials: credentials,
96
94
  endpoint: @config.endpoint,
97
95
  channel_args: @config.channel_args,
@@ -109,47 +107,50 @@ module Google
109
107
  # to use different resource name schemes, such as `users/*/operations`.
110
108
  #
111
109
  # @overload list_operations(request, options = nil)
112
- # @param request [Google::Longrunning::ListOperationsRequest | Hash]
113
- # Lists operations that match the specified filter in the request. If the
114
- # server doesn't support this method, it returns `UNIMPLEMENTED`.
110
+ # Pass arguments to `list_operations` via a request object, either of type
111
+ # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
115
112
  #
116
- # NOTE: the `name` binding below allows API services to override the binding
117
- # to use different resource name schemes, such as `users/*/operations`.
118
- # @param options [Gapic::CallOptions, Hash]
113
+ # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash]
114
+ # A request object representing the call parameters. Required. To specify no
115
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
116
+ # @param options [::Gapic::CallOptions, ::Hash]
119
117
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
120
118
  #
121
119
  # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
122
- # @param name [String]
120
+ # Pass arguments to `list_operations` via keyword arguments. Note that at
121
+ # least one keyword argument is required. To specify no parameters, or to keep all
122
+ # the default parameter values, pass an empty Hash as a request object (see above).
123
+ #
124
+ # @param name [::String]
123
125
  # The name of the operation collection.
124
- # @param filter [String]
126
+ # @param filter [::String]
125
127
  # The standard list filter.
126
- # @param page_size [Integer]
128
+ # @param page_size [::Integer]
127
129
  # The standard list page size.
128
- # @param page_token [String]
130
+ # @param page_token [::String]
129
131
  # The standard list page token.
130
132
  #
131
- #
132
133
  # @yield [response, operation] Access the result along with the RPC operation
133
- # @yieldparam response [Gapic::PagedEnumerable<Gapic::Operation>]
134
- # @yieldparam operation [GRPC::ActiveCall::Operation]
134
+ # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
135
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
135
136
  #
136
- # @return [Gapic::PagedEnumerable<Gapic::Operation>]
137
+ # @return [::Gapic::PagedEnumerable<::Gapic::Operation>]
137
138
  #
138
- # @raise [Google::Cloud::Error] if the RPC is aborted.
139
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
139
140
  #
140
141
  def list_operations request, options = nil
141
- raise ArgumentError, "request must be provided" if request.nil?
142
+ raise ::ArgumentError, "request must be provided" if request.nil?
142
143
 
143
- request = Gapic::Protobuf.coerce request, to: Google::Longrunning::ListOperationsRequest
144
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest
144
145
 
145
146
  # Converts hash and nil to an options object
146
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
147
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
147
148
 
148
149
  # Customize the options with defaults
149
150
  metadata = @config.rpcs.list_operations.metadata.to_h
150
151
 
151
152
  # Set x-goog-api-client and x-goog-user-project headers
152
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
153
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
153
154
  lib_name: @config.lib_name, lib_version: @config.lib_version,
154
155
  gapic_version: ::Google::Cloud::Asset::V1beta1::VERSION
155
156
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -167,13 +168,13 @@ module Google
167
168
  retry_policy: @config.retry_policy
168
169
 
169
170
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
170
- wrap_lro_operation = ->(op_response) { Gapic::Operation.new op_response, @operations_client }
171
- response = Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
171
+ wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
172
+ response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
172
173
  yield response, operation if block_given?
173
174
  return response
174
175
  end
175
- rescue GRPC::BadStatus => e
176
- raise Google::Cloud::Error.from_error(e)
176
+ rescue ::GRPC::BadStatus => e
177
+ raise ::Google::Cloud::Error.from_error(e)
177
178
  end
178
179
 
179
180
  ##
@@ -182,39 +183,44 @@ module Google
182
183
  # service.
183
184
  #
184
185
  # @overload get_operation(request, options = nil)
185
- # @param request [Google::Longrunning::GetOperationRequest | Hash]
186
- # Gets the latest state of a long-running operation. Clients can use this
187
- # method to poll the operation result at intervals as recommended by the API
188
- # service.
189
- # @param options [Gapic::CallOptions, Hash]
186
+ # Pass arguments to `get_operation` via a request object, either of type
187
+ # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash.
188
+ #
189
+ # @param request [::Google::Longrunning::GetOperationRequest, ::Hash]
190
+ # A request object representing the call parameters. Required. To specify no
191
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
192
+ # @param options [::Gapic::CallOptions, ::Hash]
190
193
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
191
194
  #
192
195
  # @overload get_operation(name: nil)
193
- # @param name [String]
194
- # The name of the operation resource.
196
+ # Pass arguments to `get_operation` via keyword arguments. Note that at
197
+ # least one keyword argument is required. To specify no parameters, or to keep all
198
+ # the default parameter values, pass an empty Hash as a request object (see above).
195
199
  #
200
+ # @param name [::String]
201
+ # The name of the operation resource.
196
202
  #
197
203
  # @yield [response, operation] Access the result along with the RPC operation
198
- # @yieldparam response [Gapic::Operation]
199
- # @yieldparam operation [GRPC::ActiveCall::Operation]
204
+ # @yieldparam response [::Gapic::Operation]
205
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
200
206
  #
201
- # @return [Gapic::Operation]
207
+ # @return [::Gapic::Operation]
202
208
  #
203
- # @raise [Google::Cloud::Error] if the RPC is aborted.
209
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
204
210
  #
205
211
  def get_operation request, options = nil
206
- raise ArgumentError, "request must be provided" if request.nil?
212
+ raise ::ArgumentError, "request must be provided" if request.nil?
207
213
 
208
- request = Gapic::Protobuf.coerce request, to: Google::Longrunning::GetOperationRequest
214
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest
209
215
 
210
216
  # Converts hash and nil to an options object
211
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
217
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
212
218
 
213
219
  # Customize the options with defaults
214
220
  metadata = @config.rpcs.get_operation.metadata.to_h
215
221
 
216
222
  # Set x-goog-api-client and x-goog-user-project headers
217
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
223
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
218
224
  lib_name: @config.lib_name, lib_version: @config.lib_version,
219
225
  gapic_version: ::Google::Cloud::Asset::V1beta1::VERSION
220
226
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -232,12 +238,12 @@ module Google
232
238
  retry_policy: @config.retry_policy
233
239
 
234
240
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
235
- response = Gapic::Operation.new response, @operations_client, options: options
241
+ response = ::Gapic::Operation.new response, @operations_client, options: options
236
242
  yield response, operation if block_given?
237
243
  return response
238
244
  end
239
- rescue GRPC::BadStatus => e
240
- raise Google::Cloud::Error.from_error(e)
245
+ rescue ::GRPC::BadStatus => e
246
+ raise ::Google::Cloud::Error.from_error(e)
241
247
  end
242
248
 
243
249
  ##
@@ -247,40 +253,44 @@ module Google
247
253
  # `google.rpc.Code.UNIMPLEMENTED`.
248
254
  #
249
255
  # @overload delete_operation(request, options = nil)
250
- # @param request [Google::Longrunning::DeleteOperationRequest | Hash]
251
- # Deletes a long-running operation. This method indicates that the client is
252
- # no longer interested in the operation result. It does not cancel the
253
- # operation. If the server doesn't support this method, it returns
254
- # `google.rpc.Code.UNIMPLEMENTED`.
255
- # @param options [Gapic::CallOptions, Hash]
256
+ # Pass arguments to `delete_operation` via a request object, either of type
257
+ # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash.
258
+ #
259
+ # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash]
260
+ # A request object representing the call parameters. Required. To specify no
261
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
262
+ # @param options [::Gapic::CallOptions, ::Hash]
256
263
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
257
264
  #
258
265
  # @overload delete_operation(name: nil)
259
- # @param name [String]
260
- # The name of the operation resource to be deleted.
266
+ # Pass arguments to `delete_operation` via keyword arguments. Note that at
267
+ # least one keyword argument is required. To specify no parameters, or to keep all
268
+ # the default parameter values, pass an empty Hash as a request object (see above).
261
269
  #
270
+ # @param name [::String]
271
+ # The name of the operation resource to be deleted.
262
272
  #
263
273
  # @yield [response, operation] Access the result along with the RPC operation
264
- # @yieldparam response [Google::Protobuf::Empty]
265
- # @yieldparam operation [GRPC::ActiveCall::Operation]
274
+ # @yieldparam response [::Google::Protobuf::Empty]
275
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
266
276
  #
267
- # @return [Google::Protobuf::Empty]
277
+ # @return [::Google::Protobuf::Empty]
268
278
  #
269
- # @raise [Google::Cloud::Error] if the RPC is aborted.
279
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
270
280
  #
271
281
  def delete_operation request, options = nil
272
- raise ArgumentError, "request must be provided" if request.nil?
282
+ raise ::ArgumentError, "request must be provided" if request.nil?
273
283
 
274
- request = Gapic::Protobuf.coerce request, to: Google::Longrunning::DeleteOperationRequest
284
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest
275
285
 
276
286
  # Converts hash and nil to an options object
277
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
287
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
278
288
 
279
289
  # Customize the options with defaults
280
290
  metadata = @config.rpcs.delete_operation.metadata.to_h
281
291
 
282
292
  # Set x-goog-api-client and x-goog-user-project headers
283
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
293
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
284
294
  lib_name: @config.lib_name, lib_version: @config.lib_version,
285
295
  gapic_version: ::Google::Cloud::Asset::V1beta1::VERSION
286
296
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -301,8 +311,8 @@ module Google
301
311
  yield response, operation if block_given?
302
312
  return response
303
313
  end
304
- rescue GRPC::BadStatus => e
305
- raise Google::Cloud::Error.from_error(e)
314
+ rescue ::GRPC::BadStatus => e
315
+ raise ::Google::Cloud::Error.from_error(e)
306
316
  end
307
317
 
308
318
  ##
@@ -314,50 +324,48 @@ module Google
314
324
  # other methods to check whether the cancellation succeeded or whether the
315
325
  # operation completed despite cancellation. On successful cancellation,
316
326
  # the operation is not deleted; instead, it becomes an operation with
317
- # an {Google::Longrunning::Operation#error Operation.error} value with a {Google::Rpc::Status#code google.rpc.Status.code} of 1,
327
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
318
328
  # corresponding to `Code.CANCELLED`.
319
329
  #
320
330
  # @overload cancel_operation(request, options = nil)
321
- # @param request [Google::Longrunning::CancelOperationRequest | Hash]
322
- # Starts asynchronous cancellation on a long-running operation. The server
323
- # makes a best effort to cancel the operation, but success is not
324
- # guaranteed. If the server doesn't support this method, it returns
325
- # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
326
- # Operations.GetOperation or
327
- # other methods to check whether the cancellation succeeded or whether the
328
- # operation completed despite cancellation. On successful cancellation,
329
- # the operation is not deleted; instead, it becomes an operation with
330
- # an {Google::Longrunning::Operation#error Operation.error} value with a {Google::Rpc::Status#code google.rpc.Status.code} of 1,
331
- # corresponding to `Code.CANCELLED`.
332
- # @param options [Gapic::CallOptions, Hash]
331
+ # Pass arguments to `cancel_operation` via a request object, either of type
332
+ # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash.
333
+ #
334
+ # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash]
335
+ # A request object representing the call parameters. Required. To specify no
336
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
337
+ # @param options [::Gapic::CallOptions, ::Hash]
333
338
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
334
339
  #
335
340
  # @overload cancel_operation(name: nil)
336
- # @param name [String]
337
- # The name of the operation resource to be cancelled.
341
+ # Pass arguments to `cancel_operation` via keyword arguments. Note that at
342
+ # least one keyword argument is required. To specify no parameters, or to keep all
343
+ # the default parameter values, pass an empty Hash as a request object (see above).
338
344
  #
345
+ # @param name [::String]
346
+ # The name of the operation resource to be cancelled.
339
347
  #
340
348
  # @yield [response, operation] Access the result along with the RPC operation
341
- # @yieldparam response [Google::Protobuf::Empty]
342
- # @yieldparam operation [GRPC::ActiveCall::Operation]
349
+ # @yieldparam response [::Google::Protobuf::Empty]
350
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
343
351
  #
344
- # @return [Google::Protobuf::Empty]
352
+ # @return [::Google::Protobuf::Empty]
345
353
  #
346
- # @raise [Google::Cloud::Error] if the RPC is aborted.
354
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
347
355
  #
348
356
  def cancel_operation request, options = nil
349
- raise ArgumentError, "request must be provided" if request.nil?
357
+ raise ::ArgumentError, "request must be provided" if request.nil?
350
358
 
351
- request = Gapic::Protobuf.coerce request, to: Google::Longrunning::CancelOperationRequest
359
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest
352
360
 
353
361
  # Converts hash and nil to an options object
354
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
362
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
355
363
 
356
364
  # Customize the options with defaults
357
365
  metadata = @config.rpcs.cancel_operation.metadata.to_h
358
366
 
359
367
  # Set x-goog-api-client and x-goog-user-project headers
360
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
368
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
361
369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
362
370
  gapic_version: ::Google::Cloud::Asset::V1beta1::VERSION
363
371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -378,8 +386,8 @@ module Google
378
386
  yield response, operation if block_given?
379
387
  return response
380
388
  end
381
- rescue GRPC::BadStatus => e
382
- raise Google::Cloud::Error.from_error(e)
389
+ rescue ::GRPC::BadStatus => e
390
+ raise ::Google::Cloud::Error.from_error(e)
383
391
  end
384
392
 
385
393
  ##
@@ -389,7 +397,7 @@ module Google
389
397
  # providing control over timeouts, retry behavior, logging, transport
390
398
  # parameters, and other low-level controls. Certain parameters can also be
391
399
  # applied individually to specific RPCs. See
392
- # {Google::Longrunning::Operations::Client::Configuration::Rpcs}
400
+ # {::Google::Longrunning::Operations::Client::Configuration::Rpcs}
393
401
  # for a list of RPCs that can be configured independently.
394
402
  #
395
403
  # Configuration can be applied globally to all clients, or to a single client
@@ -400,22 +408,22 @@ module Google
400
408
  # To modify the global config, setting the timeout for list_operations
401
409
  # to 20 seconds, and all remaining timeouts to 10 seconds:
402
410
  #
403
- # Google::Longrunning::Operations::Client.configure do |config|
404
- # config.timeout = 10_000
405
- # config.rpcs.list_operations.timeout = 20_000
411
+ # ::Google::Longrunning::Operations::Client.configure do |config|
412
+ # config.timeout = 10.0
413
+ # config.rpcs.list_operations.timeout = 20.0
406
414
  # end
407
415
  #
408
416
  # To apply the above configuration only to a new client:
409
417
  #
410
- # client = Google::Longrunning::Operations::Client.new do |config|
411
- # config.timeout = 10_000
412
- # config.rpcs.list_operations.timeout = 20_000
418
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
419
+ # config.timeout = 10.0
420
+ # config.rpcs.list_operations.timeout = 20.0
413
421
  # end
414
422
  #
415
423
  # @!attribute [rw] endpoint
416
424
  # The hostname or hostname:port of the service endpoint.
417
425
  # Defaults to `"cloudasset.googleapis.com"`.
418
- # @return [String]
426
+ # @return [::String]
419
427
  # @!attribute [rw] credentials
420
428
  # Credentials to send with calls. You may provide any of the following types:
421
429
  # * (`String`) The path to a service account key file in JSON format
@@ -427,29 +435,29 @@ module Google
427
435
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
428
436
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
429
437
  # * (`nil`) indicating no credentials
430
- # @return [Object]
438
+ # @return [::Object]
431
439
  # @!attribute [rw] scope
432
440
  # The OAuth scopes
433
- # @return [Array<String>]
441
+ # @return [::Array<::String>]
434
442
  # @!attribute [rw] lib_name
435
443
  # The library name as recorded in instrumentation and logging
436
- # @return [String]
444
+ # @return [::String]
437
445
  # @!attribute [rw] lib_version
438
446
  # The library version as recorded in instrumentation and logging
439
- # @return [String]
447
+ # @return [::String]
440
448
  # @!attribute [rw] channel_args
441
449
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
442
450
  # `GRPC::Core::Channel` object is provided as the credential.
443
- # @return [Hash]
451
+ # @return [::Hash]
444
452
  # @!attribute [rw] interceptors
445
453
  # An array of interceptors that are run before calls are executed.
446
- # @return [Array<GRPC::ClientInterceptor>]
454
+ # @return [::Array<::GRPC::ClientInterceptor>]
447
455
  # @!attribute [rw] timeout
448
- # The call timeout in milliseconds.
449
- # @return [Numeric]
456
+ # The call timeout in seconds.
457
+ # @return [::Numeric]
450
458
  # @!attribute [rw] metadata
451
459
  # Additional gRPC headers to be sent with the call.
452
- # @return [Hash{Symbol=>String}]
460
+ # @return [::Hash{::Symbol=>::String}]
453
461
  # @!attribute [rw] retry_policy
454
462
  # The retry policy. The value is a hash with the following keys:
455
463
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -457,25 +465,29 @@ module Google
457
465
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
458
466
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
459
467
  # trigger a retry.
460
- # @return [Hash]
468
+ # @return [::Hash]
469
+ # @!attribute [rw] quota_project
470
+ # A separate project against which to charge quota.
471
+ # @return [::String]
461
472
  #
462
473
  class Configuration
463
- extend Gapic::Config
474
+ extend ::Gapic::Config
464
475
 
465
- config_attr :endpoint, "cloudasset.googleapis.com", String
466
- config_attr :credentials, nil do |value|
476
+ config_attr :endpoint, "cloudasset.googleapis.com", ::String
477
+ config_attr :credentials, nil do |value|
467
478
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
468
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
469
480
  allowed.any? { |klass| klass === value }
470
481
  end
471
- config_attr :scope, nil, String, Array, nil
472
- config_attr :lib_name, nil, String, nil
473
- config_attr :lib_version, nil, String, nil
474
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
475
- config_attr :interceptors, nil, Array, nil
476
- config_attr :timeout, nil, Numeric, nil
477
- config_attr :metadata, nil, Hash, nil
478
- config_attr :retry_policy, nil, Hash, Proc, nil
482
+ config_attr :scope, nil, ::String, ::Array, nil
483
+ config_attr :lib_name, nil, ::String, nil
484
+ config_attr :lib_version, nil, ::String, nil
485
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
486
+ config_attr :interceptors, nil, ::Array, nil
487
+ config_attr :timeout, nil, ::Numeric, nil
488
+ config_attr :metadata, nil, ::Hash, nil
489
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
490
+ config_attr :quota_project, nil, ::String, nil
479
491
 
480
492
  # @private
481
493
  def initialize parent_config = nil
@@ -516,35 +528,35 @@ module Google
516
528
  class Rpcs
517
529
  ##
518
530
  # RPC-specific configuration for `list_operations`
519
- # @return [Gapic::Config::Method]
531
+ # @return [::Gapic::Config::Method]
520
532
  #
521
533
  attr_reader :list_operations
522
534
  ##
523
535
  # RPC-specific configuration for `get_operation`
524
- # @return [Gapic::Config::Method]
536
+ # @return [::Gapic::Config::Method]
525
537
  #
526
538
  attr_reader :get_operation
527
539
  ##
528
540
  # RPC-specific configuration for `delete_operation`
529
- # @return [Gapic::Config::Method]
541
+ # @return [::Gapic::Config::Method]
530
542
  #
531
543
  attr_reader :delete_operation
532
544
  ##
533
545
  # RPC-specific configuration for `cancel_operation`
534
- # @return [Gapic::Config::Method]
546
+ # @return [::Gapic::Config::Method]
535
547
  #
536
548
  attr_reader :cancel_operation
537
549
 
538
550
  # @private
539
551
  def initialize parent_rpcs = nil
540
552
  list_operations_config = parent_rpcs&.list_operations if parent_rpcs&.respond_to? :list_operations
541
- @list_operations = Gapic::Config::Method.new list_operations_config
553
+ @list_operations = ::Gapic::Config::Method.new list_operations_config
542
554
  get_operation_config = parent_rpcs&.get_operation if parent_rpcs&.respond_to? :get_operation
543
- @get_operation = Gapic::Config::Method.new get_operation_config
555
+ @get_operation = ::Gapic::Config::Method.new get_operation_config
544
556
  delete_operation_config = parent_rpcs&.delete_operation if parent_rpcs&.respond_to? :delete_operation
545
- @delete_operation = Gapic::Config::Method.new delete_operation_config
557
+ @delete_operation = ::Gapic::Config::Method.new delete_operation_config
546
558
  cancel_operation_config = parent_rpcs&.cancel_operation if parent_rpcs&.respond_to? :cancel_operation
547
- @cancel_operation = Gapic::Config::Method.new cancel_operation_config
559
+ @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
548
560
 
549
561
  yield self if block_given?
550
562
  end