Class DataPolicy (3.47.0)

DataPolicy(name: str)

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

to_api_repr() -> dict

Return the properties dictionary representing this data policy.

Returns
Type Description
dict The data policy in the format used by the BigQuery API.