google-cloud-batch-v1 0.10.5 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28504849c9d52fa1ed0b1fcaeef52731f8ab705ff703a58246a2ff5458550022
4
- data.tar.gz: b212d6a39424a03a9a75de9644da71e084b037a9879fa44a137e5794b14a39a3
3
+ metadata.gz: ece17e18bf3d600b47564104c4a9892d4f8b208d78043ee88b644191441ddbff
4
+ data.tar.gz: 6ace0d9ab98e7a4461a60cfa63dae0c6c9e27dd42a2fea9c8f0a3016b9d53595
5
5
  SHA512:
6
- metadata.gz: 363f72f3eaa421e2eac6fea7f15ffcd9b7a87528e908fda269ffed8773bbf58eacfa9e9e98e0b2d8bc6190383795bb1526ff187c0ab5457095ac76b4ff7d02b6
7
- data.tar.gz: eb0b158af3306b399bcfd30b2f94b7e5852bdceca7d1d0b675c9291d715dad13ce1643bd7f081a6ba81957cc291346e8bd602c0d706eb30cfa10716a4535354f
6
+ metadata.gz: 9b856f1d2d93bec4d0d957ca5b35cce77a04cd450a5884f9ef6029d990e261c54500445dbae8c0901bcda2abe7d91f4530c738bc5cba7de63e670444182efd82
7
+ data.tar.gz: 978814b19d1064be2017dbd4cecf82fcf6c2d822f023d41af3d9e6d4da85b08daa1d99a0e840fef9c49d46c22f9ac3671613efacda1486fab2e38ade92d79470
@@ -177,7 +177,8 @@ module Google
177
177
  credentials: credentials,
178
178
  endpoint: @config.endpoint,
179
179
  channel_args: @config.channel_args,
180
- interceptors: @config.interceptors
180
+ interceptors: @config.interceptors,
181
+ channel_pool_config: @config.channel_pool
181
182
  )
182
183
  end
183
184
 
@@ -906,6 +907,14 @@ module Google
906
907
  end
907
908
  end
908
909
 
910
+ ##
911
+ # Configuration for the channel pool
912
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
913
+ #
914
+ def channel_pool
915
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
916
+ end
917
+
909
918
  ##
910
919
  # Configuration RPC class for the BatchService API.
911
920
  #
@@ -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
  #
@@ -243,6 +243,22 @@ module Google
243
243
  # @return [::Google::Cloud::Batch::V1::Job]
244
244
  #
245
245
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
246
+ #
247
+ # @example Basic example
248
+ # require "google/cloud/batch/v1"
249
+ #
250
+ # # Create a client object. The client can be reused for multiple calls.
251
+ # client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
252
+ #
253
+ # # Create a request. To set request fields, pass in keyword arguments.
254
+ # request = Google::Cloud::Batch::V1::CreateJobRequest.new
255
+ #
256
+ # # Call the create_job method.
257
+ # result = client.create_job request
258
+ #
259
+ # # The returned object is of type Google::Cloud::Batch::V1::Job.
260
+ # p result
261
+ #
246
262
  def create_job request, options = nil
247
263
  raise ::ArgumentError, "request must be provided" if request.nil?
248
264
 
@@ -305,6 +321,22 @@ module Google
305
321
  # @return [::Google::Cloud::Batch::V1::Job]
306
322
  #
307
323
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
324
+ #
325
+ # @example Basic example
326
+ # require "google/cloud/batch/v1"
327
+ #
328
+ # # Create a client object. The client can be reused for multiple calls.
329
+ # client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
330
+ #
331
+ # # Create a request. To set request fields, pass in keyword arguments.
332
+ # request = Google::Cloud::Batch::V1::GetJobRequest.new
333
+ #
334
+ # # Call the get_job method.
335
+ # result = client.get_job request
336
+ #
337
+ # # The returned object is of type Google::Cloud::Batch::V1::Job.
338
+ # p result
339
+ #
308
340
  def get_job request, options = nil
309
341
  raise ::ArgumentError, "request must be provided" if request.nil?
310
342
 
@@ -383,6 +415,29 @@ module Google
383
415
  # @return [::Gapic::Operation]
384
416
  #
