google-cloud-dataproc-v1beta2 0.1.0 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +5 -1
  4. data/lib/google/cloud/dataproc/v1beta2.rb +1 -1
  5. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service.rb +1 -1
  6. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/client.rb +129 -124
  7. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/credentials.rb +1 -1
  8. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/paths.rb +10 -10
  9. data/lib/google/cloud/dataproc/v1beta2/cluster_controller.rb +1 -1
  10. data/lib/google/cloud/dataproc/v1beta2/cluster_controller/client.rb +180 -175
  11. data/lib/google/cloud/dataproc/v1beta2/cluster_controller/credentials.rb +1 -1
  12. data/lib/google/cloud/dataproc/v1beta2/cluster_controller/operations.rb +109 -103
  13. data/lib/google/cloud/dataproc/v1beta2/job_controller.rb +1 -1
  14. data/lib/google/cloud/dataproc/v1beta2/job_controller/client.rb +186 -181
  15. data/lib/google/cloud/dataproc/v1beta2/job_controller/credentials.rb +1 -1
  16. data/lib/google/cloud/dataproc/v1beta2/job_controller/operations.rb +109 -103
  17. data/lib/google/cloud/dataproc/v1beta2/version.rb +1 -1
  18. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service.rb +1 -1
  19. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb +181 -176
  20. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/credentials.rb +1 -1
  21. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/operations.rb +109 -103
  22. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/paths.rb +10 -10
  23. data/proto_docs/google/api/resource.rb +12 -12
  24. data/proto_docs/google/cloud/dataproc/v1beta2/autoscaling_policies.rb +45 -45
  25. data/proto_docs/google/cloud/dataproc/v1beta2/clusters.rb +203 -203
  26. data/proto_docs/google/cloud/dataproc/v1beta2/jobs.rb +227 -226
  27. data/proto_docs/google/cloud/dataproc/v1beta2/operations.rb +20 -20
  28. data/proto_docs/google/cloud/dataproc/v1beta2/workflow_templates.rb +145 -145
  29. data/proto_docs/google/longrunning/operations.rb +30 -30
  30. data/proto_docs/google/protobuf/any.rb +4 -4
  31. data/proto_docs/google/protobuf/duration.rb +4 -4
  32. data/proto_docs/google/protobuf/empty.rb +2 -2
  33. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  34. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  35. data/proto_docs/google/rpc/status.rb +6 -6
  36. metadata +33 -6
  37. data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -24,7 +24,7 @@ module Google
24
24
  module V1beta2
25
25
  module AutoscalingPolicyService
26
26
  # Credentials for the AutoscalingPolicyService 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
  ]
@@ -45,25 +45,25 @@ module Google
45
45
  # @param region [String]
46
46
  # @param autoscaling_policy [String]
47
47
  #
48
- # @return [String]
48
+ # @return [::String]
49
49
  def autoscaling_policy_path **args
50
50
  resources = {
51
51
  "autoscaling_policy:location:project" => (proc do |project:, location:, autoscaling_policy:|
52
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
53
- raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
52
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
53
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
54
54
 
55
55
  "projects/#{project}/locations/#{location}/autoscalingPolicies/#{autoscaling_policy}"
56
56
  end),
57
57
  "autoscaling_policy:project:region" => (proc do |project:, region:, autoscaling_policy:|
58
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
59
- raise ArgumentError, "region cannot contain /" if region.to_s.include? "/"
58
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
59
+ raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
60
60
 
61
61
  "projects/#{project}/regions/#{region}/autoscalingPolicies/#{autoscaling_policy}"
62
62
  end)
63
63
  }
64
64
 
65
65
  resource = resources[args.keys.sort.join(":")]
66
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
66
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
67
67
  resource.call(**args)
68
68
  end
69
69
 
@@ -77,9 +77,9 @@ module Google
77
77
  # @param project [String]
78
78
  # @param location [String]
79
79
  #
80
- # @return [String]
80
+ # @return [::String]
81
81
  def location_path project:, location:
82
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
82
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
83
83
 
84
84
  "projects/#{project}/locations/#{location}"
85
85
  end
@@ -94,9 +94,9 @@ module Google
94
94
  # @param project [String]
95
95
  # @param region [String]
96
96
  #
97
- # @return [String]
97
+ # @return [::String]
98
98
  def region_path project:, region:
99
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
99
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
100
100
 
101
101
  "projects/#{project}/regions/#{region}"
102
102
  end
@@ -37,7 +37,7 @@ module Google
37
37
  # To load this service and instantiate a client:
38
38
  #
39
39
  # require "google/cloud/dataproc/v1beta2/cluster_controller"
40
- # client = Google::Cloud::Dataproc::V1beta2::ClusterController::Client.new
40
+ # client = ::Google::Cloud::Dataproc::V1beta2::ClusterController::Client.new
41
41
  #
42
42
  module ClusterController
43
43
  end
@@ -37,15 +37,15 @@ module Google
37
37
  ##
38
38
  # Configure the ClusterController Client class.
39
39
  #
40
- # See {Google::Cloud::Dataproc::V1beta2::ClusterController::Client::Configuration}
40
+ # See {::Google::Cloud::Dataproc::V1beta2::ClusterController::Client::Configuration}
41
41
  # for a description of the configuration fields.
42
42
  #
43
43
  # ## Example
44
44
  #
45
45
  # To modify the configuration for all ClusterController clients:
46
46
  #
