Policy Simulator v1 API - Class OrgPolicyViolation (1.3.0)

public sealed class OrgPolicyViolation : IMessage<OrgPolicyViolation>, IEquatable<OrgPolicyViolation>, IDeepCloneable<OrgPolicyViolation>, IBufferMessage, IMessage

Reference documentation and code samples for the Policy Simulator v1 API class OrgPolicyViolation.

OrgPolicyViolation is a resource representing a single resource violating a single OrgPolicy constraint.

Inheritance

object > OrgPolicyViolation

Namespace

Google.Cloud.PolicySimulator.V1

Assembly

Google.Cloud.PolicySimulator.V1.dll

Constructors

OrgPolicyViolation()

public OrgPolicyViolation()

OrgPolicyViolation(OrgPolicyViolation)

public OrgPolicyViolation(OrgPolicyViolation other)
Parameter
Name Description
other OrgPolicyViolation

Properties

CustomConstraint

public CustomConstraint CustomConstraint { get; set; }

The custom constraint being violated.

Property Value
Type Description
CustomConstraint

Error

public Status Error { get; set; }

Any error encountered during the evaluation.

Property Value
Type Description
Status

Name

public string Name { get; set; }

The name of the OrgPolicyViolation. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`

Property Value
Type Description
string

OrgPolicyViolationName

public OrgPolicyViolationName OrgPolicyViolationName { get; set; }

OrgPolicyViolationName-typed view over the Name resource name property.

Property Value
Type Description
OrgPolicyViolationName

Resource

public ResourceContext Resource { get; set; }

The resource violating the constraint.

Property Value
Type Description
ResourceContext