Struct google_compute1::Router
source · pub struct Router {
pub kind: Option<String>,
pub description: Option<String>,
pub name: Option<String>,
pub interfaces: Option<Vec<RouterInterface>>,
pub id: Option<String>,
pub bgp: Option<RouterBgp>,
pub bgp_peers: Option<Vec<RouterBgpPeer>>,
pub creation_timestamp: Option<String>,
pub region: Option<String>,
pub self_link: Option<String>,
pub network: Option<String>,
}Expand description
Router resource.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get routers (response)
- list routers (none)
- patch routers (request)
- aggregated list routers (none)
- insert routers (request)
- delete routers (none)
- update routers (request)
- get router status routers (none)
- preview routers (request)
Fields§
§kind: Option<String>[Output Only] Type of resource. Always compute#router for routers.
description: Option<String>An optional description of this resource. Provide this property when you create the resource.
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? 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.
interfaces: Option<Vec<RouterInterface>>Router interfaces. Each interface requires either one linked resource (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both.
id: Option<String>[Output Only] The unique identifier for the resource. This identifier is defined by the server.
bgp: Option<RouterBgp>BGP information specific to this router.
bgp_peers: Option<Vec<RouterBgpPeer>>BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Please refer to RFC4273.
creation_timestamp: Option<String>[Output Only] Creation timestamp in RFC3339 text format.
region: Option<String>[Output Only] URI of the region where the router resides.
self_link: Option<String>[Output Only] Server-defined URL for the resource.
network: Option<String>URI of the network to which this router belongs.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Router
impl<'de> Deserialize<'de> for Router
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Router
impl Resource for Router
impl ResponseResult 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more