Struct google_orgpolicy2::api::GoogleCloudOrgpolicyV2PolicySpecPolicyRule[][src]

pub struct GoogleCloudOrgpolicyV2PolicySpecPolicyRule {
    pub allow_all: Option<bool>,
    pub condition: Option<GoogleTypeExpr>,
    pub deny_all: Option<bool>,
    pub enforce: Option<bool>,
    pub values: Option<GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues>,
}

A rule used to express this policy.

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

Fields

allow_all: Option<bool>

Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

condition: Option<GoogleTypeExpr>

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr’ must include from 1 to 10 subexpressions, joined by the “||” or “&&” operators. Each subexpression must be of the form “resource.matchTag(’/tag_key_short_name, ‘tag_value_short_name’)”. or “resource.matchTagId(‘tagKeys/key_id’, ‘tagValues/value_id’)”. where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: “resource.matchTag(’123456789/environment, ‘prod’)”. or “resource.matchTagId(‘tagKeys/123’, ‘tagValues/456’)”.

deny_all: Option<bool>

Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

enforce: Option<bool>

If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

values: Option<GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues>

List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.

Trait Implementations

impl Clone for GoogleCloudOrgpolicyV2PolicySpecPolicyRule[src]

impl Debug for GoogleCloudOrgpolicyV2PolicySpecPolicyRule[src]

impl Default for GoogleCloudOrgpolicyV2PolicySpecPolicyRule[src]

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

impl Part for GoogleCloudOrgpolicyV2PolicySpecPolicyRule[src]

impl Serialize for GoogleCloudOrgpolicyV2PolicySpecPolicyRule[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.