Struct google_api_proto::google::cloud::networkconnectivity::v1::Route
source · pub struct Route {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub ip_cidr_range: String,
pub type: i32,
pub next_hop_vpc_network: Option<NextHopVpcNetwork>,
pub labels: BTreeMap<String, String>,
pub description: String,
pub uid: String,
pub state: i32,
pub spoke: String,
pub location: String,
}
Expand description
A route defines a path from VM instances within a spoke to a specific destination resource. Only VPC spokes have routes.
Fields§
§name: String
Immutable. The name of the route. Route names must be unique. Route names
use the following form:
projects/{project_number}/locations/global/hubs/{hub}/routeTables/{route_table_id}/routes/{route_id}
create_time: Option<Timestamp>
Output only. The time the route was created.
update_time: Option<Timestamp>
Output only. The time the route was last updated.
ip_cidr_range: String
The destination IP address range.
type: i32
Output only. The route’s type. Its type is determined by the properties of its IP address range.
next_hop_vpc_network: Option<NextHopVpcNetwork>
Immutable. The destination VPC network for packets on this route.
labels: BTreeMap<String, String>
Optional labels in key-value pair format. For more information about labels, see Requirements for labels.
description: String
An optional description of the route.
uid: String
Output only. The Google-generated UUID for the route. This value is unique
across all Network Connectivity Center route resources. If a
route is deleted and another with the same name is created,
the new route is assigned a different uid
.
state: i32
Output only. The current lifecycle state of the route.
spoke: String
Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE
location: String
Output only. The location of the route. Uses the following form: “projects/{project}/locations/{location}” Example: projects/1234/locations/us-central1
Implementations§
Trait Implementations§
source§impl Message for Route
impl Message for Route
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 Route
impl PartialEq for Route
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnwindSafe for Route
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