google-cloud-batch-v1 0.3.0 → 0.4.1
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: 5452c5ddb80ada52a1c0c71e17caca5951715f52f3da5194c3b012b86352e010
|
4
|
+
data.tar.gz: 462abfef10d26bf67a8519e773a2e26f2440ddd47381ba9a6126c86dfafdc756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beb1f5d206bf48eefc51c9c52709aada2fdcfe3938e235096e219e9133b6bad0023e489067b188208fa46ebbb4f4e7c35631d3aacd37da87284b7d184427e70e
|
7
|
+
data.tar.gz: 8abc4c9ac21a3cff25cafa8dc506b5bc2cdcdb3f8d503804331bd15a48b655230e2ea8dfab06a7371f8acee32420da3761e55cdd27b992829248391367f06834
|
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
|
@@ -168,12 +168,12 @@ module Google
|
|
168
168
|
# @!attribute [rw] username
|
169
169
|
# @return [::String]
|
170
170
|
# Optional username for logging in to a docker registry. If username
|
171
|
-
# matches
|
171
|
+
# matches `projects/*/secrets/*/versions/*` then Batch will read the
|
172
172
|
# username from the Secret Manager.
|
173
173
|
# @!attribute [rw] password
|
174
174
|
# @return [::String]
|
175
175
|
# Optional password for logging in to a docker registry. If password
|
176
|
-
# matches
|
176
|
+
# matches `projects/*/secrets/*/versions/*` then Batch will read the
|
177
177
|
# password from the Secret Manager;
|
178
178
|
class Container
|
179
179
|
include ::Google::Protobuf::MessageExts
|
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.1
|
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-11-11 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
|