Class PubSubNotification (3.13.0)

PubSubNotification(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

Attributes

NameDescription
topic str
Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}.
event google.cloud.dlp_v2.types.DataProfileAction.EventType
The type of event that triggers a Pub/Sub. At most one PubSubNotification per EventType is permitted.
pubsub_condition google.cloud.dlp_v2.types.DataProfilePubSubCondition
Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub.
detail_of_message google.cloud.dlp_v2.types.DataProfileAction.PubSubNotification.DetailLevel
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).

Classes

DetailLevel

DetailLevel(value)

The levels of detail that can be included in the Pub/Sub message.

Values: DETAIL_LEVEL_UNSPECIFIED (0): Unused. TABLE_PROFILE (1): The full table data profile. RESOURCE_NAME (2): The resource name of the table.