class Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub
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`](cloud.google.com/dlp/docs/reference/rest/v2/ projects.dlpJobs#DlpJob). Compatible with: Inspect, Risk
Attributes
topic[RW]
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`. Corresponds to the JSON property `topic` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/dlp_v2/classes.rb, line 4756 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/dlp_v2/classes.rb, line 4761 def update!(**args) @topic = args[:topic] if args.key?(:topic) end