Google Cloud Deploy V1 Client - Class PolicyViolation (1.3.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ policy_violation_details array<Google\Cloud\Deploy\V1\PolicyViolationDetails>

Policy violation details.

getPolicyViolationDetails

Policy violation details.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPolicyViolationDetails

Policy violation details.

Parameter
Name Description
var array<Google\Cloud\Deploy\V1\PolicyViolationDetails>
Returns
Type Description
$this