google-apis-batch_v1 0.15.0 → 0.17.0
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: 2b3d209afde40ee78754a82b7520ecfcfbcb27bdf98f9dc3859ea172e5d33d2b
|
4
|
+
data.tar.gz: ed5d209e4b71da3c749b30b7974eb35137073edb73922e63be8b469f00aa81fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf039f0877365b9acfeae4f38a449740f79321abdab05336a8f27c94859aaaa141c90d65c53ee2eb644102fe541db19d57865894d7b4c8ceae7c3a48f028516f
|
7
|
+
data.tar.gz: 86255bcc0df04bb152d0ca84249d0eb1581b172d63fdbf657e2c49b34aebcd41e75cdc05ccb7e5463d63600f0954e47e4c3d506f8b77d0420bc5772f7b172bd3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-batch_v1
|
2
2
|
|
3
|
+
### v0.17.0 (2023-08-06)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230726
|
6
|
+
|
7
|
+
### v0.16.0 (2023-07-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230705
|
10
|
+
|
3
11
|
### v0.15.0 (2023-06-18)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230607
|
@@ -31,6 +31,15 @@ module Google
|
|
31
31
|
# @return [Fixnum]
|
32
32
|
attr_accessor :count
|
33
33
|
|
34
|
+
# Optional. The NVIDIA GPU driver version that should be installed for this type.
|
35
|
+
# You can define the specific driver version such as "470.103.01", following
|
36
|
+
# the driver version requirements in https://cloud.google.com/compute/docs/gpus/
|
37
|
+
# install-drivers-gpu#minimum-driver. Batch will install the specific
|
38
|
+
# accelerator driver if qualified.
|
39
|
+
# Corresponds to the JSON property `driverVersion`
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :driver_version
|
42
|
+
|
34
43
|
# Deprecated: please use instances[0].install_gpu_drivers instead.
|
35
44
|
# Corresponds to the JSON property `installGpuDrivers`
|
36
45
|
# @return [Boolean]
|
@@ -50,6 +59,7 @@ module Google
|
|
50
59
|
# Update properties of this object
|
51
60
|
def update!(**args)
|
52
61
|
@count = args[:count] if args.key?(:count)
|
62
|
+
@driver_version = args[:driver_version] if args.key?(:driver_version)
|
53
63
|
@install_gpu_drivers = args[:install_gpu_drivers] if args.key?(:install_gpu_drivers)
|
54
64
|
@type = args[:type] if args.key?(:type)
|
55
65
|
end
|
@@ -162,7 +172,7 @@ module Google
|
|
162
172
|
class AgentInfo
|
163
173
|
include Google::Apis::Core::Hashable
|
164
174
|
|
165
|
-
# The assigned Job ID
|
175
|
+
# Optional. The assigned Job ID
|
166
176
|
# Corresponds to the JSON property `jobId`
|
167
177
|
# @return [String]
|
168
178
|
attr_accessor :job_id
|
@@ -679,7 +689,12 @@ module Google
|
|
679
689
|
end
|
680
690
|
end
|
681
691
|
|
682
|
-
# 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.
|
683
698
|
class ComputeResource
|
684
699
|
include Google::Apis::Core::Hashable
|
685
700
|
|
@@ -688,12 +703,35 @@ module Google
|
|
688
703
|
# @return [Fixnum]
|
689
704
|
attr_accessor :boot_disk_mib
|
690
705
|
|
691
|
-
# 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.
|
692
719
|
# Corresponds to the JSON property `cpuMilli`
|
693
720
|
# @return [Fixnum]
|
694
721
|
attr_accessor :cpu_milli
|
695
722
|
|
696
|
-
# 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.
|
697
735
|
# Corresponds to the JSON property `memoryMib`
|
698
736
|
# @return [Fixnum]
|
699
737
|
attr_accessor :memory_mib
|
@@ -796,14 +834,14 @@ module Google
|
|
796
834
|
# @return [String]
|
797
835
|
attr_accessor :disk_interface
|
798
836
|
|
799
|
-
# Name of
|
800
|
-
#
|
801
|
-
#
|
802
|
-
#
|
803
|
-
#
|
804
|
-
#
|
805
|
-
#
|
806
|
-
#
|
837
|
+
# Name of an image used as the data source. For example, the following are all
|
838
|
+
# valid URLs: * Specify the image by its family name: projects/project/global/
|
839
|
+
# images/family/image_family * Specify the image version: projects/project/
|
840
|
+
# global/images/image_version You can also use Batch customized image in short
|
841
|
+
# names. The following image values are supported for a boot disk: * `batch-
|
842
|
+
# debian`: use Batch Debian images. * `batch-centos`: use Batch CentOS images. *
|
843
|
+
# `batch-cos`: use Batch Container-Optimized images. * `batch-hpc-centos`: use
|
844
|
+
# Batch HPC CentOS images.
|
807
845
|
# Corresponds to the JSON property `image`
|
808
846
|
# @return [String]
|
809
847
|
attr_accessor :image
|
@@ -934,7 +972,9 @@ module Google
|
|
934
972
|
attr_accessor :boot_disk
|
935
973
|
|
936
974
|
# Non-boot disks to be attached for each VM created by this InstancePolicy. New
|
937
|
-
# disks will be deleted when the VM is deleted.
|
975
|
+
# disks will be deleted when the VM is deleted. A non bootable disk is a disk
|
976
|
+
# that can be of a device with a file system or a raw storage drive that is not
|
977
|
+
# ready for data storage and accessing.
|
938
978
|
# Corresponds to the JSON property `disks`
|
939
979
|
# @return [Array<Google::Apis::BatchV1::AttachedDisk>]
|
940
980
|
attr_accessor :disks
|
@@ -970,13 +1010,21 @@ module Google
|
|
970
1010
|
end
|
971
1011
|
end
|
972
1012
|
|
973
|
-
#
|
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.
|
974
1017
|
class InstancePolicyOrTemplate
|
975
1018
|
include Google::Apis::Core::Hashable
|
976
1019
|
|
977
1020
|
# Set this field true if users want Batch to help fetch drivers from a third
|
978
1021
|
# party location and install them for GPUs specified in policy.accelerators or
|
979
|
-
# instance_template on their behalf. Default is false.
|
1022
|
+
# instance_template on their behalf. Default is false. For Container-Optimized
|
1023
|
+
# Image cases, Batch will install the accelerator driver following milestones of
|
1024
|
+
# https://cloud.google.com/container-optimized-os/docs/release-notes. For non
|
1025
|
+
# Container-Optimized Image cases, following https://github.com/
|
1026
|
+
# GoogleCloudPlatform/compute-gpu-installation/blob/main/linux/
|
1027
|
+
# install_gpu_driver.py.
|
980
1028
|
# Corresponds to the JSON property `installGpuDrivers`
|
981
1029
|
# @return [Boolean]
|
982
1030
|
attr_accessor :install_gpu_drivers
|
@@ -1137,16 +1185,19 @@ module Google
|
|
1137
1185
|
class JobNotification
|
1138
1186
|
include Google::Apis::Core::Hashable
|
1139
1187
|
|
1140
|
-
# Message details. Describe the
|
1141
|
-
#
|
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.
|
1142
1193
|
# Corresponds to the JSON property `message`
|
1143
1194
|
# @return [Google::Apis::BatchV1::Message]
|
1144
1195
|
attr_accessor :message
|
1145
1196
|
|
1146
1197
|
# The Pub/Sub topic where notifications like the job state changes will be
|
1147
|
-
# published.
|
1148
|
-
# be charged to this project. If not specified, no Pub/Sub messages will be
|
1149
|
-
# 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``.
|
1150
1201
|
# Corresponds to the JSON property `pubsubTopic`
|
1151
1202
|
# @return [String]
|
1152
1203
|
attr_accessor :pubsub_topic
|
@@ -1467,8 +1518,11 @@ module Google
|
|
1467
1518
|
end
|
1468
1519
|
end
|
1469
1520
|
|
1470
|
-
# Message details. Describe the
|
1471
|
-
#
|
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.
|
1472
1526
|
class Message
|
1473
1527
|
include Google::Apis::Core::Hashable
|
1474
1528
|
|
@@ -1529,9 +1583,9 @@ module Google
|
|
1529
1583
|
include Google::Apis::Core::Hashable
|
1530
1584
|
|
1531
1585
|
# The URL of an existing network resource. You can specify the network as a full
|
1532
|
-
# or partial URL. For example, the following are all valid URLs:
|
1533
|
-
# googleapis.com/compute/v1/projects
|
1534
|
-
#
|
1586
|
+
# or partial URL. For example, the following are all valid URLs: https://www.
|
1587
|
+
# googleapis.com/compute/v1/projects/project/global/networks/network projects/
|
1588
|
+
# project/global/networks/network global/networks/network
|
1535
1589
|
# Corresponds to the JSON property `network`
|
1536
1590
|
# @return [String]
|
1537
1591
|
attr_accessor :network
|
@@ -1548,9 +1602,9 @@ module Google
|
|
1548
1602
|
|
1549
1603
|
# The URL of an existing subnetwork resource in the network. You can specify the
|
1550
1604
|
# subnetwork as a full or partial URL. For example, the following are all valid
|
1551
|
-
# URLs:
|
1552
|
-
#
|
1553
|
-
#
|
1605
|
+
# URLs: https://www.googleapis.com/compute/v1/projects/project/regions/region/
|
1606
|
+
# subnetworks/subnetwork projects/project/regions/region/subnetworks/subnetwork
|
1607
|
+
# regions/region/subnetworks/subnetwork
|
1554
1608
|
# Corresponds to the JSON property `subnetwork`
|
1555
1609
|
# @return [String]
|
1556
1610
|
attr_accessor :subnetwork
|
@@ -2190,7 +2244,12 @@ module Google
|
|
2190
2244
|
class TaskSpec
|
2191
2245
|
include Google::Apis::Core::Hashable
|
2192
2246
|
|
2193
|
-
# 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.
|
2194
2253
|
# Corresponds to the JSON property `computeResource`
|
2195
2254
|
# @return [Google::Apis::BatchV1::ComputeResource]
|
2196
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.17.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 = "20230726"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -380,6 +380,7 @@ module Google
|
|
380
380
|
# @private
|
381
381
|
class Representation < Google::Apis::Core::JsonRepresentation
|
382
382
|
property :count, :numeric_string => true, as: 'count'
|
383
|
+
property :driver_version, as: 'driverVersion'
|
383
384
|
property :install_gpu_drivers, as: 'installGpuDrivers'
|
384
385
|
property :type, as: 'type'
|
385
386
|
end
|
@@ -256,6 +256,9 @@ module Google
|
|
256
256
|
# Parent path.
|
257
257
|
# @param [String] filter
|
258
258
|
# List filter.
|
259
|
+
# @param [String] order_by
|
260
|
+
# Optional. Sort results. Supported are "name", "name desc", "create_time", and "
|
261
|
+
# create_time desc".
|
259
262
|
# @param [Fixnum] page_size
|
260
263
|
# Page size.
|
261
264
|
# @param [String] page_token
|
@@ -277,12 +280,13 @@ module Google
|
|
277
280
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
278
281
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
279
282
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
280
|
-
def list_project_location_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
283
|
+
def list_project_location_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
281
284
|
command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
|
282
285
|
command.response_representation = Google::Apis::BatchV1::ListJobsResponse::Representation
|
283
286
|
command.response_class = Google::Apis::BatchV1::ListJobsResponse
|
284
287
|
command.params['parent'] = parent unless parent.nil?
|
285
288
|
command.query['filter'] = filter unless filter.nil?
|
289
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
286
290
|
command.query['pageSize'] = page_size unless page_size.nil?
|
287
291
|
command.query['pageToken'] = page_token unless page_token.nil?
|
288
292
|
command.query['fields'] = fields unless fields.nil?
|
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.17.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-06
|
11
|
+
date: 2023-08-06 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.17.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: []
|