google-cloud-dataproc-v1 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/v1.rb +1 -1
  5. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service.rb +1 -1
  6. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +129 -124
  7. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/credentials.rb +1 -1
  8. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/paths.rb +10 -10
  9. data/lib/google/cloud/dataproc/v1/cluster_controller.rb +1 -1
  10. data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +179 -174
  11. data/lib/google/cloud/dataproc/v1/cluster_controller/credentials.rb +1 -1
  12. data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +109 -103
  13. data/lib/google/cloud/dataproc/v1/job_controller.rb +1 -1
  14. data/lib/google/cloud/dataproc/v1/job_controller/client.rb +186 -181
  15. data/lib/google/cloud/dataproc/v1/job_controller/credentials.rb +1 -1
  16. data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +109 -103
  17. data/lib/google/cloud/dataproc/v1/version.rb +1 -1
  18. data/lib/google/cloud/dataproc/v1/workflow_template_service.rb +1 -1
  19. data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +179 -174
  20. data/lib/google/cloud/dataproc/v1/workflow_template_service/credentials.rb +1 -1
  21. data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +109 -103
  22. data/lib/google/cloud/dataproc/v1/workflow_template_service/paths.rb +10 -10
  23. data/proto_docs/google/api/resource.rb +12 -12
  24. data/proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb +45 -45
  25. data/proto_docs/google/cloud/dataproc/v1/clusters.rb +186 -186
  26. data/proto_docs/google/cloud/dataproc/v1/jobs.rb +226 -225
  27. data/proto_docs/google/cloud/dataproc/v1/operations.rb +20 -20
  28. data/proto_docs/google/cloud/dataproc/v1/workflow_templates.rb +143 -143
  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 V1
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/v1/cluster_controller"
40
- # client = Google::Cloud::Dataproc::V1::ClusterController::Client.new
40
+ # client = ::Google::Cloud::Dataproc::V1::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::V1::ClusterController::Client::Configuration}
40
+ # See {::Google::Cloud::Dataproc::V1::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::V1::ClusterController::Client.configure do |config|
48
- # config.timeout = 10_000
47
+ # ::Google::Cloud::Dataproc::V1::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::V1::ClusterController::Client::Configuration}
128
+ # See {::Google::Cloud::Dataproc::V1::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::V1::ClusterController::Client.new
149
+ # client = ::Google::Cloud::Dataproc::V1::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::V1::ClusterController::Client.new do |config|
155
- # config.timeout = 10_000
154
+ # client = ::Google::Cloud::Dataproc::V1::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::V1::ClusterController::Stub,
188
+ @cluster_controller_stub = ::Gapic::ServiceStub.new(
189
+ ::Google::Cloud::Dataproc::V1::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::V1::ClusterController::Operations]
200
+ # @return [::Google::Cloud::Dataproc::V1::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.v1#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::V1::CreateClusterRequest} or an equivalent Hash.
213
+ # {::Google::Cloud::Dataproc::V1::CreateClusterRequest} or an equivalent Hash.
213
214
  #
214
- # @param request [Google::Cloud::Dataproc::V1::CreateClusterRequest, Hash]
215
+ # @param request [::Google::Cloud::Dataproc::V1::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::V1::Cluster, Hash]
231
+ # @param cluster [::Google::Cloud::Dataproc::V1::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::V1::CreateClusterRequest CreateClusterRequest} requests with the same
235
+ # receives two {::Google::Cloud::Dataproc::V1::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::V1::CreateClusterRequest
257
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::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::V1::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.v1#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::V1::UpdateClusterRequest} or an equivalent Hash.
300
+ # {::Google::Cloud::Dataproc::V1::UpdateClusterRequest} or an equivalent Hash.
300
301
  #
301
- # @param request [Google::Cloud::Dataproc::V1::UpdateClusterRequest, Hash]
302
+ # @param request [::Google::Cloud::Dataproc::V1::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::V1::Cluster, Hash]
320
+ # @param cluster [::Google::Cloud::Dataproc::V1::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
@@ -380,11 +381,11 @@ module Google
380
381
  # </tr>
