#[non_exhaustive]pub struct GkeCluster {
pub cluster: String,
pub internal_ip: bool,
pub proxy_url: String,
pub dns_endpoint: bool,
/* private fields */
}
Expand description
Information specifying a GKE Cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cluster: String
Optional. Information specifying a GKE Cluster. Format is
projects/{project_id}/locations/{location_id}/clusters/{cluster_id}
.
internal_ip: bool
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.
Note that internal_ip
and dns_endpoint
cannot both be set to true.
proxy_url: String
Optional. If set, used to configure a proxy to the Kubernetes server.
dns_endpoint: bool
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.
Implementations§
Source§impl GkeCluster
impl GkeCluster
pub fn new() -> Self
Sourcepub fn set_cluster<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster.
Sourcepub fn set_internal_ip<T: Into<bool>>(self, v: T) -> Self
pub fn set_internal_ip<T: Into<bool>>(self, v: T) -> Self
Sets the value of internal_ip.
Sourcepub fn set_proxy_url<T: Into<String>>(self, v: T) -> Self
pub fn set_proxy_url<T: Into<String>>(self, v: T) -> Self
Sets the value of proxy_url.
Sourcepub fn set_dns_endpoint<T: Into<bool>>(self, v: T) -> Self
pub fn set_dns_endpoint<T: Into<bool>>(self, v: T) -> Self
Sets the value of dns_endpoint.
Trait Implementations§
Source§impl Clone for GkeCluster
impl Clone for GkeCluster
Source§fn clone(&self) -> GkeCluster
fn clone(&self) -> GkeCluster
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more