google-cloud-dataproc-v1 0.18.1 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/client.rb +10 -1
  3. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service/rest/client.rb +84 -0
  4. data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +10 -1
  5. data/lib/google/cloud/dataproc/v1/batch_controller/operations.rb +10 -1
  6. data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +75 -0
  7. data/lib/google/cloud/dataproc/v1/batch_controller/rest/operations.rb +75 -0
  8. data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +10 -1
  9. data/lib/google/cloud/dataproc/v1/cluster_controller/operations.rb +10 -1
  10. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/client.rb +174 -0
  11. data/lib/google/cloud/dataproc/v1/cluster_controller/rest/operations.rb +75 -0
  12. data/lib/google/cloud/dataproc/v1/clusters_pb.rb +5 -1
  13. data/lib/google/cloud/dataproc/v1/job_controller/client.rb +10 -1
  14. data/lib/google/cloud/dataproc/v1/job_controller/operations.rb +10 -1
  15. data/lib/google/cloud/dataproc/v1/job_controller/rest/client.rb +123 -0
  16. data/lib/google/cloud/dataproc/v1/job_controller/rest/operations.rb +75 -0
  17. data/lib/google/cloud/dataproc/v1/node_group_controller/client.rb +11 -2
  18. data/lib/google/cloud/dataproc/v1/node_group_controller/operations.rb +10 -1
  19. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/client.rb +63 -1
  20. data/lib/google/cloud/dataproc/v1/node_group_controller/rest/operations.rb +75 -0
  21. data/lib/google/cloud/dataproc/v1/version.rb +1 -1
  22. data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +10 -1
  23. data/lib/google/cloud/dataproc/v1/workflow_template_service/operations.rb +10 -1
  24. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/client.rb +130 -0
  25. data/lib/google/cloud/dataproc/v1/workflow_template_service/rest/operations.rb +75 -0
  26. data/proto_docs/google/api/field_behavior.rb +14 -0
  27. data/proto_docs/google/cloud/dataproc/v1/clusters.rb +111 -18
  28. data/proto_docs/google/cloud/dataproc/v1/node_groups.rb +1 -1
  29. data/proto_docs/google/type/expr.rb +75 -0
  30. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb531ab5417549389d7297b0fbd8ec488f59c2fd04946e12b7cda3b60dfebed5
4
- data.tar.gz: 590ade8f8979ba33e22209caa7e08e1f1f3bbbff1ce7812cf96ce79ffb3fddff
3
+ metadata.gz: 59c0171ca7461be3f9c8a7e3d6339a741a3c37af90438ea19f1f71eacc1b7c98
4
+ data.tar.gz: 8c13f115d4148659a7e1f167f2ef073acd15419ee55a501e9c5e39ff5b0f69d8
5
5
  SHA512:
6
- metadata.gz: 05a34dca66b0d5d8b40a3247f765c12b1aea23227d147d4fe57e3adba6e9b4910970b1d01d2c8e3bc310803371f0c94d18d75015a52c227ef464c56889f6df7e
7
- data.tar.gz: 7b9304a2d93299ab8fb09d8a9e234f6daec4b8b4b14d815f1af9780987026ca8e36303e56c095a58208b12a7af4b630962c48eb8da500d0edeba179c3fc40de3
6
+ metadata.gz: d04c6638edcf7894bfacdee2343431575b0efb420b754b62807fe945a4339b3f4ac8585c545174417f2c00717643abd005df21f33032987c2dd9a36f612d4f6c
7
+ data.tar.gz: 72dd815f294e951bc17894a252fa4dbac416f43e671ca7b04bb01915ded83e3235de175d013e198af784f3cc024e03ad0ddf0e312129e908b83566ba667e104e
@@ -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
 
@@ -1313,6 +1314,14 @@ module Google
1313
1314
  end
1314
1315
  end
1315
1316
 
1317
+ ##
1318
+ # Configuration for the channel pool
1319
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1320
+ #
1321
+ def channel_pool
1322
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1323
+ end
1324
+
1316
1325
  ##
1317
1326
  # Configuration RPC class for the ClusterController API.
1318
1327
  #
@@ -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
  #