Data Loss Prevention V2 Client - Class InspectionRule (1.8.6)

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

A single inspection rule to be applied to infoTypes, specified in InspectionRuleSet.

Generated from protobuf message google.privacy.dlp.v2.InspectionRule

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ hotword_rule Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule

Hotword-based detection rule.

↳ exclusion_rule Google\Cloud\Dlp\V2\ExclusionRule

Exclusion rule.

getHotwordRule

Hotword-based detection rule.

Returns
TypeDescription
Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule|null

hasHotwordRule

setHotwordRule

Hotword-based detection rule.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule
Returns
TypeDescription
$this

getExclusionRule

Exclusion rule.

Returns
TypeDescription
Google\Cloud\Dlp\V2\ExclusionRule|null

hasExclusionRule

setExclusionRule

Exclusion rule.

Parameter
NameDescription
var Google\Cloud\Dlp\V2\ExclusionRule
Returns
TypeDescription
$this

getType

Returns
TypeDescription
string