Class: Google::Apis::GkehubV1alpha::ClusterUpgradeMembershipGkeUpgradeState

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

Overview

ScopeGKEUpgradeState is a GKEUpgrade and its state per-membership.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterUpgradeMembershipGkeUpgradeState

Returns a new instance of ClusterUpgradeMembershipGkeUpgradeState.



705
706
707
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 705

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

Instance Attribute Details

#statusGoogle::Apis::GkehubV1alpha::ClusterUpgradeUpgradeStatus

UpgradeStatus provides status information for each upgrade. Corresponds to the JSON property status



698
699
700
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 698

def status
  @status
end

#upgradeGoogle::Apis::GkehubV1alpha::ClusterUpgradeGkeUpgrade

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



703
704
705
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 703

def upgrade
  @upgrade
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



710
711
712
713
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 710

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