public sealed class PublishToPubSub : IMessage<Action.Types.PublishToPubSub>, IEquatable<Action.Types.PublishToPubSub>, IDeepCloneable<Action.Types.PublishToPubSub>, IBufferMessage, IMessage
Publish a message into 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 details the \u003ccode\u003ePublishToPubSub\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Dlp.V2\u003c/code\u003e namespace, which facilitates sending messages to a Pub/Sub topic upon the completion of a DlpJob.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is 4.16.0, and the page lists versions dating back to 2.15.0, each linking to its respective documentation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePublishToPubSub\u003c/code\u003e inherits from \u003ccode\u003eObject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing methods for message handling, comparison, cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two constructors: a default one (\u003ccode\u003ePublishToPubSub()\u003c/code\u003e) and one that takes another \u003ccode\u003ePublishToPubSub\u003c/code\u003e instance as a parameter for copying (\u003ccode\u003ePublishToPubSub(Action.Types.PublishToPubSub other)\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eIt has a \u003ccode\u003eTopic\u003c/code\u003e property, a string that represents the Cloud Pub/Sub topic to which notifications are sent, requiring appropriate publishing access rights for the DLP API service account.\u003c/p\u003e\n"]]],[],null,[]]