Data Loss Prevention V2 Client - Class PolicyCondition (2.15.2)

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

A condition that must match for this rule to apply.

Generated from protobuf message google.privacy.dlp.v2.ContentPolicy.PolicyRule.PolicyCondition

Namespace

Google \ Cloud \ Dlp \ V2 \ ContentPolicy \ PolicyRule

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ info_type_condition PolicyCondition\InfoTypeCondition

A condition based on info types.

getInfoTypeCondition

A condition based on info types.

Returns
Type Description
PolicyCondition\InfoTypeCondition|null

hasInfoTypeCondition

setInfoTypeCondition

A condition based on info types.

Parameter
Name Description
var PolicyCondition\InfoTypeCondition
Returns
Type Description
$this

getCondition

Returns
Type Description
string