Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Action
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2Action
- 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. See https://cloud.google.com/dlp/ docs/concepts-actions to learn more.
Instance Attribute Summary collapse
-
#job_notification_emails ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobNotificationEmails
Enable email notification to project owners and editors on jobs's completion/ failure.
-
#pub_sub ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub
Publish a message into given Pub/Sub topic when DlpJob has completed.
-
#publish_findings_to_cloud_data_catalog ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog
Publish findings of a DlpJob to Cloud Data Catalog.
-
#publish_summary_to_cscc ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2PublishSummaryToCscc
Publish the result summary of a DlpJob to the Cloud Security Command Center ( CSCC Alpha).
-
#publish_to_stackdriver ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToStackdriver
Enable Stackdriver metric dlp.googleapis.com/finding_count.
-
#save_findings ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2SaveFindings
If set, the detailed findings will be persisted to the specified OutputStorageConfig.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2Action
constructor
A new instance of GooglePrivacyDlpV2Action.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2Action
Returns a new instance of GooglePrivacyDlpV2Action.
83 84 85 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 83 def initialize(**args) update!(**args) end |
Instance Attribute Details
#job_notification_emails ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2JobNotificationEmails
Enable email notification to project owners and editors on jobs's completion/
failure.
Corresponds to the JSON property jobNotificationEmails
34 35 36 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 34 def job_notification_emails @job_notification_emails end |
#pub_sub ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub
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
. Compatible with: Inspect, Risk
Corresponds to the JSON property pubSub
42 43 44 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 42 def pub_sub @pub_sub end |
#publish_findings_to_cloud_data_catalog ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog
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
55 56 57 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 55 def publish_findings_to_cloud_data_catalog @publish_findings_to_cloud_data_catalog end |
#publish_summary_to_cscc ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2PublishSummaryToCscc
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 https://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
66 67 68 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 66 def publish_summary_to_cscc @publish_summary_to_cscc end |
#publish_to_stackdriver ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToStackdriver
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
74 75 76 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 74 def publish_to_stackdriver @publish_to_stackdriver end |
#save_findings ⇒ Google::Apis::DlpV2::GooglePrivacyDlpV2SaveFindings
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
81 82 83 |
# File 'generated/google/apis/dlp_v2/classes.rb', line 81 def save_findings @save_findings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
88 89 90 91 92 93 94 95 |
# File 'generated/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 |