google-cloud-batch-v1 0.17.1 → 0.17.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- 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/api/client.rb +4 -0
- data/proto_docs/google/api/field_info.rb +3 -3
- data/proto_docs/google/cloud/batch/v1/job.rb +16 -10
- data/proto_docs/google/cloud/batch/v1/task.rb +14 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16d99fd78893f4ee0373992e58b212ca2935d31c0930da934b3a9f9120ab2ce2
|
4
|
+
data.tar.gz: c11079e1043fee8855270bdbba9e436dcf294b5f9c50abda50b7e2f533c81b26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee1780304d5f083be9f76914998fda4e2bcd9acb133c1440aeaba6a29835794e1e54bd5488162e73aabb157687c361f690cedf9e428db9691832ad9510c9e2d5
|
7
|
+
data.tar.gz: 9f6c4bff7dc547f80d42eb32604e3f016cc538bfd0cf5b2f1fcbb4b896ecd90874adfa7c34f54179dfd8fb061e005c6d59d0b74d397437aab1841adede7f0b2e
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Batch V1 API
|
2
2
|
|
3
|
-
An API to manage the running of
|
3
|
+
An API to manage the running of Batch resources on Google Cloud Platform.
|
4
4
|
|
5
5
|
Google Cloud Batch is a fully managed service used by scientists, VFX artists, developers to easily and efficiently run batch workloads on Google Cloud. This service manages provisioning of resources to satisfy the requirements of the batch jobs for a variety of workloads including ML, HPC, VFX rendering, transcoding, genomics and others.
|
6
6
|
|
@@ -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,
|
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -50,9 +50,9 @@ module Google
|
|
50
50
|
|
51
51
|
# Internet Protocol v6 value as defined by [RFC
|
52
52
|
# 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be
|
53
|
-
# normalized to entirely lowercase letters
|
54
|
-
#
|
55
|
-
# `2001:
|
53
|
+
# normalized to entirely lowercase letters with zeros compressed, following
|
54
|
+
# [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example,
|
55
|
+
# the value `2001:0DB8:0::0` would be normalized to `2001:db8::`.
|
56
56
|
IPV6 = 3
|
57
57
|
|
58
58
|
# An IP address in either v4 or v6 format as described by the individual
|
@@ -288,7 +288,17 @@ module Google
|
|
288
288
|
# Only instances[0] is supported now.
|
289
289
|
# @!attribute [rw] service_account
|
290
290
|
# @return [::Google::Cloud::Batch::V1::ServiceAccount]
|
291
|
-
#
|
291
|
+
# Defines the service account for Batch-created VMs. If omitted, the [default
|
292
|
+
# Compute Engine service
|
293
|
+
# account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
|
294
|
+
# is used. Must match the service account specified in any used instance
|
295
|
+
# template configured in the Batch job.
|
296
|
+
#
|
297
|
+
# Includes the following fields:
|
298
|
+
# * email: The service account's email address. If not set, the default
|
299
|
+
# Compute Engine service account is used.
|
300
|
+
# * scopes: Additional OAuth scopes to grant the service account, beyond the
|
301
|
+
# default cloud-platform scope. (list of strings)
|
292
302
|
# @!attribute [rw] labels
|
293
303
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
294
304
|
# Labels applied to all VM instances and other resources
|
@@ -330,11 +340,11 @@ module Google
|
|
330
340
|
# ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
|
331
341
|
# in zones us-central1-a and us-central1-c.
|
332
342
|
#
|
333
|
-
#
|
343
|
+
# Mixing locations from different regions would cause errors.
|
334
344
|
# For example,
|
335
345
|
# ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
|
336
|
-
# "zones/us-west1-a"] contains
|
337
|
-
#
|
346
|
+
# "zones/us-west1-a"] contains locations from two distinct regions:
|
347
|
+
# us-central1 and us-west1. This combination will trigger an error.
|
338
348
|
class LocationPolicy
|
339
349
|
include ::Google::Protobuf::MessageExts
|
340
350
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -688,14 +698,10 @@ module Google
|
|
688
698
|
# Carries information about a Google Cloud service account.
|
689
699
|
# @!attribute [rw] email
|
690
700
|
# @return [::String]
|
691
|
-
# Email address of the service account.
|
692
|
-
# Compute Engine service account for the project will be used. If instance
|
693
|
-
# template is being used, the service account has to be specified in the
|
694
|
-
# instance template and it has to match the email field here.
|
701
|
+
# Email address of the service account.
|
695
702
|
# @!attribute [rw] scopes
|
696
703
|
# @return [::Array<::String>]
|
697
|
-
# List of scopes to be enabled for this service account
|
698
|
-
# addition to the cloud-platform API scope that will be added by default.
|
704
|
+
# List of scopes to be enabled for this service account.
|
699
705
|
class ServiceAccount
|
700
706
|
include ::Google::Protobuf::MessageExts
|
701
707
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -99,8 +99,18 @@ 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 as
|
109
|
+
# https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes.
|
110
|
+
# - Batch runnable execution failures: You can rely on Batch logs for further
|
111
|
+
# diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs.
|
112
|
+
# If there are multiple runnables failures, Batch only exposes the first
|
113
|
+
# error caught for now.
|
104
114
|
class TaskExecution
|
105
115
|
include ::Google::Protobuf::MessageExts
|
106
116
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -352,6 +362,8 @@ module Google
|
|
352
362
|
# @return [::Google::Protobuf::Duration]
|
353
363
|
# Maximum duration the task should run.
|
354
364
|
# The task will be killed and marked as FAILED if over this limit.
|
365
|
+
# The valid value range for max_run_duration in seconds is [0,
|
366
|
+
# 315576000000.999999999],
|
355
367
|
# @!attribute [rw] max_retry_count
|
356
368
|
# @return [::Integer]
|
357
369
|
# 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.3
|
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-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -165,5 +165,5 @@ requirements: []
|
|
165
165
|
rubygems_version: 3.5.6
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
|
-
summary: An API to manage the running of
|
168
|
+
summary: An API to manage the running of Batch resources on Google Cloud Platform.
|
169
169
|
test_files: []
|