381
382
  # </tbody>
382
383
  # </table>
383
- # @param request_id [String]
384
+ # @param request_id [::String]
384
385
  # Optional. A unique id used to identify the request. If the server
385
- # receives two {Google::Cloud::Dataproc::V1::UpdateClusterRequest UpdateClusterRequest} requests with the same
386
+ # receives two {::Google::Cloud::Dataproc::V1::UpdateClusterRequest UpdateClusterRequest} requests with the same
386
387
  # id, then the second request will be ignored and the
387
- # first {Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
388
+ # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
388
389
  # backend is returned.
389
390
  #
390
391
  # It is recommended to always set this value to a
@@ -394,26 +395,26 @@ module Google
394
395
  # underscores (_), and hyphens (-). The maximum length is 40 characters.
395
396
  #
396
397
  # @yield [response, operation] Access the result along with the RPC operation
397
- # @yieldparam response [Gapic::Operation]
398
- # @yieldparam operation [GRPC::ActiveCall::Operation]
398
+ # @yieldparam response [::Gapic::Operation]
399
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
399
400
  #
400
- # @return [Gapic::Operation]
401
+ # @return [::Gapic::Operation]
401
402
  #
402
- # @raise [Google::Cloud::Error] if the RPC is aborted.
403
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
403
404
  #
404
405
  def update_cluster request, options = nil
405
- raise ArgumentError, "request must be provided" if request.nil?
406
+ raise ::ArgumentError, "request must be provided" if request.nil?
406
407
 
407
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::UpdateClusterRequest
408
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::UpdateClusterRequest
408
409
 
409
410
  # Converts hash and nil to an options object
410
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
411
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
411
412
 
412
413
  # Customize the options with defaults
413
414
  metadata = @config.rpcs.update_cluster.metadata.to_h
414
415
 
415
416
  # Set x-goog-api-client and x-goog-user-project headers
416
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
417
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
417
418
  lib_name: @config.lib_name, lib_version: @config.lib_version,
418
419
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
419
420
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -433,27 +434,27 @@ module Google
433
434
  retry_policy: @config.retry_policy
434
435
 
435
436
  @cluster_controller_stub.call_rpc :update_cluster, request, options: options do |response, operation|
436
- response = Gapic::Operation.new response, @operations_client, options: options
437
+ response = ::Gapic::Operation.new response, @operations_client, options: options
437
438
  yield response, operation if block_given?
438
439
  return response
439
440
  end
440
- rescue GRPC::BadStatus => e
441
- raise Google::Cloud::Error.from_error(e)
441
+ rescue ::GRPC::BadStatus => e
442
+ raise ::Google::Cloud::Error.from_error(e)
442
443
  end
443
444
 
444
445
  ##
445
446
  # Deletes a cluster in a project. The returned
446
- # {Google::Longrunning::Operation#metadata Operation.metadata} will be
447
+ # {::Google::Longrunning::Operation#metadata Operation.metadata} will be
447
448
  # [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
448
449
  #
449
450
  # @overload delete_cluster(request, options = nil)
450
451
  # Pass arguments to `delete_cluster` via a request object, either of type
451
- # {Google::Cloud::Dataproc::V1::DeleteClusterRequest} or an equivalent Hash.
452
+ # {::Google::Cloud::Dataproc::V1::DeleteClusterRequest} or an equivalent Hash.
452
453
  #
453
- # @param request [Google::Cloud::Dataproc::V1::DeleteClusterRequest, Hash]
454
+ # @param request [::Google::Cloud::Dataproc::V1::DeleteClusterRequest, ::Hash]
454
455
  # A request object representing the call parameters. Required. To specify no
455
456
  # parameters, or to keep all the default parameter values, pass an empty Hash.
456
- # @param options [Gapic::CallOptions, Hash]
457
+ # @param options [::Gapic::CallOptions, ::Hash]
457
458
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
458
459
  #
459
460
  # @overload delete_cluster(project_id: nil, region: nil, cluster_name: nil, cluster_uuid: nil, request_id: nil)
@@ -461,21 +462,21 @@ module Google
461
462
  # least one keyword argument is required. To specify no parameters, or to keep all
