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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dataproc
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.3"
25
25
  end
26
26
  end
27
27
  end
@@ -38,7 +38,7 @@ module Google
38
38
  # To load this service and instantiate a client:
39
39
  #
40
40
  # require "google/cloud/dataproc/v1/workflow_template_service"
41
- # client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
41
+ # client = ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
42
42
  #
43
43
  module WorkflowTemplateService
44
44
  end
@@ -39,15 +39,15 @@ module Google
39
39
  ##
40
40
  # Configure the WorkflowTemplateService Client class.
41
41
  #
42
- # See {Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client::Configuration}
42
+ # See {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
45
  # ## Example
46
46
  #
47
47
  # To modify the configuration for all WorkflowTemplateService clients:
48
48
  #
49
- # Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.configure do |config|
50
- # config.timeout = 10_000
49
+ # ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.configure do |config|
50
+ # config.timeout = 10.0
51
51
  # end
52
52
  #
53
53
  # @yield [config] Configure the Client client.
@@ -135,7 +135,7 @@ module Google
135
135
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
136
136
  # should be made on {Client.configure}.
137
137
  #
138
- # See {Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client::Configuration}
138
+ # See {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client::Configuration}
139
139
  # for a description of the configuration fields.
140
140
  #
141
141
  # @yield [config] Configure the Client client.
@@ -156,13 +156,13 @@ module Google
156
156
  # To create a new WorkflowTemplateService client with the default
157
157
  # configuration:
158
158
  #
159
- # client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
159
+ # client = ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
160
160
  #
161
161
  # To create a new WorkflowTemplateService client with a custom
162
162
  # configuration:
163
163
  #
164
- # client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new do |config|
165
- # config.timeout = 10_000
164
+ # client = ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new do |config|
165
+ # config.timeout = 10.0
166
166
  # end
167
167
  #
168
168
  # @yield [config] Configure the WorkflowTemplateService client.
@@ -187,15 +187,16 @@ module Google
187
187
  if credentials.is_a?(String) || credentials.is_a?(Hash)
188
188
  credentials = Credentials.new credentials, scope: @config.scope
189
189
  end
190
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
190
+ @quota_project_id = @config.quota_project
191
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
191
192
 
192
193
  @operations_client = Operations.new do |config|
193
194
  config.credentials = credentials
194
195
  config.endpoint = @config.endpoint
195
196
  end
196
197
 
