# TransformationOverview

- [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#SCHEMA_REPRESENTATION)
- [TransformationSummary](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#TransformationSummary)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#TransformationSummary.SCHEMA_REPRESENTATION)
- [SummaryResult](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#SummaryResult)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#SummaryResult.SCHEMA_REPRESENTATION)
- [TransformationResultCode](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#TransformationResultCode)

Overview of the modifications that occurred.

| JSON representation |
|---|
| ``` { "transformedBytes": string, "transformationSummaries": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#TransformationSummary`) } ] } ``` |

| Fields ||
|---|---|
| `transformedBytes` | `string (https://developers.google.com/discovery/v1/type-format format)` Total size in bytes that were transformed in some way. |
| `transformationSummaries[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#TransformationSummary`)`` Transformations applied to the dataset. |

## TransformationSummary

Summary of a single transformation. Only one of 'transformation', 'field_transformation', or 'recordSuppress' will be set.

| JSON representation |
|---|
| ``` { "infoType": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InfoType`) }, "field": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/FieldId`) }, "transformation": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.deidentifyTemplates#DeidentifyTemplate.PrimitiveTransformation`) }, "fieldTransformations": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.deidentifyTemplates#DeidentifyTemplate.FieldTransformation`) } ], "recordSuppress": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.deidentifyTemplates#DeidentifyTemplate.RecordSuppression`) }, "results": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#SummaryResult`) } ], "transformedBytes": string } ``` |

| Fields ||
|---|---|
| `infoType` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InfoType`)`` Set if the transformation was limited to a specific InfoType. |
| `field` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/FieldId`)`` Set if the transformation was limited to a specific FieldId. |
| `transformation` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.deidentifyTemplates#DeidentifyTemplate.PrimitiveTransformation`)`` The specific transformation these stats apply to. |
| `fieldTransformations[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.deidentifyTemplates#DeidentifyTemplate.FieldTransformation`)`` The field transformation that was applied. If multiple field transformations are requested for a single field, this list will contain all of them; otherwise, only one is supplied. |
| `recordSuppress` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.deidentifyTemplates#DeidentifyTemplate.RecordSuppression`)`` The specific suppression option these stats apply to. |
| `results[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#SummaryResult`)`` Collection of all transformations that took place or had an error. |
| `transformedBytes` | `string (https://developers.google.com/discovery/v1/type-format format)` Total size in bytes that were transformed in some way. |

## SummaryResult

A collection that informs the user the number of times a particular `TransformationResultCode` and error details occurred.

| JSON representation |
|---|
| ``` { "count": string, "code": enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#TransformationResultCode`), "details": string } ``` |

| Fields ||
|---|---|
| `count` | `string (https://developers.google.com/discovery/v1/type-format format)` Number of transformations counted by this result. |
| `code` | ``enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/TransformationOverview#TransformationResultCode`)`` Outcome of the transformation. |
| `details` | `string` A place for warnings or errors to show up if a transformation didn't work as expected. |

## TransformationResultCode

Possible outcomes of transformations.

| Enums ||
|---|---|
| `TRANSFORMATION_RESULT_CODE_UNSPECIFIED` | Unused |
| `SUCCESS` | Transformation completed without an error. |
| `ERROR` | Transformation had an error. |