GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse class
A rule used to express this policy.
Constructors
-
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse({required Input<
bool> allowAll, required Input<GoogleTypeExprResponse> condition, required Input<bool> denyAll, required Input<bool> enforce, required Input<GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponse> values}) -
Creates a new GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse.
allowAllSetting this to true means that all values are allowed. This field can be set only in policies for list constraints.conditionA condition which determines whether this rule is used in the evaluation of the policy. When set, theexpressionfield in theExpr' 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')". [denyAll] Setting this to true means that all values are denied. This field can be set only in policies for list constraints. [enforce] Iftrue, then the policy is enforced. Iffalse`, then any configuration is acceptable. This field can be set only in policies for boolean constraints.valuesList of values to be used for this policy rule. This field can be set only in policies for list constraints.const -
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
allowAll
→ Input<
bool> -
Setting this to true means that all values are allowed. This field can be set only in policies for list constraints.
final
-
condition
→ Input<
GoogleTypeExprResponse> -
A condition which determines whether this rule is used in the evaluation of the policy. When set, the
expressionfield 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')".final -
denyAll
→ Input<
bool> -
Setting this to true means that all values are denied. This field can be set only in policies for list constraints.
final
-
enforce
→ Input<
bool> -
If
true, then the policy is enforced. Iffalse, then any configuration is acceptable. This field can be set only in policies for boolean constraints.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Input<
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponse> -
List of values to be used for this policy rule. This field can be set only in policies for list constraints.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited