Reference documentation and code samples for the Google Cloud Deploy V1 Client class PolicyViolation.
Returned from an action if one or more policies were violated, and therefore the action was prevented. Contains information about what policies were violated and why.
Generated from protobuf message google.cloud.deploy.v1.PolicyViolation
Namespace
Google \ Cloud \ Deploy \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ policy_violation_details |
array<PolicyViolationDetails>
Policy violation details. |
getPolicyViolationDetails
Policy violation details.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setPolicyViolationDetails
Policy violation details.
Parameter | |
---|---|
Name | Description |
var |
array<PolicyViolationDetails>
|
Returns | |
---|---|
Type | Description |
$this |