# GKE Hub V1 API - Class Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec (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::MembershipSpec.

**Anthos Config Management**: Configuration for a single cluster.
Intended to parallel the ConfigManagement CR.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cluster

    def cluster() -> ::String

**Returns**

- (::String) --- The user-specified cluster name used by Config Sync cluster-name-selector annotation or ClusterSelector, for applying configs to only a subset of clusters. Omit this field if the cluster's fleet membership name is used by Config Sync cluster-name-selector annotation or ClusterSelector. Set this field if a name different from the cluster's fleet membership name is used by Config Sync cluster-name-selector annotation or ClusterSelector.

### #cluster=

    def cluster=(value) -> ::String

**Parameter**

- **value** (::String) --- The user-specified cluster name used by Config Sync cluster-name-selector annotation or ClusterSelector, for applying configs to only a subset of clusters. Omit this field if the cluster's fleet membership name is used by Config Sync cluster-name-selector annotation or ClusterSelector. Set this field if a name different from the cluster's fleet membership name is used by Config Sync cluster-name-selector annotation or ClusterSelector.
**Returns**

- (::String) --- The user-specified cluster name used by Config Sync cluster-name-selector annotation or ClusterSelector, for applying configs to only a subset of clusters. Omit this field if the cluster's fleet membership name is used by Config Sync cluster-name-selector annotation or ClusterSelector. Set this field if a name different from the cluster's fleet membership name is used by Config Sync cluster-name-selector annotation or ClusterSelector.

### #config_sync

    def config_sync() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSync

**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSync](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-ConfigSync)) --- Config Sync configuration for the cluster.

### #config_sync=

    def config_sync=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSync

**Parameter**

- **value** ([::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSync](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-ConfigSync)) --- Config Sync configuration for the cluster.
**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::ConfigSync](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-ConfigSync)) --- Config Sync configuration for the cluster.

### #hierarchy_controller

    def hierarchy_controller() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::HierarchyControllerConfig

**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::HierarchyControllerConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-HierarchyControllerConfig)) --- Hierarchy Controller configuration for the cluster.

### #hierarchy_controller=

    def hierarchy_controller=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::HierarchyControllerConfig

**Parameter**

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

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::HierarchyControllerConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-HierarchyControllerConfig)) --- Hierarchy Controller configuration for the cluster.

### #management

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

**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec::Management](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-MembershipSpec-Management)) --- Enables automatic Feature management.

### #management=

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

**Parameter**

- **value** ([::Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec::Management](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-MembershipSpec-Management)) --- Enables automatic Feature management.
**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::MembershipSpec::Management](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-MembershipSpec-Management)) --- Enables automatic Feature management.

### #policy_controller

    def policy_controller() -> ::Google::Cloud::GkeHub::ConfigManagement::V1::PolicyController

**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::PolicyController](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-PolicyController)) --- Policy Controller configuration for the cluster.

### #policy_controller=

    def policy_controller=(value) -> ::Google::Cloud::GkeHub::ConfigManagement::V1::PolicyController

**Parameter**

- **value** ([::Google::Cloud::GkeHub::ConfigManagement::V1::PolicyController](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-PolicyController)) --- Policy Controller configuration for the cluster.
**Returns**

- ([::Google::Cloud::GkeHub::ConfigManagement::V1::PolicyController](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-ConfigManagement-V1-PolicyController)) --- Policy Controller configuration for the cluster.

### #version

    def version() -> ::String

**Returns**

- (::String) --- Version of ACM installed.

### #version=

    def version=(value) -> ::String

**Parameter**

- **value** (::String) --- Version of ACM installed.
**Returns**

- (::String) --- Version of ACM installed.