Action(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A task to execute on the completion of a job. See https://cloud.google.com/dlp/docs/concepts-actions to learn more.
This message has oneof
_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes | |
---|---|
Name | Description |
save_findings |
google.cloud.dlp_v2.types.Action.SaveFindings
Save resulting findings in a provided location. This field is a member of oneof _ action .
|
pub_sub |
google.cloud.dlp_v2.types.Action.PublishToPubSub
Publish a notification to a pubsub topic. This field is a member of oneof _ action .
|
publish_summary_to_cscc |
google.cloud.dlp_v2.types.Action.PublishSummaryToCscc
Publish summary to Cloud Security Command Center (Alpha). This field is a member of oneof _ action .
|
publish_findings_to_cloud_data_catalog |
google.cloud.dlp_v2.types.Action.PublishFindingsToCloudDataCatalog
Publish findings to Cloud Datahub. This field is a member of oneof _ action .
|
job_notification_emails |
google.cloud.dlp_v2.types.Action.JobNotificationEmails
Enable email notification for project owners and editors on job's completion/failure. This field is a member of oneof _ action .
|
publish_to_stackdriver |
google.cloud.dlp_v2.types.Action.PublishToStackdriver
Enable Stackdriver metric dlp.googleapis.com/finding_count. This field is a member of oneof _ action .
|
Classes
JobNotificationEmails
JobNotificationEmails(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Enable email notification to project owners and editors on jobs's completion/failure.
PublishFindingsToCloudDataCatalog
PublishFindingsToCloudDataCatalog(
mapping=None, *, ignore_unknown_fields=False, **kwargs
)
Publish findings of a DlpJob to Data Catalog. Labels summarizing the results of the DlpJob will be applied to the entry for the resource scanned in 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 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
PublishSummaryToCscc
PublishSummaryToCscc(mapping=None, *, ignore_unknown_fields=False, **kwargs)
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
PublishToPubSub
PublishToPubSub(mapping=None, *, ignore_unknown_fields=False, **kwargs)
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
https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob`__.
Compatible with: Inspect, Risk
PublishToStackdriver
PublishToStackdriver(mapping=None, *, ignore_unknown_fields=False, **kwargs)
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'.
SaveFindings
SaveFindings(mapping=None, *, ignore_unknown_fields=False, **kwargs)
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