197
- @workflow_template_service_stub = Gapic::ServiceStub.new(
198
- Google::Cloud::Dataproc::V1::WorkflowTemplateService::Stub,
198
+ @workflow_template_service_stub = ::Gapic::ServiceStub.new(
199
+ ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Stub,
199
200
  credentials: credentials,
200
201
  endpoint: @config.endpoint,
201
202
  channel_args: @config.channel_args,
@@ -206,7 +207,7 @@ module Google
206
207
  ##
207
208
  # Get the associated client for long-running operations.
208
209
  #
209
- # @return [Google::Cloud::Dataproc::V1::WorkflowTemplateService::Operations]
210
+ # @return [::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Operations]
210
211
  #
211
212
  attr_reader :operations_client
212
213
 
@@ -217,12 +218,12 @@ module Google
217
218
  #
218
219
  # @overload create_workflow_template(request, options = nil)
219
220
  # Pass arguments to `create_workflow_template` via a request object, either of type
220
- # {Google::Cloud::Dataproc::V1::CreateWorkflowTemplateRequest} or an equivalent Hash.
221
+ # {::Google::Cloud::Dataproc::V1::CreateWorkflowTemplateRequest} or an equivalent Hash.
221
222
  #
222
- # @param request [Google::Cloud::Dataproc::V1::CreateWorkflowTemplateRequest, Hash]
223
+ # @param request [::Google::Cloud::Dataproc::V1::CreateWorkflowTemplateRequest, ::Hash]
223
224
  # A request object representing the call parameters. Required. To specify no
224
225
  # parameters, or to keep all the default parameter values, pass an empty Hash.
225
- # @param options [Gapic::CallOptions, Hash]
226
+ # @param options [::Gapic::CallOptions, ::Hash]
226
227
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
227
228
  #
228
229
  # @overload create_workflow_template(parent: nil, template: nil)
@@ -230,7 +231,7 @@ module Google
230
231
  # least one keyword argument is required. To specify no parameters, or to keep all
231
232
  # the default parameter values, pass an empty Hash as a request object (see above).
232
233
  #
233
- # @param parent [String]
234
+ # @param parent [::String]
234
235
  # Required. The resource name of the region or location, as described
235
236
  # in https://cloud.google.com/apis/design/resource_names.
236
237
  #
@@ -241,30 +242,30 @@ module Google
241
242
  # * For `projects.locations.workflowTemplates.create`, the resource name of
242
243
  # the location has the following format:
243
244
  # `projects/{project_id}/locations/{location}`
244
- # @param template [Google::Cloud::Dataproc::V1::WorkflowTemplate, Hash]
245
+ # @param template [::Google::Cloud::Dataproc::V1::WorkflowTemplate, ::Hash]
245
246
  # Required. The Dataproc workflow template to create.
246
247
  #
247
248
  # @yield [response, operation] Access the result along with the RPC operation
248
- # @yieldparam response [Google::Cloud::Dataproc::V1::WorkflowTemplate]
249
- # @yieldparam operation [GRPC::ActiveCall::Operation]
249
+ # @yieldparam response [::Google::Cloud::Dataproc::V1::WorkflowTemplate]
250
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
250
251
  #
251
- # @return [Google::Cloud::Dataproc::V1::WorkflowTemplate]
252
+ # @return [::Google::Cloud::Dataproc::V1::WorkflowTemplate]
252
253
  #
253
- # @raise [Google::Cloud::Error] if the RPC is aborted.
254
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
254
255
  #
255
256
  def create_workflow_template request, options = nil
256
- raise ArgumentError, "request must be provided" if request.nil?
257
+ raise ::ArgumentError, "request must be provided" if request.nil?
257
258
 
258
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::CreateWorkflowTemplateRequest
259
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::CreateWorkflowTemplateRequest
259
260
 
260
261
  # Converts hash and nil to an options object
261
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
262
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
262
263
 
263
264
  # Customize the options with defaults
264
265
  metadata = @config.rpcs.create_workflow_template.metadata.to_h
265
266
 
266
267
  # Set x-goog-api-client and x-goog-user-project headers
267
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
268
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
268
269
  lib_name: @config.lib_name, lib_version: @config.lib_version,
269
270
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
270
271
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -285,8 +286,8 @@ module Google
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
  ##
@@ -297,12 +298,12 @@ module Google
297
298
  #
298
299
  # @overload get_workflow_template(request, options = nil)
299
300
  # Pass arguments to `get_workflow_template` via a request object, either of type
300
- # {Google::Cloud::Dataproc::V1::GetWorkflowTemplateRequest} or an equivalent Hash.
301
+ # {::Google::Cloud::Dataproc::V1::GetWorkflowTemplateRequest} or an equivalent Hash.
301
302
  #
302
- # @param request [Google::Cloud::Dataproc::V1::GetWorkflowTemplateRequest, Hash]
303
+ # @param request [::Google::Cloud::Dataproc::V1::GetWorkflowTemplateRequest, ::Hash]
303
304
  # A request object representing the call parameters. Required. To specify no
304
305
  # parameters, or to keep all the default parameter values, pass an empty Hash.
305
- # @param options [Gapic::CallOptions, Hash]
306
+ # @param options [::Gapic::CallOptions, ::Hash]
306
307
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
307
308
  #
308
309
  # @overload get_workflow_template(name: nil, version: nil)
@@ -310,7 +311,7 @@ module Google
310
311
  # least one keyword argument is required. To specify no parameters, or to keep all
311
312
  # the default parameter values, pass an empty Hash as a request object (see above).
312
313
  #
313
- # @param name [String]
314
+ # @param name [::String]
314
315
  # Required. The resource name of the workflow template, as described
315
316
  # in https://cloud.google.com/apis/design/resource_names.
316
317
  #
@@ -321,33 +322,33 @@ module Google
321
322
  # * For `projects.locations.workflowTemplates.get`, the resource name of the
322
323
  # template has the following format:
323
324
  # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
324
- # @param version [Integer]
325
+ # @param version [::Integer]
325
326
  # Optional. The version of workflow template to retrieve. Only previously
326
327
  # instantiated versions can be retrieved.
327
328
  #
328
329
  # If unspecified, retrieves the current version.
329
330
  #
330
331
  # @yield [response, operation] Access the result along with the RPC operation
331
- # @yieldparam response [Google::Cloud::Dataproc::V1::WorkflowTemplate]
332
- # @yieldparam operation [GRPC::ActiveCall::Operation]
332
+ # @yieldparam response [::Google::Cloud::Dataproc::V1::WorkflowTemplate]
333
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
333
334
  #
334
- # @return [Google::Cloud::Dataproc::V1::WorkflowTemplate]
335
+ # @return [::Google::Cloud::Dataproc::V1::WorkflowTemplate]
335
336
  #
336
- # @raise [Google::Cloud::Error] if the RPC is aborted.
337
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
337
338
  #
338
339
  def get_workflow_template request, options = nil
339
- raise ArgumentError, "request must be provided" if request.nil?
340
+ raise ::ArgumentError, "request must be provided" if request.nil?
340
341
 
341
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::GetWorkflowTemplateRequest
342
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::GetWorkflowTemplateRequest
342
343
 
343
344
  # Converts hash and nil to an options object
344
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
345
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
345
346
 
346
347
  # Customize the options with defaults
347
348
  metadata = @config.rpcs.get_workflow_template.metadata.to_h
348
349
 
349
350
  # Set x-goog-api-client and x-goog-user-project headers
350
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
351
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
351
352
  lib_name: @config.lib_name, lib_version: @config.lib_version,
352
353
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
353
354
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -368,8 +369,8 @@ module Google
368
369
  yield response, operation if block_given?
369
370
  return response
370
371
  end
371
- rescue GRPC::BadStatus => e
372
- raise Google::Cloud::Error.from_error(e)
372
+ rescue ::GRPC::BadStatus => e
373
+ raise ::Google::Cloud::Error.from_error(e)
373
374
  end
374
375
 
375
376
  ##
@@ -385,23 +386,23 @@ module Google
385
386
  # This will cause any inflight jobs to be cancelled and workflow-owned
386
387
  # clusters to be deleted.
387
388
  #
388
- # The {Google::Longrunning::Operation#metadata Operation.metadata} will be
389
+ # The {::Google::Longrunning::Operation#metadata Operation.metadata} will be
389
390
  # [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
390
391
  # Also see [Using
391
392
  # WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
392
393
  #
393
394
  # On successful completion,
394
- # {Google::Longrunning::Operation#response Operation.response} will be
395
- # {Google::Protobuf::Empty Empty}.
395
+ # {::Google::Longrunning::Operation#response Operation.response} will be
396
+ # {::Google::Protobuf::Empty Empty}.
396
397
  #
397
398
  # @overload instantiate_workflow_template(request, options = nil)
398
399
  # Pass arguments to `instantiate_workflow_template` via a request object, either of type
399
- # {Google::Cloud::Dataproc::V1::InstantiateWorkflowTemplateRequest} or an equivalent Hash.
400
+ # {::Google::Cloud::Dataproc::V1::InstantiateWorkflowTemplateRequest} or an equivalent Hash.
400
401
  #
401
- # @param request [Google::Cloud::Dataproc::V1::InstantiateWorkflowTemplateRequest, Hash]
402
+ # @param request [::Google::Cloud::Dataproc::V1::InstantiateWorkflowTemplateRequest, ::Hash]
402
403
  # A request object representing the call parameters. Required. To specify no
403
404
  # parameters, or to keep all the default parameter values, pass an empty Hash.
404
- # @param options [Gapic::CallOptions, Hash]
405
+ # @param options [::Gapic::CallOptions, ::Hash]
405
406
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
406
407
  #
407
408
  # @overload instantiate_workflow_template(name: nil, version: nil, request_id: nil, parameters: nil)
@@ -409,7 +410,7 @@ module Google
409
410
  # least one keyword argument is required. To specify no parameters, or to keep all
410
411
  # the default parameter values, pass an empty Hash as a request object (see above).
411
412
  #
412
- # @param name [String]
413
+ # @param name [::String]
413
414
  # Required. The resource name of the workflow template, as described
414
415
  # in https://cloud.google.com/apis/design/resource_names.
415
416
  #
@@ -420,14 +421,14 @@ module Google
420
421
  # * For `projects.locations.workflowTemplates.instantiate`, the resource name
421
422
  # of the template has the following format:
422
423
  # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
423
- # @param version [Integer]
424
+ # @param version [::Integer]
424
425
  # Optional. The version of workflow template to instantiate. If specified,
425
426
  # the workflow will be instantiated only if the current version of
426
427
  # the workflow template has the supplied version.
427
428
  #
428
429
  # This option cannot be used to instantiate a previous version of
429
430
  # workflow template.
430
- # @param request_id [String]
431
+ # @param request_id [::String]
431
432
  # Optional. A tag that prevents multiple concurrent workflow
432
433
  # instances with the same tag from running. This mitigates risk of
433
434
  # concurrent instances started due to retries.
@@ -437,31 +438,31 @@ module Google
437
438
  #
438
439
  # The tag must contain only letters (a-z, A-Z), numbers (0-9),
439
440
  # underscores (_), and hyphens (-). The maximum length is 40 characters.
440
- # @param parameters [Hash{String => String}]
441
+ # @param parameters [::Hash{::String => ::String}]
441
442
  # Optional. Map from parameter names to values that should be used for those
442
443
  # parameters. Values may not exceed 100 characters.
443
444
  #
444
445
  # @yield [response, operation] Access the result along with the RPC operation
445
- # @yieldparam response [Gapic::Operation]
446
- # @yieldparam operation [GRPC::ActiveCall::Operation]
446
+ # @yieldparam response [::Gapic::Operation]
447
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
447
448
  #
448
- # @return [Gapic::Operation]
449
+ # @return [::Gapic::Operation]
449
450
  #
450
- # @raise [Google::Cloud::Error] if the RPC is aborted.
451
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
451
452
  #
452
453
  def instantiate_workflow_template request, options = nil
453
- raise ArgumentError, "request must be provided" if request.nil?
454
+ raise ::ArgumentError, "request must be provided" if request.nil?
454
455
 
455
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::InstantiateWorkflowTemplateRequest
456
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::InstantiateWorkflowTemplateRequest
456
457
 
457
458
  # Converts hash and nil to an options object
458
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
459
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
459
460
 
460
461
  # Customize the options with defaults
461
462
  metadata = @config.rpcs.instantiate_workflow_template.metadata.to_h
462
463
 
463
464
  # Set x-goog-api-client and x-goog-user-project headers
464
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
465
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
465
466
  lib_name: @config.lib_name, lib_version: @config.lib_version,
466
467
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
467
468
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -479,20 +480,20 @@ module Google
479
480
  retry_policy: @config.retry_policy
480
481
 
481
482
  @workflow_template_service_stub.call_rpc :instantiate_workflow_template, request, options: options do |response, operation|
482
- response = Gapic::Operation.new response, @operations_client, options: options
483
+ response = ::Gapic::Operation.new response, @operations_client, options: options
483
484
  yield response, operation if block_given?
484
485
  return response
485
486
  end
486
- rescue GRPC::BadStatus => e
487
- raise Google::Cloud::Error.from_error(e)
487
+ rescue ::GRPC::BadStatus => e
488
+ raise ::Google::Cloud::Error.from_error(e)
488
489
  end
489
490
 
490
491
  ##
491
492
  # Instantiates a template and begins execution.
492
493
  #
493
494
  # This method is equivalent to executing the sequence
494
- # {Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#create_workflow_template CreateWorkflowTemplate}, {Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#instantiate_workflow_template InstantiateWorkflowTemplate},
495
- # {Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#delete_workflow_template DeleteWorkflowTemplate}.
495
+ # {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#create_workflow_template CreateWorkflowTemplate}, {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#instantiate_workflow_template InstantiateWorkflowTemplate},
496
+ # {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#delete_workflow_template DeleteWorkflowTemplate}.
496
497
  #
497
498
  # The returned Operation can be used to track execution of
498
499
  # workflow by polling
@@ -504,23 +505,23 @@ module Google
504
505
  # This will cause any inflight jobs to be cancelled and workflow-owned
505
506
  # clusters to be deleted.
506
507
  #
507
- # The {Google::Longrunning::Operation#metadata Operation.metadata} will be
508
+ # The {::Google::Longrunning::Operation#metadata Operation.metadata} will be
508
509
  # [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata).
509
510
  # Also see [Using
510
511
  # WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
511
512
  #
512
513
  # On successful completion,
513
- # {Google::Longrunning::Operation#response Operation.response} will be
514
- # {Google::Protobuf::Empty Empty}.
514
+ # {::Google::Longrunning::Operation#response Operation.response} will be
515
+ # {::Google::Protobuf::Empty Empty}.
515
516
  #
516
517
  # @overload instantiate_inline_workflow_template(request, options = nil)
517
518
  # Pass arguments to `instantiate_inline_workflow_template` via a request object, either of type
518
- # {Google::Cloud::Dataproc::V1::InstantiateInlineWorkflowTemplateRequest} or an equivalent Hash.
519
+ # {::Google::Cloud::Dataproc::V1::InstantiateInlineWorkflowTemplateRequest} or an equivalent Hash.
519
520
  #
520
- # @param request [Google::Cloud::Dataproc::V1::InstantiateInlineWorkflowTemplateRequest, Hash]
521
+ # @param request [::Google::Cloud::Dataproc::V1::InstantiateInlineWorkflowTemplateRequest, ::Hash]
521
522
  # A request object representing the call parameters. Required. To specify no
522
523
  # parameters, or to keep all the default parameter values, pass an empty Hash.
523
- # @param options [Gapic::CallOptions, Hash]
524
+ # @param options [::Gapic::CallOptions, ::Hash]
524
525
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
525
526
  #
526
527
  # @overload instantiate_inline_workflow_template(parent: nil, template: nil, request_id: nil)
@@ -528,7 +529,7 @@ module Google
528
529
  # least one keyword argument is required. To specify no parameters, or to keep all
529
530
  # the default parameter values, pass an empty Hash as a request object (see above).
530
531
  #
531
- # @param parent [String]
532
+ # @param parent [::String]
532
533
  # Required. The resource name of the region or location, as described
533
534
  # in https://cloud.google.com/apis/design/resource_names.
534
535
  #
@@ -539,9 +540,9 @@ module Google
539
540
  # * For `projects.locations.workflowTemplates.instantiateinline`, the
540
541
  # resource name of the location has the following format:
541
542
  # `projects/{project_id}/locations/{location}`
542
- # @param template [Google::Cloud::Dataproc::V1::WorkflowTemplate, Hash]
543
+ # @param template [::Google::Cloud::Dataproc::V1::WorkflowTemplate, ::Hash]
543
544
  # Required. The workflow template to instantiate.
544
- # @param request_id [String]
545
+ # @param request_id [::String]
545
546
  # Optional. A tag that prevents multiple concurrent workflow
546
547
  # instances with the same tag from running. This mitigates risk of
547
548
  # concurrent instances started due to retries.
@@ -553,26 +554,26 @@ module Google
553
554
  # underscores (_), and hyphens (-). The maximum length is 40 characters.
554
555
  #
555
556
  # @yield [response, operation] Access the result along with the RPC operation
556
- # @yieldparam response [Gapic::Operation]
557
- # @yieldparam operation [GRPC::ActiveCall::Operation]
557
+ # @yieldparam response [::Gapic::Operation]
558
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
558
559
  #
559
- # @return [Gapic::Operation]
560
+ # @return [::Gapic::Operation]
560
561
  #
561
- # @raise [Google::Cloud::Error] if the RPC is aborted.
562
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
562
563
  #
563
564
  def instantiate_inline_workflow_template request, options = nil
564
- raise ArgumentError, "request must be provided" if request.nil?
565
+ raise ::ArgumentError, "request must be provided" if request.nil?
565
566
 
566
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::InstantiateInlineWorkflowTemplateRequest
567
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::InstantiateInlineWorkflowTemplateRequest
567
568
 
568
569
  # Converts hash and nil to an options object
569
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
570
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
570
571
 
571
572
  # Customize the options with defaults
572
573
  metadata = @config.rpcs.instantiate_inline_workflow_template.metadata.to_h
573
574
 
574
575
  # Set x-goog-api-client and x-goog-user-project headers
575
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
576
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
576
577
  lib_name: @config.lib_name, lib_version: @config.lib_version,
577
578
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
578
579
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -590,12 +591,12 @@ module Google
590
591
  retry_policy: @config.retry_policy
591
592
 
592
593
  @workflow_template_service_stub.call_rpc :instantiate_inline_workflow_template, request, options: options do |response, operation|
593
- response = Gapic::Operation.new response, @operations_client, options: options
594
+ response = ::Gapic::Operation.new response, @operations_client, options: options
594
595
  yield response, operation if block_given?
595
596
  return response
596
597
  end
597
- rescue GRPC::BadStatus => e
598
- raise Google::Cloud::Error.from_error(e)
598
+ rescue ::GRPC::BadStatus => e
599
+ raise ::Google::Cloud::Error.from_error(e)
599
600
  end
600
601
 
601
602
  ##
@@ -604,12 +605,12 @@ module Google
604
605
  #
605
606
  # @overload update_workflow_template(request, options = nil)
606
607
  # Pass arguments to `update_workflow_template` via a request object, either of type
607
- # {Google::Cloud::Dataproc::V1::UpdateWorkflowTemplateRequest} or an equivalent Hash.
608
+ # {::Google::Cloud::Dataproc::V1::UpdateWorkflowTemplateRequest} or an equivalent Hash.
608
609
  #
609
- # @param request [Google::Cloud::Dataproc::V1::UpdateWorkflowTemplateRequest, Hash]
610
+ # @param request [::Google::Cloud::Dataproc::V1::UpdateWorkflowTemplateRequest, ::Hash]
610
611
  # A request object representing the call parameters. Required. To specify no
611
612
  # parameters, or to keep all the default parameter values, pass an empty Hash.
612
- # @param options [Gapic::CallOptions, Hash]
613
+ # @param options [::Gapic::CallOptions, ::Hash]
613
614
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
614
615
  #
615
616
  # @overload update_workflow_template(template: nil)
@@ -617,32 +618,32 @@ module Google
617
618
  # least one keyword argument is required. To specify no parameters, or to keep all
618
619
  # the default parameter values, pass an empty Hash as a request object (see above).
619
620
  #
620
- # @param template [Google::Cloud::Dataproc::V1::WorkflowTemplate, Hash]
621
+ # @param template [::Google::Cloud::Dataproc::V1::WorkflowTemplate, ::Hash]
621
622
  # Required. The updated workflow template.
622
623
  #
623
624
  # The `template.version` field must match the current version.
624
625
  #
625
626
  # @yield [response, operation] Access the result along with the RPC operation
626
- # @yieldparam response [Google::Cloud::Dataproc::V1::WorkflowTemplate]
627
- # @yieldparam operation [GRPC::ActiveCall::Operation]
627
+ # @yieldparam response [::Google::Cloud::Dataproc::V1::WorkflowTemplate]
628
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
628
629
  #
629
- # @return [Google::Cloud::Dataproc::V1::WorkflowTemplate]
630
+ # @return [::Google::Cloud::Dataproc::V1::WorkflowTemplate]
630
631
  #
631
- # @raise [Google::Cloud::Error] if the RPC is aborted.
632
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
632
633
  #
633
634
  def update_workflow_template request, options = nil
634
- raise ArgumentError, "request must be provided" if request.nil?
635
+ raise ::ArgumentError, "request must be provided" if request.nil?
635
636
 
636
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::UpdateWorkflowTemplateRequest
637
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::UpdateWorkflowTemplateRequest
637
638
 
638
639
  # Converts hash and nil to an options object
639
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
640
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
640
641
 
641
642
  # Customize the options with defaults
642
643
  metadata = @config.rpcs.update_workflow_template.metadata.to_h
643
644
 
644
645
  # Set x-goog-api-client and x-goog-user-project headers
645
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
646
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
646
647
  lib_name: @config.lib_name, lib_version: @config.lib_version,
647
648
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
648
649
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -663,8 +664,8 @@ module Google
663
664
  yield response, operation if block_given?
664
665
  return response
665
666
  end
666
- rescue GRPC::BadStatus => e
667
- raise Google::Cloud::Error.from_error(e)
667
+ rescue ::GRPC::BadStatus => e
668
+ raise ::Google::Cloud::Error.from_error(e)
668
669
  end
669
670
 
670
671
  ##
@@ -672,12 +673,12 @@ module Google
672
673
  #
673
674
  # @overload list_workflow_templates(request, options = nil)
674
675
  # Pass arguments to `list_workflow_templates` via a request object, either of type
675
- # {Google::Cloud::Dataproc::V1::ListWorkflowTemplatesRequest} or an equivalent Hash.
676
+ # {::Google::Cloud::Dataproc::V1::ListWorkflowTemplatesRequest} or an equivalent Hash.
676
677
  #
677
- # @param request [Google::Cloud::Dataproc::V1::ListWorkflowTemplatesRequest, Hash]
678
+ # @param request [::Google::Cloud::Dataproc::V1::ListWorkflowTemplatesRequest, ::Hash]
678
679
  # A request object representing the call parameters. Required. To specify no
679
680
  # parameters, or to keep all the default parameter values, pass an empty Hash.
680
- # @param options [Gapic::CallOptions, Hash]
681
+ # @param options [::Gapic::CallOptions, ::Hash]
681
682
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
682
683
  #
683
684
  # @overload list_workflow_templates(parent: nil, page_size: nil, page_token: nil)
@@ -685,7 +686,7 @@ module Google
685
686
  # least one keyword argument is required. To specify no parameters, or to keep all
686
687
  # the default parameter values, pass an empty Hash as a request object (see above).
687
688
  #
688
- # @param parent [String]
689
+ # @param parent [::String]
689
690
  # Required. The resource name of the region or location, as described
690
691
  # in https://cloud.google.com/apis/design/resource_names.
691
692
  #
@@ -696,33 +697,33 @@ module Google
696
697
  # * For `projects.locations.workflowTemplates.list`, the
697
698
  # resource name of the location has the following format:
698
699
  # `projects/{project_id}/locations/{location}`
699
- # @param page_size [Integer]
700
+ # @param page_size [::Integer]
700
701
  # Optional. The maximum number of results to return in each response.
701
- # @param page_token [String]
702
+ # @param page_token [::String]
702
703
  # Optional. The page token, returned by a previous call, to request the
703
704
  # next page of results.
704
705
  #
705
706
  # @yield [response, operation] Access the result along with the RPC operation
706
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dataproc::V1::WorkflowTemplate>]
707
- # @yieldparam operation [GRPC::ActiveCall::Operation]
707
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataproc::V1::WorkflowTemplate>]
708
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
708
709
  #
