Class: Google::Apis::GkeonpremV1::BareMetalClusterUpgradePolicy
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalClusterUpgradePolicy
- 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
BareMetalClusterUpgradePolicy defines the cluster upgrade policy.
Instance Attribute Summary collapse
-
#pause ⇒ Boolean
(also: #pause?)
Output only.
-
#policy ⇒ String
Specifies which upgrade policy to use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalClusterUpgradePolicy
constructor
A new instance of BareMetalClusterUpgradePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalClusterUpgradePolicy
Returns a new instance of BareMetalClusterUpgradePolicy.
1324 1325 1326 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1324 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pause ⇒ Boolean Also known as: pause?
Output only. Pause is used to show the upgrade pause status. It's view only
for now.
Corresponds to the JSON property pause
1316 1317 1318 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1316 def pause @pause end |
#policy ⇒ String
Specifies which upgrade policy to use.
Corresponds to the JSON property policy
1322 1323 1324 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1322 def policy @policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1329 1330 1331 1332 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1329 def update!(**args) @pause = args[:pause] if args.key?(:pause) @policy = args[:policy] if args.key?(:policy) end |