class Google::Apis::DlpV2::GooglePrivacyDlpV2Action

A task to execute on the completion of a job. See cloud.google.com/dlp/ docs/concepts-actions to learn more.

Attributes

job_notification_emails[RW]

Enable email notification to project owners and editors on jobs's completion/ failure. Corresponds to the JSON property `jobNotificationEmails` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobNotificationEmails]

pub_sub[RW]

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 Corresponds to the JSON property `pubSub` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub]

publish_findings_to_cloud_data_catalog[RW]

Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the results of the DlpJob will be applied to the entry for the resource scanned in Cloud Data Catalog. Any labels previously written by another DlpJob will be deleted. InfoType naming patterns are strictly enforced when using this feature. Note that the findings will be persisted in Cloud Data Catalog storage and are governed by Data Catalog service-specific policy, see https:// cloud.google.com/terms/service-terms Only a single instance of this action can be specified and only allowed if all resources being scanned are BigQuery tables. Compatible with: Inspect Corresponds to the JSON property `publishFindingsToCloudDataCatalog` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog]

publish_summary_to_cscc[RW]

Publish the result summary of a DlpJob to the Cloud Security Command Center ( CSCC Alpha). This action is only available for projects which are parts of an organization and whitelisted for the alpha Cloud Security Command Center. The action will publish count of finding instances and their info types. The summary of findings will be persisted in CSCC and are governed by CSCC service- specific policy, see cloud.google.com/terms/service-terms Only a single instance of this action can be specified. Compatible with: Inspect Corresponds to the JSON property `publishSummaryToCscc` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishSummaryToCscc]

publish_to_stackdriver[RW]

Enable Stackdriver metric dlp.googleapis.com/finding_count. This will publish a metric to stack driver on each infotype requested and how many findings were found for it. CustomDetectors will be bucketed as 'Custom' under the Stackdriver label 'info_type'. Corresponds to the JSON property `publishToStackdriver` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToStackdriver]

save_findings[RW]

If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk Corresponds to the JSON property `saveFindings` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SaveFindings]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dlp_v2/classes.rb, line 83
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 88
def update!(**args)
  @job_notification_emails = args[:job_notification_emails] if args.key?(:job_notification_emails)
  @pub_sub = args[:pub_sub] if args.key?(:pub_sub)
  @publish_findings_to_cloud_data_catalog = args[:publish_findings_to_cloud_data_catalog] if args.key?(:publish_findings_to_cloud_data_catalog)
  @publish_summary_to_cscc = args[:publish_summary_to_cscc] if args.key?(:publish_summary_to_cscc)
  @publish_to_stackdriver = args[:publish_to_stackdriver] if args.key?(:publish_to_stackdriver)
  @save_findings = args[:save_findings] if args.key?(:save_findings)
end