google-cloud-batch-v1 0.10.2 → 0.10.4
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: 740869f492efb7f98d498f7eb98f627f0471a79be393d46969126e7e26bcbf6e
|
4
|
+
data.tar.gz: 78549abe36e56f7113fbce90dd21db6a62b786fd96737b75fa6d70e88c723d10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae09712b2daebdf8673afd04a6d39014e7467605e2b05076144b495becbb55b62708c9ce5de2e01944249d6233c1496780b4f9cf26a229e48385f807410161e9
|
7
|
+
data.tar.gz: eb17c2018a5d07d17f46bc17f5cd115964fba9959eb9041a204634d3f9ead96f77d0f57f2170ff37c828bcb8080fb474715ff084cad3a099db8e2f3f9c78b665
|
@@ -4,13 +4,14 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
require 'google/cloud/batch/v1/volume_pb'
|
9
10
|
require 'google/protobuf/duration_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
13
|
|
13
|
-
descriptor_data = "\n google/cloud/batch/v1/task.proto\x12\x15google.cloud.batch.v1\x1a\x19google/api/resource.proto\x1a\"google/cloud/batch/v1/volume.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"O\n\x0f\x43omputeResource\x12\x11\n\tcpu_milli\x18\x01 \x01(\x03\x12\x12\n\nmemory_mib\x18\x02 \x01(\x03\x12\x15\n\rboot_disk_mib\x18\x04 \x01(\x03\"\xdb\x01\n\x0bStatusEvent\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12.\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x0etask_execution\x18\x04 \x01(\x0b\x32$.google.cloud.batch.v1.TaskExecution\x12;\n\ntask_state\x18\x05 \x01(\x0e\x32\'.google.cloud.batch.v1.TaskStatus.State\"\"\n\rTaskExecution\x12\x11\n\texit_code\x18\x01 \x01(\x05\"\xf2\x01\n\nTaskStatus\x12\x36\n\x05state\x18\x01 \x01(\x0e\x32\'.google.cloud.batch.v1.TaskStatus.State\x12\x39\n\rstatus_events\x18\x02 \x03(\x0b\x32\".google.cloud.batch.v1.StatusEvent\"q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0c\n\x08\x41SSIGNED\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\x0e\n\nUNEXECUTED\x10\x06\"\xde\x05\n\x08Runnable\x12>\n\tcontainer\x18\x01 \x01(\x0b\x32).google.cloud.batch.v1.Runnable.ContainerH\x00\x12\x38\n\x06script\x18\x02 \x01(\x0b\x32&.google.cloud.batch.v1.Runnable.ScriptH\x00\x12:\n\x07\x62\x61rrier\x18\x06 \x01(\x0b\x32\'.google.cloud.batch.v1.Runnable.BarrierH\x00\x12\x1a\n\x12ignore_exit_status\x18\x03 \x01(\x08\x12\x12\n\nbackground\x18\x04 \x01(\x08\x12\x12\n\nalways_run\x18\x05 \x01(\x08\x12\x37\n\x0b\x65nvironment\x18\x07 \x01(\x0b\x32\".google.cloud.batch.v1.Environment\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x06labels\x18\t \x03(\x0b\x32+.google.cloud.batch.v1.Runnable.LabelsEntry\x1a\xaa\x01\n\tContainer\x12\x11\n\timage_uri\x18\x01 \x01(\t\x12\x10\n\x08\x63ommands\x18\x02 \x03(\t\x12\x12\n\nentrypoint\x18\x03 \x01(\t\x12\x0f\n\x07volumes\x18\x07 \x03(\t\x12\x0f\n\x07options\x18\x08 \x01(\t\x12\x1e\n\x16\x62lock_external_network\x18\t \x01(\x08\x12\x10\n\x08username\x18\n \x01(\t\x12\x10\n\x08password\x18\x0b \x01(\t\x1a\x33\n\x06Script\x12\x0e\n\x04path\x18\x01 \x01(\tH\x00\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x42\t\n\x07\x63ommand\x1a\x17\n\x07\x42\x61rrier\x12\x0c\n\x04name\x18\x01 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0c\n\nexecutable\"\xfd\x03\n\x08TaskSpec\x12\x32\n\trunnables\x18\x08 \x03(\x0b\x32\x1f.google.cloud.batch.v1.Runnable\x12@\n\x10\x63ompute_resource\x18\x03 \x01(\x0b\x32&.google.cloud.batch.v1.ComputeResource\x12\x33\n\x10max_run_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fmax_retry_count\x18\x05 \x01(\x05\x12\x42\n\x12lifecycle_policies\x18\t \x03(\x0b\x32&.google.cloud.batch.v1.LifecyclePolicy\x12K\n\x0c\x65nvironments\x18\x06 \x03(\x0b\x32\x31.google.cloud.batch.v1.TaskSpec.EnvironmentsEntryB\x02\x18\x01\x12.\n\x07volumes\x18\x07 \x03(\x0b\x32\x1d.google.cloud.batch.v1.Volume\x12\x37\n\x0b\x65nvironment\x18\n \x01(\x0b\x32\".google.cloud.batch.v1.Environment\x1a\x33\n\x11\x45nvironmentsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8a\x02\n\x0fLifecyclePolicy\x12=\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32-.google.cloud.batch.v1.LifecyclePolicy.Action\x12P\n\x10\x61\x63tion_condition\x18\x02 \x01(\x0b\x32\x36.google.cloud.batch.v1.LifecyclePolicy.ActionCondition\x1a%\n\x0f\x41\x63tionCondition\x12\x12\n\nexit_codes\x18\x01 \x03(\x05\"?\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x0e\n\nRETRY_TASK\x10\x01\x12\r\n\tFAIL_TASK\x10\x02\"\xc0\x01\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\x06status\x18\x02 \x01(\x0b\x32!.google.cloud.batch.v1.TaskStatus:w\xea\x41t\n\x19\x62\x61tch.googleapis.com/Task\x12Wprojects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}/tasks/{task}\"\x8f\x03\n\x0b\x45nvironment\x12\x44\n\tvariables\x18\x01 \x03(\x0b\x32\x31.google.cloud.batch.v1.Environment.VariablesEntry\x12Q\n\x10secret_variables\x18\x02 \x03(\x0b\x32\x37.google.cloud.batch.v1.Environment.SecretVariablesEntry\x12I\n\x13\x65ncrypted_variables\x18\x03 \x01(\x0b\x32,.google.cloud.batch.v1.Environment.KMSEnvMap\x1a\x32\n\tKMSEnvMap\x12\x10\n\x08key_name\x18\x01 \x01(\t\x12\x13\n\x0b\x63ipher_text\x18\x02 \x01(\t\x1a\x30\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x36\n\x14SecretVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\xaa\x01\n\x19\x63om.google.cloud.batch.v1B\tTaskProtoP\x01Z/cloud.google.com/go/batch/apiv1/batchpb;batchpb\xa2\x02\x03GCB\xaa\x02\x15Google.Cloud.Batch.V1\xca\x02\x15Google\\Cloud\\Batch\\V1\xea\x02\x18Google::Cloud::Batch::V1b\x06proto3"
|
14
|
+
descriptor_data = "\n google/cloud/batch/v1/task.proto\x12\x15google.cloud.batch.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\"google/cloud/batch/v1/volume.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"O\n\x0f\x43omputeResource\x12\x11\n\tcpu_milli\x18\x01 \x01(\x03\x12\x12\n\nmemory_mib\x18\x02 \x01(\x03\x12\x15\n\rboot_disk_mib\x18\x04 \x01(\x03\"\xdb\x01\n\x0bStatusEvent\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12.\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x0etask_execution\x18\x04 \x01(\x0b\x32$.google.cloud.batch.v1.TaskExecution\x12;\n\ntask_state\x18\x05 \x01(\x0e\x32\'.google.cloud.batch.v1.TaskStatus.State\"\"\n\rTaskExecution\x12\x11\n\texit_code\x18\x01 \x01(\x05\"\xf2\x01\n\nTaskStatus\x12\x36\n\x05state\x18\x01 \x01(\x0e\x32\'.google.cloud.batch.v1.TaskStatus.State\x12\x39\n\rstatus_events\x18\x02 \x03(\x0b\x32\".google.cloud.batch.v1.StatusEvent\"q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0c\n\x08\x41SSIGNED\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\x0e\n\nUNEXECUTED\x10\x06\"\xde\x05\n\x08Runnable\x12>\n\tcontainer\x18\x01 \x01(\x0b\x32).google.cloud.batch.v1.Runnable.ContainerH\x00\x12\x38\n\x06script\x18\x02 \x01(\x0b\x32&.google.cloud.batch.v1.Runnable.ScriptH\x00\x12:\n\x07\x62\x61rrier\x18\x06 \x01(\x0b\x32\'.google.cloud.batch.v1.Runnable.BarrierH\x00\x12\x1a\n\x12ignore_exit_status\x18\x03 \x01(\x08\x12\x12\n\nbackground\x18\x04 \x01(\x08\x12\x12\n\nalways_run\x18\x05 \x01(\x08\x12\x37\n\x0b\x65nvironment\x18\x07 \x01(\x0b\x32\".google.cloud.batch.v1.Environment\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x06labels\x18\t \x03(\x0b\x32+.google.cloud.batch.v1.Runnable.LabelsEntry\x1a\xaa\x01\n\tContainer\x12\x11\n\timage_uri\x18\x01 \x01(\t\x12\x10\n\x08\x63ommands\x18\x02 \x03(\t\x12\x12\n\nentrypoint\x18\x03 \x01(\t\x12\x0f\n\x07volumes\x18\x07 \x03(\t\x12\x0f\n\x07options\x18\x08 \x01(\t\x12\x1e\n\x16\x62lock_external_network\x18\t \x01(\x08\x12\x10\n\x08username\x18\n \x01(\t\x12\x10\n\x08password\x18\x0b \x01(\t\x1a\x33\n\x06Script\x12\x0e\n\x04path\x18\x01 \x01(\tH\x00\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x42\t\n\x07\x63ommand\x1a\x17\n\x07\x42\x61rrier\x12\x0c\n\x04name\x18\x01 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0c\n\nexecutable\"\xfd\x03\n\x08TaskSpec\x12\x32\n\trunnables\x18\x08 \x03(\x0b\x32\x1f.google.cloud.batch.v1.Runnable\x12@\n\x10\x63ompute_resource\x18\x03 \x01(\x0b\x32&.google.cloud.batch.v1.ComputeResource\x12\x33\n\x10max_run_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fmax_retry_count\x18\x05 \x01(\x05\x12\x42\n\x12lifecycle_policies\x18\t \x03(\x0b\x32&.google.cloud.batch.v1.LifecyclePolicy\x12K\n\x0c\x65nvironments\x18\x06 \x03(\x0b\x32\x31.google.cloud.batch.v1.TaskSpec.EnvironmentsEntryB\x02\x18\x01\x12.\n\x07volumes\x18\x07 \x03(\x0b\x32\x1d.google.cloud.batch.v1.Volume\x12\x37\n\x0b\x65nvironment\x18\n \x01(\x0b\x32\".google.cloud.batch.v1.Environment\x1a\x33\n\x11\x45nvironmentsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8a\x02\n\x0fLifecyclePolicy\x12=\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32-.google.cloud.batch.v1.LifecyclePolicy.Action\x12P\n\x10\x61\x63tion_condition\x18\x02 \x01(\x0b\x32\x36.google.cloud.batch.v1.LifecyclePolicy.ActionCondition\x1a%\n\x0f\x41\x63tionCondition\x12\x12\n\nexit_codes\x18\x01 \x03(\x05\"?\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x0e\n\nRETRY_TASK\x10\x01\x12\r\n\tFAIL_TASK\x10\x02\"\xc0\x01\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\x06status\x18\x02 \x01(\x0b\x32!.google.cloud.batch.v1.TaskStatus:w\xea\x41t\n\x19\x62\x61tch.googleapis.com/Task\x12Wprojects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}/tasks/{task}\"\x8f\x03\n\x0b\x45nvironment\x12\x44\n\tvariables\x18\x01 \x03(\x0b\x32\x31.google.cloud.batch.v1.Environment.VariablesEntry\x12Q\n\x10secret_variables\x18\x02 \x03(\x0b\x32\x37.google.cloud.batch.v1.Environment.SecretVariablesEntry\x12I\n\x13\x65ncrypted_variables\x18\x03 \x01(\x0b\x32,.google.cloud.batch.v1.Environment.KMSEnvMap\x1a\x32\n\tKMSEnvMap\x12\x10\n\x08key_name\x18\x01 \x01(\t\x12\x13\n\x0b\x63ipher_text\x18\x02 \x01(\t\x1a\x30\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x36\n\x14SecretVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\xaa\x01\n\x19\x63om.google.cloud.batch.v1B\tTaskProtoP\x01Z/cloud.google.com/go/batch/apiv1/batchpb;batchpb\xa2\x02\x03GCB\xaa\x02\x15Google.Cloud.Batch.V1\xca\x02\x15Google\\Cloud\\Batch\\V1\xea\x02\x18Google::Cloud::Batch::V1b\x06proto3"
|
14
15
|
|
15
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
17
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -210,8 +210,8 @@ module Google
|
|
210
210
|
# @!attribute [rw] pubsub_topic
|
211
211
|
# @return [::String]
|
212
212
|
# The Pub/Sub topic where notifications like the job state changes
|
213
|
-
# will be published.
|
214
|
-
# and billings will be charged to this project.
|
213
|
+
# will be published. The topic must exist in the same project as
|
214
|
+
# the job and billings will be charged to this project.
|
215
215
|
# If not specified, no Pub/Sub messages will be sent.
|
216
216
|
# Topic format: `projects/{project}/topics/{topic}`.
|
217
217
|
# @!attribute [rw] message
|
@@ -223,8 +223,12 @@ module Google
|
|
223
223
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
224
224
|
|
225
225
|
# Message details.
|
226
|
-
# Describe the
|
227
|
-
#
|
226
|
+
# Describe the conditions under which messages will be sent.
|
227
|
+
# If no attribute is defined, no message will be sent by default.
|
228
|
+
# One message should specify either the job or the task level attributes,
|
229
|
+
# but not both. For example,
|
230
|
+
# job level: JOB_STATE_CHANGED and/or a specified new_job_state;
|
231
|
+
# task level: TASK_STATE_CHANGED and/or a specified new_task_state.
|
228
232
|
# @!attribute [rw] type
|
229
233
|
# @return [::Google::Cloud::Batch::V1::JobNotification::Type]
|
230
234
|
# The message type.
|
@@ -310,17 +314,14 @@ module Google
|
|
310
314
|
# https://cloud.google.com/compute/docs/disks#localssds.
|
311
315
|
# @!attribute [rw] image
|
312
316
|
# @return [::String]
|
313
|
-
#
|
317
|
+
# URL for a VM image to use as the data source for this disk.
|
314
318
|
# For example, the following are all valid URLs:
|
315
319
|
#
|
316
320
|
# * Specify the image by its family name:
|
317
|
-
#
|
318
|
-
# class="apiparam">project</var>/global/images/family/<var
|
319
|
-
# class="apiparam">image_family</var></code></pre>
|
321
|
+
# projects/\\{project}/global/images/family/\\{image_family}
|
320
322
|
# * Specify the image version:
|
321
|
-
#
|
322
|
-
#
|
323
|
-
# class="apiparam">image_version</var></code></pre>
|
323
|
+
# projects/\\{project}/global/images/\\{image_version}
|
324
|
+
#
|
324
325
|
# You can also use Batch customized image in short names.
|
325
326
|
# The following image values are supported for a boot disk:
|
326
327
|
#
|
@@ -428,12 +429,18 @@ module Google
|
|
428
429
|
# @return [::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>]
|
429
430
|
# Non-boot disks to be attached for each VM created by this InstancePolicy.
|
430
431
|
# New disks will be deleted when the VM is deleted.
|
432
|
+
# A non-boot disk is a disk that can be of a device with a
|
433
|
+
# file system or a raw storage drive that is not ready for data
|
434
|
+
# storage and accessing.
|
431
435
|
class InstancePolicy
|
432
436
|
include ::Google::Protobuf::MessageExts
|
433
437
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
434
438
|
end
|
435
439
|
|
436
|
-
#
|
440
|
+
# InstancePolicyOrTemplate lets you define the type of resources to use for
|
441
|
+
# this job either with an InstancePolicy or an instance template.
|
442
|
+
# If undefined, Batch picks the type of VM to use and doesn't include
|
443
|
+
# optional VM resources such as GPUs and extra disks.
|
437
444
|
# @!attribute [rw] policy
|
438
445
|
# @return [::Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicy]
|
439
446
|
# InstancePolicy.
|
@@ -466,30 +473,20 @@ module Google
|
|
466
473
|
# You can specify the network as a full or partial URL.
|
467
474
|
#
|
468
475
|
# For example, the following are all valid URLs:
|
469
|
-
#
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
473
|
-
# class="apiparam">project</var>/global/networks/<var
|
474
|
-
# class="apiparam">network</var></code></pre>
|
475
|
-
# <pre><code>global/networks/<var
|
476
|
-
# class="apiparam">network</var></code></pre>
|
476
|
+
#
|
477
|
+
# * https://www.googleapis.com/compute/v1/projects/\\{project}/global/networks/\\{network}
|
478
|
+
# * projects/\\{project}/global/networks/\\{network}
|
479
|
+
# * global/networks/\\{network}
|
477
480
|
# @!attribute [rw] subnetwork
|
478
481
|
# @return [::String]
|
479
482
|
# The URL of an existing subnetwork resource in the network.
|
480
483
|
# You can specify the subnetwork as a full or partial URL.
|
481
484
|
#
|
482
485
|
# For example, the following are all valid URLs:
|
483
|
-
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# <pre><code>projects/<var class="apiparam">project</var>/regions/<var
|
488
|
-
# class="apiparam">region</var>/subnetworks/<var
|
489
|
-
# class="apiparam">subnetwork</var></code></pre>
|
490
|
-
# <pre><code>regions/<var
|
491
|
-
# class="apiparam">region</var>/subnetworks/<var
|
492
|
-
# class="apiparam">subnetwork</var></code></pre>
|
486
|
+
#
|
487
|
+
# * https://www.googleapis.com/compute/v1/projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
|
488
|
+
# * projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
|
489
|
+
# * regions/\\{region}/subnetworks/\\{subnetwork}
|
493
490
|
# @!attribute [rw] no_external_ip_address
|
494
491
|
# @return [::Boolean]
|
495
492
|
# Default is false (with an external IP address). Required if
|
@@ -21,13 +21,51 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module Batch
|
23
23
|
module V1
|
24
|
-
# Compute resource requirements
|
24
|
+
# Compute resource requirements.
|
25
|
+
#
|
26
|
+
# ComputeResource defines the amount of resources required for each task.
|
27
|
+
# Make sure your tasks have enough resources to successfully run.
|
28
|
+
# If you also define the types of resources for a job to use with the
|
29
|
+
# [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicyortemplate)
|
30
|
+
# field, make sure both fields are compatible with each other.
|
25
31
|
# @!attribute [rw] cpu_milli
|
26
32
|
# @return [::Integer]
|
27
33
|
# The milliCPU count.
|
34
|
+
#
|
35
|
+
# `cpuMilli` defines the amount of CPU resources per task in milliCPU units.
|
36
|
+
# For example, `1000` corresponds to 1 vCPU per task. If undefined, the
|
37
|
+
# default value is `2000`.
|
38
|
+
#
|
39
|
+
# If you also define the VM's machine type using the `machineType` in
|
40
|
+
# [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicy)
|
41
|
+
# field or inside the `instanceTemplate` in the
|
42
|
+
# [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicyortemplate)
|
43
|
+
# field, make sure the CPU resources for both fields are compatible with each
|
44
|
+
# other and with how many tasks you want to allow to run on the same VM at
|
45
|
+
# the same time.
|
46
|
+
#
|
47
|
+
# For example, if you specify the `n2-standard-2` machine type, which has 2
|
48
|
+
# vCPUs each, you are recommended to set `cpuMilli` no more than `2000`, or
|
49
|
+
# you are recommended to run two tasks on the same VM if you set `cpuMilli`
|
50
|
+
# to `1000` or less.
|
28
51
|
# @!attribute [rw] memory_mib
|
29
52
|
# @return [::Integer]
|
30
53
|
# Memory in MiB.
|
54
|
+
#
|
55
|
+
# `memoryMib` defines the amount of memory per task in MiB units.
|
56
|
+
# If undefined, the default value is `2000`.
|
57
|
+
# If you also define the VM's machine type using the `machineType` in
|
58
|
+
# [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicy)
|
59
|
+
# field or inside the `instanceTemplate` in the
|
60
|
+
# [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicyortemplate)
|
61
|
+
# field, make sure the memory resources for both fields are compatible with
|
62
|
+
# each other and with how many tasks you want to allow to run on the same VM
|
63
|
+
# at the same time.
|
64
|
+
#
|
65
|
+
# For example, if you specify the `n2-standard-2` machine type, which has 8
|
66
|
+
# GiB each, you are recommended to set `memoryMib` to no more than `8192`,
|
67
|
+
# or you are recommended to run two tasks on the same VM if you set
|
68
|
+
# `memoryMib` to `4096` or less.
|
31
69
|
# @!attribute [rw] boot_disk_mib
|
32
70
|
# @return [::Integer]
|
33
71
|
# Extra boot disk size in MiB for each task.
|
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.10.
|
4
|
+
version: 0.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -273,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
273
|
- !ruby/object:Gem::Version
|
274
274
|
version: '0'
|
275
275
|
requirements: []
|
276
|
-
rubygems_version: 3.4.
|
276
|
+
rubygems_version: 3.4.19
|
277
277
|
signing_key:
|
278
278
|
specification_version: 4
|
279
279
|
summary: An API to manage the running of batch jobs on Google Cloud Platform.
|