pub struct InterconnectRemoteLocationConstraints {
pub port_pair_remote_location: Option<String>,
pub port_pair_vlan: Option<String>,
pub subnet_length_range: Option<InterconnectRemoteLocationConstraintsSubnetLengthRange>,
}
Expand description
Fields§
§port_pair_remote_location: Option<String>
[Output Only] Port pair remote location constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_REMOTE_LOCATION, PORT_PAIR_MATCHING_REMOTE_LOCATION. Google Cloud API refers only to individual ports, but the UI uses this field when ordering a pair of ports, to prevent users from accidentally ordering something that is incompatible with their cloud provider. Specifically, when ordering a redundant pair of Cross-Cloud Interconnect ports, and one of them uses a remote location with portPairMatchingRemoteLocation set to matching, the UI requires that both ports use the same remote location. Check the PortPairRemoteLocation enum for the list of possible values.
port_pair_vlan: Option<String>
[Output Only] Port pair VLAN constraints, which can take one of the following values: PORT_PAIR_UNCONSTRAINED_VLAN, PORT_PAIR_MATCHING_VLAN Check the PortPairVlan enum for the list of possible values.
subnet_length_range: Option<InterconnectRemoteLocationConstraintsSubnetLengthRange>
[Output Only] [min-length, max-length] The minimum and maximum value (inclusive) for the IPv4 subnet length. For example, an interconnectRemoteLocation for Azure has {min: 30, max: 30} because Azure requires /30 subnets. This range specifies the values supported by both cloud providers. Interconnect currently supports /29 and /30 IPv4 subnet lengths. If a remote cloud has no constraint on IPv4 subnet length, the range would thus be {min: 29, max: 30}.
Implementations§
source§impl InterconnectRemoteLocationConstraints
impl InterconnectRemoteLocationConstraints
sourcepub fn port_pair_vlan(&self) -> &str
pub fn port_pair_vlan(&self) -> &str
Returns the value of port_pair_vlan
, or the default value if port_pair_vlan
is unset.
sourcepub fn port_pair_remote_location(&self) -> &str
pub fn port_pair_remote_location(&self) -> &str
Returns the value of port_pair_remote_location
, or the default value if port_pair_remote_location
is unset.
Trait Implementations§
source§impl Clone for InterconnectRemoteLocationConstraints
impl Clone for InterconnectRemoteLocationConstraints
source§fn clone(&self) -> InterconnectRemoteLocationConstraints
fn clone(&self) -> InterconnectRemoteLocationConstraints
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for InterconnectRemoteLocationConstraints
impl Message for InterconnectRemoteLocationConstraints
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 InterconnectRemoteLocationConstraints
impl PartialEq for InterconnectRemoteLocationConstraints
source§fn eq(&self, other: &InterconnectRemoteLocationConstraints) -> bool
fn eq(&self, other: &InterconnectRemoteLocationConstraints) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InterconnectRemoteLocationConstraints
Auto Trait Implementations§
impl Freeze for InterconnectRemoteLocationConstraints
impl RefUnwindSafe for InterconnectRemoteLocationConstraints
impl Send for InterconnectRemoteLocationConstraints
impl Sync for InterconnectRemoteLocationConstraints
impl Unpin for InterconnectRemoteLocationConstraints
impl UnwindSafe for InterconnectRemoteLocationConstraints
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