Class DataPolicy (3.47.0)
Stay organized with collections
Save and categorize content based on your preferences.
A data policy attached directly to a column.
Parameter |
| Name |
Description |
name |
str See: https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#DataPolicyOption
Data policy resource name in the form projects/{project}/locations/{location}/dataPolicies/{policy}.
|
Properties
name
str: The data policy resource name.
Methods
from_api_repr
from_api_repr(api_repr: dict) -> google.cloud.bigquery.schema.DataPolicy
Construct a data policy from its API representation.
The returned object retains the supplied dictionary, including
properties not yet exposed by this class.
| Parameter |
| Name |
Description |
api_repr |
dict
A data policy representation from the API.
|
| Returns |
| Type |
Description |
google.cloud.bigquery.schema.DataPolicy |
The data policy object. |
to_api_repr
Return the properties dictionary representing this data policy.
| Returns |
| Type |
Description |
dict |
The data policy in the format used by the BigQuery API. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-29 UTC.
[null,null,["Last updated 2026-10-29 UTC."],[],[]]