Struct google_api_proto::google::cloud::networkservices::v1beta1::LbTrafficExtension
source · pub struct LbTrafficExtension {
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
LbTrafficExtension
is a resource that lets the extension service modify the
headers and payloads of both requests and responses without impacting the
choice of backend services or any other security policies associated with the
backend service.
Fields§
§name: String
Required. Identifier. Name of the LbTrafficExtension
resource in the
following format:
projects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_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 LbTrafficExtension
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 LBTrafficExtension
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 LbTrafficExtension
impl LbTrafficExtension
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 LbTrafficExtension
impl Clone for LbTrafficExtension
source§fn clone(&self) -> LbTrafficExtension
fn clone(&self) -> LbTrafficExtension
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LbTrafficExtension
impl Debug for LbTrafficExtension
source§impl Default for LbTrafficExtension
impl Default for LbTrafficExtension
source§impl Message for LbTrafficExtension
impl Message for LbTrafficExtension
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 LbTrafficExtension
impl PartialEq for LbTrafficExtension
source§fn eq(&self, other: &LbTrafficExtension) -> bool
fn eq(&self, other: &LbTrafficExtension) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LbTrafficExtension
Auto Trait Implementations§
impl Freeze for LbTrafficExtension
impl RefUnwindSafe for LbTrafficExtension
impl Send for LbTrafficExtension
impl Sync for LbTrafficExtension
impl Unpin for LbTrafficExtension
impl UnwindSafe for LbTrafficExtension
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