Struct google_api_proto::google::cloud::compute::v1::SecurityPolicyRuleMatcher
source · pub struct SecurityPolicyRuleMatcher {
pub config: Option<SecurityPolicyRuleMatcherConfig>,
pub expr: Option<Expr>,
pub expr_options: Option<SecurityPolicyRuleMatcherExprOptions>,
pub versioned_expr: Option<String>,
}
Expand description
Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.
Fields§
§config: Option<SecurityPolicyRuleMatcherConfig>
The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.
expr: Option<Expr>
User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing evaluateThreatIntelligence
require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing evaluatePreconfiguredExpr('sourceiplist-*')
require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
expr_options: Option<SecurityPolicyRuleMatcherExprOptions>
The configuration options available when specifying a user defined CEVAL expression (i.e., ‘expr’).
versioned_expr: Option<String>
Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config. Check the VersionedExpr enum for the list of possible values.
Implementations§
source§impl SecurityPolicyRuleMatcher
impl SecurityPolicyRuleMatcher
sourcepub fn versioned_expr(&self) -> &str
pub fn versioned_expr(&self) -> &str
Returns the value of versioned_expr
, or the default value if versioned_expr
is unset.
Trait Implementations§
source§impl Clone for SecurityPolicyRuleMatcher
impl Clone for SecurityPolicyRuleMatcher
source§fn clone(&self) -> SecurityPolicyRuleMatcher
fn clone(&self) -> SecurityPolicyRuleMatcher
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecurityPolicyRuleMatcher
impl Debug for SecurityPolicyRuleMatcher
source§impl Default for SecurityPolicyRuleMatcher
impl Default for SecurityPolicyRuleMatcher
source§impl Message for SecurityPolicyRuleMatcher
impl Message for SecurityPolicyRuleMatcher
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 SecurityPolicyRuleMatcher
impl PartialEq for SecurityPolicyRuleMatcher
source§fn eq(&self, other: &SecurityPolicyRuleMatcher) -> bool
fn eq(&self, other: &SecurityPolicyRuleMatcher) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecurityPolicyRuleMatcher
Auto Trait Implementations§
impl Freeze for SecurityPolicyRuleMatcher
impl RefUnwindSafe for SecurityPolicyRuleMatcher
impl Send for SecurityPolicyRuleMatcher
impl Sync for SecurityPolicyRuleMatcher
impl Unpin for SecurityPolicyRuleMatcher
impl UnwindSafe for SecurityPolicyRuleMatcher
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