google-cloud-batch-v1 0.7.0 → 0.8.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: 56bb02cd286ea2311f11db5041535a4d8d56d4c4859803fb96b8948bd4578edc
4
- data.tar.gz: a139a26a26f38ec9e7058dd2232d622d94632905547e0c63b94b21c5130df8ff
3
+ metadata.gz: 67910a1809b1477ba0ceb3fbcf99b860d6a777e8e349f95e6cdc56e5df329d03
4
+ data.tar.gz: 51037b3161059caef8a9575ba7f3506e0187c90362789ffe27dd2327c31173ad
5
5
  SHA512:
6
- metadata.gz: eba5b48e1fe63770a35723e48243d89cc3fdd22b8f65c3c04c56d515fa79ec33ba6ac52a48ff309993781627d3bebeab2259845b84623e3b62f73d327f807c78
7
- data.tar.gz: d18ff76a481ab2ecc402cf6b05ebed3c5bc5e6df65db538d75713f3d3a7ce460bbad524398aa3744611a0f32672be015f71cda01692214fc0dcffef983fcbf08
6
+ metadata.gz: 908b63288d33fe0075641ed4e88d3d507951a7aa5bed609b1bf22b4945bda64c7f3c73abcaca61d2f103d4646add950f66ea5a250ec09d059560e2b61ccd3584
7
+ data.tar.gz: 6f4eaafe78b6a48b342829e90ff4dcaeb1baebca6a895241631baeb63057156da896045b9200043f7c9009c2f476b262b4debd05f6e5a223a74ed2d3d0e4dd84
data/README.md CHANGED
@@ -44,7 +44,7 @@ for class and method documentation.
44
44
 
45
45
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
46
46
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
47
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
47
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
48
48
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
49
49
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
50
50
 
@@ -822,9 +822,9 @@ module Google
822
822
  # * (`String`) The path to a service account key file in JSON format
823
823
  # * (`Hash`) A service account key as a Hash
824
824
  # * (`Google::Auth::Credentials`) A googleauth credentials object
825
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
825
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
826
826
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
827
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
827
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
828
828
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
829
829
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
830
830
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -659,9 +659,9 @@ module Google
659
659
  # * (`String`) The path to a service account key file in JSON format
660
660
  # * (`Hash`) A service account key as a Hash
661
661
  # * (`Google::Auth::Credentials`) A googleauth credentials object
662
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
662
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
663
663
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
664
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
664
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
665
665
  # * (`nil`) indicating no credentials
666
666
  # @return [::Object]
667
667
  # @!attribute [rw] scope
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -78,6 +78,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
78
78
  optional :service_account, :message, 9, "google.cloud.batch.v1.ServiceAccount"
79
79
  map :labels, :string, :string, 6
80
80
  optional :network, :message, 7, "google.cloud.batch.v1.AllocationPolicy.NetworkPolicy"
81
+ optional :placement, :message, 10, "google.cloud.batch.v1.AllocationPolicy.PlacementPolicy"
81
82
  end
82
83
  add_message "google.cloud.batch.v1.AllocationPolicy.LocationPolicy" do
83
84
  repeated :allowed_locations, :string, 1
@@ -126,6 +127,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
126
127
  add_message "google.cloud.batch.v1.AllocationPolicy.NetworkPolicy" do
127
128
  repeated :network_interfaces, :message, 1, "google.cloud.batch.v1.AllocationPolicy.NetworkInterface"
128
129
  end
130
+ add_message "google.cloud.batch.v1.AllocationPolicy.PlacementPolicy" do
131
+ optional :collocation, :string, 1
132
+ optional :max_distance, :int64, 2
133
+ end
129
134
  add_enum "google.cloud.batch.v1.AllocationPolicy.ProvisioningModel" do
130
135
  value :PROVISIONING_MODEL_UNSPECIFIED, 0
131
136
  value :STANDARD, 1
@@ -172,6 +177,7 @@ module Google
172
177
  AllocationPolicy::InstancePolicyOrTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate").msgclass
173
178
  AllocationPolicy::NetworkInterface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.AllocationPolicy.NetworkInterface").msgclass
174
179
  AllocationPolicy::NetworkPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.AllocationPolicy.NetworkPolicy").msgclass
180
+ AllocationPolicy::PlacementPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.AllocationPolicy.PlacementPolicy").msgclass
175
181
  AllocationPolicy::ProvisioningModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.AllocationPolicy.ProvisioningModel").enummodule
176
182
  TaskGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.TaskGroup").msgclass
