Google Cloud Deploy V1 Client - Class PolicyViolationDetails (1.4.0)

Reference documentation and code samples for the Google Cloud Deploy V1 Client class PolicyViolationDetails.

Policy violation details.

Generated from protobuf message google.cloud.deploy.v1.PolicyViolationDetails

Namespace

Google \ Cloud \ Deploy \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ policy string

Name of the policy that was violated. Policy resource will be in the format of projects/{project}/locations/{location}/policies/{policy}.

↳ rule_id string

Id of the rule that triggered the policy violation.

↳ failure_message string

User readable message about why the request violated a policy. This is not intended for machine parsing.

getPolicy

Name of the policy that was violated.

Policy resource will be in the format of projects/{project}/locations/{location}/policies/{policy}.

Returns
Type Description
string

setPolicy

Name of the policy that was violated.

Policy resource will be in the format of projects/{project}/locations/{location}/policies/{policy}.

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleId

Id of the rule that triggered the policy violation.

Returns
Type Description
string

setRuleId

Id of the rule that triggered the policy violation.

Parameter
Name Description
var string
Returns
Type Description
$this

getFailureMessage

User readable message about why the request violated a policy. This is not intended for machine parsing.

Returns
Type Description
string

setFailureMessage

User readable message about why the request violated a policy. This is not intended for machine parsing.

Parameter
Name Description
var string
Returns
Type Description
$this