google-apis-batch_v1 0.16.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/batch_v1/classes.rb +78 -34
- data/lib/google/apis/batch_v1/gem_version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6b5881df8d2a39b16a0421682d569ed713e0ed6c3bc979af79e95592e2d66bd
|
4
|
+
data.tar.gz: 78c7d16eb7530a8a09d51fe711b701e2bec04d449d01db214413dd55892364ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1cc7e8f951017449a64ae9a2f524d8a1b4878e1e01d7b7f02704b9a819d870e648695a8411481241b97c2d7eff881c6555669dfeca1948b2383d13c365bfc1c
|
7
|
+
data.tar.gz: eabe063c7491af2ca75c2a6aae19a2dcbcc89394a436053207f0944103dab4c301a270238df69a66afb76bc503b7df84a9e2de9ee4ec4ca613f652cd43c71d38
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-batch_v1
|
2
2
|
|
3
|
+
### v0.18.0 (2023-08-13)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230804
|
6
|
+
|
7
|
+
### v0.17.0 (2023-08-06)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230726
|
10
|
+
|
3
11
|
### v0.16.0 (2023-07-16)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230705
|
@@ -689,7 +689,12 @@ module Google
|
|
689
689
|
end
|
690
690
|
end
|
691
691
|
|
692
|
-
# Compute resource requirements
|
692
|
+
# Compute resource requirements. ComputeResource defines the amount of resources
|
693
|
+
# required for each task. Make sure your tasks have enough resources to
|
694
|
+
# successfully run. If you also define the types of resources for a job to use
|
695
|
+
# with the [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/
|
696
|
+
# reference/rest/v1/projects.locations.jobs#instancepolicyortemplate) field,
|
697
|
+
# make sure both fields are compatible with each other.
|
693
698
|
class ComputeResource
|
694
699
|
include Google::Apis::Core::Hashable
|
695
700
|
|
@@ -698,12 +703,35 @@ module Google
|
|
698
703
|
# @return [Fixnum]
|
699
704
|
attr_accessor :boot_disk_mib
|
700
705
|
|
701
|
-
# The milliCPU count.
|
706
|
+
# The milliCPU count. `cpuMilli` defines the amount of CPU resources per task in
|
707
|
+
# milliCPU units. For example, `1000` corresponds to 1 vCPU per task. If
|
708
|
+
# undefined, the default value is `2000`. If you also define the VM's machine
|
709
|
+
# type using the `machineType` in [InstancePolicy](https://cloud.google.com/
|
710
|
+
# batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicy) field or
|
711
|
+
# inside the `instanceTemplate` in the [InstancePolicyOrTemplate](https://cloud.
|
712
|
+
# google.com/batch/docs/reference/rest/v1/projects.locations.jobs#
|
713
|
+
# instancepolicyortemplate) field, make sure the CPU resources for both fields
|
714
|
+
# are compatible with each other and with how many tasks you want to allow to
|
715
|
+
# run on the same VM at the same time. For example, if you specify the `n2-
|
716
|
+
# standard-2` machine type, which has 2 vCPUs each, you are recommended to set `
|
717
|
+
# cpuMilli` no more than `2000`, or you are recommended to run two tasks on the
|
718
|
+
# same VM if you set `cpuMilli` to `1000` or less.
|
702
719
|
# Corresponds to the JSON property `cpuMilli`
|
703
720
|
# @return [Fixnum]
|
704
721
|
attr_accessor :cpu_milli
|
705
722
|
|
706
|
-
# Memory in MiB.
|
723
|
+
# Memory in MiB. `memoryMib` defines the amount of memory per task in MiB units.
|
724
|
+
# If undefined, the default value is `2000`. If you also define the VM's machine
|
725
|
+
# type using the `machineType` in [InstancePolicy](https://cloud.google.com/
|
726
|
+
# batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicy) field or
|
727
|
+
# inside the `instanceTemplate` in the [InstancePolicyOrTemplate](https://cloud.
|
728
|
+
# google.com/batch/docs/reference/rest/v1/projects.locations.jobs#
|
729
|
+
# instancepolicyortemplate) field, make sure the memory resources for both
|
730
|
+
# fields are compatible with each other and with how many tasks you want to
|
731
|
+
# allow to run on the same VM at the same time. For example, if you specify the `
|
732
|
+
# n2-standard-2` machine type, which has 8 GiB each, you are recommended to set `
|
733
|
+
# memoryMib` to no more than `8192`, or you are recommended to run two tasks on
|
734
|
+
# the same VM if you set `memoryMib` to `4096` or less.
|
707
735
|
# Corresponds to the JSON property `memoryMib`
|
708
736
|
# @return [Fixnum]
|
709
737
|
attr_accessor :memory_mib
|
@@ -806,14 +834,14 @@ module Google
|
|
806
834
|
# @return [String]
|
807
835
|
attr_accessor :disk_interface
|
808
836
|
|
809
|
-
#
|
810
|
-
# valid URLs: * Specify the image by its family name: projects/
|
811
|
-
# images/family
|
812
|
-
# global/images
|
813
|
-
# names. The following image values are supported for
|
814
|
-
# debian`: use Batch Debian images. * `batch-centos`: use
|
815
|
-
# `batch-cos`: use Batch Container-Optimized images. * `
|
816
|
-
# Batch HPC CentOS images.
|
837
|
+
# URL for a VM image to use as the data source for this disk. For example, the
|
838
|
+
# following are all valid URLs: * Specify the image by its family name: projects/
|
839
|
+
# `project`/global/images/family/`image_family` * Specify the image version:
|
840
|
+
# projects/`project`/global/images/`image_version` You can also use Batch
|
841
|
+
# customized image in short names. The following image values are supported for
|
842
|
+
# a boot disk: * `batch-debian`: use Batch Debian images. * `batch-centos`: use
|
843
|
+
# Batch CentOS images. * `batch-cos`: use Batch Container-Optimized images. * `
|
844
|
+
# batch-hpc-centos`: use Batch HPC CentOS images.
|
817
845
|
# Corresponds to the JSON property `image`
|
818
846
|
# @return [String]
|
819
847
|
attr_accessor :image
|
@@ -944,7 +972,9 @@ module Google
|
|
944
972
|
attr_accessor :boot_disk
|
945
973
|
|
946
974
|
# Non-boot disks to be attached for each VM created by this InstancePolicy. New
|
947
|
-
# disks will be deleted when the VM is deleted.
|
975
|
+
# disks will be deleted when the VM is deleted. A non-boot disk is a disk that
|
976
|
+
# can be of a device with a file system or a raw storage drive that is not ready
|
977
|
+
# for data storage and accessing.
|
948
978
|
# Corresponds to the JSON property `disks`
|
949
979
|
# @return [Array<Google::Apis::BatchV1::AttachedDisk>]
|
950
980
|
attr_accessor :disks
|
@@ -980,7 +1010,10 @@ module Google
|
|
980
1010
|
end
|
981
1011
|
end
|
982
1012
|
|
983
|
-
#
|
1013
|
+
# InstancePolicyOrTemplate lets you define the type of resources to use for this
|
1014
|
+
# job either with an InstancePolicy or an instance template. If undefined, Batch
|
1015
|
+
# picks the type of VM to use and doesn't include optional VM resources such as
|
1016
|
+
# GPUs and extra disks.
|
984
1017
|
class InstancePolicyOrTemplate
|
985
1018
|
include Google::Apis::Core::Hashable
|
986
1019
|
|
@@ -1152,16 +1185,19 @@ module Google
|
|
1152
1185
|
class JobNotification
|
1153
1186
|
include Google::Apis::Core::Hashable
|
1154
1187
|
|
1155
|
-
# Message details. Describe the
|
1156
|
-
#
|
1188
|
+
# Message details. Describe the conditions under which messages will be sent. If
|
1189
|
+
# no attribute is defined, no message will be sent by default. One message
|
1190
|
+
# should specify either the job or the task level attributes, but not both. For
|
1191
|
+
# example, job level: JOB_STATE_CHANGED and/or a specified new_job_state; task
|
1192
|
+
# level: TASK_STATE_CHANGED and/or a specified new_task_state.
|
1157
1193
|
# Corresponds to the JSON property `message`
|
1158
1194
|
# @return [Google::Apis::BatchV1::Message]
|
1159
1195
|
attr_accessor :message
|
1160
1196
|
|
1161
1197
|
# The Pub/Sub topic where notifications like the job state changes will be
|
1162
|
-
# published.
|
1163
|
-
# be charged to this project. If not specified, no Pub/Sub messages will be
|
1164
|
-
# Topic format: `projects/`project`/topics/`topic``.
|
1198
|
+
# published. The topic must exist in the same project as the job and billings
|
1199
|
+
# will be charged to this project. If not specified, no Pub/Sub messages will be
|
1200
|
+
# sent. Topic format: `projects/`project`/topics/`topic``.
|
1165
1201
|
# Corresponds to the JSON property `pubsubTopic`
|
1166
1202
|
# @return [String]
|
1167
1203
|
attr_accessor :pubsub_topic
|
@@ -1482,8 +1518,11 @@ module Google
|
|
1482
1518
|
end
|
1483
1519
|
end
|
1484
1520
|
|
1485
|
-
# Message details. Describe the
|
1486
|
-
#
|
1521
|
+
# Message details. Describe the conditions under which messages will be sent. If
|
1522
|
+
# no attribute is defined, no message will be sent by default. One message
|
1523
|
+
# should specify either the job or the task level attributes, but not both. For
|
1524
|
+
# example, job level: JOB_STATE_CHANGED and/or a specified new_job_state; task
|
1525
|
+
# level: TASK_STATE_CHANGED and/or a specified new_task_state.
|
1487
1526
|
class Message
|
1488
1527
|
include Google::Apis::Core::Hashable
|
1489
1528
|
|
@@ -1544,9 +1583,9 @@ module Google
|
|
1544
1583
|
include Google::Apis::Core::Hashable
|
1545
1584
|
|
1546
1585
|
# The URL of an existing network resource. You can specify the network as a full
|
1547
|
-
# or partial URL. For example, the following are all valid URLs: https://www.
|
1548
|
-
# googleapis.com/compute/v1/projects
|
1549
|
-
# project
|
1586
|
+
# or partial URL. For example, the following are all valid URLs: * https://www.
|
1587
|
+
# googleapis.com/compute/v1/projects/`project`/global/networks/`network` *
|
1588
|
+
# projects/`project`/global/networks/`network` * global/networks/`network`
|
1550
1589
|
# Corresponds to the JSON property `network`
|
1551
1590
|
# @return [String]
|
1552
1591
|
attr_accessor :network
|
@@ -1563,9 +1602,9 @@ module Google
|
|
1563
1602
|
|
1564
1603
|
# The URL of an existing subnetwork resource in the network. You can specify the
|
1565
1604
|
# subnetwork as a full or partial URL. For example, the following are all valid
|
1566
|
-
# URLs: https://www.googleapis.com/compute/v1/projects
|
1567
|
-
# subnetworks
|
1568
|
-
# regions
|
1605
|
+
# URLs: * https://www.googleapis.com/compute/v1/projects/`project`/regions/`
|
1606
|
+
# region`/subnetworks/`subnetwork` * projects/`project`/regions/`region`/
|
1607
|
+
# subnetworks/`subnetwork` * regions/`region`/subnetworks/`subnetwork`
|
1569
1608
|
# Corresponds to the JSON property `subnetwork`
|
1570
1609
|
# @return [String]
|
1571
1610
|
attr_accessor :subnetwork
|
@@ -1638,13 +1677,13 @@ module Google
|
|
1638
1677
|
# @return [String]
|
1639
1678
|
attr_accessor :name
|
1640
1679
|
|
1641
|
-
# The normal response of the operation
|
1642
|
-
#
|
1643
|
-
#
|
1644
|
-
#
|
1645
|
-
#
|
1646
|
-
#
|
1647
|
-
#
|
1680
|
+
# The normal, successful response of the operation. If the original method
|
1681
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
1682
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
1683
|
+
# response should be the resource. For other methods, the response should have
|
1684
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
1685
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
1686
|
+
# `TakeSnapshotResponse`.
|
1648
1687
|
# Corresponds to the JSON property `response`
|
1649
1688
|
# @return [Hash<String,Object>]
|
1650
1689
|
attr_accessor :response
|
@@ -2205,7 +2244,12 @@ module Google
|
|
2205
2244
|
class TaskSpec
|
2206
2245
|
include Google::Apis::Core::Hashable
|
2207
2246
|
|
2208
|
-
# Compute resource requirements
|
2247
|
+
# Compute resource requirements. ComputeResource defines the amount of resources
|
2248
|
+
# required for each task. Make sure your tasks have enough resources to
|
2249
|
+
# successfully run. If you also define the types of resources for a job to use
|
2250
|
+
# with the [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/
|
2251
|
+
# reference/rest/v1/projects.locations.jobs#instancepolicyortemplate) field,
|
2252
|
+
# make sure both fields are compatible with each other.
|
2209
2253
|
# Corresponds to the JSON property `computeResource`
|
2210
2254
|
# @return [Google::Apis::BatchV1::ComputeResource]
|
2211
2255
|
attr_accessor :compute_resource
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module BatchV1
|
18
18
|
# Version of the google-apis-batch_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230804"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-batch_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.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: 2023-
|
11
|
+
date: 2023-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-batch_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.18.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-batch_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|