Service Client: Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::DataPolicyServiceClient
Client stub representing the remote DataPolicyService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to bigquery.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy - Compiled Protocol Buffers messages for google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto
SYNOPSIS
use Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy;
my $msg = Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::CreateDataPolicyRequest->new({
parent => $parent,
data_policy => $data_policy,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::CreateDataPolicyRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::CreateDataPolicyRequest
Request message for the CreateDataPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource name of the project that the data policy will belong to. The format is `projects/{project_number}/locations/{location_id}`.
$msg->data_policy()/$msg->data_policy($value)Type:
Message(Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::DataPolicy)Required. The data policy to create. The `name` field does not need to be provided for the data policy creation.
Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::UpdateDataPolicyRequest
Response message for the UpdateDataPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->data_policy()/$msg->data_policy($value)Type:
Message(Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::DataPolicy)Required. Update the data policy's metadata.
The target data policy is determined by the `name` field. Other fields are updated to the specified values based on the field masks.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all of the fields that are allowed to update.
Updates to the `name` and `dataPolicyId` fields are not allowed.
Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::DeleteDataPolicyRequest
Request message for the DeleteDataPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the data policy to delete. Format is `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::GetDataPolicyRequest
Request message for the GetDataPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the requested data policy. Format is `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::ListDataPoliciesRequest
Request message for the ListDataPolicies method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource name of the project for which to list data policies. Format is `projects/{project_number}/locations/{location_id}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of data policies to return. Must be a value between 1 and 1000. If not set, defaults to 50.
$msg->page_token()/$msg->page_token($value)Type:
StringThe `nextPageToken` value returned from a previous list request, if any. If not set, defaults to an empty string.
Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::ListDataPoliciesResponse
Response message for the ListDataPolicies method.
Inherits from Protobuf::Message.
Accessors
$msg->data_policies()/$msg->data_policies($value)Type:
Message(Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::DataPolicy)Data policies that belong to the requested project.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken used to retrieve the next page of results, or empty if there are no more results.
Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::DataPolicy
Represents the label-policy binding.
Inherits from Protobuf::Message.
Accessors
$msg->policy_tag()/$msg->policy_tag($value)Type:
StringPolicy tag resource name, in the format of `projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}`.
$msg->data_masking_policy()/$msg->data_masking_policy($value)Type:
Message(Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::DataMaskingPolicy)The data masking policy that specifies the data masking rule to use.
$msg->name()/$msg->name($value)Type:
StringOutput only. Resource name of this data policy, in the format of `projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.
$msg->data_policy_type()/$msg->data_policy_type($value)Type:
Enum(Google::Cloud::Bigquery::Datapolicies::V1beta1::DataPolicy::DataPolicyType)Type of data policy.
$msg->data_policy_id()/$msg->data_policy_id($value)Type:
StringUser-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.
Enum: DataPolicy::DataPolicyType
DATA_POLICY_TYPE_UNSPECIFIED=>0COLUMN_LEVEL_SECURITY_POLICY=>3DATA_MASKING_POLICY=>2
Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::DataMaskingPolicy
The data masking policy that is used to specify data masking rule.
Inherits from Protobuf::Message.
Accessors
$msg->predefined_expression()/$msg->predefined_expression($value)Type:
Enum(Google::Cloud::Bigquery::Datapolicies::V1beta1::DataMaskingPolicy::PredefinedExpression)A predefined masking expression.
Enum: DataMaskingPolicy::PredefinedExpression
PREDEFINED_EXPRESSION_UNSPECIFIED=>0SHA256=>3ALWAYS_NULL=>5DEFAULT_MASKING_VALUE=>7
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Bigquery::Datapolicies::V1beta1::Datapolicy::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.