google-apis-batch_v1 0.9.0 → 0.11.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: d2b37949ddbd278ebe515ce2020a14e9285a8e05f0337427cfa35e66629d3199
4
- data.tar.gz: da552015e911ca62fdc196496f9b049f485ef42dd14c7e6a04c4ad8b77fe06fa
3
+ metadata.gz: 7864f17ee58dccc99a5902c2039638653cd5c3651132c03044f8250f79f7ab78
4
+ data.tar.gz: 4c96c1afdc92d58db519fab91534653ec601e45177b1e4946d2f95c2f7015a3e
5
5
  SHA512:
6
- metadata.gz: 50269c1f66ffd97564cd12036a65dcd7e388d0ad2ee087a1efc1ed918e2a2c6fe5130f0a24cbcc0811155c9baf8b4d06ea4d9f9f02c46351d5340b1527f9ddca
7
- data.tar.gz: b4463158c6dd213e93ec8744cdd345e7039202cd3867a27ef8636d5d2d81d1f819bbcd543aded910d4793a67369a5dfbf6b8bdc822149471cdde07991fec7a03
6
+ metadata.gz: ac89fa5089f9f5379e07cfa9f39a54b5620d90c0d105ce409041fae86bb33f61d924433a80a2cb7b9c27ee271d1eaf9f9a305a59cf070f552e37378dc4fb8129
7
+ data.tar.gz: 87b62b2de53be801c6c6ba308fac5aeef08ea5de5ac7d84ec7ebdc2cb60eb2865b8dba9736dcc239b5d0e823335edcec4ce376de4deb56cd1d0edf4bb3aecd30
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-batch_v1
2
2
 
3
+ ### v0.11.0 (2023-04-23)
4
+
5
+ * Regenerated from discovery document revision 20230412
6
+
7
+ ### v0.10.0 (2023-03-19)
8
+
9
+ * Regenerated from discovery document revision 20230308
10
+
3
11
  ### v0.9.0 (2023-03-12)
4
12
 
5
13
  * Regenerated from discovery document revision 20230301
@@ -219,6 +219,11 @@ module Google
219
219
  # @return [String]
220
220
  attr_accessor :task
221
221
 
222
+ # TaskSource represents the source of the task.
223
+ # Corresponds to the JSON property `taskSource`
224
+ # @return [String]
225
+ attr_accessor :task_source
226
+
222
227
  def initialize(**args)
223
228
  update!(**args)
224
229
  end
@@ -230,6 +235,7 @@ module Google
230
235
  @spec = args[:spec] if args.key?(:spec)
231
236
  @status = args[:status] if args.key?(:status)
232
237
  @task = args[:task] if args.key?(:task)
238
+ @task_source = args[:task_source] if args.key?(:task_source)
233
239
  end
234
240
  end
235
241
 
@@ -326,6 +332,12 @@ module Google
326
332
  # @return [Google::Apis::BatchV1::NetworkPolicy]
327
333
  attr_accessor :network
328
334
 
335
+ # PlacementPolicy describes a group placement policy for the VMs controlled by
336
+ # this AllocationPolicy.
337
+ # Corresponds to the JSON property `placement`
338
+ # @return [Google::Apis::BatchV1::PlacementPolicy]
339
+ attr_accessor :placement
340
+
329
341
  # Carries information about a Google Cloud service account.
330
342
  # Corresponds to the JSON property `serviceAccount`
331
343
  # @return [Google::Apis::BatchV1::ServiceAccount]
@@ -341,6 +353,7 @@ module Google
341
353
  @labels = args[:labels] if args.key?(:labels)
342
354
  @location = args[:location] if args.key?(:location)
343
355
  @network = args[:network] if args.key?(:network)
356
+ @placement = args[:placement] if args.key?(:placement)
344
357
  @service_account = args[:service_account] if args.key?(:service_account)
345
358
  end
346
359
  end
@@ -1442,6 +1455,38 @@ module Google
1442
1455
  end
1443
1456
  end
1444
1457
 
1458
+ # PlacementPolicy describes a group placement policy for the VMs controlled by
1459
+ # this AllocationPolicy.
1460
+ class PlacementPolicy
1461
+ include Google::Apis::Core::Hashable
1462
+
1463
+ # UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want
1464
+ # VMs to be located close to each other for low network latency between the VMs.
1465
+ # No placement policy will be generated when collocation is UNSPECIFIED.
1466
+ # Corresponds to the JSON property `collocation`
1467
+ # @return [String]
1468
+ attr_accessor :collocation
1469
+
1470
+ # When specified, causes the job to fail if more than max_distance logical
1471
+ # switches are required between VMs. Batch uses the most compact possible
1472
+ # placement of VMs even when max_distance is not specified. An explicit
1473
+ # max_distance makes that level of compactness a strict requirement. Not yet
1474
+ # implemented
1475
+ # Corresponds to the JSON property `maxDistance`
1476
+ # @return [Fixnum]
1477
+ attr_accessor :max_distance
1478
+
1479
+ def initialize(**args)
1480
+ update!(**args)
1481
+ end
1482
+
1483
+ # Update properties of this object
1484
+ def update!(**args)
1485
+ @collocation = args[:collocation] if args.key?(:collocation)
1486
+ @max_distance = args[:max_distance] if args.key?(:max_distance)
1487
+ end
1488
+ end
1489
+
1445
1490
  # Request to report agent's state. The Request itself implies the agent is
