- [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentPolicyActionLog#SCHEMA_REPRESENTATION)
- [InfoTypeMatch](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentPolicyActionLog#InfoTypeMatch)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentPolicyActionLog#InfoTypeMatch.SCHEMA_REPRESENTATION)

Message used when saving content policy logs to external storage (such as BigQuery or Cloud Storage).

| JSON representation |
|---|
| ``` { "contentPolicy": string, "logTime": string, "dataSourceType": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/DataSourceType`) }, "containerId": string, "documentId": string, "matchingInfoTypes": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentPolicyActionLog#InfoTypeMatch`) } ], "correlationId": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "returnedVerdict": enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.locations.contentPolicies#ContentPolicyVerdict`) // End of mutually exclusive fields. // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "policyRule": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.locations.contentPolicies#PolicyRule`) }, "fallbackAction": enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/FallbackActionType`) // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `contentPolicy` | `string` The resource name of the content policy that produced this log. |
| `logTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` The timestamp of when the action was taken. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `dataSourceType` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/DataSourceType`)`` The client-supplied source of the data that is being processed. This allows for aggregating logs by source, for example, "geminienterprise/slack". |
| `containerId` | `string` The client-supplied identifier for a container from which content was scanned, also to aid in aggregation, for example, a specific folder or chat room. |
| `documentId` | `string` The client-supplied identifier for the document that was scanned. This allows tracking down the exact source that produced this log, for example, a message id. |
| `matchingInfoTypes[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentPolicyActionLog#InfoTypeMatch`)`` Unordered set of matching infoTypes found in the content. |
| `correlationId` | `string` Optional. A correlation ID to associate this log with other logs or systems. |
| The resulting action from evaluating the content policy. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `returnedVerdict` | ``enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.locations.contentPolicies#ContentPolicyVerdict`)`` The verdict that was returned. |
| End of mutually exclusive fields. ||
| Trigger for the action. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `policyRule` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.locations.contentPolicies#PolicyRule`)`` A user-defined rule in the content policy was matched. |
| `fallbackAction` | ``enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/FallbackActionType`)`` A fallback action was taken. |
| End of mutually exclusive fields. ||

## InfoTypeMatch

Information about a matching infoType found in the content.

| JSON representation |
|---|
| ``` { "infoTypeName": string } ``` |

| Fields ||
|---|---|
| `infoTypeName` | `string` |