[][src]Struct google_compute1::Rule

pub struct Rule {
    pub description: Option<String>,
    pub not_ins: Option<Vec<String>>,
    pub action: Option<String>,
    pub permissions: Option<Vec<String>>,
    pub ins: Option<Vec<String>>,
    pub conditions: Option<Vec<Condition>>,
    pub log_configs: Option<Vec<LogConfig>>,
}

A rule to be applied in a Policy.

This type is not used in any activity, and only used as part of another schema.

Fields

description: Option<String>

Human-readable description of the rule.

not_ins: Option<Vec<String>>

If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.

action: Option<String>

Required

permissions: Option<Vec<String>>

A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '' matches all permissions, and a verb part of '' (e.g., 'storage.buckets.*') matches all verbs.

ins: Option<Vec<String>>

If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.

conditions: Option<Vec<Condition>>

Additional restrictions that must be met. All conditions must pass for the rule to match.

log_configs: Option<Vec<LogConfig>>

The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.

Trait Implementations

impl Part for Rule[src]

impl Default for Rule[src]

impl Clone for Rule[src]

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

Performs copy-assignment from source. Read more

impl Debug for Rule[src]

impl Serialize for Rule[src]

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

Auto Trait Implementations

impl Send for Rule

impl Unpin for Rule

impl Sync for Rule

impl UnwindSafe for Rule

impl RefUnwindSafe for Rule

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]