709
- # @return [Gapic::PagedEnumerable<Google::Cloud::Dataproc::V1::WorkflowTemplate>]
710
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataproc::V1::WorkflowTemplate>]
710
711
  #
711
- # @raise [Google::Cloud::Error] if the RPC is aborted.
712
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
712
713
  #
713
714
  def list_workflow_templates request, options = nil
714
- raise ArgumentError, "request must be provided" if request.nil?
715
+ raise ::ArgumentError, "request must be provided" if request.nil?
715
716
 
716
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::ListWorkflowTemplatesRequest
717
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::ListWorkflowTemplatesRequest
717
718
 
718
719
  # Converts hash and nil to an options object
719
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
720
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
720
721
 
721
722
  # Customize the options with defaults
722
723
  metadata = @config.rpcs.list_workflow_templates.metadata.to_h
723
724
 
724
725
  # Set x-goog-api-client and x-goog-user-project headers
725
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
726
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
726
727
  lib_name: @config.lib_name, lib_version: @config.lib_version,
727
728
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
728
729
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -740,12 +741,12 @@ module Google
740
741
  retry_policy: @config.retry_policy
741
742
 
742
743
  @workflow_template_service_stub.call_rpc :list_workflow_templates, request, options: options do |response, operation|
743
- response = Gapic::PagedEnumerable.new @workflow_template_service_stub, :list_workflow_templates, request, response, operation, options
744
+ response = ::Gapic::PagedEnumerable.new @workflow_template_service_stub, :list_workflow_templates, request, response, operation, options
744
745
  yield response, operation if block_given?
