Data Loss Prevention V2 Client - Class InspectionRuleSet (2.2.0)

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

Rule set for modifying a set of infoTypes to alter behavior under certain circumstances, depending on the specific details of the rules within the set.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ info_types array<Google\Cloud\Dlp\V2\InfoType>

List of infoTypes this rule set is applied to.

↳ rules array<Google\Cloud\Dlp\V2\InspectionRule>

Set of rules to be applied to infoTypes. The rules are applied in order.

getInfoTypes

List of infoTypes this rule set is applied to.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setInfoTypes

List of infoTypes this rule set is applied to.

Parameter
Name Description
var array<Google\Cloud\Dlp\V2\InfoType>
Returns
Type Description
$this

getRules

Set of rules to be applied to infoTypes. The rules are applied in order.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRules

Set of rules to be applied to infoTypes. The rules are applied in order.

Parameter
Name Description
var array<Google\Cloud\Dlp\V2\InspectionRule>
Returns
Type Description
$this