47
- # Google::Cloud::Dataproc::V1beta2::ClusterController::Client.configure do |config|
48
- # config.timeout = 10_000
47
+ # ::Google::Cloud::Dataproc::V1beta2::ClusterController::Client.configure do |config|
48
+ # config.timeout = 10.0
49
49
  # end
50
50
  #
51
51
  # @yield [config] Configure the Client client.
@@ -125,7 +125,7 @@ module Google
125
125
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
126
126
  # should be made on {Client.configure}.
127
127
  #
128
- # See {Google::Cloud::Dataproc::V1beta2::ClusterController::Client::Configuration}
128
+ # See {::Google::Cloud::Dataproc::V1beta2::ClusterController::Client::Configuration}
129
129
  # for a description of the configuration fields.
130
130
  #
131
131
  # @yield [config] Configure the Client client.
@@ -146,13 +146,13 @@ module Google
146
146
  # To create a new ClusterController client with the default
147
147
  # configuration:
148
148
  #
149
- # client = Google::Cloud::Dataproc::V1beta2::ClusterController::Client.new
149
+ # client = ::Google::Cloud::Dataproc::V1beta2::ClusterController::Client.new
150
150
  #
151
151
  # To create a new ClusterController client with a custom
152
152
  # configuration:
153
153
  #
154
- # client = Google::Cloud::Dataproc::V1beta2::ClusterController::Client.new do |config|
155
- # config.timeout = 10_000
154
+ # client = ::Google::Cloud::Dataproc::V1beta2::ClusterController::Client.new do |config|
155
+ # config.timeout = 10.0
156
156
  # end
157
157
  #
158
158
  # @yield [config] Configure the ClusterController client.
@@ -177,15 +177,16 @@ module Google
177
177
  if credentials.is_a?(String) || credentials.is_a?(Hash)
178
178
  credentials = Credentials.new credentials, scope: @config.scope
179
179
  end
180
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
180
+ @quota_project_id = @config.quota_project
181
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
181
182
 
182
183
  @operations_client = Operations.new do |config|
183
184
  config.credentials = credentials
184
185
  config.endpoint = @config.endpoint
185
186
  end
186
187
 
