# BigQuery Data Policy Service V1beta1 API - Class Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy (v0.11.0)

0.11.0 (latest) 0.10.0 0.9.1 0.8.0 0.7.1 0.6.0 0.5.1 0.4.2 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the BigQuery Data Policy Service V1beta1 API class Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy.

Represents the label-policy binding.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data_masking_policy

    def data_masking_policy() -> ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy

**Returns**

- ([::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy)) --- The data masking policy that specifies the data masking rule to use.

### #data_masking_policy=

    def data_masking_policy=(value) -> ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy

**Parameter**

- **value** ([::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy)) --- The data masking policy that specifies the data masking rule to use.
**Returns**

- ([::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataMaskingPolicy)) --- The data masking policy that specifies the data masking rule to use.

### #data_policy_id

    def data_policy_id() -> ::String

**Returns**

- (::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.

### #data_policy_id=

    def data_policy_id=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #data_policy_type

    def data_policy_type() -> ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy::DataPolicyType

**Returns**

- ([::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy::DataPolicyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataPolicy-DataPolicyType)) --- Type of data policy.

### #data_policy_type=

    def data_policy_type=(value) -> ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy::DataPolicyType

**Parameter**

- **value** ([::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy::DataPolicyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataPolicy-DataPolicyType)) --- Type of data policy.
**Returns**

- ([::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy::DataPolicyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-bigquery-data_policies-v1beta1/latest/Google-Cloud-Bigquery-DataPolicies-V1beta1-DataPolicy-DataPolicyType)) --- Type of data policy.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.

### #policy_tag

    def policy_tag() -> ::String

**Returns**

- (::String) --- Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.

### #policy_tag=

    def policy_tag=(value) -> ::String

**Parameter**

- **value** (::String) --- Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
**Returns**

- (::String) --- Policy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.