# Google Cloud Deploy V1 API - Class Google::Cloud::Deploy::V1::GkeCluster (v2.5.0)

2.5.0 (latest) 2.4.1 2.3.0 2.2.0 2.1.1 2.0.2 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.0 1.0.0 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Deploy V1 API class Google::Cloud::Deploy::V1::GkeCluster.

Information specifying a GKE Cluster.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cluster

    def cluster() -> ::String

**Returns**

- (::String) --- Optional. Information specifying a GKE Cluster. Format is `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.

### #cluster=

    def cluster=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Information specifying a GKE Cluster. Format is `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
**Returns**

- (::String) --- Optional. Information specifying a GKE Cluster. Format is `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.

### #dns_endpoint

    def dns_endpoint() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If set, the cluster will be accessed using the DNS endpoint. Note that both `dns_endpoint` and `internal_ip` cannot be set to true.

### #dns_endpoint=

    def dns_endpoint=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If set, the cluster will be accessed using the DNS endpoint. Note that both `dns_endpoint` and `internal_ip` cannot be set to true.
**Returns**

- (::Boolean) --- Optional. If set, the cluster will be accessed using the DNS endpoint. Note that both `dns_endpoint` and `internal_ip` cannot be set to true.

### #internal_ip

    def internal_ip() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If true, `cluster` is accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise.


  Only specify this option when `cluster` is a [private GKE
  cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
  Note that `internal_ip` and `dns_endpoint` cannot both be set to true.

### #internal_ip=

    def internal_ip=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If true, `cluster` is accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise.


  Only specify this option when `cluster` is a [private GKE
  cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
  Note that `internal_ip` and `dns_endpoint` cannot both be set to true.
**Returns**

- (::Boolean) --- Optional. If true, `cluster` is accessed using the private IP address of the control plane endpoint. Otherwise, the default IP address of the control plane endpoint is used. The default IP address is the private IP address for clusters with private control-plane endpoints and the public IP address otherwise.


  Only specify this option when `cluster` is a [private GKE
  cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
  Note that `internal_ip` and `dns_endpoint` cannot both be set to true.

### #proxy_url

    def proxy_url() -> ::String

**Returns**

- (::String) --- Optional. If set, used to configure a [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) to the Kubernetes server.

### #proxy_url=

    def proxy_url=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. If set, used to configure a [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) to the Kubernetes server.
**Returns**

- (::String) --- Optional. If set, used to configure a [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) to the Kubernetes server.