Package com.google.cloud.orgpolicy.v2
Interface PolicySpec.PolicyRuleOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PolicySpec.PolicyRule,PolicySpec.PolicyRule.Builder
- Enclosing class:
- PolicySpec
public static interface PolicySpec.PolicyRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetAllowAll()Setting this to true means that all values are allowed.com.google.type.ExprgetCondition()A condition which determines whether this rule is used in the evaluation of the policy.com.google.type.ExprOrBuildergetConditionOrBuilder()A condition which determines whether this rule is used in the evaluation of the policy.booleangetDenyAll()Setting this to true means that all values are denied.booleangetEnforce()If `true`, then the `Policy` is enforced.PolicySpec.PolicyRule.KindCasegetKindCase()PolicySpec.PolicyRule.StringValuesgetValues()List of values to be used for this PolicyRule.PolicySpec.PolicyRule.StringValuesOrBuildergetValuesOrBuilder()List of values to be used for this PolicyRule.booleanhasAllowAll()Setting this to true means that all values are allowed.booleanhasCondition()A condition which determines whether this rule is used in the evaluation of the policy.booleanhasDenyAll()Setting this to true means that all values are denied.booleanhasEnforce()If `true`, then the `Policy` is enforced.booleanhasValues()List of values to be used for this PolicyRule.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasValues
boolean hasValues()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;- Returns:
- Whether the values field is set.
-
getValues
PolicySpec.PolicyRule.StringValues getValues()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;- Returns:
- The values.
-
getValuesOrBuilder
PolicySpec.PolicyRule.StringValuesOrBuilder getValuesOrBuilder()
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
.google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues values = 1;
-
hasAllowAll
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;- Returns:
- Whether the allowAll field is set.
-
getAllowAll
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;- Returns:
- The allowAll.
-
hasDenyAll
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;- Returns:
- Whether the denyAll field is set.
-
getDenyAll
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;- Returns:
- The denyAll.
-
hasEnforce
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;- Returns:
- Whether the enforce field is set.
-
getEnforce
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;- Returns:
- The enforce.
-
hasCondition
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;- Returns:
- Whether the condition field is set.
-
getCondition
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;- Returns:
- The condition.
-
getConditionOrBuilder
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;
-
getKindCase
PolicySpec.PolicyRule.KindCase getKindCase()
-
-