177
183
  ServiceAccount = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.batch.v1.ServiceAccount").msgclass
@@ -36,6 +36,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
36
36
  value :RUNNING, 3
37
37
  value :FAILED, 4
38
38
  value :SUCCEEDED, 5
39
+ value :UNEXECUTED, 6
39
40
  end
40
41
  add_message "google.cloud.batch.v1.Runnable" do
41
42
  optional :ignore_exit_status, :bool, 3
@@ -43,6 +44,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
44
  optional :always_run, :bool, 5
44
45
  optional :environment, :message, 7, "google.cloud.batch.v1.Environment"
45
46
  optional :timeout, :message, 8, "google.protobuf.Duration"
47
+ map :labels, :string, :string, 9
46
48
  oneof :executable do
47
49
  optional :container, :message, 1, "google.cloud.batch.v1.Runnable.Container"
48
50
  optional :script, :message, 2, "google.cloud.batch.v1.Runnable.Script"
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Batch
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -506,9 +506,9 @@ module Google
506
506
  # * (`String`) The path to a service account key file in JSON format
507
507
  # * (`Hash`) A service account key as a Hash
508
508
  # * (`Google::Auth::Credentials`) A googleauth credentials object
509
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
509
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
510
510
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
511
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
511
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
512
512
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
513
513
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
514
514
  # * (`nil`) indicating no credentials
@@ -429,9 +429,9 @@ module Google
429
429
  # * (`String`) The path to a service account key file in JSON format
430
430
  # * (`Hash`) A service account key as a Hash
431
431
  # * (`Google::Auth::Credentials`) A googleauth credentials object
432
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
432
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
433
433
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
434
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
434
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
435
435
  # * (`nil`) indicating no credentials
436
436
  # @return [::Object]
437
437
  # @!attribute [rw] scope
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -275,6 +275,9 @@ module Google
275
275
  # @!attribute [rw] network
276
276
  # @return [::Google::Cloud::Batch::V1::AllocationPolicy::NetworkPolicy]
277
277
  # The network policy.
278
+ # @!attribute [rw] placement
279
+ # @return [::Google::Cloud::Batch::V1::AllocationPolicy::PlacementPolicy]
280
+ # The placement policy.
278
281
  class AllocationPolicy
279
282
  include ::Google::Protobuf::MessageExts
280
283
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -282,12 +285,14 @@ module Google
282
285
  # @!attribute [rw] allowed_locations
283
286
  # @return [::Array<::String>]
284
287
  # A list of allowed location names represented by internal URLs.
288
+ #
285
289
  # Each location can be a region or a zone.
286
290
  # Only one region or multiple zones in one region is supported now.
287
291
  # For example,
288
292
  # ["regions/us-central1"] allow VMs in any zones in region us-central1.
289
293
  # ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
290
294
  # in zones us-central1-a and us-central1-c.
295
+ #
291
296
  # All locations end up in different regions would cause errors.
292
297
  # For example,
293
298
  # ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
@@ -300,24 +305,28 @@ module Google
300
305
 
301
306
  # A new persistent disk or a local ssd.
302
307
  # A VM can only have one local SSD setting but multiple local SSD partitions.
303
- # https://cloud.google.com/compute/docs/disks#pdspecs.
308
+ # See https://cloud.google.com/compute/docs/disks#pdspecs and
304
309
  # https://cloud.google.com/compute/docs/disks#localssds.
305
310
  # @!attribute [rw] image
306
311
  # @return [::String]
307
312
  # Name of a public or custom image used as the data source.
308
313
  # For example, the following are all valid URLs:
309
- # (1) Specify the image by its family name:
314
+ #
315
+ # * Specify the image by its family name:
310
316
  # projects/\\{project}/global/images/family/\\{image_family}
311
- # (2) Specify the image version:
317
+ # * Specify the image version:
312
318
  # projects/\\{project}/global/images/\\{image_version}
319
+ #
313
320
  # You can also use Batch customized image in short names.
314
321
  # The following image values are supported for a boot disk:
315
- # "batch-debian": use Batch Debian images.
316
- # "batch-centos": use Batch CentOS images.
317
- # "batch-cos": use Batch Container-Optimized images.
322
+ #
323
+ # * "batch-debian": use Batch Debian images.
324
+ # * "batch-centos": use Batch CentOS images.
325
+ # * "batch-cos": use Batch Container-Optimized images.
318
326
  # @!attribute [rw] snapshot
319
327
  # @return [::String]
320
328
  # Name of a snapshot used as the data source.
