google-apis-batch_v1 0.14.0 → 0.16.0
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/batch_v1/classes.rb +282 -15
- data/lib/google/apis/batch_v1/gem_version.rb +2 -2
- data/lib/google/apis/batch_v1/representations.rb +103 -0
- data/lib/google/apis/batch_v1/service.rb +5 -1
- 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: 41508d305f309af1cb29aae8b054f55fadb2ee3eba4cb9ec4e3ff6164317d5c6
|
4
|
+
data.tar.gz: d08896147862ae1b23bc13f83cff8e6d82939bc697596d0f88a2a9752dcb3208
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b75075f42d40541c2ad6270152229c351e346b35995f2db98c399c6e53583d6c700852865426472dbf60210a6b2d9d24c5bb3c6b9df02c97092289b0bc76be5d
|
7
|
+
data.tar.gz: 2224278cab6fc191dd4b47a6382800e9e45bae090e0b6d8518f0050c5c2ed51df63d396ba93afd40160ad334ef901185eaca3949abcd329ecbc533bf84c25fe9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-batch_v1
|
2
2
|
|
3
|
+
### v0.16.0 (2023-07-16)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230705
|
6
|
+
|
7
|
+
### v0.15.0 (2023-06-18)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230607
|
10
|
+
|
3
11
|
### v0.14.0 (2023-05-28)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230518
|
@@ -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
|
@@ -76,11 +86,93 @@ module Google
|
|
76
86
|
end
|
77
87
|
end
|
78
88
|
|
89
|
+
# Container runnable representation on the agent side.
|
90
|
+
class AgentContainer
|
91
|
+
include Google::Apis::Core::Hashable
|
92
|
+
|
93
|
+
# Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (
|
94
|
+
# either in the container image or with the entrypoint field below) then
|
95
|
+
# commands are appended as arguments to the ENTRYPOINT.
|
96
|
+
# Corresponds to the JSON property `commands`
|
97
|
+
# @return [Array<String>]
|
98
|
+
attr_accessor :commands
|
99
|
+
|
100
|
+
# Overrides the `ENTRYPOINT` specified in the container.
|
101
|
+
# Corresponds to the JSON property `entrypoint`
|
102
|
+
# @return [String]
|
103
|
+
attr_accessor :entrypoint
|
104
|
+
|
105
|
+
# The URI to pull the container image from.
|
106
|
+
# Corresponds to the JSON property `imageUri`
|
107
|
+
# @return [String]
|
108
|
+
attr_accessor :image_uri
|
109
|
+
|
110
|
+
# Arbitrary additional options to include in the "docker run" command when
|
111
|
+
# running this container, e.g. "--network host".
|
112
|
+
# Corresponds to the JSON property `options`
|
113
|
+
# @return [String]
|
114
|
+
attr_accessor :options
|
115
|
+
|
116
|
+
# Volumes to mount (bind mount) from the host machine files or directories into
|
117
|
+
# the container, formatted to match docker run's --volume option, e.g. /foo:/bar,
|
118
|
+
# or /foo:/bar:ro
|
119
|
+
# Corresponds to the JSON property `volumes`
|
120
|
+
# @return [Array<String>]
|
121
|
+
attr_accessor :volumes
|
122
|
+
|
123
|
+
def initialize(**args)
|
124
|
+
update!(**args)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Update properties of this object
|
128
|
+
def update!(**args)
|
129
|
+
@commands = args[:commands] if args.key?(:commands)
|
130
|
+
@entrypoint = args[:entrypoint] if args.key?(:entrypoint)
|
131
|
+
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
132
|
+
@options = args[:options] if args.key?(:options)
|
133
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
# AgentEnvironment is the Environment representation between Agent and CLH
|
138
|
+
# communication. The environment is used in both task level and agent level.
|
139
|
+
class AgentEnvironment
|
140
|
+
include Google::Apis::Core::Hashable
|
141
|
+
|
142
|
+
# AgentKMSEnvMap contains the encrypted key/value pair to be used in the
|
143
|
+
# environment on the Agent side.
|
144
|
+
# Corresponds to the JSON property `encryptedVariables`
|
145
|
+
# @return [Google::Apis::BatchV1::AgentKmsEnvMap]
|
146
|
+
attr_accessor :encrypted_variables
|
147
|
+
|
148
|
+
# A map of environment variable names to Secret Manager secret names. The VM
|
149
|
+
# will access the named secrets to set the value of each environment variable.
|
150
|
+
# Corresponds to the JSON property `secretVariables`
|
151
|
+
# @return [Hash<String,String>]
|
152
|
+
attr_accessor :secret_variables
|
153
|
+
|
154
|
+
# A map of environment variable names to values.
|
155
|
+
# Corresponds to the JSON property `variables`
|
156
|
+
# @return [Hash<String,String>]
|
157
|
+
attr_accessor :variables
|
158
|
+
|
159
|
+
def initialize(**args)
|
160
|
+
update!(**args)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Update properties of this object
|
164
|
+
def update!(**args)
|
165
|
+
@encrypted_variables = args[:encrypted_variables] if args.key?(:encrypted_variables)
|
166
|
+
@secret_variables = args[:secret_variables] if args.key?(:secret_variables)
|
167
|
+
@variables = args[:variables] if args.key?(:variables)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
79
171
|
# VM Agent Info.
|
80
172
|
class AgentInfo
|
81
173
|
include Google::Apis::Core::Hashable
|
82
174
|
|
83
|
-
# The assigned Job ID
|
175
|
+
# Optional. The assigned Job ID
|
84
176
|
# Corresponds to the JSON property `jobId`
|
85
177
|
# @return [String]
|
86
178
|
attr_accessor :job_id
|
@@ -119,6 +211,32 @@ module Google
|
|
119
211
|
end
|
120
212
|
end
|
121
213
|
|
214
|
+
# AgentKMSEnvMap contains the encrypted key/value pair to be used in the
|
215
|
+
# environment on the Agent side.
|
216
|
+
class AgentKmsEnvMap
|
217
|
+
include Google::Apis::Core::Hashable
|
218
|
+
|
219
|
+
# The value of the cipherText response from the `encrypt` method.
|
220
|
+
# Corresponds to the JSON property `cipherText`
|
221
|
+
# @return [String]
|
222
|
+
attr_accessor :cipher_text
|
223
|
+
|
224
|
+
# The name of the KMS key that will be used to decrypt the cipher text.
|
225
|
+
# Corresponds to the JSON property `keyName`
|
226
|
+
# @return [String]
|
227
|
+
attr_accessor :key_name
|
228
|
+
|
229
|
+
def initialize(**args)
|
230
|
+
update!(**args)
|
231
|
+
end
|
232
|
+
|
233
|
+
# Update properties of this object
|
234
|
+
def update!(**args)
|
235
|
+
@cipher_text = args[:cipher_text] if args.key?(:cipher_text)
|
236
|
+
@key_name = args[:key_name] if args.key?(:key_name)
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
122
240
|
# VM Agent Metadata.
|
123
241
|
class AgentMetadata
|
124
242
|
include Google::Apis::Core::Hashable
|
@@ -189,11 +307,51 @@ module Google
|
|
189
307
|
end
|
190
308
|
end
|
191
309
|
|
310
|
+
# Script runnable representation on the agent side.
|
311
|
+
class AgentScript
|
312
|
+
include Google::Apis::Core::Hashable
|
313
|
+
|
314
|
+
# Script file path on the host VM. To specify an interpreter, please add a `#!`(
|
315
|
+
# also known as [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as
|
316
|
+
# the first line of the file.(For example, to execute the script using bash, `#!/
|
317
|
+
# bin/bash` should be the first line of the file. To execute the script using`
|
318
|
+
# Python3`, `#!/usr/bin/env python3` should be the first line of the file.)
|
319
|
+
# Otherwise, the file will by default be excuted by `/bin/sh`.
|
320
|
+
# Corresponds to the JSON property `path`
|
321
|
+
# @return [String]
|
322
|
+
attr_accessor :path
|
323
|
+
|
324
|
+
# Shell script text. To specify an interpreter, please add a `#!\n` at the
|
325
|
+
# beginning of the text.(For example, to execute the script using bash, `#!/bin/
|
326
|
+
# bash\n` should be added. To execute the script using`Python3`, `#!/usr/bin/env
|
327
|
+
# python3\n` should be added.) Otherwise, the script will by default be excuted
|
328
|
+
# by `/bin/sh`.
|
329
|
+
# Corresponds to the JSON property `text`
|
330
|
+
# @return [String]
|
331
|
+
attr_accessor :text
|
332
|
+
|
333
|
+
def initialize(**args)
|
334
|
+
update!(**args)
|
335
|
+
end
|
336
|
+
|
337
|
+
# Update properties of this object
|
338
|
+
def update!(**args)
|
339
|
+
@path = args[:path] if args.key?(:path)
|
340
|
+
@text = args[:text] if args.key?(:text)
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
192
344
|
# TODO(b/182501497) The message needs to be redefined when the Agent API server
|
193
345
|
# updates data in storage per the backend design.
|
194
346
|
class AgentTask
|
195
347
|
include Google::Apis::Core::Hashable
|
196
348
|
|
349
|
+
# AgentTaskSpec is the user's TaskSpec representation between Agent and CLH
|
350
|
+
# communication.
|
351
|
+
# Corresponds to the JSON property `agentTaskSpec`
|
352
|
+
# @return [Google::Apis::BatchV1::AgentTaskSpec]
|
353
|
+
attr_accessor :agent_task_spec
|
354
|
+
|
197
355
|
# The intended state of the task.
|
198
356
|
# Corresponds to the JSON property `intendedState`
|
199
357
|
# @return [String]
|
@@ -230,6 +388,7 @@ module Google
|
|
230
388
|
|
231
389
|
# Update properties of this object
|
232
390
|
def update!(**args)
|
391
|
+
@agent_task_spec = args[:agent_task_spec] if args.key?(:agent_task_spec)
|
233
392
|
@intended_state = args[:intended_state] if args.key?(:intended_state)
|
234
393
|
@reached_barrier = args[:reached_barrier] if args.key?(:reached_barrier)
|
235
394
|
@spec = args[:spec] if args.key?(:spec)
|
@@ -271,6 +430,108 @@ module Google
|
|
271
430
|
end
|
272
431
|
end
|
273
432
|
|
433
|
+
# AgentTaskRunnable is the Runnable representation between Agent and CLH
|
434
|
+
# communication.
|
435
|
+
class AgentTaskRunnable
|
436
|
+
include Google::Apis::Core::Hashable
|
437
|
+
|
438
|
+
# By default, after a Runnable fails, no further Runnable are executed. This
|
439
|
+
# flag indicates that this Runnable must be run even if the Task has already
|
440
|
+
# failed. This is useful for Runnables that copy output files off of the VM or
|
441
|
+
# for debugging. The always_run flag does not override the Task's overall
|
442
|
+
# max_run_duration. If the max_run_duration has expired then no further
|
443
|
+
# Runnables will execute, not even always_run Runnables.
|
444
|
+
# Corresponds to the JSON property `alwaysRun`
|
445
|
+
# @return [Boolean]
|
446
|
+
attr_accessor :always_run
|
447
|
+
alias_method :always_run?, :always_run
|
448
|
+
|
449
|
+
# This flag allows a Runnable to continue running in the background while the
|
450
|
+
# Task executes subsequent Runnables. This is useful to provide services to
|
451
|
+
# other Runnables (or to provide debugging support tools like SSH servers).
|
452
|
+
# Corresponds to the JSON property `background`
|
453
|
+
# @return [Boolean]
|
454
|
+
attr_accessor :background
|
455
|
+
alias_method :background?, :background
|
456
|
+
|
457
|
+
# Container runnable representation on the agent side.
|
458
|
+
# Corresponds to the JSON property `container`
|
459
|
+
# @return [Google::Apis::BatchV1::AgentContainer]
|
460
|
+
attr_accessor :container
|
461
|
+
|
462
|
+
# AgentEnvironment is the Environment representation between Agent and CLH
|
463
|
+
# communication. The environment is used in both task level and agent level.
|
464
|
+
# Corresponds to the JSON property `environment`
|
465
|
+
# @return [Google::Apis::BatchV1::AgentEnvironment]
|
466
|
+
attr_accessor :environment
|
467
|
+
|
468
|
+
# Normally, a non-zero exit status causes the Task to fail. This flag allows
|
469
|
+
# execution of other Runnables to continue instead.
|
470
|
+
# Corresponds to the JSON property `ignoreExitStatus`
|
471
|
+
# @return [Boolean]
|
472
|
+
attr_accessor :ignore_exit_status
|
473
|
+
alias_method :ignore_exit_status?, :ignore_exit_status
|
474
|
+
|
475
|
+
# Script runnable representation on the agent side.
|
476
|
+
# Corresponds to the JSON property `script`
|
477
|
+
# @return [Google::Apis::BatchV1::AgentScript]
|
478
|
+
attr_accessor :script
|
479
|
+
|
480
|
+
# Timeout for this Runnable.
|
481
|
+
# Corresponds to the JSON property `timeout`
|
482
|
+
# @return [String]
|
483
|
+
attr_accessor :timeout
|
484
|
+
|
485
|
+
def initialize(**args)
|
486
|
+
update!(**args)
|
487
|
+
end
|
488
|
+
|
489
|
+
# Update properties of this object
|
490
|
+
def update!(**args)
|
491
|
+
@always_run = args[:always_run] if args.key?(:always_run)
|
492
|
+
@background = args[:background] if args.key?(:background)
|
493
|
+
@container = args[:container] if args.key?(:container)
|
494
|
+
@environment = args[:environment] if args.key?(:environment)
|
495
|
+
@ignore_exit_status = args[:ignore_exit_status] if args.key?(:ignore_exit_status)
|
496
|
+
@script = args[:script] if args.key?(:script)
|
497
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
498
|
+
end
|
499
|
+
end
|
500
|
+
|
501
|
+
# AgentTaskSpec is the user's TaskSpec representation between Agent and CLH
|
502
|
+
# communication.
|
503
|
+
class AgentTaskSpec
|
504
|
+
include Google::Apis::Core::Hashable
|
505
|
+
|
506
|
+
# AgentEnvironment is the Environment representation between Agent and CLH
|
507
|
+
# communication. The environment is used in both task level and agent level.
|
508
|
+
# Corresponds to the JSON property `environment`
|
509
|
+
# @return [Google::Apis::BatchV1::AgentEnvironment]
|
510
|
+
attr_accessor :environment
|
511
|
+
|
512
|
+
# Maximum duration the task should run. The task will be killed and marked as
|
513
|
+
# FAILED if over this limit.
|
514
|
+
# Corresponds to the JSON property `maxRunDuration`
|
515
|
+
# @return [String]
|
516
|
+
attr_accessor :max_run_duration
|
517
|
+
|
518
|
+
# AgentTaskRunnable is runanbles that will be executed on the agent.
|
519
|
+
# Corresponds to the JSON property `runnables`
|
520
|
+
# @return [Array<Google::Apis::BatchV1::AgentTaskRunnable>]
|
521
|
+
attr_accessor :runnables
|
522
|
+
|
523
|
+
def initialize(**args)
|
524
|
+
update!(**args)
|
525
|
+
end
|
526
|
+
|
527
|
+
# Update properties of this object
|
528
|
+
def update!(**args)
|
529
|
+
@environment = args[:environment] if args.key?(:environment)
|
530
|
+
@max_run_duration = args[:max_run_duration] if args.key?(:max_run_duration)
|
531
|
+
@runnables = args[:runnables] if args.key?(:runnables)
|
532
|
+
end
|
533
|
+
end
|
534
|
+
|
274
535
|
# VM timing information
|
275
536
|
class AgentTimingInfo
|
276
537
|
include Google::Apis::Core::Hashable
|
@@ -545,13 +806,14 @@ module Google
|
|
545
806
|
# @return [String]
|
546
807
|
attr_accessor :disk_interface
|
547
808
|
|
548
|
-
# Name of
|
549
|
-
#
|
550
|
-
#
|
551
|
-
#
|
552
|
-
#
|
553
|
-
#
|
554
|
-
#
|
809
|
+
# Name of an image used as the data source. For example, the following are all
|
810
|
+
# valid URLs: * Specify the image by its family name: projects/project/global/
|
811
|
+
# images/family/image_family * Specify the image version: projects/project/
|
812
|
+
# global/images/image_version You can also use Batch customized image in short
|
813
|
+
# names. The following image values are supported for a boot disk: * `batch-
|
814
|
+
# debian`: use Batch Debian images. * `batch-centos`: use Batch CentOS images. *
|
815
|
+
# `batch-cos`: use Batch Container-Optimized images. * `batch-hpc-centos`: use
|
816
|
+
# Batch HPC CentOS images.
|
555
817
|
# Corresponds to the JSON property `image`
|
556
818
|
# @return [String]
|
557
819
|
attr_accessor :image
|
@@ -724,7 +986,12 @@ module Google
|
|
724
986
|
|
725
987
|
# Set this field true if users want Batch to help fetch drivers from a third
|
726
988
|
# party location and install them for GPUs specified in policy.accelerators or
|
727
|
-
# instance_template on their behalf. Default is false.
|
989
|
+
# instance_template on their behalf. Default is false. For Container-Optimized
|
990
|
+
# Image cases, Batch will install the accelerator driver following milestones of
|
991
|
+
# https://cloud.google.com/container-optimized-os/docs/release-notes. For non
|
992
|
+
# Container-Optimized Image cases, following https://github.com/
|
993
|
+
# GoogleCloudPlatform/compute-gpu-installation/blob/main/linux/
|
994
|
+
# install_gpu_driver.py.
|
728
995
|
# Corresponds to the JSON property `installGpuDrivers`
|
729
996
|
# @return [Boolean]
|
730
997
|
attr_accessor :install_gpu_drivers
|
@@ -1277,9 +1544,9 @@ module Google
|
|
1277
1544
|
include Google::Apis::Core::Hashable
|
1278
1545
|
|
1279
1546
|
# The URL of an existing network resource. You can specify the network as a full
|
1280
|
-
# or partial URL. For example, the following are all valid URLs:
|
1281
|
-
# googleapis.com/compute/v1/projects
|
1282
|
-
#
|
1547
|
+
# or partial URL. For example, the following are all valid URLs: https://www.
|
1548
|
+
# googleapis.com/compute/v1/projects/project/global/networks/network projects/
|
1549
|
+
# project/global/networks/network global/networks/network
|
1283
1550
|
# Corresponds to the JSON property `network`
|
1284
1551
|
# @return [String]
|
1285
1552
|
attr_accessor :network
|
@@ -1296,9 +1563,9 @@ module Google
|
|
1296
1563
|
|
1297
1564
|
# The URL of an existing subnetwork resource in the network. You can specify the
|
1298
1565
|
# subnetwork as a full or partial URL. For example, the following are all valid
|
1299
|
-
# URLs:
|
1300
|
-
#
|
1301
|
-
#
|
1566
|
+
# URLs: https://www.googleapis.com/compute/v1/projects/project/regions/region/
|
1567
|
+
# subnetworks/subnetwork projects/project/regions/region/subnetworks/subnetwork
|
1568
|
+
# regions/region/subnetworks/subnetwork
|
1302
1569
|
# Corresponds to the JSON property `subnetwork`
|
1303
1570
|
# @return [String]
|
1304
1571
|
attr_accessor :subnetwork
|
@@ -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.16.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 = "20230705"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,18 +34,42 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class AgentContainer
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class AgentEnvironment
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
37
49
|
class AgentInfo
|
38
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
51
|
|
40
52
|
include Google::Apis::Core::JsonObjectSupport
|
41
53
|
end
|
42
54
|
|
55
|
+
class AgentKmsEnvMap
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
43
61
|
class AgentMetadata
|
44
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
63
|
|
46
64
|
include Google::Apis::Core::JsonObjectSupport
|
47
65
|
end
|
48
66
|
|
67
|
+
class AgentScript
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
49
73
|
class AgentTask
|
50
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
75
|
|
@@ -58,6 +82,18 @@ module Google
|
|
58
82
|
include Google::Apis::Core::JsonObjectSupport
|
59
83
|
end
|
60
84
|
|
85
|
+
class AgentTaskRunnable
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class AgentTaskSpec
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
61
97
|
class AgentTimingInfo
|
62
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
99
|
|
@@ -344,6 +380,7 @@ module Google
|
|
344
380
|
# @private
|
345
381
|
class Representation < Google::Apis::Core::JsonRepresentation
|
346
382
|
property :count, :numeric_string => true, as: 'count'
|
383
|
+
property :driver_version, as: 'driverVersion'
|
347
384
|
property :install_gpu_drivers, as: 'installGpuDrivers'
|
348
385
|
property :type, as: 'type'
|
349
386
|
end
|
@@ -356,6 +393,27 @@ module Google
|
|
356
393
|
end
|
357
394
|
end
|
358
395
|
|
396
|
+
class AgentContainer
|
397
|
+
# @private
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
399
|
+
collection :commands, as: 'commands'
|
400
|
+
property :entrypoint, as: 'entrypoint'
|
401
|
+
property :image_uri, as: 'imageUri'
|
402
|
+
property :options, as: 'options'
|
403
|
+
collection :volumes, as: 'volumes'
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
class AgentEnvironment
|
408
|
+
# @private
|
409
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
410
|
+
property :encrypted_variables, as: 'encryptedVariables', class: Google::Apis::BatchV1::AgentKmsEnvMap, decorator: Google::Apis::BatchV1::AgentKmsEnvMap::Representation
|
411
|
+
|
412
|
+
hash :secret_variables, as: 'secretVariables'
|
413
|
+
hash :variables, as: 'variables'
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
359
417
|
class AgentInfo
|
360
418
|
# @private
|
361
419
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -368,6 +426,14 @@ module Google
|
|
368
426
|
end
|
369
427
|
end
|
370
428
|
|
429
|
+
class AgentKmsEnvMap
|
430
|
+
# @private
|
431
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
432
|
+
property :cipher_text, as: 'cipherText'
|
433
|
+
property :key_name, as: 'keyName'
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
371
437
|
class AgentMetadata
|
372
438
|
# @private
|
373
439
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -383,9 +449,19 @@ module Google
|
|
383
449
|
end
|
384
450
|
end
|
385
451
|
|
452
|
+
class AgentScript
|
453
|
+
# @private
|
454
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
455
|
+
property :path, as: 'path'
|
456
|
+
property :text, as: 'text'
|
457
|
+
end
|
458
|
+
end
|
459
|
+
|
386
460
|
class AgentTask
|
387
461
|
# @private
|
388
462
|
class Representation < Google::Apis::Core::JsonRepresentation
|
463
|
+
property :agent_task_spec, as: 'agentTaskSpec', class: Google::Apis::BatchV1::AgentTaskSpec, decorator: Google::Apis::BatchV1::AgentTaskSpec::Representation
|
464
|
+
|
389
465
|
property :intended_state, as: 'intendedState'
|
390
466
|
property :reached_barrier, :numeric_string => true, as: 'reachedBarrier'
|
391
467
|
property :spec, as: 'spec', class: Google::Apis::BatchV1::TaskSpec, decorator: Google::Apis::BatchV1::TaskSpec::Representation
|
@@ -407,6 +483,33 @@ module Google
|
|
407
483
|
end
|
408
484
|
end
|
409
485
|
|
486
|
+
class AgentTaskRunnable
|
487
|
+
# @private
|
488
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
489
|
+
property :always_run, as: 'alwaysRun'
|
490
|
+
property :background, as: 'background'
|
491
|
+
property :container, as: 'container', class: Google::Apis::BatchV1::AgentContainer, decorator: Google::Apis::BatchV1::AgentContainer::Representation
|
492
|
+
|
493
|
+
property :environment, as: 'environment', class: Google::Apis::BatchV1::AgentEnvironment, decorator: Google::Apis::BatchV1::AgentEnvironment::Representation
|
494
|
+
|
495
|
+
property :ignore_exit_status, as: 'ignoreExitStatus'
|
496
|
+
property :script, as: 'script', class: Google::Apis::BatchV1::AgentScript, decorator: Google::Apis::BatchV1::AgentScript::Representation
|
497
|
+
|
498
|
+
property :timeout, as: 'timeout'
|
499
|
+
end
|
500
|
+
end
|
501
|
+
|
502
|
+
class AgentTaskSpec
|
503
|
+
# @private
|
504
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
505
|
+
property :environment, as: 'environment', class: Google::Apis::BatchV1::AgentEnvironment, decorator: Google::Apis::BatchV1::AgentEnvironment::Representation
|
506
|
+
|
507
|
+
property :max_run_duration, as: 'maxRunDuration'
|
508
|
+
collection :runnables, as: 'runnables', class: Google::Apis::BatchV1::AgentTaskRunnable, decorator: Google::Apis::BatchV1::AgentTaskRunnable::Representation
|
509
|
+
|
510
|
+
end
|
511
|
+
end
|
512
|
+
|
410
513
|
class AgentTimingInfo
|
411
514
|
# @private
|
412
515
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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.16.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-07-16 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.16.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: []
|