1446
1491
  # healthy.
1447
1492
  class ReportAgentStateRequest
@@ -1552,6 +1597,11 @@ module Google
1552
1597
  attr_accessor :ignore_exit_status
1553
1598
  alias_method :ignore_exit_status?, :ignore_exit_status
1554
1599
 
1600
+ # Labels for this Runnable.
1601
+ # Corresponds to the JSON property `labels`
1602
+ # @return [Hash<String,String>]
1603
+ attr_accessor :labels
1604
+
1555
1605
  # Script runnable.
1556
1606
  # Corresponds to the JSON property `script`
1557
1607
  # @return [Google::Apis::BatchV1::Script]
@@ -1574,6 +1624,7 @@ module Google
1574
1624
  @container = args[:container] if args.key?(:container)
1575
1625
  @environment = args[:environment] if args.key?(:environment)
1576
1626
  @ignore_exit_status = args[:ignore_exit_status] if args.key?(:ignore_exit_status)
1627
+ @labels = args[:labels] if args.key?(:labels)
1577
1628
  @script = args[:script] if args.key?(:script)
1578
1629
  @timeout = args[:timeout] if args.key?(:timeout)
1579
1630
  end
@@ -1786,6 +1837,7 @@ module Google
1786
1837
  attr_accessor :name
1787
1838
 
1788
1839
  # Max number of tasks that can run in parallel. Default to min(task_count, 1000).
1840
+ # Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
1789
1841
  # Corresponds to the JSON property `parallelism`
1790
1842
  # @return [Fixnum]
1791
1843
  attr_accessor :parallelism
@@ -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.9.0"
19
+ GEM_VERSION = "0.11.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 = "20230301"
25
+ REVISION = "20230412"
26
26
  end
27
27
  end
28
28
  end
@@ -250,6 +250,12 @@ module Google
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
+ class PlacementPolicy
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
253
259
  class ReportAgentStateRequest
254
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
261
 
@@ -387,6 +393,7 @@ module Google
387
393
  property :status, as: 'status', class: Google::Apis::BatchV1::TaskStatus, decorator: Google::Apis::BatchV1::TaskStatus::Representation
388
394
 
389
395
  property :task, as: 'task'
396
+ property :task_source, as: 'taskSource'
390
397
  end
391
398
  end
392
399
 
@@ -419,6 +426,8 @@ module Google
419
426
 
420
427
  property :network, as: 'network', class: Google::Apis::BatchV1::NetworkPolicy, decorator: Google::Apis::BatchV1::NetworkPolicy::Representation
421
428
 
429
+ property :placement, as: 'placement', class: Google::Apis::BatchV1::PlacementPolicy, decorator: Google::Apis::BatchV1::PlacementPolicy::Representation
430
+
422
431
  property :service_account, as: 'serviceAccount', class: Google::Apis::BatchV1::ServiceAccount, decorator: Google::Apis::BatchV1::ServiceAccount::Representation
423
432
 
424
433
  end
@@ -723,6 +732,14 @@ module Google
723
732
  end
724
733
  end
725
734
 
735
+ class PlacementPolicy
736
+ # @private
737
+ class Representation < Google::Apis::Core::JsonRepresentation
738
+ property :collocation, as: 'collocation'
739
+ property :max_distance, :numeric_string => true, as: 'maxDistance'
740
+ end
741
+ end
742
+
726
743
  class ReportAgentStateRequest
727
744
  # @private
728
745
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -757,6 +774,7 @@ module Google
757
774
  property :environment, as: 'environment', class: Google::Apis::BatchV1::Environment, decorator: Google::Apis::BatchV1::Environment::Representation
758
775
 
759
776
  property :ignore_exit_status, as: 'ignoreExitStatus'
777
+ hash :labels, as: 'labels'
760
778
  property :script, as: 'script', class: Google::Apis::BatchV1::Script, decorator: Google::Apis::BatchV1::Script::Representation
761
779
 
762
780
  property :timeout, as: 'timeout'
@@ -466,13 +466,7 @@ module Google
466
466
  end
467
467
 
468
468
  # Lists operations that match the specified filter in the request. If the server
469
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
470
- # binding allows API services to override the binding to use different resource
471
- # name schemes, such as `users/*/operations`. To override the binding, API
472
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
473
- # service configuration. For backwards compatibility, the default name includes
474
- # the operations collection id, however overriding users must ensure the name
475
- # binding is the parent resource, without the operations collection id.
469
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
476
470
  # @param [String] name
477
471
  # The name of the operation's parent resource.
478
472
  # @param [String] filter
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.9.0
4
+ version: 0.11.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-12 00:00:00.000000000 Z
11
+ date: 2023-04-23 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.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.11.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: []