187
- @cluster_controller_stub = Gapic::ServiceStub.new(
188
- Google::Cloud::Dataproc::V1beta2::ClusterController::Stub,
188
+ @cluster_controller_stub = ::Gapic::ServiceStub.new(
189
+ ::Google::Cloud::Dataproc::V1beta2::ClusterController::Stub,
189
190
  credentials: credentials,
190
191
  endpoint: @config.endpoint,
191
192
  channel_args: @config.channel_args,
@@ -196,7 +197,7 @@ module Google
196
197
  ##
197
198
  # Get the associated client for long-running operations.
198
199
  #
199
- # @return [Google::Cloud::Dataproc::V1beta2::ClusterController::Operations]
200
+ # @return [::Google::Cloud::Dataproc::V1beta2::ClusterController::Operations]
200
201
  #
201
202
  attr_reader :operations_client
202
203
 
@@ -204,17 +205,17 @@ module Google
204
205
 
205
206
  ##
206
207
  # Creates a cluster in a project. The returned
207
- # {Google::Longrunning::Operation#metadata Operation.metadata} will be
208
+ # {::Google::Longrunning::Operation#metadata Operation.metadata} will be
208
209
  # [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
209
210
  #
210
211
  # @overload create_cluster(request, options = nil)
211
212
  # Pass arguments to `create_cluster` via a request object, either of type
212
- # {Google::Cloud::Dataproc::V1beta2::CreateClusterRequest} or an equivalent Hash.
213
+ # {::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest} or an equivalent Hash.
213
214
  #
214
- # @param request [Google::Cloud::Dataproc::V1beta2::CreateClusterRequest, Hash]
215
+ # @param request [::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest, ::Hash]
215
216
  # A request object representing the call parameters. Required. To specify no
216
217
  # parameters, or to keep all the default parameter values, pass an empty Hash.
217
- # @param options [Gapic::CallOptions, Hash]
218
+ # @param options [::Gapic::CallOptions, ::Hash]
218
219
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
219
220
  #
220
221
  # @overload create_cluster(project_id: nil, region: nil, cluster: nil, request_id: nil)
@@ -222,18 +223,18 @@ module Google
222
223
  # least one keyword argument is required. To specify no parameters, or to keep all
223
224
  # the default parameter values, pass an empty Hash as a request object (see above).
224
225
  #
225
- # @param project_id [String]
226
+ # @param project_id [::String]
226
227
  # Required. The ID of the Google Cloud Platform project that the cluster
227
228
  # belongs to.
228
- # @param region [String]
229
+ # @param region [::String]
229
230
  # Required. The Dataproc region in which to handle the request.
230
- # @param cluster [Google::Cloud::Dataproc::V1beta2::Cluster, Hash]
231
+ # @param cluster [::Google::Cloud::Dataproc::V1beta2::Cluster, ::Hash]
231
232
  # Required. The cluster to create.
232
- # @param request_id [String]
233
+ # @param request_id [::String]
233
234
  # Optional. A unique id used to identify the request. If the server
234
- # receives two {Google::Cloud::Dataproc::V1beta2::CreateClusterRequest CreateClusterRequest} requests with the same
235
+ # receives two {::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest CreateClusterRequest} requests with the same
235
236
  # id, then the second request will be ignored and the
236
- # first {Google::Longrunning::Operation google.longrunning.Operation} created and stored in the backend
237
+ # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the backend
237
238
  # is returned.
238
239
  #
239
240
  # It is recommended to always set this value to a
@@ -243,26 +244,26 @@ module Google
243
244
  # underscores (_), and hyphens (-). The maximum length is 40 characters.
244
245
  #
245
246
  # @yield [response, operation] Access the result along with the RPC operation
246
- # @yieldparam response [Gapic::Operation]
247
- # @yieldparam operation [GRPC::ActiveCall::Operation]
247
+ # @yieldparam response [::Gapic::Operation]
248
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
248
249
  #
249
- # @return [Gapic::Operation]
250
+ # @return [::Gapic::Operation]
250
251
  #
251
- # @raise [Google::Cloud::Error] if the RPC is aborted.
252
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
252
253
  #
253
254
  def create_cluster request, options = nil
254
- raise ArgumentError, "request must be provided" if request.nil?
255
+ raise ::ArgumentError, "request must be provided" if request.nil?
255
256
 
256
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::CreateClusterRequest
257
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::CreateClusterRequest
257
258
 
258
259
  # Converts hash and nil to an options object
259
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
260
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
260
261
 
261
262
  # Customize the options with defaults
262
263
  metadata = @config.rpcs.create_cluster.metadata.to_h
263
264
 
264
265
  # Set x-goog-api-client and x-goog-user-project headers
265
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
266
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
266
267
  lib_name: @config.lib_name, lib_version: @config.lib_version,
267
268
  gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
268
269
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -281,27 +282,27 @@ module Google
281
282
  retry_policy: @config.retry_policy
282
283
 
283
284
  @cluster_controller_stub.call_rpc :create_cluster, request, options: options do |response, operation|
284
- response = Gapic::Operation.new response, @operations_client, options: options
285
+ response = ::Gapic::Operation.new response, @operations_client, options: options
285
286
  yield response, operation if block_given?
286
287
  return response
287
288
  end
288
- rescue GRPC::BadStatus => e
289
- raise Google::Cloud::Error.from_error(e)
289
+ rescue ::GRPC::BadStatus => e
290
+ raise ::Google::Cloud::Error.from_error(e)
290
291
  end
291
292
 
292
293
  ##
293
294
  # Updates a cluster in a project. The returned
294
- # {Google::Longrunning::Operation#metadata Operation.metadata} will be
295
+ # {::Google::Longrunning::Operation#metadata Operation.metadata} will be
295
296
  # [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
296
297
  #
297
298
  # @overload update_cluster(request, options = nil)
298
299
  # Pass arguments to `update_cluster` via a request object, either of type
299
- # {Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest} or an equivalent Hash.
300
+ # {::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest} or an equivalent Hash.
300
301
  #
301
- # @param request [Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest, Hash]
302
+ # @param request [::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest, ::Hash]
302
303
  # A request object representing the call parameters. Required. To specify no
303
304
  # parameters, or to keep all the default parameter values, pass an empty Hash.
304
- # @param options [Gapic::CallOptions, Hash]
305
+ # @param options [::Gapic::CallOptions, ::Hash]
305
306
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
306
307
  #
307
308
  # @overload update_cluster(project_id: nil, region: nil, cluster_name: nil, cluster: nil, graceful_decommission_timeout: nil, update_mask: nil, request_id: nil)
@@ -309,16 +310,16 @@ module Google
309
310
  # least one keyword argument is required. To specify no parameters, or to keep all
310
311
  # the default parameter values, pass an empty Hash as a request object (see above).
311
312
  #
312
- # @param project_id [String]
313
+ # @param project_id [::String]
313
314
  # Required. The ID of the Google Cloud Platform project the
314
315
  # cluster belongs to.
315
- # @param region [String]
316
+ # @param region [::String]
316
317
  # Required. The Dataproc region in which to handle the request.
317
- # @param cluster_name [String]
318
+ # @param cluster_name [::String]
318
319
  # Required. The cluster name.
319
- # @param cluster [Google::Cloud::Dataproc::V1beta2::Cluster, Hash]
320
+ # @param cluster [::Google::Cloud::Dataproc::V1beta2::Cluster, ::Hash]
320
321
  # Required. The changes to the cluster.
321
- # @param graceful_decommission_timeout [Google::Protobuf::Duration, Hash]
322
+ # @param graceful_decommission_timeout [::Google::Protobuf::Duration, ::Hash]
322
323
  # Optional. Timeout for graceful YARN decomissioning. Graceful
323
324
  # decommissioning allows removing nodes from the cluster without
324
325
  # interrupting jobs in progress. Timeout specifies how long to wait for jobs
@@ -328,7 +329,7 @@ module Google
328
329
  # [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
329
330
  #
330
331
  # Only supported on Dataproc image versions 1.2 and higher.
331
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
332
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
332
333
  # Required. Specifies the path, relative to `Cluster`, of
333
334
  # the field to update. For example, to change the number of workers
334
335
  # in a cluster to 5, the `update_mask` parameter would be
@@ -389,11 +390,11 @@ module Google
389
390
  # autoscaling policies</td>
390
391
  # </tr>
391
392
  # </table>
392
- # @param request_id [String]
393
+ # @param request_id [::String]
393
394
  # Optional. A unique id used to identify the request. If the server
394
- # receives two {Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest UpdateClusterRequest} requests with the same
395
+ # receives two {::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest UpdateClusterRequest} requests with the same
395
396
  # id, then the second request will be ignored and the
396
- # first {Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
397
+ # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
397
398
  # backend is returned.
398
399
  #
399
400
  # It is recommended to always set this value to a
@@ -403,26 +404,26 @@ module Google
403
404
  # underscores (_), and hyphens (-). The maximum length is 40 characters.
404
405
  #
405
406
  # @yield [response, operation] Access the result along with the RPC operation
406
- # @yieldparam response [Gapic::Operation]
407
- # @yieldparam operation [GRPC::ActiveCall::Operation]
407
+ # @yieldparam response [::Gapic::Operation]
408
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
408
409
  #
409
- # @return [Gapic::Operation]
410
+ # @return [::Gapic::Operation]
410
411
  #
411
- # @raise [Google::Cloud::Error] if the RPC is aborted.
412
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
412
413
  #
413
414
  def update_cluster request, options = nil
414
- raise ArgumentError, "request must be provided" if request.nil?
415
+ raise ::ArgumentError, "request must be provided" if request.nil?
415
416
 
416
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest
417
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::UpdateClusterRequest
417
418
 
418
419
  # Converts hash and nil to an options object
419
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
420
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
420
421
 
421
422
  # Customize the options with defaults
422
423
  metadata = @config.rpcs.update_cluster.metadata.to_h
423
424
 
424
425
  # Set x-goog-api-client and x-goog-user-project headers
425
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
426
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
426
427
  lib_name: @config.lib_name, lib_version: @config.lib_version,
427
428
  gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
428
429
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -442,27 +443,27 @@ module Google
442
443
  retry_policy: @config.retry_policy
443
444
 
444
445
  @cluster_controller_stub.call_rpc :update_cluster, request, options: options do |response, operation|
445
- response = Gapic::Operation.new response, @operations_client, options: options
446
+ response = ::Gapic::Operation.new response, @operations_client, options: options
446
447
  yield response, operation if block_given?
447
448
  return response
448
449
  end
449
- rescue GRPC::BadStatus => e
450
- raise Google::Cloud::Error.from_error(e)
450
+ rescue ::GRPC::BadStatus => e
451
+ raise ::Google::Cloud::Error.from_error(e)
451
452
  end
452
453
 
453
454
  ##
454
455
  # Deletes a cluster in a project. The returned
455
- # {Google::Longrunning::Operation#metadata Operation.metadata} will be
456
+ # {::Google::Longrunning::Operation#metadata Operation.metadata} will be
456
457
  # [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
457
458
  #
458
459
  # @overload delete_cluster(request, options = nil)
459
460
  # Pass arguments to `delete_cluster` via a request object, either of type
460
- # {Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest} or an equivalent Hash.
461
+ # {::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest} or an equivalent Hash.
461
462
  #
462
- # @param request [Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest, Hash]
463
+ # @param request [::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest, ::Hash]
463
464
  # A request object representing the call parameters. Required. To specify no
464
465
  # parameters, or to keep all the default parameter values, pass an empty Hash.
465
- # @param options [Gapic::CallOptions, Hash]
466
+ # @param options [::Gapic::CallOptions, ::Hash]
466
467
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
467
468
  #
468
469
  # @overload delete_cluster(project_id: nil, region: nil, cluster_name: nil, cluster_uuid: nil, request_id: nil)
@@ -470,21 +471,21 @@ module Google
470
471
  # least one keyword argument is required. To specify no parameters, or to keep all
471
472
  # the default parameter values, pass an empty Hash as a request object (see above).
472
473
  #
473
- # @param project_id [String]
474
+ # @param project_id [::String]
474
475
  # Required. The ID of the Google Cloud Platform project that the cluster
475
476
  # belongs to.
476
- # @param region [String]
477
+ # @param region [::String]
477
478
  # Required. The Dataproc region in which to handle the request.
478
- # @param cluster_name [String]
479
+ # @param cluster_name [::String]
479
480
  # Required. The cluster name.
480
- # @param cluster_uuid [String]
481
+ # @param cluster_uuid [::String]
481
482
  # Optional. Specifying the `cluster_uuid` means the RPC should fail
482
483
  # (with error NOT_FOUND) if cluster with specified UUID does not exist.
483
- # @param request_id [String]
484
+ # @param request_id [::String]
484
485
  # Optional. A unique id used to identify the request. If the server
485
- # receives two {Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest DeleteClusterRequest} requests with the same
486
+ # receives two {::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest DeleteClusterRequest} requests with the same
486
487
  # id, then the second request will be ignored and the
487
- # first {Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
488
+ # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
488
489
  # backend is returned.
489
490
  #
490
491
  # It is recommended to always set this value to a
@@ -494,26 +495,26 @@ module Google
494
495
  # underscores (_), and hyphens (-). The maximum length is 40 characters.
495
496
  #
496
497
  # @yield [response, operation] Access the result along with the RPC operation
497
- # @yieldparam response [Gapic::Operation]
498
- # @yieldparam operation [GRPC::ActiveCall::Operation]
498
+ # @yieldparam response [::Gapic::Operation]
499
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
499
500
  #
500
- # @return [Gapic::Operation]
501
+ # @return [::Gapic::Operation]
501
502
  #
502
- # @raise [Google::Cloud::Error] if the RPC is aborted.
503
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
503
504
  #
504
505
  def delete_cluster request, options = nil
505
- raise ArgumentError, "request must be provided" if request.nil?
506
+ raise ::ArgumentError, "request must be provided" if request.nil?
506
507
 
507
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest
508
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::DeleteClusterRequest
508
509
 
509
510
  # Converts hash and nil to an options object
510
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
511
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
511
512
 
512
513
  # Customize the options with defaults
513
514
  metadata = @config.rpcs.delete_cluster.metadata.to_h
514
515
 
515
516
  # Set x-goog-api-client and x-goog-user-project headers
516
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
517
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
517
518
  lib_name: @config.lib_name, lib_version: @config.lib_version,
518
519
  gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
519
520
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -533,12 +534,12 @@ module Google
533
534
  retry_policy: @config.retry_policy
534
535
 
535
536
  @cluster_controller_stub.call_rpc :delete_cluster, request, options: options do |response, operation|
536
- response = Gapic::Operation.new response, @operations_client, options: options
537
+ response = ::Gapic::Operation.new response, @operations_client, options: options
537
538
  yield response, operation if block_given?
538
539
  return response
539
540
  end
540
- rescue GRPC::BadStatus => e
541
- raise Google::Cloud::Error.from_error(e)
541
+ rescue ::GRPC::BadStatus => e
542
+ raise ::Google::Cloud::Error.from_error(e)
542
543
  end
543
544
 
544
545
  ##
@@ -546,12 +547,12 @@ module Google
546
547
  #
547
548
  # @overload get_cluster(request, options = nil)
548
549
  # Pass arguments to `get_cluster` via a request object, either of type
549
- # {Google::Cloud::Dataproc::V1beta2::GetClusterRequest} or an equivalent Hash.
550
+ # {::Google::Cloud::Dataproc::V1beta2::GetClusterRequest} or an equivalent Hash.
550
551
  #
551
- # @param request [Google::Cloud::Dataproc::V1beta2::GetClusterRequest, Hash]
552
+ # @param request [::Google::Cloud::Dataproc::V1beta2::GetClusterRequest, ::Hash]
552
553
  # A request object representing the call parameters. Required. To specify no
553
554
  # parameters, or to keep all the default parameter values, pass an empty Hash.
554
- # @param options [Gapic::CallOptions, Hash]
555
+ # @param options [::Gapic::CallOptions, ::Hash]
555
556
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
556
557
  #
557
558
  # @overload get_cluster(project_id: nil, region: nil, cluster_name: nil)
@@ -559,35 +560,35 @@ module Google
559
560
  # least one keyword argument is required. To specify no parameters, or to keep all
560
561
  # the default parameter values, pass an empty Hash as a request object (see above).
561
562
  #
562
- # @param project_id [String]
563
+ # @param project_id [::String]
563
564
  # Required. The ID of the Google Cloud Platform project that the cluster
564
565
  # belongs to.
565
- # @param region [String]
566
+ # @param region [::String]
566
567
  # Required. The Dataproc region in which to handle the request.
567
- # @param cluster_name [String]
568
+ # @param cluster_name [::String]
568
569
  # Required. The cluster name.
569
570
  #
570
571
  # @yield [response, operation] Access the result along with the RPC operation
571
- # @yieldparam response [Google::Cloud::Dataproc::V1beta2::Cluster]
572
- # @yieldparam operation [GRPC::ActiveCall::Operation]
572
+ # @yieldparam response [::Google::Cloud::Dataproc::V1beta2::Cluster]
573
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
573
574
  #
574
- # @return [Google::Cloud::Dataproc::V1beta2::Cluster]
575
+ # @return [::Google::Cloud::Dataproc::V1beta2::Cluster]
575
576
  #
576
- # @raise [Google::Cloud::Error] if the RPC is aborted.
577
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
577
578
  #
578
579
  def get_cluster request, options = nil
579
- raise ArgumentError, "request must be provided" if request.nil?
580
+ raise ::ArgumentError, "request must be provided" if request.nil?
580
581
 
581
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::GetClusterRequest
582
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::GetClusterRequest
582
583
 
583
584
  # Converts hash and nil to an options object
584
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
585
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
585
586
 
586
587
  # Customize the options with defaults
587
588
  metadata = @config.rpcs.get_cluster.metadata.to_h
588
589
 
589
590
  # Set x-goog-api-client and x-goog-user-project headers
590
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
591
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
591
592
  lib_name: @config.lib_name, lib_version: @config.lib_version,
592
593
  gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
593
594
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -610,8 +611,8 @@ module Google
610
611
  yield response, operation if block_given?
611
612
  return response
612
613
  end
613
- rescue GRPC::BadStatus => e
614
- raise Google::Cloud::Error.from_error(e)
614
+ rescue ::GRPC::BadStatus => e
615
+ raise ::Google::Cloud::Error.from_error(e)
615
616
  end
616
617
 
617
618
  ##
@@ -619,12 +620,12 @@ module Google
619
620
  #
620
621
  # @overload list_clusters(request, options = nil)
621
622
  # Pass arguments to `list_clusters` via a request object, either of type
622
- # {Google::Cloud::Dataproc::V1beta2::ListClustersRequest} or an equivalent Hash.
623
+ # {::Google::Cloud::Dataproc::V1beta2::ListClustersRequest} or an equivalent Hash.
623
624
  #
624
- # @param request [Google::Cloud::Dataproc::V1beta2::ListClustersRequest, Hash]
625
+ # @param request [::Google::Cloud::Dataproc::V1beta2::ListClustersRequest, ::Hash]
625
626
  # A request object representing the call parameters. Required. To specify no
626
627
  # parameters, or to keep all the default parameter values, pass an empty Hash.
627
- # @param options [Gapic::CallOptions, Hash]
628
+ # @param options [::Gapic::CallOptions, ::Hash]
628
629
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
629
630
  #
630
631
  # @overload list_clusters(project_id: nil, region: nil, filter: nil, page_size: nil, page_token: nil)
@@ -632,12 +633,12 @@ module Google
632
633
  # least one keyword argument is required. To specify no parameters, or to keep all
633
634
  # the default parameter values, pass an empty Hash as a request object (see above).
634
635
  #
635
- # @param project_id [String]
636
+ # @param project_id [::String]
636
637
  # Required. The ID of the Google Cloud Platform project that the cluster
637
638
  # belongs to.
638
- # @param region [String]
639
+ # @param region [::String]
639
640
  # Required. The Dataproc region in which to handle the request.
640
- # @param filter [String]
641
+ # @param filter [::String]
641
642
  # Optional. A filter constraining the clusters to list. Filters are
642
643
  # case-sensitive and have the following syntax:
643
644
  #
@@ -657,32 +658,32 @@ module Google
657
658
  #
658
659
  # status.state = ACTIVE AND clusterName = mycluster
659
660
  # AND labels.env = staging AND labels.starred = *
660
- # @param page_size [Integer]
661
+ # @param page_size [::Integer]
661
662
  # Optional. The standard List page size.
662
- # @param page_token [String]
663
+ # @param page_token [::String]
663
664
  # Optional. The standard List page token.
664
665
  #
665
666
  # @yield [response, operation] Access the result along with the RPC operation
666
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dataproc::V1beta2::Cluster>]
667
- # @yieldparam operation [GRPC::ActiveCall::Operation]
667
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataproc::V1beta2::Cluster>]
668
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
668
669
  #
