Class: Google::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgradeOverride

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_conditionsGoogle::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

#upgradeGoogle::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