#[non_exhaustive]pub struct VpnConnection {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub nat_gateway_ip: String,
pub bgp_routing_mode: BgpRoutingMode,
pub cluster: String,
pub vpc: String,
pub vpc_project: Option<VpcProject>,
pub enable_high_availability: bool,
pub router: String,
pub details: Option<Details>,
/* private fields */
}Expand description
A VPN connection .
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.name: StringRequired. The resource name of VPN connection
create_time: Option<Timestamp>Output only. The time when the VPN connection was created.
update_time: Option<Timestamp>Output only. The time when the VPN connection was last updated.
labels: HashMap<String, String>Labels associated with this resource.
nat_gateway_ip: StringNAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used.
bgp_routing_mode: BgpRoutingModeDynamic routing mode of the VPC network, regional or global.
cluster: StringThe canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.
vpc: StringThe network ID of VPC to connect to.
vpc_project: Option<VpcProject>Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
enable_high_availability: boolWhether this VPN connection has HA enabled on cluster side. If enabled, when creating VPN connection we will attempt to use 2 ANG floating IPs.
router: StringOptional. The VPN connection Cloud Router name.
details: Option<Details>Output only. The created connection details.
Implementations§
Source§impl VpnConnection
impl VpnConnection
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_nat_gateway_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_nat_gateway_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of nat_gateway_ip.
Sourcepub fn set_bgp_routing_mode<T: Into<BgpRoutingMode>>(self, v: T) -> Self
👎Deprecated
pub fn set_bgp_routing_mode<T: Into<BgpRoutingMode>>(self, v: T) -> Self
Sets the value of bgp_routing_mode.
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_vpc_project<T>(self, v: T) -> Selfwhere
T: Into<VpcProject>,
pub fn set_vpc_project<T>(self, v: T) -> Selfwhere
T: Into<VpcProject>,
Sets the value of vpc_project.
Sourcepub fn set_or_clear_vpc_project<T>(self, v: Option<T>) -> Selfwhere
T: Into<VpcProject>,
pub fn set_or_clear_vpc_project<T>(self, v: Option<T>) -> Selfwhere
T: Into<VpcProject>,
Sets or clears the value of vpc_project.
Sourcepub fn set_enable_high_availability<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_high_availability<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_high_availability.
Sourcepub fn set_router<T: Into<String>>(self, v: T) -> Self
pub fn set_router<T: Into<String>>(self, v: T) -> Self
Sets the value of router.
Sourcepub fn set_details<T>(self, v: T) -> Self
pub fn set_details<T>(self, v: T) -> Self
Sets the value of details.
Trait Implementations§
Source§impl Clone for VpnConnection
impl Clone for VpnConnection
Source§fn clone(&self) -> VpnConnection
fn clone(&self) -> VpnConnection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more