Class: Google::Apis::ContainerV1beta1::UpgradeSettings
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::UpgradeSettings
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Instance Attribute Summary collapse
-
#max_surge ⇒ Fixnum
The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process.
-
#max_unavailable ⇒ Fixnum
The maximum number of nodes that can be simultaneously unavailable during the upgrade process.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpgradeSettings
constructor
A new instance of UpgradeSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpgradeSettings
Returns a new instance of UpgradeSettings.
5293 5294 5295 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5293 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_surge ⇒ Fixnum
The maximum number of nodes that can be created beyond the current size of the
node pool during the upgrade process.
Corresponds to the JSON property maxSurge
5285 5286 5287 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5285 def max_surge @max_surge end |
#max_unavailable ⇒ Fixnum
The maximum number of nodes that can be simultaneously unavailable during the
upgrade process. A node is considered available if its status is Ready.
Corresponds to the JSON property maxUnavailable
5291 5292 5293 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5291 def max_unavailable @max_unavailable end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5298 5299 5300 5301 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 5298 def update!(**args) @max_surge = args[:max_surge] if args.key?(:max_surge) @max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable) end |