462
463
  # the default parameter values, pass an empty Hash as a request object (see above).
463
464
  #
464
- # @param project_id [String]
465
+ # @param project_id [::String]
465
466
  # Required. The ID of the Google Cloud Platform project that the cluster
466
467
  # belongs to.
467
- # @param region [String]
468
+ # @param region [::String]
468
469
  # Required. The Dataproc region in which to handle the request.
469
- # @param cluster_name [String]
470
+ # @param cluster_name [::String]
470
471
  # Required. The cluster name.
471
- # @param cluster_uuid [String]
472
+ # @param cluster_uuid [::String]
472
473
  # Optional. Specifying the `cluster_uuid` means the RPC should fail
473
474
  # (with error NOT_FOUND) if cluster with specified UUID does not exist.
474
- # @param request_id [String]
475
+ # @param request_id [::String]
475
476
  # Optional. A unique id used to identify the request. If the server
476
- # receives two {Google::Cloud::Dataproc::V1::DeleteClusterRequest DeleteClusterRequest} requests with the same
477
+ # receives two {::Google::Cloud::Dataproc::V1::DeleteClusterRequest DeleteClusterRequest} requests with the same
477
478
  # id, then the second request will be ignored and the
478
- # first {Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
479
+ # first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
479
480
  # backend is returned.
480
481
  #
481
482
  # It is recommended to always set this value to a
@@ -485,26 +486,26 @@ module Google
485
486
  # underscores (_), and hyphens (-). The maximum length is 40 characters.
486
487
  #
487
488
  # @yield [response, operation] Access the result along with the RPC operation
488
- # @yieldparam response [Gapic::Operation]
489
- # @yieldparam operation [GRPC::ActiveCall::Operation]
489
+ # @yieldparam response [::Gapic::Operation]
490
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
490
491
  #
491
- # @return [Gapic::Operation]
492
+ # @return [::Gapic::Operation]
492
493
  #
493
- # @raise [Google::Cloud::Error] if the RPC is aborted.
494
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
494
495
  #
495
496
  def delete_cluster request, options = nil
496
- raise ArgumentError, "request must be provided" if request.nil?
497
+ raise ::ArgumentError, "request must be provided" if request.nil?
497
498
 
498
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::DeleteClusterRequest
499
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::DeleteClusterRequest
499
500
 
500
501
  # Converts hash and nil to an options object
501
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
502
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
502
503
 
503
504
  # Customize the options with defaults
504
505
  metadata = @config.rpcs.delete_cluster.metadata.to_h
505
506
 
506
507
  # Set x-goog-api-client and x-goog-user-project headers
507
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
508
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
508
509
  lib_name: @config.lib_name, lib_version: @config.lib_version,
509
510
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
510
511
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -524,12 +525,12 @@ module Google
524
525
  retry_policy: @config.retry_policy
525
526
 
526
527
  @cluster_controller_stub.call_rpc :delete_cluster, request, options: options do |response, operation|
527
- response = Gapic::Operation.new response, @operations_client, options: options
528
+ response = ::Gapic::Operation.new response, @operations_client, options: options
528
529
  yield response, operation if block_given?
529
530
  return response
530
531
  end
531
- rescue GRPC::BadStatus => e
532
- raise Google::Cloud::Error.from_error(e)
532
+ rescue ::GRPC::BadStatus => e
533
+ raise ::Google::Cloud::Error.from_error(e)
533
534
  end
534
535
 
535
536
  ##
@@ -537,12 +538,12 @@ module Google
537
538
  #
538
539
  # @overload get_cluster(request, options = nil)
539
540
  # Pass arguments to `get_cluster` via a request object, either of type
540
- # {Google::Cloud::Dataproc::V1::GetClusterRequest} or an equivalent Hash.
541
+ # {::Google::Cloud::Dataproc::V1::GetClusterRequest} or an equivalent Hash.
541
542
  #
542
- # @param request [Google::Cloud::Dataproc::V1::GetClusterRequest, Hash]
543
+ # @param request [::Google::Cloud::Dataproc::V1::GetClusterRequest, ::Hash]
543
544
  # A request object representing the call parameters. Required. To specify no
