Class: Google::Apis::GkehubV2::ClusterUpgradeMembershipGkeUpgradeState

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

MembershipGKEUpgradeState 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.



173
174
175
# File 'lib/google/apis/gkehub_v2/classes.rb', line 173

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

Instance Attribute Details

#statusGoogle::Apis::GkehubV2::ClusterUpgradeUpgradeStatus

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



166
167
168
# File 'lib/google/apis/gkehub_v2/classes.rb', line 166

def status
  @status
end

#upgradeGoogle::Apis::GkehubV2::ClusterUpgradeGkeUpgrade

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



171
172
173
# File 'lib/google/apis/gkehub_v2/classes.rb', line 171

def upgrade
  @upgrade
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



178
179
180
181
# File 'lib/google/apis/gkehub_v2/classes.rb', line 178

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