Class: Google::Apis::GkehubV2::ClusterUpgradeState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v2/classes.rb,
lib/google/apis/gkehub_v2/representations.rb,
lib/google/apis/gkehub_v2/representations.rb

Overview

Per-membership state for this feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterUpgradeState

Returns a new instance of ClusterUpgradeState.



200
201
202
# File 'lib/google/apis/gkehub_v2/classes.rb', line 200

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

Instance Attribute Details

#ignoredGoogle::Apis::GkehubV2::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



193
194
195
# File 'lib/google/apis/gkehub_v2/classes.rb', line 193

def ignored
  @ignored
end

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

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



198
199
200
# File 'lib/google/apis/gkehub_v2/classes.rb', line 198

def upgrades
  @upgrades
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



205
206
207
208
# File 'lib/google/apis/gkehub_v2/classes.rb', line 205

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