cluster = $cluster; } /** * @return string */ public function getCluster() { return $this->cluster; } /** * 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. * * @param bool $dnsEndpoint */ public function setDnsEndpoint($dnsEndpoint) { $this->dnsEndpoint = $dnsEndpoint; } /** * @return bool */ public function getDnsEndpoint() { return $this->dnsEndpoint; } /** * 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. * * @param bool $internalIp */ public function setInternalIp($internalIp) { $this->internalIp = $internalIp; } /** * @return bool */ public function getInternalIp() { return $this->internalIp; } /** * Optional. If set, used to configure a * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster- * access-kubeconfig/#proxy) to the Kubernetes server. * * @param string $proxyUrl */ public function setProxyUrl($proxyUrl) { $this->proxyUrl = $proxyUrl; } /** * @return string */ public function getProxyUrl() { return $this->proxyUrl; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GkeCluster::class, 'Google_Service_CloudDeploy_GkeCluster');