google-apis-batch_v1 0.36.0 → 0.38.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: f512c378b58a6fb623e23feca5f4a09d1a7a03c1f7138aad0c618df3dd42867f
4
- data.tar.gz: 1400c4ac750b958fb7267bd4ffac6ace94c18794239b65a284cdbfb34d204333
3
+ metadata.gz: e594f111a376b6389862947ebe59a14024344c3c2a6829d4e64b6a6cac50cbe8
4
+ data.tar.gz: d595c128b9667e3442df55209dc24272d63ebcae4cc317b4811d5d3d4fef5e3f
5
5
  SHA512:
6
- metadata.gz: 808ee77740944869da4f8656c4d66de1b35af887f07e52980ca2c324a335a7ab3969fea933f8e1be22764839db42d311537b44b5802b7102091a18e0b2bc5ba1
7
- data.tar.gz: ebb570490b9530cad2af227ad9340786279d795af219a5294a2fcb2abb0a3ba816bae88b547c3549fdb925dbd606d01dd1426eaa814315ee2eefad49a0c35af8
6
+ metadata.gz: ca2c5c9a75fc9fe640e3d266244ed640e39d83326e73c90d9f8535a1a340f93641dbb7e526e318e5e65360a597f63fa0cc76b5f610ec1c3fd04a71dd634e9c23
7
+ data.tar.gz: 7b4e2e41a87ab08e0550193211a4487d34e1d124771f778311f45c67ac971d8ae00492dd8d402e899fa81eaf3a18dc80bb37c3470470588da7c4ff368ad4731e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-batch_v1
2
2
 
3
+ ### v0.38.0 (2024-06-16)
4
+
5
+ * Regenerated from discovery document revision 20240607
6
+
7
+ ### v0.37.0 (2024-05-26)
8
+
9
+ * Regenerated from discovery document revision 20240517
10
+
3
11
  ### v0.36.0 (2024-05-19)
4
12
 
5
13
  * Regenerated using generator version 0.15.0
@@ -274,6 +274,11 @@ module Google
274
274
  attr_accessor :instance_preemption_notice_received
275
275
  alias_method :instance_preemption_notice_received?, :instance_preemption_notice_received
276
276
 
277
+ # Optional. machine type of the VM
278
+ # Corresponds to the JSON property `machineType`
279
+ # @return [String]
280
+ attr_accessor :machine_type
281
+
277
282
  # parsed contents of /etc/os-release
278
283
  # Corresponds to the JSON property `osRelease`
279
284
  # @return [Hash<String,String>]
@@ -301,6 +306,7 @@ module Google
301
306
  @instance = args[:instance] if args.key?(:instance)
302
307
  @instance_id = args[:instance_id] if args.key?(:instance_id)
303
308
  @instance_preemption_notice_received = args[:instance_preemption_notice_received] if args.key?(:instance_preemption_notice_received)
309
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
304
310
  @os_release = args[:os_release] if args.key?(:os_release)
305
311
  @version = args[:version] if args.key?(:version)
306
312
  @zone = args[:zone] if args.key?(:zone)
@@ -509,9 +515,14 @@ module Google
509
515
  # @return [Google::Apis::BatchV1::AgentEnvironment]
510
516
  attr_accessor :environment
511
517
 
512
- # Maximum duration the task should run. The task will be killed and marked as
513
- # FAILED if over this limit. The valid value range for max_run_duration in
514
- # seconds is [0, 315576000000.999999999],
518
+ # Maximum duration the task should run before being automatically retried (if
519
+ # enabled) or automatically failed. Format the value of this field as a time
520
+ # limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field
521
+ # accepts any value between 0 and the maximum listed for the `Duration` field
522
+ # type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration;
523
+ # however, the actual maximum run time for a job will be limited to the maximum
524
+ # run time for a job listed at https://cloud.google.com/batch/quotas#max-job-
525
+ # duration.
515
526
  # Corresponds to the JSON property `maxRunDuration`
516
527
  # @return [String]
517
528
  attr_accessor :max_run_duration
@@ -980,7 +991,9 @@ module Google
980
991
 
981
992
  # Disk type as shown in `gcloud compute disk-types list`. For example, local SSD
982
993
  # uses type "local-ssd". Persistent disks and boot disks use "pd-balanced", "pd-
