# Class DataPolicy (0.10.0)

0.10.0 (latest) 0.9.0 0.8.0 0.7.0 0.6.16 0.5.3 0.4.0 0.3.2 0.2.0 0.1.1

    DataPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents the label-policy binding.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `policy_tag` | `str` Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`. This field is a member of `oneof`_ `matching_label`. |
| `data_masking_policy` | `https://docs.cloud.google.com/python/docs/reference/bigquerydatapolicy/latest/google.cloud.bigquery_datapolicies_v1beta1.types.DataMaskingPolicy` The data masking policy that specifies the data masking rule to use. This field is a member of `oneof`_ `policy`. |
| `name` | `str` Output only. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`. |
| `data_policy_type` | `https://docs.cloud.google.com/python/docs/reference/bigquerydatapolicy/latest/google.cloud.bigquery_datapolicies_v1beta1.types.DataPolicy.DataPolicyType` Type of data policy. |
| `data_policy_id` | `str` User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name. |

## Classes

### DataPolicyType

    DataPolicyType(value)

A list of supported data policy types.