385
417
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
418
+ #
419
+ # @example Basic example
420
+ # require "google/cloud/batch/v1"
421
+ #
422
+ # # Create a client object. The client can be reused for multiple calls.
423
+ # client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
424
+ #
425
+ # # Create a request. To set request fields, pass in keyword arguments.
426
+ # request = Google::Cloud::Batch::V1::DeleteJobRequest.new
427
+ #
428
+ # # Call the delete_job method.
429
+ # result = client.delete_job request
430
+ #
431
+ # # The returned object is of type Gapic::Operation. You can use it to
432
+ # # check the status of an operation, cancel it, or wait for results.
433
+ # # Here is how to wait for a response.
434
+ # result.wait_until_done! timeout: 60
435
+ # if result.response?
436
+ # p result.response
437
+ # else
438
+ # puts "No response received."
439
+ # end
440
+ #
386
441
  def delete_job request, options = nil
387
442
  raise ::ArgumentError, "request must be provided" if request.nil?
388
443
 
@@ -455,6 +510,26 @@ module Google
455
510
  # @return [::Google::Cloud::Batch::V1::ListJobsResponse]
456
511
  #
457
512
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
513
+ #
514
+ # @example Basic example
515
+ # require "google/cloud/batch/v1"
516
+ #
517
+ # # Create a client object. The client can be reused for multiple calls.
518
+ # client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
519
+ #
520
+ # # Create a request. To set request fields, pass in keyword arguments.
521
+ # request = Google::Cloud::Batch::V1::ListJobsRequest.new
522
+ #
523
+ # # Call the list_jobs method.
524
+ # result = client.list_jobs request
525
+ #
526
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
527
+ # # over elements, and API calls will be issued to fetch pages as needed.
528
+ # result.each do |item|
529
+ # # Each element is of type ::Google::Cloud::Batch::V1::Job.
530
+ # p item
531
+ # end
532
+ #
458
533
  def list_jobs request, options = nil
459
534
  raise ::ArgumentError, "request must be provided" if request.nil?
460
535
 
@@ -517,6 +592,22 @@ module Google
517
592
  # @return [::Google::Cloud::Batch::V1::Task]
518
593
  #
519
594
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
595
+ #
596
+ # @example Basic example
597
+ # require "google/cloud/batch/v1"
598
+ #
599
+ # # Create a client object. The client can be reused for multiple calls.
600
+ # client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
601
+ #
602
+ # # Create a request. To set request fields, pass in keyword arguments.
603
+ # request = Google::Cloud::Batch::V1::GetTaskRequest.new
604
+ #
605
+ # # Call the get_task method.
606
+ # result = client.get_task request
607
+ #
608
+ # # The returned object is of type Google::Cloud::Batch::V1::Task.
609
+ # p result
610
+ #
520
611
  def get_task request, options = nil
521
612
  raise ::ArgumentError, "request must be provided" if request.nil?
522
613
 
@@ -589,6 +680,26 @@ module Google
589
680
  # @return [::Google::Cloud::Batch::V1::ListTasksResponse]
590
681
  #
591
682
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
683
+ #
684
+ # @example Basic example
685
+ # require "google/cloud/batch/v1"
686
+ #
687
+ # # Create a client object. The client can be reused for multiple calls.
688
+ # client = Google::Cloud::Batch::V1::BatchService::Rest::Client.new
689
+ #
690
+ # # Create a request. To set request fields, pass in keyword arguments.
691
+ # request = Google::Cloud::Batch::V1::ListTasksRequest.new
692
+ #
693
+ # # Call the list_tasks method.
694
+ # result = client.list_tasks request
695
+ #
696
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
697
+ # # over elements, and API calls will be issued to fetch pages as needed.
698
+ # result.each do |item|
699
+ # # Each element is of type ::Google::Cloud::Batch::V1::Task.
700
+ # p item
701
+ # end
702
+ #
592
703
  def list_tasks request, options = nil
593
704
  raise ::ArgumentError, "request must be provided" if request.nil?
594
705
 
@@ -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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Batch
23
23
  module V1
24
- VERSION = "0.10.5"
24
+ VERSION = "0.11.1"
25
25
  end
26
26
  end
27
27
  end
