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
-
#cluster_name ⇒ String
The user-defined name for the cluster used by ClusterSelectors to group clusters together.
-
#membership_spec ⇒ Google::Apis::GkehubV1alpha::PolicycontrollerMembershipSpec
Policy Controller: Configuration for a single cluster.
-
#policy_controller_hub_state ⇒ Google::Apis::GkehubV1alpha::PolicycontrollerPolicyControllerHubState
State of the Policy Controller.
-
#state ⇒ String
The lifecycle state Policy Controller is in.
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.
2855 2856 2857 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2855 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
2837 2838 2839 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2837 def cluster_name @cluster_name end |
#membership_spec ⇒ Google::Apis::GkehubV1alpha::PolicycontrollerMembershipSpec
Policy Controller: Configuration for a single cluster. Intended to
parallel the PolicyController CR.
Corresponds to the JSON property membershipSpec
2843 2844 2845 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2843 def membership_spec @membership_spec end |
#policy_controller_hub_state ⇒ Google::Apis::GkehubV1alpha::PolicycontrollerPolicyControllerHubState
State of the Policy Controller.
Corresponds to the JSON property policyControllerHubState
2848 2849 2850 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2848 def policy_controller_hub_state @policy_controller_hub_state end |
#state ⇒ String
The lifecycle state Policy Controller is in.
Corresponds to the JSON property state
2853 2854 2855 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2853 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2860 2861 2862 2863 2864 2865 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 2860 def update!(**args) @cluster_name = args[:cluster_name] if args.key?(:cluster_name) @membership_spec = args[:membership_spec] if args.key?(:membership_spec) @policy_controller_hub_state = args[:policy_controller_hub_state] if args.key?(:policy_controller_hub_state) @state = args[:state] if args.key?(:state) end |