Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class OrgPolicyViolation.
OrgPolicyViolation is a resource representing a single resource violating a single OrgPolicy constraint.
Generated from protobuf message google.cloud.policysimulator.v1.OrgPolicyViolation
Namespace
Google \ Cloud \ PolicySimulator \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The name of the OrgPolicyViolation
. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
↳ resource
↳ custom_constraint
↳ error
getName
The name of the OrgPolicyViolation
. Example:
organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
string
setName
The name of the OrgPolicyViolation
. Example:
organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
var
string
$this
getResource
The resource violating the constraint.
hasResource
clearResource
setResource
The resource violating the constraint.
$this
getCustomConstraint
The custom constraint being violated.
hasCustomConstraint
clearCustomConstraint
setCustomConstraint
The custom constraint being violated.
$this
getError
Any error encountered during the evaluation.
hasError
clearError
setError
Any error encountered during the evaluation.
$this

