Class: Google::Apis::GkehubV2alpha::LifecycleState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v2alpha/classes.rb,
lib/google/apis/gkehub_v2alpha/representations.rb,
lib/google/apis/gkehub_v2alpha/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.



2292
2293
2294
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2292

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)


2290
2291
2292
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2290

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2297
2298
2299
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2297

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