669
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dataproc::V1beta2::Cluster>]
670
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataproc::V1beta2::Cluster>]
670
671
  #
671
- # @raise [Google::Cloud::Error] if the RPC is aborted.
672
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
672
673
  #
673
674
  def list_clusters request, options = nil
674
- raise ArgumentError, "request must be provided" if request.nil?
675
+ raise ::ArgumentError, "request must be provided" if request.nil?
675
676
 
676
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::ListClustersRequest
677
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::ListClustersRequest
677
678
 
678
679
  # Converts hash and nil to an options object
679
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
680
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
680
681
 
681
682
  # Customize the options with defaults
682
683
  metadata = @config.rpcs.list_clusters.metadata.to_h
683
684
 
684
685
  # Set x-goog-api-client and x-goog-user-project headers
685
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
686
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
686
687
  lib_name: @config.lib_name, lib_version: @config.lib_version,
687
688
  gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
688
689
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -701,31 +702,31 @@ module Google
701
702
  retry_policy: @config.retry_policy
702
703
 
703
704
  @cluster_controller_stub.call_rpc :list_clusters, request, options: options do |response, operation|
704
- response = Gapic::PagedEnumerable.new @cluster_controller_stub, :list_clusters, request, response, operation, options
705
+ response = ::Gapic::PagedEnumerable.new @cluster_controller_stub, :list_clusters, request, response, operation, options
705
706
  yield response, operation if block_given?
