Class: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2PublishToPubSub

Returns a new instance of GooglePrivacyDlpV2PublishToPubSub.



5718
5719
5720
# File 'lib/google/apis/dlp_v2/classes.rb', line 5718

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#topicString

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

Returns:

  • (String)


5716
5717
5718
# File 'lib/google/apis/dlp_v2/classes.rb', line 5716

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5723
5724
5725
# File 'lib/google/apis/dlp_v2/classes.rb', line 5723

def update!(**args)
  @topic = args[:topic] if args.key?(:topic)
end