public sealed class AnalyzerOrgPolicy.Types.Rule : IMessage<AnalyzerOrgPolicy.Types.Rule>, IEquatable<AnalyzerOrgPolicy.Types.Rule>, IDeepCloneable<AnalyzerOrgPolicy.Types.Rule>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class AnalyzerOrgPolicy.Types.Rule.
This rule message is a customized version of the one defined in the Organization Policy system. In addition to the fields defined in the original organization policy, it contains additional field(s) under specific circumstances to support analysis results.
Implements
IMessageAnalyzerOrgPolicyTypesRule, IEquatableAnalyzerOrgPolicyTypesRule, IDeepCloneableAnalyzerOrgPolicyTypesRule, IBufferMessage, IMessageNamespace
Google.Cloud.Asset.V1Assembly
Google.Cloud.Asset.V1.dll
Constructors
Rule()
public Rule()
Rule(Rule)
public Rule(AnalyzerOrgPolicy.Types.Rule other)
Parameter | |
---|---|
Name | Description |
other | AnalyzerOrgPolicyTypesRule |
Properties
AllowAll
public bool AllowAll { get; set; }
Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.
Property Value | |
---|---|
Type | Description |
bool |
Condition
public Expr Condition { get; set; }
The evaluating condition for this rule.
Property Value | |
---|---|
Type | Description |
Expr |
ConditionEvaluation
public ConditionEvaluation ConditionEvaluation { get; set; }
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].
Property Value | |
---|---|
Type | Description |
ConditionEvaluation |
DenyAll
public bool DenyAll { get; set; }
Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.
Property Value | |
---|---|
Type | Description |
bool |
Enforce
public bool Enforce { get; set; }
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.
Property Value | |
---|---|
Type | Description |
bool |
HasAllowAll
public bool HasAllowAll { get; }
Gets whether the "allow_all" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasDenyAll
public bool HasDenyAll { get; }
Gets whether the "deny_all" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasEnforce
public bool HasEnforce { get; }
Gets whether the "enforce" field is set
Property Value | |
---|---|
Type | Description |
bool |
KindCase
public AnalyzerOrgPolicy.Types.Rule.KindOneofCase KindCase { get; }
Property Value | |
---|---|
Type | Description |
AnalyzerOrgPolicyTypesRuleKindOneofCase |
Values
public AnalyzerOrgPolicy.Types.Rule.Types.StringValues Values { get; set; }
List of values to be used for this policy rule. This field can be set only in policies for list constraints.
Property Value | |
---|---|
Type | Description |
AnalyzerOrgPolicyTypesRuleTypesStringValues |