google-cloud-dataproc-v1 0.6.2 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb +3 -2
- data/lib/google/cloud/dataproc/v1/autoscaling_policies_services_pb.rb +1 -1
- data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +150 -56
- data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +719 -0
- data/lib/google/cloud/dataproc/v1/batch_controller/credentials.rb +51 -0
- data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +767 -0
- data/lib/google/cloud/dataproc/v1/batch_controller/paths.rb +69 -0
- data/lib/google/cloud/dataproc/v1/batch_controller.rb +50 -0
- data/lib/google/cloud/dataproc/v1/batches_pb.rb +123 -0
- data/lib/google/cloud/dataproc/v1/batches_services_pb.rb +52 -0
- data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +319 -93
- data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +145 -33
- data/lib/google/cloud/dataproc/v1/clusters_pb.rb +10 -2
- data/lib/google/cloud/dataproc/v1/clusters_services_pb.rb +3 -1
- data/lib/google/cloud/dataproc/v1/job_controller/client.rb +237 -75
- data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +145 -33
- data/lib/google/cloud/dataproc/v1/jobs_pb.rb +2 -2
- data/lib/google/cloud/dataproc/v1/jobs_services_pb.rb +1 -1
- data/lib/google/cloud/dataproc/v1/operations_pb.rb +18 -3
- data/lib/google/cloud/dataproc/v1/shared_pb.rb +43 -2
- data/lib/google/cloud/dataproc/v1/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +213 -67
- data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +145 -33
- data/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +2 -2
- data/lib/google/cloud/dataproc/v1/workflow_templates_services_pb.rb +2 -3
- data/lib/google/cloud/dataproc/v1.rb +1 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/dataproc/v1/autoscaling_policies.rb +18 -0
- data/proto_docs/google/cloud/dataproc/v1/batches.rb +339 -0
- data/proto_docs/google/cloud/dataproc/v1/clusters.rb +55 -24
- data/proto_docs/google/cloud/dataproc/v1/jobs.rb +20 -9
- data/proto_docs/google/cloud/dataproc/v1/operations.rb +48 -0
- data/proto_docs/google/cloud/dataproc/v1/shared.rb +127 -1
- data/proto_docs/google/cloud/dataproc/v1/workflow_templates.rb +12 -15
- metadata +13 -5
@@ -42,13 +42,12 @@ module Google
|
|
42
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
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all WorkflowTemplateService clients
|
48
|
+
# ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.configure do |config|
|
49
|
+
# config.timeout = 10.0
|
50
|
+
# end
|
52
51
|
#
|
53
52
|
# @yield [config] Configure the Client client.
|
54
53
|
# @yieldparam config [Client::Configuration]
|
@@ -130,19 +129,15 @@ module Google
|
|
130
129
|
##
|
131
130
|
# Create a new WorkflowTemplateService client object.
|
132
131
|
#
|
133
|
-
#
|
134
|
-
#
|
135
|
-
# To create a new WorkflowTemplateService client with the default
|
136
|
-
# configuration:
|
132
|
+
# @example
|
137
133
|
#
|
138
|
-
#
|
134
|
+
# # Create a client using the default configuration
|
135
|
+
# client = ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
|
139
136
|
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
# config.timeout = 10.0
|
145
|
-
# end
|
137
|
+
# # Create a client using a custom configuration
|
138
|
+
# client = ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new do |config|
|
139
|
+
# config.timeout = 10.0
|
140
|
+
# end
|
146
141
|
#
|
147
142
|
# @yield [config] Configure the WorkflowTemplateService client.
|
148
143
|
# @yieldparam config [Client::Configuration]
|
@@ -162,10 +157,9 @@ module Google
|
|
162
157
|
|
163
158
|
# Create credentials
|
164
159
|
credentials = @config.credentials
|
165
|
-
# Use self-signed JWT if the
|
160
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
166
161
|
# but only if the default endpoint does not have a region prefix.
|
167
|
-
enable_self_signed_jwt = @config.
|
168
|
-
@config.endpoint == Client.configure.endpoint &&
|
162
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
169
163
|
!@config.endpoint.split(".").first.include?("-")
|
170
164
|
credentials ||= Credentials.default scope: @config.scope,
|
171
165
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -177,6 +171,7 @@ module Google
|
|
177
171
|
|
178
172
|
@operations_client = Operations.new do |config|
|
179
173
|
config.credentials = credentials
|
174
|
+
config.quota_project = @quota_project_id
|
180
175
|
config.endpoint = @config.endpoint
|
181
176
|
end
|
182
177
|
|
@@ -220,7 +215,7 @@ module Google
|
|
220
215
|
# Required. The resource name of the region or location, as described
|
221
216
|
# in https://cloud.google.com/apis/design/resource_names.
|
222
217
|
#
|
223
|
-
# * For `projects.regions.workflowTemplates
|
218
|
+
# * For `projects.regions.workflowTemplates.create`, the resource name of the
|
224
219
|
# region has the following format:
|
225
220
|
# `projects/{project_id}/regions/{region}`
|
226
221
|
#
|
@@ -238,6 +233,21 @@ module Google
|
|
238
233
|
#
|
239
234
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
240
235
|
#
|
236
|
+
# @example Basic example
|
237
|
+
# require "google/cloud/dataproc/v1"
|
238
|
+
#
|
239
|
+
# # Create a client object. The client can be reused for multiple calls.
|
240
|
+
# client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
|
241
|
+
#
|
242
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
243
|
+
# request = Google::Cloud::Dataproc::V1::CreateWorkflowTemplateRequest.new
|
244
|
+
#
|
245
|
+
# # Call the create_workflow_template method.
|
246
|
+
# result = client.create_workflow_template request
|
247
|
+
#
|
248
|
+
# # The returned object is of type Google::Cloud::Dataproc::V1::WorkflowTemplate.
|
249
|
+
# p result
|
250
|
+
#
|
241
251
|
def create_workflow_template request, options = nil
|
242
252
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
243
253
|
|
@@ -255,16 +265,20 @@ module Google
|
|
255
265
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
256
266
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
257
267
|
|
258
|
-
header_params = {
|
259
|
-
|
260
|
-
|
268
|
+
header_params = {}
|
269
|
+
if request.parent
|
270
|
+
header_params["parent"] = request.parent
|
271
|
+
end
|
272
|
+
|
261
273
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
262
274
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
263
275
|
|
264
276
|
options.apply_defaults timeout: @config.rpcs.create_workflow_template.timeout,
|
265
277
|
metadata: metadata,
|
266
278
|
retry_policy: @config.rpcs.create_workflow_template.retry_policy
|
267
|
-
|
279
|
+
|
280
|
+
options.apply_defaults timeout: @config.timeout,
|
281
|
+
metadata: @config.metadata,
|
268
282
|
retry_policy: @config.retry_policy
|
269
283
|
|
270
284
|
@workflow_template_service_stub.call_rpc :create_workflow_template, request, options: options do |response, operation|
|
@@ -321,6 +335,21 @@ module Google
|
|
321
335
|
#
|
322
336
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
323
337
|
#
|
338
|
+
# @example Basic example
|
339
|
+
# require "google/cloud/dataproc/v1"
|
340
|
+
#
|
341
|
+
# # Create a client object. The client can be reused for multiple calls.
|
342
|
+
# client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
|
343
|
+
#
|
344
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
345
|
+
# request = Google::Cloud::Dataproc::V1::GetWorkflowTemplateRequest.new
|
346
|
+
#
|
347
|
+
# # Call the get_workflow_template method.
|
348
|
+
# result = client.get_workflow_template request
|
349
|
+
#
|
350
|
+
# # The returned object is of type Google::Cloud::Dataproc::V1::WorkflowTemplate.
|
351
|
+
# p result
|
352
|
+
#
|
324
353
|
def get_workflow_template request, options = nil
|
325
354
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
326
355
|
|
@@ -338,16 +367,20 @@ module Google
|
|
338
367
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
339
368
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
340
369
|
|
341
|
-
header_params = {
|
342
|
-
|
343
|
-
|
370
|
+
header_params = {}
|
371
|
+
if request.name
|
372
|
+
header_params["name"] = request.name
|
373
|
+
end
|
374
|
+
|
344
375
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
345
376
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
346
377
|
|
347
378
|
options.apply_defaults timeout: @config.rpcs.get_workflow_template.timeout,
|
348
379
|
metadata: metadata,
|
349
380
|
retry_policy: @config.rpcs.get_workflow_template.retry_policy
|
350
|
-
|
381
|
+
|
382
|
+
options.apply_defaults timeout: @config.timeout,
|
383
|
+
metadata: @config.metadata,
|
351
384
|
retry_policy: @config.retry_policy
|
352
385
|
|
353
386
|
@workflow_template_service_stub.call_rpc :get_workflow_template, request, options: options do |response, operation|
|
@@ -435,6 +468,28 @@ module Google
|
|
435
468
|
#
|
436
469
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
437
470
|
#
|
471
|
+
# @example Basic example
|
472
|
+
# require "google/cloud/dataproc/v1"
|
473
|
+
#
|
474
|
+
# # Create a client object. The client can be reused for multiple calls.
|
475
|
+
# client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
|
476
|
+
#
|
477
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
478
|
+
# request = Google::Cloud::Dataproc::V1::InstantiateWorkflowTemplateRequest.new
|
479
|
+
#
|
480
|
+
# # Call the instantiate_workflow_template method.
|
481
|
+
# result = client.instantiate_workflow_template request
|
482
|
+
#
|
483
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
484
|
+
# # object to check the status of an operation, cancel it, or wait
|
485
|
+
# # for results. Here is how to block until completion:
|
486
|
+
# result.wait_until_done! timeout: 60
|
487
|
+
# if result.response?
|
488
|
+
# p result.response
|
489
|
+
# else
|
490
|
+
# puts "Error!"
|
491
|
+
# end
|
492
|
+
#
|
438
493
|
def instantiate_workflow_template request, options = nil
|
439
494
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
440
495
|
|
@@ -452,16 +507,20 @@ module Google
|
|
452
507
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
453
508
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
454
509
|
|
455
|
-
header_params = {
|
456
|
-
|
457
|
-
|
510
|
+
header_params = {}
|
511
|
+
if request.name
|
512
|
+
header_params["name"] = request.name
|
513
|
+
end
|
514
|
+
|
458
515
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
459
516
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
460
517
|
|
461
518
|
options.apply_defaults timeout: @config.rpcs.instantiate_workflow_template.timeout,
|
462
519
|
metadata: metadata,
|
463
520
|
retry_policy: @config.rpcs.instantiate_workflow_template.retry_policy
|
464
|
-
|
521
|
+
|
522
|
+
options.apply_defaults timeout: @config.timeout,
|
523
|
+
metadata: @config.metadata,
|
465
524
|
retry_policy: @config.retry_policy
|
466
525
|
|
467
526
|
@workflow_template_service_stub.call_rpc :instantiate_workflow_template, request, options: options do |response, operation|
|
@@ -477,8 +536,7 @@ module Google
|
|
477
536
|
# Instantiates a template and begins execution.
|
478
537
|
#
|
479
538
|
# This method is equivalent to executing the sequence
|
480
|
-
# {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#create_workflow_template CreateWorkflowTemplate},
|
481
|
-
# {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#instantiate_workflow_template InstantiateWorkflowTemplate},
|
539
|
+
# {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#create_workflow_template CreateWorkflowTemplate}, {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#instantiate_workflow_template InstantiateWorkflowTemplate},
|
482
540
|
# {::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client#delete_workflow_template DeleteWorkflowTemplate}.
|
483
541
|
#
|
484
542
|
# The returned Operation can be used to track execution of
|
@@ -547,6 +605,28 @@ module Google
|
|
547
605
|
#
|
548
606
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
549
607
|
#
|
608
|
+
# @example Basic example
|
609
|
+
# require "google/cloud/dataproc/v1"
|
610
|
+
#
|
611
|
+
# # Create a client object. The client can be reused for multiple calls.
|
612
|
+
# client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
|
613
|
+
#
|
614
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
615
|
+
# request = Google::Cloud::Dataproc::V1::InstantiateInlineWorkflowTemplateRequest.new
|
616
|
+
#
|
617
|
+
# # Call the instantiate_inline_workflow_template method.
|
618
|
+
# result = client.instantiate_inline_workflow_template request
|
619
|
+
#
|
620
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
621
|
+
# # object to check the status of an operation, cancel it, or wait
|
622
|
+
# # for results. Here is how to block until completion:
|
623
|
+
# result.wait_until_done! timeout: 60
|
624
|
+
# if result.response?
|
625
|
+
# p result.response
|
626
|
+
# else
|
627
|
+
# puts "Error!"
|
628
|
+
# end
|
629
|
+
#
|
550
630
|
def instantiate_inline_workflow_template request, options = nil
|
551
631
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
552
632
|
|
@@ -564,16 +644,20 @@ module Google
|
|
564
644
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
565
645
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
566
646
|
|
567
|
-
header_params = {
|
568
|
-
|
569
|
-
|
647
|
+
header_params = {}
|
648
|
+
if request.parent
|
649
|
+
header_params["parent"] = request.parent
|
650
|
+
end
|
651
|
+
|
570
652
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
571
653
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
572
654
|
|
573
655
|
options.apply_defaults timeout: @config.rpcs.instantiate_inline_workflow_template.timeout,
|
574
656
|
metadata: metadata,
|
575
657
|
retry_policy: @config.rpcs.instantiate_inline_workflow_template.retry_policy
|
576
|
-
|
658
|
+
|
659
|
+
options.apply_defaults timeout: @config.timeout,
|
660
|
+
metadata: @config.metadata,
|
577
661
|
retry_policy: @config.retry_policy
|
578
662
|
|
579
663
|
@workflow_template_service_stub.call_rpc :instantiate_inline_workflow_template, request, options: options do |response, operation|
|
@@ -617,6 +701,21 @@ module Google
|
|
617
701
|
#
|
618
702
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
619
703
|
#
|
704
|
+
# @example Basic example
|
705
|
+
# require "google/cloud/dataproc/v1"
|
706
|
+
#
|
707
|
+
# # Create a client object. The client can be reused for multiple calls.
|
708
|
+
# client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
|
709
|
+
#
|
710
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
711
|
+
# request = Google::Cloud::Dataproc::V1::UpdateWorkflowTemplateRequest.new
|
712
|
+
#
|
713
|
+
# # Call the update_workflow_template method.
|
714
|
+
# result = client.update_workflow_template request
|
715
|
+
#
|
716
|
+
# # The returned object is of type Google::Cloud::Dataproc::V1::WorkflowTemplate.
|
717
|
+
# p result
|
718
|
+
#
|
620
719
|
def update_workflow_template request, options = nil
|
621
720
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
622
721
|
|
@@ -634,16 +733,20 @@ module Google
|
|
634
733
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
635
734
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
636
735
|
|
637
|
-
header_params = {
|
638
|
-
|
639
|
-
|
736
|
+
header_params = {}
|
737
|
+
if request.template&.name
|
738
|
+
header_params["template.name"] = request.template.name
|
739
|
+
end
|
740
|
+
|
640
741
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
641
742
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
642
743
|
|
643
744
|
options.apply_defaults timeout: @config.rpcs.update_workflow_template.timeout,
|
644
745
|
metadata: metadata,
|
645
746
|
retry_policy: @config.rpcs.update_workflow_template.retry_policy
|
646
|
-
|
747
|
+
|
748
|
+
options.apply_defaults timeout: @config.timeout,
|
749
|
+
metadata: @config.metadata,
|
647
750
|
retry_policy: @config.retry_policy
|
648
751
|
|
649
752
|
@workflow_template_service_stub.call_rpc :update_workflow_template, request, options: options do |response, operation|
|
@@ -697,6 +800,27 @@ module Google
|
|
697
800
|
#
|
698
801
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
699
802
|
#
|
803
|
+
# @example Basic example
|
804
|
+
# require "google/cloud/dataproc/v1"
|
805
|
+
#
|
806
|
+
# # Create a client object. The client can be reused for multiple calls.
|
807
|
+
# client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
|
808
|
+
#
|
809
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
810
|
+
# request = Google::Cloud::Dataproc::V1::ListWorkflowTemplatesRequest.new
|
811
|
+
#
|
812
|
+
# # Call the list_workflow_templates method.
|
813
|
+
# result = client.list_workflow_templates request
|
814
|
+
#
|
815
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
816
|
+
# # iterate over all elements by calling #each, and the enumerable
|
817
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
818
|
+
# # methods are also available for managing paging directly.
|
819
|
+
# result.each do |response|
|
820
|
+
# # Each element is of type ::Google::Cloud::Dataproc::V1::WorkflowTemplate.
|
821
|
+
# p response
|
822
|
+
# end
|
823
|
+
#
|
700
824
|
def list_workflow_templates request, options = nil
|
701
825
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
702
826
|
|
@@ -714,16 +838,20 @@ module Google
|
|
714
838
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
715
839
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
716
840
|
|
717
|
-
header_params = {
|
718
|
-
|
719
|
-
|
841
|
+
header_params = {}
|
842
|
+
if request.parent
|
843
|
+
header_params["parent"] = request.parent
|
844
|
+
end
|
845
|
+
|
720
846
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
721
847
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
722
848
|
|
723
849
|
options.apply_defaults timeout: @config.rpcs.list_workflow_templates.timeout,
|
724
850
|
metadata: metadata,
|
725
851
|
retry_policy: @config.rpcs.list_workflow_templates.retry_policy
|
726
|
-
|
852
|
+
|
853
|
+
options.apply_defaults timeout: @config.timeout,
|
854
|
+
metadata: @config.metadata,
|
727
855
|
retry_policy: @config.retry_policy
|
728
856
|
|
729
857
|
@workflow_template_service_stub.call_rpc :list_workflow_templates, request, options: options do |response, operation|
|
@@ -777,6 +905,21 @@ module Google
|
|
777
905
|
#
|
778
906
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
779
907
|
#
|
908
|
+
# @example Basic example
|
909
|
+
# require "google/cloud/dataproc/v1"
|
910
|
+
#
|
911
|
+
# # Create a client object. The client can be reused for multiple calls.
|
912
|
+
# client = Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new
|
913
|
+
#
|
914
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
915
|
+
# request = Google::Cloud::Dataproc::V1::DeleteWorkflowTemplateRequest.new
|
916
|
+
#
|
917
|
+
# # Call the delete_workflow_template method.
|
918
|
+
# result = client.delete_workflow_template request
|
919
|
+
#
|
920
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
921
|
+
# p result
|
922
|
+
#
|
780
923
|
def delete_workflow_template request, options = nil
|
781
924
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
782
925
|
|
@@ -794,16 +937,20 @@ module Google
|
|
794
937
|
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
795
938
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
796
939
|
|
797
|
-
header_params = {
|
798
|
-
|
799
|
-
|
940
|
+
header_params = {}
|
941
|
+
if request.name
|
942
|
+
header_params["name"] = request.name
|
943
|
+
end
|
944
|
+
|
800
945
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
801
946
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
802
947
|
|
803
948
|
options.apply_defaults timeout: @config.rpcs.delete_workflow_template.timeout,
|
804
949
|
metadata: metadata,
|
805
950
|
retry_policy: @config.rpcs.delete_workflow_template.retry_policy
|
806
|
-
|
951
|
+
|
952
|
+
options.apply_defaults timeout: @config.timeout,
|
953
|
+
metadata: @config.metadata,
|
807
954
|
retry_policy: @config.retry_policy
|
808
955
|
|
809
956
|
@workflow_template_service_stub.call_rpc :delete_workflow_template, request, options: options do |response, operation|
|
@@ -827,22 +974,21 @@ module Google
|
|
827
974
|
# Configuration can be applied globally to all clients, or to a single client
|
828
975
|
# on construction.
|
829
976
|
#
|
830
|
-
#
|
831
|
-
#
|
832
|
-
#
|
833
|
-
# to 20 seconds,
|
834
|
-
#
|
835
|
-
#
|
836
|
-
#
|
837
|
-
#
|
838
|
-
#
|
839
|
-
#
|
840
|
-
#
|
841
|
-
#
|
842
|
-
#
|
843
|
-
#
|
844
|
-
#
|
845
|
-
# end
|
977
|
+
# @example
|
978
|
+
#
|
979
|
+
# # Modify the global config, setting the timeout for
|
980
|
+
# # create_workflow_template to 20 seconds,
|
981
|
+
# # and all remaining timeouts to 10 seconds.
|
982
|
+
# ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.configure do |config|
|
983
|
+
# config.timeout = 10.0
|
984
|
+
# config.rpcs.create_workflow_template.timeout = 20.0
|
985
|
+
# end
|
986
|
+
#
|
987
|
+
# # Apply the above configuration only to a new client.
|
988
|
+
# client = ::Google::Cloud::Dataproc::V1::WorkflowTemplateService::Client.new do |config|
|
989
|
+
# config.timeout = 10.0
|
990
|
+
# config.rpcs.create_workflow_template.timeout = 20.0
|
991
|
+
# end
|
846
992
|
#
|
847
993
|
# @!attribute [rw] endpoint
|
848
994
|
# The hostname or hostname:port of the service endpoint.
|