745
746
  return response
746
747
  end
747
- rescue GRPC::BadStatus => e
748
- raise Google::Cloud::Error.from_error(e)
748
+ rescue ::GRPC::BadStatus => e
749
+ raise ::Google::Cloud::Error.from_error(e)
749
750
  end
750
751
 
751
752
  ##
@@ -753,12 +754,12 @@ module Google
753
754
  #
754
755
  # @overload delete_workflow_template(request, options = nil)
755
756
  # Pass arguments to `delete_workflow_template` via a request object, either of type
756
- # {Google::Cloud::Dataproc::V1::DeleteWorkflowTemplateRequest} or an equivalent Hash.
757
+ # {::Google::Cloud::Dataproc::V1::DeleteWorkflowTemplateRequest} or an equivalent Hash.
757
758
  #
758
- # @param request [Google::Cloud::Dataproc::V1::DeleteWorkflowTemplateRequest, Hash]
759
+ # @param request [::Google::Cloud::Dataproc::V1::DeleteWorkflowTemplateRequest, ::Hash]
759
760
  # A request object representing the call parameters. Required. To specify no
760
761
  # parameters, or to keep all the default parameter values, pass an empty Hash.
761
- # @param options [Gapic::CallOptions, Hash]
762
+ # @param options [::Gapic::CallOptions, ::Hash]
762
763
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
763
764
  #
