Data Loss Prevention V2 Client - Class PubSubNotification (1.8.6)

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

Send a Pub/Sub message into the given Pub/Sub topic to connect other systems to data profile generation. The message payload data will be the byte serialization of DataProfilePubSubMessage.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ topic string

Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.

↳ event int

The type of event that triggers a Pub/Sub. At most one PubSubNotification per EventType is permitted.

↳ pubsub_condition Google\Cloud\Dlp\V2\DataProfilePubSubCondition

Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.

↳ detail_of_message int

How much data to include in the Pub/Sub message. If the user wishes to limit the size of the message, they can use resource_name and fetch the profile fields they wish to. Per table profile (not per column).

getTopic

Cloud Pub/Sub topic to send notifications to.

Format is projects/{project}/topics/{topic}.

Returns
TypeDescription
string

setTopic

Cloud Pub/Sub topic to send notifications to.

Format is projects/{project}/topics/{topic}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEvent

The type of event that triggers a Pub/Sub. At most one PubSubNotification per EventType is permitted.

Returns
TypeDescription
int

setEvent

The type of event that triggers a Pub/Sub. At most one PubSubNotification per EventType is permitted.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPubsubCondition

Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.

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

hasPubsubCondition

clearPubsubCondition

setPubsubCondition

Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.

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

getDetailOfMessage

How much data to include in the Pub/Sub message. If the user wishes to limit the size of the message, they can use resource_name and fetch the profile fields they wish to. Per table profile (not per column).

Returns
TypeDescription
int

setDetailOfMessage

How much data to include in the Pub/Sub message. If the user wishes to limit the size of the message, they can use resource_name and fetch the profile fields they wish to. Per table profile (not per column).

Parameter
NameDescription
var int
Returns
TypeDescription
$this