public sealed class PublishToPubSub : IMessage<Action.Types.PublishToPubSub>, IEquatable<Action.Types.PublishToPubSub>, IDeepCloneable<Action.Types.PublishToPubSub>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class Action.Types.PublishToPubSub.
Publish a message into a given Pub/Sub topic when DlpJob has completed. The
message contains a single field, DlpJobName, which is equal to the
finished job's
DlpJob.name.
Compatible with: Inspect, Risk
Cloud Pub/Sub topic to send notifications to. The topic must have given
publishing access rights to the DLP API service account executing
the long running DlpJob sending the notifications.
Format is projects/{project}/topics/{topic}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This page provides reference documentation for the `Action.Types.PublishToPubSub` class in the Google Cloud Data Loss Prevention (DLP) v2 API, specifically for the .NET environment."],["The `PublishToPubSub` class allows you to configure the system to send a message to a Pub/Sub topic when a DLP job is completed, with the message including the `DlpJob.name`."],["The class `PublishToPubSub` implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, making it compatible with the Google.Protobuf library."],["The latest version of this class is 4.16.0, and the documentation covers versions from 2.15.0 to 4.16.0, with version 4.5.0 being the version whose API documentation is currently displayed."],["The `Topic` property within the class allows the setting of the Pub/Sub topic to which completed job notifications are sent, requiring that the DLP API service account has publishing access rights."]]],[]]