Data Loss Prevention V2 Client - Class PolicyAction (2.15.2)

Reference documentation and code samples for the Data Loss Prevention V2 Client class PolicyAction.

A possible action to take when applying a content policy.

Generated from protobuf message google.privacy.dlp.v2.ContentPolicy.PolicyAction

Namespace

Google \ Cloud \ Dlp \ V2 \ ContentPolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ return_verdict int

Optional. If set, the verdict will be returned to the user.

getReturnVerdict

Optional. If set, the verdict will be returned to the user.

Returns
Type Description
int Enum of type ContentPolicyVerdict.

hasReturnVerdict

setReturnVerdict

Optional. If set, the verdict will be returned to the user.

Parameter
Name Description
var int

Enum of type ContentPolicyVerdict.

Returns
Type Description
$this

getAction

Returns
Type Description
string