764
765
  # @overload delete_workflow_template(name: nil, version: nil)
@@ -766,7 +767,7 @@ module Google
766
767
  # least one keyword argument is required. To specify no parameters, or to keep all
767
768
  # the default parameter values, pass an empty Hash as a request object (see above).
768
769
  #
769
- # @param name [String]
770
+ # @param name [::String]
770
771
  # Required. The resource name of the workflow template, as described
771
772
  # in https://cloud.google.com/apis/design/resource_names.
772
773
  #
@@ -777,32 +778,32 @@ module Google
777
778
  # * For `projects.locations.workflowTemplates.instantiate`, the resource name
778
779
  # of the template has the following format:
779
780
  # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
780
- # @param version [Integer]
781
+ # @param version [::Integer]
781
782
  # Optional. The version of workflow template to delete. If specified,
782
783
  # will only delete the template if the current server version matches
783
784
  # specified version.
784
785
  #
785
786
  # @yield [response, operation] Access the result along with the RPC operation
786
- # @yieldparam response [Google::Protobuf::Empty]
787
- # @yieldparam operation [GRPC::ActiveCall::Operation]
787
+ # @yieldparam response [::Google::Protobuf::Empty]
788
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
788
789
  #
789
- # @return [Google::Protobuf::Empty]
790
+ # @return [::Google::Protobuf::Empty]
790
791
  #