544
545
  # parameters, or to keep all the default parameter values, pass an empty Hash.
545
- # @param options [Gapic::CallOptions, Hash]
546
+ # @param options [::Gapic::CallOptions, ::Hash]
546
547
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
547
548
  #
548
549
  # @overload get_cluster(project_id: nil, region: nil, cluster_name: nil)
@@ -550,35 +551,35 @@ module Google
550
551
  # least one keyword argument is required. To specify no parameters, or to keep all
551
552
  # the default parameter values, pass an empty Hash as a request object (see above).
552
553
  #
553
- # @param project_id [String]
554
+ # @param project_id [::String]
554
555
  # Required. The ID of the Google Cloud Platform project that the cluster
555
556
  # belongs to.
556
- # @param region [String]
557
+ # @param region [::String]
557
558
  # Required. The Dataproc region in which to handle the request.
558
- # @param cluster_name [String]
559
+ # @param cluster_name [::String]
559
560
  # Required. The cluster name.
560
561
  #
561
562
  # @yield [response, operation] Access the result along with the RPC operation
562
- # @yieldparam response [Google::Cloud::Dataproc::V1::Cluster]
563
- # @yieldparam operation [GRPC::ActiveCall::Operation]
563
+ # @yieldparam response [::Google::Cloud::Dataproc::V1::Cluster]
564
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
564
565
  #
565
- # @return [Google::Cloud::Dataproc::V1::Cluster]
566
+ # @return [::Google::Cloud::Dataproc::V1::Cluster]
566
567
  #
567
- # @raise [Google::Cloud::Error] if the RPC is aborted.
568
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
568
569
  #
569
570
  def get_cluster request, options = nil
570
- raise ArgumentError, "request must be provided" if request.nil?
571
+ raise ::ArgumentError, "request must be provided" if request.nil?
571
572
 
572
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::GetClusterRequest
573
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::GetClusterRequest
573
574
 
574
575
  # Converts hash and nil to an options object
575
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
576
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
576
577
 
577
578
  # Customize the options with defaults
578
579
  metadata = @config.rpcs.get_cluster.metadata.to_h
579
580
 
580
581
  # Set x-goog-api-client and x-goog-user-project headers
581
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
582
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
582
583
  lib_name: @config.lib_name, lib_version: @config.lib_version,
583
584
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
584
585
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -601,8 +602,8 @@ module Google
601
602
  yield response, operation if block_given?
602
603
  return response
603
604
  end
604
- rescue GRPC::BadStatus => e
605
- raise Google::Cloud::Error.from_error(e)
605
+ rescue ::GRPC::BadStatus => e
606
+ raise ::Google::Cloud::Error.from_error(e)
606
607
  end
607
608
 
608
609
  ##
@@ -610,12 +611,12 @@ module Google
610
611
  #
611
612
  # @overload list_clusters(request, options = nil)
612
613
  # Pass arguments to `list_clusters` via a request object, either of type
613
- # {Google::Cloud::Dataproc::V1::ListClustersRequest} or an equivalent Hash.
614
+ # {::Google::Cloud::Dataproc::V1::ListClustersRequest} or an equivalent Hash.
614
615
  #
615
- # @param request [Google::Cloud::Dataproc::V1::ListClustersRequest, Hash]
616
+ # @param request [::Google::Cloud::Dataproc::V1::ListClustersRequest, ::Hash]
616
617
  # A request object representing the call parameters. Required. To specify no
617
618
  # parameters, or to keep all the default parameter values, pass an empty Hash.
618
- # @param options [Gapic::CallOptions, Hash]
619
+ # @param options [::Gapic::CallOptions, ::Hash]
619
620
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
620
621
  #
621
622
  # @overload list_clusters(project_id: nil, region: nil, filter: nil, page_size: nil, page_token: nil)
@@ -623,12 +624,12 @@ module Google
623
624
  # least one keyword argument is required. To specify no parameters, or to keep all
624
625
  # the default parameter values, pass an empty Hash as a request object (see above).
