google-cloud-batch-v1 0.10.4 → 0.11.0

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: 740869f492efb7f98d498f7eb98f627f0471a79be393d46969126e7e26bcbf6e
4
- data.tar.gz: 78549abe36e56f7113fbce90dd21db6a62b786fd96737b75fa6d70e88c723d10
3
+ metadata.gz: ae5ae618558337fbe208e96c2427f1929f593db3183dee60b801f2a15fde05f4
4
+ data.tar.gz: 30837d2501752bc17fd04630095a79c773c46e8e0261f9b34af5abc14b5d63fc
5
5
  SHA512:
6
- metadata.gz: ae09712b2daebdf8673afd04a6d39014e7467605e2b05076144b495becbb55b62708c9ce5de2e01944249d6233c1496780b4f9cf26a229e48385f807410161e9
7
- data.tar.gz: eb17c2018a5d07d17f46bc17f5cd115964fba9959eb9041a204634d3f9ead96f77d0f57f2170ff37c828bcb8080fb474715ff084cad3a099db8e2f3f9c78b665
6
+ metadata.gz: 21e3f68582f376db9bc20b492ed469f12a4053d1eef6d854af110a42556c62117639451b86a7337f6a1bce197c27f088ad09fcb0822f13a9f88b0f5618fa86c0
7
+ data.tar.gz: 3263b79a126cd417a950f8958d485dc0b25450642e2932f0a558c02dc2ea24917e98c665df8b545220575eab95321ecbf8e7a2a858f8855b3efe15a919161d91
@@ -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.4"
24
+ VERSION = "0.11.0"
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
 
@@ -343,14 +343,23 @@ module Google
343
343
  # @return [::Integer]
344
344
  # Disk size in GB.
345
345
  #
346
- # For persistent disk, this field is ignored if `data_source` is `image` or
347
- # `snapshot`.
348
- # For local SSD, size_gb should be a multiple of 375GB,
349
- # otherwise, the final size will be the next greater multiple of 375 GB.
350
- # For boot disk, Batch will calculate the boot disk size based on source
346
+ # **Non-Boot Disk**:
347
+ # If the `type` specifies a persistent disk, this field
348
+ # is ignored if `data_source` is set as `image` or `snapshot`.
349
+ # If the `type` specifies a local SSD, this field should be a multiple of
350
+ # 375 GB, otherwise, the final size will be the next greater multiple of
351
+ # 375 GB.
352
+ #
353
+ # **Boot Disk**:
354
+ # Batch will calculate the boot disk size based on source
351
355
  # image and task requirements if you do not speicify the size.
352
- # If both this field and the boot_disk_mib field in task spec's
353
- # compute_resource are defined, Batch will only honor this field.
356
+ # If both this field and the `boot_disk_mib` field in task spec's
357
+ # `compute_resource` are defined, Batch will only honor this field.
358
+ # Also, this field should be no smaller than the source disk's
359
+ # size when the `data_source` is set as `snapshot` or `image`.
360
+ # For example, if you set an image as the `data_source` field and the
361
+ # image's default disk size 30 GB, you can only use this field to make the
362
+ # disk larger or equal to 30 GB.
354
363
  # @!attribute [rw] disk_interface
355
364
  # @return [::String]
356
365
  # Local SSDs are available through both "SCSI" and "NVMe" interfaces.
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.4
4
+ version: 0.11.0
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-04 00:00:00.000000000 Z
11
+ date: 2023-09-12 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