Class: Google::Apis::GkehubV2alpha::PolicyControllerState

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

Policy Controller: State for a single cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyControllerState

Returns a new instance of PolicyControllerState.



2922
2923
2924
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2922

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

Instance Attribute Details

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

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

  1. "mutation" Corresponds to the JSON property componentStates


2909
2910
2911
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2909

def component_states
  @component_states
end

#policy_content_stateGoogle::Apis::GkehubV2alpha::PolicyControllerPolicyContentState

The state of the policy controller policy content Corresponds to the JSON property policyContentState



2914
2915
2916
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2914

def policy_content_state
  @policy_content_state
end

#stateString

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

Returns:

  • (String)


2920
2921
2922
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2920

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2927
2928
2929
2930
2931
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2927

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