Data Loss Prevention V2 Client - Class ExclusionRule (1.8.6)

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

The rule that specifies conditions when findings of infoTypes specified in InspectionRuleSet are removed from results.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ dictionary Google\Cloud\Dlp\V2\CustomInfoType\Dictionary

Dictionary which defines the rule.

↳ regex Google\Cloud\Dlp\V2\CustomInfoType\Regex

Regular expression which defines the rule.

↳ exclude_info_types Google\Cloud\Dlp\V2\ExcludeInfoTypes

Set of infoTypes for which findings would affect this rule.

↳ exclude_by_hotword Google\Cloud\Dlp\V2\ExcludeByHotword

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

↳ matching_type int

How the rule is applied, see MatchingType documentation for details.

getDictionary

Dictionary which defines the rule.

Returns
TypeDescription
Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null

hasDictionary

setDictionary

Dictionary which defines the rule.

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

getRegex

Regular expression which defines the rule.

Returns
TypeDescription
Google\Cloud\Dlp\V2\CustomInfoType\Regex|null

hasRegex

setRegex

Regular expression which defines the rule.

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

getExcludeInfoTypes

Set of infoTypes for which findings would affect this rule.

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

hasExcludeInfoTypes

setExcludeInfoTypes

Set of infoTypes for which findings would affect this rule.

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

getExcludeByHotword

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

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

hasExcludeByHotword

setExcludeByHotword

Drop if the hotword rule is contained in the proximate context. For tabular data, the context includes the column name.

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

getMatchingType

How the rule is applied, see MatchingType documentation for details.

Returns
TypeDescription
int

setMatchingType

How the rule is applied, see MatchingType documentation for details.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getType

Returns
TypeDescription
string