google-cloud-batch-v1 0.17.2 → 0.17.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/batch/v1/batch_service/client.rb +15 -6
- data/lib/google/cloud/batch/v1/batch_service/operations.rb +13 -5
- data/lib/google/cloud/batch/v1/batch_service/rest/client.rb +15 -6
- data/lib/google/cloud/batch/v1/batch_service/rest/operations.rb +11 -4
- data/lib/google/cloud/batch/v1/version.rb +1 -1
- data/lib/google/iam/v1/iam_policy/client.rb +9 -3
- data/lib/google/iam/v1/iam_policy/rest/client.rb +9 -3
- data/proto_docs/google/cloud/batch/v1/job.rb +6 -6
- data/proto_docs/google/cloud/batch/v1/task.rb +20 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d2db517bc52d1a7b41b57b1e3f803de782833b41d101b9dbaf7c01212041c60
|
4
|
+
data.tar.gz: e6e3bdda5f05de533c32f56e2936e709b90507c0ac0446cafc7ef8b60a54f6cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc3e26995f51b715e286cd19c6fd35d1a346874c0084506c6a2947f44b5fada9668e8c371d1485b1dfdcffd7db823d5c55de019b499a665edd18ee335811178a
|
7
|
+
data.tar.gz: 04726a7a6f4db3250a1355139bca0e303e14707e6fb4b44e7befddc61ebd8c55288c28961d3e9319b948d38ec4e354a4d631fcb479bc86084ebb8903b4268cf0
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Engine VM instances to run the jobs.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "batch.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -297,10 +300,11 @@ module Google
|
|
297
300
|
# Customize the options with defaults
|
298
301
|
metadata = @config.rpcs.create_job.metadata.to_h
|
299
302
|
|
300
|
-
# Set x-goog-api-client
|
303
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
301
304
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
302
305
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
303
306
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
307
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
304
308
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
305
309
|
|
306
310
|
header_params = {}
|
@@ -382,10 +386,11 @@ module Google
|
|
382
386
|
# Customize the options with defaults
|
383
387
|
metadata = @config.rpcs.get_job.metadata.to_h
|
384
388
|
|
385
|
-
# Set x-goog-api-client
|
389
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
386
390
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
387
391
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
388
392
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
393
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
389
394
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
390
395
|
|
391
396
|
header_params = {}
|
@@ -490,10 +495,11 @@ module Google
|
|
490
495
|
# Customize the options with defaults
|
491
496
|
metadata = @config.rpcs.delete_job.metadata.to_h
|
492
497
|
|
493
|
-
# Set x-goog-api-client
|
498
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
494
499
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
495
500
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
496
501
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
502
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
497
503
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
498
504
|
|
499
505
|
header_params = {}
|
@@ -589,10 +595,11 @@ module Google
|
|
589
595
|
# Customize the options with defaults
|
590
596
|
metadata = @config.rpcs.list_jobs.metadata.to_h
|
591
597
|
|
592
|
-
# Set x-goog-api-client
|
598
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
593
599
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
594
600
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
595
601
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
602
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
596
603
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
597
604
|
|
598
605
|
header_params = {}
|
@@ -675,10 +682,11 @@ module Google
|
|
675
682
|
# Customize the options with defaults
|
676
683
|
metadata = @config.rpcs.get_task.metadata.to_h
|
677
684
|
|
678
|
-
# Set x-goog-api-client
|
685
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
679
686
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
680
687
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
681
688
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
689
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
682
690
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
683
691
|
|
684
692
|
header_params = {}
|
@@ -774,10 +782,11 @@ module Google
|
|
774
782
|
# Customize the options with defaults
|
775
783
|
metadata = @config.rpcs.list_tasks.metadata.to_h
|
776
784
|
|
777
|
-
# Set x-goog-api-client
|
785
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
778
786
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
779
787
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
780
788
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
789
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
781
790
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
782
791
|
|
783
792
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module BatchService
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "batch.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -191,10 +194,11 @@ module Google
|
|
191
194
|
# Customize the options with defaults
|
192
195
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
196
|
|
194
|
-
# Set x-goog-api-client
|
197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
198
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
200
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
297
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
387
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
482
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -35,6 +35,9 @@ module Google
|
|
35
35
|
# Engine VM instances to run the jobs.
|
36
36
|
#
|
37
37
|
class Client
|
38
|
+
# @private
|
39
|
+
API_VERSION = ""
|
40
|
+
|
38
41
|
# @private
|
39
42
|
DEFAULT_ENDPOINT_TEMPLATE = "batch.$UNIVERSE_DOMAIN$"
|
40
43
|
|
@@ -290,12 +293,13 @@ module Google
|
|
290
293
|
# Customize the options with defaults
|
291
294
|
call_metadata = @config.rpcs.create_job.metadata.to_h
|
292
295
|
|
293
|
-
# Set x-goog-api-client
|
296
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
294
297
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
295
298
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
296
299
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
297
300
|
transports_version_send: [:rest]
|
298
301
|
|
302
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
299
303
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
300
304
|
|
301
305
|
options.apply_defaults timeout: @config.rpcs.create_job.timeout,
|
@@ -368,12 +372,13 @@ module Google
|
|
368
372
|
# Customize the options with defaults
|
369
373
|
call_metadata = @config.rpcs.get_job.metadata.to_h
|
370
374
|
|
371
|
-
# Set x-goog-api-client
|
375
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
372
376
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
373
377
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
374
378
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
375
379
|
transports_version_send: [:rest]
|
376
380
|
|
381
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
377
382
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
378
383
|
|
379
384
|
options.apply_defaults timeout: @config.rpcs.get_job.timeout,
|
@@ -469,12 +474,13 @@ module Google
|
|
469
474
|
# Customize the options with defaults
|
470
475
|
call_metadata = @config.rpcs.delete_job.metadata.to_h
|
471
476
|
|
472
|
-
# Set x-goog-api-client
|
477
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
473
478
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
474
479
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
475
480
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
476
481
|
transports_version_send: [:rest]
|
477
482
|
|
483
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
478
484
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
479
485
|
|
480
486
|
options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
|
@@ -561,12 +567,13 @@ module Google
|
|
561
567
|
# Customize the options with defaults
|
562
568
|
call_metadata = @config.rpcs.list_jobs.metadata.to_h
|
563
569
|
|
564
|
-
# Set x-goog-api-client
|
570
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
565
571
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
566
572
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
567
573
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
568
574
|
transports_version_send: [:rest]
|
569
575
|
|
576
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
570
577
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
571
578
|
|
572
579
|
options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
|
@@ -639,12 +646,13 @@ module Google
|
|
639
646
|
# Customize the options with defaults
|
640
647
|
call_metadata = @config.rpcs.get_task.metadata.to_h
|
641
648
|
|
642
|
-
# Set x-goog-api-client
|
649
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
643
650
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
644
651
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
645
652
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
646
653
|
transports_version_send: [:rest]
|
647
654
|
|
655
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
648
656
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
649
657
|
|
650
658
|
options.apply_defaults timeout: @config.rpcs.get_task.timeout,
|
@@ -731,12 +739,13 @@ module Google
|
|
731
739
|
# Customize the options with defaults
|
732
740
|
call_metadata = @config.rpcs.list_tasks.metadata.to_h
|
733
741
|
|
734
|
-
# Set x-goog-api-client
|
742
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
735
743
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
736
744
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
737
745
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
738
746
|
transports_version_send: [:rest]
|
739
747
|
|
748
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
740
749
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
741
750
|
|
742
751
|
options.apply_defaults timeout: @config.rpcs.list_tasks.timeout,
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "batch.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -55,6 +55,9 @@ module Google
|
|
55
55
|
# attached.
|
56
56
|
#
|
57
57
|
class Client
|
58
|
+
# @private
|
59
|
+
API_VERSION = ""
|
60
|
+
|
58
61
|
# @private
|
59
62
|
DEFAULT_ENDPOINT_TEMPLATE = "iam-meta-api.$UNIVERSE_DOMAIN$"
|
60
63
|
|
@@ -267,10 +270,11 @@ module Google
|
|
267
270
|
# Customize the options with defaults
|
268
271
|
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
269
272
|
|
270
|
-
# Set x-goog-api-client
|
273
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
271
274
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
272
275
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
273
276
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
277
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
274
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
275
279
|
|
276
280
|
header_params = {}
|
@@ -358,10 +362,11 @@ module Google
|
|
358
362
|
# Customize the options with defaults
|
359
363
|
metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
360
364
|
|
361
|
-
# Set x-goog-api-client
|
365
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
362
366
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
363
367
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
364
368
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
369
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
365
370
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
366
371
|
|
367
372
|
header_params = {}
|
@@ -455,10 +460,11 @@ module Google
|
|
455
460
|
# Customize the options with defaults
|
456
461
|
metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
457
462
|
|
458
|
-
# Set x-goog-api-client
|
463
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
459
464
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
460
465
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
461
466
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION
|
467
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
462
468
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
463
469
|
|
464
470
|
header_params = {}
|
@@ -57,6 +57,9 @@ module Google
|
|
57
57
|
# attached.
|
58
58
|
#
|
59
59
|
class Client
|
60
|
+
# @private
|
61
|
+
API_VERSION = ""
|
62
|
+
|
60
63
|
# @private
|
61
64
|
DEFAULT_ENDPOINT_TEMPLATE = "iam-meta-api.$UNIVERSE_DOMAIN$"
|
62
65
|
|
@@ -260,12 +263,13 @@ module Google
|
|
260
263
|
# Customize the options with defaults
|
261
264
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
262
265
|
|
263
|
-
# Set x-goog-api-client
|
266
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
264
267
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
265
268
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
266
269
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
267
270
|
transports_version_send: [:rest]
|
268
271
|
|
272
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
269
273
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
270
274
|
|
271
275
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
@@ -344,12 +348,13 @@ module Google
|
|
344
348
|
# Customize the options with defaults
|
345
349
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
346
350
|
|
347
|
-
# Set x-goog-api-client
|
351
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
348
352
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
349
353
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
350
354
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
351
355
|
transports_version_send: [:rest]
|
352
356
|
|
357
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
353
358
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
354
359
|
|
355
360
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
@@ -434,12 +439,13 @@ module Google
|
|
434
439
|
# Customize the options with defaults
|
435
440
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
436
441
|
|
437
|
-
# Set x-goog-api-client
|
442
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
438
443
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
439
444
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
440
445
|
gapic_version: ::Google::Cloud::Batch::V1::VERSION,
|
441
446
|
transports_version_send: [:rest]
|
442
447
|
|
448
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
443
449
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
444
450
|
|
445
451
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
@@ -340,11 +340,11 @@ module Google
|
|
340
340
|
# ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
|
341
341
|
# in zones us-central1-a and us-central1-c.
|
342
342
|
#
|
343
|
-
#
|
343
|
+
# Mixing locations from different regions would cause errors.
|
344
344
|
# For example,
|
345
345
|
# ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
|
346
|
-
# "zones/us-west1-a"] contains
|
347
|
-
#
|
346
|
+
# "zones/us-west1-a"] contains locations from two distinct regions:
|
347
|
+
# us-central1 and us-west1. This combination will trigger an error.
|
348
348
|
class LocationPolicy
|
349
349
|
include ::Google::Protobuf::MessageExts
|
350
350
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -510,9 +510,9 @@ module Google
|
|
510
510
|
# c++ keyword conflict.
|
511
511
|
# @!attribute [rw] install_gpu_drivers
|
512
512
|
# @return [::Boolean]
|
513
|
-
# Set this field true if
|
514
|
-
#
|
515
|
-
# policy.accelerators or instance_template on
|
513
|
+
# Set this field true if you want Batch to help fetch drivers from a third
|
514
|
+
# party location and install them for GPUs specified in
|
515
|
+
# `policy.accelerators` or `instance_template` on your behalf. Default is
|
516
516
|
# false.
|
517
517
|
#
|
518
518
|
# For Container-Optimized Image cases, Batch will install the
|
@@ -99,8 +99,17 @@ module Google
|
|
99
99
|
# task execution procedures, based on StatusEvent types.
|
100
100
|
# @!attribute [rw] exit_code
|
101
101
|
# @return [::Integer]
|
102
|
-
#
|
103
|
-
#
|
102
|
+
# The exit code of a finished task.
|
103
|
+
#
|
104
|
+
# If the task succeeded, the exit code will be 0. If the task failed but not
|
105
|
+
# due to the following reasons, the exit code will be 50000.
|
106
|
+
#
|
107
|
+
# Otherwise, it can be from different sources:
|
108
|
+
# * Batch known failures:
|
109
|
+
# https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes.
|
110
|
+
# * Batch runnable execution failures; you can rely on Batch logs to further
|
111
|
+
# diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If
|
112
|
+
# there are multiple runnables failures, Batch only exposes the first error.
|
104
113
|
class TaskExecution
|
105
114
|
include ::Google::Protobuf::MessageExts
|
106
115
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -350,10 +359,15 @@ module Google
|
|
350
359
|
# ComputeResource requirements.
|
351
360
|
# @!attribute [rw] max_run_duration
|
352
361
|
# @return [::Google::Protobuf::Duration]
|
353
|
-
# Maximum duration the task should run
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
362
|
+
# Maximum duration the task should run before being automatically retried
|
363
|
+
# (if enabled) or automatically failed. Format the value of this field
|
364
|
+
# as a time limit in seconds followed by `s`—for example, `3600s`
|
365
|
+
# for 1 hour. The field accepts any value between 0 and the maximum listed
|
366
|
+
# for the `Duration` field type at
|
367
|
+
# https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
|
368
|
+
# the actual maximum run time for a job will be limited to the maximum run
|
369
|
+
# time for a job listed at
|
370
|
+
# https://cloud.google.com/batch/quotas#max-job-duration.
|
357
371
|
# @!attribute [rw] max_retry_count
|
358
372
|
# @return [::Integer]
|
359
373
|
# Maximum number of retries on failures.
|
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.17.
|
4
|
+
version: 0.17.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|