4.27.0 (latest) 4.26.0 4.25.0 4.24.0 4.23.0 4.22.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.5.0 3.4.0 3.3.0 3.2.0 2.16.0 2.15.0

    public sealed class Action.Types.Deidentify : IMessage<Action.Types.Deidentify>, IEquatable<Action.Types.Deidentify>, IDeepCloneable<Action.Types.Deidentify>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class Action.Types.Deidentify.

Create a de-identified copy of a storage bucket. Only compatible
with Cloud Storage buckets.

A TransformationDetail will be created for each transformation.

Compatible with: Inspection of Cloud Storage

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Action.Types.Deidentify

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Action](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.Action.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.Action.Types.md.txt)[Deidentify](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.Action.Types.Deidentify.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Action](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.Action.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.Action.Types.md.txt)[Deidentify](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.Action.Types.Deidentify.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Action](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.Action.md.txt)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.Action.Types.md.txt)[Deidentify](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.Action.Types.Deidentify.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dlp.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dlp.V2/latest/Google.Cloud.Dlp.V2.md.txt)

## Assembly

Google.Cloud.Dlp.V2.dll

## Constructors

### Deidentify()

    public Deidentify()

### Deidentify(Deidentify)

    public Deidentify(Action.Types.Deidentify other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ActionTypesDeidentify` |

## Properties

### CloudStorageOutput

    public string CloudStorageOutput { get; set; }

Required. User settable Cloud Storage bucket and folders to store
de-identified files. This field must be set for Cloud Storage
deidentification. The output Cloud Storage bucket must be different
from the input bucket. De-identified files will overwrite files in the
output path.

Form of: gs://bucket/folder/ or gs://bucket

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### FileTypesToTransform

    public RepeatedField<FileType> FileTypesToTransform { get; }

List of user-specified file type groups to transform. If specified, only
the files with these file types are transformed. If empty, all
supported files are transformed. Supported types may be automatically
added over time. Any unsupported file types that are set in this field
are excluded from de-identification. An error is recorded for each
unsupported file in the TransformationDetails output table. Currently the
only file types supported are: IMAGES, TEXT_FILES, CSV, TSV.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldFileType` |   |

### HasCloudStorageOutput

    public bool HasCloudStorageOutput { get; }

Gets whether the "cloud_storage_output" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### OutputCase

    public Action.Types.Deidentify.OutputOneofCase OutputCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ActionTypesDeidentifyOutputOneofCase` |   |

### TransformationConfig

    public TransformationConfig TransformationConfig { get; set; }

User specified deidentify templates and configs for structured,
unstructured, and image files.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TransformationConfig` |   |

### TransformationDetailsStorageConfig

    public TransformationDetailsStorageConfig TransformationDetailsStorageConfig { get; set; }

Config for storing transformation details.

This field specifies the configuration for storing detailed metadata
about each transformation performed during a de-identification process.
The metadata is stored separately from the de-identified content itself
and provides a granular record of both successful transformations and any
failures that occurred.

Enabling this configuration is essential for users who need to access
comprehensive information about the status, outcome, and specifics of
each transformation. The details are captured in the
\[TransformationDetails\]\[google.privacy.dlp.v2.TransformationDetails\]
message for each operation.

Key use cases:

- **Auditing and compliance**

  - Provides a verifiable audit trail of de-identification activities, which is crucial for meeting regulatory requirements and internal data governance policies.
  - Logs what data was transformed, what transformations were applied, when they occurred, and their success status. This helps demonstrate accountability and due diligence in protecting sensitive data.
- **Troubleshooting and debugging**

  - Offers detailed error messages and context if a transformation fails. This information is useful for diagnosing and resolving issues in the de-identification pipeline.
  - Helps pinpoint the exact location and nature of failures, speeding up the debugging process.
- **Process verification and quality assurance**

  - Allows users to confirm that de-identification rules and transformations were applied correctly and consistently across the dataset as intended.
  - Helps in verifying the effectiveness of the chosen de-identification strategies.
- **Data lineage and impact analysis**

  - Creates a record of how data elements were modified, contributing to data lineage. This is useful for understanding the provenance of de-identified data.
  - Aids in assessing the potential impact of de-identification choices on downstream analytical processes or data usability.
- **Reporting and operational insights**

  - You can analyze the metadata stored in a queryable BigQuery table to generate reports on transformation success rates, common error types, processing volumes (e.g., transformedBytes), and the types of transformations applied.
  - These insights can inform optimization of de-identification configurations and resource planning.

To take advantage of these benefits, set this configuration. The stored
details include a description of the transformation, success or
error codes, error messages, the number of bytes transformed, the
location of the transformed content, and identifiers for the job and
source data.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `TransformationDetailsStorageConfig` |   |