Struct google_orgpolicy2::api::GoogleCloudOrgpolicyV2PolicySpecPolicyRule [−][src]
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]
fn clone(&self) -> GoogleCloudOrgpolicyV2PolicySpecPolicyRule
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
[src]
impl Default for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
[src]
impl<'de> Deserialize<'de> for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
[src]
impl Serialize for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
[src]
Auto Trait Implementations
impl RefUnwindSafe for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl Send for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl Sync for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl Unpin for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl UnwindSafe for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,