google-apis-container_v1beta1 0.34.0 → 0.35.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f02b20924f90584bc53fd3f6d52b3cbcce6866adf5b120d97c9c0c99f850d3d
|
4
|
+
data.tar.gz: d9466a794f6afb964372698949e617eace93defbf5aec1cf91baa14328152b5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01336a8a24f1e449ee27f4c46434cfb20860359d50eec4390f0927160f544fc17dbf8d59288dd5867e120cf911a51c020d2c432c54a868c8a06183c816c477a0
|
7
|
+
data.tar.gz: 4eeb9bcd75fd03f23f9889deb99e658f63990f393f8cc41d83d2e089c256752d84a09d414ef7e3ae80804c97a7d1a7ec92d878d0e49ef9f58d1a17e0851c7aeb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-container_v1beta1
|
2
2
|
|
3
|
+
### v0.35.0 (2022-06-30)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.8.0
|
6
|
+
* Regenerated from discovery document revision 20220615
|
7
|
+
|
3
8
|
### v0.34.0 (2022-06-24)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20220610
|
@@ -332,7 +332,23 @@ module Google
|
|
332
332
|
# @return [Google::Apis::ContainerV1beta1::ShieldedInstanceConfig]
|
333
333
|
attr_accessor :shielded_instance_config
|
334
334
|
|
335
|
-
#
|
335
|
+
# These upgrade settings configure the upgrade strategy for the node pool. Use
|
336
|
+
# strategy to switch between the strategies applied to the node pool. If the
|
337
|
+
# strategy is SURGE, use max_surge and max_unavailable to control the level of
|
338
|
+
# parallelism and the level of disruption caused by upgrade. 1. maxSurge
|
339
|
+
# controls the number of additional nodes that can be added to the node pool
|
340
|
+
# temporarily for the time of the upgrade to increase the number of available
|
341
|
+
# nodes. 2. maxUnavailable controls the number of nodes that can be
|
342
|
+
# simultaneously unavailable. 3. (maxUnavailable + maxSurge) determines the
|
343
|
+
# level of parallelism (how many nodes are being upgraded at the same time). If
|
344
|
+
# the strategy is BLUE_GREEN, use blue_green_settings to configure the blue-
|
345
|
+
# green upgrade related settings. 1. standard_rollout_policy is the default
|
346
|
+
# policy. The policy is used to control the way blue pool gets drained. The
|
347
|
+
# draining is executed in the batch mode. The batch size could be specified as
|
348
|
+
# either percentage of the node pool size or the number of nodes.
|
349
|
+
# batch_soak_duration is the soak time after each batch gets drained. 2.
|
350
|
+
# node_pool_soak_duration is the soak time after all blue nodes are drained.
|
351
|
+
# After this period, the blue pool nodes will be deleted.
|
336
352
|
# Corresponds to the JSON property `upgradeSettings`
|
337
353
|
# @return [Google::Apis::ContainerV1beta1::UpgradeSettings]
|
338
354
|
attr_accessor :upgrade_settings
|
@@ -428,6 +444,78 @@ module Google
|
|
428
444
|
end
|
429
445
|
end
|
430
446
|
|
447
|
+
# Information relevant to blue-green upgrade.
|
448
|
+
class BlueGreenInfo
|
449
|
+
include Google::Apis::Core::Hashable
|
450
|
+
|
451
|
+
# The resource URLs of the [managed instance groups] (/compute/docs/instance-
|
452
|
+
# groups/creating-groups-of-managed-instances) associated with blue pool.
|
453
|
+
# Corresponds to the JSON property `blueInstanceGroupUrls`
|
454
|
+
# @return [Array<String>]
|
455
|
+
attr_accessor :blue_instance_group_urls
|
456
|
+
|
457
|
+
# Time to start deleting blue pool to complete blue-green upgrade, in [RFC3339](
|
458
|
+
# https://www.ietf.org/rfc/rfc3339.txt) text format.
|
459
|
+
# Corresponds to the JSON property `bluePoolDeletionStartTime`
|
460
|
+
# @return [String]
|
461
|
+
attr_accessor :blue_pool_deletion_start_time
|
462
|
+
|
463
|
+
# The resource URLs of the [managed instance groups] (/compute/docs/instance-
|
464
|
+
# groups/creating-groups-of-managed-instances) associated with green pool.
|
465
|
+
# Corresponds to the JSON property `greenInstanceGroupUrls`
|
466
|
+
# @return [Array<String>]
|
467
|
+
attr_accessor :green_instance_group_urls
|
468
|
+
|
469
|
+
# Version of green pool.
|
470
|
+
# Corresponds to the JSON property `greenPoolVersion`
|
471
|
+
# @return [String]
|
472
|
+
attr_accessor :green_pool_version
|
473
|
+
|
474
|
+
# Current blue-green upgrade phase.
|
475
|
+
# Corresponds to the JSON property `phase`
|
476
|
+
# @return [String]
|
477
|
+
attr_accessor :phase
|
478
|
+
|
479
|
+
def initialize(**args)
|
480
|
+
update!(**args)
|
481
|
+
end
|
482
|
+
|
483
|
+
# Update properties of this object
|
484
|
+
def update!(**args)
|
485
|
+
@blue_instance_group_urls = args[:blue_instance_group_urls] if args.key?(:blue_instance_group_urls)
|
486
|
+
@blue_pool_deletion_start_time = args[:blue_pool_deletion_start_time] if args.key?(:blue_pool_deletion_start_time)
|
487
|
+
@green_instance_group_urls = args[:green_instance_group_urls] if args.key?(:green_instance_group_urls)
|
488
|
+
@green_pool_version = args[:green_pool_version] if args.key?(:green_pool_version)
|
489
|
+
@phase = args[:phase] if args.key?(:phase)
|
490
|
+
end
|
491
|
+
end
|
492
|
+
|
493
|
+
# Settings for blue-green upgrade.
|
494
|
+
class BlueGreenSettings
|
495
|
+
include Google::Apis::Core::Hashable
|
496
|
+
|
497
|
+
# Time needed after draining entire blue pool. After this period, blue pool will
|
498
|
+
# be cleaned up.
|
499
|
+
# Corresponds to the JSON property `nodePoolSoakDuration`
|
500
|
+
# @return [String]
|
501
|
+
attr_accessor :node_pool_soak_duration
|
502
|
+
|
503
|
+
# Standard rollout policy is the default policy for blue-green.
|
504
|
+
# Corresponds to the JSON property `standardRolloutPolicy`
|
505
|
+
# @return [Google::Apis::ContainerV1beta1::StandardRolloutPolicy]
|
506
|
+
attr_accessor :standard_rollout_policy
|
507
|
+
|
508
|
+
def initialize(**args)
|
509
|
+
update!(**args)
|
510
|
+
end
|
511
|
+
|
512
|
+
# Update properties of this object
|
513
|
+
def update!(**args)
|
514
|
+
@node_pool_soak_duration = args[:node_pool_soak_duration] if args.key?(:node_pool_soak_duration)
|
515
|
+
@standard_rollout_policy = args[:standard_rollout_policy] if args.key?(:standard_rollout_policy)
|
516
|
+
end
|
517
|
+
end
|
518
|
+
|
431
519
|
# CancelOperationRequest cancels a single operation.
|
432
520
|
class CancelOperationRequest
|
433
521
|
include Google::Apis::Core::Hashable
|
@@ -1513,6 +1601,20 @@ module Google
|
|
1513
1601
|
end
|
1514
1602
|
end
|
1515
1603
|
|
1604
|
+
# CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
|
1605
|
+
# upgrade.
|
1606
|
+
class CompleteNodePoolUpgradeRequest
|
1607
|
+
include Google::Apis::Core::Hashable
|
1608
|
+
|
1609
|
+
def initialize(**args)
|
1610
|
+
update!(**args)
|
1611
|
+
end
|
1612
|
+
|
1613
|
+
# Update properties of this object
|
1614
|
+
def update!(**args)
|
1615
|
+
end
|
1616
|
+
end
|
1617
|
+
|
1516
1618
|
# ConfidentialNodes is configuration for the confidential nodes feature, which
|
1517
1619
|
# makes nodes run on confidential VMs.
|
1518
1620
|
class ConfidentialNodes
|
@@ -2308,6 +2410,11 @@ module Google
|
|
2308
2410
|
# @return [String]
|
2309
2411
|
attr_accessor :services_ipv4_cidr_block
|
2310
2412
|
|
2413
|
+
# Output only. [Output only] The services IPv6 CIDR block for the cluster.
|
2414
|
+
# Corresponds to the JSON property `servicesIpv6CidrBlock`
|
2415
|
+
# @return [String]
|
2416
|
+
attr_accessor :services_ipv6_cidr_block
|
2417
|
+
|
2311
2418
|
# The name of the secondary range to be used as for the services CIDR block. The
|
2312
2419
|
# secondary range will be used for service ClusterIPs. This must be an existing
|
2313
2420
|
# secondary range associated with the cluster subnetwork. This field is only
|
@@ -2321,6 +2428,11 @@ module Google
|
|
2321
2428
|
# @return [String]
|
2322
2429
|
attr_accessor :stack_type
|
2323
2430
|
|
2431
|
+
# Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and pods.
|
2432
|
+
# Corresponds to the JSON property `subnetIpv6CidrBlock`
|
2433
|
+
# @return [String]
|
2434
|
+
attr_accessor :subnet_ipv6_cidr_block
|
2435
|
+
|
2324
2436
|
# A custom subnetwork name to be used if `create_subnetwork` is true. If this
|
2325
2437
|
# field is empty, then an automatic name will be chosen for the new subnetwork.
|
2326
2438
|
# Corresponds to the JSON property `subnetworkName`
|
@@ -2374,8 +2486,10 @@ module Google
|
|
2374
2486
|
@node_ipv4_cidr_block = args[:node_ipv4_cidr_block] if args.key?(:node_ipv4_cidr_block)
|
2375
2487
|
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
|
2376
2488
|
@services_ipv4_cidr_block = args[:services_ipv4_cidr_block] if args.key?(:services_ipv4_cidr_block)
|
2489
|
+
@services_ipv6_cidr_block = args[:services_ipv6_cidr_block] if args.key?(:services_ipv6_cidr_block)
|
2377
2490
|
@services_secondary_range_name = args[:services_secondary_range_name] if args.key?(:services_secondary_range_name)
|
2378
2491
|
@stack_type = args[:stack_type] if args.key?(:stack_type)
|
2492
|
+
@subnet_ipv6_cidr_block = args[:subnet_ipv6_cidr_block] if args.key?(:subnet_ipv6_cidr_block)
|
2379
2493
|
@subnetwork_name = args[:subnetwork_name] if args.key?(:subnetwork_name)
|
2380
2494
|
@tpu_ipv4_cidr_block = args[:tpu_ipv4_cidr_block] if args.key?(:tpu_ipv4_cidr_block)
|
2381
2495
|
@use_ip_aliases = args[:use_ip_aliases] if args.key?(:use_ip_aliases)
|
@@ -2585,6 +2699,11 @@ module Google
|
|
2585
2699
|
class LinuxNodeConfig
|
2586
2700
|
include Google::Apis::Core::Hashable
|
2587
2701
|
|
2702
|
+
# cgroup_mode specifies the cgroup mode to be used on the node.
|
2703
|
+
# Corresponds to the JSON property `cgroupMode`
|
2704
|
+
# @return [String]
|
2705
|
+
attr_accessor :cgroup_mode
|
2706
|
+
|
2588
2707
|
# The Linux kernel parameters to be applied to the nodes and all pods running on
|
2589
2708
|
# the nodes. The following parameters are supported. net.core.busy_poll net.core.
|
2590
2709
|
# busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default
|
@@ -2600,6 +2719,7 @@ module Google
|
|
2600
2719
|
|
2601
2720
|
# Update properties of this object
|
2602
2721
|
def update!(**args)
|
2722
|
+
@cgroup_mode = args[:cgroup_mode] if args.key?(:cgroup_mode)
|
2603
2723
|
@sysctls = args[:sysctls] if args.key?(:sysctls)
|
2604
2724
|
end
|
2605
2725
|
end
|
@@ -3790,7 +3910,8 @@ module Google
|
|
3790
3910
|
|
3791
3911
|
# [Output only] The resource URLs of the [managed instance groups](https://cloud.
|
3792
3912
|
# google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
|
3793
|
-
# associated with this node pool.
|
3913
|
+
# associated with this node pool. During the node pool blue-green upgrade
|
3914
|
+
# operation, the URLs contain both blue and green resources.
|
3794
3915
|
# Corresponds to the JSON property `instanceGroupUrls`
|
3795
3916
|
# @return [Array<String>]
|
3796
3917
|
attr_accessor :instance_group_urls
|
@@ -3852,7 +3973,29 @@ module Google
|
|
3852
3973
|
# @return [String]
|
3853
3974
|
attr_accessor :status_message
|
3854
3975
|
|
3855
|
-
#
|
3976
|
+
# UpdateInfo contains resource (instance groups, etc), status and other
|
3977
|
+
# intermediate information relevant to a node pool upgrade.
|
3978
|
+
# Corresponds to the JSON property `updateInfo`
|
3979
|
+
# @return [Google::Apis::ContainerV1beta1::UpdateInfo]
|
3980
|
+
attr_accessor :update_info
|
3981
|
+
|
3982
|
+
# These upgrade settings configure the upgrade strategy for the node pool. Use
|
3983
|
+
# strategy to switch between the strategies applied to the node pool. If the
|
3984
|
+
# strategy is SURGE, use max_surge and max_unavailable to control the level of
|
3985
|
+
# parallelism and the level of disruption caused by upgrade. 1. maxSurge
|
3986
|
+
# controls the number of additional nodes that can be added to the node pool
|
3987
|
+
# temporarily for the time of the upgrade to increase the number of available
|
3988
|
+
# nodes. 2. maxUnavailable controls the number of nodes that can be
|
3989
|
+
# simultaneously unavailable. 3. (maxUnavailable + maxSurge) determines the
|
3990
|
+
# level of parallelism (how many nodes are being upgraded at the same time). If
|
3991
|
+
# the strategy is BLUE_GREEN, use blue_green_settings to configure the blue-
|
3992
|
+
# green upgrade related settings. 1. standard_rollout_policy is the default
|
3993
|
+
# policy. The policy is used to control the way blue pool gets drained. The
|
3994
|
+
# draining is executed in the batch mode. The batch size could be specified as
|
3995
|
+
# either percentage of the node pool size or the number of nodes.
|
3996
|
+
# batch_soak_duration is the soak time after each batch gets drained. 2.
|
3997
|
+
# node_pool_soak_duration is the soak time after all blue nodes are drained.
|
3998
|
+
# After this period, the blue pool nodes will be deleted.
|
3856
3999
|
# Corresponds to the JSON property `upgradeSettings`
|
3857
4000
|
# @return [Google::Apis::ContainerV1beta1::UpgradeSettings]
|
3858
4001
|
attr_accessor :upgrade_settings
|
@@ -3883,6 +4026,7 @@ module Google
|
|
3883
4026
|
@self_link = args[:self_link] if args.key?(:self_link)
|
3884
4027
|
@status = args[:status] if args.key?(:status)
|
3885
4028
|
@status_message = args[:status_message] if args.key?(:status_message)
|
4029
|
+
@update_info = args[:update_info] if args.key?(:update_info)
|
3886
4030
|
@upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings)
|
3887
4031
|
@version = args[:version] if args.key?(:version)
|
3888
4032
|
end
|
@@ -3927,6 +4071,11 @@ module Google
|
|
3927
4071
|
attr_accessor :enabled
|
3928
4072
|
alias_method :enabled?, :enabled
|
3929
4073
|
|
4074
|
+
# Location policy used when scaling up a nodepool.
|
4075
|
+
# Corresponds to the JSON property `locationPolicy`
|
4076
|
+
# @return [String]
|
4077
|
+
attr_accessor :location_policy
|
4078
|
+
|
3930
4079
|
# Maximum number of nodes for one location in the NodePool. Must be >=
|
3931
4080
|
# min_node_count. There has to be enough quota to scale up the cluster.
|
3932
4081
|
# Corresponds to the JSON property `maxNodeCount`
|
@@ -3939,6 +4088,21 @@ module Google
|
|
3939
4088
|
# @return [Fixnum]
|
3940
4089
|
attr_accessor :min_node_count
|
3941
4090
|
|
4091
|
+
# Maximum number of nodes in the node pool. Must be greater than
|
4092
|
+
# total_min_node_count. There has to be enough quota to scale up the cluster.
|
4093
|
+
# The total_*_node_count fields are mutually exclusive with the *_node_count
|
4094
|
+
# fields.
|
4095
|
+
# Corresponds to the JSON property `totalMaxNodeCount`
|
4096
|
+
# @return [Fixnum]
|
4097
|
+
attr_accessor :total_max_node_count
|
4098
|
+
|
4099
|
+
# Minimum number of nodes in the node pool. Must be greater than 1 less than
|
4100
|
+
# total_max_node_count. The total_*_node_count fields are mutually exclusive
|
4101
|
+
# with the *_node_count fields.
|
4102
|
+
# Corresponds to the JSON property `totalMinNodeCount`
|
4103
|
+
# @return [Fixnum]
|
4104
|
+
attr_accessor :total_min_node_count
|
4105
|
+
|
3942
4106
|
def initialize(**args)
|
3943
4107
|
update!(**args)
|
3944
4108
|
end
|
@@ -3947,8 +4111,11 @@ module Google
|
|
3947
4111
|
def update!(**args)
|
3948
4112
|
@autoprovisioned = args[:autoprovisioned] if args.key?(:autoprovisioned)
|
3949
4113
|
@enabled = args[:enabled] if args.key?(:enabled)
|
4114
|
+
@location_policy = args[:location_policy] if args.key?(:location_policy)
|
3950
4115
|
@max_node_count = args[:max_node_count] if args.key?(:max_node_count)
|
3951
4116
|
@min_node_count = args[:min_node_count] if args.key?(:min_node_count)
|
4117
|
+
@total_max_node_count = args[:total_max_node_count] if args.key?(:total_max_node_count)
|
4118
|
+
@total_min_node_count = args[:total_min_node_count] if args.key?(:total_min_node_count)
|
3952
4119
|
end
|
3953
4120
|
end
|
3954
4121
|
|
@@ -4613,6 +4780,12 @@ module Google
|
|
4613
4780
|
# @return [String]
|
4614
4781
|
attr_accessor :project_id
|
4615
4782
|
|
4783
|
+
# Option for rollback to ignore the PodDisruptionBudget. Default value is false.
|
4784
|
+
# Corresponds to the JSON property `respectPdb`
|
4785
|
+
# @return [Boolean]
|
4786
|
+
attr_accessor :respect_pdb
|
4787
|
+
alias_method :respect_pdb?, :respect_pdb
|
4788
|
+
|
4616
4789
|
# Required. Deprecated. The name of the Google Compute Engine [zone](https://
|
4617
4790
|
# cloud.google.com/compute/docs/zones#available) in which the cluster resides.
|
4618
4791
|
# This field has been deprecated and replaced by the name field.
|
@@ -4630,6 +4803,7 @@ module Google
|
|
4630
4803
|
@name = args[:name] if args.key?(:name)
|
4631
4804
|
@node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
|
4632
4805
|
@project_id = args[:project_id] if args.key?(:project_id)
|
4806
|
+
@respect_pdb = args[:respect_pdb] if args.key?(:respect_pdb)
|
4633
4807
|
@zone = args[:zone] if args.key?(:zone)
|
4634
4808
|
end
|
4635
4809
|
end
|
@@ -5522,6 +5696,38 @@ module Google
|
|
5522
5696
|
end
|
5523
5697
|
end
|
5524
5698
|
|
5699
|
+
# Standard rollout policy is the default policy for blue-green.
|
5700
|
+
class StandardRolloutPolicy
|
5701
|
+
include Google::Apis::Core::Hashable
|
5702
|
+
|
5703
|
+
# Number of blue nodes to drain in a batch.
|
5704
|
+
# Corresponds to the JSON property `batchNodeCount`
|
5705
|
+
# @return [Fixnum]
|
5706
|
+
attr_accessor :batch_node_count
|
5707
|
+
|
5708
|
+
# Percentage of the bool pool nodes to drain in a batch. The range of this field
|
5709
|
+
# should be (0.0, 1.0].
|
5710
|
+
# Corresponds to the JSON property `batchPercentage`
|
5711
|
+
# @return [Float]
|
5712
|
+
attr_accessor :batch_percentage
|
5713
|
+
|
5714
|
+
# Soak time after each batch gets drained. Default to zero.
|
5715
|
+
# Corresponds to the JSON property `batchSoakDuration`
|
5716
|
+
# @return [String]
|
5717
|
+
attr_accessor :batch_soak_duration
|
5718
|
+
|
5719
|
+
def initialize(**args)
|
5720
|
+
update!(**args)
|
5721
|
+
end
|
5722
|
+
|
5723
|
+
# Update properties of this object
|
5724
|
+
def update!(**args)
|
5725
|
+
@batch_node_count = args[:batch_node_count] if args.key?(:batch_node_count)
|
5726
|
+
@batch_percentage = args[:batch_percentage] if args.key?(:batch_percentage)
|
5727
|
+
@batch_soak_duration = args[:batch_soak_duration] if args.key?(:batch_soak_duration)
|
5728
|
+
end
|
5729
|
+
end
|
5730
|
+
|
5525
5731
|
# StartIPRotationRequest creates a new IP for the cluster and then performs a
|
5526
5732
|
# node upgrade on each node pool to point to the new IP.
|
5527
5733
|
class StartIpRotationRequest
|
@@ -5760,6 +5966,26 @@ module Google
|
|
5760
5966
|
end
|
5761
5967
|
end
|
5762
5968
|
|
5969
|
+
# UpdateInfo contains resource (instance groups, etc), status and other
|
5970
|
+
# intermediate information relevant to a node pool upgrade.
|
5971
|
+
class UpdateInfo
|
5972
|
+
include Google::Apis::Core::Hashable
|
5973
|
+
|
5974
|
+
# Information relevant to blue-green upgrade.
|
5975
|
+
# Corresponds to the JSON property `blueGreenInfo`
|
5976
|
+
# @return [Google::Apis::ContainerV1beta1::BlueGreenInfo]
|
5977
|
+
attr_accessor :blue_green_info
|
5978
|
+
|
5979
|
+
def initialize(**args)
|
5980
|
+
update!(**args)
|
5981
|
+
end
|
5982
|
+
|
5983
|
+
# Update properties of this object
|
5984
|
+
def update!(**args)
|
5985
|
+
@blue_green_info = args[:blue_green_info] if args.key?(:blue_green_info)
|
5986
|
+
end
|
5987
|
+
end
|
5988
|
+
|
5763
5989
|
# UpdateMasterRequest updates the master of the cluster.
|
5764
5990
|
class UpdateMasterRequest
|
5765
5991
|
include Google::Apis::Core::Hashable
|
@@ -5877,6 +6103,11 @@ module Google
|
|
5877
6103
|
# @return [String]
|
5878
6104
|
attr_accessor :name
|
5879
6105
|
|
6106
|
+
# Parameters for node pool-level network config.
|
6107
|
+
# Corresponds to the JSON property `nodeNetworkConfig`
|
6108
|
+
# @return [Google::Apis::ContainerV1beta1::NodeNetworkConfig]
|
6109
|
+
attr_accessor :node_network_config
|
6110
|
+
|
5880
6111
|
# Required. Deprecated. The name of the node pool to upgrade. This field has
|
5881
6112
|
# been deprecated and replaced by the name field.
|
5882
6113
|
# Corresponds to the JSON property `nodePoolId`
|
@@ -5914,7 +6145,23 @@ module Google
|
|
5914
6145
|
# @return [Google::Apis::ContainerV1beta1::NodeTaints]
|
5915
6146
|
attr_accessor :taints
|
5916
6147
|
|
5917
|
-
#
|
6148
|
+
# These upgrade settings configure the upgrade strategy for the node pool. Use
|
6149
|
+
# strategy to switch between the strategies applied to the node pool. If the
|
6150
|
+
# strategy is SURGE, use max_surge and max_unavailable to control the level of
|
6151
|
+
# parallelism and the level of disruption caused by upgrade. 1. maxSurge
|
6152
|
+
# controls the number of additional nodes that can be added to the node pool
|
6153
|
+
# temporarily for the time of the upgrade to increase the number of available
|
6154
|
+
# nodes. 2. maxUnavailable controls the number of nodes that can be
|
6155
|
+
# simultaneously unavailable. 3. (maxUnavailable + maxSurge) determines the
|
6156
|
+
# level of parallelism (how many nodes are being upgraded at the same time). If
|
6157
|
+
# the strategy is BLUE_GREEN, use blue_green_settings to configure the blue-
|
6158
|
+
# green upgrade related settings. 1. standard_rollout_policy is the default
|
6159
|
+
# policy. The policy is used to control the way blue pool gets drained. The
|
6160
|
+
# draining is executed in the batch mode. The batch size could be specified as
|
6161
|
+
# either percentage of the node pool size or the number of nodes.
|
6162
|
+
# batch_soak_duration is the soak time after each batch gets drained. 2.
|
6163
|
+
# node_pool_soak_duration is the soak time after all blue nodes are drained.
|
6164
|
+
# After this period, the blue pool nodes will be deleted.
|
5918
6165
|
# Corresponds to the JSON property `upgradeSettings`
|
5919
6166
|
# @return [Google::Apis::ContainerV1beta1::UpgradeSettings]
|
5920
6167
|
attr_accessor :upgrade_settings
|
@@ -5948,6 +6195,7 @@ module Google
|
|
5948
6195
|
@linux_node_config = args[:linux_node_config] if args.key?(:linux_node_config)
|
5949
6196
|
@locations = args[:locations] if args.key?(:locations)
|
5950
6197
|
@name = args[:name] if args.key?(:name)
|
6198
|
+
@node_network_config = args[:node_network_config] if args.key?(:node_network_config)
|
5951
6199
|
@node_pool_id = args[:node_pool_id] if args.key?(:node_pool_id)
|
5952
6200
|
@node_version = args[:node_version] if args.key?(:node_version)
|
5953
6201
|
@project_id = args[:project_id] if args.key?(:project_id)
|
@@ -6058,10 +6306,31 @@ module Google
|
|
6058
6306
|
end
|
6059
6307
|
end
|
6060
6308
|
|
6061
|
-
#
|
6309
|
+
# These upgrade settings configure the upgrade strategy for the node pool. Use
|
6310
|
+
# strategy to switch between the strategies applied to the node pool. If the
|
6311
|
+
# strategy is SURGE, use max_surge and max_unavailable to control the level of
|
6312
|
+
# parallelism and the level of disruption caused by upgrade. 1. maxSurge
|
6313
|
+
# controls the number of additional nodes that can be added to the node pool
|
6314
|
+
# temporarily for the time of the upgrade to increase the number of available
|
6315
|
+
# nodes. 2. maxUnavailable controls the number of nodes that can be
|
6316
|
+
# simultaneously unavailable. 3. (maxUnavailable + maxSurge) determines the
|
6317
|
+
# level of parallelism (how many nodes are being upgraded at the same time). If
|
6318
|
+
# the strategy is BLUE_GREEN, use blue_green_settings to configure the blue-
|
6319
|
+
# green upgrade related settings. 1. standard_rollout_policy is the default
|
6320
|
+
# policy. The policy is used to control the way blue pool gets drained. The
|
6321
|
+
# draining is executed in the batch mode. The batch size could be specified as
|
6322
|
+
# either percentage of the node pool size or the number of nodes.
|
6323
|
+
# batch_soak_duration is the soak time after each batch gets drained. 2.
|
6324
|
+
# node_pool_soak_duration is the soak time after all blue nodes are drained.
|
6325
|
+
# After this period, the blue pool nodes will be deleted.
|
6062
6326
|
class UpgradeSettings
|
6063
6327
|
include Google::Apis::Core::Hashable
|
6064
6328
|
|
6329
|
+
# Settings for blue-green upgrade.
|
6330
|
+
# Corresponds to the JSON property `blueGreenSettings`
|
6331
|
+
# @return [Google::Apis::ContainerV1beta1::BlueGreenSettings]
|
6332
|
+
attr_accessor :blue_green_settings
|
6333
|
+
|
6065
6334
|
# The maximum number of nodes that can be created beyond the current size of the
|
6066
6335
|
# node pool during the upgrade process.
|
6067
6336
|
# Corresponds to the JSON property `maxSurge`
|
@@ -6074,14 +6343,21 @@ module Google
|
|
6074
6343
|
# @return [Fixnum]
|
6075
6344
|
attr_accessor :max_unavailable
|
6076
6345
|
|
6346
|
+
# Update strategy of the node pool.
|
6347
|
+
# Corresponds to the JSON property `strategy`
|
6348
|
+
# @return [String]
|
6349
|
+
attr_accessor :strategy
|
6350
|
+
|
6077
6351
|
def initialize(**args)
|
6078
6352
|
update!(**args)
|
6079
6353
|
end
|
6080
6354
|
|
6081
6355
|
# Update properties of this object
|
6082
6356
|
def update!(**args)
|
6357
|
+
@blue_green_settings = args[:blue_green_settings] if args.key?(:blue_green_settings)
|
6083
6358
|
@max_surge = args[:max_surge] if args.key?(:max_surge)
|
6084
6359
|
@max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable)
|
6360
|
+
@strategy = args[:strategy] if args.key?(:strategy)
|
6085
6361
|
end
|
6086
6362
|
end
|
6087
6363
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ContainerV1beta1
|
18
18
|
# Version of the google-apis-container_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.35.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.8.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220615"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -82,6 +82,18 @@ module Google
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
+
class BlueGreenInfo
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class BlueGreenSettings
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
85
97
|
class CancelOperationRequest
|
86
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
99
|
|
@@ -136,6 +148,12 @@ module Google
|
|
136
148
|
include Google::Apis::Core::JsonObjectSupport
|
137
149
|
end
|
138
150
|
|
151
|
+
class CompleteNodePoolUpgradeRequest
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
139
157
|
class ConfidentialNodes
|
140
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
159
|
|
@@ -772,6 +790,12 @@ module Google
|
|
772
790
|
include Google::Apis::Core::JsonObjectSupport
|
773
791
|
end
|
774
792
|
|
793
|
+
class StandardRolloutPolicy
|
794
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
795
|
+
|
796
|
+
include Google::Apis::Core::JsonObjectSupport
|
797
|
+
end
|
798
|
+
|
775
799
|
class StartIpRotationRequest
|
776
800
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
777
801
|
|
@@ -808,6 +832,12 @@ module Google
|
|
808
832
|
include Google::Apis::Core::JsonObjectSupport
|
809
833
|
end
|
810
834
|
|
835
|
+
class UpdateInfo
|
836
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
837
|
+
|
838
|
+
include Google::Apis::Core::JsonObjectSupport
|
839
|
+
end
|
840
|
+
|
811
841
|
class UpdateMasterRequest
|
812
842
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
813
843
|
|
@@ -1018,6 +1048,26 @@ module Google
|
|
1018
1048
|
end
|
1019
1049
|
end
|
1020
1050
|
|
1051
|
+
class BlueGreenInfo
|
1052
|
+
# @private
|
1053
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1054
|
+
collection :blue_instance_group_urls, as: 'blueInstanceGroupUrls'
|
1055
|
+
property :blue_pool_deletion_start_time, as: 'bluePoolDeletionStartTime'
|
1056
|
+
collection :green_instance_group_urls, as: 'greenInstanceGroupUrls'
|
1057
|
+
property :green_pool_version, as: 'greenPoolVersion'
|
1058
|
+
property :phase, as: 'phase'
|
1059
|
+
end
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
class BlueGreenSettings
|
1063
|
+
# @private
|
1064
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1065
|
+
property :node_pool_soak_duration, as: 'nodePoolSoakDuration'
|
1066
|
+
property :standard_rollout_policy, as: 'standardRolloutPolicy', class: Google::Apis::ContainerV1beta1::StandardRolloutPolicy, decorator: Google::Apis::ContainerV1beta1::StandardRolloutPolicy::Representation
|
1067
|
+
|
1068
|
+
end
|
1069
|
+
end
|
1070
|
+
|
1021
1071
|
class CancelOperationRequest
|
1022
1072
|
# @private
|
1023
1073
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1278,6 +1328,12 @@ module Google
|
|
1278
1328
|
end
|
1279
1329
|
end
|
1280
1330
|
|
1331
|
+
class CompleteNodePoolUpgradeRequest
|
1332
|
+
# @private
|
1333
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1334
|
+
end
|
1335
|
+
end
|
1336
|
+
|
1281
1337
|
class ConfidentialNodes
|
1282
1338
|
# @private
|
1283
1339
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1501,8 +1557,10 @@ module Google
|
|
1501
1557
|
property :node_ipv4_cidr_block, as: 'nodeIpv4CidrBlock'
|
1502
1558
|
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
|
1503
1559
|
property :services_ipv4_cidr_block, as: 'servicesIpv4CidrBlock'
|
1560
|
+
property :services_ipv6_cidr_block, as: 'servicesIpv6CidrBlock'
|
1504
1561
|
property :services_secondary_range_name, as: 'servicesSecondaryRangeName'
|
1505
1562
|
property :stack_type, as: 'stackType'
|
1563
|
+
property :subnet_ipv6_cidr_block, as: 'subnetIpv6CidrBlock'
|
1506
1564
|
property :subnetwork_name, as: 'subnetworkName'
|
1507
1565
|
property :tpu_ipv4_cidr_block, as: 'tpuIpv4CidrBlock'
|
1508
1566
|
property :use_ip_aliases, as: 'useIpAliases'
|
@@ -1571,6 +1629,7 @@ module Google
|
|
1571
1629
|
class LinuxNodeConfig
|
1572
1630
|
# @private
|
1573
1631
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1632
|
+
property :cgroup_mode, as: 'cgroupMode'
|
1574
1633
|
hash :sysctls, as: 'sysctls'
|
1575
1634
|
end
|
1576
1635
|
end
|
@@ -1913,6 +1972,8 @@ module Google
|
|
1913
1972
|
property :self_link, as: 'selfLink'
|
1914
1973
|
property :status, as: 'status'
|
1915
1974
|
property :status_message, as: 'statusMessage'
|
1975
|
+
property :update_info, as: 'updateInfo', class: Google::Apis::ContainerV1beta1::UpdateInfo, decorator: Google::Apis::ContainerV1beta1::UpdateInfo::Representation
|
1976
|
+
|
1916
1977
|
property :upgrade_settings, as: 'upgradeSettings', class: Google::Apis::ContainerV1beta1::UpgradeSettings, decorator: Google::Apis::ContainerV1beta1::UpgradeSettings::Representation
|
1917
1978
|
|
1918
1979
|
property :version, as: 'version'
|
@@ -1932,8 +1993,11 @@ module Google
|
|
1932
1993
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1933
1994
|
property :autoprovisioned, as: 'autoprovisioned'
|
1934
1995
|
property :enabled, as: 'enabled'
|
1996
|
+
property :location_policy, as: 'locationPolicy'
|
1935
1997
|
property :max_node_count, as: 'maxNodeCount'
|
1936
1998
|
property :min_node_count, as: 'minNodeCount'
|
1999
|
+
property :total_max_node_count, as: 'totalMaxNodeCount'
|
2000
|
+
property :total_min_node_count, as: 'totalMinNodeCount'
|
1937
2001
|
end
|
1938
2002
|
end
|
1939
2003
|
|
@@ -2123,6 +2187,7 @@ module Google
|
|
2123
2187
|
property :name, as: 'name'
|
2124
2188
|
property :node_pool_id, as: 'nodePoolId'
|
2125
2189
|
property :project_id, as: 'projectId'
|
2190
|
+
property :respect_pdb, as: 'respectPdb'
|
2126
2191
|
property :zone, as: 'zone'
|
2127
2192
|
end
|
2128
2193
|
end
|
@@ -2331,6 +2396,15 @@ module Google
|
|
2331
2396
|
end
|
2332
2397
|
end
|
2333
2398
|
|
2399
|
+
class StandardRolloutPolicy
|
2400
|
+
# @private
|
2401
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2402
|
+
property :batch_node_count, as: 'batchNodeCount'
|
2403
|
+
property :batch_percentage, as: 'batchPercentage'
|
2404
|
+
property :batch_soak_duration, as: 'batchSoakDuration'
|
2405
|
+
end
|
2406
|
+
end
|
2407
|
+
|
2334
2408
|
class StartIpRotationRequest
|
2335
2409
|
# @private
|
2336
2410
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2391,6 +2465,14 @@ module Google
|
|
2391
2465
|
end
|
2392
2466
|
end
|
2393
2467
|
|
2468
|
+
class UpdateInfo
|
2469
|
+
# @private
|
2470
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2471
|
+
property :blue_green_info, as: 'blueGreenInfo', class: Google::Apis::ContainerV1beta1::BlueGreenInfo, decorator: Google::Apis::ContainerV1beta1::BlueGreenInfo::Representation
|
2472
|
+
|
2473
|
+
end
|
2474
|
+
end
|
2475
|
+
|
2394
2476
|
class UpdateMasterRequest
|
2395
2477
|
# @private
|
2396
2478
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2421,6 +2503,8 @@ module Google
|
|
2421
2503
|
|
2422
2504
|
collection :locations, as: 'locations'
|
2423
2505
|
property :name, as: 'name'
|
2506
|
+
property :node_network_config, as: 'nodeNetworkConfig', class: Google::Apis::ContainerV1beta1::NodeNetworkConfig, decorator: Google::Apis::ContainerV1beta1::NodeNetworkConfig::Representation
|
2507
|
+
|
2424
2508
|
property :node_pool_id, as: 'nodePoolId'
|
2425
2509
|
property :node_version, as: 'nodeVersion'
|
2426
2510
|
property :project_id, as: 'projectId'
|
@@ -2464,8 +2548,11 @@ module Google
|
|
2464
2548
|
class UpgradeSettings
|
2465
2549
|
# @private
|
2466
2550
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2551
|
+
property :blue_green_settings, as: 'blueGreenSettings', class: Google::Apis::ContainerV1beta1::BlueGreenSettings, decorator: Google::Apis::ContainerV1beta1::BlueGreenSettings::Representation
|
2552
|
+
|
2467
2553
|
property :max_surge, as: 'maxSurge'
|
2468
2554
|
property :max_unavailable, as: 'maxUnavailable'
|
2555
|
+
property :strategy, as: 'strategy'
|
2469
2556
|
end
|
2470
2557
|
end
|
2471
2558
|
|
@@ -827,6 +827,41 @@ module Google
|
|
827
827
|
execute_or_queue_command(command, &block)
|
828
828
|
end
|
829
829
|
|
830
|
+
# CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.
|
831
|
+
# @param [String] name
|
832
|
+
# The name (project, location, cluster, node pool id) of the node pool to
|
833
|
+
# complete upgrade. Specified in the format 'projects/*/locations/*/clusters/*/
|
834
|
+
# nodePools/*'.
|
835
|
+
# @param [Google::Apis::ContainerV1beta1::CompleteNodePoolUpgradeRequest] complete_node_pool_upgrade_request_object
|
836
|
+
# @param [String] fields
|
837
|
+
# Selector specifying which fields to include in a partial response.
|
838
|
+
# @param [String] quota_user
|
839
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
840
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
841
|
+
# @param [Google::Apis::RequestOptions] options
|
842
|
+
# Request-specific options
|
843
|
+
#
|
844
|
+
# @yield [result, err] Result & error if block supplied
|
845
|
+
# @yieldparam result [Google::Apis::ContainerV1beta1::Empty] parsed result object
|
846
|
+
# @yieldparam err [StandardError] error object if request failed
|
847
|
+
#
|
848
|
+
# @return [Google::Apis::ContainerV1beta1::Empty]
|
849
|
+
#
|
850
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
851
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
852
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
853
|
+
def complete_project_location_cluster_node_pool_upgrade(name, complete_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
854
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:completeUpgrade', options)
|
855
|
+
command.request_representation = Google::Apis::ContainerV1beta1::CompleteNodePoolUpgradeRequest::Representation
|
856
|
+
command.request_object = complete_node_pool_upgrade_request_object
|
857
|
+
command.response_representation = Google::Apis::ContainerV1beta1::Empty::Representation
|
858
|
+
command.response_class = Google::Apis::ContainerV1beta1::Empty
|
859
|
+
command.params['name'] = name unless name.nil?
|
860
|
+
command.query['fields'] = fields unless fields.nil?
|
861
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
862
|
+
execute_or_queue_command(command, &block)
|
863
|
+
end
|
864
|
+
|
830
865
|
# Creates a node pool for a cluster.
|
831
866
|
# @param [String] parent
|
832
867
|
# 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_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.35.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-07-04 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_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-container_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-container_v1beta1/v0.35.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-container_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|