google-cloud-batch-v1 0.10.3 → 0.10.5
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: 28504849c9d52fa1ed0b1fcaeef52731f8ab705ff703a58246a2ff5458550022
|
4
|
+
data.tar.gz: b212d6a39424a03a9a75de9644da71e084b037a9879fa44a137e5794b14a39a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 363f72f3eaa421e2eac6fea7f15ffcd9b7a87528e908fda269ffed8773bbf58eacfa9e9e98e0b2d8bc6190383795bb1526ff187c0ab5457095ac76b4ff7d02b6
|
7
|
+
data.tar.gz: eb0b158af3306b399bcfd30b2f94b7e5852bdceca7d1d0b675c9291d715dad13ce1643bd7f081a6ba81957cc291346e8bd602c0d706eb30cfa10716a4535354f
|
@@ -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
|
#
|
@@ -346,14 +343,23 @@ module Google
|
|
346
343
|
# @return [::Integer]
|
347
344
|
# Disk size in GB.
|
348
345
|
#
|
349
|
-
#
|
350
|
-
# `
|
351
|
-
#
|
352
|
-
#
|
353
|
-
#
|
346
|
+
# **Non-Boot Disk**:
|
347
|
+
# If the `type` specifies a persistent disk, this field
|
348
|
+
# is ignored if `data_source` is set as `image` or `snapshot`.
|
349
|
+
# If the `type` specifies a local SSD, this field should be a multiple of
|
350
|
+
# 375 GB, otherwise, the final size will be the next greater multiple of
|
351
|
+
# 375 GB.
|
352
|
+
#
|
353
|
+
# **Boot Disk**:
|
354
|
+
# Batch will calculate the boot disk size based on source
|
354
355
|
# image and task requirements if you do not speicify the size.
|
355
|
-
# If both this field and the boot_disk_mib field in task spec's
|
356
|
-
# compute_resource are defined, Batch will only honor this field.
|
356
|
+
# If both this field and the `boot_disk_mib` field in task spec's
|
357
|
+
# `compute_resource` are defined, Batch will only honor this field.
|
358
|
+
# Also, this field should be no smaller than the source disk's
|
359
|
+
# size when the `data_source` is set as `snapshot` or `image`.
|
360
|
+
# For example, if you set an image as the `data_source` field and the
|
361
|
+
# image's default disk size 30 GB, you can only use this field to make the
|
362
|
+
# disk larger or equal to 30 GB.
|
357
363
|
# @!attribute [rw] disk_interface
|
358
364
|
# @return [::String]
|
359
365
|
# Local SSDs are available through both "SCSI" and "NVMe" interfaces.
|
@@ -432,12 +438,18 @@ module Google
|
|
432
438
|
# @return [::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>]
|
433
439
|
# Non-boot disks to be attached for each VM created by this InstancePolicy.
|
434
440
|
# New disks will be deleted when the VM is deleted.
|
441
|
+
# A non-boot disk is a disk that can be of a device with a
|
442
|
+
# file system or a raw storage drive that is not ready for data
|
443
|
+
# storage and accessing.
|
435
444
|
class InstancePolicy
|
436
445
|
include ::Google::Protobuf::MessageExts
|
437
446
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
438
447
|
end
|
439
448
|
|
440
|
-
#
|
449
|
+
# InstancePolicyOrTemplate lets you define the type of resources to use for
|
450
|
+
# this job either with an InstancePolicy or an instance template.
|
451
|
+
# If undefined, Batch picks the type of VM to use and doesn't include
|
452
|
+
# optional VM resources such as GPUs and extra disks.
|
441
453
|
# @!attribute [rw] policy
|
442
454
|
# @return [::Google::Cloud::Batch::V1::AllocationPolicy::InstancePolicy]
|
443
455
|
# InstancePolicy.
|
@@ -470,30 +482,20 @@ module Google
|
|
470
482
|
# You can specify the network as a full or partial URL.
|
471
483
|
#
|
472
484
|
# 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>
|
485
|
+
#
|
486
|
+
# * https://www.googleapis.com/compute/v1/projects/\\{project}/global/networks/\\{network}
|
487
|
+
# * projects/\\{project}/global/networks/\\{network}
|
488
|
+
# * global/networks/\\{network}
|
481
489
|
# @!attribute [rw] subnetwork
|
482
490
|
# @return [::String]
|
483
491
|
# The URL of an existing subnetwork resource in the network.
|
484
492
|
# You can specify the subnetwork as a full or partial URL.
|
485
493
|
#
|
486
494
|
# 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>
|
495
|
+
#
|
496
|
+
# * https://www.googleapis.com/compute/v1/projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
|
497
|
+
# * projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
|
498
|
+
# * regions/\\{region}/subnetworks/\\{subnetwork}
|
497
499
|
# @!attribute [rw] no_external_ip_address
|
498
500
|
# @return [::Boolean]
|
499
501
|
# 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.5
|
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-07 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.
|