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
Namespace
Google \ Cloud \ Dlp \ V2 \ DataProfileActionMethods
__construct
Constructor.
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}.
string
setTopic
Cloud Pub/Sub topic to send notifications to.
Format is projects/{project}/topics/{topic}.
var
string
$this
getEvent
The type of event that triggers a Pub/Sub. At most one PubSubNotification
per EventType is permitted.
int
setEvent
The type of event that triggers a Pub/Sub. At most one PubSubNotification
per EventType is permitted.
var
int
$this
getPubsubCondition
Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
hasPubsubCondition
clearPubsubCondition
setPubsubCondition
Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
$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).
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).
var
int
$this