Google Cloud BigQuery Data Policies V1beta1 Client - Class DataPolicy (0.1.1)

Reference documentation and code samples for the Google Cloud BigQuery Data Policies V1beta1 Client class DataPolicy.

Represents the label-policy binding.

Generated from protobuf message google.cloud.bigquery.datapolicies.v1beta1.DataPolicy

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Cloud\BigQuery\DataPolicies\V1beta1\DataMaskingPolicy

The data masking policy that specifies the data masking rule to use.

↳ 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}.

Generated from protobuf field string policy_tag = 4;

Returns
TypeDescription
string

hasPolicyTag

setPolicyTag

Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.

Generated from protobuf field string policy_tag = 4;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDataMaskingPolicy

The data masking policy that specifies the data masking rule to use.

Generated from protobuf field .google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy data_masking_policy = 5;

Returns
TypeDescription
Google\Cloud\BigQuery\DataPolicies\V1beta1\DataMaskingPolicy|null

hasDataMaskingPolicy

setDataMaskingPolicy

The data masking policy that specifies the data masking rule to use.

Generated from protobuf field .google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy data_masking_policy = 5;

Parameter
NameDescription
var Google\Cloud\BigQuery\DataPolicies\V1beta1\DataMaskingPolicy
Returns
TypeDescription
$this

getName

Output only. Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.

Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
string

setName

Output only. Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.

Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDataPolicyType

Type of data policy.

Generated from protobuf field .google.cloud.bigquery.datapolicies.v1beta1.DataPolicy.DataPolicyType data_policy_type = 2;

Returns
TypeDescription
int

setDataPolicyType

Type of data policy.

Generated from protobuf field .google.cloud.bigquery.datapolicies.v1beta1.DataPolicy.DataPolicyType data_policy_type = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$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.

Generated from protobuf field string data_policy_id = 3;

Returns
TypeDescription
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.

Generated from protobuf field string data_policy_id = 3;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMatchingLabel

Returns
TypeDescription
string

getPolicy

Returns
TypeDescription
string