Class: Google::Apis::GkehubV1beta::PolicyControllerMembershipState
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::PolicyControllerMembershipState
- 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
-
#cluster_name ⇒ String
The user-defined name for the cluster used by ClusterSelectors to group clusters together.
-
#component_states ⇒ Hash<String,Google::Apis::GkehubV1beta::PolicyControllerOnClusterState>
Currently these include (also serving as map keys): 1.
-
#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.
2613 2614 2615 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2613 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_name ⇒ String
The user-defined name for the cluster used by ClusterSelectors to group
clusters together. This should match Membership's membership_name, unless the
user installed PC on the cluster manually prior to enabling the PC hub feature.
Unique within a Policy Controller installation.
Corresponds to the JSON property clusterName
2599 2600 2601 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2599 def cluster_name @cluster_name end |
#component_states ⇒ Hash<String,Google::Apis::GkehubV1beta::PolicyControllerOnClusterState>
Currently these include (also serving as map keys): 1. "admission" 2. "audit"
- "mutation" 4. "constraint template library"
Corresponds to the JSON property
componentStates
2605 2606 2607 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2605 def component_states @component_states end |
#state ⇒ String
The overall Policy Controller lifecycle state observed by the Hub Feature
controller.
Corresponds to the JSON property state
2611 2612 2613 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2611 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2618 2619 2620 2621 2622 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2618 def update!(**args) @cluster_name = args[:cluster_name] if args.key?(:cluster_name) @component_states = args[:component_states] if args.key?(:component_states) @state = args[:state] if args.key?(:state) end |