Struct google_api_proto::google::cloud::compute::v1::VpnGatewayVpnGatewayInterface
source · pub struct VpnGatewayVpnGatewayInterface {
pub id: Option<u32>,
pub interconnect_attachment: Option<String>,
pub ip_address: Option<String>,
pub ipv6_address: Option<String>,
}
Expand description
A VPN gateway interface.
Fields§
§id: Option<u32>
[Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
interconnect_attachment: Option<String>
URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
ip_address: Option<String>
[Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
ipv6_address: Option<String>
[Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
Implementations§
source§impl VpnGatewayVpnGatewayInterface
impl VpnGatewayVpnGatewayInterface
sourcepub fn interconnect_attachment(&self) -> &str
pub fn interconnect_attachment(&self) -> &str
Returns the value of interconnect_attachment
, or the default value if interconnect_attachment
is unset.
sourcepub fn ipv6_address(&self) -> &str
pub fn ipv6_address(&self) -> &str
Returns the value of ipv6_address
, or the default value if ipv6_address
is unset.
sourcepub fn ip_address(&self) -> &str
pub fn ip_address(&self) -> &str
Returns the value of ip_address
, or the default value if ip_address
is unset.
Trait Implementations§
source§impl Clone for VpnGatewayVpnGatewayInterface
impl Clone for VpnGatewayVpnGatewayInterface
source§fn clone(&self) -> VpnGatewayVpnGatewayInterface
fn clone(&self) -> VpnGatewayVpnGatewayInterface
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for VpnGatewayVpnGatewayInterface
impl Message for VpnGatewayVpnGatewayInterface
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 VpnGatewayVpnGatewayInterface
impl PartialEq for VpnGatewayVpnGatewayInterface
source§fn eq(&self, other: &VpnGatewayVpnGatewayInterface) -> bool
fn eq(&self, other: &VpnGatewayVpnGatewayInterface) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VpnGatewayVpnGatewayInterface
Auto Trait Implementations§
impl Freeze for VpnGatewayVpnGatewayInterface
impl RefUnwindSafe for VpnGatewayVpnGatewayInterface
impl Send for VpnGatewayVpnGatewayInterface
impl Sync for VpnGatewayVpnGatewayInterface
impl Unpin for VpnGatewayVpnGatewayInterface
impl UnwindSafe for VpnGatewayVpnGatewayInterface
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