Data Loss Prevention V2 Client - Class AdjustmentRule (2.10.0)

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

Rule that specifies conditions when a certain infoType's finding details should be adjusted.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ adjust_by_matching_info_types AdjustByMatchingInfoTypes

Set of infoTypes for which findings would affect this rule.

↳ adjust_by_image_findings AdjustByImageFindings

AdjustmentRule condition for image findings.

↳ likelihood_adjustment CustomInfoType\DetectionRule\LikelihoodAdjustment

Likelihood adjustment to apply to the infoType.

getAdjustByMatchingInfoTypes

Set of infoTypes for which findings would affect this rule.

Returns
Type Description
AdjustByMatchingInfoTypes|null

hasAdjustByMatchingInfoTypes

setAdjustByMatchingInfoTypes

Set of infoTypes for which findings would affect this rule.

Parameter
Name Description
var AdjustByMatchingInfoTypes
Returns
Type Description
$this

getAdjustByImageFindings

AdjustmentRule condition for image findings.

Returns
Type Description
AdjustByImageFindings|null

hasAdjustByImageFindings

setAdjustByImageFindings

AdjustmentRule condition for image findings.

Parameter
Name Description
var AdjustByImageFindings
Returns
Type Description
$this

getLikelihoodAdjustment

Likelihood adjustment to apply to the infoType.

Returns
Type Description
CustomInfoType\DetectionRule\LikelihoodAdjustment|null

hasLikelihoodAdjustment

clearLikelihoodAdjustment

setLikelihoodAdjustment

Likelihood adjustment to apply to the infoType.

Parameter
Name Description
var CustomInfoType\DetectionRule\LikelihoodAdjustment
Returns
Type Description
$this

getConditions

Returns
Type Description
string