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

MembershipEndpoint contains information needed to contact a Kubernetes API,
endpoint and any additional Kubernetes metadata.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #gke_cluster

    def gke_cluster() -> ::Google::Cloud::GkeHub::V1::GkeCluster

**Returns**

- ([::Google::Cloud::GkeHub::V1::GkeCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-V1-GkeCluster)) --- Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

### #gke_cluster=

    def gke_cluster=(value) -> ::Google::Cloud::GkeHub::V1::GkeCluster

**Parameter**

- **value** ([::Google::Cloud::GkeHub::V1::GkeCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-V1-GkeCluster)) --- Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
**Returns**

- ([::Google::Cloud::GkeHub::V1::GkeCluster](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-V1-GkeCluster)) --- Optional. GKE-specific information. Only present if this Membership is a GKE cluster.

### #google_managed

    def google_managed() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Whether the lifecycle of this membership is managed by a google cluster platform service.

### #kubernetes_metadata

    def kubernetes_metadata() -> ::Google::Cloud::GkeHub::V1::KubernetesMetadata

**Returns**

- ([::Google::Cloud::GkeHub::V1::KubernetesMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest/Google-Cloud-GkeHub-V1-KubernetesMetadata)) --- Output only. Useful Kubernetes-specific metadata.

### #kubernetes_resource

    def kubernetes_resource() -> ::Google::Cloud::GkeHub::V1::KubernetesResource

**Returns**

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

  Optional. The in-cluster Kubernetes Resources that should be applied for a
  correctly registered cluster, in the steady state. These resources:
  - Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  - Propagate Workload Pool Information available in the Membership Authority field.
  - Ensure proper initial configuration of default Hub Features.

### #kubernetes_resource=

    def kubernetes_resource=(value) -> ::Google::Cloud::GkeHub::V1::KubernetesResource

**Parameter**

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

  Optional. The in-cluster Kubernetes Resources that should be applied for a
  correctly registered cluster, in the steady state. These resources:
  - Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  - Propagate Workload Pool Information available in the Membership Authority field.
  - Ensure proper initial configuration of default Hub Features.
**Returns**

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

  Optional. The in-cluster Kubernetes Resources that should be applied for a
  correctly registered cluster, in the steady state. These resources:
  - Ensure that the cluster is exclusively registered to one and only one Hub Membership.
  - Propagate Workload Pool Information available in the Membership Authority field.
  - Ensure proper initial configuration of default Hub Features.