#[non_exhaustive]pub struct InterconnectAttachmentConfigurationConstraints {
pub bgp_md_5: Option<BgpMd5>,
pub bgp_peer_asn_ranges: Vec<InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange>,
/* private fields */
}interconnect-attachments or interconnect-remote-locations only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bgp_md_5: Option<BgpMd5>Output only. [Output Only] Whether the attachment’s BGP session requires/allows/disallows BGP MD5 authentication. This can take one of the following values: MD5_OPTIONAL, MD5_REQUIRED, MD5_UNSUPPORTED.
For example, a Cross-Cloud Interconnect connection to a remote cloud provider that requires BGP MD5 authentication has the interconnectRemoteLocation attachment_configuration_constraints.bgp_md5 field set to MD5_REQUIRED, and that property is propagated to the attachment. Similarly, if BGP MD5 is MD5_UNSUPPORTED, an error is returned if MD5 is requested.
bgp_peer_asn_ranges: Vec<InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange>Output only. [Output Only] List of ASN ranges that the remote location is known to support. Formatted as an array of inclusive ranges {min: min-value, max: max-value}. For example, [{min: 123, max: 123}, {min: 64512, max: 65534}] allows the peer ASN to be 123 or anything in the range 64512-65534.
This field is only advisory. Although the API accepts other ranges, these are the ranges that we recommend.
Implementations§
Source§impl InterconnectAttachmentConfigurationConstraints
impl InterconnectAttachmentConfigurationConstraints
Sourcepub fn set_bgp_md_5<T>(self, v: T) -> Self
pub fn set_bgp_md_5<T>(self, v: T) -> Self
Sets the value of bgp_md_5.
§Example
use google_cloud_compute_v1::model::interconnect_attachment_configuration_constraints::BgpMd5;
let x0 = InterconnectAttachmentConfigurationConstraints::new().set_bgp_md_5(BgpMd5::Md5Required);
let x1 = InterconnectAttachmentConfigurationConstraints::new().set_bgp_md_5(BgpMd5::Md5Unsupported);Sourcepub fn set_or_clear_bgp_md_5<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_bgp_md_5<T>(self, v: Option<T>) -> Self
Sets or clears the value of bgp_md_5.
§Example
use google_cloud_compute_v1::model::interconnect_attachment_configuration_constraints::BgpMd5;
let x0 = InterconnectAttachmentConfigurationConstraints::new().set_or_clear_bgp_md_5(Some(BgpMd5::Md5Required));
let x1 = InterconnectAttachmentConfigurationConstraints::new().set_or_clear_bgp_md_5(Some(BgpMd5::Md5Unsupported));
let x_none = InterconnectAttachmentConfigurationConstraints::new().set_or_clear_bgp_md_5(None::<BgpMd5>);Sourcepub fn set_bgp_peer_asn_ranges<T, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = V>,
V: Into<InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange>,
pub fn set_bgp_peer_asn_ranges<T, V>(self, v: T) -> Selfwhere
T: IntoIterator<Item = V>,
V: Into<InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange>,
Sets the value of bgp_peer_asn_ranges.
§Example
use google_cloud_compute_v1::model::InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange;
let x = InterconnectAttachmentConfigurationConstraints::new()
.set_bgp_peer_asn_ranges([
InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange::default()/* use setters */,
InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for InterconnectAttachmentConfigurationConstraints
impl Clone for InterconnectAttachmentConfigurationConstraints
Source§fn clone(&self) -> InterconnectAttachmentConfigurationConstraints
fn clone(&self) -> InterconnectAttachmentConfigurationConstraints
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for InterconnectAttachmentConfigurationConstraints
impl Default for InterconnectAttachmentConfigurationConstraints
Source§fn default() -> InterconnectAttachmentConfigurationConstraints
fn default() -> InterconnectAttachmentConfigurationConstraints
impl StructuralPartialEq for InterconnectAttachmentConfigurationConstraints
Auto Trait Implementations§
impl Freeze for InterconnectAttachmentConfigurationConstraints
impl RefUnwindSafe for InterconnectAttachmentConfigurationConstraints
impl Send for InterconnectAttachmentConfigurationConstraints
impl Sync for InterconnectAttachmentConfigurationConstraints
impl Unpin for InterconnectAttachmentConfigurationConstraints
impl UnsafeUnpin for InterconnectAttachmentConfigurationConstraints
impl UnwindSafe for InterconnectAttachmentConfigurationConstraints
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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