[−][src]Struct google_compute1::SecurityPolicyRule
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 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]
fn default() -> SecurityPolicyRule
[src]
impl Clone for SecurityPolicyRule
[src]
fn clone(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for SecurityPolicyRule
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for SecurityPolicyRule
impl Unpin for SecurityPolicyRule
impl Sync for SecurityPolicyRule
impl UnwindSafe for SecurityPolicyRule
impl RefUnwindSafe for SecurityPolicyRule
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,