Class: Google::Apis::GkehubV1alpha::PolicyControllerMembershipState
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::PolicyControllerMembershipState
- 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
Policy Controller: State for a single cluster.
Instance Attribute Summary collapse
-
#component_states ⇒ Hash<String,Google::Apis::GkehubV1alpha::PolicyControllerOnClusterState>
Currently these include (also serving as map keys): 1.
-
#content_states ⇒ Hash<String,Google::Apis::GkehubV1alpha::PolicyControllerOnClusterState>
The state of the template library and any bundles included in the chosen version of the manifest TODO (b/271878194): Remove this Corresponds to the JSON property
contentStates. -
#policy_content_state ⇒ Google::Apis::GkehubV1alpha::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) ⇒ PolicyControllerMembershipState
constructor
A new instance of PolicyControllerMembershipState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyControllerMembershipState
Returns a new instance of PolicyControllerMembershipState.
3864 3865 3866 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3864 def initialize(**args) update!(**args) end |
Instance Attribute Details
#component_states ⇒ Hash<String,Google::Apis::GkehubV1alpha::PolicyControllerOnClusterState>
Currently these include (also serving as map keys): 1. "admission" 2. "audit"
- "mutation"
Corresponds to the JSON property
componentStates
3845 3846 3847 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3845 def component_states @component_states end |
#content_states ⇒ Hash<String,Google::Apis::GkehubV1alpha::PolicyControllerOnClusterState>
The state of the template library and any bundles included in the chosen
version of the manifest TODO (b/271878194): Remove this
Corresponds to the JSON property contentStates
3851 3852 3853 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3851 def content_states @content_states end |
#policy_content_state ⇒ Google::Apis::GkehubV1alpha::PolicyControllerPolicyContentState
The state of the policy controller policy content
Corresponds to the JSON property policyContentState
3856 3857 3858 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3856 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
3862 3863 3864 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3862 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3869 3870 3871 3872 3873 3874 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 3869 def update!(**args) @component_states = args[:component_states] if args.key?(:component_states) @content_states = args[:content_states] if args.key?(:content_states) @policy_content_state = args[:policy_content_state] if args.key?(:policy_content_state) @state = args[:state] if args.key?(:state) end |