google-cloud-batch-v1 0.3.0 → 0.4.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:
|
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
|
@@ -109,6 +110,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
109
110
|
repeated :disks, :message, 6, "google.cloud.batch.v1.AllocationPolicy.AttachedDisk"
|
110
111
|
end
|
111
112
|
add_message "google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate" do
|
113
|
+
optional :install_gpu_drivers, :bool, 3
|
112
114
|
oneof :policy_template do
|
113
115
|
optional :policy, :message, 1, "google.cloud.batch.v1.AllocationPolicy.InstancePolicy"
|
114
116
|
optional :instance_template, :string, 2
|
@@ -138,6 +140,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
138
140
|
optional :require_hosts_file, :bool, 11
|
139
141
|
optional :permissive_ssh, :bool, 12
|
140
142
|
end
|
143
|
+
add_message "google.cloud.batch.v1.ServiceAccount" do
|
144
|
+
optional :email, :string, 1
|
145
|
+
end
|
141
146
|
end
|
142
147
|
end
|
143
148
|
|
@@ -166,6 +171,7 @@ module Google
|
|
166
171
|
AllocationPolicy::NetworkPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.AllocationPolicy.NetworkPolicy").msgclass
|
167
172
|
AllocationPolicy::ProvisioningModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.AllocationPolicy.ProvisioningModel").enummodule
|
168
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
|
169
175
|
end
|
170
176
|
end
|
171
177
|
end
|
@@ -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
|
@@ -331,7 +334,9 @@ module Google
|
|
331
334
|
# @!attribute [rw] device_name
|
332
335
|
# @return [::String]
|
333
336
|
# Device name that the guest operating system will see.
|
334
|
-
#
|
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.
|
335
340
|
class AttachedDisk
|
336
341
|
include ::Google::Protobuf::MessageExts
|
337
342
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -347,8 +352,7 @@ module Google
|
|
347
352
|
# The number of accelerators of this type.
|
348
353
|
# @!attribute [rw] install_gpu_drivers
|
349
354
|
# @return [::Boolean]
|
350
|
-
#
|
351
|
-
# This field will be ignored if specified.
|
355
|
+
# Deprecated: please use instances[0].install_gpu_drivers instead.
|
352
356
|
class Accelerator
|
353
357
|
include ::Google::Protobuf::MessageExts
|
354
358
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -390,6 +394,12 @@ module Google
|
|
390
394
|
# Name of an instance template used to create VMs.
|
391
395
|
# Named the field as 'instance_template' instead of 'template' to avoid
|
392
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.
|
393
403
|
class InstancePolicyOrTemplate
|
394
404
|
include ::Google::Protobuf::MessageExts
|
395
405
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -505,6 +515,18 @@ module Google
|
|
505
515
|
include ::Google::Protobuf::MessageExts
|
506
516
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
507
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
|
508
530
|
end
|
509
531
|
end
|
510
532
|
end
|
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
|