706
707
  return response
707
708
  end
708
- rescue GRPC::BadStatus => e
709
- raise Google::Cloud::Error.from_error(e)
709
+ rescue ::GRPC::BadStatus => e
710
+ raise ::Google::Cloud::Error.from_error(e)
710
711
  end
711
712
 
712
713
  ##
713
714
  # Gets cluster diagnostic information. The returned
714
- # {Google::Longrunning::Operation#metadata Operation.metadata} will be
715
+ # {::Google::Longrunning::Operation#metadata Operation.metadata} will be
715
716
  # [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1beta2#clusteroperationmetadata).
716
717
  # After the operation completes,
717
- # {Google::Longrunning::Operation#response Operation.response}
718
+ # {::Google::Longrunning::Operation#response Operation.response}
718
719
  # contains
719
- # {Google::Protobuf::Empty Empty}.
720
+ # {::Google::Protobuf::Empty Empty}.
720
721
  #
721
722
  # @overload diagnose_cluster(request, options = nil)
722
723
  # Pass arguments to `diagnose_cluster` via a request object, either of type
723
- # {Google::Cloud::Dataproc::V1beta2::DiagnoseClusterRequest} or an equivalent Hash.
724
+ # {::Google::Cloud::Dataproc::V1beta2::DiagnoseClusterRequest} or an equivalent Hash.
724
725
  #