791
- # @raise [Google::Cloud::Error] if the RPC is aborted.
792
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
792
793
  #
793
794
  def delete_workflow_template request, options = nil
794
- raise ArgumentError, "request must be provided" if request.nil?
795
+ raise ::ArgumentError, "request must be provided" if request.nil?
795
796
 
796
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::Dataproc::V1::DeleteWorkflowTemplateRequest
797
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::DeleteWorkflowTemplateRequest
797
798
 
798
799
  # Converts hash and nil to an options object
799
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
800
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
800
801
 
801
802
  # Customize the options with defaults
802
803
  metadata = @config.rpcs.delete_workflow_template.metadata.to_h
803
804
 
804
805
  # Set x-goog-api-client and x-goog-user-project headers
805
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
806
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
806
807
  lib_name: @config.lib_name, lib_version: @config.lib_version,
807
808
  gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
808
809
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -823,8 +824,8 @@ module Google
823
824
  yield response, operation if block_given?
824
825
  return response
825
826
  end
826
- rescue GRPC::BadStatus => e
827
- raise Google::Cloud::Error.from_error(e)
827
+ rescue ::GRPC::BadStatus => e
828
+ raise ::Google::Cloud::Error.from_error(e)
828
829
  end
829
830
 
830
831
  ##
@@ -834,7 +835,7 @@ module Google
834
835
  # providing control over timeouts, retry behavior, logging, transport
