Class: Google::Apis::GkehubV2::LifecycleState

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

LifecycleState describes the state of a MembershipFeature resource in the GkeHub API. See FeatureState for the "running state" of the MembershipFeature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LifecycleState

Returns a new instance of LifecycleState.



2225
2226
2227
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2225

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

Instance Attribute Details

#stateString

Output only. The current state of the Feature resource in the Hub API. Corresponds to the JSON property state

Returns:

  • (String)


2223
2224
2225
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2223

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2230
2231
2232
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2230

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