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

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

Overview

Publish the results of a DlpJob to a pub sub channel. Compatible with: Inpect, Risk

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2PublishToPubSub

Returns a new instance of GooglePrivacyDlpV2PublishToPubSub



3507
3508
3509
# File 'generated/google/apis/dlp_v2/classes.rb', line 3507

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)


3505
3506
3507
# File 'generated/google/apis/dlp_v2/classes.rb', line 3505

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3512
3513
3514
# File 'generated/google/apis/dlp_v2/classes.rb', line 3512

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