625
626
  #
626
- # @param project_id [String]
627
+ # @param project_id [::String]
627
628
  # Required. The ID of the Google Cloud Platform project that the cluster
628
629
  # belongs to.
629
- # @param region [String]
630
+ # @param region [::String]
630
631
  # Required. The Dataproc region in which to handle the request.
631
- # @param filter [String]
632
+ # @param filter [::String]
632
633
  # Optional. A filter constraining the clusters to list. Filters are
633
634
  # case-sensitive and have the following syntax:
634
635
  #
@@ -648,32 +649,32 @@ module Google
648
649
  #
649
650
  # status.state = ACTIVE AND clusterName = mycluster
650
651
  # AND labels.env = staging AND labels.starred = *
651
- # @param page_size [Integer]
652
+ # @param page_size [::Integer]
652
653
  # Optional. The standard List page size.
653
- # @param page_token [String]
654
+ # @param page_token [::String]
654
655
  # Optional. The standard List page token.
655
656
  #
656
657
  # @yield [response, operation] Access the result along with the RPC operation
657
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dataproc::V1::Cluster>]
658
- # @yieldparam operation [GRPC::ActiveCall::Operation]
658
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataproc::V1::Cluster>]
659
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
659
660
  #
660
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dataproc::V1::Cluster>]
661
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataproc::V1::Cluster>]
661
662
  #
662
- # @raise [Google::Cloud::Error] if the RPC is aborted.
663
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
663
664
  #
664
665
  def list_clusters request, options = nil
665
- raise ArgumentError, "request must be provided" if request.nil?
666
+ raise ::ArgumentError, "request must be provided" if request.nil?
666
667
 
667
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::ListClustersRequest
668
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::ListClustersRequest
668
669
 
669
670
  # Converts hash and nil to an options object
670
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
671
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
671
672
 
672
673
  # Customize the options with defaults
673
674
  metadata = @config.rpcs.list_clusters.metadata.to_h
674
675
 
675
676
  # Set x-goog-api-client and x-goog-user-project headers
676
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
677
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
677
678
  lib_name: @config.lib_name, lib_version: @config.lib_version,
678
679
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
679
680
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -692,31 +693,31 @@ module Google
692
693
  retry_policy: @config.retry_policy
693
694
 
694
695
  @cluster_controller_stub.call_rpc :list_clusters, request, options: options do |response, operation|
695
- response = Gapic::PagedEnumerable.new @cluster_controller_stub, :list_clusters, request, response, operation, options
696
+ response = ::Gapic::PagedEnumerable.new @cluster_controller_stub, :list_clusters, request, response, operation, options
696
697
  yield response, operation if block_given?
697
698
  return response
698
699
  end
699
- rescue GRPC::BadStatus => e
700
- raise Google::Cloud::Error.from_error(e)
700
+ rescue ::GRPC::BadStatus => e
701
+ raise ::Google::Cloud::Error.from_error(e)
701
702
  end
702
703
 
703
704
  ##
704
705
  # Gets cluster diagnostic information. The returned
705
- # {Google::Longrunning::Operation#metadata Operation.metadata} will be
706
+ # {::Google::Longrunning::Operation#metadata Operation.metadata} will be
706
707
  # [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
707
708
  # After the operation completes,
708
- # {Google::Longrunning::Operation#response Operation.response}
709
+ # {::Google::Longrunning::Operation#response Operation.response}
709
710
  # contains
710
711
  # [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).
711
712
  #
712
713
  # @overload diagnose_cluster(request, options = nil)
713
714
  # Pass arguments to `diagnose_cluster` via a request object, either of type
714
- # {Google::Cloud::Dataproc::V1::DiagnoseClusterRequest} or an equivalent Hash.
715
+ # {::Google::Cloud::Dataproc::V1::DiagnoseClusterRequest} or an equivalent Hash.
715
716
  #
716
- # @param request [Google::Cloud::Dataproc::V1::DiagnoseClusterRequest, Hash]
717
+ # @param request [::Google::Cloud::Dataproc::V1::DiagnoseClusterRequest, ::Hash]
717
718
  # A request object representing the call parameters. Required. To specify no
