Google Cloud BigQuery Data Policies V1 Client - Class DataMaskingPolicy (0.4.1)

Reference documentation and code samples for the Google Cloud BigQuery Data Policies V1 Client class DataMaskingPolicy.

The data masking policy that is used to specify data masking rule.

Generated from protobuf message google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy

Namespace

Google \ Cloud \ BigQuery \ DataPolicies \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ predefined_expression int

A predefined masking expression.

↳ routine string

The name of the BigQuery routine that contains the custom masking routine, in the format of projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}.

getPredefinedExpression

A predefined masking expression.

Returns
TypeDescription
int

hasPredefinedExpression

setPredefinedExpression

A predefined masking expression.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRoutine

The name of the BigQuery routine that contains the custom masking routine, in the format of projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}.

Returns
TypeDescription
string

hasRoutine

setRoutine

The name of the BigQuery routine that contains the custom masking routine, in the format of projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMaskingExpression

Returns
TypeDescription
string