google-cloud-dataproc-v1 0.19.0 → 0.21.0
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/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +10 -1
- data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/client.rb +84 -0
- data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +10 -1
- data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +10 -1
- data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +75 -0
- data/lib/google/cloud/dataproc/v1/batch_controller/rest/operations.rb +75 -0
- data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +24 -2
- data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +10 -1
- data/lib/google/cloud/dataproc/v1/cluster_controller/rest/client.rb +188 -1
- data/lib/google/cloud/dataproc/v1/cluster_controller/rest/operations.rb +75 -0
- data/lib/google/cloud/dataproc/v1/clusters_pb.rb +4 -1
- data/lib/google/cloud/dataproc/v1/job_controller/client.rb +10 -1
- data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +10 -1
- data/lib/google/cloud/dataproc/v1/job_controller/rest/client.rb +123 -0
- data/lib/google/cloud/dataproc/v1/job_controller/rest/operations.rb +75 -0
- data/lib/google/cloud/dataproc/v1/node_group_controller/client.rb +10 -1
- data/lib/google/cloud/dataproc/v1/node_group_controller/operations.rb +10 -1
- data/lib/google/cloud/dataproc/v1/node_group_controller/rest/client.rb +62 -0
- data/lib/google/cloud/dataproc/v1/node_group_controller/rest/operations.rb +75 -0
- data/lib/google/cloud/dataproc/v1/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +10 -1
- data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +10 -1
- data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/client.rb +130 -0
- data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/operations.rb +75 -0
- data/proto_docs/google/cloud/dataproc/v1/clusters.rb +33 -18
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b6c4fbae5c5705501227b8c595dad05a531a55c0dce74460c95212dd52ee68c
|
4
|
+
data.tar.gz: e36b1ef420aaba51560c306b5f51a58bbccbe035c5a8e24f45c95d714f45a55e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec5f711e5615b9a254b7a4e43b55dfb87f64edf5177b16c77a9de315af005d8005687ca8e41cba80cbbbd1a5150a3596a44bead04f166ed54e111ce59ecbf4cd
|
7
|
+
data.tar.gz: 8d86a19506cf5727ac6aebb79892f049c36b334bc0a880103f2ff7273a60ebf692d687cd2058b94fb49019b08e59353fb64ab16f9f750d656dfc22ce7323523c
|
@@ -165,7 +165,8 @@ module Google
|
|
165
165
|
credentials: credentials,
|
166
166
|
endpoint: @config.endpoint,
|
167
167
|
channel_args: @config.channel_args,
|
168
|
-
interceptors: @config.interceptors
|
168
|
+
interceptors: @config.interceptors,
|
169
|
+
channel_pool_config: @config.channel_pool
|
169
170
|
)
|
170
171
|
end
|
171
172
|
|
@@ -775,6 +776,14 @@ module Google
|
|
775
776
|
end
|
776
777
|
end
|
777
778
|
|
779
|
+
##
|
780
|
+
# Configuration for the channel pool
|
781
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
782
|
+
#
|
783
|
+
def channel_pool
|
784
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
785
|
+
end
|
786
|
+
|
778
787
|
##
|
779
788
|
# Configuration RPC class for the AutoscalingPolicyService API.
|
780
789
|
#
|
@@ -208,6 +208,22 @@ module Google
|
|
208
208
|
# @return [::Google::Cloud::Dataproc::V1::AutoscalingPolicy]
|
209
209
|
#
|
210
210
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
211
|
+
#
|
212
|
+
# @example Basic example
|
213
|
+
# require "google/cloud/dataproc/v1"
|
214
|
+
#
|
215
|
+
# # Create a client object. The client can be reused for multiple calls.
|
216
|
+
# client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Rest::Client.new
|
217
|
+
#
|
218
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
219
|
+
# request = Google::Cloud::Dataproc::V1::CreateAutoscalingPolicyRequest.new
|
220
|
+
#
|
221
|
+
# # Call the create_autoscaling_policy method.
|
222
|
+
# result = client.create_autoscaling_policy request
|
223
|
+
#
|
224
|
+
# # The returned object is of type Google::Cloud::Dataproc::V1::AutoscalingPolicy.
|
225
|
+
# p result
|
226
|
+
#
|
211
227
|
def create_autoscaling_policy request, options = nil
|
212
228
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
213
229
|
|
@@ -273,6 +289,22 @@ module Google
|
|
273
289
|
# @return [::Google::Cloud::Dataproc::V1::AutoscalingPolicy]
|
274
290
|
#
|
275
291
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
292
|
+
#
|
293
|
+
# @example Basic example
|
294
|
+
# require "google/cloud/dataproc/v1"
|
295
|
+
#
|
296
|
+
# # Create a client object. The client can be reused for multiple calls.
|
297
|
+
# client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Rest::Client.new
|
298
|
+
#
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
300
|
+
# request = Google::Cloud::Dataproc::V1::UpdateAutoscalingPolicyRequest.new
|
301
|
+
#
|
302
|
+
# # Call the update_autoscaling_policy method.
|
303
|
+
# result = client.update_autoscaling_policy request
|
304
|
+
#
|
305
|
+
# # The returned object is of type Google::Cloud::Dataproc::V1::AutoscalingPolicy.
|
306
|
+
# p result
|
307
|
+
#
|
276
308
|
def update_autoscaling_policy request, options = nil
|
277
309
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
278
310
|
|
@@ -344,6 +376,22 @@ module Google
|
|
344
376
|
# @return [::Google::Cloud::Dataproc::V1::AutoscalingPolicy]
|
345
377
|
#
|
346
378
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
379
|
+
#
|
380
|
+
# @example Basic example
|
381
|
+
# require "google/cloud/dataproc/v1"
|
382
|
+
#
|
383
|
+
# # Create a client object. The client can be reused for multiple calls.
|
384
|
+
# client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Rest::Client.new
|
385
|
+
#
|
386
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
387
|
+
# request = Google::Cloud::Dataproc::V1::GetAutoscalingPolicyRequest.new
|
388
|
+
#
|
389
|
+
# # Call the get_autoscaling_policy method.
|
390
|
+
# result = client.get_autoscaling_policy request
|
391
|
+
#
|
392
|
+
# # The returned object is of type Google::Cloud::Dataproc::V1::AutoscalingPolicy.
|
393
|
+
# p result
|
394
|
+
#
|
347
395
|
def get_autoscaling_policy request, options = nil
|
348
396
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
349
397
|
|
@@ -421,6 +469,26 @@ module Google
|
|
421
469
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataproc::V1::AutoscalingPolicy>]
|
422
470
|
#
|
423
471
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
472
|
+
#
|
473
|
+
# @example Basic example
|
474
|
+
# require "google/cloud/dataproc/v1"
|
475
|
+
#
|
476
|
+
# # Create a client object. The client can be reused for multiple calls.
|
477
|
+
# client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Rest::Client.new
|
478
|
+
#
|
479
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
480
|
+
# request = Google::Cloud::Dataproc::V1::ListAutoscalingPoliciesRequest.new
|
481
|
+
#
|
482
|
+
# # Call the list_autoscaling_policies method.
|
483
|
+
# result = client.list_autoscaling_policies request
|
484
|
+
#
|
485
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
486
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
487
|
+
# result.each do |item|
|
488
|
+
# # Each element is of type ::Google::Cloud::Dataproc::V1::AutoscalingPolicy.
|
489
|
+
# p item
|
490
|
+
# end
|
491
|
+
#
|
424
492
|
def list_autoscaling_policies request, options = nil
|
425
493
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
426
494
|
|
@@ -494,6 +562,22 @@ module Google
|
|
494
562
|
# @return [::Google::Protobuf::Empty]
|
495
563
|
#
|
496
564
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
565
|
+
#
|
566
|
+
# @example Basic example
|
567
|
+
# require "google/cloud/dataproc/v1"
|
568
|
+
#
|
569
|
+
# # Create a client object. The client can be reused for multiple calls.
|
570
|
+
# client = Google::Cloud::Dataproc::V1::AutoscalingPolicyService::Rest::Client.new
|
571
|
+
#
|
572
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
573
|
+
# request = Google::Cloud::Dataproc::V1::DeleteAutoscalingPolicyRequest.new
|
574
|
+
#
|
575
|
+
# # Call the delete_autoscaling_policy method.
|
576
|
+
# result = client.delete_autoscaling_policy request
|
577
|
+
#
|
578
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
579
|
+
# p result
|
580
|
+
#
|
497
581
|
def delete_autoscaling_policy request, options = nil
|
498
582
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
499
583
|
|
@@ -151,7 +151,8 @@ module Google
|
|
151
151
|
credentials: credentials,
|
152
152
|
endpoint: @config.endpoint,
|
153
153
|
channel_args: @config.channel_args,
|
154
|
-
interceptors: @config.interceptors
|
154
|
+
interceptors: @config.interceptors,
|
155
|
+
channel_pool_config: @config.channel_pool
|
155
156
|
)
|
156
157
|
end
|
157
158
|
|
@@ -695,6 +696,14 @@ module Google
|
|
695
696
|
end
|
696
697
|
end
|
697
698
|
|
699
|
+
##
|
700
|
+
# Configuration for the channel pool
|
701
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
702
|
+
#
|
703
|
+
def channel_pool
|
704
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
705
|
+
end
|
706
|
+
|
698
707
|
##
|
699
708
|
# Configuration RPC class for the BatchController API.
|
700
709
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -210,6 +210,29 @@ module Google
|
|
210
210
|
# @return [::Gapic::Operation]
|
211
211
|
#
|
212
212
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
213
|
+
#
|
214
|
+
# @example Basic example
|
215
|
+
# require "google/cloud/dataproc/v1"
|
216
|
+
#
|
217
|
+
# # Create a client object. The client can be reused for multiple calls.
|
218
|
+
# client = Google::Cloud::Dataproc::V1::BatchController::Rest::Client.new
|
219
|
+
#
|
220
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
221
|
+
# request = Google::Cloud::Dataproc::V1::CreateBatchRequest.new
|
222
|
+
#
|
223
|
+
# # Call the create_batch method.
|
224
|
+
# result = client.create_batch request
|
225
|
+
#
|
226
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
227
|
+
# # check the status of an operation, cancel it, or wait for results.
|
228
|
+
# # Here is how to wait for a response.
|
229
|
+
# result.wait_until_done! timeout: 60
|
230
|
+
# if result.response?
|
231
|
+
# p result.response
|
232
|
+
# else
|
233
|
+
# puts "No response received."
|
234
|
+
# end
|
235
|
+
#
|
213
236
|
def create_batch request, options = nil
|
214
237
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
215
238
|
|
@@ -275,6 +298,22 @@ module Google
|
|
275
298
|
# @return [::Google::Cloud::Dataproc::V1::Batch]
|
276
299
|
#
|
277
300
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
301
|
+
#
|
302
|
+
# @example Basic example
|
303
|
+
# require "google/cloud/dataproc/v1"
|
304
|
+
#
|
305
|
+
# # Create a client object. The client can be reused for multiple calls.
|
306
|
+
# client = Google::Cloud::Dataproc::V1::BatchController::Rest::Client.new
|
307
|
+
#
|
308
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
309
|
+
# request = Google::Cloud::Dataproc::V1::GetBatchRequest.new
|
310
|
+
#
|
311
|
+
# # Call the get_batch method.
|
312
|
+
# result = client.get_batch request
|
313
|
+
#
|
314
|
+
# # The returned object is of type Google::Cloud::Dataproc::V1::Batch.
|
315
|
+
# p result
|
316
|
+
#
|
278
317
|
def get_batch request, options = nil
|
279
318
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
280
319
|
|
@@ -364,6 +403,26 @@ module Google
|
|
364
403
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataproc::V1::Batch>]
|
365
404
|
#
|
366
405
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
406
|
+
#
|
407
|
+
# @example Basic example
|
408
|
+
# require "google/cloud/dataproc/v1"
|
409
|
+
#
|
410
|
+
# # Create a client object. The client can be reused for multiple calls.
|
411
|
+
# client = Google::Cloud::Dataproc::V1::BatchController::Rest::Client.new
|
412
|
+
#
|
413
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
414
|
+
# request = Google::Cloud::Dataproc::V1::ListBatchesRequest.new
|
415
|
+
#
|
416
|
+
# # Call the list_batches method.
|
417
|
+
# result = client.list_batches request
|
418
|
+
#
|
419
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
420
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
421
|
+
# result.each do |item|
|
422
|
+
# # Each element is of type ::Google::Cloud::Dataproc::V1::Batch.
|
423
|
+
# p item
|
424
|
+
# end
|
425
|
+
#
|
367
426
|
def list_batches request, options = nil
|
368
427
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
428
|
|
@@ -430,6 +489,22 @@ module Google
|
|
430
489
|
# @return [::Google::Protobuf::Empty]
|
431
490
|
#
|
432
491
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
492
|
+
#
|
493
|
+
# @example Basic example
|
494
|
+
# require "google/cloud/dataproc/v1"
|
495
|
+
#
|
496
|
+
# # Create a client object. The client can be reused for multiple calls.
|
497
|
+
# client = Google::Cloud::Dataproc::V1::BatchController::Rest::Client.new
|
498
|
+
#
|
499
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
500
|
+
# request = Google::Cloud::Dataproc::V1::DeleteBatchRequest.new
|
501
|
+
#
|
502
|
+
# # Call the delete_batch method.
|
503
|
+
# result = client.delete_batch request
|
504
|
+
#
|
505
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
506
|
+
# p result
|
507
|
+
#
|
433
508
|
def delete_batch request, options = nil
|
434
509
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
435
510
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -182,7 +182,8 @@ module Google
|
|
182
182
|
credentials: credentials,
|
183
183
|
endpoint: @config.endpoint,
|
184
184
|
channel_args: @config.channel_args,
|
185
|
-
interceptors: @config.interceptors
|
185
|
+
interceptors: @config.interceptors,
|
186
|
+
channel_pool_config: @config.channel_pool
|
186
187
|
)
|
187
188
|
end
|
188
189
|
|
@@ -1103,7 +1104,7 @@ module Google
|
|
1103
1104
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1104
1105
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1105
1106
|
#
|
1106
|
-
# @overload diagnose_cluster(project_id: nil, region: nil, cluster_name: nil)
|
1107
|
+
# @overload diagnose_cluster(project_id: nil, region: nil, cluster_name: nil, tarball_gcs_dir: nil, diagnosis_interval: nil, jobs: nil, yarn_application_ids: nil)
|
1107
1108
|
# Pass arguments to `diagnose_cluster` via keyword arguments. Note that at
|
1108
1109
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1109
1110
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1115,6 +1116,19 @@ module Google
|
|
1115
1116
|
# Required. The Dataproc region in which to handle the request.
|
1116
1117
|
# @param cluster_name [::String]
|
1117
1118
|
# Required. The cluster name.
|
1119
|
+
# @param tarball_gcs_dir [::String]
|
1120
|
+
# Optional. The output Cloud Storage directory for the diagnostic
|
1121
|
+
# tarball. If not specified, a task-specific directory in the cluster's
|
1122
|
+
# staging bucket will be used.
|
1123
|
+
# @param diagnosis_interval [::Google::Type::Interval, ::Hash]
|
1124
|
+
# Optional. Time interval in which diagnosis should be carried out on the
|
1125
|
+
# cluster.
|
1126
|
+
# @param jobs [::Array<::String>]
|
1127
|
+
# Optional. Specifies a list of jobs on which diagnosis is to be performed.
|
1128
|
+
# Format: projects/\\{project}/regions/\\{region}/jobs/\\{job}
|
1129
|
+
# @param yarn_application_ids [::Array<::String>]
|
1130
|
+
# Optional. Specifies a list of yarn applications on which diagnosis is to be
|
1131
|
+
# performed.
|
1118
1132
|
#
|
1119
1133
|
# @yield [response, operation] Access the result along with the RPC operation
|
1120
1134
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1313,6 +1327,14 @@ module Google
|
|
1313
1327
|
end
|
1314
1328
|
end
|
1315
1329
|
|
1330
|
+
##
|
1331
|
+
# Configuration for the channel pool
|
1332
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1333
|
+
#
|
1334
|
+
def channel_pool
|
1335
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1336
|
+
end
|
1337
|
+
|
1316
1338
|
##
|
1317
1339
|
# Configuration RPC class for the ClusterController API.
|
1318
1340
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|