Enum google_api_proto::google::cloud::compute::v1::external_vpn_gateway::RedundancyType
source · #[repr(i32)]pub enum RedundancyType {
UndefinedRedundancyType = 0,
FourIpsRedundancy = 520_087_913,
SingleIpInternallyRedundant = 133_914_873,
TwoIpsRedundancy = 367_049_635,
}
Expand description
Indicates the user-supplied redundancy type of this external VPN gateway.
Variants§
UndefinedRedundancyType = 0
A value indicating that the enum field is not set.
FourIpsRedundancy = 520_087_913
The external VPN gateway has four public IP addresses; at the time of writing this API, the AWS virtual private gateway is an example which has four public IP addresses for high availability connections; there should be two VPN connections in the AWS virtual private gateway , each AWS VPN connection has two public IP addresses; please make sure to put two public IP addresses from one AWS VPN connection into interfaces 0 and 1 of this external VPN gateway, and put the other two public IP addresses from another AWS VPN connection into interfaces 2 and 3 of this external VPN gateway. When displaying highly available configuration status for the VPN tunnels connected to FOUR_IPS_REDUNDANCY external VPN gateway, Google will always detect whether interfaces 0 and 1 are connected on one interface of HA Cloud VPN gateway, and detect whether interfaces 2 and 3 are connected to another interface of the HA Cloud VPN gateway.
SingleIpInternallyRedundant = 133_914_873
The external VPN gateway has only one public IP address which internally provide redundancy or failover.
TwoIpsRedundancy = 367_049_635
The external VPN gateway has two public IP addresses which are redundant with each other, the following two types of setup on your on-premises side would have this type of redundancy: (1) Two separate on-premises gateways, each with one public IP address, the two on-premises gateways are redundant with each other. (2) A single on-premise gateway with two public IP addresses that are redundant with eatch other.
Implementations§
source§impl RedundancyType
impl RedundancyType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for RedundancyType
impl Clone for RedundancyType
source§fn clone(&self) -> RedundancyType
fn clone(&self) -> RedundancyType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RedundancyType
impl Debug for RedundancyType
source§impl Default for RedundancyType
impl Default for RedundancyType
source§fn default() -> RedundancyType
fn default() -> RedundancyType
source§impl From<RedundancyType> for i32
impl From<RedundancyType> for i32
source§fn from(value: RedundancyType) -> i32
fn from(value: RedundancyType) -> i32
source§impl Hash for RedundancyType
impl Hash for RedundancyType
source§impl Ord for RedundancyType
impl Ord for RedundancyType
source§fn cmp(&self, other: &RedundancyType) -> Ordering
fn cmp(&self, other: &RedundancyType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for RedundancyType
impl PartialEq for RedundancyType
source§fn eq(&self, other: &RedundancyType) -> bool
fn eq(&self, other: &RedundancyType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RedundancyType
impl PartialOrd for RedundancyType
source§fn partial_cmp(&self, other: &RedundancyType) -> Option<Ordering>
fn partial_cmp(&self, other: &RedundancyType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for RedundancyType
impl TryFrom<i32> for RedundancyType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<RedundancyType, DecodeError>
fn try_from(value: i32) -> Result<RedundancyType, DecodeError>
impl Copy for RedundancyType
impl Eq for RedundancyType
impl StructuralPartialEq for RedundancyType
Auto Trait Implementations§
impl Freeze for RedundancyType
impl RefUnwindSafe for RedundancyType
impl Send for RedundancyType
impl Sync for RedundancyType
impl Unpin for RedundancyType
impl UnwindSafe for RedundancyType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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