google-apis-batch_v1 0.10.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/batch_v1/classes.rb +52 -1
- data/lib/google/apis/batch_v1/gem_version.rb +2 -2
- data/lib/google/apis/batch_v1/representations.rb +18 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7137aa654cb1128f3de69f66dac9eef55653e80a1cfa2475f456d3b88c9c3f63
|
4
|
+
data.tar.gz: d40bea3b14a9910010e837c0f024a4efdfb626f3c129b422337c415692f82988
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acb785a6937afb685362dd314bb5500b283bf5605bf0c6a9a5269decd5c5e979e7a549d31cbb9dad044c2eb644e40bd19b2295ac5a4fe8e98f6c087adb27226c
|
7
|
+
data.tar.gz: 7e5cd4b5adf326187f46841c908fa2911f5481db099d51823c053f6d61b1b851e9fc2aa10fc41512db9c70e82cf533524663a8fb3bb0acf02f1b13912a24e216
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-batch_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2023-05-07)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230426
|
6
|
+
|
7
|
+
### v0.11.0 (2023-04-23)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230412
|
10
|
+
|
3
11
|
### v0.10.0 (2023-03-19)
|
4
12
|
|
5
13
|
* 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
|
@@ -1101,7 +1114,7 @@ module Google
|
|
1101
1114
|
end
|
1102
1115
|
end
|
1103
1116
|
|
1104
|
-
# A resource that represents Google Cloud
|
1117
|
+
# A resource that represents a Google Cloud location.
|
1105
1118
|
class Location
|
1106
1119
|
include Google::Apis::Core::Hashable
|
1107
1120
|
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.12.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 = "
|
25
|
+
REVISION = "20230426"
|
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.
|
4
|
+
version: 0.12.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-
|
11
|
+
date: 2023-05-14 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.12.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: []
|