718
719
  # parameters, or to keep all the default parameter values, pass an empty Hash.
719
- # @param options [Gapic::CallOptions, Hash]
720
+ # @param options [::Gapic::CallOptions, ::Hash]
720
721
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
721
722
  #
722
723
  # @overload diagnose_cluster(project_id: nil, region: nil, cluster_name: nil)
@@ -724,35 +725,35 @@ module Google
724
725
  # least one keyword argument is required. To specify no parameters, or to keep all
725
726
  # the default parameter values, pass an empty Hash as a request object (see above).
726
727
  #
727
- # @param project_id [String]
728
+ # @param project_id [::String]
728
729
  # Required. The ID of the Google Cloud Platform project that the cluster
729
730
  # belongs to.
730
- # @param region [String]
731
+ # @param region [::String]
731
732
  # Required. The Dataproc region in which to handle the request.
732
- # @param cluster_name [String]
733
+ # @param cluster_name [::String]
733
734
  # Required. The cluster name.
734
735
  #
735
736
  # @yield [response, operation] Access the result along with the RPC operation
736
- # @yieldparam response [Gapic::Operation]
737
- # @yieldparam operation [GRPC::ActiveCall::Operation]
737
+ # @yieldparam response [::Gapic::Operation]
738
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
738
739
  #
739
- # @return [Gapic::Operation]
740
+ # @return [::Gapic::Operation]
740
741
  #
741
- # @raise [Google::Cloud::Error] if the RPC is aborted.
742
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
742
743
  #
743
744
  def diagnose_cluster request, options = nil
744
- raise ArgumentError, "request must be provided" if request.nil?
745
+ raise ::ArgumentError, "request must be provided" if request.nil?
745
746
 
746
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::DiagnoseClusterRequest
747
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::DiagnoseClusterRequest
747
748
 
748
749
  # Converts hash and nil to an options object
749
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
750
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
750
751
 
751
752
  # Customize the options with defaults
752
753
  metadata = @config.rpcs.diagnose_cluster.metadata.to_h
753
754
 
754
755
  # Set x-goog-api-client and x-goog-user-project headers
755
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
756
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
756
757
  lib_name: @config.lib_name, lib_version: @config.lib_version,
757
758
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
758
759
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -772,12 +773,12 @@ module Google
772
773
  retry_policy: @config.retry_policy
773
774
 
774
775
  @cluster_controller_stub.call_rpc :diagnose_cluster, request, options: options do |response, operation|
775
- response = Gapic::Operation.new response, @operations_client, options: options
776
+ response = ::Gapic::Operation.new response, @operations_client, options: options
776
777
  yield response, operation if block_given?
777
778
  return response
778
779
  end
779
- rescue GRPC::BadStatus => e
780
- raise Google::Cloud::Error.from_error(e)
780
+ rescue ::GRPC::BadStatus => e
781
+ raise ::Google::Cloud::Error.from_error(e)
781
782
  end
782
783
 
783
784
  ##
@@ -787,7 +788,7 @@ module Google
787
788
  # providing control over timeouts, retry behavior, logging, transport
788
789
  # parameters, and other low-level controls. Certain parameters can also be
789
790
  # applied individually to specific RPCs. See
790
- # {Google::Cloud::Dataproc::V1::ClusterController::Client::Configuration::Rpcs}
791
+ # {::Google::Cloud::Dataproc::V1::ClusterController::Client::Configuration::Rpcs}
791
792
  # for a list of RPCs that can be configured independently.
792
793
  #
793
794
  # Configuration can be applied globally to all clients, or to a single client
@@ -798,22 +799,22 @@ module Google
798
799
  # To modify the global config, setting the timeout for create_cluster
799
800
  # to 20 seconds, and all remaining timeouts to 10 seconds:
800
801
  #
801
- # Google::Cloud::Dataproc::V1::ClusterController::Client.configure do |config|
802
- # config.timeout = 10_000
803
- # config.rpcs.create_cluster.timeout = 20_000
802
+ # ::Google::Cloud::Dataproc::V1::ClusterController::Client.configure do |config|
803
+ # config.timeout = 10.0
804
+ # config.rpcs.create_cluster.timeout = 20.0
804
805
  # end
