google-cloud-batch-v1 0.20.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/batch/v1/batch_service/client.rb +7 -0
- data/lib/google/cloud/batch/v1/batch_service/operations.rb +7 -0
- data/lib/google/cloud/batch/v1/batch_service/rest/client.rb +15 -4
- data/lib/google/cloud/batch/v1/batch_service/rest/operations.rb +7 -0
- data/lib/google/cloud/batch/v1/version.rb +1 -1
- data/lib/google/iam/v1/iam_policy/client.rb +7 -0
- data/lib/google/iam/v1/iam_policy/rest/client.rb +7 -0
- data/proto_docs/google/api/client.rb +8 -0
- data/proto_docs/google/cloud/batch/v1/job.rb +11 -0
- data/proto_docs/google/cloud/batch/v1/task.rb +10 -0
- data/proto_docs/google/cloud/batch/v1/volume.rb +6 -0
- data/proto_docs/google/longrunning/operations.rb +4 -0
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b822f46d30d5a5620a763f7737d65810b4248c796be3fd2b42d83a6501d0f9c0
|
4
|
+
data.tar.gz: 315bd0c00e30b1be6954c39dffa334a8df8ec38010a1289cb2ab0b112aa79e9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b32d740def6b95fc2f8afeb8a1836340cd5b140f0ddf68bcb4d0061baa6174601be041cf80dee526cfcb779dba235667e96f0a1f3b8de07c662ae04430b52c8d
|
7
|
+
data.tar.gz: d05a7b3769ca92c9005f1e88ee2800717976a66e0a73a49e3f1b7dc519fce93e30c622c41f6557e6206e788a202924fb98792fb5328838e3f8290fc74e9602be
|
data/README.md
CHANGED
@@ -83,7 +83,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
83
83
|
|
84
84
|
## Supported Ruby Versions
|
85
85
|
|
86
|
-
This library is supported on Ruby
|
86
|
+
This library is supported on Ruby 3.0+.
|
87
87
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported
|
89
89
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -876,6 +876,13 @@ module Google
|
|
876
876
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
877
877
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
878
878
|
# * (`nil`) indicating no credentials
|
879
|
+
#
|
880
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
881
|
+
# external source for authentication to Google Cloud, you must validate it before
|
882
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
883
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
884
|
+
# For more information, refer to [Validate credential configurations from external
|
885
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
879
886
|
# @return [::Object]
|
880
887
|
# @!attribute [rw] scope
|
881
888
|
# The OAuth scopes
|
@@ -640,6 +640,13 @@ module Google
|
|
640
640
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
641
641
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
642
642
|
# * (`nil`) indicating no credentials
|
643
|
+
#
|
644
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
645
|
+
# external source for authentication to Google Cloud, you must validate it before
|
646
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
647
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
648
|
+
# For more information, refer to [Validate credential configurations from external
|
649
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
643
650
|
# @return [::Object]
|
644
651
|
# @!attribute [rw] scope
|
645
652
|
# The OAuth scopes
|
@@ -549,10 +549,10 @@ module Google
|
|
549
549
|
# @param page_token [::String]
|
550
550
|
# Page token.
|
551
551
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
552
|
-
# @yieldparam result [::Google::Cloud::Batch::V1::
|
552
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Batch::V1::Job>]
|
553
553
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
554
554
|
#
|
555
|
-
# @return [::Google::Cloud::Batch::V1::
|
555
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Batch::V1::Job>]
|
556
556
|
#
|
557
557
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
558
558
|
#
|
@@ -604,7 +604,9 @@ module Google
|
|
604
604
|
retry_policy: @config.retry_policy
|
605
605
|
|
606
606
|
@batch_service_stub.list_jobs request, options do |result, operation|
|
607
|
+
result = ::Gapic::Rest::PagedEnumerable.new @batch_service_stub, :list_jobs, "jobs", request, result, options
|
607
608
|
yield result, operation if block_given?
|
609
|
+
throw :response, result
|
608
610
|
end
|
609
611
|
rescue ::Gapic::Rest::Error => e
|
610
612
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -719,10 +721,10 @@ module Google
|
|
719
721
|
# @param page_token [::String]
|
720
722
|
# Page token.
|
721
723
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
722
|
-
# @yieldparam result [::Google::Cloud::Batch::V1::
|
724
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Batch::V1::Task>]
|
723
725
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
724
726
|
#
|
725
|
-
# @return [::Google::Cloud::Batch::V1::
|
727
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Batch::V1::Task>]
|
726
728
|
#
|
727
729
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
728
730
|
#
|
@@ -774,7 +776,9 @@ module Google
|
|
774
776
|
retry_policy: @config.retry_policy
|
775
777
|
|
776
778
|
@batch_service_stub.list_tasks request, options do |result, operation|
|
779
|
+
result = ::Gapic::Rest::PagedEnumerable.new @batch_service_stub, :list_tasks, "tasks", request, result, options
|
777
780
|
yield result, operation if block_given?
|
781
|
+
throw :response, result
|
778
782
|
end
|
779
783
|
rescue ::Gapic::Rest::Error => e
|
780
784
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -822,6 +826,13 @@ module Google
|
|
822
826
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
823
827
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
824
828
|
# * (`nil`) indicating no credentials
|
829
|
+
#
|
830
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
831
|
+
# external source for authentication to Google Cloud, you must validate it before
|
832
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
833
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
834
|
+
# For more information, refer to [Validate credential configurations from external
|
835
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
825
836
|
# @return [::Object]
|
826
837
|
# @!attribute [rw] scope
|
827
838
|
# The OAuth scopes
|
@@ -502,6 +502,13 @@ module Google
|
|
502
502
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
503
503
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
504
504
|
# * (`nil`) indicating no credentials
|
505
|
+
#
|
506
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
507
|
+
# external source for authentication to Google Cloud, you must validate it before
|
508
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
509
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
510
|
+
# For more information, refer to [Validate credential configurations from external
|
511
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
505
512
|
# @return [::Object]
|
506
513
|
# @!attribute [rw] scope
|
507
514
|
# The OAuth scopes
|
@@ -552,6 +552,13 @@ module Google
|
|
552
552
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
553
553
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
554
554
|
# * (`nil`) indicating no credentials
|
555
|
+
#
|
556
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
557
|
+
# external source for authentication to Google Cloud, you must validate it before
|
558
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
559
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
560
|
+
# For more information, refer to [Validate credential configurations from external
|
561
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
555
562
|
# @return [::Object]
|
556
563
|
# @!attribute [rw] scope
|
557
564
|
# The OAuth scopes
|
@@ -523,6 +523,13 @@ module Google
|
|
523
523
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
524
524
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
525
525
|
# * (`nil`) indicating no credentials
|
526
|
+
#
|
527
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
528
|
+
# external source for authentication to Google Cloud, you must validate it before
|
529
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
530
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
531
|
+
# For more information, refer to [Validate credential configurations from external
|
532
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
526
533
|
# @return [::Object]
|
527
534
|
# @!attribute [rw] scope
|
528
535
|
# The OAuth scopes
|
@@ -409,6 +409,14 @@ module Google
|
|
409
409
|
# @return [::Array<::String>]
|
410
410
|
# An allowlist of the fully qualified names of RPCs that should be included
|
411
411
|
# on public client surfaces.
|
412
|
+
# @!attribute [rw] generate_omitted_as_internal
|
413
|
+
# @return [::Boolean]
|
414
|
+
# Setting this to true indicates to the client generators that methods
|
415
|
+
# that would be excluded from the generation should instead be generated
|
416
|
+
# in a way that indicates these methods should not be consumed by
|
417
|
+
# end users. How this is expressed is up to individual language
|
418
|
+
# implementations to decide. Some examples may be: added annotations,
|
419
|
+
# obfuscated identifiers, or other language idiomatic patterns.
|
412
420
|
class SelectiveGapicGeneration
|
413
421
|
include ::Google::Protobuf::MessageExts
|
414
422
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -392,10 +392,14 @@ module Google
|
|
392
392
|
# * `batch-debian`: use Batch Debian images.
|
393
393
|
# * `batch-cos`: use Batch Container-Optimized images.
|
394
394
|
# * `batch-hpc-rocky`: use Batch HPC Rocky Linux images.
|
395
|
+
#
|
396
|
+
# Note: The following fields are mutually exclusive: `image`, `snapshot`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
395
397
|
# @!attribute [rw] snapshot
|
396
398
|
# @return [::String]
|
397
399
|
# Name of a snapshot used as the data source.
|
398
400
|
# Snapshot is not supported as boot disk now.
|
401
|
+
#
|
402
|
+
# Note: The following fields are mutually exclusive: `snapshot`, `image`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
399
403
|
# @!attribute [rw] type
|
400
404
|
# @return [::String]
|
401
405
|
# Disk type as shown in `gcloud compute disk-types list`.
|
@@ -441,9 +445,12 @@ module Google
|
|
441
445
|
# instance.
|
442
446
|
# @!attribute [rw] new_disk
|
443
447
|
# @return [::Google::Cloud::Batch::V1::AllocationPolicy::Disk]
|
448
|
+
# Note: The following fields are mutually exclusive: `new_disk`, `existing_disk`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
444
449
|
# @!attribute [rw] existing_disk
|
445
450
|
# @return [::String]
|
446
451
|
# Name of an existing PD.
|
452
|
+
#
|
453
|
+
# Note: The following fields are mutually exclusive: `existing_disk`, `new_disk`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
447
454
|
# @!attribute [rw] device_name
|
448
455
|
# @return [::String]
|
449
456
|
# Device name that the guest operating system will see.
|
@@ -527,6 +534,8 @@ module Google
|
|
527
534
|
# @!attribute [rw] policy
|
528
535
|
# @return [::Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicy]
|
529
536
|
# InstancePolicy.
|
537
|
+
#
|
538
|
+
# Note: The following fields are mutually exclusive: `policy`, `instance_template`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
530
539
|
# @!attribute [rw] instance_template
|
531
540
|
# @return [::String]
|
532
541
|
# Name of an instance template used to create VMs.
|
@@ -536,6 +545,8 @@ module Google
|
|
536
545
|
# Batch only supports global instance templates from the same project as
|
537
546
|
# the job.
|
538
547
|
# You can specify the global instance template as a full or partial URL.
|
548
|
+
#
|
549
|
+
# Note: The following fields are mutually exclusive: `instance_template`, `policy`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
539
550
|
# @!attribute [rw] install_gpu_drivers
|
540
551
|
# @return [::Boolean]
|
541
552
|
# Set this field true if you want Batch to help fetch drivers from a third
|
@@ -159,12 +159,18 @@ module Google
|
|
159
159
|
# @!attribute [rw] container
|
160
160
|
# @return [::Google::Cloud::Batch::V1::Runnable::Container]
|
161
161
|
# Container runnable.
|
162
|
+
#
|
163
|
+
# Note: The following fields are mutually exclusive: `container`, `script`, `barrier`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
162
164
|
# @!attribute [rw] script
|
163
165
|
# @return [::Google::Cloud::Batch::V1::Runnable::Script]
|
164
166
|
# Script runnable.
|
167
|
+
#
|
168
|
+
# Note: The following fields are mutually exclusive: `script`, `container`, `barrier`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
165
169
|
# @!attribute [rw] barrier
|
166
170
|
# @return [::Google::Cloud::Batch::V1::Runnable::Barrier]
|
167
171
|
# Barrier runnable.
|
172
|
+
#
|
173
|
+
# Note: The following fields are mutually exclusive: `barrier`, `container`, `script`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
168
174
|
# @!attribute [rw] display_name
|
169
175
|
# @return [::String]
|
170
176
|
# Optional. DisplayName is an optional field that can be provided by the
|
@@ -325,6 +331,8 @@ module Google
|
|
325
331
|
# include `#!/bin/bash` as the first line of the file. Alternatively,
|
326
332
|
# to execute the script using Python3, include `#!/usr/bin/env python3`
|
327
333
|
# as the first line of the file.
|
334
|
+
#
|
335
|
+
# Note: The following fields are mutually exclusive: `path`, `text`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
328
336
|
# @!attribute [rw] text
|
329
337
|
# @return [::String]
|
330
338
|
# The text for a script.
|
@@ -336,6 +344,8 @@ module Google
|
|
336
344
|
# include `#!/bin/bash\n` at the beginning of the text. Alternatively,
|
337
345
|
# to execute the script using Python3, include `#!/usr/bin/env python3\n`
|
338
346
|
# at the beginning of the text.
|
347
|
+
#
|
348
|
+
# Note: The following fields are mutually exclusive: `text`, `path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
339
349
|
class Script
|
340
350
|
include ::Google::Protobuf::MessageExts
|
341
351
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -26,9 +26,13 @@ module Google
|
|
26
26
|
# @return [::Google::Cloud::Batch::V1::NFS]
|
27
27
|
# A Network File System (NFS) volume. For example, a
|
28
28
|
# Filestore file share.
|
29
|
+
#
|
30
|
+
# Note: The following fields are mutually exclusive: `nfs`, `gcs`, `device_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
29
31
|
# @!attribute [rw] gcs
|
30
32
|
# @return [::Google::Cloud::Batch::V1::GCS]
|
31
33
|
# A Google Cloud Storage (GCS) volume.
|
34
|
+
#
|
35
|
+
# Note: The following fields are mutually exclusive: `gcs`, `nfs`, `device_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
32
36
|
# @!attribute [rw] device_name
|
33
37
|
# @return [::String]
|
34
38
|
# Device name of an attached disk volume, which should align with a
|
@@ -36,6 +40,8 @@ module Google
|
|
36
40
|
# job.allocation_policy.instances[0].policy.disks[i].device_name or
|
37
41
|
# defined by the given instance template in
|
38
42
|
# job.allocation_policy.instances[0].instance_template.
|
43
|
+
#
|
44
|
+
# Note: The following fields are mutually exclusive: `device_name`, `nfs`, `gcs`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
39
45
|
# @!attribute [rw] mount_path
|
40
46
|
# @return [::String]
|
41
47
|
# The mount path for the volume, e.g. /mnt/disks/share.
|
@@ -40,6 +40,8 @@ module Google
|
|
40
40
|
# @!attribute [rw] error
|
41
41
|
# @return [::Google::Rpc::Status]
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
|
+
#
|
44
|
+
# Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
43
45
|
# @!attribute [rw] response
|
44
46
|
# @return [::Google::Protobuf::Any]
|
45
47
|
# The normal, successful response of the operation. If the original
|
@@ -50,6 +52,8 @@ module Google
|
|
50
52
|
# is the original method name. For example, if the original method name
|
51
53
|
# is `TakeSnapshot()`, the inferred response type is
|
52
54
|
# `TakeSnapshotResponse`.
|
55
|
+
#
|
56
|
+
# Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
53
57
|
class Operation
|
54
58
|
include ::Google::Protobuf::MessageExts
|
55
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-batch-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-
|
10
|
+
date: 2025-02-07 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: gapic-common
|
@@ -16,7 +15,7 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.25.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.a
|
@@ -26,7 +25,7 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
28
|
+
version: 0.25.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: 2.a
|
@@ -147,7 +146,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
147
146
|
licenses:
|
148
147
|
- Apache-2.0
|
149
148
|
metadata: {}
|
150
|
-
post_install_message:
|
151
149
|
rdoc_options: []
|
152
150
|
require_paths:
|
153
151
|
- lib
|
@@ -155,15 +153,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
155
153
|
requirements:
|
156
154
|
- - ">="
|
157
155
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
156
|
+
version: '3.0'
|
159
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
158
|
requirements:
|
161
159
|
- - ">="
|
162
160
|
- !ruby/object:Gem::Version
|
163
161
|
version: '0'
|
164
162
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
166
|
-
signing_key:
|
163
|
+
rubygems_version: 3.6.3
|
167
164
|
specification_version: 4
|
168
165
|
summary: An API to manage the running of Batch resources on Google Cloud Platform.
|
169
166
|
test_files: []
|