Class: Google::Apis::GkehubV1beta::PolicyControllerMembershipState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/representations.rb

Overview

Policy Controller: State for a single cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyControllerMembershipState

Returns a new instance of PolicyControllerMembershipState.



2580
2581
2582
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2580

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

Instance Attribute Details

#component_statesHash<String,Google::Apis::GkehubV1beta::PolicyControllerOnClusterState>

Currently these include (also serving as map keys): 1. "admission" 2. "audit"

  1. "mutation" 4. "constraint template library" Corresponds to the JSON property componentStates


2572
2573
2574
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2572

def component_states
  @component_states
end

#stateString

The overall Policy Controller lifecycle state observed by the Hub Feature controller. Corresponds to the JSON property state

Returns:

  • (String)


2578
2579
2580
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2578

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2585
2586
2587
2588
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2585

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