# Data Loss Prevention V2 Client - Class Action (2.13.0)

2.13.0 (latest) 2.12.0 2.11.0 2.10.0 2.9.2 2.8.1 2.7.0 2.6.1 2.4.1 2.3.0 2.2.3 2.1.0 2.0.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.1 1.14.0 1.13.2 1.12.0 1.11.0 1.10.2 1.9.0 1.8.6 Reference documentation and code samples for the Data Loss Prevention V2 Client class Action.

A task to execute on the completion of a job.

See <https://cloud.google.com/sensitive-data-protection/docs/concepts-actions>
to learn more.

Generated from protobuf message `google.privacy.dlp.v2.Action`

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ save_findings` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.SaveFindings` Save resulting findings in a provided location. |
| `↳ pub_sub` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishToPubSub` Publish a notification to a Pub/Sub topic. |
| `↳ publish_summary_to_cscc` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishSummaryToCscc` Publish summary to Cloud Security Command Center (Alpha). |
| `↳ publish_findings_to_cloud_data_catalog` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishFindingsToCloudDataCatalog` Deprecated because Data Catalog is being turned down. Use publish_findings_to_dataplex_catalog to publish findings to Dataplex Universal Catalog. |
| `↳ publish_findings_to_dataplex_catalog` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishFindingsToDataplexCatalog` Publish findings as an aspect to Dataplex Universal Catalog. |
| `↳ deidentify` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.Deidentify` Create a de-identified copy of the input data. |
| `↳ job_notification_emails` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.JobNotificationEmails` Sends an email when the job completes. The email goes to IAM project owners and technical [Essential Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). |
| `↳ publish_to_stackdriver` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishToStackdriver` Enable Stackdriver metric dlp.googleapis.com/finding_count. |

### getSaveFindings

Save resulting findings in a provided location.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.SaveFindings|null` |   |

### hasSaveFindings

### setSaveFindings

Save resulting findings in a provided location.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.SaveFindings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPubSub

Publish a notification to a Pub/Sub topic.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishToPubSub|null` |   |

### hasPubSub

### setPubSub

Publish a notification to a Pub/Sub topic.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishToPubSub` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPublishSummaryToCscc

Publish summary to Cloud Security Command Center (Alpha).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishSummaryToCscc|null` |   |

### hasPublishSummaryToCscc

### setPublishSummaryToCscc

Publish summary to Cloud Security Command Center (Alpha).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishSummaryToCscc` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPublishFindingsToCloudDataCatalog

Deprecated because Data Catalog is being turned down. Use
publish_findings_to_dataplex_catalog to publish findings to Dataplex
Universal Catalog.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishFindingsToCloudDataCatalog|null` |   |

### hasPublishFindingsToCloudDataCatalog

### setPublishFindingsToCloudDataCatalog

Deprecated because Data Catalog is being turned down. Use
publish_findings_to_dataplex_catalog to publish findings to Dataplex
Universal Catalog.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishFindingsToCloudDataCatalog` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPublishFindingsToDataplexCatalog

Publish findings as an aspect to Dataplex Universal Catalog.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishFindingsToDataplexCatalog|null` |   |

### hasPublishFindingsToDataplexCatalog

### setPublishFindingsToDataplexCatalog

Publish findings as an aspect to Dataplex Universal Catalog.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishFindingsToDataplexCatalog` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDeidentify

Create a de-identified copy of the input data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.Deidentify|null` |   |

### hasDeidentify

### setDeidentify

Create a de-identified copy of the input data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.Deidentify` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getJobNotificationEmails

Sends an email when the job completes. The email goes to IAM project
owners and technical [Essential
Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.JobNotificationEmails|null` |   |

### hasJobNotificationEmails

### setJobNotificationEmails

Sends an email when the job completes. The email goes to IAM project
owners and technical [Essential
Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.JobNotificationEmails` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPublishToStackdriver

Enable Stackdriver metric dlp.googleapis.com/finding_count.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishToStackdriver|null` |   |

### hasPublishToStackdriver

### setPublishToStackdriver

Enable Stackdriver metric dlp.googleapis.com/finding_count.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Action.PublishToStackdriver` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAction

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |