google-apis-batch_v1 0.27.0 → 0.28.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 +5 -0
- data/lib/google/apis/batch_v1/classes.rb +59 -10
- data/lib/google/apis/batch_v1/gem_version.rb +3 -3
- data/lib/google/apis/batch_v1/representations.rb +16 -0
- data/lib/google/apis/batch_v1/service.rb +4 -2
- data/lib/google/apis/batch_v1.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c23d30b878d46f55cf71d89afd8b0cd541c56cf481fefdeb52e2bb5545447ae
|
4
|
+
data.tar.gz: 4e24b8ff4242ae3777283d7e11cd03b6a95f972aac947c49dce032dee98c13c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6869048e833606182aee16642ed11e29ee777fbc042eae959c7c24287827fc4fc245f75403f37440c40f51a8d08fb2e81d224b6d72e692db4666bca481982595
|
7
|
+
data.tar.gz: e8b39f86ab04be644a272331d01e4da867f951f471226f3dd6aa950ec60cf35ff47696f983c0f326c4853ba1df819d12dcabe4df3429f5ef6d2b193118ace109
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-batch_v1
|
2
2
|
|
3
|
+
### v0.28.0 (2024-01-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240112
|
6
|
+
* Regenerated using generator version 0.13.0
|
7
|
+
|
3
8
|
### v0.27.0 (2024-01-07)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20231213
|
@@ -316,7 +316,7 @@ module Google
|
|
316
316
|
# the first line of the file.(For example, to execute the script using bash, `#!/
|
317
317
|
# bin/bash` should be the first line of the file. To execute the script using`
|
318
318
|
# Python3`, `#!/usr/bin/env python3` should be the first line of the file.)
|
319
|
-
# Otherwise, the file will by default be
|
319
|
+
# Otherwise, the file will by default be executed by `/bin/sh`.
|
320
320
|
# Corresponds to the JSON property `path`
|
321
321
|
# @return [String]
|
322
322
|
attr_accessor :path
|
@@ -324,7 +324,7 @@ module Google
|
|
324
324
|
# Shell script text. To specify an interpreter, please add a `#!\n` at the
|
325
325
|
# beginning of the text.(For example, to execute the script using bash, `#!/bin/
|
326
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
|
327
|
+
# python3\n` should be added.) Otherwise, the script will by default be executed
|
328
328
|
# by `/bin/sh`.
|
329
329
|
# Corresponds to the JSON property `text`
|
330
330
|
# @return [String]
|
@@ -732,6 +732,32 @@ module Google
|
|
732
732
|
end
|
733
733
|
end
|
734
734
|
|
735
|
+
# `CloudLoggingOption` contains additional settings for Cloud Logging logs
|
736
|
+
# generated by Batch job.
|
737
|
+
class CloudLoggingOption
|
738
|
+
include Google::Apis::Core::Hashable
|
739
|
+
|
740
|
+
# Optional. Set this flag to true to change the [monitored resource type](https:/
|
741
|
+
# /cloud.google.com/monitoring/api/resources) for Cloud Logging logs generated
|
742
|
+
# by this Batch job from the [`batch.googleapis.com/Job`](https://cloud.google.
|
743
|
+
# com/monitoring/api/resources#tag_batch.googleapis.com/Job) type to the
|
744
|
+
# formerly used [`generic_task`](https://cloud.google.com/monitoring/api/
|
745
|
+
# resources#tag_generic_task) type.
|
746
|
+
# Corresponds to the JSON property `useGenericTaskMonitoredResource`
|
747
|
+
# @return [Boolean]
|
748
|
+
attr_accessor :use_generic_task_monitored_resource
|
749
|
+
alias_method :use_generic_task_monitored_resource?, :use_generic_task_monitored_resource
|
750
|
+
|
751
|
+
def initialize(**args)
|
752
|
+
update!(**args)
|
753
|
+
end
|
754
|
+
|
755
|
+
# Update properties of this object
|
756
|
+
def update!(**args)
|
757
|
+
@use_generic_task_monitored_resource = args[:use_generic_task_monitored_resource] if args.key?(:use_generic_task_monitored_resource)
|
758
|
+
end
|
759
|
+
end
|
760
|
+
|
735
761
|
# Compute resource requirements. ComputeResource defines the amount of resources
|
736
762
|
# required for each task. Make sure your tasks have enough resources to
|
737
763
|
# successfully run. If you also define the types of resources for a job to use
|
@@ -810,12 +836,17 @@ module Google
|
|
810
836
|
# @return [Array<String>]
|
811
837
|
attr_accessor :commands
|
812
838
|
|
813
|
-
# Optional. If set to true, container
|
814
|
-
#
|
815
|
-
#
|
816
|
-
#
|
817
|
-
#
|
818
|
-
#
|
839
|
+
# Optional. If set to true, this container runnable uses Image streaming. Use
|
840
|
+
# Image streaming to allow the runnable to initialize without waiting for the
|
841
|
+
# entire container image to download, which can significantly reduce startup
|
842
|
+
# time for large container images. When `enableImageStreaming` is set to true,
|
843
|
+
# the container runtime is [containerd](https://containerd.io/) instead of
|
844
|
+
# Docker. Additionally, this container runnable only supports the following `
|
845
|
+
# container` subfields: `imageUri`, `commands[]`, `entrypoint`, and `volumes[]`;
|
846
|
+
# any other `container` subfields are ignored. For more information about the
|
847
|
+
# requirements and limitations for using Image streaming with Batch, see the [`
|
848
|
+
# image-streaming` sample on GitHub](https://github.com/GoogleCloudPlatform/
|
849
|
+
# batch-samples/tree/main/api-samples/image-streaming).
|
819
850
|
# Corresponds to the JSON property `enableImageStreaming`
|
820
851
|
# @return [Boolean]
|
821
852
|
attr_accessor :enable_image_streaming
|
@@ -1571,6 +1602,12 @@ module Google
|
|
1571
1602
|
class LogsPolicy
|
1572
1603
|
include Google::Apis::Core::Hashable
|
1573
1604
|
|
1605
|
+
# `CloudLoggingOption` contains additional settings for Cloud Logging logs
|
1606
|
+
# generated by Batch job.
|
1607
|
+
# Corresponds to the JSON property `cloudLoggingOption`
|
1608
|
+
# @return [Google::Apis::BatchV1::CloudLoggingOption]
|
1609
|
+
attr_accessor :cloud_logging_option
|
1610
|
+
|
1574
1611
|
# Where logs should be saved.
|
1575
1612
|
# Corresponds to the JSON property `destination`
|
1576
1613
|
# @return [String]
|
@@ -1589,6 +1626,7 @@ module Google
|
|
1589
1626
|
|
1590
1627
|
# Update properties of this object
|
1591
1628
|
def update!(**args)
|
1629
|
+
@cloud_logging_option = args[:cloud_logging_option] if args.key?(:cloud_logging_option)
|
1592
1630
|
@destination = args[:destination] if args.key?(:destination)
|
1593
1631
|
@logs_path = args[:logs_path] if args.key?(:logs_path)
|
1594
1632
|
end
|
@@ -2038,7 +2076,7 @@ module Google
|
|
2038
2076
|
# the first line of the file.(For example, to execute the script using bash, `#!/
|
2039
2077
|
# bin/bash` should be the first line of the file. To execute the script using`
|
2040
2078
|
# Python3`, `#!/usr/bin/env python3` should be the first line of the file.)
|
2041
|
-
# Otherwise, the file will by default be
|
2079
|
+
# Otherwise, the file will by default be executed by `/bin/sh`.
|
2042
2080
|
# Corresponds to the JSON property `path`
|
2043
2081
|
# @return [String]
|
2044
2082
|
attr_accessor :path
|
@@ -2046,7 +2084,7 @@ module Google
|
|
2046
2084
|
# Shell script text. To specify an interpreter, please add a `#!\n` at the
|
2047
2085
|
# beginning of the text.(For example, to execute the script using bash, `#!/bin/
|
2048
2086
|
# bash\n` should be added. To execute the script using`Python3`, `#!/usr/bin/env
|
2049
|
-
# python3\n` should be added.) Otherwise, the script will by default be
|
2087
|
+
# python3\n` should be added.) Otherwise, the script will by default be executed
|
2050
2088
|
# by `/bin/sh`.
|
2051
2089
|
# Corresponds to the JSON property `text`
|
2052
2090
|
# @return [String]
|
@@ -2257,6 +2295,16 @@ module Google
|
|
2257
2295
|
attr_accessor :require_hosts_file
|
2258
2296
|
alias_method :require_hosts_file?, :require_hosts_file
|
2259
2297
|
|
2298
|
+
# Optional. If not set or set to false, Batch uses the root user to execute
|
2299
|
+
# runnables. If set to true, Batch will make sure to run the runnables using a
|
2300
|
+
# non-root user. Currently, the non-root user Batch used is generated by OS
|
2301
|
+
# Login. For more information, see [About OS Login](https://cloud.google.com/
|
2302
|
+
# compute/docs/oslogin).
|
2303
|
+
# Corresponds to the JSON property `runAsNonRoot`
|
2304
|
+
# @return [Boolean]
|
2305
|
+
attr_accessor :run_as_non_root
|
2306
|
+
alias_method :run_as_non_root?, :run_as_non_root
|
2307
|
+
|
2260
2308
|
# Scheduling policy for Tasks in the TaskGroup. The default value is
|
2261
2309
|
# AS_SOON_AS_POSSIBLE.
|
2262
2310
|
# Corresponds to the JSON property `schedulingPolicy`
|
@@ -2302,6 +2350,7 @@ module Google
|
|
2302
2350
|
@parallelism = args[:parallelism] if args.key?(:parallelism)
|
2303
2351
|
@permissive_ssh = args[:permissive_ssh] if args.key?(:permissive_ssh)
|
2304
2352
|
@require_hosts_file = args[:require_hosts_file] if args.key?(:require_hosts_file)
|
2353
|
+
@run_as_non_root = args[:run_as_non_root] if args.key?(:run_as_non_root)
|
2305
2354
|
@scheduling_policy = args[:scheduling_policy] if args.key?(:scheduling_policy)
|
2306
2355
|
@task_count = args[:task_count] if args.key?(:task_count)
|
2307
2356
|
@task_count_per_node = args[:task_count_per_node] if args.key?(:task_count_per_node)
|
@@ -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.28.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240112"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -130,6 +130,12 @@ module Google
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
131
131
|
end
|
132
132
|
|
133
|
+
class CloudLoggingOption
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
133
139
|
class ComputeResource
|
134
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
141
|
|
@@ -576,6 +582,13 @@ module Google
|
|
576
582
|
end
|
577
583
|
end
|
578
584
|
|
585
|
+
class CloudLoggingOption
|
586
|
+
# @private
|
587
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
588
|
+
property :use_generic_task_monitored_resource, as: 'useGenericTaskMonitoredResource'
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
579
592
|
class ComputeResource
|
580
593
|
# @private
|
581
594
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -790,6 +803,8 @@ module Google
|
|
790
803
|
class LogsPolicy
|
791
804
|
# @private
|
792
805
|
class Representation < Google::Apis::Core::JsonRepresentation
|
806
|
+
property :cloud_logging_option, as: 'cloudLoggingOption', class: Google::Apis::BatchV1::CloudLoggingOption, decorator: Google::Apis::BatchV1::CloudLoggingOption::Representation
|
807
|
+
|
793
808
|
property :destination, as: 'destination'
|
794
809
|
property :logs_path, as: 'logsPath'
|
795
810
|
end
|
@@ -965,6 +980,7 @@ module Google
|
|
965
980
|
property :parallelism, :numeric_string => true, as: 'parallelism'
|
966
981
|
property :permissive_ssh, as: 'permissiveSsh'
|
967
982
|
property :require_hosts_file, as: 'requireHostsFile'
|
983
|
+
property :run_as_non_root, as: 'runAsNonRoot'
|
968
984
|
property :scheduling_policy, as: 'schedulingPolicy'
|
969
985
|
property :task_count, :numeric_string => true, as: 'taskCount'
|
970
986
|
property :task_count_per_node, :numeric_string => true, as: 'taskCountPerNode'
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
module BatchV1
|
23
23
|
# Batch API
|
24
24
|
#
|
25
|
-
# An API to manage the running of batch
|
25
|
+
# An API to manage the running of batch resources on Google Cloud Platform.
|
26
26
|
#
|
27
27
|
# @example
|
28
28
|
# require 'google/apis/batch_v1'
|
@@ -32,6 +32,8 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://cloud.google.com/batch/
|
34
34
|
class BatchService < Google::Apis::Core::BaseService
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://batch.$UNIVERSE_DOMAIN$/"
|
36
|
+
|
35
37
|
# @return [String]
|
36
38
|
# API key. Your API key identifies your project and provides you with API access,
|
37
39
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -43,7 +45,7 @@ module Google
|
|
43
45
|
attr_accessor :quota_user
|
44
46
|
|
45
47
|
def initialize
|
46
|
-
super(
|
48
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
47
49
|
client_name: 'google-apis-batch_v1',
|
48
50
|
client_version: Google::Apis::BatchV1::GEM_VERSION)
|
49
51
|
@batch_path = 'batch'
|
data/lib/google/apis/batch_v1.rb
CHANGED
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
module Apis
|
22
22
|
# Batch API
|
23
23
|
#
|
24
|
-
# An API to manage the running of batch
|
24
|
+
# An API to manage the running of batch resources on Google Cloud Platform.
|
25
25
|
#
|
26
26
|
# @see https://cloud.google.com/batch/
|
27
27
|
module BatchV1
|
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.28.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: 2024-01-
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.12.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.12.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.28.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: []
|