329
+ # Snapshot is not supported as boot disk now.
321
330
  # @!attribute [rw] type
322
331
  # @return [::String]
323
332
  # Disk type as shown in `gcloud compute disk-types list`.
@@ -327,6 +336,7 @@ module Google
327
336
  # @!attribute [rw] size_gb
328
337
  # @return [::Integer]
329
338
  # Disk size in GB.
339
+ #
330
340
  # For persistent disk, this field is ignored if `data_source` is `image` or
331
341
  # `snapshot`.
332
342
  # For local SSD, size_gb should be a multiple of 375GB,
@@ -388,7 +398,7 @@ module Google
388
398
  # @return [::String]
389
399
  # The minimum CPU platform.
390
400
  # See
391
- # `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
401
+ # https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
392
402
  # Not yet implemented.
393
403
  # @!attribute [rw] provisioning_model
394
404
  # @return [::Google::Cloud::Batch::V1::AllocationPolicy::ProvisioningModel]
@@ -398,8 +408,9 @@ module Google
398
408
  # The accelerators attached to each VM instance.
399
409
  # @!attribute [rw] boot_disk
400
410
  # @return [::Google::Cloud::Batch::V1::AllocationPolicy::Disk]
401
- # Book disk to be created and attached to each VM by this InstancePolicy.
411
+ # Boot disk to be created and attached to each VM by this InstancePolicy.
402
412
  # Boot disk will be deleted when the VM is deleted.
413
+ # Batch API now only supports booting from image.
403
414
  # @!attribute [rw] disks
404
415
  # @return [::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>]
405
416
  # Non-boot disks to be attached for each VM created by this InstancePolicy.
@@ -434,18 +445,22 @@ module Google
434
445
  # @return [::String]
435
446
  # The URL of an existing network resource.
436
447
  # You can specify the network as a full or partial URL.
448
+ #
437
449
  # For example, the following are all valid URLs:
438
- # https://www.googleapis.com/compute/v1/projects/\\{project}/global/networks/\\{network}
439
- # projects/\\{project}/global/networks/\\{network}
440
- # global/networks/\\{network}
450
+ #
451
+ # * https://www.googleapis.com/compute/v1/projects/\\{project}/global/networks/\\{network}
452
+ # * projects/\\{project}/global/networks/\\{network}
453
+ # * global/networks/\\{network}
441
454
  # @!attribute [rw] subnetwork
442
455
  # @return [::String]
443
456
  # The URL of an existing subnetwork resource in the network.
444
457
  # You can specify the subnetwork as a full or partial URL.
458
+ #
445
459
  # For example, the following are all valid URLs:
446
- # https://www.googleapis.com/compute/v1/projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
447
- # projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
448
- # regions/\\{region}/subnetworks/\\{subnetwork}
460
+ #
461
+ # * https://www.googleapis.com/compute/v1/projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
462
+ # * projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
463
+ # * regions/\\{region}/subnetworks/\\{subnetwork}
449
464
  # @!attribute [rw] no_external_ip_address
450
465
  # @return [::Boolean]
451
466
  # Default is false (with an external IP address). Required if
@@ -469,6 +484,26 @@ module Google
469
484
  extend ::Google::Protobuf::MessageExts::ClassMethods
470
485
  end
471
486
 
487
+ # PlacementPolicy describes a group placement policy for the VMs controlled
488
+ # by this AllocationPolicy.
489
+ # @!attribute [rw] collocation
490
+ # @return [::String]
491
+ # UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
492
+ # want VMs to be located close to each other for low network latency
493
+ # between the VMs. No placement policy will be generated when collocation
494
+ # is UNSPECIFIED.
495
+ # @!attribute [rw] max_distance
496
+ # @return [::Integer]
497
+ # When specified, causes the job to fail if more than max_distance logical
498
+ # switches are required between VMs. Batch uses the most compact possible
499
+ # placement of VMs even when max_distance is not specified. An explicit
500
+ # max_distance makes that level of compactness a strict requirement.
501
+ # Not yet implemented
502
+ class PlacementPolicy
503
+ include ::Google::Protobuf::MessageExts
504
+ extend ::Google::Protobuf::MessageExts::ClassMethods
505
+ end
506
+
472
507
  # @!attribute [rw] key
473
508
  # @return [::String]
474
509
  # @!attribute [rw] value
@@ -513,11 +548,12 @@ module Google
513
548
  # @!attribute [rw] task_count
514
549
  # @return [::Integer]
