public sealed class Action.Types.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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eAction.Types.PublishToPubSub\u003c/code\u003e class within the Google Cloud Data Loss Prevention (DLP) v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePublishToPubSub\u003c/code\u003e class allows you to send a message to a specified Pub/Sub topic when a DLP job is completed, containing the name of the finished job.\u003c/p\u003e\n"],["\u003cp\u003eThe class supports different versions of the API, from 2.15.0 to the latest version, 4.16.0, as well as being compatible with Inspect and Risk types of DLP jobs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePublishToPubSub\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and can be constructed using the default \u003ccode\u003ePublishToPubSub()\u003c/code\u003e method, or by passing another \u003ccode\u003ePublishToPubSub\u003c/code\u003e object to it.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTopic\u003c/code\u003e property allows for setting the name of the Cloud Pub/Sub topic that will receive notifications, and it must be formatted as \u003ccode\u003eprojects/{project}/topics/{topic}\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]