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>,
}Expand description
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 policy rule. This field can be set only in policies for list constraints.
Trait Implementations§
Source§impl Clone for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl Clone for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
Source§fn clone(&self) -> GoogleCloudOrgpolicyV2PolicySpecPolicyRule
fn clone(&self) -> GoogleCloudOrgpolicyV2PolicySpecPolicyRule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl Default for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
Source§fn default() -> GoogleCloudOrgpolicyV2PolicySpecPolicyRule
fn default() -> GoogleCloudOrgpolicyV2PolicySpecPolicyRule
Source§impl<'de> Deserialize<'de> for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl<'de> Deserialize<'de> for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
Auto Trait Implementations§
impl Freeze for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl RefUnwindSafe for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl Send for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl Sync for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl Unpin for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
impl UnwindSafe for GoogleCloudOrgpolicyV2PolicySpecPolicyRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more