google-cloud-batch-v1 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/batch/v1/batch_service/client.rb +1 -1
- data/lib/google/cloud/batch/v1/job_pb.rb +8 -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 +53 -10
- data/proto_docs/google/cloud/batch/v1/task.rb +10 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e00ed436ab413de42e06be48f3b98f09e528d334405e07e98640763e7f9c9b64
|
4
|
+
data.tar.gz: e0f5dcf49997d1bc6217ff16e4f8d0e2a13885d7fd6155dd978c5830eb4eb6e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1a12ef4c49bcba102e424cc5c0f0e8c1a103098eef6a89035a6325acbfe666260b3f90c86de20a02e047eb5febff2b1e784487043d973a8fb9cddddda90a90d
|
7
|
+
data.tar.gz: 5b8ed112e57f2c320f292825e04539237897e31e92a91352ad3c9bdb46bb5b96ffbbf6bc06fc31883da0b679d4bd5aa3d851e905ac2ed98837eeee736f05db65
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
@@ -74,6 +74,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
74
74
|
add_message "google.cloud.batch.v1.AllocationPolicy" do
|
75
75
|
optional :location, :message, 1, "google.cloud.batch.v1.AllocationPolicy.LocationPolicy"
|
76
76
|
repeated :instances, :message, 8, "google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate"
|
77
|
+
optional :service_account, :message, 9, "google.cloud.batch.v1.ServiceAccount"
|
77
78
|
map :labels, :string, :string, 6
|
78
79
|
optional :network, :message, 7, "google.cloud.batch.v1.AllocationPolicy.NetworkPolicy"
|
79
80
|
end
|
@@ -83,6 +84,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
84
|
add_message "google.cloud.batch.v1.AllocationPolicy.Disk" do
|
84
85
|
optional :type, :string, 1
|
85
86
|
optional :size_gb, :int64, 2
|
87
|
+
optional :disk_interface, :string, 6
|
86
88
|
oneof :data_source do
|
87
89
|
optional :image, :string, 4
|
88
90
|
optional :snapshot, :string, 5
|
@@ -98,6 +100,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
98
100
|
add_message "google.cloud.batch.v1.AllocationPolicy.Accelerator" do
|
99
101
|
optional :type, :string, 1
|
100
102
|
optional :count, :int64, 2
|
103
|
+
optional :install_gpu_drivers, :bool, 3
|
101
104
|
end
|
102
105
|
add_message "google.cloud.batch.v1.AllocationPolicy.InstancePolicy" do
|
103
106
|
optional :machine_type, :string, 2
|
@@ -107,6 +110,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
107
110
|
repeated :disks, :message, 6, "google.cloud.batch.v1.AllocationPolicy.AttachedDisk"
|
108
111
|
end
|
109
112
|
add_message "google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate" do
|
113
|
+
optional :install_gpu_drivers, :bool, 3
|
110
114
|
oneof :policy_template do
|
111
115
|
optional :policy, :message, 1, "google.cloud.batch.v1.AllocationPolicy.InstancePolicy"
|
112
116
|
optional :instance_template, :string, 2
|
@@ -136,6 +140,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
136
140
|
optional :require_hosts_file, :bool, 11
|
137
141
|
optional :permissive_ssh, :bool, 12
|
138
142
|
end
|
143
|
+
add_message "google.cloud.batch.v1.ServiceAccount" do
|
144
|
+
optional :email, :string, 1
|
145
|
+
end
|
139
146
|
end
|
140
147
|
end
|
141
148
|
|
@@ -164,6 +171,7 @@ module Google
|
|
164
171
|
AllocationPolicy::NetworkPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.AllocationPolicy.NetworkPolicy").msgclass
|
165
172
|
AllocationPolicy::ProvisioningModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.AllocationPolicy.ProvisioningModel").enummodule
|
166
173
|
TaskGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.TaskGroup").msgclass
|
174
|
+
ServiceAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.ServiceAccount").msgclass
|
167
175
|
end
|
168
176
|
end
|
169
177
|
end
|
@@ -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"
|
@@ -256,6 +256,9 @@ module Google
|
|
256
256
|
# @return [::Array<::Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicyOrTemplate>]
|
257
257
|
# Describe instances that can be created by this AllocationPolicy.
|
258
258
|
# Only instances[0] is supported now.
|
259
|
+
# @!attribute [rw] service_account
|
260
|
+
# @return [::Google::Cloud::Batch::V1::ServiceAccount]
|
261
|
+
# Service account that VMs will run as.
|
259
262
|
# @!attribute [rw] labels
|
260
263
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
261
264
|
# Labels applied to all VM instances and other resources
|
@@ -274,18 +277,27 @@ module Google
|
|
274
277
|
|
275
278
|
# @!attribute [rw] allowed_locations
|
276
279
|
# @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
|
280
|
+
# A list of allowed location names represented by internal URLs.
|
281
|
+
# Each location can be a region or a zone.
|
282
|
+
# Only one region or multiple zones in one region is supported now.
|
283
|
+
# For example,
|
284
|
+
# ["regions/us-central1"] allow VMs in any zones in region us-central1.
|
285
|
+
# ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
|
286
|
+
# in zones us-central1-a and us-central1-c.
|
287
|
+
# All locations end up in different regions would cause errors.
|
288
|
+
# For example,
|
289
|
+
# ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
|
290
|
+
# "zones/us-west1-a"] contains 2 regions "us-central1" and
|
291
|
+
# "us-west1". An error is expected in this case.
|
283
292
|
class LocationPolicy
|
284
293
|
include ::Google::Protobuf::MessageExts
|
285
294
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
286
295
|
end
|
287
296
|
|
288
|
-
# A new persistent disk.
|
297
|
+
# A new persistent disk or a local ssd.
|
298
|
+
# A VM can only have one local SSD setting but multiple local SSD partitions.
|
299
|
+
# https://cloud.google.com/compute/docs/disks#pdspecs.
|
300
|
+
# https://cloud.google.com/compute/docs/disks#localssds.
|
289
301
|
# @!attribute [rw] image
|
290
302
|
# @return [::String]
|
291
303
|
# Name of a public or custom image used as the data source.
|
@@ -295,17 +307,25 @@ module Google
|
|
295
307
|
# @!attribute [rw] type
|
296
308
|
# @return [::String]
|
297
309
|
# Disk type as shown in `gcloud compute disk-types list`
|
298
|
-
# For example, "pd-ssd", "pd-standard", "pd-balanced".
|
310
|
+
# For example, "pd-ssd", "pd-standard", "pd-balanced", "local-ssd".
|
299
311
|
# @!attribute [rw] size_gb
|
300
312
|
# @return [::Integer]
|
301
313
|
# Disk size in GB.
|
302
314
|
# This field is ignored if `data_source` is `disk` or `image`.
|
315
|
+
# If `type` is `local-ssd`, size_gb should be a multiple of 375GB,
|
316
|
+
# otherwise, the final size will be the next greater multiple of 375 GB.
|
317
|
+
# @!attribute [rw] disk_interface
|
318
|
+
# @return [::String]
|
319
|
+
# Local SSDs are available through both "SCSI" and "NVMe" interfaces.
|
320
|
+
# If not indicated, "NVMe" will be the default one for local ssds.
|
321
|
+
# We only support "SCSI" for persistent disks now.
|
303
322
|
class Disk
|
304
323
|
include ::Google::Protobuf::MessageExts
|
305
324
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
306
325
|
end
|
307
326
|
|
308
|
-
# A new or an existing persistent disk attached to a VM
|
327
|
+
# A new or an existing persistent disk or a local ssd attached to a VM
|
328
|
+
# instance.
|
309
329
|
# @!attribute [rw] new_disk
|
310
330
|
# @return [::Google::Cloud::Batch::V1::AllocationPolicy::Disk]
|
311
331
|
# @!attribute [rw] existing_disk
|
@@ -314,7 +334,9 @@ module Google
|
|
314
334
|
# @!attribute [rw] device_name
|
315
335
|
# @return [::String]
|
316
336
|
# Device name that the guest operating system will see.
|
317
|
-
#
|
337
|
+
# It is used by Runnable.volumes field to mount disks. So please specify
|
338
|
+
# the device_name if you want Batch to help mount the disk, and it should
|
339
|
+
# match the device_name field in volumes.
|
318
340
|
class AttachedDisk
|
319
341
|
include ::Google::Protobuf::MessageExts
|
320
342
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -328,6 +350,9 @@ module Google
|
|
328
350
|
# @!attribute [rw] count
|
329
351
|
# @return [::Integer]
|
330
352
|
# The number of accelerators of this type.
|
353
|
+
# @!attribute [rw] install_gpu_drivers
|
354
|
+
# @return [::Boolean]
|
355
|
+
# Deprecated: please use instances[0].install_gpu_drivers instead.
|
331
356
|
class Accelerator
|
332
357
|
include ::Google::Protobuf::MessageExts
|
333
358
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -369,6 +394,12 @@ module Google
|
|
369
394
|
# Name of an instance template used to create VMs.
|
370
395
|
# Named the field as 'instance_template' instead of 'template' to avoid
|
371
396
|
# c++ keyword conflict.
|
397
|
+
# @!attribute [rw] install_gpu_drivers
|
398
|
+
# @return [::Boolean]
|
399
|
+
# Set this field true if users want Batch to help fetch drivers from a
|
400
|
+
# third party location and install them for GPUs specified in
|
401
|
+
# policy.accelerators or instance_template on their behalf. Default is
|
402
|
+
# false.
|
372
403
|
class InstancePolicyOrTemplate
|
373
404
|
include ::Google::Protobuf::MessageExts
|
374
405
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -484,6 +515,18 @@ module Google
|
|
484
515
|
include ::Google::Protobuf::MessageExts
|
485
516
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
486
517
|
end
|
518
|
+
|
519
|
+
# Carries information about a Google Cloud service account.
|
520
|
+
# @!attribute [rw] email
|
521
|
+
# @return [::String]
|
522
|
+
# Email address of the service account. If not specified, the default
|
523
|
+
# Compute Engine service account for the project will be used. If instance
|
524
|
+
# template is being used, the service account has to be specified in the
|
525
|
+
# instance template and it has to match the email field here.
|
526
|
+
class ServiceAccount
|
527
|
+
include ::Google::Protobuf::MessageExts
|
528
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
529
|
+
end
|
487
530
|
end
|
488
531
|
end
|
489
532
|
end
|
@@ -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.4.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-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.12'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.12'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|