983
- # extreme", "pd-ssd" or "pd-standard".
994
+ # extreme", "pd-ssd" or "pd-standard". If not specified, "pd-standard" will be
995
+ # used as the default type for non-boot disks, "pd-balanced" will be used as the
996
+ # default type for boot disks.
984
997
  # Corresponds to the JSON property `type`
985
998
  # @return [String]
986
999
  attr_accessor :type
@@ -1139,9 +1152,9 @@ module Google
1139
1152
  class InstancePolicyOrTemplate
1140
1153
  include Google::Apis::Core::Hashable
1141
1154
 
1142
- # Set this field true if users want Batch to help fetch drivers from a third
1143
- # party location and install them for GPUs specified in policy.accelerators or
1144
- # instance_template on their behalf. Default is false. For Container-Optimized
1155
+ # Set this field true if you want Batch to help fetch drivers from a third party
1156
+ # location and install them for GPUs specified in `policy.accelerators` or `
1157
+ # instance_template` on your behalf. Default is false. For Container-Optimized
1145
1158
  # Image cases, Batch will install the accelerator driver following milestones of
1146
1159
  # https://cloud.google.com/container-optimized-os/docs/release-notes. For non
1147
1160
  # Container-Optimized Image cases, following https://github.com/
@@ -1152,6 +1165,13 @@ module Google
1152
1165
  attr_accessor :install_gpu_drivers
1153
1166
  alias_method :install_gpu_drivers?, :install_gpu_drivers
1154
1167
 
1168
+ # Optional. Set this field true if you want Batch to install Ops Agent on your
1169
+ # behalf. Default is false.
1170
+ # Corresponds to the JSON property `installOpsAgent`
1171
+ # @return [Boolean]
1172
+ attr_accessor :install_ops_agent
1173
+ alias_method :install_ops_agent?, :install_ops_agent
1174
+
1155
1175
  # Name of an instance template used to create VMs. Named the field as '
1156
1176
  # instance_template' instead of 'template' to avoid c++ keyword conflict.
1157
1177
  # Corresponds to the JSON property `instanceTemplate`
@@ -1171,6 +1191,7 @@ module Google
1171
1191
  # Update properties of this object
1172
1192
  def update!(**args)
1173
1193
  @install_gpu_drivers = args[:install_gpu_drivers] if args.key?(:install_gpu_drivers)
1194
+ @install_ops_agent = args[:install_ops_agent] if args.key?(:install_ops_agent)
1174
1195
  @instance_template = args[:instance_template] if args.key?(:instance_template)
1175
1196
  @policy = args[:policy] if args.key?(:policy)
1176
1197
  end
@@ -1316,10 +1337,14 @@ module Google
1316
1337
  # @return [Google::Apis::BatchV1::Message]
1317
1338
  attr_accessor :message
1318
1339
 
1319
- # The Pub/Sub topic where notifications like the job state changes will be
1320
- # published. The topic must exist in the same project as the job and billings
1321
- # will be charged to this project. If not specified, no Pub/Sub messages will be
1322
- # sent. Topic format: `projects/`project`/topics/`topic``.
1340
+ # The Pub/Sub topic where notifications for the job, like state changes, will be
1341
+ # published. If undefined, no Pub/Sub notifications are sent for this job.
1342
+ # Specify the topic using the following format: `projects/`project`/topics/`
1343
+ # topic``. Notably, if you want to specify a Pub/Sub topic that is in a
1344
+ # different project than the job, your administrator must grant your project's
1345
+ # Batch service agent permission to publish to that topic. For more information
1346
+ # about configuring Pub/Sub notifications for a job, see https://cloud.google.
1347
+ # com/batch/docs/enable-notifications.
1323
1348
  # Corresponds to the JSON property `pubsubTopic`
1324
1349
  # @return [String]
1325
1350
  attr_accessor :pubsub_topic
@@ -2259,12 +2284,11 @@ module Google
2259
2284
 
2260
2285
  # The exit code of a finished task. If the task succeeded, the exit code will be
2261
2286
  # 0. If the task failed but not due to the following reasons, the exit code will
2262
- # be 50000. Otherwise, it can be from different sources: - Batch known failures
2263
- # as https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. -
2264
- # Batch runnable execution failures: You can rely on Batch logs for further
2287
+ # be 50000. Otherwise, it can be from different sources: * Batch known failures:
2288
+ # https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. *
2289
+ # Batch runnable execution failures; you can rely on Batch logs to further
2265
2290
  # diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If there