515
550
  # Number of Tasks in the TaskGroup.
516
- # default is 1
551
+ # Default is 1.
517
552
  # @!attribute [rw] parallelism
518
553
  # @return [::Integer]
519
554
  # Max number of tasks that can run in parallel.
520
555
  # Default to min(task_count, 1000).
556
+ # Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
521
557
  # @!attribute [rw] task_environments
522
558
  # @return [::Array<::Google::Cloud::Batch::V1::Environment>]
523
559
  # An array of environment variable mappings, which are passed to Tasks with
@@ -81,7 +81,7 @@ module Google
81
81
 
82
82
  # Task states.
83
83
  module State
84
- # unknown state
84
+ # Unknown state.
85
85
  STATE_UNSPECIFIED = 0
86
86
 
87
87
  # The Task is created and waiting for resources.
@@ -98,6 +98,9 @@ module Google
98
98
 
99
99
  # The Task has succeeded.
100
100
  SUCCEEDED = 5
101
+
102
+ # The Task has not been executed when the Job finishes.
103
+ UNEXECUTED = 6
101
104
  end
102
105
  end
103
106
 
@@ -138,6 +141,9 @@ module Google
138
141
  # @!attribute [rw] timeout
139
142
  # @return [::Google::Protobuf::Duration]
140
143
  # Timeout for this Runnable.
144
+ # @!attribute [rw] labels
145
+ # @return [::Google::Protobuf::Map{::String => ::String}]
146
+ # Labels for this Runnable.
141
147
  class Runnable
142
148
  include ::Google::Protobuf::MessageExts
143
149
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -166,8 +172,9 @@ module Google
166
172
  # @!attribute [rw] block_external_network
167
173
  # @return [::Boolean]
168
174
  # If set to true, external network access to and from container will be
169
- # blocked. The container will use the default internal network
170
- # 'goog-internal'.
175
+ # blocked, containers that are with block_external_network as true can
176
+ # still communicate with each other, network cannot be specified in the
177
+ # `container.options` field.
171
178
  # @!attribute [rw] username
172
179
  # @return [::String]
173
180
  # Optional username for logging in to a docker registry. If username
@@ -218,6 +225,15 @@ module Google
218
225
  include ::Google::Protobuf::MessageExts
219
226
  extend ::Google::Protobuf::MessageExts::ClassMethods
220
227
  end
228
+
229
+ # @!attribute [rw] key
230
+ # @return [::String]
231
+ # @!attribute [rw] value
232
+ # @return [::String]
233
+ class LabelsEntry
234
+ include ::Google::Protobuf::MessageExts
235
+ extend ::Google::Protobuf::MessageExts::ClassMethods
236
+ end
221
237
  end
222
238
 
223
239
  # Spec of a task
@@ -35,7 +35,8 @@ module Google
35
35
  # only if the expression evaluates to `true`. A condition can add constraints
36
36
  # based on attributes of the request, the resource, or both. To learn which
37
37
  # resources support conditions in their IAM policies, see the
38
- # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
38
+ # [IAM
39
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
39
40
  #
40
41
  # **JSON example:**
41
42
  #
@@ -58,7 +59,8 @@ module Google
58
59
  # "condition": {
59
60
  # "title": "expirable access",
60
61
  # "description": "Does not grant access after Sep 2020",
61
- # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
62
+ # "expression": "request.time <
63
+ # timestamp('2020-10-01T00:00:00.000Z')",
62
64
  # }
63
65
  # }
64
66
  # ],
@@ -112,7 +114,8 @@ module Google
112
114
  # specify any valid version or leave the field unset.
113
115
  #
114
116
  # To learn which resources support conditions in their IAM policies, see the
115
- # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
117
+ # [IAM
118
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
116
119
  # @!attribute [rw] bindings
117
120
  # @return [::Array<::Google::Iam::V1::Binding>]
118
121
  # Associates a list of `members`, or principals, with a `role`. Optionally,
@@ -305,7 +308,8 @@ module Google
305
308
  # @return [::Array<::String>]
306
309
  # Specifies the identities that do not cause logging for this type of
307
310
  # permission.
308
- # Follows the same format of {::Google::Iam::V1::Binding#members Binding.members}.
311
+ # Follows the same format of
312
+ # {::Google::Iam::V1::Binding#members Binding.members}.
309
313
  class AuditLogConfig
310
314
  include ::Google::Protobuf::MessageExts
311
315
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.7.0
4
+ version: 0.8.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-03-08 00:00:00.000000000 Z
11
+ date: 2023-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common