google-cloud-batch-v1 0.2.0 → 0.3.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/lib/google/cloud/batch/v1/batch_service/client.rb +1 -1
- data/lib/google/cloud/batch/v1/job_pb.rb +2 -0
- data/lib/google/cloud/batch/v1/task_pb.rb +3 -0
- data/lib/google/cloud/batch/v1/version.rb +1 -1
- data/proto_docs/google/cloud/batch/v1/job.rb +30 -9
- data/proto_docs/google/cloud/batch/v1/task.rb +10 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- 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: 31be6cd7cdf4a91cc83bdb77b259d1cc3fb0cc88702b43ea4fa80344a7944b09
|
4
|
+
data.tar.gz: 3ac5a9c76f057c9b679ea5ba12ee748f55aa8e13aac533902efdacd3b0ac64f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6688184a6d81da95d7e739b9ae7da628dbeea1e33a3a107eeb69b6edd6acaec735cbfb1160a92b8fef88959017497459a93027bd6f58fc431100084454e2d52
|
7
|
+
data.tar.gz: ab6700391f5e5bbd37ba011c13492fbf03235173e47756a66b5408aef23a482a8555c1a2769e98b972b988f265bd859a18f813ca915ab1e021269b4f4d3c172c
|
@@ -83,6 +83,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
83
|
add_message "google.cloud.batch.v1.AllocationPolicy.Disk" do
|
84
84
|
optional :type, :string, 1
|
85
85
|
optional :size_gb, :int64, 2
|
86
|
+
optional :disk_interface, :string, 6
|
86
87
|
oneof :data_source do
|
87
88
|
optional :image, :string, 4
|
88
89
|
optional :snapshot, :string, 5
|
@@ -98,6 +99,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
98
99
|
add_message "google.cloud.batch.v1.AllocationPolicy.Accelerator" do
|
99
100
|
optional :type, :string, 1
|
100
101
|
optional :count, :int64, 2
|
102
|
+
optional :install_gpu_drivers, :bool, 3
|
101
103
|
end
|
102
104
|
add_message "google.cloud.batch.v1.AllocationPolicy.InstancePolicy" do
|
103
105
|
optional :machine_type, :string, 2
|
@@ -40,6 +40,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
40
40
|
optional :ignore_exit_status, :bool, 3
|
41
41
|
optional :background, :bool, 4
|
42
42
|
optional :always_run, :bool, 5
|
43
|
+
optional :environment, :message, 7, "google.cloud.batch.v1.Environment"
|
44
|
+
optional :timeout, :message, 8, "google.protobuf.Duration"
|
43
45
|
oneof :executable do
|
44
46
|
optional :container, :message, 1, "google.cloud.batch.v1.Runnable.Container"
|
45
47
|
optional :script, :message, 2, "google.cloud.batch.v1.Runnable.Script"
|
@@ -73,6 +75,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
73
75
|
repeated :lifecycle_policies, :message, 9, "google.cloud.batch.v1.LifecyclePolicy"
|
74
76
|
map :environments, :string, :string, 6
|
75
77
|
repeated :volumes, :message, 7, "google.cloud.batch.v1.Volume"
|
78
|
+
optional :environment, :message, 10, "google.cloud.batch.v1.Environment"
|
76
79
|
end
|
77
80
|
add_message "google.cloud.batch.v1.LifecyclePolicy" do
|
78
81
|
optional :action, :enum, 1, "google.cloud.batch.v1.LifecyclePolicy.Action"
|
@@ -274,18 +274,27 @@ module Google
|
|
274
274
|
|
275
275
|
# @!attribute [rw] allowed_locations
|
276
276
|
# @return [::Array<::String>]
|
277
|
-
# A list of allowed location names represented by internal URLs
|
278
|
-
#
|
279
|
-
#
|
280
|
-
#
|
281
|
-
# ["regions/us-central1"
|
282
|
-
# us-central1-a
|
277
|
+
# A list of allowed location names represented by internal URLs.
|
278
|
+
# Each location can be a region or a zone.
|
279
|
+
# Only one region or multiple zones in one region is supported now.
|
280
|
+
# For example,
|
281
|
+
# ["regions/us-central1"] allow VMs in any zones in region us-central1.
|
282
|
+
# ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
|
283
|
+
# in zones us-central1-a and us-central1-c.
|
284
|
+
# All locations end up in different regions would cause errors.
|
285
|
+
# For example,
|
286
|
+
# ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
|
287
|
+
# "zones/us-west1-a"] contains 2 regions "us-central1" and
|
288
|
+
# "us-west1". An error is expected in this case.
|
283
289
|
class LocationPolicy
|
284
290
|
include ::Google::Protobuf::MessageExts
|
285
291
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
286
292
|
end
|
287
293
|
|
288
|
-
# A new persistent disk.
|
294
|
+
# A new persistent disk or a local ssd.
|
295
|
+
# A VM can only have one local SSD setting but multiple local SSD partitions.
|
296
|
+
# https://cloud.google.com/compute/docs/disks#pdspecs.
|
297
|
+
# https://cloud.google.com/compute/docs/disks#localssds.
|
289
298
|
# @!attribute [rw] image
|
290
299
|
# @return [::String]
|
291
300
|
# Name of a public or custom image used as the data source.
|
@@ -295,17 +304,25 @@ module Google
|
|
295
304
|
# @!attribute [rw] type
|
296
305
|
# @return [::String]
|
297
306
|
# Disk type as shown in `gcloud compute disk-types list`
|
298
|
-
# For example, "pd-ssd", "pd-standard", "pd-balanced".
|
307
|
+
# For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd".
|
299
308
|
# @!attribute [rw] size_gb
|
300
309
|
# @return [::Integer]
|
301
310
|
# Disk size in GB.
|
302
311
|
# This field is ignored if `data_source` is `disk` or `image`.
|
312
|
+
# If `type` is `local-ssd`, size_gb should be a multiple of 375GB,
|
313
|
+
# otherwise, the final size will be the next greater multiple of 375 GB.
|
314
|
+
# @!attribute [rw] disk_interface
|
315
|
+
# @return [::String]
|
316
|
+
# Local SSDs are available through both "SCSI" and "NVMe" interfaces.
|
317
|
+
# If not indicated, "NVMe" will be the default one for local ssds.
|
318
|
+
# We only support "SCSI" for persistent disks now.
|
303
319
|
class Disk
|
304
320
|
include ::Google::Protobuf::MessageExts
|
305
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
306
322
|
end
|
307
323
|
|
308
|
-
# A new or an existing persistent disk attached to a VM
|
324
|
+
# A new or an existing persistent disk or a local ssd attached to a VM
|
325
|
+
# instance.
|
309
326
|
# @!attribute [rw] new_disk
|
310
327
|
# @return [::Google::Cloud::Batch::V1::AllocationPolicy::Disk]
|
311
328
|
# @!attribute [rw] existing_disk
|
@@ -328,6 +345,10 @@ module Google
|
|
328
345
|
# @!attribute [rw] count
|
329
346
|
# @return [::Integer]
|
330
347
|
# The number of accelerators of this type.
|
348
|
+
# @!attribute [rw] install_gpu_drivers
|
349
|
+
# @return [::Boolean]
|
350
|
+
# When true, Batch will install the GPU drivers.
|
351
|
+
# This field will be ignored if specified.
|
331
352
|
class Accelerator
|
332
353
|
include ::Google::Protobuf::MessageExts
|
333
354
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -128,6 +128,13 @@ module Google
|
|
128
128
|
# The always_run flag does not override the Task's overall max_run_duration.
|
129
129
|
# If the max_run_duration has expired then no further Runnables will execute,
|
130
130
|
# not even always_run Runnables.
|
131
|
+
# @!attribute [rw] environment
|
132
|
+
# @return [::Google::Cloud::Batch::V1::Environment]
|
133
|
+
# Environment variables for this Runnable (overrides variables set for the
|
134
|
+
# whole Task or TaskGroup).
|
135
|
+
# @!attribute [rw] timeout
|
136
|
+
# @return [::Google::Protobuf::Duration]
|
137
|
+
# Timeout for this Runnable.
|
131
138
|
class Runnable
|
132
139
|
include ::Google::Protobuf::MessageExts
|
133
140
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -239,6 +246,9 @@ module Google
|
|
239
246
|
# @!attribute [rw] volumes
|
240
247
|
# @return [::Array<::Google::Cloud::Batch::V1::Volume>]
|
241
248
|
# Volumes to mount before running Tasks using this TaskSpec.
|
249
|
+
# @!attribute [rw] environment
|
250
|
+
# @return [::Google::Cloud::Batch::V1::Environment]
|
251
|
+
# Environment variables to set before running the Task.
|
242
252
|
class TaskSpec
|
243
253
|
include ::Google::Protobuf::MessageExts
|
244
254
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-batch-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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: 2022-
|
11
|
+
date: 2022-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|