835
836
  # parameters, and other low-level controls. Certain parameters can also be
836
837
  # applied individually to specific RPCs. See
837
- # {Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client::Configuration::Rpcs}
838
+ # {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client::Configuration::Rpcs}
838
839
  # for a list of RPCs that can be configured independently.
839
840
  #
840
841
  # Configuration can be applied globally to all clients, or to a single client
@@ -845,22 +846,22 @@ module Google
845
846
  # To modify the global config, setting the timeout for create_workflow_template
846
847
  # to 20 seconds, and all remaining timeouts to 10 seconds:
847
848
  #
848
- # Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.configure do |config|
849
- # config.timeout = 10_000
850
- # config.rpcs.create_workflow_template.timeout = 20_000
849
+ # ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.configure do |config|
850
+ # config.timeout = 10.0
851
+ # config.rpcs.create_workflow_template.timeout = 20.0
851
852
  # end
852
853
  #
853
854
  # To apply the above configuration only to a new client:
854
855
  #
855
- # client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new do |config|
856
- # config.timeout = 10_000
857
- # config.rpcs.create_workflow_template.timeout = 20_000
856
+ # client = ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new do |config|
857
+ # config.timeout = 10.0
858
+ # config.rpcs.create_workflow_template.timeout = 20.0
858
859
  # end
859
860
  #
860
861
  # @!attribute [rw] endpoint
861
862
  # The hostname or hostname:port of the service endpoint.
862
863
  # Defaults to `"dataproc.googleapis.com"`.
863
- # @return [String]
864
+ # @return [::String]
864
865
  # @!attribute [rw] credentials
865
866
  # Credentials to send with calls. You may provide any of the following types:
866
867
  # * (`String`) The path to a service account key file in JSON format
@@ -872,29 +873,29 @@ module Google
872
873
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
873
874
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
874
875
  # * (`nil`) indicating no credentials
875
- # @return [Object]
876
+ # @return [::Object]
876
877
  # @!attribute [rw] scope
877
878
  # The OAuth scopes
878
- # @return [Array<String>]
879
+ # @return [::Array<::String>]
879
880
  # @!attribute [rw] lib_name
880
881
  # The library name as recorded in instrumentation and logging
881
- # @return [String]
882
+ # @return [::String]
882
883
  # @!attribute [rw] lib_version
883
884
  # The library version as recorded in instrumentation and logging
884
- # @return [String]
885
+ # @return [::String]
885
886
  # @!attribute [rw] channel_args
886
887
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
887
888
  # `GRPC::Core::Channel` object is provided as the credential.
888
- # @return [Hash]
889
+ # @return [::Hash]
889
890
  # @!attribute [rw] interceptors
890
891
  # An array of interceptors that are run before calls are executed.
891
- # @return [Array<GRPC::ClientInterceptor>]
892
+ # @return [::Array<::GRPC::ClientInterceptor>]
892
893
  # @!attribute [rw] timeout
893
- # The call timeout in milliseconds.
894
- # @return [Numeric]
894
+ # The call timeout in seconds.
895
+ # @return [::Numeric]
895
896
  # @!attribute [rw] metadata
896
897
  # Additional gRPC headers to be sent with the call.
897
- # @return [Hash{Symbol=>String}]
898
+ # @return [::Hash{::Symbol=>::String}]
898
899
  # @!attribute [rw] retry_policy
899
900
  # The retry policy. The value is a hash with the following keys:
900
901
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -902,25 +903,29 @@ module Google
902
903
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
903
904
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
904
905
  # trigger a retry.
905
- # @return [Hash]
906
+ # @return [::Hash]
907
+ # @!attribute [rw] quota_project
908
+ # A separate project against which to charge quota.
909
+ # @return [::String]
906
910
  #
907
911
  class Configuration
908
- extend Gapic::Config
912
+ extend ::Gapic::Config
909
913
 
910
- config_attr :endpoint, "dataproc.googleapis.com", String
911
- config_attr :credentials, nil do |value|
914
+ config_attr :endpoint, "dataproc.googleapis.com", ::String
915
+ config_attr :credentials, nil do |value|
912
916
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
913
917
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
914
918
  allowed.any? { |klass| klass === value }
915
919
  end
916
- config_attr :scope, nil, String, Array, nil
917
- config_attr :lib_name, nil, String, nil
918
- config_attr :lib_version, nil, String, nil
919
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
920
- config_attr :interceptors, nil, Array, nil
921
- config_attr :timeout, nil, Numeric, nil
922
- config_attr :metadata, nil, Hash, nil
923
- config_attr :retry_policy, nil, Hash, Proc, nil
920
+ config_attr :scope, nil, ::String, ::Array, nil
921
+ config_attr :lib_name, nil, ::String, nil
922
+ config_attr :lib_version, nil, ::String, nil
923
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
924
+ config_attr :interceptors, nil, ::Array, nil
925
+ config_attr :timeout, nil, ::Numeric, nil
926
+ config_attr :metadata, nil, ::Hash, nil
927
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
928
+ config_attr :quota_project, nil, ::String, nil
924
929
 
925
930
  # @private
926
931
  def initialize parent_config = nil
@@ -936,7 +941,7 @@ module Google
936
941
  def rpcs
937
942
  @rpcs ||= begin
938
943
  parent_rpcs = nil
939
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
944
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
940
945
  Rpcs.new parent_rpcs
941
946
  end
942
947
  end
@@ -961,56 +966,56 @@ module Google
961
966
  class Rpcs
962
967
  ##
963
968
  # RPC-specific configuration for `create_workflow_template`
964
- # @return [Gapic::Config::Method]
969
+ # @return [::Gapic::Config::Method]
965
970
  #
966
971
  attr_reader :create_workflow_template
967
972
  ##
968
973
  # RPC-specific configuration for `get_workflow_template`
969
- # @return [Gapic::Config::Method]
974
+ # @return [::Gapic::Config::Method]
970
975
  #
971
976
  attr_reader :get_workflow_template
972
977
  ##
973
978
  # RPC-specific configuration for `instantiate_workflow_template`
974
- # @return [Gapic::Config::Method]
979
+ # @return [::Gapic::Config::Method]
975
980
  #
976
981
  attr_reader :instantiate_workflow_template
977
982
  ##
978
983
  # RPC-specific configuration for `instantiate_inline_workflow_template`
979
- # @return [Gapic::Config::Method]
984
+ # @return [::Gapic::Config::Method]
980
985
  #
981
986
  attr_reader :instantiate_inline_workflow_template
982
987
  ##
983
988
  # RPC-specific configuration for `update_workflow_template`
984
- # @return [Gapic::Config::Method]
989
+ # @return [::Gapic::Config::Method]
985
990
  #
986
991
  attr_reader :update_workflow_template
987
992
  ##
988
993
  # RPC-specific configuration for `list_workflow_templates`
989
- # @return [Gapic::Config::Method]
994
+ # @return [::Gapic::Config::Method]
990
995
  #
991
996
  attr_reader :list_workflow_templates
992
997
  ##
993
998
  # RPC-specific configuration for `delete_workflow_template`
994
- # @return [Gapic::Config::Method]
999
+ # @return [::Gapic::Config::Method]
995
1000
  #
996
1001
  attr_reader :delete_workflow_template
997
1002
 
998
1003
  # @private
999
1004
  def initialize parent_rpcs = nil
1000
1005
  create_workflow_template_config = parent_rpcs&.create_workflow_template if parent_rpcs&.respond_to? :create_workflow_template
1001
- @create_workflow_template = Gapic::Config::Method.new create_workflow_template_config
1006
+ @create_workflow_template = ::Gapic::Config::Method.new create_workflow_template_config
1002
1007
  get_workflow_template_config = parent_rpcs&.get_workflow_template if parent_rpcs&.respond_to? :get_workflow_template
1003
- @get_workflow_template = Gapic::Config::Method.new get_workflow_template_config
1008
+ @get_workflow_template = ::Gapic::Config::Method.new get_workflow_template_config
1004
1009
  instantiate_workflow_template_config = parent_rpcs&.instantiate_workflow_template if parent_rpcs&.respond_to? :instantiate_workflow_template
1005
- @instantiate_workflow_template = Gapic::Config::Method.new instantiate_workflow_template_config
1010
+ @instantiate_workflow_template = ::Gapic::Config::Method.new instantiate_workflow_template_config
1006
1011
  instantiate_inline_workflow_template_config = parent_rpcs&.instantiate_inline_workflow_template if parent_rpcs&.respond_to? :instantiate_inline_workflow_template
1007
- @instantiate_inline_workflow_template = Gapic::Config::Method.new instantiate_inline_workflow_template_config
1012
+ @instantiate_inline_workflow_template = ::Gapic::Config::Method.new instantiate_inline_workflow_template_config
1008
1013
  update_workflow_template_config = parent_rpcs&.update_workflow_template if parent_rpcs&.respond_to? :update_workflow_template
1009
- @update_workflow_template = Gapic::Config::Method.new update_workflow_template_config
1014
+ @update_workflow_template = ::Gapic::Config::Method.new update_workflow_template_config
1010
1015
  list_workflow_templates_config = parent_rpcs&.list_workflow_templates if parent_rpcs&.respond_to? :list_workflow_templates
1011
- @list_workflow_templates = Gapic::Config::Method.new list_workflow_templates_config
1016
+ @list_workflow_templates = ::Gapic::Config::Method.new list_workflow_templates_config
1012
1017
  delete_workflow_template_config = parent_rpcs&.delete_workflow_template if parent_rpcs&.respond_to? :delete_workflow_template
1013
- @delete_workflow_template = Gapic::Config::Method.new delete_workflow_template_config
1018
+ @delete_workflow_template = ::Gapic::Config::Method.new delete_workflow_template_config
1014
1019
 
1015
1020
  yield self if block_given?
1016
1021
  end