- [Resource: Partition](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/projects.locations.lakes.zones.entities.partitions#Partition)
  - [JSON representation](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/projects.locations.lakes.zones.entities.partitions#Partition.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/projects.locations.lakes.zones.entities.partitions#METHODS_SUMMARY)

## Resource: Partition

Represents partition metadata contained within entity instances.

| JSON representation |
|---|
| ``` { "name": string, "values": [ string ], "location": string, "etag": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Partition values used in the HTTP URL must be double encoded. For example, `url_encode(url_encode(value))` can be used to encode "US:CA/CA#Sunnyvale so that the request URL ends with "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the response retains the encoded format. |
| `values[]` | `string` Required. Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity. |
| `location` | `string` Required. Immutable. The location of the entity data within the partition, for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or `projects/<projectId>/datasets/<datasetId>/tables/<table_id>` |
| `etag (deprecated)` | `string` > [!WARNING] > This item is deprecated! Optional. The etag for this partition. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/projects.locations.lakes.zones.entities.partitions/create` | Create a metadata partition. |
| ### `https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/projects.locations.lakes.zones.entities.partitions/delete` | Delete a metadata partition. |
| ### `https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/projects.locations.lakes.zones.entities.partitions/get` | Get a metadata partition of an entity. |
| ### `https://docs.cloud.google.com/knowledge-catalog/docs/reference/rest/v1/projects.locations.lakes.zones.entities.partitions/list` | List metadata partitions of an entity. |