2266
- # are multiple runnables failures, Batch only exposes the first error caught for
2267
- # now.
2291
+ # are multiple runnables failures, Batch only exposes the first error.
2268
2292
  # Corresponds to the JSON property `exitCode`
2269
2293
  # @return [Fixnum]
2270
2294
  attr_accessor :exit_code
@@ -2443,9 +2467,14 @@ module Google
2443
2467
  # @return [Fixnum]
2444
2468
  attr_accessor :max_retry_count
2445
2469
 
2446
- # Maximum duration the task should run. The task will be killed and marked as
2447
- # FAILED if over this limit. The valid value range for max_run_duration in
2448
- # seconds is [0, 315576000000.999999999],
2470
+ # Maximum duration the task should run before being automatically retried (if
2471
+ # enabled) or automatically failed. Format the value of this field as a time
2472
+ # limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field
2473
+ # accepts any value between 0 and the maximum listed for the `Duration` field
2474
+ # type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration;
2475
+ # however, the actual maximum run time for a job will be limited to the maximum
2476
+ # run time for a job listed at https://cloud.google.com/batch/quotas#max-job-
2477
+ # duration.
2449
2478
  # Corresponds to the JSON property `maxRunDuration`
2450
2479
  # @return [String]
2451
2480
  attr_accessor :max_run_duration
@@ -2526,14 +2555,15 @@ module Google
2526
2555
  # @return [Google::Apis::BatchV1::Gcs]
2527
2556
  attr_accessor :gcs
2528
2557
 
2529
- # For Google Cloud Storage (GCS), mount options are the options supported by the
2530
- # gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse). For existing
2531
- # persistent disks, mount options provided by the mount command (https://man7.
2532
- # org/linux/man-pages/man8/mount.8.html) except writing are supported. This is
2533
- # due to restrictions of multi-writer mode (https://cloud.google.com/compute/
2534
- # docs/disks/sharing-disks-between-vms). For other attached disks and Network
2535
- # File System (NFS), mount options are these supported by the mount command (
2536
- # https://man7.org/linux/man-pages/man8/mount.8.html).
2558
+ # Mount options vary based on the type of storage volume: * For a Cloud Storage
2559
+ # bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.
2560
+ # google.com/storage/docs/gcsfuse-cli) are supported. * For an existing
2561
+ # persistent disk, all mount options provided by the [`mount` command](https://
2562
+ # man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This
2563
+ # is due to restrictions of [multi-writer mode](https://cloud.google.com/compute/
2564
+ # docs/disks/sharing-disks-between-vms). * For any other disk or a Network File
2565
+ # System (NFS), all the mount options provided by the `mount` command are
2566
+ # supported.
2537
2567
  # Corresponds to the JSON property `mountOptions`
2538
2568
  # @return [Array<String>]
2539
2569
  attr_accessor :mount_options
@@ -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.36.0"
19
+ GEM_VERSION = "0.38.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240425"
25
+ REVISION = "20240607"
26
26
  end
27
27
  end
28
28
  end
@@ -455,6 +455,7 @@ module Google
455
455
  property :instance, as: 'instance'
456
456
  property :instance_id, :numeric_string => true, as: 'instanceId'
457
457
  property :instance_preemption_notice_received, as: 'instancePreemptionNoticeReceived'
458
+ property :machine_type, as: 'machineType'
458
459
  hash :os_release, as: 'osRelease'
459
460
  property :version, as: 'version'
460
461
  property :zone, as: 'zone'
@@ -667,6 +668,7 @@ module Google
667
668
  # @private
668
669
  class Representation < Google::Apis::Core::JsonRepresentation
669
670
  property :install_gpu_drivers, as: 'installGpuDrivers'
671
+ property :install_ops_agent, as: 'installOpsAgent'
670
672
  property :instance_template, as: 'instanceTemplate'
671
673
  property :policy, as: 'policy', class: Google::Apis::BatchV1::InstancePolicy, decorator: Google::Apis::BatchV1::InstancePolicy::Representation
672
674
 
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.36.0
4
+ version: 0.38.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-05-19 00:00:00.000000000 Z
11
+ date: 2024-06-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.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.38.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: []