# Tag

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

A tag associated with a resource.

| JSON representation |
|---|
| ``` { "namespacedTagValue": string, "key": string, "value": string } ``` |

| Fields ||
|---|---|
| `namespacedTagValue` | `string` The namespaced name for the tag value to attach to Google Cloud resources. Must be in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for example, "123456/environment/prod" for an organization parent, or "my-project/environment/prod" for a project parent. This is only set for Google Cloud resources. |
| `key` | `string` The key of a tag key-value pair. For Google Cloud resources, this is the resource name of the key, for example, "tagKeys/123456". |
| `value` | `string` The value of a tag key-value pair. For Google Cloud resources, this is the resource name of the value, for example, "tagValues/123456". |