google-cloud-batch-v1 0.16.0 → 0.16.2

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: e6c27fe8448f8be041bde39f535c233d77d415fa33c07c8c092388d76836b55d
4
- data.tar.gz: fda5951512bd4b7c7b5088a109c46b5a69ecfc3bcb9eb5955ac3c93ee310249e
3
+ metadata.gz: 1f6a6bd60fc114ef9a6d3f4577b1404814f073fe78dbd3e5e95e22ed6bf23253
4
+ data.tar.gz: 67dae390f4fdf7ea6606cbe3996a5aeecb10b05925a980a424c876b9c9375beb
5
5
  SHA512:
6
- metadata.gz: c3db3835c4df739823f035298a9218b4be24f98f897b53813b9adcad7a762d82362346a759f2caf955a083daea6c51c292f47f1092284d783abc95a5c1e3eb38
7
- data.tar.gz: dc252a4c540d2ca3915f5bf98a214f270596aaa970e1e12fed5d073b4ce2dd142ff07d86f41e9fec51de73ae9b70ca160f8f6b9634e6f793188555e4e333048c
6
+ metadata.gz: 430f0d5fabec0b34915df43d7bb51fcc3d7f4a5ba94116e63634af9a26bf30d217db7b932113ed900e9d841fc4c4d31718ac94a4208b3e5ad02e2e7f40eb0289
7
+ data.tar.gz: d45ff691ee0a83d3b23ee17bc71a1ae3a9334e363ffa4de10e7d4c0ec455bc1dc238ec2db7ba304273ad9e7297baa5d89d701d69e15843ff30c24557f27da2be
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Batch V1 API
2
2
 
3
- An API to manage the running of batch jobs on Google Cloud Platform.
3
+ An API to manage the running of batch resources on Google Cloud Platform.
4
4
 
5
5
  Google Cloud Batch is a fully managed service used by scientists, VFX artists, developers to easily and efficiently run batch workloads on Google Cloud. This service manages provisioning of resources to satisfy the requirements of the batch jobs for a variety of workloads including ML, HPC, VFX rendering, transcoding, genomics and others.
6
6
 
@@ -16,13 +16,13 @@ require 'google/protobuf/empty_pb'
16
16
  require 'google/protobuf/timestamp_pb'
17
17
 
18
18
 
