public static interface PolicySpec.PolicyRuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowAll()
Setting this to true means that all values are allowed.
|
com.google.type.Expr |
getCondition()
A condition which determines whether this rule is used
in the evaluation of the policy.
|
com.google.type.ExprOrBuilder |
getConditionOrBuilder()
A condition which determines whether this rule is used
in the evaluation of the policy.
|
boolean |
getDenyAll()
Setting this to true means that all values are denied.
|
boolean |
getEnforce()
If `true`, then the policy is enforced.
|
PolicySpec.PolicyRule.KindCase |
getKindCase() |
PolicySpec.PolicyRule.StringValues |
getValues()
List of values to be used for this policy rule.
|
PolicySpec.PolicyRule.StringValuesOrBuilder |
getValuesOrBuilder()
List of values to be used for this policy rule.
|
boolean |
hasAllowAll()
Setting this to true means that all values are allowed.
|
boolean |
hasCondition()
A condition which determines whether this rule is used
in the evaluation of the policy.
|
boolean |
hasDenyAll()
Setting this to true means that all values are denied.
|
boolean |
hasEnforce()
If `true`, then the policy is enforced.
|
boolean |
hasValues()
List of values to be used for this policy rule.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasValues()
List of values to be used for this policy rule. This field can be set only in policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;PolicySpec.PolicyRule.StringValues getValues()
List of values to be used for this policy rule. This field can be set only in policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;PolicySpec.PolicyRule.StringValuesOrBuilder getValuesOrBuilder()
List of values to be used for this policy rule. This field can be set only in policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;boolean hasAllowAll()
Setting this to true means that all values are allowed. This field can be set only in policies for list constraints.
bool allow_all = 2;boolean getAllowAll()
Setting this to true means that all values are allowed. This field can be set only in policies for list constraints.
bool allow_all = 2;boolean hasDenyAll()
Setting this to true means that all values are denied. This field can be set only in policies for list constraints.
bool deny_all = 3;boolean getDenyAll()
Setting this to true means that all values are denied. This field can be set only in policies for list constraints.
bool deny_all = 3;boolean hasEnforce()
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.
bool enforce = 4;boolean getEnforce()
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.
bool enforce = 4;boolean hasCondition()
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('<ORG_ID>/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')".
.google.type.Expr condition = 5;com.google.type.Expr getCondition()
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('<ORG_ID>/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')".
.google.type.Expr condition = 5;com.google.type.ExprOrBuilder getConditionOrBuilder()
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('<ORG_ID>/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')".
.google.type.Expr condition = 5;PolicySpec.PolicyRule.KindCase getKindCase()
Copyright © 2024 Google LLC. All rights reserved.