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