19
- descriptor_data = "\n!google/cloud/batch/v1/batch.proto\x12\x15google.cloud.batch.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/cloud/batch/v1/job.proto\x1a google/cloud/batch/v1/task.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9b\x01\n\x10\x43reateJobRequest\x12\x30\n\x06parent\x18\x01 \x01(\tB \xe0\x41\x02\xfa\x41\x1a\x12\x18\x62\x61tch.googleapis.com/Job\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12,\n\x03job\x18\x03 \x01(\x0b\x32\x1a.google.cloud.batch.v1.JobB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"?\n\rGetJobRequest\x12.\n\x04name\x18\x01 \x01(\tB \xe0\x41\x02\xfa\x41\x1a\n\x18\x62\x61tch.googleapis.com/Job\"N\n\x10\x44\x65leteJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x06reason\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"o\n\x0fListJobsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"j\n\x10ListJobsResponse\x12(\n\x04jobs\x18\x01 \x03(\x0b\x32\x1a.google.cloud.batch.v1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x81\x01\n\x10ListTasksRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x62\x61tch.googleapis.com/TaskGroup\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"m\n\x11ListTasksResponse\x12*\n\x05tasks\x18\x01 \x03(\x0b\x32\x1b.google.cloud.batch.v1.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"A\n\x0eGetTaskRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x62\x61tch.googleapis.com/Task\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xb6\x08\n\x0c\x42\x61tchService\x12\x9b\x01\n\tCreateJob\x12\'.google.cloud.batch.v1.CreateJobRequest\x1a\x1a.google.cloud.batch.v1.Job\"I\x82\xd3\xe4\x93\x02/\"(/v1/{parent=projects/*/locations/*}/jobs:\x03job\xda\x41\x11parent,job,job_id\x12\x83\x01\n\x06GetJob\x12$.google.cloud.batch.v1.GetJobRequest\x1a\x1a.google.cloud.batch.v1.Job\"7\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/jobs/*}\xda\x41\x04name\x12\xcf\x01\n\tDeleteJob\x12\'.google.cloud.batch.v1.DeleteJobRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02**(/v1/{name=projects/*/locations/*/jobs/*}\xda\x41\x04name\xca\x41@\n\x15google.protobuf.Empty\x12\'google.cloud.batch.v1.OperationMetadata\x12\x96\x01\n\x08ListJobs\x12&.google.cloud.batch.v1.ListJobsRequest\x1a\'.google.cloud.batch.v1.ListJobsResponse\"9\x82\xd3\xe4\x93\x02*\x12(/v1/{parent=projects/*/locations/*}/jobs\xda\x41\x06parent\x12\x9b\x01\n\x07GetTask\x12%.google.cloud.batch.v1.GetTaskRequest\x1a\x1b.google.cloud.batch.v1.Task\"L\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/jobs/*/taskGroups/*/tasks/*}\xda\x41\x04name\x12\xae\x01\n\tListTasks\x12\'.google.cloud.batch.v1.ListTasksRequest\x1a(.google.cloud.batch.v1.ListTasksResponse\"N\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/jobs/*/taskGroups/*}/tasks\xda\x41\x06parent\x1aH\xca\x41\x14\x62\x61tch.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xab\x01\n\x19\x63om.google.cloud.batch.v1B\nBatchProtoP\x01Z/cloud.google.com/go/batch/apiv1/batchpb;batchpb\xa2\x02\x03GCB\xaa\x02\x15Google.Cloud.Batch.V1\xca\x02\x15Google\\Cloud\\Batch\\V1\xea\x02\x18Google::Cloud::Batch::V1b\x06proto3"
19
+ descriptor_data = "\n!google/cloud/batch/v1/batch.proto\x12\x15google.cloud.batch.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/cloud/batch/v1/job.proto\x1a google/cloud/batch/v1/task.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9b\x01\n\x10\x43reateJobRequest\x12\x30\n\x06parent\x18\x01 \x01(\tB \xe0\x41\x02\xfa\x41\x1a\x12\x18\x62\x61tch.googleapis.com/Job\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12,\n\x03job\x18\x03 \x01(\x0b\x32\x1a.google.cloud.batch.v1.JobB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"?\n\rGetJobRequest\x12.\n\x04name\x18\x01 \x01(\tB \xe0\x41\x02\xfa\x41\x1a\n\x18\x62\x61tch.googleapis.com/Job\"N\n\x10\x44\x65leteJobRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x06reason\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"o\n\x0fListJobsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"j\n\x10ListJobsResponse\x12(\n\x04jobs\x18\x01 \x03(\x0b\x32\x1a.google.cloud.batch.v1.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x81\x01\n\x10ListTasksRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x62\x61tch.googleapis.com/TaskGroup\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"m\n\x11ListTasksResponse\x12*\n\x05tasks\x18\x01 \x03(\x0b\x32\x1b.google.cloud.batch.v1.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"A\n\x0eGetTaskRequest\x12/\n\x04name\x18\x01 \x01(\tB!\xe0\x41\x02\xfa\x41\x1b\n\x19\x62\x61tch.googleapis.com/Task\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xb6\x08\n\x0c\x42\x61tchService\x12\x9b\x01\n\tCreateJob\x12\'.google.cloud.batch.v1.CreateJobRequest\x1a\x1a.google.cloud.batch.v1.Job\"I\xda\x41\x11parent,job,job_id\x82\xd3\xe4\x93\x02/\"(/v1/{parent=projects/*/locations/*}/jobs:\x03job\x12\x83\x01\n\x06GetJob\x12$.google.cloud.batch.v1.GetJobRequest\x1a\x1a.google.cloud.batch.v1.Job\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1/{name=projects/*/locations/*/jobs/*}\x12\xcf\x01\n\tDeleteJob\x12\'.google.cloud.batch.v1.DeleteJobRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41@\n\x15google.protobuf.Empty\x12\'google.cloud.batch.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v1/{name=projects/*/locations/*/jobs/*}\x12\x96\x01\n\x08ListJobs\x12&.google.cloud.batch.v1.ListJobsRequest\x1a\'.google.cloud.batch.v1.ListJobsResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1/{parent=projects/*/locations/*}/jobs\x12\x9b\x01\n\x07GetTask\x12%.google.cloud.batch.v1.GetTaskRequest\x1a\x1b.google.cloud.batch.v1.Task\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/jobs/*/taskGroups/*/tasks/*}\x12\xae\x01\n\tListTasks\x12\'.google.cloud.batch.v1.ListTasksRequest\x1a(.google.cloud.batch.v1.ListTasksResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/jobs/*/taskGroups/*}/tasks\x1aH\xca\x41\x14\x62\x61tch.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xab\x01\n\x19\x63om.google.cloud.batch.v1B\nBatchProtoP\x01Z/cloud.google.com/go/batch/apiv1/batchpb;batchpb\xa2\x02\x03GCB\xaa\x02\x15Google.Cloud.Batch.V1\xca\x02\x15Google\\Cloud\\Batch\\V1\xea\x02\x18Google::Cloud::Batch::V1b\x06proto3"
20
20
 
21
21
  pool = Google::Protobuf::DescriptorPool.generated_pool
22
22
 
23
23
  begin
24
24
  pool.add_serialized_file(descriptor_data)
25
- rescue TypeError => e
25
+ rescue TypeError
26
26
  # Compatibility code: will be removed in the next major version.
27
27
  require 'google/protobuf/descriptor_pb'
28
28
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -17,7 +17,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
17
17
 
18
18
  begin
19
19
  pool.add_serialized_file(descriptor_data)
20
- rescue TypeError => e
20
+ rescue TypeError
21
21
  # Compatibility code: will be removed in the next major version.
22
22
  require 'google/protobuf/descriptor_pb'
23
23
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -17,7 +17,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
17
17
 
18
18
  begin
19
19
  pool.add_serialized_file(descriptor_data)
20
- rescue TypeError => e
20
+ rescue TypeError
21
21
  # Compatibility code: will be removed in the next major version.
22
22
  require 'google/protobuf/descriptor_pb'
23
23
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Batch
23
23
  module V1
24
- VERSION = "0.16.0"
24
+ VERSION = "0.16.2"
25
25
  end
26
26
  end
27
27
  end
@@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
11
11
 
12
12
  begin
13
13
  pool.add_serialized_file(descriptor_data)
14
- rescue TypeError => e
14
+ rescue TypeError
15
15
  # Compatibility code: will be removed in the next major version.
16
16
  require 'google/protobuf/descriptor_pb'
17
17
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
@@ -653,17 +653,18 @@ module Google
653
653
  # @return [::Boolean]
654
654
  # When true, Batch will populate a file with a list of all VMs assigned to
655
655
  # the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path
656
- # of that file. Defaults to false.
656
+ # of that file. Defaults to false. The host file supports up to 1000 VMs.
657
657
  # @!attribute [rw] permissive_ssh
658
658
  # @return [::Boolean]
659
659
  # When true, Batch will configure SSH to allow passwordless login between
660
660
  # VMs running the Batch tasks in the same TaskGroup.
661
661
  # @!attribute [rw] run_as_non_root
662
662
  # @return [::Boolean]
663
- # Optional. If not set or set to false, Batch will use root user to execute
664
- # runnables. If set to true, Batch will make sure to run the runnables using
665
- # non-root user. Currently, the non-root user Batch used is generated by OS
666
- # login. Reference: https://cloud.google.com/compute/docs/oslogin
663
+ # Optional. If not set or set to false, Batch uses the root user to execute
664
+ # runnables. If set to true, Batch runs the runnables using a non-root user.
665
+ # Currently, the non-root user Batch used is generated by OS Login. For more
666
+ # information, see [About OS
667
+ # Login](https://cloud.google.com/compute/docs/oslogin).
667
668
  class TaskGroup
668
669
  include ::Google::Protobuf::MessageExts
669
670
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -229,14 +229,39 @@ module Google
229
229
  # `container.options` field.
230
230
  # @!attribute [rw] username
231
231
  # @return [::String]
232
- # Optional username for logging in to a docker registry. If username
233
- # matches `projects/*/secrets/*/versions/*` then Batch will read the
234
- # username from the Secret Manager.
232
+ # Required if the container image is from a private Docker registry. The
233
+ # username to login to the Docker registry that contains the image.
234
+ #
235
+ # You can either specify the username directly by using plain text or
236
+ # specify an encrypted username by using a Secret Manager secret:
237
+ # `projects/*/secrets/*/versions/*`. However, using a secret is
238
+ # recommended for enhanced security.
239
+ #
240
+ # Caution: If you specify the username using plain text, you risk the
241
+ # username being exposed to any users who can view the job or its logs.
242
+ # To avoid this risk, specify a secret that contains the username instead.
243
+ #
244
+ # Learn more about [Secret
245
+ # Manager](https://cloud.google.com/secret-manager/docs/) and [using
246
+ # Secret Manager with
247
+ # Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
235
248
  # @!attribute [rw] password
236
249
  # @return [::String]
237
- # Optional password for logging in to a docker registry. If password
238
- # matches `projects/*/secrets/*/versions/*` then Batch will read the
239
- # password from the Secret Manager;
250
+ # Required if the container image is from a private Docker registry. The
251
+ # password to login to the Docker registry that contains the image.
252
+ #
253
+ # For security, it is strongly recommended to specify an
254
+ # encrypted password by using a Secret Manager secret:
255
+ # `projects/*/secrets/*/versions/*`.
256
+ #
257
+ # Warning: If you specify the password using plain text, you risk the
258
+ # password being exposed to any users who can view the job or its logs.
259
+ # To avoid this risk, specify a secret that contains the password instead.
260
+ #
261
+ # Learn more about [Secret
262
+ # Manager](https://cloud.google.com/secret-manager/docs/) and [using
263
+ # Secret Manager with
264
+ # Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
240
265
  # @!attribute [rw] enable_image_streaming
241
266
  # @return [::Boolean]
242
267
  # Optional. If set to true, this container runnable uses Image streaming.
@@ -271,7 +296,7 @@ module Google
271
296
  # first line of the file.(For example, to execute the script using bash,
272
297
  # `#!/bin/bash` should be the first line of the file. To execute the
273
298
  # script using`Python3`, `#!/usr/bin/env python3` should be the first
274
- # line of the file.) Otherwise, the file will by default be excuted by
299
+ # line of the file.) Otherwise, the file will by default be executed by
275
300
  # `/bin/sh`.
276
301
  # @!attribute [rw] text
277
302
  # @return [::String]
@@ -281,7 +306,7 @@ module Google
281
306
  # beginning of the text.(For example, to execute the script using bash,
282
307
  # `#!/bin/bash\n` should be added. To execute the script using`Python3`,
283
308
  # `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
284
- # by default be excuted by `/bin/sh`.
309
+ # by default be executed by `/bin/sh`.
285
310
  class Script
286
311
  include ::Google::Protobuf::MessageExts
287
312
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -129,7 +129,8 @@ module Google
129
129
  #
130
130
  # Note: this functionality is not currently available in the official
131
131
  # protobuf release, and it is not used for type URLs beginning with
132
- # type.googleapis.com.
132
+ # type.googleapis.com. As of May 2023, there are no widely used type server
133
+ # implementations and no plans to implement one.
133
134
  #
134
135
  # Schemes other than `http`, `https` (or the empty scheme) might be
135
136
  # used with implementation specific semantics.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-batch-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.2
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-25 00:00:00.000000000 Z
11
+ date: 2024-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -277,5 +277,5 @@ requirements: []
277
277
  rubygems_version: 3.5.3
278
278
  signing_key:
279
279
  specification_version: 4
280
- summary: An API to manage the running of batch jobs on Google Cloud Platform.
280
+ summary: An API to manage the running of batch resources on Google Cloud Platform.
281
281
  test_files: []