google-cloud-batch-v1 0.2.0 → 0.3.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: b9435d1b989945350e51ca0187ac38fe17cef6ede94936555336c6b65a649ece
4
- data.tar.gz: 3520b9536ba05496eb89007a72488db4977e71ee29b6ad76e601f7e7affc2aaa
3
+ metadata.gz: 31be6cd7cdf4a91cc83bdb77b259d1cc3fb0cc88702b43ea4fa80344a7944b09
4
+ data.tar.gz: 3ac5a9c76f057c9b679ea5ba12ee748f55aa8e13aac533902efdacd3b0ac64f9
5
5
  SHA512:
6
- metadata.gz: 65ed22e7722f1532db38ca940753e74a512bd447953cb6df7dc171870609b34a7977a1ed89a8a82ca44a1cfe7c3242d55ea96169dbe01f14ed0fb875f36406bf
7
- data.tar.gz: ff111605b0963aad57b7de16c1c0aff6ed13fb75a4d815d2bbc888cee95bdefe081e37366e95cba7ae6b2d41af59f1c5da415f2ef26c6eea7b11b61d83aaabde
6
+ metadata.gz: b6688184a6d81da95d7e739b9ae7da628dbeea1e33a3a107eeb69b6edd6acaec735cbfb1160a92b8fef88959017497459a93027bd6f58fc431100084454e2d52
7
+ data.tar.gz: ab6700391f5e5bbd37ba011c13492fbf03235173e47756a66b5408aef23a482a8555c1a2769e98b972b988f265bd859a18f813ca915ab1e021269b4f4d3c172c
@@ -19,7 +19,7 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/batch/v1/batch_pb"
21
21
  require "google/cloud/location"
22
- require "google/iam/v1/iam_policy"
22
+ require "google/iam/v1"
23
23
 
24
24
  module Google
25
25
  module Cloud
@@ -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"
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Batch
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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
- # First location in the list must be a region.
279
- # for example,
280
- # ["regions/us-central1"] allow VMs in region us-central1,
281
- # ["regions/us-central1", "zones/us-central1-a"] only allow VMs in zone
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 instance.
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.2.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-07-01 00:00:00.000000000 Z
11
+ date: 2022-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common