Class: Google::Apis::GkehubV1beta::ClusterUpgradeGkeUpgradeFeatureState

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

Overview

GKEUpgradeFeatureState contains feature states for GKE clusters in the scope.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterUpgradeGkeUpgradeFeatureState

Returns a new instance of ClusterUpgradeGkeUpgradeFeatureState.



522
523
524
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 522

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

Instance Attribute Details

#conditionsArray<Google::Apis::GkehubV1beta::ClusterUpgradeGkeUpgradeFeatureCondition>

Current conditions of the feature. Corresponds to the JSON property conditions



515
516
517
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 515

def conditions
  @conditions
end

#upgrade_stateArray<Google::Apis::GkehubV1beta::ClusterUpgradeGkeUpgradeState>

Upgrade state. It will eventually replace state. Corresponds to the JSON property upgradeState



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

def upgrade_state
  @upgrade_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



527
528
529
530
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 527

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