Data Loss Prevention V2 Client - Class DataProfileAction (1.11.0)

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

A task to execute when a data profile has been generated.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ export_data Google\Cloud\Dlp\V2\DataProfileAction\Export

Export data profiles into a provided location.

↳ pub_sub_notification Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification

Publish a message into the Pub/Sub topic.

getExportData

Export data profiles into a provided location.

Returns
TypeDescription
Google\Cloud\Dlp\V2\DataProfileAction\Export|null

hasExportData

setExportData

Export data profiles into a provided location.

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

getPubSubNotification

Publish a message into the Pub/Sub topic.

Returns
TypeDescription
Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification|null

hasPubSubNotification

setPubSubNotification

Publish a message into the Pub/Sub topic.

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

getAction

Returns
TypeDescription
string