Reference documentation and code samples for the Google Cloud BigQuery Data Policies V1 Client class DataPolicy.
Represents the label-policy binding.
Generated from protobuf message google.cloud.bigquery.datapolicies.v1.DataPolicy
Namespace
Google \ Cloud \ BigQuery \ DataPolicies \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ policy_tag
string
Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}
.
↳ data_masking_policy
↳ name
string
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
int
Type of data policy.
↳ data_policy_id
string
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.
getPolicyTag
Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}
.
string
hasPolicyTag
setPolicyTag
Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}
.
var
string
$this
getDataMaskingPolicy
The data masking policy that specifies the data masking rule to use.
hasDataMaskingPolicy
setDataMaskingPolicy
The data masking policy that specifies the data masking rule to use.
$this
getName
Output only. Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}
.
string
setName
Output only. Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}
.
var
string
$this
getDataPolicyType
Type of data policy.
int
setDataPolicyType
Type of data policy.
var
int
$this
getDataPolicyId
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.
string
setDataPolicyId
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.
var
string
$this
getMatchingLabel
string
getPolicy
string