805
806
  #
806
807
  # To apply the above configuration only to a new client:
807
808
  #
808
- # client = Google::Cloud::Dataproc::V1::ClusterController::Client.new do |config|
809
- # config.timeout = 10_000
810
- # config.rpcs.create_cluster.timeout = 20_000
809
+ # client = ::Google::Cloud::Dataproc::V1::ClusterController::Client.new do |config|
810
+ # config.timeout = 10.0
811
+ # config.rpcs.create_cluster.timeout = 20.0
811
812
  # end
812
813
  #
813
814
  # @!attribute [rw] endpoint
814
815
  # The hostname or hostname:port of the service endpoint.
815
816
  # Defaults to `"dataproc.googleapis.com"`.
816
- # @return [String]
817
+ # @return [::String]
817
818
  # @!attribute [rw] credentials
818
819
  # Credentials to send with calls. You may provide any of the following types:
819
820
  # * (`String`) The path to a service account key file in JSON format
@@ -825,29 +826,29 @@ module Google
825
826
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
826
827
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
827
828
  # * (`nil`) indicating no credentials
828
- # @return [Object]
829
+ # @return [::Object]
829
830
  # @!attribute [rw] scope
830
831
  # The OAuth scopes
831
- # @return [Array<String>]
832
+ # @return [::Array<::String>]
832
833
  # @!attribute [rw] lib_name
833
834
  # The library name as recorded in instrumentation and logging
834
- # @return [String]
835
+ # @return [::String]
835
836
  # @!attribute [rw] lib_version
836
837
  # The library version as recorded in instrumentation and logging
837
- # @return [String]
838
+ # @return [::String]
838
839
  # @!attribute [rw] channel_args
839
840
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
840
841
  # `GRPC::Core::Channel` object is provided as the credential.
841
- # @return [Hash]
842
+ # @return [::Hash]
842
843
  # @!attribute [rw] interceptors
843
844
  # An array of interceptors that are run before calls are executed.
844
- # @return [Array<GRPC::ClientInterceptor>]
845
+ # @return [::Array<::GRPC::ClientInterceptor>]
845
846
  # @!attribute [rw] timeout
846
- # The call timeout in milliseconds.
847
- # @return [Numeric]
847
+ # The call timeout in seconds.
848
+ # @return [::Numeric]
848
849
  # @!attribute [rw] metadata
849
850
  # Additional gRPC headers to be sent with the call.
850
- # @return [Hash{Symbol=>String}]
851
+ # @return [::Hash{::Symbol=>::String}]
851
852
  # @!attribute [rw] retry_policy
852
853
  # The retry policy. The value is a hash with the following keys:
853
854
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -855,25 +856,29 @@ module Google
855
856
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
856
857
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
857
858
  # trigger a retry.
858
- # @return [Hash]
859
+ # @return [::Hash]
860
+ # @!attribute [rw] quota_project
861
+ # A separate project against which to charge quota.
862
+ # @return [::String]
859
863
  #
860
864
  class Configuration
861
- extend Gapic::Config
865
+ extend ::Gapic::Config
862
866
 
863
- config_attr :endpoint, "dataproc.googleapis.com", String
864
- config_attr :credentials, nil do |value|
867
+ config_attr :endpoint, "dataproc.googleapis.com", ::String
868
+ config_attr :credentials, nil do |value|
865
869
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
866
870
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
867
871
  allowed.any? { |klass| klass === value }
868
872
  end
869
- config_attr :scope, nil, String, Array, nil
870
- config_attr :lib_name, nil, String, nil
871
- config_attr :lib_version, nil, String, nil
872
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
873
- config_attr :interceptors, nil, Array, nil
874
- config_attr :timeout, nil, Numeric, nil
875
- config_attr :metadata, nil, Hash, nil
876
- config_attr :retry_policy, nil, Hash, Proc, nil
873
+ config_attr :scope, nil, ::String, ::Array, nil
874
+ config_attr :lib_name, nil, ::String, nil
875
+ config_attr :lib_version, nil, ::String, nil
876
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
877
+ config_attr :interceptors, nil, ::Array, nil
878
+ config_attr :timeout, nil, ::Numeric, nil
879
+ config_attr :metadata, nil, ::Hash, nil
880
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
881
+ config_attr :quota_project, nil, ::String, nil
877
882
 
