Package com.google.cloud.asset.v1
Interface AnalyzerOrgPolicy.RuleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnalyzerOrgPolicy.Rule,AnalyzerOrgPolicy.Rule.Builder
- Enclosing class:
- AnalyzerOrgPolicy
public static interface AnalyzerOrgPolicy.RuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanSetting this to true means that all values are allowed.The evaluating condition for this rule.The condition evaluation result for this rule.The condition evaluation result for this rule.The evaluating condition for this rule.booleanSetting this to true means that all values are denied.booleanIf `true`, then the `Policy` is enforced.List of values to be used for this policy rule.List of values to be used for this policy rule.booleanSetting this to true means that all values are allowed.booleanThe evaluating condition for this rule.booleanThe condition evaluation result for this rule.booleanSetting this to true means that all values are denied.booleanIf `true`, then the `Policy` is enforced.booleanList of values to be used for this policy rule.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasValues
boolean hasValues()List of values to be used for this policy rule. This field can be set only in policies for list constraints.
.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;- Returns:
- Whether the values field is set.
-
getValues
AnalyzerOrgPolicy.Rule.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.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3;- Returns:
- The values.
-
getValuesOrBuilder
AnalyzerOrgPolicy.Rule.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.asset.v1.AnalyzerOrgPolicy.Rule.StringValues values = 3; -
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 = 4;- 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 = 4;- 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 = 5;- 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 = 5;- 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 = 6;- 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 = 6;- Returns:
- The enforce.
-
hasCondition
boolean hasCondition()The evaluating condition for this rule.
.google.type.Expr condition = 7;- Returns:
- Whether the condition field is set.
-
getCondition
Expr getCondition()The evaluating condition for this rule.
.google.type.Expr condition = 7;- Returns:
- The condition.
-
getConditionOrBuilder
ExprOrBuilder getConditionOrBuilder()The evaluating condition for this rule.
.google.type.Expr condition = 7; -
hasConditionEvaluation
boolean hasConditionEvaluation()The condition evaluation result for this rule. Only populated if it meets all the following criteria: * There is a [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition] defined for this rule. * This rule is within [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy], or [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy] when the [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset] has [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource].
.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8;- Returns:
- Whether the conditionEvaluation field is set.
-
getConditionEvaluation
ConditionEvaluation getConditionEvaluation()The condition evaluation result for this rule. Only populated if it meets all the following criteria: * There is a [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition] defined for this rule. * This rule is within [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy], or [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy] when the [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset] has [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource].
.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8;- Returns:
- The conditionEvaluation.
-
getConditionEvaluationOrBuilder
ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder()The condition evaluation result for this rule. Only populated if it meets all the following criteria: * There is a [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition] defined for this rule. * This rule is within [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer.consolidated_policy], or [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.consolidated_policy] when the [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset] has [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedAsset.governed_resource].
.google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; -
getKindCase
AnalyzerOrgPolicy.Rule.KindCase getKindCase()
-