# GKE Hub V1 API - Class Google::Cloud::GkeHub::ConfigManagement::V1::MembershipState (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.10.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the GKE Hub V1 API class Google::Cloud::GkeHub::ConfigManagement::V1::MembershipState.

**Anthos Config Management**: State for a single cluster.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cluster_name

    def cluster_name() -> ::String

**Returns**

- (::String) --- This field is set to the `cluster_name` field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name.

### #cluster_name=

    def cluster_name=(value) -> ::String

**Parameter**

- **value** (::String) --- This field is set to the `cluster_name` field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name.
**Returns**

- (::String) --- This field is set to the `cluster_name` field of the Membership Spec if it is not empty. Otherwise, it is set to the cluster's fleet membership name.

### #config_sync_state

    def config_sync_state() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSyncState

**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSyncState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-ConfigSyncState)) --- Current sync status

### #config_sync_state=

    def config_sync_state=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSyncState

**Parameter**

- **value** ([::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSyncState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-ConfigSyncState)) --- Current sync status
**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSyncState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-ConfigSyncState)) --- Current sync status

### #hierarchy_controller_state

    def hierarchy_controller_state() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::HierarchyControllerState

**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::HierarchyControllerState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-HierarchyControllerState)) --- Hierarchy Controller status

### #hierarchy_controller_state=

    def hierarchy_controller_state=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::HierarchyControllerState

**Parameter**

- **value** ([::Google::Cloud::GkeHub::ConfigManagement::V1::HierarchyControllerState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-HierarchyControllerState)) --- Hierarchy Controller status
**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::HierarchyControllerState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-HierarchyControllerState)) --- Hierarchy Controller status

### #membership_spec

    def membership_spec() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec

**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-MembershipSpec)) --- Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state

### #membership_spec=

    def membership_spec=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec

**Parameter**

- **value** ([::Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-MembershipSpec)) --- Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state
**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-MembershipSpec)) --- Membership configuration in the cluster. This represents the actual state in the cluster, while the MembershipSpec in the FeatureSpec represents the intended state

### #operator_state

    def operator_state() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::OperatorState

**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::OperatorState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-OperatorState)) --- Current install status of ACM's Operator

### #operator_state=

    def operator_state=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::OperatorState

**Parameter**

- **value** ([::Google::Cloud::GkeHub::ConfigManagement::V1::OperatorState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-OperatorState)) --- Current install status of ACM's Operator
**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::OperatorState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-OperatorState)) --- Current install status of ACM's Operator

### #policy_controller_state

    def policy_controller_state() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::PolicyControllerState

**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::PolicyControllerState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-PolicyControllerState)) --- PolicyController status

### #policy_controller_state=

    def policy_controller_state=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::PolicyControllerState

**Parameter**

- **value** ([::Google::Cloud::GkeHub::ConfigManagement::V1::PolicyControllerState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-PolicyControllerState)) --- PolicyController status
**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::PolicyControllerState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-PolicyControllerState)) --- PolicyController status