Struct google_api_proto::google::cloud::compute::v1::ExternalVpnGatewayInterface
source · pub struct ExternalVpnGatewayInterface {
pub id: Option<u32>,
pub ip_address: Option<String>,
pub ipv6_address: Option<String>,
}
Expand description
The interface for the external VPN gateway.
Fields§
§id: Option<u32>
The numeric ID of this interface. The allowed input values for this id for different redundancy types of external VPN gateway: - SINGLE_IP_INTERNALLY_REDUNDANT - 0 - TWO_IPS_REDUNDANCY - 0, 1 - FOUR_IPS_REDUNDANCY - 0, 1, 2, 3
ip_address: Option<String>
IP address of the interface in the external VPN gateway. Only IPv4 is supported. This IP address can be either from your on-premise gateway or another Cloud provider’s VPN gateway, it cannot be an IP address from Google Compute Engine.
ipv6_address: Option<String>
IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from your on-premise gateway or another Cloud provider’s VPN gateway, it cannot be an IP address from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
Implementations§
source§impl ExternalVpnGatewayInterface
impl ExternalVpnGatewayInterface
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 ExternalVpnGatewayInterface
impl Clone for ExternalVpnGatewayInterface
source§fn clone(&self) -> ExternalVpnGatewayInterface
fn clone(&self) -> ExternalVpnGatewayInterface
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExternalVpnGatewayInterface
impl Debug for ExternalVpnGatewayInterface
source§impl Message for ExternalVpnGatewayInterface
impl Message for ExternalVpnGatewayInterface
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 ExternalVpnGatewayInterface
impl PartialEq for ExternalVpnGatewayInterface
source§fn eq(&self, other: &ExternalVpnGatewayInterface) -> bool
fn eq(&self, other: &ExternalVpnGatewayInterface) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExternalVpnGatewayInterface
Auto Trait Implementations§
impl Freeze for ExternalVpnGatewayInterface
impl RefUnwindSafe for ExternalVpnGatewayInterface
impl Send for ExternalVpnGatewayInterface
impl Sync for ExternalVpnGatewayInterface
impl Unpin for ExternalVpnGatewayInterface
impl UnwindSafe for ExternalVpnGatewayInterface
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