Struct google_api_proto::google::cloud::edgenetwork::v1::InterconnectAttachment
source · pub struct InterconnectAttachment {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub description: String,
pub interconnect: String,
pub network: String,
pub vlan_id: i32,
pub mtu: i32,
pub state: i32,
}
Expand description
Message describing InterconnectAttachment object
Fields§
§name: String
Required. The canonical resource name of the interconnect attachment.
create_time: Option<Timestamp>
Output only. The time when the interconnect attachment was created.
update_time: Option<Timestamp>
Output only. The time when the interconnect attachment was last updated.
labels: BTreeMap<String, String>
Labels associated with this resource.
description: String
Optional. A free-text description of the resource. Max length 1024 characters.
interconnect: String
Required. The canonical name of underlying Interconnect object that this
attachment’s traffic will traverse through. The name is in the form of
projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}
.
network: String
Optional. The canonical Network name in the form of
projects/{project}/locations/{location}/zones/{zone}/networks/{network}
.
vlan_id: i32
Required. VLAN id provided by user. Must be site-wise unique.
mtu: i32
IP (L3) MTU value of the virtual edge cloud. Valid values are: 1500 and 9000. Default to 1500 if not set.
state: i32
Output only. Current stage of the resource to the device by config push.
Implementations§
source§impl InterconnectAttachment
impl InterconnectAttachment
sourcepub fn state(&self) -> ResourceState
pub fn state(&self) -> ResourceState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_state(&mut self, value: ResourceState)
pub fn set_state(&mut self, value: ResourceState)
Sets state
to the provided enum value.
Trait Implementations§
source§impl Clone for InterconnectAttachment
impl Clone for InterconnectAttachment
source§fn clone(&self) -> InterconnectAttachment
fn clone(&self) -> InterconnectAttachment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InterconnectAttachment
impl Debug for InterconnectAttachment
source§impl Default for InterconnectAttachment
impl Default for InterconnectAttachment
source§impl Message for InterconnectAttachment
impl Message for InterconnectAttachment
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 InterconnectAttachment
impl PartialEq for InterconnectAttachment
source§fn eq(&self, other: &InterconnectAttachment) -> bool
fn eq(&self, other: &InterconnectAttachment) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InterconnectAttachment
Auto Trait Implementations§
impl Freeze for InterconnectAttachment
impl RefUnwindSafe for InterconnectAttachment
impl Send for InterconnectAttachment
impl Sync for InterconnectAttachment
impl Unpin for InterconnectAttachment
impl UnwindSafe for InterconnectAttachment
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