Struct google_api_proto::google::cloud::networkconnectivity::v1::PolicyBasedRoute
source · pub struct PolicyBasedRoute {Show 13 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub description: String,
pub network: String,
pub filter: Option<Filter>,
pub priority: i32,
pub warnings: Vec<Warnings>,
pub self_link: String,
pub kind: String,
pub target: Option<Target>,
pub next_hop: Option<NextHop>,
}
Expand description
Policy Based Routes (PBR) are more powerful routes that allows GCP customers to route their L4 network traffic based on not just destination IP, but also source IP, protocol and more. A PBR always take precedence when it conflicts with other types of routes. Next id: 22
Fields§
§name: String
Immutable. A unique name of the resource in the form of
projects/{project_number}/locations/global/PolicyBasedRoutes/{policy_based_route_id}
create_time: Option<Timestamp>
Output only. Time when the PolicyBasedRoute was created.
update_time: Option<Timestamp>
Output only. Time when the PolicyBasedRoute was updated.
labels: BTreeMap<String, String>
User-defined labels.
description: String
Optional. An optional description of this resource. Provide this field when you create the resource.
network: String
Required. Fully-qualified URL of the network that this route applies to. e.g. projects/my-project/global/networks/my-network.
filter: Option<Filter>
Required. The filter to match L4 traffic.
priority: i32
Optional. The priority of this policy based route. Priority is used to break ties in cases where there are more than one matching policy based routes found. In cases where multiple policy based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive.
warnings: Vec<Warnings>
Output only. If potential misconfigurations are detected for this route, this field will be populated with warning messages.
self_link: String
Output only. Server-defined fully-qualified URL for this resource.
kind: String
Output only. Type of this resource. Always networkconnectivity#policyBasedRoute for Policy Based Route resources.
target: Option<Target>
Target specifies network endpoints to which this policy based route applies to. If none of the target is specified, the PBR will be installed on all network endpoints (e.g. VMs, VPNs, and Interconnects) in the VPC.
next_hop: Option<NextHop>
Trait Implementations§
source§impl Clone for PolicyBasedRoute
impl Clone for PolicyBasedRoute
source§fn clone(&self) -> PolicyBasedRoute
fn clone(&self) -> PolicyBasedRoute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PolicyBasedRoute
impl Debug for PolicyBasedRoute
source§impl Default for PolicyBasedRoute
impl Default for PolicyBasedRoute
source§impl Message for PolicyBasedRoute
impl Message for PolicyBasedRoute
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 PolicyBasedRoute
impl PartialEq for PolicyBasedRoute
source§fn eq(&self, other: &PolicyBasedRoute) -> bool
fn eq(&self, other: &PolicyBasedRoute) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PolicyBasedRoute
Auto Trait Implementations§
impl Freeze for PolicyBasedRoute
impl RefUnwindSafe for PolicyBasedRoute
impl Send for PolicyBasedRoute
impl Sync for PolicyBasedRoute
impl Unpin for PolicyBasedRoute
impl UnwindSafe for PolicyBasedRoute
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