google-apis-batch_v1 0.16.0 → 0.17.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41508d305f309af1cb29aae8b054f55fadb2ee3eba4cb9ec4e3ff6164317d5c6
4
- data.tar.gz: d08896147862ae1b23bc13f83cff8e6d82939bc697596d0f88a2a9752dcb3208
3
+ metadata.gz: 2b3d209afde40ee78754a82b7520ecfcfbcb27bdf98f9dc3859ea172e5d33d2b
4
+ data.tar.gz: ed5d209e4b71da3c749b30b7974eb35137073edb73922e63be8b469f00aa81fa
5
5
  SHA512:
6
- metadata.gz: b75075f42d40541c2ad6270152229c351e346b35995f2db98c399c6e53583d6c700852865426472dbf60210a6b2d9d24c5bb3c6b9df02c97092289b0bc76be5d
7
- data.tar.gz: 2224278cab6fc191dd4b47a6382800e9e45bae090e0b6d8518f0050c5c2ed51df63d396ba93afd40160ad334ef901185eaca3949abcd329ecbc533bf84c25fe9
6
+ metadata.gz: bf039f0877365b9acfeae4f38a449740f79321abdab05336a8f27c94859aaaa141c90d65c53ee2eb644102fe541db19d57865894d7b4c8ceae7c3a48f028516f
7
+ data.tar.gz: 86255bcc0df04bb152d0ca84249d0eb1581b172d63fdbf657e2c49b34aebcd41e75cdc05ccb7e5463d63600f0954e47e4c3d506f8b77d0420bc5772f7b172bd3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.16.0 (2023-07-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20230705
@@ -689,7 +689,12 @@ module Google
689
689
  end
690
690
  end
691
691
 
692
- # 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.
693
698
  class ComputeResource
694
699
  include Google::Apis::Core::Hashable
695
700
 
@@ -698,12 +703,35 @@ module Google
698
703
  # @return [Fixnum]
699
704
  attr_accessor :boot_disk_mib
700
705
 
701
- # 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.
702
719
  # Corresponds to the JSON property `cpuMilli`
703
720
  # @return [Fixnum]
704
721
  attr_accessor :cpu_milli
705
722
 
706
- # 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.
707
735
  # Corresponds to the JSON property `memoryMib`
708
736
  # @return [Fixnum]
709
737
  attr_accessor :memory_mib
@@ -944,7 +972,9 @@ module Google
944
972
  attr_accessor :boot_disk
945
973
 
946
974
  # Non-boot disks to be attached for each VM created by this InstancePolicy. New
947
- # 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.
948
978
  # Corresponds to the JSON property `disks`
949
979
  # @return [Array<Google::Apis::BatchV1::AttachedDisk>]
950
980
  attr_accessor :disks
@@ -980,7 +1010,10 @@ module Google
980
1010
  end
981
1011
  end
982
1012
 
983
- # Either an InstancePolicy or an instance template.
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.
984
1017
  class InstancePolicyOrTemplate
985
1018
  include Google::Apis::Core::Hashable
986
1019
 
@@ -1152,16 +1185,19 @@ module Google
1152
1185
  class JobNotification
1153
1186
  include Google::Apis::Core::Hashable
1154
1187
 
1155
- # Message details. Describe the attribute that a message should have. Without
1156
- # specified message attributes, no message will be sent by default.
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.
1157
1193
  # Corresponds to the JSON property `message`
1158
1194
  # @return [Google::Apis::BatchV1::Message]
1159
1195
  attr_accessor :message
1160
1196
 
1161
1197
  # The Pub/Sub topic where notifications like the job state changes will be
1162
- # published. This topic exist in the same project as the job and billings will
1163
- # be charged to this project. If not specified, no Pub/Sub messages will be sent.
1164
- # 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``.
1165
1201
  # Corresponds to the JSON property `pubsubTopic`
1166
1202
  # @return [String]
1167
1203
  attr_accessor :pubsub_topic
@@ -1482,8 +1518,11 @@ module Google
1482
1518
  end
1483
1519
  end
1484
1520
 
1485
- # Message details. Describe the attribute that a message should have. Without
1486
- # specified message attributes, no message will be sent by default.
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.
1487
1526
  class Message
1488
1527
  include Google::Apis::Core::Hashable
1489
1528
 
@@ -2205,7 +2244,12 @@ module Google
2205
2244
  class TaskSpec
2206
2245
  include Google::Apis::Core::Hashable
2207
2246
 
2208
- # 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.
2209
2253
  # Corresponds to the JSON property `computeResource`
2210
2254
  # @return [Google::Apis::BatchV1::ComputeResource]
2211
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.16.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 = "20230705"
25
+ REVISION = "20230726"
26
26
  end
27
27
  end
28
28
  end
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.16.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-07-16 00:00:00.000000000 Z
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.16.0
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: []