Struct google_api_proto::google::cloud::networkservices::v1beta1::LbRouteExtension
source · pub struct LbRouteExtension {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub description: String,
pub labels: BTreeMap<String, String>,
pub forwarding_rules: Vec<String>,
pub extension_chains: Vec<ExtensionChain>,
pub load_balancing_scheme: i32,
}
Expand description
LbRouteExtension
is a resource that lets you control where traffic is
routed to for a given request.
Fields§
§name: String
Required. Identifier. Name of the LbRouteExtension
resource in the
following format:
projects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extension}
.
create_time: Option<Timestamp>
Output only. The timestamp when the resource was created.
update_time: Option<Timestamp>
Output only. The timestamp when the resource was updated.
description: String
Optional. A human-readable description of the resource.
labels: BTreeMap<String, String>
Optional. Set of labels associated with the LbRouteExtension
resource.
The format must comply with the requirements for labels for Google Cloud resources.
forwarding_rules: Vec<String>
Required. A list of references to the forwarding rules to which this
service extension is attached to. At least one forwarding rule is required.
There can be only one LbRouteExtension
resource per forwarding rule.
extension_chains: Vec<ExtensionChain>
Required. A set of ordered extension chains that contain the match conditions and extensions to execute. Match conditions for each extension chain are evaluated in sequence for a given request. The first extension chain that has a condition that matches the request is executed. Any subsequent extension chains do not execute. Limited to 5 extension chains per resource.
load_balancing_scheme: i32
Required. All backend services and forwarding rules referenced by this
extension must share the same load balancing scheme. Supported values:
INTERNAL_MANAGED
, EXTERNAL_MANAGED
. For more information, refer to
Choosing a load
balancer.
Implementations§
source§impl LbRouteExtension
impl LbRouteExtension
sourcepub fn load_balancing_scheme(&self) -> LoadBalancingScheme
pub fn load_balancing_scheme(&self) -> LoadBalancingScheme
Returns the enum value of load_balancing_scheme
, or the default if the field is set to an invalid enum value.
sourcepub fn set_load_balancing_scheme(&mut self, value: LoadBalancingScheme)
pub fn set_load_balancing_scheme(&mut self, value: LoadBalancingScheme)
Sets load_balancing_scheme
to the provided enum value.
Trait Implementations§
source§impl Clone for LbRouteExtension
impl Clone for LbRouteExtension
source§fn clone(&self) -> LbRouteExtension
fn clone(&self) -> LbRouteExtension
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LbRouteExtension
impl Debug for LbRouteExtension
source§impl Default for LbRouteExtension
impl Default for LbRouteExtension
source§impl Message for LbRouteExtension
impl Message for LbRouteExtension
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 LbRouteExtension
impl PartialEq for LbRouteExtension
source§fn eq(&self, other: &LbRouteExtension) -> bool
fn eq(&self, other: &LbRouteExtension) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LbRouteExtension
Auto Trait Implementations§
impl Freeze for LbRouteExtension
impl RefUnwindSafe for LbRouteExtension
impl Send for LbRouteExtension
impl Sync for LbRouteExtension
impl Unpin for LbRouteExtension
impl UnwindSafe for LbRouteExtension
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