Struct google_compute1::SecurityPolicyRule
source · pub struct SecurityPolicyRule {
pub priority: Option<i32>,
pub kind: Option<String>,
pub description: Option<String>,
pub action: Option<String>,
pub preview: Option<bool>,
pub match_: Option<SecurityPolicyRuleMatcher>,
}Expand description
Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get rule security policies (response)
- add rule security policies (request)
- patch rule security policies (request)
Fields§
§priority: Option<i32>An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated in the increasing order of priority.
kind: Option<String>[Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules
description: Option<String>An optional description of this resource. Provide this property when you create the resource.
action: Option<String>The Action to preform when the client connection triggers the rule. Can currently be either “allow” or “deny()” where valid values for status are 403, 404, and 502.
preview: Option<bool>If set to true, the specified action is not enforced.
match_: Option<SecurityPolicyRuleMatcher>A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding ?action? is enforced.
Trait Implementations§
source§impl Clone for SecurityPolicyRule
impl Clone for SecurityPolicyRule
source§fn clone(&self) -> SecurityPolicyRule
fn clone(&self) -> SecurityPolicyRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SecurityPolicyRule
impl Debug for SecurityPolicyRule
source§impl Default for SecurityPolicyRule
impl Default for SecurityPolicyRule
source§fn default() -> SecurityPolicyRule
fn default() -> SecurityPolicyRule
source§impl<'de> Deserialize<'de> for SecurityPolicyRule
impl<'de> Deserialize<'de> for SecurityPolicyRule
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for SecurityPolicyRule
impl Serialize for SecurityPolicyRule
impl RequestValue for SecurityPolicyRule
impl ResponseResult for SecurityPolicyRule
Auto Trait Implementations§
impl Freeze for SecurityPolicyRule
impl RefUnwindSafe for SecurityPolicyRule
impl Send for SecurityPolicyRule
impl Sync for SecurityPolicyRule
impl Unpin for SecurityPolicyRule
impl UnwindSafe for SecurityPolicyRule
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more