[][src]Struct google_compute1::SecurityPolicyRule

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>,
}

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).

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 from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest prority.

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

impl ResponseResult for SecurityPolicyRule[src]

impl RequestValue for SecurityPolicyRule[src]

impl Default for SecurityPolicyRule[src]

impl Clone for SecurityPolicyRule[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for SecurityPolicyRule[src]

impl Serialize for SecurityPolicyRule[src]

impl<'de> Deserialize<'de> for SecurityPolicyRule[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]