google-cloud-batch-v1 0.10.3 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
|
@@ -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
|
@@ -314,17 +314,14 @@ module Google
|
|
314
314
|
# https://cloud.google.com/compute/docs/disks#localssds.
|
315
315
|
# @!attribute [rw] image
|
316
316
|
# @return [::String]
|
317
|
-
#
|
317
|
+
# URL for a VM image to use as the data source for this disk.
|
318
318
|
# For example, the following are all valid URLs:
|
319
319
|
#
|
320
320
|
# * Specify the image by its family name:
|
321
|
-
#
|
322
|
-
# class="apiparam">project</var>/global/images/family/<var
|
323
|
-
# class="apiparam">image_family</var></code></pre>
|
321
|
+
# projects/\\{project}/global/images/family/\\{image_family}
|
324
322
|
# * Specify the image version:
|
325
|
-
#
|
326
|
-
#
|
327
|
-
# class="apiparam">image_version</var></code></pre>
|
323
|
+
# projects/\\{project}/global/images/\\{image_version}
|
324
|
+
#
|
328
325
|
# You can also use Batch customized image in short names.
|
329
326
|
# The following image values are supported for a boot disk:
|
330
327
|
#
|
@@ -432,12 +429,18 @@ module Google
|
|
432
429
|
# @return [::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>]
|
433
430
|
# Non-boot disks to be attached for each VM created by this InstancePolicy.
|
434
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.
|
435
435
|
class InstancePolicy
|
436
436
|
include ::Google::Protobuf::MessageExts
|
437
437
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
438
438
|
end
|
439
439
|
|
440
|
-
#
|
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.
|
441
444
|
# @!attribute [rw] policy
|
442
445
|
# @return [::Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicy]
|
443
446
|
# InstancePolicy.
|
@@ -470,30 +473,20 @@ module Google
|
|
470
473
|
# You can specify the network as a full or partial URL.
|
471
474
|
#
|
472
475
|
# For example, the following are all valid URLs:
|
473
|
-
#
|
474
|
-
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
# class="apiparam">project</var>/global/networks/<var
|
478
|
-
# class="apiparam">network</var></code></pre>
|
479
|
-
# <pre><code>global/networks/<var
|
480
|
-
# 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}
|
481
480
|
# @!attribute [rw] subnetwork
|
482
481
|
# @return [::String]
|
483
482
|
# The URL of an existing subnetwork resource in the network.
|
484
483
|
# You can specify the subnetwork as a full or partial URL.
|
485
484
|
#
|
486
485
|
# For example, the following are all valid URLs:
|
487
|
-
#
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
# <pre><code>projects/<var class="apiparam">project</var>/regions/<var
|
492
|
-
# class="apiparam">region</var>/subnetworks/<var
|
493
|
-
# class="apiparam">subnetwork</var></code></pre>
|
494
|
-
# <pre><code>regions/<var
|
495
|
-
# class="apiparam">region</var>/subnetworks/<var
|
496
|
-
# 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}
|
497
490
|
# @!attribute [rw] no_external_ip_address
|
498
491
|
# @return [::Boolean]
|
499
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.
|