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.
1133 1134 1135 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1133 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
1125 1126 1127 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1125 def pause @pause end |
#policy ⇒ String
Specifies which upgrade policy to use.
Corresponds to the JSON property policy
1131 1132 1133 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1131 def policy @policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1138 1139 1140 1141 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1138 def update!(**args) @pause = args[:pause] if args.key?(:pause) @policy = args[:policy] if args.key?(:policy) end |