Class: Google::Apis::GkehubV1::ClusterUpgradeMembershipState

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

Per-membership state for this feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterUpgradeMembershipState

Returns a new instance of ClusterUpgradeMembershipState.



630
631
632
# File 'lib/google/apis/gkehub_v1/classes.rb', line 630

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

Instance Attribute Details

#ignoredGoogle::Apis::GkehubV1::ClusterUpgradeIgnoredMembership

IgnoredMembership represents a membership ignored by the feature. A membership can be ignored because it was manually upgraded to a newer version than RC default. Corresponds to the JSON property ignored



623
624
625
# File 'lib/google/apis/gkehub_v1/classes.rb', line 623

def ignored
  @ignored
end

#upgradesArray<Google::Apis::GkehubV1::ClusterUpgradeMembershipGkeUpgradeState>

Actual upgrade state against desired. Corresponds to the JSON property upgrades



628
629
630
# File 'lib/google/apis/gkehub_v1/classes.rb', line 628

def upgrades
  @upgrades
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



635
636
637
638
# File 'lib/google/apis/gkehub_v1/classes.rb', line 635

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