Class: Google::Apis::GkehubV1alpha::CommonFeatureState

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

CommonFeatureState contains Hub-wide Feature status information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommonFeatureState

Returns a new instance of CommonFeatureState.



245
246
247
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 245

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

Instance Attribute Details

#servicemeshGoogle::Apis::GkehubV1alpha::ServiceMeshFeatureState

FeatureState describes the state of the Service Mesh Hub Feature as analyzed by the Service Mesh Hub Controller, for the whole Hub. Corresponds to the JSON property servicemesh



236
237
238
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 236

def servicemesh
  @servicemesh
end

#stateGoogle::Apis::GkehubV1alpha::FeatureState

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. Corresponds to the JSON property state



243
244
245
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 243

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



250
251
252
253
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 250

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