Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Action

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

A task to execute on the completion of a job.

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) ⇒ GooglePrivacyDlpV2Action

Returns a new instance of GooglePrivacyDlpV2Action



41
42
43
# File 'generated/google/apis/dlp_v2/classes.rb', line 41

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

Instance Attribute Details

#pub_subGoogle::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub

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



33
34
35
# File 'generated/google/apis/dlp_v2/classes.rb', line 33

def pub_sub
  @pub_sub
end

#save_findingsGoogle::Apis::DlpV2::GooglePrivacyDlpV2SaveFindings

If set, the detailed findings will be persisted to the specified OutputStorageConfig. Compatible with: Inspect Corresponds to the JSON property saveFindings



39
40
41
# File 'generated/google/apis/dlp_v2/classes.rb', line 39

def save_findings
  @save_findings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'generated/google/apis/dlp_v2/classes.rb', line 46

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