google-apis-batch_v1 0.10.0 → 0.11.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: 4fcf71453628fcc3b9ea9cf95e381bc2a280026a4e647a2ee23555ecc1910a0c
4
- data.tar.gz: 9ccec4791a39d6f14f74e93fa9306c8343b187fe56f70364d4b92644aa7a8eaf
3
+ metadata.gz: 7864f17ee58dccc99a5902c2039638653cd5c3651132c03044f8250f79f7ab78
4
+ data.tar.gz: 4c96c1afdc92d58db519fab91534653ec601e45177b1e4946d2f95c2f7015a3e
5
5
  SHA512:
6
- metadata.gz: 0b1cc8421b5a6aa5161ff9673e09f327f3a923ac90d5a6c02c220afc4bee9a2ba776e4819b7d55455fde49e7ba02714cd3e3b803000e8efc78250cb91201bd32
7
- data.tar.gz: 678d0aed5cfeaa4a471ad8aa76b8d0aea1e6f9e9d27886e753e2946d4ebc05948ca99f0620c179a25eb60e36e93c861332d8478c489c5b7ddae4e8b201767c92
6
+ metadata.gz: ac89fa5089f9f5379e07cfa9f39a54b5620d90c0d105ce409041fae86bb33f61d924433a80a2cb7b9c27ee271d1eaf9f9a305a59cf070f552e37378dc4fb8129
7
+ data.tar.gz: 87b62b2de53be801c6c6ba308fac5aeef08ea5de5ac7d84ec7ebdc2cb60eb2865b8dba9736dcc239b5d0e823335edcec4ce376de4deb56cd1d0edf4bb3aecd30
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.10.0 (2023-03-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20230308
@@ -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
@@ -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.10.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 = "20230308"
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'
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.10.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-19 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.10.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: []