725
- # @param request [Google::Cloud::Dataproc::V1beta2::DiagnoseClusterRequest, Hash]
726
+ # @param request [::Google::Cloud::Dataproc::V1beta2::DiagnoseClusterRequest, ::Hash]
726
727
  # A request object representing the call parameters. Required. To specify no
727
728
  # parameters, or to keep all the default parameter values, pass an empty Hash.
728
- # @param options [Gapic::CallOptions, Hash]
729
+ # @param options [::Gapic::CallOptions, ::Hash]
729
730
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
730
731
  #
731
732
  # @overload diagnose_cluster(project_id: nil, region: nil, cluster_name: nil)
@@ -733,35 +734,35 @@ module Google
733
734
  # least one keyword argument is required. To specify no parameters, or to keep all
734
735
  # the default parameter values, pass an empty Hash as a request object (see above).
735
736
  #
736
- # @param project_id [String]
737
+ # @param project_id [::String]
737
738
  # Required. The ID of the Google Cloud Platform project that the cluster
738
739
  # belongs to.
739
- # @param region [String]
740
+ # @param region [::String]
740
741
  # Required. The Dataproc region in which to handle the request.
741
- # @param cluster_name [String]
742
+ # @param cluster_name [::String]
742
743
  # Required. The cluster name.
743
744
  #
744
745
  # @yield [response, operation] Access the result along with the RPC operation
745
- # @yieldparam response [Gapic::Operation]
746
- # @yieldparam operation [GRPC::ActiveCall::Operation]
746
+ # @yieldparam response [::Gapic::Operation]
747
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
747
748
  #
