Class: Google::Apis::GkehubV1::ClusterUpgradeGkeUpgradeOverride

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/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.



520
521
522
# File 'lib/google/apis/gkehub_v1/classes.rb', line 520

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#post_conditionsGoogle::Apis::GkehubV1::ClusterUpgradePostConditions

Post conditional checks after an upgrade has been applied on all eligible clusters. Corresponds to the JSON property postConditions



513
514
515
# File 'lib/google/apis/gkehub_v1/classes.rb', line 513

def post_conditions
  @post_conditions
end

#upgradeGoogle::Apis::GkehubV1::ClusterUpgradeGkeUpgrade

GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade. Corresponds to the JSON property upgrade



518
519
520
# File 'lib/google/apis/gkehub_v1/classes.rb', line 518

def upgrade
  @upgrade
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



525
526
527
528
# File 'lib/google/apis/gkehub_v1/classes.rb', line 525

def update!(**args)
  @post_conditions = args[:post_conditions] if args.key?(:post_conditions)
  @upgrade = args[:upgrade] if args.key?(:upgrade)
end