Reference documentation and code samples for the BigQuery Data Policy Service V1 API class Google::Cloud::Bigquery::DataPolicies::V1::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::V1::DataMaskingPolicy
Returns
- (::Google::Cloud::Bigquery::DataPolicies::V1::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::V1::DataMaskingPolicy
Parameter
- value (::Google::Cloud::Bigquery::DataPolicies::V1::DataMaskingPolicy) — The data masking policy that specifies the data masking rule to use.
Returns
- (::Google::Cloud::Bigquery::DataPolicies::V1::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::V1::DataPolicy::DataPolicyType
Returns
- (::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy::DataPolicyType) — Type of data policy.
#data_policy_type=
def data_policy_type=(value) -> ::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy::DataPolicyType
Parameter
- value (::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy::DataPolicyType) — Type of data policy.
Returns
- (::Google::Cloud::Bigquery::DataPolicies::V1::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}
.