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"]],[["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-03-21 UTC."],[[["The latest version of `PublishToPubSub` is 4.16.0, and this class is part of the `Google.Cloud.Dlp.V2` namespace, with a range of previous versions from 2.15.0 to 4.15.0 also available."],["The `PublishToPubSub` class is designed to publish a message to a specified Pub/Sub topic upon completion of a DlpJob, and the message contains the `DlpJobName`, which corresponds to the finished job's name."],["This class is compatible with Inspect and Risk actions and implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["`PublishToPubSub` has a property `Topic` which is a string that represents the format of the Pub/Sub topic to send notifications, and the DLP API service account needs publishing access rights to this topic."],["This class includes two constructors: a default constructor `PublishToPubSub()` and an overloaded constructor `PublishToPubSub(Action.Types.PublishToPubSub other)` that takes an existing `Action.Types.PublishToPubSub` object as a parameter."]]],[]]