878
883
  # @private
879
884
  def initialize parent_config = nil
@@ -889,7 +894,7 @@ module Google
889
894
  def rpcs
890
895
  @rpcs ||= begin
891
896
  parent_rpcs = nil
892
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
897
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
893
898
  Rpcs.new parent_rpcs
894
899
  end
895
900
  end
@@ -914,49 +919,49 @@ module Google
914
919
  class Rpcs
915
920
  ##
916
921
  # RPC-specific configuration for `create_cluster`
917
- # @return [Gapic::Config::Method]
922
+ # @return [::Gapic::Config::Method]
918
923
  #
919
924
  attr_reader :create_cluster
920
925
  ##
921
926
  # RPC-specific configuration for `update_cluster`
922
- # @return [Gapic::Config::Method]
927
+ # @return [::Gapic::Config::Method]
923
928
  #
924
929
  attr_reader :update_cluster
925
930
  ##
926
931
  # RPC-specific configuration for `delete_cluster`
927
- # @return [Gapic::Config::Method]
932
+ # @return [::Gapic::Config::Method]
928
933
  #
929
934
  attr_reader :delete_cluster
930
935
  ##
931
936
  # RPC-specific configuration for `get_cluster`
932
- # @return [Gapic::Config::Method]
937
+ # @return [::Gapic::Config::Method]
933
938
  #
934
939
  attr_reader :get_cluster
935
940
  ##
936
941
  # RPC-specific configuration for `list_clusters`
937
- # @return [Gapic::Config::Method]
942
+ # @return [::Gapic::Config::Method]
938
943
  #
939
944
  attr_reader :list_clusters
940
945
  ##
941
946
  # RPC-specific configuration for `diagnose_cluster`
942
- # @return [Gapic::Config::Method]
947
+ # @return [::Gapic::Config::Method]
943
948
  #
944
949
  attr_reader :diagnose_cluster
945
950
 
946
951
  # @private
947
952
  def initialize parent_rpcs = nil
948
953
  create_cluster_config = parent_rpcs&.create_cluster if parent_rpcs&.respond_to? :create_cluster
949
- @create_cluster = Gapic::Config::Method.new create_cluster_config
954
+ @create_cluster = ::Gapic::Config::Method.new create_cluster_config
950
955
  update_cluster_config = parent_rpcs&.update_cluster if parent_rpcs&.respond_to? :update_cluster
951
- @update_cluster = Gapic::Config::Method.new update_cluster_config
956
+ @update_cluster = ::Gapic::Config::Method.new update_cluster_config
952
957
  delete_cluster_config = parent_rpcs&.delete_cluster if parent_rpcs&.respond_to? :delete_cluster
953
- @delete_cluster = Gapic::Config::Method.new delete_cluster_config
958
+ @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
954
959
  get_cluster_config = parent_rpcs&.get_cluster if parent_rpcs&.respond_to? :get_cluster
955
- @get_cluster = Gapic::Config::Method.new get_cluster_config
960
+ @get_cluster = ::Gapic::Config::Method.new get_cluster_config
956
961
  list_clusters_config = parent_rpcs&.list_clusters if parent_rpcs&.respond_to? :list_clusters
957
- @list_clusters = Gapic::Config::Method.new list_clusters_config
962
+ @list_clusters = ::Gapic::Config::Method.new list_clusters_config
958
963
  diagnose_cluster_config = parent_rpcs&.diagnose_cluster if parent_rpcs&.respond_to? :diagnose_cluster
959
- @diagnose_cluster = Gapic::Config::Method.new diagnose_cluster_config
964
+ @diagnose_cluster = ::Gapic::Config::Method.new diagnose_cluster_config
960
965
 
961
966
  yield self if block_given?
962
967
  end