Struct google_api_proto::google::cloud::edgecontainer::v1::VpnConnection
source · pub struct VpnConnection {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub nat_gateway_ip: String,
pub bgp_routing_mode: i32,
pub cluster: String,
pub vpc: String,
pub vpc_project: Option<VpcProject>,
pub enable_high_availability: bool,
pub router: String,
pub details: Option<Details>,
}
Expand description
A VPN connection .
Fields§
§name: String
Required. 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: BTreeMap<String, String>
Labels associated with this resource.
nat_gateway_ip: String
NAT 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: i32
Dynamic routing mode of the VPC network, regional
or global
.
cluster: String
The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.
vpc: String
The 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: bool
Whether 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: String
Optional. The VPN connection Cloud Router name.
details: Option<Details>
Output only. The created connection details.
Implementations§
source§impl VpnConnection
impl VpnConnection
sourcepub fn bgp_routing_mode(&self) -> BgpRoutingMode
pub fn bgp_routing_mode(&self) -> BgpRoutingMode
Returns the enum value of bgp_routing_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_bgp_routing_mode(&mut self, value: BgpRoutingMode)
pub fn set_bgp_routing_mode(&mut self, value: BgpRoutingMode)
Sets bgp_routing_mode
to the provided enum value.
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 moresource§impl Debug for VpnConnection
impl Debug for VpnConnection
source§impl Default for VpnConnection
impl Default for VpnConnection
source§impl Message for VpnConnection
impl Message for VpnConnection
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for VpnConnection
impl PartialEq for VpnConnection
source§fn eq(&self, other: &VpnConnection) -> bool
fn eq(&self, other: &VpnConnection) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VpnConnection
Auto Trait Implementations§
impl Freeze for VpnConnection
impl RefUnwindSafe for VpnConnection
impl Send for VpnConnection
impl Sync for VpnConnection
impl Unpin for VpnConnection
impl UnwindSafe for VpnConnection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request