# Data Loss Prevention V2 Client - Class DataProfileAction (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 DataProfileAction.

A task to execute when a data profile has been generated.

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

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ export_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileAction.Export` Export data profiles into a provided location. |
| `↳ pub_sub_notification` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileAction.PubSubNotification` Publish a message into the Pub/Sub topic. |
| `↳ publish_to_chronicle` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileAction.PublishToChronicle` Publishes generated data profiles to Google Security Operations. For more information, see [Use Sensitive Data Protection data in context-aware analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). |
| `↳ publish_to_scc` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileAction.PublishToSecurityCommandCenter` Publishes findings to Security Command Center for each data profile. |
| `↳ tag_resources` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileAction.TagResources` Tags the profiled resources with the specified tag values. |
| `↳ publish_to_dataplex_catalog` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataProfileAction.PublishToDataplexCatalog` Publishes a portion of each profile to Dataplex Universal Catalog with the aspect type Sensitive Data Protection Profile. |

### getExportData

Export data profiles into a provided location.

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

### hasExportData

### setExportData

Export data profiles into a provided location.

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

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

### getPubSubNotification

Publish a message into the Pub/Sub topic.

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

### hasPubSubNotification

### setPubSubNotification

Publish a message into the Pub/Sub topic.

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

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

### getPublishToChronicle

Publishes generated data profiles to Google Security Operations.

For more information, see [Use Sensitive Data Protection data in
context-aware
analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).

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

### hasPublishToChronicle

### setPublishToChronicle

Publishes generated data profiles to Google Security Operations.

For more information, see [Use Sensitive Data Protection data in
context-aware
analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download).

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

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

### getPublishToScc

Publishes findings to Security Command Center for each data profile.

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

### hasPublishToScc

### setPublishToScc

Publishes findings to Security Command Center for each data profile.

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

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

### getTagResources

Tags the profiled resources with the specified tag values.

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

### hasTagResources

### setTagResources

Tags the profiled resources with the specified tag values.

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

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

### getPublishToDataplexCatalog

Publishes a portion of each profile to Dataplex Universal Catalog with
the aspect type Sensitive Data Protection Profile.

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

### hasPublishToDataplexCatalog

### setPublishToDataplexCatalog

Publishes a portion of each profile to Dataplex Universal Catalog with
the aspect type Sensitive Data Protection Profile.

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

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

### getAction

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