Class: Google::Apis::GkehubV1alpha::FeatureState

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

FeatureState describes the high-level state of a Feature. It may be used to describe a Feature's state at the environ-level, or per-membershop, depending on the context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FeatureState

Returns a new instance of FeatureState.



1832
1833
1834
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1832

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

Instance Attribute Details

#codeString

The high-level, machine-readable status of this Feature. Corresponds to the JSON property code

Returns:

  • (String)


1820
1821
1822
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1820

def code
  @code
end

#descriptionString

A human-readable description of the current status. Corresponds to the JSON property description

Returns:

  • (String)


1825
1826
1827
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1825

def description
  @description
end

#update_timeString

The time this status and any related Feature-specific details were updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1830
1831
1832
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1830

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1837
1838
1839
1840
1841
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1837

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