Class: Google::Apis::GkehubV2::PolicyControllerState
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2::PolicyControllerState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v2/classes.rb,
lib/google/apis/gkehub_v2/representations.rb,
lib/google/apis/gkehub_v2/representations.rb
Overview
Policy Controller: State for a single cluster.
Instance Attribute Summary collapse
-
#component_states ⇒ Hash<String,Google::Apis::GkehubV2::PolicyControllerOnClusterState>
Currently these include (also serving as map keys): 1.
-
#policy_content_state ⇒ Google::Apis::GkehubV2::PolicyControllerPolicyContentState
The state of the policy controller policy content Corresponds to the JSON property
policyContentState
. -
#state ⇒ String
The overall Policy Controller lifecycle state observed by the Hub Feature controller.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyControllerState
constructor
A new instance of PolicyControllerState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyControllerState
Returns a new instance of PolicyControllerState.
2960 2961 2962 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2960 def initialize(**args) update!(**args) end |
Instance Attribute Details
#component_states ⇒ Hash<String,Google::Apis::GkehubV2::PolicyControllerOnClusterState>
Currently these include (also serving as map keys): 1. "admission" 2. "audit"
- "mutation"
Corresponds to the JSON property
componentStates
2947 2948 2949 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2947 def component_states @component_states end |
#policy_content_state ⇒ Google::Apis::GkehubV2::PolicyControllerPolicyContentState
The state of the policy controller policy content
Corresponds to the JSON property policyContentState
2952 2953 2954 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2952 def policy_content_state @policy_content_state end |
#state ⇒ String
The overall Policy Controller lifecycle state observed by the Hub Feature
controller.
Corresponds to the JSON property state
2958 2959 2960 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2958 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2965 2966 2967 2968 2969 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2965 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 |