Common Protos for Google Cloud APIs Client - Class ViolationInfo (0.4.2)

Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class ViolationInfo.

Provides information about the Policy violation info for this request.

Generated from protobuf message google.cloud.audit.ViolationInfo

Namespace

Google \ Cloud \ Audit

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ constraint string

Optional. Constraint name

↳ error_message string

Optional. Error message that policy is indicating.

↳ checked_value string

Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types

↳ policy_type int

Optional. Indicates the type of the policy.

getConstraint

Optional. Constraint name

Returns
TypeDescription
string

setConstraint

Optional. Constraint name

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getErrorMessage

Optional. Error message that policy is indicating.

Returns
TypeDescription
string

setErrorMessage

Optional. Error message that policy is indicating.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCheckedValue

Optional. Value that is being checked for the policy.

This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types

Returns
TypeDescription
string

setCheckedValue

Optional. Value that is being checked for the policy.

This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPolicyType

Optional. Indicates the type of the policy.

Returns
TypeDescription
int

setPolicyType

Optional. Indicates the type of the policy.

Parameter
NameDescription
var int
Returns
TypeDescription
$this