public sealed class 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.
Represents a rule defined in an organization policy
Implements
IMessage<AnalyzerOrgPolicy.Types.Rule>, IEquatable<AnalyzerOrgPolicy.Types.Rule>, IDeepCloneable<AnalyzerOrgPolicy.Types.Rule>, IBufferMessage, IMessageNamespace
Google.Cloud.Asset.V1Assembly
Google.Cloud.Asset.V1.dll
Constructors
Rule()
public Rule()
Rule(AnalyzerOrgPolicy.Types.Rule)
public Rule(AnalyzerOrgPolicy.Types.Rule other)
Parameter | |
---|---|
Name | Description |
other | AnalyzerOrgPolicy.Types.Rule |
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 |
Boolean |
Condition
public Expr Condition { get; set; }
The evaluating condition for this rule.
Property Value | |
---|---|
Type | Description |
Expr |
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 |
Boolean |
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 |
Boolean |
KindCase
public AnalyzerOrgPolicy.Types.Rule.KindOneofCase KindCase { get; }
Property Value | |
---|---|
Type | Description |
AnalyzerOrgPolicy.Types.Rule.KindOneofCase |
Values
public AnalyzerOrgPolicy.Types.Rule.Types.StringValues Values { get; set; }
List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.
Property Value | |
---|---|
Type | Description |
AnalyzerOrgPolicy.Types.Rule.Types.StringValues |