Class: Google::Apis::GkeonpremV1::BareMetalParallelUpgradeConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalParallelUpgradeConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkeonprem_v1/classes.rb,
lib/google/apis/gkeonprem_v1/representations.rb,
lib/google/apis/gkeonprem_v1/representations.rb
Overview
BareMetalParallelUpgradeConfig defines the parallel upgrade settings for worker node pools.
Instance Attribute Summary collapse
-
#concurrent_nodes ⇒ Fixnum
The maximum number of nodes that can be upgraded at once.
-
#minimum_available_nodes ⇒ Fixnum
The minimum number of nodes that should be healthy and available during an upgrade.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalParallelUpgradeConfig
constructor
A new instance of BareMetalParallelUpgradeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalParallelUpgradeConfig
Returns a new instance of BareMetalParallelUpgradeConfig.
2084 2085 2086 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2084 def initialize(**args) update!(**args) end |
Instance Attribute Details
#concurrent_nodes ⇒ Fixnum
The maximum number of nodes that can be upgraded at once.
Corresponds to the JSON property concurrentNodes
2075 2076 2077 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2075 def concurrent_nodes @concurrent_nodes end |
#minimum_available_nodes ⇒ Fixnum
The minimum number of nodes that should be healthy and available during an
upgrade. If set to the default value of 0, it is possible that none of the
nodes will be available during an upgrade.
Corresponds to the JSON property minimumAvailableNodes
2082 2083 2084 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2082 def minimum_available_nodes @minimum_available_nodes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2089 2090 2091 2092 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 2089 def update!(**args) @concurrent_nodes = args[:concurrent_nodes] if args.key?(:concurrent_nodes) @minimum_available_nodes = args[:minimum_available_nodes] if args.key?(:minimum_available_nodes) end |