google-cloud-dataproc-v1beta2 0.5.0 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/LICENSE.md +188 -190
- data/README.md +3 -3
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/client.rb +55 -61
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service/paths.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/client.rb +76 -89
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller/operations.rb +39 -30
- data/lib/google/cloud/dataproc/v1beta2/clusters_services_pb.rb +4 -4
- data/lib/google/cloud/dataproc/v1beta2/job_controller/client.rb +80 -94
- data/lib/google/cloud/dataproc/v1beta2/job_controller/operations.rb +39 -30
- data/lib/google/cloud/dataproc/v1beta2/jobs_services_pb.rb +2 -2
- data/lib/google/cloud/dataproc/v1beta2/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/client.rb +68 -82
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/operations.rb +39 -30
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service/paths.rb +1 -1
- data/lib/google/cloud/dataproc/v1beta2/workflow_templates_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- metadata +16 -10
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# Create credentials
|
83
83
|
credentials = @config.credentials
|
84
84
|
credentials ||= Credentials.default scope: @config.scope
|
85
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
85
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
88
|
@quota_project_id = @config.quota_project
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -396,9 +404,9 @@ module Google
|
|
396
404
|
end
|
397
405
|
|
398
406
|
##
|
399
|
-
# Waits
|
400
|
-
#
|
401
|
-
#
|
407
|
+
# Waits until the specified long-running operation is done or reaches at most
|
408
|
+
# a specified timeout, returning the latest state. If the operation is
|
409
|
+
# already done, the latest state is immediately returned. If the timeout
|
402
410
|
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
403
411
|
# timeout is used. If the server does not support this method, it returns
|
404
412
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
# To modify the global config, setting the timeout for list_operations
|
487
|
-
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
488
|
-
#
|
489
|
-
# ::Google::Longrunning::Operations::Client.configure do |config|
|
490
|
-
# config.timeout = 10.0
|
491
|
-
# config.rpcs.list_operations.timeout = 20.0
|
492
|
-
# end
|
494
|
+
# @example
|
493
495
|
#
|
494
|
-
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
495
503
|
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
@@ -560,7 +569,7 @@ module Google
|
|
560
569
|
config_attr :scope, nil, ::String, ::Array, nil
|
561
570
|
config_attr :lib_name, nil, ::String, nil
|
562
571
|
config_attr :lib_version, nil, ::String, nil
|
563
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
572
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
564
573
|
config_attr :interceptors, nil, ::Array, nil
|
565
574
|
config_attr :timeout, nil, ::Numeric, nil
|
566
575
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -581,7 +590,7 @@ module Google
|
|
581
590
|
def rpcs
|
582
591
|
@rpcs ||= begin
|
583
592
|
parent_rpcs = nil
|
584
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
593
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
585
594
|
Rpcs.new parent_rpcs
|
586
595
|
end
|
587
596
|
end
|
@@ -632,15 +641,15 @@ module Google
|
|
632
641
|
|
633
642
|
# @private
|
634
643
|
def initialize parent_rpcs = nil
|
635
|
-
list_operations_config = parent_rpcs
|
644
|
+
list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations
|
636
645
|
@list_operations = ::Gapic::Config::Method.new list_operations_config
|
637
|
-
get_operation_config = parent_rpcs
|
646
|
+
get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation
|
638
647
|
@get_operation = ::Gapic::Config::Method.new get_operation_config
|
639
|
-
delete_operation_config = parent_rpcs
|
648
|
+
delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation
|
640
649
|
@delete_operation = ::Gapic::Config::Method.new delete_operation_config
|
641
|
-
cancel_operation_config = parent_rpcs
|
650
|
+
cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation
|
642
651
|
@cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
|
643
|
-
wait_operation_config = parent_rpcs
|
652
|
+
wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation
|
644
653
|
@wait_operation = ::Gapic::Config::Method.new wait_operation_config
|
645
654
|
|
646
655
|
yield self if block_given?
|
@@ -45,9 +45,9 @@ module Google
|
|
45
45
|
rpc :UpdateJob, ::Google::Cloud::Dataproc::V1beta2::UpdateJobRequest, ::Google::Cloud::Dataproc::V1beta2::Job
|
46
46
|
# Starts a job cancellation request. To access the job resource
|
47
47
|
# after cancellation, call
|
48
|
-
#
|
48
|
+
# regions/{region}/jobs.list
|
49
49
|
# or
|
50
|
-
#
|
50
|
+
# regions/{region}/jobs.get.
|
51
51
|
rpc :CancelJob, ::Google::Cloud::Dataproc::V1beta2::CancelJobRequest, ::Google::Cloud::Dataproc::V1beta2::Job
|
52
52
|
# Deletes the job from the project. If the job is active, the delete fails,
|
53
53
|
# and the response returns `FAILED_PRECONDITION`.
|
@@ -42,13 +42,12 @@ module Google
|
|
42
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
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
# end
|
47
|
+
# # Modify the configuration for all WorkflowTemplateService clients
|
48
|
+
# ::Google::Cloud::Dataproc::V1beta2::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]
|
@@ -61,65 +60,44 @@ module Google
|
|
61
60
|
parent_config = while namespace.any?
|
62
61
|
parent_name = namespace.join "::"
|
63
62
|
parent_const = const_get parent_name
|
64
|
-
break parent_const.configure if parent_const
|
63
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
65
64
|
namespace.pop
|
66
65
|
end
|
67
66
|
default_config = Client::Configuration.new parent_config
|
68
67
|
|
69
68
|
default_config.rpcs.create_workflow_template.timeout = 600.0
|
70
69
|
default_config.rpcs.create_workflow_template.retry_policy = {
|
71
|
-
initial_delay: 0.1,
|
72
|
-
max_delay: 60.0,
|
73
|
-
multiplier: 1.3,
|
74
|
-
retry_codes: [14]
|
70
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
75
71
|
}
|
76
72
|
|
77
73
|
default_config.rpcs.get_workflow_template.timeout = 600.0
|
78
74
|
default_config.rpcs.get_workflow_template.retry_policy = {
|
79
|
-
initial_delay: 0.1,
|
80
|
-
max_delay: 60.0,
|
81
|
-
multiplier: 1.3,
|
82
|
-
retry_codes: [4, 13, 14]
|
75
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
|
83
76
|
}
|
84
77
|
|
85
78
|
default_config.rpcs.instantiate_workflow_template.timeout = 600.0
|
86
79
|
default_config.rpcs.instantiate_workflow_template.retry_policy = {
|
87
|
-
initial_delay: 0.1,
|
88
|
-
max_delay: 60.0,
|
89
|
-
multiplier: 1.3,
|
90
|
-
retry_codes: [14]
|
80
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
91
81
|
}
|
92
82
|
|
93
83
|
default_config.rpcs.instantiate_inline_workflow_template.timeout = 600.0
|
94
84
|
default_config.rpcs.instantiate_inline_workflow_template.retry_policy = {
|
95
|
-
initial_delay: 0.1,
|
96
|
-
max_delay: 60.0,
|
97
|
-
multiplier: 1.3,
|
98
|
-
retry_codes: [14]
|
85
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
99
86
|
}
|
100
87
|
|
101
88
|
default_config.rpcs.update_workflow_template.timeout = 600.0
|
102
89
|
default_config.rpcs.update_workflow_template.retry_policy = {
|
103
|
-
initial_delay: 0.1,
|
104
|
-
max_delay: 60.0,
|
105
|
-
multiplier: 1.3,
|
106
|
-
retry_codes: [14]
|
90
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
107
91
|
}
|
108
92
|
|
109
93
|
default_config.rpcs.list_workflow_templates.timeout = 600.0
|
110
94
|
default_config.rpcs.list_workflow_templates.retry_policy = {
|
111
|
-
initial_delay: 0.1,
|
112
|
-
max_delay: 60.0,
|
113
|
-
multiplier: 1.3,
|
114
|
-
retry_codes: [4, 13, 14]
|
95
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 13, 14]
|
115
96
|
}
|
116
97
|
|
117
98
|
default_config.rpcs.delete_workflow_template.timeout = 600.0
|
118
99
|
default_config.rpcs.delete_workflow_template.retry_policy = {
|
119
|
-
initial_delay: 0.1,
|
120
|
-
max_delay: 60.0,
|
121
|
-
multiplier: 1.3,
|
122
|
-
retry_codes: [14]
|
100
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
123
101
|
}
|
124
102
|
|
125
103
|
default_config
|
@@ -151,19 +129,15 @@ module Google
|
|
151
129
|
##
|
152
130
|
# Create a new WorkflowTemplateService client object.
|
153
131
|
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
# To create a new WorkflowTemplateService client with the default
|
157
|
-
# configuration:
|
158
|
-
#
|
159
|
-
# client = ::Google::Cloud::Dataproc::V1beta2::WorkflowTemplateService::Client.new
|
132
|
+
# @example
|
160
133
|
#
|
161
|
-
#
|
162
|
-
#
|
134
|
+
# # Create a client using the default configuration
|
135
|
+
# client = ::Google::Cloud::Dataproc::V1beta2::WorkflowTemplateService::Client.new
|
163
136
|
#
|
164
|
-
#
|
165
|
-
#
|
166
|
-
#
|
137
|
+
# # Create a client using a custom configuration
|
138
|
+
# client = ::Google::Cloud::Dataproc::V1beta2::WorkflowTemplateService::Client.new do |config|
|
139
|
+
# config.timeout = 10.0
|
140
|
+
# end
|
167
141
|
#
|
168
142
|
# @yield [config] Configure the WorkflowTemplateService client.
|
169
143
|
# @yieldparam config [Client::Configuration]
|
@@ -183,14 +157,13 @@ module Google
|
|
183
157
|
|
184
158
|
# Create credentials
|
185
159
|
credentials = @config.credentials
|
186
|
-
# Use self-signed JWT if the
|
160
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
187
161
|
# but only if the default endpoint does not have a region prefix.
|
188
|
-
enable_self_signed_jwt = @config.
|
189
|
-
@config.endpoint == Client.configure.endpoint &&
|
162
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
190
163
|
!@config.endpoint.split(".").first.include?("-")
|
191
|
-
credentials ||= Credentials.default scope:
|
164
|
+
credentials ||= Credentials.default scope: @config.scope,
|
192
165
|
enable_self_signed_jwt: enable_self_signed_jwt
|
193
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
166
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
194
167
|
credentials = Credentials.new credentials, scope: @config.scope
|
195
168
|
end
|
196
169
|
@quota_project_id = @config.quota_project
|
@@ -285,7 +258,9 @@ module Google
|
|
285
258
|
options.apply_defaults timeout: @config.rpcs.create_workflow_template.timeout,
|
286
259
|
metadata: metadata,
|
287
260
|
retry_policy: @config.rpcs.create_workflow_template.retry_policy
|
288
|
-
|
261
|
+
|
262
|
+
options.apply_defaults timeout: @config.timeout,
|
263
|
+
metadata: @config.metadata,
|
289
264
|
retry_policy: @config.retry_policy
|
290
265
|
|
291
266
|
@workflow_template_service_stub.call_rpc :create_workflow_template, request, options: options do |response, operation|
|
@@ -368,7 +343,9 @@ module Google
|
|
368
343
|
options.apply_defaults timeout: @config.rpcs.get_workflow_template.timeout,
|
369
344
|
metadata: metadata,
|
370
345
|
retry_policy: @config.rpcs.get_workflow_template.retry_policy
|
371
|
-
|
346
|
+
|
347
|
+
options.apply_defaults timeout: @config.timeout,
|
348
|
+
metadata: @config.metadata,
|
372
349
|
retry_policy: @config.retry_policy
|
373
350
|
|
374
351
|
@workflow_template_service_stub.call_rpc :get_workflow_template, request, options: options do |response, operation|
|
@@ -393,7 +370,7 @@ module Google
|
|
393
370
|
# clusters to be deleted.
|
394
371
|
#
|
395
372
|
# The {::Google::Longrunning::Operation#metadata Operation.metadata} will be
|
396
|
-
#
|
373
|
+
# WorkflowMetadata.
|
397
374
|
# Also see [Using
|
398
375
|
# WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata).
|
399
376
|
#
|
@@ -484,7 +461,9 @@ module Google
|
|
484
461
|
options.apply_defaults timeout: @config.rpcs.instantiate_workflow_template.timeout,
|
485
462
|
metadata: metadata,
|
486
463
|
retry_policy: @config.rpcs.instantiate_workflow_template.retry_policy
|
487
|
-
|
464
|
+
|
465
|
+
options.apply_defaults timeout: @config.timeout,
|
466
|
+
metadata: @config.metadata,
|
488
467
|
retry_policy: @config.retry_policy
|
489
468
|
|
490
469
|
@workflow_template_service_stub.call_rpc :instantiate_workflow_template, request, options: options do |response, operation|
|
@@ -598,7 +577,9 @@ module Google
|
|
598
577
|
options.apply_defaults timeout: @config.rpcs.instantiate_inline_workflow_template.timeout,
|
599
578
|
metadata: metadata,
|
600
579
|
retry_policy: @config.rpcs.instantiate_inline_workflow_template.retry_policy
|
601
|
-
|
580
|
+
|
581
|
+
options.apply_defaults timeout: @config.timeout,
|
582
|
+
metadata: @config.metadata,
|
602
583
|
retry_policy: @config.retry_policy
|
603
584
|
|
604
585
|
@workflow_template_service_stub.call_rpc :instantiate_inline_workflow_template, request, options: options do |response, operation|
|
@@ -668,7 +649,9 @@ module Google
|
|
668
649
|
options.apply_defaults timeout: @config.rpcs.update_workflow_template.timeout,
|
669
650
|
metadata: metadata,
|
670
651
|
retry_policy: @config.rpcs.update_workflow_template.retry_policy
|
671
|
-
|
652
|
+
|
653
|
+
options.apply_defaults timeout: @config.timeout,
|
654
|
+
metadata: @config.metadata,
|
672
655
|
retry_policy: @config.retry_policy
|
673
656
|
|
674
657
|
@workflow_template_service_stub.call_rpc :update_workflow_template, request, options: options do |response, operation|
|
@@ -748,7 +731,9 @@ module Google
|
|
748
731
|
options.apply_defaults timeout: @config.rpcs.list_workflow_templates.timeout,
|
749
732
|
metadata: metadata,
|
750
733
|
retry_policy: @config.rpcs.list_workflow_templates.retry_policy
|
751
|
-
|
734
|
+
|
735
|
+
options.apply_defaults timeout: @config.timeout,
|
736
|
+
metadata: @config.metadata,
|
752
737
|
retry_policy: @config.retry_policy
|
753
738
|
|
754
739
|
@workflow_template_service_stub.call_rpc :list_workflow_templates, request, options: options do |response, operation|
|
@@ -828,7 +813,9 @@ module Google
|
|
828
813
|
options.apply_defaults timeout: @config.rpcs.delete_workflow_template.timeout,
|
829
814
|
metadata: metadata,
|
830
815
|
retry_policy: @config.rpcs.delete_workflow_template.retry_policy
|
831
|
-
|
816
|
+
|
817
|
+
options.apply_defaults timeout: @config.timeout,
|
818
|
+
metadata: @config.metadata,
|
832
819
|
retry_policy: @config.retry_policy
|
833
820
|
|
834
821
|
@workflow_template_service_stub.call_rpc :delete_workflow_template, request, options: options do |response, operation|
|
@@ -852,22 +839,21 @@ module Google
|
|
852
839
|
# Configuration can be applied globally to all clients, or to a single client
|
853
840
|
# on construction.
|
854
841
|
#
|
855
|
-
#
|
856
|
-
#
|
857
|
-
# To modify the global config, setting the timeout for create_workflow_template
|
858
|
-
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
859
|
-
#
|
860
|
-
# ::Google::Cloud::Dataproc::V1beta2::WorkflowTemplateService::Client.configure do |config|
|
861
|
-
# config.timeout = 10.0
|
862
|
-
# config.rpcs.create_workflow_template.timeout = 20.0
|
863
|
-
# end
|
842
|
+
# @example
|
864
843
|
#
|
865
|
-
#
|
844
|
+
# # Modify the global config, setting the timeout for
|
845
|
+
# # create_workflow_template to 20 seconds,
|
846
|
+
# # and all remaining timeouts to 10 seconds.
|
847
|
+
# ::Google::Cloud::Dataproc::V1beta2::WorkflowTemplateService::Client.configure do |config|
|
848
|
+
# config.timeout = 10.0
|
849
|
+
# config.rpcs.create_workflow_template.timeout = 20.0
|
850
|
+
# end
|
866
851
|
#
|
867
|
-
#
|
868
|
-
#
|
869
|
-
#
|
870
|
-
#
|
852
|
+
# # Apply the above configuration only to a new client.
|
853
|
+
# client = ::Google::Cloud::Dataproc::V1beta2::WorkflowTemplateService::Client.new do |config|
|
854
|
+
# config.timeout = 10.0
|
855
|
+
# config.rpcs.create_workflow_template.timeout = 20.0
|
856
|
+
# end
|
871
857
|
#
|
872
858
|
# @!attribute [rw] endpoint
|
873
859
|
# The hostname or hostname:port of the service endpoint.
|
@@ -931,7 +917,7 @@ module Google
|
|
931
917
|
config_attr :scope, nil, ::String, ::Array, nil
|
932
918
|
config_attr :lib_name, nil, ::String, nil
|
933
919
|
config_attr :lib_version, nil, ::String, nil
|
934
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
920
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
935
921
|
config_attr :interceptors, nil, ::Array, nil
|
936
922
|
config_attr :timeout, nil, ::Numeric, nil
|
937
923
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -952,7 +938,7 @@ module Google
|
|
952
938
|
def rpcs
|
953
939
|
@rpcs ||= begin
|
954
940
|
parent_rpcs = nil
|
955
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
941
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
956
942
|
Rpcs.new parent_rpcs
|
957
943
|
end
|
958
944
|
end
|
@@ -1013,19 +999,19 @@ module Google
|
|
1013
999
|
|
1014
1000
|
# @private
|
1015
1001
|
def initialize parent_rpcs = nil
|
1016
|
-
create_workflow_template_config = parent_rpcs
|
1002
|
+
create_workflow_template_config = parent_rpcs.create_workflow_template if parent_rpcs.respond_to? :create_workflow_template
|
1017
1003
|
@create_workflow_template = ::Gapic::Config::Method.new create_workflow_template_config
|
1018
|
-
get_workflow_template_config = parent_rpcs
|
1004
|
+
get_workflow_template_config = parent_rpcs.get_workflow_template if parent_rpcs.respond_to? :get_workflow_template
|
1019
1005
|
@get_workflow_template = ::Gapic::Config::Method.new get_workflow_template_config
|
1020
|
-
instantiate_workflow_template_config = parent_rpcs
|
1006
|
+
instantiate_workflow_template_config = parent_rpcs.instantiate_workflow_template if parent_rpcs.respond_to? :instantiate_workflow_template
|
1021
1007
|
@instantiate_workflow_template = ::Gapic::Config::Method.new instantiate_workflow_template_config
|
1022
|
-
instantiate_inline_workflow_template_config = parent_rpcs
|
1008
|
+
instantiate_inline_workflow_template_config = parent_rpcs.instantiate_inline_workflow_template if parent_rpcs.respond_to? :instantiate_inline_workflow_template
|
1023
1009
|
@instantiate_inline_workflow_template = ::Gapic::Config::Method.new instantiate_inline_workflow_template_config
|
1024
|
-
update_workflow_template_config = parent_rpcs
|
1010
|
+
update_workflow_template_config = parent_rpcs.update_workflow_template if parent_rpcs.respond_to? :update_workflow_template
|
1025
1011
|
@update_workflow_template = ::Gapic::Config::Method.new update_workflow_template_config
|
1026
|
-
list_workflow_templates_config = parent_rpcs
|
1012
|
+
list_workflow_templates_config = parent_rpcs.list_workflow_templates if parent_rpcs.respond_to? :list_workflow_templates
|
1027
1013
|
@list_workflow_templates = ::Gapic::Config::Method.new list_workflow_templates_config
|
1028
|
-
delete_workflow_template_config = parent_rpcs
|
1014
|
+
delete_workflow_template_config = parent_rpcs.delete_workflow_template if parent_rpcs.respond_to? :delete_workflow_template
|
1029
1015
|
@delete_workflow_template = ::Gapic::Config::Method.new delete_workflow_template_config
|
1030
1016
|
|
1031
1017
|
yield self if block_given?
|