#[non_exhaustive]pub struct IPEndpointsConfig {
pub enabled: Option<bool>,
pub enable_public_endpoint: Option<bool>,
pub global_access: Option<bool>,
pub authorized_networks_config: Option<MasterAuthorizedNetworksConfig>,
pub public_endpoint: String,
pub private_endpoint: String,
pub private_endpoint_subnetwork: String,
}Expand description
IP endpoints configuration.
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.enabled: Option<bool>Controls whether to allow direct IP access.
enable_public_endpoint: Option<bool>Controls whether the control plane allows access through a public IP. It is invalid to specify both [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same time.
global_access: Option<bool>Controls whether the control plane’s private endpoint is accessible from sources in other regions. It is invalid to specify both PrivateClusterMasterGlobalAccessConfig.enabled and this field at the same time.
Configuration of authorized networks. If enabled, restricts access to the control plane based on source IP. It is invalid to specify both [Cluster.masterAuthorizedNetworksConfig][] and this field at the same time.
public_endpoint: StringOutput only. The external IP address of this cluster’s control plane. Only populated if enabled.
private_endpoint: StringOutput only. The internal IP address of this cluster’s control plane. Only populated if enabled.
private_endpoint_subnetwork: StringSubnet to provision the master’s private endpoint during cluster creation. Specified in projects//regions//subnetworks/* format. It is invalid to specify both [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the same time.
Implementations§
Source§impl IPEndpointsConfig
impl IPEndpointsConfig
Sourcepub fn set_enable_public_endpoint<T: Into<Option<bool>>>(self, v: T) -> Self
pub fn set_enable_public_endpoint<T: Into<Option<bool>>>(self, v: T) -> Self
Sets the value of enable_public_endpoint.
Sourcepub fn set_global_access<T: Into<Option<bool>>>(self, v: T) -> Self
pub fn set_global_access<T: Into<Option<bool>>>(self, v: T) -> Self
Sets the value of global_access.
Sets the value of authorized_networks_config.
Sourcepub fn set_public_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_public_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of public_endpoint.
Sourcepub fn set_private_endpoint<T: Into<String>>(self, v: T) -> Self
pub fn set_private_endpoint<T: Into<String>>(self, v: T) -> Self
Sets the value of private_endpoint.
Sourcepub fn set_private_endpoint_subnetwork<T: Into<String>>(self, v: T) -> Self
pub fn set_private_endpoint_subnetwork<T: Into<String>>(self, v: T) -> Self
Sets the value of private_endpoint_subnetwork.
Trait Implementations§
Source§impl Clone for IPEndpointsConfig
impl Clone for IPEndpointsConfig
Source§fn clone(&self) -> IPEndpointsConfig
fn clone(&self) -> IPEndpointsConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more