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.



495
496
497
# File 'lib/google/apis/gkehub_v1/classes.rb', line 495

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



488
489
490
# File 'lib/google/apis/gkehub_v1/classes.rb', line 488

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



493
494
495
# File 'lib/google/apis/gkehub_v1/classes.rb', line 493

def upgrade
  @upgrade
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



500
501
502
503
# File 'lib/google/apis/gkehub_v1/classes.rb', line 500

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