Class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeOverride
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeOverride
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb
Overview
Properties of a GKE upgrade that can be overridden by the user. For example, a user can skip soaking by overriding the soaking to 0.
Instance Attribute Summary collapse
-
#post_conditions ⇒ Google::Apis::GkehubV1alpha::ClusterUpgradePostConditions
Post conditional checks after an upgrade has been applied on all eligible clusters.
-
#upgrade ⇒ Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade
GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterUpgradeGkeUpgradeOverride
constructor
A new instance of ClusterUpgradeGkeUpgradeOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterUpgradeGkeUpgradeOverride
Returns a new instance of ClusterUpgradeGkeUpgradeOverride.
622 623 624 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 622 def initialize(**args) update!(**args) end |
Instance Attribute Details
#post_conditions ⇒ Google::Apis::GkehubV1alpha::ClusterUpgradePostConditions
Post conditional checks after an upgrade has been applied on all eligible
clusters.
Corresponds to the JSON property postConditions
615 616 617 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 615 def post_conditions @post_conditions end |
#upgrade ⇒ Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade
GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.
Corresponds to the JSON property upgrade
620 621 622 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 620 def upgrade @upgrade end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
627 628 629 630 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 627 def update!(**args) @post_conditions = args[:post_conditions] if args.key?(:post_conditions) @upgrade = args[:upgrade] if args.key?(:upgrade) end |