748
- # @return [Gapic::Operation]
749
+ # @return [::Gapic::Operation]
749
750
  #
750
- # @raise [Google::Cloud::Error] if the RPC is aborted.
751
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
751
752
  #
752
753
  def diagnose_cluster request, options = nil
753
- raise ArgumentError, "request must be provided" if request.nil?
754
+ raise ::ArgumentError, "request must be provided" if request.nil?
754
755
 
755
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1beta2::DiagnoseClusterRequest
756
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1beta2::DiagnoseClusterRequest
756
757
 
757
758
  # Converts hash and nil to an options object
758
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
759
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
759
760
 
760
761
  # Customize the options with defaults
761
762
  metadata = @config.rpcs.diagnose_cluster.metadata.to_h
762
763
 
763
764
  # Set x-goog-api-client and x-goog-user-project headers
764
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
765
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
765
766
  lib_name: @config.lib_name, lib_version: @config.lib_version,
766
767
  gapic_version: ::Google::Cloud::Dataproc::V1beta2::VERSION
767
768
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -781,12 +782,12 @@ module Google
781
782
  retry_policy: @config.retry_policy
782
783
 
783
784
  @cluster_controller_stub.call_rpc :diagnose_cluster, request, options: options do |response, operation|
784
- response = Gapic::Operation.new response, @operations_client, options: options
785
+ response = ::Gapic::Operation.new response, @operations_client, options: options
785
786
  yield response, operation if block_given?
786
787
  return response
787
788
  end
788
- rescue GRPC::BadStatus => e
789
- raise Google::Cloud::Error.from_error(e)
789
+ rescue ::GRPC::BadStatus => e
790
+ raise ::Google::Cloud::Error.from_error(e)
790
791
  end
791
792
 
792
793
  ##
@@ -796,7 +797,7 @@ module Google
796
797
  # providing control over timeouts, retry behavior, logging, transport
797
798
  # parameters, and other low-level controls. Certain parameters can also be
798
799
  # applied individually to specific RPCs. See
799
- # {Google::Cloud::Dataproc::V1beta2::ClusterController::Client::Configuration::Rpcs}
800
+ # {::Google::Cloud::Dataproc::V1beta2::ClusterController::Client::Configuration::Rpcs}
800
801
  # for a list of RPCs that can be configured independently.
801
802
  #
802
803
  # Configuration can be applied globally to all clients, or to a single client
@@ -807,22 +808,22 @@ module Google
807
808
  # To modify the global config, setting the timeout for create_cluster
808
809
  # to 20 seconds, and all remaining timeouts to 10 seconds:
809
810
  #
810
- # Google::Cloud::Dataproc::V1beta2::ClusterController::Client.configure do |config|
811
- # config.timeout = 10_000
812
- # config.rpcs.create_cluster.timeout = 20_000
811
+ # ::Google::Cloud::Dataproc::V1beta2::ClusterController::Client.configure do |config|
812
+ # config.timeout = 10.0
813
+ # config.rpcs.create_cluster.timeout = 20.0
813
814
  # end
814
815
  #
815
816
  # To apply the above configuration only to a new client:
816
817
  #
817
- # client = Google::Cloud::Dataproc::V1beta2::ClusterController::Client.new do |config|
818
- # config.timeout = 10_000
819
- # config.rpcs.create_cluster.timeout = 20_000
818
+ # client = ::Google::Cloud::Dataproc::V1beta2::ClusterController::Client.new do |config|
819
+ # config.timeout = 10.0
820
+ # config.rpcs.create_cluster.timeout = 20.0
820
821
  # end
821
822
  #
822
823
  # @!attribute [rw] endpoint
823
824
  # The hostname or hostname:port of the service endpoint.
824
825
  # Defaults to `"dataproc.googleapis.com"`.
825
- # @return [String]
826
+ # @return [::String]
826
827
  # @!attribute [rw] credentials
827
828
  # Credentials to send with calls. You may provide any of the following types:
828
829
  # * (`String`) The path to a service account key file in JSON format
@@ -834,29 +835,29 @@ module Google
834
835
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
835
836
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
836
837
  # * (`nil`) indicating no credentials
837
- # @return [Object]
838
+ # @return [::Object]
838
839
  # @!attribute [rw] scope
839
840
  # The OAuth scopes
840
- # @return [Array<String>]
841
+ # @return [::Array<::String>]
841
842
  # @!attribute [rw] lib_name
842
843
  # The library name as recorded in instrumentation and logging
843
- # @return [String]
844
+ # @return [::String]
844
845
  # @!attribute [rw] lib_version
845
846
  # The library version as recorded in instrumentation and logging
846
- # @return [String]
847
+ # @return [::String]
847
848
  # @!attribute [rw] channel_args
848
849
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
849
850
  # `GRPC::Core::Channel` object is provided as the credential.
850
- # @return [Hash]
851
+ # @return [::Hash]
851
852
  # @!attribute [rw] interceptors
852
853
  # An array of interceptors that are run before calls are executed.
853
- # @return [Array<GRPC::ClientInterceptor>]
854
+ # @return [::Array<::GRPC::ClientInterceptor>]
854
855
  # @!attribute [rw] timeout
855
- # The call timeout in milliseconds.
856
- # @return [Numeric]
856
+ # The call timeout in seconds.
857
+ # @return [::Numeric]
857
858
  # @!attribute [rw] metadata
858
859
  # Additional gRPC headers to be sent with the call.
