google-cloud-asset-v1 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ module Google
24
24
  module V1
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
  ]
@@ -86,8 +86,8 @@ module Google
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
 
89
- @operations_stub = Gapic::ServiceStub.new(
90
- Google::Longrunning::Operations::Stub,
89
+ @operations_stub = ::Gapic::ServiceStub.new(
90
+ ::Google::Longrunning::Operations::Stub,
91
91
  credentials: credentials,
92
92
  endpoint: @config.endpoint,
93
93
  channel_args: @config.channel_args,
@@ -106,12 +106,12 @@ module Google
106
106
  #
107
107
  # @overload list_operations(request, options = nil)
108
108
  # Pass arguments to `list_operations` via a request object, either of type
109
- # {Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
109
+ # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
110
110
  #
111
- # @param request [Google::Longrunning::ListOperationsRequest, Hash]
111
+ # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash]
112
112
  # A request object representing the call parameters. Required. To specify no
113
113
  # parameters, or to keep all the default parameter values, pass an empty Hash.
114
- # @param options [Gapic::CallOptions, Hash]
114
+ # @param options [::Gapic::CallOptions, ::Hash]
115
115
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
116
116
  #
117
117
  # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
@@ -119,36 +119,36 @@ module Google
119
119
  # least one keyword argument is required. To specify no parameters, or to keep all
120
120
  # the default parameter values, pass an empty Hash as a request object (see above).
121
121
  #
122
- # @param name [String]
122
+ # @param name [::String]
123
123
  # The name of the operation collection.
124
- # @param filter [String]
124
+ # @param filter [::String]
125
125
  # The standard list filter.
126
- # @param page_size [Integer]
126
+ # @param page_size [::Integer]
127
127
  # The standard list page size.
128
- # @param page_token [String]
128
+ # @param page_token [::String]
129
129
  # The standard list page token.
130
130
  #
131
131
  # @yield [response, operation] Access the result along with the RPC operation
132
- # @yieldparam response [Gapic::PagedEnumerable<Gapic::Operation>]
133
- # @yieldparam operation [GRPC::ActiveCall::Operation]
132
+ # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
133
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
134
134
  #
135
- # @return [Gapic::PagedEnumerable<Gapic::Operation>]
135
+ # @return [::Gapic::PagedEnumerable<::Gapic::Operation>]
136
136
  #
137
- # @raise [Google::Cloud::Error] if the RPC is aborted.
137
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
138
138
  #
139
139
  def list_operations request, options = nil
140
- raise ArgumentError, "request must be provided" if request.nil?
140
+ raise ::ArgumentError, "request must be provided" if request.nil?
141
141
 
142
- request = Gapic::Protobuf.coerce request, to: Google::Longrunning::ListOperationsRequest
142
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest
143
143
 
144
144
  # Converts hash and nil to an options object
145
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
145
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
146
146
 
147
147
  # Customize the options with defaults
148
148
  metadata = @config.rpcs.list_operations.metadata.to_h
149
149
 
150
150
  # Set x-goog-api-client and x-goog-user-project headers
151
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
151
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
152
152
  lib_name: @config.lib_name, lib_version: @config.lib_version,
153
153
  gapic_version: ::Google::Cloud::Asset::V1::VERSION
154
154
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -166,13 +166,13 @@ module Google
166
166
  retry_policy: @config.retry_policy
167
167
 
168
168
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
169
- wrap_lro_operation = ->(op_response) { Gapic::Operation.new op_response, @operations_client }
170
- response = Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
169
+ wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
170
+ response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
171
171
  yield response, operation if block_given?
172
172
  return response
173
173
  end
174
- rescue GRPC::BadStatus => e
175
- raise Google::Cloud::Error.from_error(e)
174
+ rescue ::GRPC::BadStatus => e
175
+ raise ::Google::Cloud::Error.from_error(e)
176
176
  end
177
177
 
178
178
  ##
@@ -182,12 +182,12 @@ module Google
182
182
  #
183
183
  # @overload get_operation(request, options = nil)
184
184
  # Pass arguments to `get_operation` via a request object, either of type
185
- # {Google::Longrunning::GetOperationRequest} or an equivalent Hash.
185
+ # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash.
186
186
  #
187
- # @param request [Google::Longrunning::GetOperationRequest, Hash]
187
+ # @param request [::Google::Longrunning::GetOperationRequest, ::Hash]
188
188
  # A request object representing the call parameters. Required. To specify no
189
189
  # parameters, or to keep all the default parameter values, pass an empty Hash.
190
- # @param options [Gapic::CallOptions, Hash]
190
+ # @param options [::Gapic::CallOptions, ::Hash]
191
191
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
192
192
  #
193
193
  # @overload get_operation(name: nil)
@@ -195,30 +195,30 @@ module Google
195
195
  # least one keyword argument is required. To specify no parameters, or to keep all
196
196
  # the default parameter values, pass an empty Hash as a request object (see above).
197
197
  #
198
- # @param name [String]
198
+ # @param name [::String]
199
199
  # The name of the operation resource.
200
200
  #
201
201
  # @yield [response, operation] Access the result along with the RPC operation
202
- # @yieldparam response [Gapic::Operation]
203
- # @yieldparam operation [GRPC::ActiveCall::Operation]
202
+ # @yieldparam response [::Gapic::Operation]
203
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
204
204
  #
205
- # @return [Gapic::Operation]
205
+ # @return [::Gapic::Operation]
206
206
  #
207
- # @raise [Google::Cloud::Error] if the RPC is aborted.
207
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
208
208
  #
209
209
  def get_operation request, options = nil
210
- raise ArgumentError, "request must be provided" if request.nil?
210
+ raise ::ArgumentError, "request must be provided" if request.nil?
211
211
 
212
- request = Gapic::Protobuf.coerce request, to: Google::Longrunning::GetOperationRequest
212
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest
213
213
 
214
214
  # Converts hash and nil to an options object
215
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
215
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
216
216
 
217
217
  # Customize the options with defaults
218
218
  metadata = @config.rpcs.get_operation.metadata.to_h
219
219
 
220
220
  # Set x-goog-api-client and x-goog-user-project headers
221
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
221
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
222
222
  lib_name: @config.lib_name, lib_version: @config.lib_version,
223
223
  gapic_version: ::Google::Cloud::Asset::V1::VERSION
224
224
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -236,12 +236,12 @@ module Google
236
236
  retry_policy: @config.retry_policy
237
237
 
238
238
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
239
- response = Gapic::Operation.new response, @operations_client, options: options
239
+ response = ::Gapic::Operation.new response, @operations_client, options: options
240
240
  yield response, operation if block_given?
241
241
  return response
242
242
  end
243
- rescue GRPC::BadStatus => e
244
- raise Google::Cloud::Error.from_error(e)
243
+ rescue ::GRPC::BadStatus => e
244
+ raise ::Google::Cloud::Error.from_error(e)
245
245
  end
246
246
 
247
247
  ##
@@ -252,12 +252,12 @@ module Google
252
252
  #
253
253
  # @overload delete_operation(request, options = nil)
254
254
  # Pass arguments to `delete_operation` via a request object, either of type
255
- # {Google::Longrunning::DeleteOperationRequest} or an equivalent Hash.
255
+ # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash.
256
256
  #
257
- # @param request [Google::Longrunning::DeleteOperationRequest, Hash]
257
+ # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash]
258
258
  # A request object representing the call parameters. Required. To specify no
259
259
  # parameters, or to keep all the default parameter values, pass an empty Hash.
260
- # @param options [Gapic::CallOptions, Hash]
260
+ # @param options [::Gapic::CallOptions, ::Hash]
261
261
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
262
262
  #
263
263
  # @overload delete_operation(name: nil)
@@ -265,30 +265,30 @@ module Google
265
265
  # least one keyword argument is required. To specify no parameters, or to keep all
266
266
  # the default parameter values, pass an empty Hash as a request object (see above).
267
267
  #
268
- # @param name [String]
268
+ # @param name [::String]
269
269
  # The name of the operation resource to be deleted.
270
270
  #
271
271
  # @yield [response, operation] Access the result along with the RPC operation
272
- # @yieldparam response [Google::Protobuf::Empty]
273
- # @yieldparam operation [GRPC::ActiveCall::Operation]
272
+ # @yieldparam response [::Google::Protobuf::Empty]
273
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
274
274
  #
275
- # @return [Google::Protobuf::Empty]
275
+ # @return [::Google::Protobuf::Empty]
276
276
  #
277
- # @raise [Google::Cloud::Error] if the RPC is aborted.
277
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
278
278
  #
279
279
  def delete_operation request, options = nil
280
- raise ArgumentError, "request must be provided" if request.nil?
280
+ raise ::ArgumentError, "request must be provided" if request.nil?
281
281
 
282
- request = Gapic::Protobuf.coerce request, to: Google::Longrunning::DeleteOperationRequest
282
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest
283
283
 
284
284
  # Converts hash and nil to an options object
285
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
285
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
286
286
 
287
287
  # Customize the options with defaults
288
288
  metadata = @config.rpcs.delete_operation.metadata.to_h
289
289
 
290
290
  # Set x-goog-api-client and x-goog-user-project headers
291
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
291
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
292
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
293
  gapic_version: ::Google::Cloud::Asset::V1::VERSION
294
294
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -309,8 +309,8 @@ module Google
309
309
  yield response, operation if block_given?
310
310
  return response
311
311
  end
312
- rescue GRPC::BadStatus => e
313
- raise Google::Cloud::Error.from_error(e)
312
+ rescue ::GRPC::BadStatus => e
313
+ raise ::Google::Cloud::Error.from_error(e)
314
314
  end
315
315
 
316
316
  ##
@@ -322,17 +322,17 @@ module Google
322
322
  # other methods to check whether the cancellation succeeded or whether the
323
323
  # operation completed despite cancellation. On successful cancellation,
324
324
  # the operation is not deleted; instead, it becomes an operation with
325
- # an {Google::Longrunning::Operation#error Operation.error} value with a {Google::Rpc::Status#code google.rpc.Status.code} of 1,
325
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
326
326
  # corresponding to `Code.CANCELLED`.
327
327
  #
328
328
  # @overload cancel_operation(request, options = nil)
329
329
  # Pass arguments to `cancel_operation` via a request object, either of type
330
- # {Google::Longrunning::CancelOperationRequest} or an equivalent Hash.
330
+ # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash.
331
331
  #
332
- # @param request [Google::Longrunning::CancelOperationRequest, Hash]
332
+ # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash]
333
333
  # A request object representing the call parameters. Required. To specify no
334
334
  # parameters, or to keep all the default parameter values, pass an empty Hash.
335
- # @param options [Gapic::CallOptions, Hash]
335
+ # @param options [::Gapic::CallOptions, ::Hash]
336
336
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
337
337
  #
338
338
  # @overload cancel_operation(name: nil)
@@ -340,30 +340,30 @@ module Google
340
340
  # least one keyword argument is required. To specify no parameters, or to keep all
341
341
  # the default parameter values, pass an empty Hash as a request object (see above).
342
342
  #
343
- # @param name [String]
343
+ # @param name [::String]
344
344
  # The name of the operation resource to be cancelled.
345
345
  #
346
346
  # @yield [response, operation] Access the result along with the RPC operation
347
- # @yieldparam response [Google::Protobuf::Empty]
348
- # @yieldparam operation [GRPC::ActiveCall::Operation]
347
+ # @yieldparam response [::Google::Protobuf::Empty]
348
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
349
349
  #
350
- # @return [Google::Protobuf::Empty]
350
+ # @return [::Google::Protobuf::Empty]
351
351
  #
352
- # @raise [Google::Cloud::Error] if the RPC is aborted.
352
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
353
353
  #
354
354
  def cancel_operation request, options = nil
355
- raise ArgumentError, "request must be provided" if request.nil?
355
+ raise ::ArgumentError, "request must be provided" if request.nil?
356
356
 
357
- request = Gapic::Protobuf.coerce request, to: Google::Longrunning::CancelOperationRequest
357
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest
358
358
 
359
359
  # Converts hash and nil to an options object
360
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
360
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
361
361
 
362
362
  # Customize the options with defaults
363
363
  metadata = @config.rpcs.cancel_operation.metadata.to_h
364
364
 
365
365
  # Set x-goog-api-client and x-goog-user-project headers
366
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
366
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
367
367
  lib_name: @config.lib_name, lib_version: @config.lib_version,
368
368
  gapic_version: ::Google::Cloud::Asset::V1::VERSION
369
369
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -384,8 +384,8 @@ module Google
384
384
  yield response, operation if block_given?
385
385
  return response
386
386
  end
387
- rescue GRPC::BadStatus => e
388
- raise Google::Cloud::Error.from_error(e)
387
+ rescue ::GRPC::BadStatus => e
388
+ raise ::Google::Cloud::Error.from_error(e)
389
389
  end
390
390
 
391
391
  ##
@@ -395,7 +395,7 @@ module Google
395
395
  # providing control over timeouts, retry behavior, logging, transport
396
396
  # parameters, and other low-level controls. Certain parameters can also be
397
397
  # applied individually to specific RPCs. See
398
- # {Google::Longrunning::Operations::Client::Configuration::Rpcs}
398
+ # {::Google::Longrunning::Operations::Client::Configuration::Rpcs}
399
399
  # for a list of RPCs that can be configured independently.
400
400
  #
401
401
  # Configuration can be applied globally to all clients, or to a single client
@@ -406,22 +406,22 @@ module Google
406
406
  # To modify the global config, setting the timeout for list_operations
407
407
  # to 20 seconds, and all remaining timeouts to 10 seconds:
408
408
  #
409
- # Google::Longrunning::Operations::Client.configure do |config|
410
- # config.timeout = 10_000
411
- # config.rpcs.list_operations.timeout = 20_000
409
+ # ::Google::Longrunning::Operations::Client.configure do |config|
410
+ # config.timeout = 10.0
411
+ # config.rpcs.list_operations.timeout = 20.0
412
412
  # end
413
413
  #
414
414
  # To apply the above configuration only to a new client:
415
415
  #
416
- # client = Google::Longrunning::Operations::Client.new do |config|
417
- # config.timeout = 10_000
418
- # config.rpcs.list_operations.timeout = 20_000
416
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
417
+ # config.timeout = 10.0
418
+ # config.rpcs.list_operations.timeout = 20.0
419
419
  # end
420
420
  #
421
421
  # @!attribute [rw] endpoint
422
422
  # The hostname or hostname:port of the service endpoint.
423
423
  # Defaults to `"cloudasset.googleapis.com"`.
424
- # @return [String]
424
+ # @return [::String]
425
425
  # @!attribute [rw] credentials
426
426
  # Credentials to send with calls. You may provide any of the following types:
427
427
  # * (`String`) The path to a service account key file in JSON format
@@ -433,29 +433,29 @@ module Google
433
433
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
434
434
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
435
435
  # * (`nil`) indicating no credentials
436
- # @return [Object]
436
+ # @return [::Object]
437
437
  # @!attribute [rw] scope
438
438
  # The OAuth scopes
439
- # @return [Array<String>]
439
+ # @return [::Array<::String>]
440
440
  # @!attribute [rw] lib_name
441
441
  # The library name as recorded in instrumentation and logging
442
- # @return [String]
442
+ # @return [::String]
443
443
  # @!attribute [rw] lib_version
444
444
  # The library version as recorded in instrumentation and logging
445
- # @return [String]
445
+ # @return [::String]
446
446
  # @!attribute [rw] channel_args
447
447
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
448
448
  # `GRPC::Core::Channel` object is provided as the credential.
449
- # @return [Hash]
449
+ # @return [::Hash]
450
450
  # @!attribute [rw] interceptors
451
451
  # An array of interceptors that are run before calls are executed.
452
- # @return [Array<GRPC::ClientInterceptor>]
452
+ # @return [::Array<::GRPC::ClientInterceptor>]
453
453
  # @!attribute [rw] timeout
454
- # The call timeout in milliseconds.
455
- # @return [Numeric]
454
+ # The call timeout in seconds.
455
+ # @return [::Numeric]
456
456
  # @!attribute [rw] metadata
457
457
  # Additional gRPC headers to be sent with the call.
458
- # @return [Hash{Symbol=>String}]
458
+ # @return [::Hash{::Symbol=>::String}]
459
459
  # @!attribute [rw] retry_policy
460
460
  # The retry policy. The value is a hash with the following keys:
461
461
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -463,10 +463,10 @@ module Google
463
463
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
464
464
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
465
  # trigger a retry.
466
- # @return [Hash]
466
+ # @return [::Hash]
467
467
  #
468
468
  class Configuration
469
- extend Gapic::Config
469
+ extend ::Gapic::Config
470
470
 
471
471
  config_attr :endpoint, "cloudasset.googleapis.com", String
472
472
  config_attr :credentials, nil do |value|
@@ -474,14 +474,14 @@ module Google
474
474
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
475
  allowed.any? { |klass| klass === value }
476
476
  end
477
- config_attr :scope, nil, String, Array, nil
478
- config_attr :lib_name, nil, String, nil
479
- config_attr :lib_version, nil, String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
481
- config_attr :interceptors, nil, Array, nil
482
- config_attr :timeout, nil, Numeric, nil
483
- config_attr :metadata, nil, Hash, nil
484
- config_attr :retry_policy, nil, Hash, Proc, nil
477
+ config_attr :scope, nil, ::String, ::Array, nil
478
+ config_attr :lib_name, nil, ::String, nil
479
+ config_attr :lib_version, nil, ::String, nil
480
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
+ config_attr :interceptors, nil, ::Array, nil
482
+ config_attr :timeout, nil, ::Numeric, nil
483
+ config_attr :metadata, nil, ::Hash, nil
484
+ config_attr :retry_policy, nil, ::Hash, Proc, nil
485
485
 
486
486
  # @private
487
487
  def initialize parent_config = nil
@@ -522,35 +522,35 @@ module Google
522
522
  class Rpcs
523
523
  ##
524
524
  # RPC-specific configuration for `list_operations`
525
- # @return [Gapic::Config::Method]
525
+ # @return [::Gapic::Config::Method]
526
526
  #
527
527
  attr_reader :list_operations
528
528
  ##
529
529
  # RPC-specific configuration for `get_operation`
530
- # @return [Gapic::Config::Method]
530
+ # @return [::Gapic::Config::Method]
531
531
  #
532
532
  attr_reader :get_operation
533
533
  ##
534
534
  # RPC-specific configuration for `delete_operation`
535
- # @return [Gapic::Config::Method]
535
+ # @return [::Gapic::Config::Method]
536
536
  #
537
537
  attr_reader :delete_operation
538
538
  ##
539
539
  # RPC-specific configuration for `cancel_operation`
540
- # @return [Gapic::Config::Method]
540
+ # @return [::Gapic::Config::Method]
541
541
  #
542
542
  attr_reader :cancel_operation
543
543
 
544
544
  # @private
545
545
  def initialize parent_rpcs = nil
546
546
  list_operations_config = parent_rpcs&.list_operations if parent_rpcs&.respond_to? :list_operations
547
- @list_operations = Gapic::Config::Method.new list_operations_config
547
+ @list_operations = ::Gapic::Config::Method.new list_operations_config
548
548
  get_operation_config = parent_rpcs&.get_operation if parent_rpcs&.respond_to? :get_operation
549
- @get_operation = Gapic::Config::Method.new get_operation_config
549
+ @get_operation = ::Gapic::Config::Method.new get_operation_config
550
550
  delete_operation_config = parent_rpcs&.delete_operation if parent_rpcs&.respond_to? :delete_operation
551
- @delete_operation = Gapic::Config::Method.new delete_operation_config
551
+ @delete_operation = ::Gapic::Config::Method.new delete_operation_config
552
552
  cancel_operation_config = parent_rpcs&.cancel_operation if parent_rpcs&.respond_to? :cancel_operation
553
- @cancel_operation = Gapic::Config::Method.new cancel_operation_config
553
+ @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
554
554
 
555
555
  yield self if block_given?
556
556
  end
@@ -51,28 +51,28 @@ module Google
51
51
  # @param organization [String]
52
52
  # @param feed [String]
53
53
  #
54
- # @return [String]
54
+ # @return [::String]
55
55
  def feed_path **args
56
56
  resources = {
57
57
  "feed:project" => (proc do |project:, feed:|
58
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
58
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
59
59
 
60
60
  "projects/#{project}/feeds/#{feed}"
61
61
  end),
62
62
  "feed:folder" => (proc do |folder:, feed:|
63
- raise ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
63
+ raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
64
64
 
65
65
  "folders/#{folder}/feeds/#{feed}"
66
66
  end),
67
67
  "feed:organization" => (proc do |organization:, feed:|
68
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
68
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
69
69
 
70
70
  "organizations/#{organization}/feeds/#{feed}"
71
71
  end)
72
72
  }
73
73
 
74
74
  resource = resources[args.keys.sort.join(":")]
75
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
75
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
76
76
  resource.call(**args)
77
77
  end
78
78
 
@@ -37,7 +37,7 @@ module Google
37
37
  # To load this service and instantiate a client:
38
38
  #
39
39
  # require "google/cloud/asset/v1/asset_service"
40
- # client = Google::Cloud::Asset::V1::AssetService::Client.new
40
+ # client = ::Google::Cloud::Asset::V1::AssetService::Client.new
41
41
  #
42
42
  module AssetService
43
43
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Asset
23
23
  module V1
24
- VERSION = "0.2.2"
24
+ VERSION = "0.2.3"
25
25
  end
26
26
  end
27
27
  end
@@ -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/asset/v1"
29
- # client = Google::Cloud::Asset::V1::AssetService::Client.new
29
+ # client = ::Google::Cloud::Asset::V1::AssetService::Client.new
30
30
  #
31
31
  module V1
32
32
  end
@@ -128,7 +128,7 @@ module Google
128
128
  # - pattern: "shelves/{shelf}"
129
129
  # parent_type: "cloudresourcemanager.googleapis.com/Folder"
130
130
  # @!attribute [rw] type
131
- # @return [String]
131
+ # @return [::String]
132
132
  # The resource type. It must be in the format of
133
133
  # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
134
134
  # singular and must not include version numbers.
@@ -140,7 +140,7 @@ module Google
140
140
  # should use PascalCase (UpperCamelCase). The maximum number of
141
141
  # characters allowed for the `resource_type_kind` is 100.
142
142
  # @!attribute [rw] pattern
143
- # @return [Array<String>]
143
+ # @return [::Array<::String>]
144
144
  # Optional. The relative resource name pattern associated with this resource
145
145
  # type. The DNS prefix of the full resource name shouldn't be specified here.
146
146
  #
@@ -161,11 +161,11 @@ module Google
161
161
  # the same component name (e.g. "project") refers to IDs of the same
162
162
  # type of resource.
163
163
  # @!attribute [rw] name_field
164
- # @return [String]
164
+ # @return [::String]
165
165
  # Optional. The field on the resource that designates the resource name
166
166
  # field. If omitted, this is assumed to be "name".
167
167
  # @!attribute [rw] history
168
- # @return [Google::Api::ResourceDescriptor::History]
168
+ # @return [::Google::Api::ResourceDescriptor::History]
169
169
  # Optional. The historical or future-looking state of the resource pattern.
170
170
  #
171
171
  # Example:
@@ -182,19 +182,19 @@ module Google
182
182
  # };
183
183
  # }
184
184
  # @!attribute [rw] plural
185
- # @return [String]
185
+ # @return [::String]
186
186
  # The plural name used in the resource name, such as 'projects' for
187
187
  # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
188
  # field in k8s CRD spec
189
189
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
190
190
  # @!attribute [rw] singular
191
- # @return [String]
191
+ # @return [::String]
192
192
  # The same concept of the `singular` field in k8s CRD spec
193
193
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
194
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
195
195
  class ResourceDescriptor
196
- include Google::Protobuf::MessageExts
197
- extend Google::Protobuf::MessageExts::ClassMethods
196
+ include ::Google::Protobuf::MessageExts
197
+ extend ::Google::Protobuf::MessageExts::ClassMethods
198
198
 
199
199
  # A description of the historical or future-looking state of the
200
200
  # resource pattern.
@@ -216,7 +216,7 @@ module Google
216
216
  # Defines a proto annotation that describes a string field that refers to
217
217
  # an API resource.
218
218
  # @!attribute [rw] type
219
- # @return [String]
219
+ # @return [::String]
220
220
  # The resource type that the annotated field references.
221
221
  #
222
222
  # Example:
@@ -227,7 +227,7 @@ module Google
227
227
  # }];
228
228
  # }
229
229
  # @!attribute [rw] child_type
230
- # @return [String]
230
+ # @return [::String]
231
231
  # The resource type of a child collection that the annotated field
232
232
  # references. This is useful for annotating the `parent` field that
233
233
  # doesn't have a fixed resource type.
@@ -240,8 +240,8 @@ module Google
240
240
  # };
241
241
  # }
242
242
  class ResourceReference
243
- include Google::Protobuf::MessageExts
244
- extend Google::Protobuf::MessageExts::ClassMethods
243
+ include ::Google::Protobuf::MessageExts
244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
245
245
  end
246
246
  end
247
247
  end