@@ -167,7 +167,8 @@ module Google
167
167
  credentials: credentials,
168
168
  endpoint: @config.endpoint,
169
169
  channel_args: @config.channel_args,
170
- interceptors: @config.interceptors
170
+ interceptors: @config.interceptors,
171
+ channel_pool_config: @config.channel_pool
171
172
  )
172
173
  end
173
174
 
@@ -587,6 +588,14 @@ module Google
587
588
  end
588
589
  end
589
590
 
591
+ ##
592
+ # Configuration for the channel pool
593
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
594
+ #
595
+ def channel_pool
596
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
597
+ end
598
+
590
599
  ##
591
600
  # Configuration RPC class for the IAMPolicy API.
592
601
  #
@@ -214,6 +214,22 @@ module Google
214
214
  # @return [::Google::Iam::V1::Policy]
215
215
  #
216
216
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
217
+ #
218
+ # @example Basic example
219
+ # require "google/iam/v1"
220
+ #
221
+ # # Create a client object. The client can be reused for multiple calls.
222
+ # client = Google::Iam::V1::IAMPolicy::Rest::Client.new
223
+ #
224
+ # # Create a request. To set request fields, pass in keyword arguments.
225
+ # request = Google::Iam::V1::SetIamPolicyRequest.new
226
+ #
227
+ # # Call the set_iam_policy method.
228
+ # result = client.set_iam_policy request
229
+ #
230
+ # # The returned object is of type Google::Iam::V1::Policy.
231
+ # p result
232
+ #
217
233
  def set_iam_policy request, options = nil
218
234
  raise ::ArgumentError, "request must be provided" if request.nil?
219
235
 
@@ -282,6 +298,22 @@ module Google
282
298
  # @return [::Google::Iam::V1::Policy]
283
299
  #
284
300
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
301
+ #
302
+ # @example Basic example
303
+ # require "google/iam/v1"
304
+ #
305
+ # # Create a client object. The client can be reused for multiple calls.
306
+ # client = Google::Iam::V1::IAMPolicy::Rest::Client.new
307
+ #
308
+ # # Create a request. To set request fields, pass in keyword arguments.
309
+ # request = Google::Iam::V1::GetIamPolicyRequest.new
310
+ #
311
+ # # Call the get_iam_policy method.
312
+ # result = client.get_iam_policy request
313
+ #
314
+ # # The returned object is of type Google::Iam::V1::Policy.
315
+ # p result
316
+ #
285
317
  def get_iam_policy request, options = nil
286
318
  raise ::ArgumentError, "request must be provided" if request.nil?
287
319
 
@@ -356,6 +388,22 @@ module Google
356
388
  # @return [::Google::Iam::V1::TestIamPermissionsResponse]
357
389
  #
358
390
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
391
+ #
392
+ # @example Basic example
393
+ # require "google/iam/v1"
394
+ #
395
+ # # Create a client object. The client can be reused for multiple calls.
396
+ # client = Google::Iam::V1::IAMPolicy::Rest::Client.new
397
+ #
398
+ # # Create a request. To set request fields, pass in keyword arguments.
399
+ # request = Google::Iam::V1::TestIamPermissionsRequest.new
400
+ #
401
+ # # Call the test_iam_permissions method.
402
+ # result = client.test_iam_permissions request
403
+ #
404
+ # # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
405
+ # p result
406
+ #
359
407
  def test_iam_permissions request, options = nil
360
408
  raise ::ArgumentError, "request must be provided" if request.nil?
361
409
 
@@ -364,7 +364,9 @@ module Google
364
364
  # @return [::String]
365
365
  # Local SSDs are available through both "SCSI" and "NVMe" interfaces.
366
366
  # If not indicated, "NVMe" will be the default one for local ssds.
367
- # We only support "SCSI" for persistent disks now.
367
+ # This field is ignored for persistent disks as the interface is chosen
368
+ # automatically. See
369
+ # https://cloud.google.com/compute/docs/disks/persistent-disks#choose_an_interface.
368
370
  class Disk
369
371
  include ::Google::Protobuf::MessageExts
370
372
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-batch-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.5
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-07 00:00:00.000000000 Z
11
+ date: 2023-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a