859
- # @return [Hash{Symbol=>String}]
860
+ # @return [::Hash{::Symbol=>::String}]
860
861
  # @!attribute [rw] retry_policy
861
862
  # The retry policy. The value is a hash with the following keys:
862
863
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -864,25 +865,29 @@ module Google
864
865
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
865
866
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
866
867
  # trigger a retry.
867
- # @return [Hash]
868
+ # @return [::Hash]
869
+ # @!attribute [rw] quota_project
870
+ # A separate project against which to charge quota.
871
+ # @return [::String]
868
872
  #
869
873
  class Configuration
870
- extend Gapic::Config
874
+ extend ::Gapic::Config
871
875
 
872
- config_attr :endpoint, "dataproc.googleapis.com", String
873
- config_attr :credentials, nil do |value|
876
+ config_attr :endpoint, "dataproc.googleapis.com", ::String
877
+ config_attr :credentials, nil do |value|
874
878
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
875
879
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
876
880
  allowed.any? { |klass| klass === value }
877
881
  end
878
- config_attr :scope, nil, String, Array, nil
879
- config_attr :lib_name, nil, String, nil
880
- config_attr :lib_version, nil, String, nil
881
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
882
- config_attr :interceptors, nil, Array, nil
883
- config_attr :timeout, nil, Numeric, nil
884
- config_attr :metadata, nil, Hash, nil
885
- config_attr :retry_policy, nil, Hash, Proc, nil
882
+ config_attr :scope, nil, ::String, ::Array, nil
883
+ config_attr :lib_name, nil, ::String, nil
884
+ config_attr :lib_version, nil, ::String, nil
885
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
886
+ config_attr :interceptors, nil, ::Array, nil
887
+ config_attr :timeout, nil, ::Numeric, nil
888
+ config_attr :metadata, nil, ::Hash, nil
889
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
890
+ config_attr :quota_project, nil, ::String, nil
886
891
 
887
892
  # @private
888
893
  def initialize parent_config = nil
@@ -898,7 +903,7 @@ module Google
898
903
  def rpcs
899
904
  @rpcs ||= begin
900
905
  parent_rpcs = nil
901
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
906
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
902
907
  Rpcs.new parent_rpcs
903
908
  end
904
909
  end
@@ -923,49 +928,49 @@ module Google
923
928
  class Rpcs
924
929
  ##
925
930
  # RPC-specific configuration for `create_cluster`
926
- # @return [Gapic::Config::Method]
931
+ # @return [::Gapic::Config::Method]
927
932
  #
928
933
  attr_reader :create_cluster
929
934
  ##
930
935
  # RPC-specific configuration for `update_cluster`
931
- # @return [Gapic::Config::Method]
936
+ # @return [::Gapic::Config::Method]
932
937
  #
933
938
  attr_reader :update_cluster
934
939
  ##
935
940
  # RPC-specific configuration for `delete_cluster`
936
- # @return [Gapic::Config::Method]
941
+ # @return [::Gapic::Config::Method]
937
942
  #
938
943
  attr_reader :delete_cluster
939
944
  ##
940
945
  # RPC-specific configuration for `get_cluster`
941
- # @return [Gapic::Config::Method]
946
+ # @return [::Gapic::Config::Method]
942
947
  #
943
948
  attr_reader :get_cluster
944
949
  ##
945
950
  # RPC-specific configuration for `list_clusters`
946
- # @return [Gapic::Config::Method]
951
+ # @return [::Gapic::Config::Method]
947
952
  #
948
953
  attr_reader :list_clusters
949
954
  ##
950
955
  # RPC-specific configuration for `diagnose_cluster`
951
- # @return [Gapic::Config::Method]
956
+ # @return [::Gapic::Config::Method]
952
957
  #
953
958
  attr_reader :diagnose_cluster
954
959
 
955
960
  # @private
956
961
  def initialize parent_rpcs = nil
957
962
  create_cluster_config = parent_rpcs&.create_cluster if parent_rpcs&.respond_to? :create_cluster
958
- @create_cluster = Gapic::Config::Method.new create_cluster_config
963
+ @create_cluster = ::Gapic::Config::Method.new create_cluster_config
959
964
  update_cluster_config = parent_rpcs&.update_cluster if parent_rpcs&.respond_to? :update_cluster
960
- @update_cluster = Gapic::Config::Method.new update_cluster_config
965
+ @update_cluster = ::Gapic::Config::Method.new update_cluster_config
961
966
  delete_cluster_config = parent_rpcs&.delete_cluster if parent_rpcs&.respond_to? :delete_cluster
962
- @delete_cluster = Gapic::Config::Method.new delete_cluster_config
967
+ @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
963
968
  get_cluster_config = parent_rpcs&.get_cluster if parent_rpcs&.respond_to? :get_cluster
964
- @get_cluster = Gapic::Config::Method.new get_cluster_config
969
+ @get_cluster = ::Gapic::Config::Method.new get_cluster_config
965
970
  list_clusters_config = parent_rpcs&.list_clusters if parent_rpcs&.respond_to? :list_clusters
966
- @list_clusters = Gapic::Config::Method.new list_clusters_config
971
+ @list_clusters = ::Gapic::Config::Method.new list_clusters_config
967
972
  diagnose_cluster_config = parent_rpcs&.diagnose_cluster if parent_rpcs&.respond_to? :diagnose_cluster
968
- @diagnose_cluster = Gapic::Config::Method.new diagnose_cluster_config
973
+ @diagnose_cluster = ::Gapic::Config::Method.new diagnose_cluster_config
969
974
 
970
975
  yield self if block_given?
971
976
  end