public sealed class OrgPolicyOverlay : IMessage<OrgPolicyOverlay>, IEquatable<OrgPolicyOverlay>, IDeepCloneable<OrgPolicyOverlay>, IBufferMessage, IMessage
Reference documentation and code samples for the Policy Simulator v1 API class OrgPolicyOverlay.
The proposed changes to OrgPolicy.
Implements
IMessageOrgPolicyOverlay, IEquatableOrgPolicyOverlay, IDeepCloneableOrgPolicyOverlay, IBufferMessage, IMessageNamespace
Google.Cloud.PolicySimulator.V1Assembly
Google.Cloud.PolicySimulator.V1.dll
Constructors
OrgPolicyOverlay()
public OrgPolicyOverlay()
OrgPolicyOverlay(OrgPolicyOverlay)
public OrgPolicyOverlay(OrgPolicyOverlay other)
Parameter | |
---|---|
Name | Description |
other |
OrgPolicyOverlay |
Properties
CustomConstraints
public RepeatedField<OrgPolicyOverlay.Types.CustomConstraintOverlay> CustomConstraints { get; }
Optional. The OrgPolicy CustomConstraint changes to preview violations for.
Any existing CustomConstraints with the same name will be overridden in the simulation. That is, violations will be determined as if all custom constraints in the overlay were instantiated.
Only a single custom_constraint is supported in the overlay at a time.
For evaluating multiple constraints, multiple
GenerateOrgPolicyViolationsPreview
requests are made, where each request
evaluates a single constraint.
Property Value | |
---|---|
Type | Description |
RepeatedFieldOrgPolicyOverlayTypesCustomConstraintOverlay |
Policies
public RepeatedField<OrgPolicyOverlay.Types.PolicyOverlay> Policies { get; }
Optional. The OrgPolicy changes to preview violations for.
Any existing OrgPolicies with the same name will be overridden in the simulation. That is, violations will be determined as if all policies in the overlay were created or updated.
Property Value | |
---|---|
Type | Description |
RepeatedFieldOrgPolicyOverlayTypesPolicyOverlay |