google-apis-batch_v1 0.26.0 → 0.28.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: c2402f431057ab0968d3992841750b90ad7cc175ab61df3f11c5a3bd63f28a8e
4
- data.tar.gz: 8232170ee4503f5c259adce004b345227ee752a5d3abb8004b2116bbfd847818
3
+ metadata.gz: 8c23d30b878d46f55cf71d89afd8b0cd541c56cf481fefdeb52e2bb5545447ae
4
+ data.tar.gz: 4e24b8ff4242ae3777283d7e11cd03b6a95f972aac947c49dce032dee98c13c3
5
5
  SHA512:
6
- metadata.gz: b3bf869df56dac5948f1a09bab8e196668bc0fac1ad0a35e27846a23001ce20b8b69bb0ca8b4ddf14c8b9a8d77bd91cf52a53085304e2d6d1ff6e8339df8caed
7
- data.tar.gz: f51c9fdff40061bc0d8d4c5e7c637935019b53ae33ac40d2b8e79a6f422fdc9c55faf80f607ba3981c9a04665bbe03de79cb616dcf484d2e91a94e7926624ac7
6
+ metadata.gz: 6869048e833606182aee16642ed11e29ee777fbc042eae959c7c24287827fc4fc245f75403f37440c40f51a8d08fb2e81d224b6d72e692db4666bca481982595
7
+ data.tar.gz: e8b39f86ab04be644a272331d01e4da867f951f471226f3dd6aa950ec60cf35ff47696f983c0f326c4853ba1df819d12dcabe4df3429f5ef6d2b193118ace109
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
8
+ ### v0.27.0 (2024-01-07)
9
+
10
+ * Regenerated from discovery document revision 20231213
11
+
3
12
  ### v0.26.0 (2023-12-10)
4
13
 
5
14
  * Regenerated from discovery document revision 20231122
@@ -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 excuted by `/bin/sh`.
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 excuted
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]
@@ -639,6 +639,13 @@ module Google
639
639
  # @return [Google::Apis::BatchV1::ServiceAccount]
640
640
  attr_accessor :service_account
641
641
 
642
+ # Optional. Tags applied to the VM instances. The tags identify valid sources or
643
+ # targets for network firewalls. Each tag must be 1-63 characters long, and
644
+ # comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
645
+ # Corresponds to the JSON property `tags`
646
+ # @return [Array<String>]
647
+ attr_accessor :tags
648
+
642
649
  def initialize(**args)
643
650
  update!(**args)
644
651
  end
@@ -651,6 +658,7 @@ module Google
651
658
  @network = args[:network] if args.key?(:network)
652
659
  @placement = args[:placement] if args.key?(:placement)
653
660
  @service_account = args[:service_account] if args.key?(:service_account)
661
+ @tags = args[:tags] if args.key?(:tags)
654
662
  end
655
663
  end
656
664
 
@@ -724,6 +732,32 @@ module Google
724
732
  end
725
733
  end
726
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
+
727
761
  # Compute resource requirements. ComputeResource defines the amount of resources
728
762
  # required for each task. Make sure your tasks have enough resources to
729
763
  # successfully run. If you also define the types of resources for a job to use
@@ -802,12 +836,17 @@ module Google
802
836
  # @return [Array<String>]
803
837
  attr_accessor :commands
804
838
 
805
- # Optional. If set to true, container will run with Image streaming. The
806
- # container runtime will be changed to containerd instead of docker. Currently,
807
- # only imageUri, commands, entrypoint and volumes are supported and any other
808
- # fields will be ignored. Please refer [here](https://github.com/
809
- # GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming) for
810
- # the feature requirements and limitations.
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).
811
850
  # Corresponds to the JSON property `enableImageStreaming`
812
851
  # @return [Boolean]
813
852
  attr_accessor :enable_image_streaming
@@ -1563,6 +1602,12 @@ module Google
1563
1602
  class LogsPolicy
1564
1603
  include Google::Apis::Core::Hashable
1565
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
+
1566
1611
  # Where logs should be saved.
1567
1612
  # Corresponds to the JSON property `destination`
1568
1613
  # @return [String]
@@ -1581,6 +1626,7 @@ module Google
1581
1626
 
1582
1627
  # Update properties of this object
1583
1628
  def update!(**args)
1629
+ @cloud_logging_option = args[:cloud_logging_option] if args.key?(:cloud_logging_option)
1584
1630
  @destination = args[:destination] if args.key?(:destination)
1585
1631
  @logs_path = args[:logs_path] if args.key?(:logs_path)
1586
1632
  end
@@ -2030,7 +2076,7 @@ module Google
2030
2076
  # the first line of the file.(For example, to execute the script using bash, `#!/
2031
2077
  # bin/bash` should be the first line of the file. To execute the script using`
2032
2078
  # Python3`, `#!/usr/bin/env python3` should be the first line of the file.)
2033
- # Otherwise, the file will by default be excuted by `/bin/sh`.
2079
+ # Otherwise, the file will by default be executed by `/bin/sh`.
2034
2080
  # Corresponds to the JSON property `path`
2035
2081
  # @return [String]
2036
2082
  attr_accessor :path
@@ -2038,7 +2084,7 @@ module Google
2038
2084
  # Shell script text. To specify an interpreter, please add a `#!\n` at the
2039
2085
  # beginning of the text.(For example, to execute the script using bash, `#!/bin/
2040
2086
  # bash\n` should be added. To execute the script using`Python3`, `#!/usr/bin/env
2041
- # python3\n` should be added.) Otherwise, the script will by default be excuted
2087
+ # python3\n` should be added.) Otherwise, the script will by default be executed
2042
2088
  # by `/bin/sh`.
2043
2089
  # Corresponds to the JSON property `text`
2044
2090
  # @return [String]
@@ -2249,6 +2295,16 @@ module Google
2249
2295
  attr_accessor :require_hosts_file
2250
2296
  alias_method :require_hosts_file?, :require_hosts_file
2251
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
+
2252
2308
  # Scheduling policy for Tasks in the TaskGroup. The default value is
2253
2309
  # AS_SOON_AS_POSSIBLE.
2254
2310
  # Corresponds to the JSON property `schedulingPolicy`
@@ -2294,6 +2350,7 @@ module Google
2294
2350
  @parallelism = args[:parallelism] if args.key?(:parallelism)
2295
2351
  @permissive_ssh = args[:permissive_ssh] if args.key?(:permissive_ssh)
2296
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)
2297
2354
  @scheduling_policy = args[:scheduling_policy] if args.key?(:scheduling_policy)
2298
2355
  @task_count = args[:task_count] if args.key?(:task_count)
2299
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.26.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.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231122"
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
 
@@ -549,6 +555,7 @@ module Google
549
555
 
550
556
  property :service_account, as: 'serviceAccount', class: Google::Apis::BatchV1::ServiceAccount, decorator: Google::Apis::BatchV1::ServiceAccount::Representation
551
557
 
558
+ collection :tags, as: 'tags'
552
559
  end
553
560
  end
554
561
 
@@ -575,6 +582,13 @@ module Google
575
582
  end
576
583
  end
577
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
+
578
592
  class ComputeResource
579
593
  # @private
580
594
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -789,6 +803,8 @@ module Google
789
803
  class LogsPolicy
790
804
  # @private
791
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
+
792
808
  property :destination, as: 'destination'
793
809
  property :logs_path, as: 'logsPath'
794
810
  end
@@ -964,6 +980,7 @@ module Google
964
980
  property :parallelism, :numeric_string => true, as: 'parallelism'
965
981
  property :permissive_ssh, as: 'permissiveSsh'
966
982
  property :require_hosts_file, as: 'requireHostsFile'
983
+ property :run_as_non_root, as: 'runAsNonRoot'
967
984
  property :scheduling_policy, as: 'schedulingPolicy'
968
985
  property :task_count, :numeric_string => true, as: 'taskCount'
969
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 jobs on Google Cloud Platform.
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('https://batch.googleapis.com/', '',
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'
@@ -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 jobs on Google Cloud Platform.
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.26.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: 2023-12-10 00:00:00.000000000 Z
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.11.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.11.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.26.0
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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Batch API V1