google-apis-container_v1 0.31.0 → 0.34.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4484a5ead03c3a97d844046eebd73b10cb4013e0876e583064364aef44d85a24
|
4
|
+
data.tar.gz: 13d7486d3deacbb00d1965d945efb04cd25724ce7c1a5b4fd0c1e7f22fc7b2d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4eb92e9ae7cc1d56c6d2ff6bc7e40a9f115e103cbb650c3235cff4de424ba94c40509fc44338032c9755fc956ac13038a5d1f0084e03af80378047b3cd363ae
|
7
|
+
data.tar.gz: b8caf4cf2e793d82aa44591bc43b1438409c4e60600ace0d8a277e1c73c920530392315e730fc9433a89728dfeae273daf891e4a0b653cf0e8980ad4d132e55c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Release history for google-apis-container_v1
|
2
2
|
|
3
|
+
### v0.34.0 (2022-08-09)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220727
|
6
|
+
* Regenerated using generator version 0.9.0
|
7
|
+
|
8
|
+
### v0.33.0 (2022-06-30)
|
9
|
+
|
10
|
+
* Regenerated using generator version 0.8.0
|
11
|
+
* Regenerated from discovery document revision 20220615
|
12
|
+
|
13
|
+
### v0.32.0 (2022-06-18)
|
14
|
+
|
15
|
+
* Regenerated using generator version 0.7.0
|
16
|
+
|
3
17
|
### v0.31.0 (2022-06-05)
|
4
18
|
|
5
19
|
* Regenerated from discovery document revision 20220518
|
@@ -277,8 +277,9 @@ module Google
|
|
277
277
|
# Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how
|
278
278
|
# to specify min CPU platform](https://cloud.google.com/compute/docs/instances/
|
279
279
|
# specify-min-cpu-platform) This field is deprecated, min_cpu_platform should be
|
280
|
-
# specified using cloud.google.com/requested-min-cpu-platform label
|
281
|
-
# the pod. To unset the min cpu platform field pass "automatic" as
|
280
|
+
# specified using https://cloud.google.com/requested-min-cpu-platform label
|
281
|
+
# selector on the pod. To unset the min cpu platform field pass "automatic" as
|
282
|
+
# field value.
|
282
283
|
# Corresponds to the JSON property `minCpuPlatform`
|
283
284
|
# @return [String]
|
284
285
|
attr_accessor :min_cpu_platform
|
@@ -312,6 +313,23 @@ module Google
|
|
312
313
|
# upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (
|
313
314
|
# upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the
|
314
315
|
# same time. This ensures that there are always at least 4 nodes available.
|
316
|
+
# These upgrade settings configure the upgrade strategy for the node pool. Use
|
317
|
+
# strategy to switch between the strategies applied to the node pool. If the
|
318
|
+
# strategy is ROLLING, use max_surge and max_unavailable to control the level of
|
319
|
+
# parallelism and the level of disruption caused by upgrade. 1. maxSurge
|
320
|
+
# controls the number of additional nodes that can be added to the node pool
|
321
|
+
# temporarily for the time of the upgrade to increase the number of available
|
322
|
+
# nodes. 2. maxUnavailable controls the number of nodes that can be
|
323
|
+
# simultaneously unavailable. 3. (maxUnavailable + maxSurge) determines the
|
324
|
+
# level of parallelism (how many nodes are being upgraded at the same time). If
|
325
|
+
# the strategy is BLUE_GREEN, use blue_green_settings to configure the blue-
|
326
|
+
# green upgrade related settings. 1. standard_rollout_policy is the default
|
327
|
+
# policy. The policy is used to control the way blue pool gets drained. The
|
328
|
+
# draining is executed in the batch mode. The batch size could be specified as
|
329
|
+
# either percentage of the node pool size or the number of nodes.
|
330
|
+
# batch_soak_duration is the soak time after each batch gets drained. 2.
|
331
|
+
# node_pool_soak_duration is the soak time after all blue nodes are drained.
|
332
|
+
# After this period, the blue pool nodes will be deleted.
|
315
333
|
# Corresponds to the JSON property `upgradeSettings`
|
316
334
|
# @return [Google::Apis::ContainerV1::UpgradeSettings]
|
317
335
|
attr_accessor :upgrade_settings
|
@@ -358,8 +376,9 @@ module Google
|
|
358
376
|
class BinaryAuthorization
|
359
377
|
include Google::Apis::Core::Hashable
|
360
378
|
|
361
|
-
#
|
362
|
-
#
|
379
|
+
# This field is deprecated. Leave this unset and instead configure
|
380
|
+
# BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
|
381
|
+
# anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
|
363
382
|
# Corresponds to the JSON property `enabled`
|
364
383
|
# @return [Boolean]
|
365
384
|
attr_accessor :enabled
|
@@ -382,6 +401,78 @@ module Google
|
|
382
401
|
end
|
383
402
|
end
|
384
403
|
|
404
|
+
# Information relevant to blue-green upgrade.
|
405
|
+
class BlueGreenInfo
|
406
|
+
include Google::Apis::Core::Hashable
|
407
|
+
|
408
|
+
# The resource URLs of the [managed instance groups] (/compute/docs/instance-
|
409
|
+
# groups/creating-groups-of-managed-instances) associated with blue pool.
|
410
|
+
# Corresponds to the JSON property `blueInstanceGroupUrls`
|
411
|
+
# @return [Array<String>]
|
412
|
+
attr_accessor :blue_instance_group_urls
|
413
|
+
|
414
|
+
# Time to start deleting blue pool to complete blue-green upgrade, in [RFC3339](
|
415
|
+
# https://www.ietf.org/rfc/rfc3339.txt) text format.
|
416
|
+
# Corresponds to the JSON property `bluePoolDeletionStartTime`
|
417
|
+
# @return [String]
|
418
|
+
attr_accessor :blue_pool_deletion_start_time
|
419
|
+
|
420
|
+
# The resource URLs of the [managed instance groups] (/compute/docs/instance-
|
421
|
+
# groups/creating-groups-of-managed-instances) associated with green pool.
|
422
|
+
# Corresponds to the JSON property `greenInstanceGroupUrls`
|
423
|
+
# @return [Array<String>]
|
424
|
+
attr_accessor :green_instance_group_urls
|
425
|
+
|
426
|
+
# Version of green pool.
|
427
|
+
# Corresponds to the JSON property `greenPoolVersion`
|
428
|
+
# @return [String]
|
429
|
+
attr_accessor :green_pool_version
|
430
|
+
|
431
|
+
# Current blue-green upgrade phase.
|
432
|
+
# Corresponds to the JSON property `phase`
|
433
|
+
# @return [String]
|
434
|
+
attr_accessor :phase
|
435
|
+
|
436
|
+
def initialize(**args)
|
437
|
+
update!(**args)
|
438
|
+
end
|
439
|
+
|
440
|
+
# Update properties of this object
|
441
|
+
def update!(**args)
|
442
|
+
@blue_instance_group_urls = args[:blue_instance_group_urls] if args.key?(:blue_instance_group_urls)
|
443
|
+
@blue_pool_deletion_start_time = args[:blue_pool_deletion_start_time] if args.key?(:blue_pool_deletion_start_time)
|
444
|
+
@green_instance_group_urls = args[:green_instance_group_urls] if args.key?(:green_instance_group_urls)
|
445
|
+
@green_pool_version = args[:green_pool_version] if args.key?(:green_pool_version)
|
446
|
+
@phase = args[:phase] if args.key?(:phase)
|
447
|
+
end
|
448
|
+
end
|
449
|
+
|
450
|
+
# Settings for blue-green upgrade.
|
451
|
+
class BlueGreenSettings
|
452
|
+
include Google::Apis::Core::Hashable
|
453
|
+
|
454
|
+
# Time needed after draining entire blue pool. After this period, blue pool will
|
455
|
+
# be cleaned up.
|
456
|
+
# Corresponds to the JSON property `nodePoolSoakDuration`
|
457
|
+
# @return [String]
|
458
|
+
attr_accessor :node_pool_soak_duration
|
459
|
+
|
460
|
+
# Standard rollout policy is the default policy for blue-green.
|
461
|
+
# Corresponds to the JSON property `standardRolloutPolicy`
|
462
|
+
# @return [Google::Apis::ContainerV1::StandardRolloutPolicy]
|
463
|
+
attr_accessor :standard_rollout_policy
|
464
|
+
|
465
|
+
def initialize(**args)
|
466
|
+
update!(**args)
|
467
|
+
end
|
468
|
+
|
469
|
+
# Update properties of this object
|
470
|
+
def update!(**args)
|
471
|
+
@node_pool_soak_duration = args[:node_pool_soak_duration] if args.key?(:node_pool_soak_duration)
|
472
|
+
@standard_rollout_policy = args[:standard_rollout_policy] if args.key?(:standard_rollout_policy)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
385
476
|
# CancelOperationRequest cancels a single operation.
|
386
477
|
class CancelOperationRequest
|
387
478
|
include Google::Apis::Core::Hashable
|
@@ -1327,6 +1418,20 @@ module Google
|
|
1327
1418
|
end
|
1328
1419
|
end
|
1329
1420
|
|
1421
|
+
# CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
|
1422
|
+
# upgrade.
|
1423
|
+
class CompleteNodePoolUpgradeRequest
|
1424
|
+
include Google::Apis::Core::Hashable
|
1425
|
+
|
1426
|
+
def initialize(**args)
|
1427
|
+
update!(**args)
|
1428
|
+
end
|
1429
|
+
|
1430
|
+
# Update properties of this object
|
1431
|
+
def update!(**args)
|
1432
|
+
end
|
1433
|
+
end
|
1434
|
+
|
1330
1435
|
# ConfidentialNodes is configuration for the confidential nodes feature, which
|
1331
1436
|
# makes nodes run on confidential VMs.
|
1332
1437
|
class ConfidentialNodes
|
@@ -3321,7 +3426,8 @@ module Google
|
|
3321
3426
|
|
3322
3427
|
# [Output only] The resource URLs of the [managed instance groups](https://cloud.
|
3323
3428
|
# google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
|
3324
|
-
# associated with this node pool.
|
3429
|
+
# associated with this node pool. During the node pool blue-green upgrade
|
3430
|
+
# operation, the URLs contain both blue and green resources.
|
3325
3431
|
# Corresponds to the JSON property `instanceGroupUrls`
|
3326
3432
|
# @return [Array<String>]
|
3327
3433
|
attr_accessor :instance_group_urls
|
@@ -3378,6 +3484,12 @@ module Google
|
|
3378
3484
|
# @return [String]
|
3379
3485
|
attr_accessor :status_message
|
3380
3486
|
|
3487
|
+
# UpdateInfo contains resource (instance groups, etc), status and other
|
3488
|
+
# intermediate information relevant to a node pool upgrade.
|
3489
|
+
# Corresponds to the JSON property `updateInfo`
|
3490
|
+
# @return [Google::Apis::ContainerV1::UpdateInfo]
|
3491
|
+
attr_accessor :update_info
|
3492
|
+
|
3381
3493
|
# These upgrade settings control the level of parallelism and the level of
|
3382
3494
|
# disruption caused by an upgrade. maxUnavailable controls the number of nodes
|
3383
3495
|
# that can be simultaneously unavailable. maxSurge controls the number of
|
@@ -3392,6 +3504,23 @@ module Google
|
|
3392
3504
|
# upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (
|
3393
3505
|
# upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the
|
3394
3506
|
# same time. This ensures that there are always at least 4 nodes available.
|
3507
|
+
# These upgrade settings configure the upgrade strategy for the node pool. Use
|
3508
|
+
# strategy to switch between the strategies applied to the node pool. If the
|
3509
|
+
# strategy is ROLLING, use max_surge and max_unavailable to control the level of
|
3510
|
+
# parallelism and the level of disruption caused by upgrade. 1. maxSurge
|
3511
|
+
# controls the number of additional nodes that can be added to the node pool
|
3512
|
+
# temporarily for the time of the upgrade to increase the number of available
|
3513
|
+
# nodes. 2. maxUnavailable controls the number of nodes that can be
|
3514
|
+
# simultaneously unavailable. 3. (maxUnavailable + maxSurge) determines the
|
3515
|
+
# level of parallelism (how many nodes are being upgraded at the same time). If
|
3516
|
+
# the strategy is BLUE_GREEN, use blue_green_settings to configure the blue-
|
3517
|
+
# green upgrade related settings. 1. standard_rollout_policy is the default
|
3518
|
+
# policy. The policy is used to control the way blue pool gets drained. The
|
3519
|
+
# draining is executed in the batch mode. The batch size could be specified as
|
3520
|
+
# either percentage of the node pool size or the number of nodes.
|
3521
|
+
# batch_soak_duration is the soak time after each batch gets drained. 2.
|
3522
|
+
# node_pool_soak_duration is the soak time after all blue nodes are drained.
|
3523
|
+
# After this period, the blue pool nodes will be deleted.
|
3395
3524
|
# Corresponds to the JSON property `upgradeSettings`
|
3396
3525
|
# @return [Google::Apis::ContainerV1::UpgradeSettings]
|
3397
3526
|
attr_accessor :upgrade_settings
|
@@ -3421,6 +3550,7 @@ module Google
|
|
3421
3550
|
@self_link = args[:self_link] if args.key?(:self_link)
|
3422
3551
|
@status = args[:status] if args.key?(:status)
|
3423
3552
|
@status_message = args[:status_message] if args.key?(:status_message)
|
3553
|
+
@update_info = args[:update_info] if args.key?(:update_info)
|
3424
3554
|
@upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings)
|
3425
3555
|
@version = args[:version] if args.key?(:version)
|
3426
3556
|
end
|
@@ -3464,6 +3594,11 @@ module Google
|
|
3464
3594
|
attr_accessor :enabled
|
3465
3595
|
alias_method :enabled?, :enabled
|
3466
3596
|
|
3597
|
+
# Location policy used when scaling up a nodepool.
|
3598
|
+
# Corresponds to the JSON property `locationPolicy`
|
3599
|
+
# @return [String]
|
3600
|
+
attr_accessor :location_policy
|
3601
|
+
|
3467
3602
|
# Maximum number of nodes for one location in the NodePool. Must be >=
|
3468
3603
|
# min_node_count. There has to be enough quota to scale up the cluster.
|
3469
3604
|
# Corresponds to the JSON property `maxNodeCount`
|
@@ -3476,6 +3611,21 @@ module Google
|
|
3476
3611
|
# @return [Fixnum]
|
3477
3612
|
attr_accessor :min_node_count
|
3478
3613
|
|
3614
|
+
# Maximum number of nodes in the node pool. Must be greater than
|
3615
|
+
# total_min_node_count. There has to be enough quota to scale up the cluster.
|
3616
|
+
# The total_*_node_count fields are mutually exclusive with the *_node_count
|
3617
|
+
# fields.
|
3618
|
+
# Corresponds to the JSON property `totalMaxNodeCount`
|
3619
|
+
# @return [Fixnum]
|
3620
|
+
attr_accessor :total_max_node_count
|
3621
|
+
|
3622
|
+
# Minimum number of nodes in the node pool. Must be greater than 1 less than
|
3623
|
+
# total_max_node_count. The total_*_node_count fields are mutually exclusive
|
3624
|
+
# with the *_node_count fields.
|
3625
|
+
# Corresponds to the JSON property `totalMinNodeCount`
|
3626
|
+
# @return [Fixnum]
|
3627
|
+
attr_accessor :total_min_node_count
|
3628
|
+
|
3479
3629
|
def initialize(**args)
|
3480
3630
|
update!(**args)
|
3481
3631
|
end
|
@@ -3484,8 +3634,11 @@ module Google
|
|
3484
3634
|
def update!(**args)
|
3485
3635
|
@autoprovisioned = args[:autoprovisioned] if args.key?(:autoprovisioned)
|
3486
3636
|
@enabled = args[:enabled] if args.key?(:enabled)
|
3637
|
+
@location_policy = args[:location_policy] if args.key?(:location_policy)
|
3487
3638
|
@max_node_count = args[:max_node_count] if args.key?(:max_node_count)
|
3488
3639
|
@min_node_count = args[:min_node_count] if args.key?(:min_node_count)
|
3640
|
+
@total_max_node_count = args[:total_max_node_count] if args.key?(:total_max_node_count)
|
3641
|
+
@total_min_node_count = args[:total_min_node_count] if args.key?(:total_min_node_count)
|
3489
3642
|
end
|
3490
3643
|
end
|
3491
3644
|
|
@@ -4082,6 +4235,12 @@ module Google
|
|
4082
4235
|
# @return [String]
|
4083
4236
|
attr_accessor :project_id
|
4084
4237
|
|
4238
|
+
# Option for rollback to ignore the PodDisruptionBudget. Default value is false.
|
4239
|
+
# Corresponds to the JSON property `respectPdb`
|
4240
|
+
# @return [Boolean]
|
4241
|
+
attr_accessor :respect_pdb
|
4242
|
+
alias_method :respect_pdb?, :respect_pdb
|
4243
|
+
|
4085
4244
|
# Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.
|
4086
4245
|
# com/compute/docs/zones#available) in which the cluster resides. This field has
|
4087
4246
|
# been deprecated and replaced by the name field.
|
@@ -4099,6 +4258,7 @@ module Google
|
|
4099
4258
|
@name = args[:name] if args.key?(:name)
|
4100
4259
|
@node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
|
4101
4260
|
@project_id = args[:project_id] if args.key?(:project_id)
|
4261
|
+
@respect_pdb = args[:respect_pdb] if args.key?(:respect_pdb)
|
4102
4262
|
@zone = args[:zone] if args.key?(:zone)
|
4103
4263
|
end
|
4104
4264
|
end
|
@@ -4979,6 +5139,38 @@ module Google
|
|
4979
5139
|
end
|
4980
5140
|
end
|
4981
5141
|
|
5142
|
+
# Standard rollout policy is the default policy for blue-green.
|
5143
|
+
class StandardRolloutPolicy
|
5144
|
+
include Google::Apis::Core::Hashable
|
5145
|
+
|
5146
|
+
# Number of blue nodes to drain in a batch.
|
5147
|
+
# Corresponds to the JSON property `batchNodeCount`
|
5148
|
+
# @return [Fixnum]
|
5149
|
+
attr_accessor :batch_node_count
|
5150
|
+
|
5151
|
+
# Percentage of the bool pool nodes to drain in a batch. The range of this field
|
5152
|
+
# should be (0.0, 1.0].
|
5153
|
+
# Corresponds to the JSON property `batchPercentage`
|
5154
|
+
# @return [Float]
|
5155
|
+
attr_accessor :batch_percentage
|
5156
|
+
|
5157
|
+
# Soak time after each batch gets drained. Default to zero.
|
5158
|
+
# Corresponds to the JSON property `batchSoakDuration`
|
5159
|
+
# @return [String]
|
5160
|
+
attr_accessor :batch_soak_duration
|
5161
|
+
|
5162
|
+
def initialize(**args)
|
5163
|
+
update!(**args)
|
5164
|
+
end
|
5165
|
+
|
5166
|
+
# Update properties of this object
|
5167
|
+
def update!(**args)
|
5168
|
+
@batch_node_count = args[:batch_node_count] if args.key?(:batch_node_count)
|
5169
|
+
@batch_percentage = args[:batch_percentage] if args.key?(:batch_percentage)
|
5170
|
+
@batch_soak_duration = args[:batch_soak_duration] if args.key?(:batch_soak_duration)
|
5171
|
+
end
|
5172
|
+
end
|
5173
|
+
|
4982
5174
|
# StartIPRotationRequest creates a new IP for the cluster and then performs a
|
4983
5175
|
# node upgrade on each node pool to point to the new IP.
|
4984
5176
|
class StartIpRotationRequest
|
@@ -5184,6 +5376,26 @@ module Google
|
|
5184
5376
|
end
|
5185
5377
|
end
|
5186
5378
|
|
5379
|
+
# UpdateInfo contains resource (instance groups, etc), status and other
|
5380
|
+
# intermediate information relevant to a node pool upgrade.
|
5381
|
+
class UpdateInfo
|
5382
|
+
include Google::Apis::Core::Hashable
|
5383
|
+
|
5384
|
+
# Information relevant to blue-green upgrade.
|
5385
|
+
# Corresponds to the JSON property `blueGreenInfo`
|
5386
|
+
# @return [Google::Apis::ContainerV1::BlueGreenInfo]
|
5387
|
+
attr_accessor :blue_green_info
|
5388
|
+
|
5389
|
+
def initialize(**args)
|
5390
|
+
update!(**args)
|
5391
|
+
end
|
5392
|
+
|
5393
|
+
# Update properties of this object
|
5394
|
+
def update!(**args)
|
5395
|
+
@blue_green_info = args[:blue_green_info] if args.key?(:blue_green_info)
|
5396
|
+
end
|
5397
|
+
end
|
5398
|
+
|
5187
5399
|
# UpdateMasterRequest updates the master of the cluster.
|
5188
5400
|
class UpdateMasterRequest
|
5189
5401
|
include Google::Apis::Core::Hashable
|
@@ -5302,6 +5514,11 @@ module Google
|
|
5302
5514
|
# @return [String]
|
5303
5515
|
attr_accessor :name
|
5304
5516
|
|
5517
|
+
# Parameters for node pool-level network config.
|
5518
|
+
# Corresponds to the JSON property `nodeNetworkConfig`
|
5519
|
+
# @return [Google::Apis::ContainerV1::NodeNetworkConfig]
|
5520
|
+
attr_accessor :node_network_config
|
5521
|
+
|
5305
5522
|
# Deprecated. The name of the node pool to upgrade. This field has been
|
5306
5523
|
# deprecated and replaced by the name field.
|
5307
5524
|
# Corresponds to the JSON property `nodePoolId`
|
@@ -5352,6 +5569,23 @@ module Google
|
|
5352
5569
|
# upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (
|
5353
5570
|
# upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the
|
5354
5571
|
# same time. This ensures that there are always at least 4 nodes available.
|
5572
|
+
# These upgrade settings configure the upgrade strategy for the node pool. Use
|
5573
|
+
# strategy to switch between the strategies applied to the node pool. If the
|
5574
|
+
# strategy is ROLLING, use max_surge and max_unavailable to control the level of
|
5575
|
+
# parallelism and the level of disruption caused by upgrade. 1. maxSurge
|
5576
|
+
# controls the number of additional nodes that can be added to the node pool
|
5577
|
+
# temporarily for the time of the upgrade to increase the number of available
|
5578
|
+
# nodes. 2. maxUnavailable controls the number of nodes that can be
|
5579
|
+
# simultaneously unavailable. 3. (maxUnavailable + maxSurge) determines the
|
5580
|
+
# level of parallelism (how many nodes are being upgraded at the same time). If
|
5581
|
+
# the strategy is BLUE_GREEN, use blue_green_settings to configure the blue-
|
5582
|
+
# green upgrade related settings. 1. standard_rollout_policy is the default
|
5583
|
+
# policy. The policy is used to control the way blue pool gets drained. The
|
5584
|
+
# draining is executed in the batch mode. The batch size could be specified as
|
5585
|
+
# either percentage of the node pool size or the number of nodes.
|
5586
|
+
# batch_soak_duration is the soak time after each batch gets drained. 2.
|
5587
|
+
# node_pool_soak_duration is the soak time after all blue nodes are drained.
|
5588
|
+
# After this period, the blue pool nodes will be deleted.
|
5355
5589
|
# Corresponds to the JSON property `upgradeSettings`
|
5356
5590
|
# @return [Google::Apis::ContainerV1::UpgradeSettings]
|
5357
5591
|
attr_accessor :upgrade_settings
|
@@ -5385,6 +5619,7 @@ module Google
|
|
5385
5619
|
@linux_node_config = args[:linux_node_config] if args.key?(:linux_node_config)
|
5386
5620
|
@locations = args[:locations] if args.key?(:locations)
|
5387
5621
|
@name = args[:name] if args.key?(:name)
|
5622
|
+
@node_network_config = args[:node_network_config] if args.key?(:node_network_config)
|
5388
5623
|
@node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
|
5389
5624
|
@node_version = args[:node_version] if args.key?(:node_version)
|
5390
5625
|
@project_id = args[:project_id] if args.key?(:project_id)
|
@@ -5503,9 +5738,31 @@ module Google
|
|
5503
5738
|
# upgrade process upgrades 3 nodes simultaneously. It creates 2 additional (
|
5504
5739
|
# upgraded) nodes, then it brings down 3 old (not yet upgraded) nodes at the
|
5505
5740
|
# same time. This ensures that there are always at least 4 nodes available.
|
5741
|
+
# These upgrade settings configure the upgrade strategy for the node pool. Use
|
5742
|
+
# strategy to switch between the strategies applied to the node pool. If the
|
5743
|
+
# strategy is ROLLING, use max_surge and max_unavailable to control the level of
|
5744
|
+
# parallelism and the level of disruption caused by upgrade. 1. maxSurge
|
5745
|
+
# controls the number of additional nodes that can be added to the node pool
|
5746
|
+
# temporarily for the time of the upgrade to increase the number of available
|
5747
|
+
# nodes. 2. maxUnavailable controls the number of nodes that can be
|
5748
|
+
# simultaneously unavailable. 3. (maxUnavailable + maxSurge) determines the
|
5749
|
+
# level of parallelism (how many nodes are being upgraded at the same time). If
|
5750
|
+
# the strategy is BLUE_GREEN, use blue_green_settings to configure the blue-
|
5751
|
+
# green upgrade related settings. 1. standard_rollout_policy is the default
|
5752
|
+
# policy. The policy is used to control the way blue pool gets drained. The
|
5753
|
+
# draining is executed in the batch mode. The batch size could be specified as
|
5754
|
+
# either percentage of the node pool size or the number of nodes.
|
5755
|
+
# batch_soak_duration is the soak time after each batch gets drained. 2.
|
5756
|
+
# node_pool_soak_duration is the soak time after all blue nodes are drained.
|
5757
|
+
# After this period, the blue pool nodes will be deleted.
|
5506
5758
|
class UpgradeSettings
|
5507
5759
|
include Google::Apis::Core::Hashable
|
5508
5760
|
|
5761
|
+
# Settings for blue-green upgrade.
|
5762
|
+
# Corresponds to the JSON property `blueGreenSettings`
|
5763
|
+
# @return [Google::Apis::ContainerV1::BlueGreenSettings]
|
5764
|
+
attr_accessor :blue_green_settings
|
5765
|
+
|
5509
5766
|
# The maximum number of nodes that can be created beyond the current size of the
|
5510
5767
|
# node pool during the upgrade process.
|
5511
5768
|
# Corresponds to the JSON property `maxSurge`
|
@@ -5518,14 +5775,21 @@ module Google
|
|
5518
5775
|
# @return [Fixnum]
|
5519
5776
|
attr_accessor :max_unavailable
|
5520
5777
|
|
5778
|
+
# Update strategy of the node pool.
|
5779
|
+
# Corresponds to the JSON property `strategy`
|
5780
|
+
# @return [String]
|
5781
|
+
attr_accessor :strategy
|
5782
|
+
|
5521
5783
|
def initialize(**args)
|
5522
5784
|
update!(**args)
|
5523
5785
|
end
|
5524
5786
|
|
5525
5787
|
# Update properties of this object
|
5526
5788
|
def update!(**args)
|
5789
|
+
@blue_green_settings = args[:blue_green_settings] if args.key?(:blue_green_settings)
|
5527
5790
|
@max_surge = args[:max_surge] if args.key?(:max_surge)
|
5528
5791
|
@max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable)
|
5792
|
+
@strategy = args[:strategy] if args.key?(:strategy)
|
5529
5793
|
end
|
5530
5794
|
end
|
5531
5795
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ContainerV1
|
18
18
|
# Version of the google-apis-container_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.34.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220727"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -76,6 +76,18 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
+
class BlueGreenInfo
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class BlueGreenSettings
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
79
91
|
class CancelOperationRequest
|
80
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
93
|
|
@@ -124,6 +136,12 @@ module Google
|
|
124
136
|
include Google::Apis::Core::JsonObjectSupport
|
125
137
|
end
|
126
138
|
|
139
|
+
class CompleteNodePoolUpgradeRequest
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
127
145
|
class ConfidentialNodes
|
128
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
147
|
|
@@ -688,6 +706,12 @@ module Google
|
|
688
706
|
include Google::Apis::Core::JsonObjectSupport
|
689
707
|
end
|
690
708
|
|
709
|
+
class StandardRolloutPolicy
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
691
715
|
class StartIpRotationRequest
|
692
716
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
693
717
|
|
@@ -718,6 +742,12 @@ module Google
|
|
718
742
|
include Google::Apis::Core::JsonObjectSupport
|
719
743
|
end
|
720
744
|
|
745
|
+
class UpdateInfo
|
746
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
747
|
+
|
748
|
+
include Google::Apis::Core::JsonObjectSupport
|
749
|
+
end
|
750
|
+
|
721
751
|
class UpdateMasterRequest
|
722
752
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
723
753
|
|
@@ -883,6 +913,26 @@ module Google
|
|
883
913
|
end
|
884
914
|
end
|
885
915
|
|
916
|
+
class BlueGreenInfo
|
917
|
+
# @private
|
918
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
919
|
+
collection :blue_instance_group_urls, as: 'blueInstanceGroupUrls'
|
920
|
+
property :blue_pool_deletion_start_time, as: 'bluePoolDeletionStartTime'
|
921
|
+
collection :green_instance_group_urls, as: 'greenInstanceGroupUrls'
|
922
|
+
property :green_pool_version, as: 'greenPoolVersion'
|
923
|
+
property :phase, as: 'phase'
|
924
|
+
end
|
925
|
+
end
|
926
|
+
|
927
|
+
class BlueGreenSettings
|
928
|
+
# @private
|
929
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
930
|
+
property :node_pool_soak_duration, as: 'nodePoolSoakDuration'
|
931
|
+
property :standard_rollout_policy, as: 'standardRolloutPolicy', class: Google::Apis::ContainerV1::StandardRolloutPolicy, decorator: Google::Apis::ContainerV1::StandardRolloutPolicy::Representation
|
932
|
+
|
933
|
+
end
|
934
|
+
end
|
935
|
+
|
886
936
|
class CancelOperationRequest
|
887
937
|
# @private
|
888
938
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1102,6 +1152,12 @@ module Google
|
|
1102
1152
|
end
|
1103
1153
|
end
|
1104
1154
|
|
1155
|
+
class CompleteNodePoolUpgradeRequest
|
1156
|
+
# @private
|
1157
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1158
|
+
end
|
1159
|
+
end
|
1160
|
+
|
1105
1161
|
class ConfidentialNodes
|
1106
1162
|
# @private
|
1107
1163
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1660,6 +1716,8 @@ module Google
|
|
1660
1716
|
property :self_link, as: 'selfLink'
|
1661
1717
|
property :status, as: 'status'
|
1662
1718
|
property :status_message, as: 'statusMessage'
|
1719
|
+
property :update_info, as: 'updateInfo', class: Google::Apis::ContainerV1::UpdateInfo, decorator: Google::Apis::ContainerV1::UpdateInfo::Representation
|
1720
|
+
|
1663
1721
|
property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1::UpgradeSettings, decorator: Google::Apis::ContainerV1::UpgradeSettings::Representation
|
1664
1722
|
|
1665
1723
|
property :version, as: 'version'
|
@@ -1679,8 +1737,11 @@ module Google
|
|
1679
1737
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1680
1738
|
property :autoprovisioned, as: 'autoprovisioned'
|
1681
1739
|
property :enabled, as: 'enabled'
|
1740
|
+
property :location_policy, as: 'locationPolicy'
|
1682
1741
|
property :max_node_count, as: 'maxNodeCount'
|
1683
1742
|
property :min_node_count, as: 'minNodeCount'
|
1743
|
+
property :total_max_node_count, as: 'totalMaxNodeCount'
|
1744
|
+
property :total_min_node_count, as: 'totalMinNodeCount'
|
1684
1745
|
end
|
1685
1746
|
end
|
1686
1747
|
|
@@ -1846,6 +1907,7 @@ module Google
|
|
1846
1907
|
property :name, as: 'name'
|
1847
1908
|
property :node_pool_id, as: 'nodePoolId'
|
1848
1909
|
property :project_id, as: 'projectId'
|
1910
|
+
property :respect_pdb, as: 'respectPdb'
|
1849
1911
|
property :zone, as: 'zone'
|
1850
1912
|
end
|
1851
1913
|
end
|
@@ -2051,6 +2113,15 @@ module Google
|
|
2051
2113
|
end
|
2052
2114
|
end
|
2053
2115
|
|
2116
|
+
class StandardRolloutPolicy
|
2117
|
+
# @private
|
2118
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2119
|
+
property :batch_node_count, as: 'batchNodeCount'
|
2120
|
+
property :batch_percentage, as: 'batchPercentage'
|
2121
|
+
property :batch_soak_duration, as: 'batchSoakDuration'
|
2122
|
+
end
|
2123
|
+
end
|
2124
|
+
|
2054
2125
|
class StartIpRotationRequest
|
2055
2126
|
# @private
|
2056
2127
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2102,6 +2173,14 @@ module Google
|
|
2102
2173
|
end
|
2103
2174
|
end
|
2104
2175
|
|
2176
|
+
class UpdateInfo
|
2177
|
+
# @private
|
2178
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2179
|
+
property :blue_green_info, as: 'blueGreenInfo', class: Google::Apis::ContainerV1::BlueGreenInfo, decorator: Google::Apis::ContainerV1::BlueGreenInfo::Representation
|
2180
|
+
|
2181
|
+
end
|
2182
|
+
end
|
2183
|
+
|
2105
2184
|
class UpdateMasterRequest
|
2106
2185
|
# @private
|
2107
2186
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2132,6 +2211,8 @@ module Google
|
|
2132
2211
|
|
2133
2212
|
collection :locations, as: 'locations'
|
2134
2213
|
property :name, as: 'name'
|
2214
|
+
property :node_network_config, as: 'nodeNetworkConfig', class: Google::Apis::ContainerV1::NodeNetworkConfig, decorator: Google::Apis::ContainerV1::NodeNetworkConfig::Representation
|
2215
|
+
|
2135
2216
|
property :node_pool_id, as: 'nodePoolId'
|
2136
2217
|
property :node_version, as: 'nodeVersion'
|
2137
2218
|
property :project_id, as: 'projectId'
|
@@ -2173,8 +2254,11 @@ module Google
|
|
2173
2254
|
class UpgradeSettings
|
2174
2255
|
# @private
|
2175
2256
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2257
|
+
property :blue_green_settings, as: 'blueGreenSettings', class: Google::Apis::ContainerV1::BlueGreenSettings, decorator: Google::Apis::ContainerV1::BlueGreenSettings::Representation
|
2258
|
+
|
2176
2259
|
property :max_surge, as: 'maxSurge'
|
2177
2260
|
property :max_unavailable, as: 'maxUnavailable'
|
2261
|
+
property :strategy, as: 'strategy'
|
2178
2262
|
end
|
2179
2263
|
end
|
2180
2264
|
|
@@ -795,6 +795,41 @@ module Google
|
|
795
795
|
execute_or_queue_command(command, &block)
|
796
796
|
end
|
797
797
|
|
798
|
+
# CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.
|
799
|
+
# @param [String] name
|
800
|
+
# The name (project, location, cluster, node pool id) of the node pool to
|
801
|
+
# complete upgrade. Specified in the format `projects/*/locations/*/clusters/*/
|
802
|
+
# nodePools/*`.
|
803
|
+
# @param [Google::Apis::ContainerV1::CompleteNodePoolUpgradeRequest] complete_node_pool_upgrade_request_object
|
804
|
+
# @param [String] fields
|
805
|
+
# Selector specifying which fields to include in a partial response.
|
806
|
+
# @param [String] quota_user
|
807
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
808
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
809
|
+
# @param [Google::Apis::RequestOptions] options
|
810
|
+
# Request-specific options
|
811
|
+
#
|
812
|
+
# @yield [result, err] Result & error if block supplied
|
813
|
+
# @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
|
814
|
+
# @yieldparam err [StandardError] error object if request failed
|
815
|
+
#
|
816
|
+
# @return [Google::Apis::ContainerV1::Empty]
|
817
|
+
#
|
818
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
819
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
820
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
821
|
+
def complete_project_location_cluster_node_pool_upgrade(name, complete_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
822
|
+
command = make_simple_command(:post, 'v1/{+name}:completeUpgrade', options)
|
823
|
+
command.request_representation = Google::Apis::ContainerV1::CompleteNodePoolUpgradeRequest::Representation
|
824
|
+
command.request_object = complete_node_pool_upgrade_request_object
|
825
|
+
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
|
826
|
+
command.response_class = Google::Apis::ContainerV1::Empty
|
827
|
+
command.params['name'] = name unless name.nil?
|
828
|
+
command.query['fields'] = fields unless fields.nil?
|
829
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
830
|
+
execute_or_queue_command(command, &block)
|
831
|
+
end
|
832
|
+
|
798
833
|
# Creates a node pool for a cluster.
|
799
834
|
# @param [String] parent
|
800
835
|
# The parent (project, location, cluster name) where the node pool will be
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-container_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.34.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: 2022-
|
11
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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-container_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-container_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-container_v1/v0.34.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-container_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|