Class: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub
- 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
-
#topic ⇒ String
Cloud Pub/Sub topic to send notifications to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2PublishToPubSub
constructor
A new instance of GooglePrivacyDlpV2PublishToPubSub.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2PublishToPubSub
Returns a new instance of GooglePrivacyDlpV2PublishToPubSub.
8130 8131 8132 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8130 def initialize(**args) update!(**args) end |
Instance Attribute Details
#topic ⇒ String
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
8128 8129 8130 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8128 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8135 8136 8137 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 8135 def update!(**args) @topic = args[:topic] if args.key?(:topic) end |