pub struct Router {Show 14 fields
pub bgp: Option<RouterBgp>,
pub bgp_peers: Vec<RouterBgpPeer>,
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub encrypted_interconnect_router: Option<bool>,
pub id: Option<u64>,
pub interfaces: Vec<RouterInterface>,
pub kind: Option<String>,
pub md5_authentication_keys: Vec<RouterMd5AuthenticationKey>,
pub name: Option<String>,
pub nats: Vec<RouterNat>,
pub network: Option<String>,
pub region: Option<String>,
pub self_link: Option<String>,
}
Expand description
Represents a Cloud Router resource. For more information about Cloud Router, read the Cloud Router overview.
Fields§
§bgp: Option<RouterBgp>
BGP information specific to this router.
bgp_peers: Vec<RouterBgpPeer>
BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer to RFC4273.
creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
description: Option<String>
An optional description of this resource. Provide this property when you create the resource.
encrypted_interconnect_router: Option<bool>
Indicates if a router is dedicated for use with encrypted VLAN attachments (interconnectAttachments).
id: Option<u64>
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
interfaces: Vec<RouterInterface>
Router interfaces. To create a BGP peer that uses a router interface, the interface must have one of the following fields specified: - linkedVpnTunnel - linkedInterconnectAttachment - subnetwork You can create a router interface without any of these fields specified. However, you cannot create a BGP peer that uses that interface.
kind: Option<String>
[Output Only] Type of resource. Always compute#router for routers.
md5_authentication_keys: Vec<RouterMd5AuthenticationKey>
Keys used for MD5 authentication.
name: Option<String>
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](\[-a-z0-9\]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
nats: Vec<RouterNat>
A list of NAT services created in this router.
network: Option<String>
URI of the network to which this router belongs.
region: Option<String>
[Output Only] URI of the region where the router resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
self_link: Option<String>
[Output Only] Server-defined URL for the resource.
Implementations§
source§impl Router
impl Router
sourcepub fn creation_timestamp(&self) -> &str
pub fn creation_timestamp(&self) -> &str
Returns the value of creation_timestamp
, or the default value if creation_timestamp
is unset.
sourcepub fn region(&self) -> &str
pub fn region(&self) -> &str
Returns the value of region
, or the default value if region
is unset.
sourcepub fn network(&self) -> &str
pub fn network(&self) -> &str
Returns the value of network
, or the default value if network
is unset.
sourcepub fn encrypted_interconnect_router(&self) -> bool
pub fn encrypted_interconnect_router(&self) -> bool
Returns the value of encrypted_interconnect_router
, or the default value if encrypted_interconnect_router
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
Trait Implementations§
source§impl Message for Router
impl Message for Router
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 Router
impl PartialEq for Router
impl StructuralPartialEq for Router
Auto Trait Implementations§
impl Freeze for Router
impl RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl UnwindSafe for Router
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