Service Client: Google::Cloud::Datacatalog::V1::Policytagmanager::PolicyTagManagerClient
Client stub representing the remote PolicyTagManager gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to datacatalog.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Datacatalog::V1::Policytagmanager - Compiled Protocol Buffers messages for google/cloud/datacatalog/v1/policytagmanager.proto
SYNOPSIS
use Google::Cloud::Datacatalog::V1::Policytagmanager;
my $msg = Google::Cloud::Datacatalog::V1::Policytagmanager::Taxonomy->new({
name => $name,
display_name => $display_name,
description => $description,
policy_tag_count => $policy_tag_count,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Datacatalog::V1::Policytagmanager::Taxonomy->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/datacatalog/v1/policytagmanager.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::Datacatalog::V1::Policytagmanager::Taxonomy
A taxonomy is a collection of hierarchical policy tags that classify data along a common axis.
For example, a "data sensitivity" taxonomy might contain the following policy tags:
``` + PII + Account number + Age + SSN + Zipcode + Financials + Revenue ```
A "data origin" taxonomy might contain the following policy tags:
``` + User data + Employee data + Partner data + Public data ```
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. Resource name of this taxonomy in URL format.
Note: Policy tag manager generates unique taxonomy IDs.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. User-defined name of this taxonomy.
The name can't start or end with spaces, must contain only Unicode letters, numbers, underscores, dashes, and spaces, and be at most 200 bytes long when encoded in UTF-8.
The taxonomy display name must be unique within an organization.
$msg->description()/$msg->description($value)Type:
StringOptional. Description of this taxonomy. If not set, defaults to empty.
The description must contain only Unicode characters, tabs, newlines, carriage returns, and page breaks, and be at most 2000 bytes long when encoded in UTF-8.
$msg->policy_tag_count()/$msg->policy_tag_count($value)Type:
Int32Output only. Number of policy tags in this taxonomy.
$msg->taxonomy_timestamps()/$msg->taxonomy_timestamps($value)Type:
Message(Google::Cloud::Datacatalog::V1::Timestamps::SystemTimestamps)Output only. Creation and modification timestamps of this taxonomy.
$msg->activated_policy_types()/$msg->activated_policy_types($value)Type:
Enum(Google::Cloud::Datacatalog::V1::Taxonomy::PolicyType)Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
$msg->service()/$msg->service($value)Type:
Message(Google::Cloud::Datacatalog::V1::Policytagmanager::Taxonomy::Service)Output only. Identity of the service which owns the Taxonomy. This field is only populated when the taxonomy is created by a Google Cloud service. Currently only 'DATAPLEX' is supported.
Enum: Taxonomy::PolicyType
POLICY_TYPE_UNSPECIFIED=>0FINE_GRAINED_ACCESS_CONTROL=>1
Google::Cloud::Datacatalog::V1::Policytagmanager::PolicyTag
Denotes one policy tag in a taxonomy, for example, SSN.
Policy tags can be defined in a hierarchy. For example:
``` + Geolocation + LatLong + City + ZipCode ```
Where the "Geolocation" policy tag contains three children.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. Resource name of this policy tag in the URL format.
The policy tag manager generates unique taxonomy IDs and policy tag IDs.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. User-defined name of this policy tag.
The name can't start or end with spaces and must be unique within the parent taxonomy, contain only Unicode letters, numbers, underscores, dashes and spaces, and be at most 200 bytes long when encoded in UTF-8.
$msg->description()/$msg->description($value)Type:
StringDescription of this policy tag. If not set, defaults to empty.
The description must contain only Unicode characters, tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes long when encoded in UTF-8.
$msg->parent_policy_tag()/$msg->parent_policy_tag($value)Type:
StringResource name of this policy tag's parent policy tag. If empty, this is a top level tag. If not set, defaults to an empty string.
For example, for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag, and, for "Geolocation", this field is empty.
$msg->child_policy_tags()/$msg->child_policy_tags($value)Type:
StringOutput only. Resource names of child policy tags of this policy tag.
Google::Cloud::Datacatalog::V1::Policytagmanager::CreateTaxonomyRequest
Request message for [CreateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.CreateTaxonomy].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource name of the project that the taxonomy will belong to.
$msg->taxonomy()/$msg->taxonomy($value)Type:
Message(Google::Cloud::Datacatalog::V1::Policytagmanager::Taxonomy)The taxonomy to create.
Google::Cloud::Datacatalog::V1::Policytagmanager::DeleteTaxonomyRequest
Request message for [DeleteTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.DeleteTaxonomy].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the taxonomy to delete.
Note: All policy tags in this taxonomy are also deleted.
Google::Cloud::Datacatalog::V1::Policytagmanager::UpdateTaxonomyRequest
Request message for [UpdateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.UpdateTaxonomy].
Inherits from Protobuf::Message.
Accessors
$msg->taxonomy()/$msg->taxonomy($value)Type:
Message(Google::Cloud::Datacatalog::V1::Policytagmanager::Taxonomy)The taxonomy to update. You can update only its description, display name, and activated policy types.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Specifies fields to update. If not set, defaults to all fields you can update.
For more information, see [FieldMask] (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
Google::Cloud::Datacatalog::V1::Policytagmanager::ListTaxonomiesRequest
Request message for [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource name of the project to list the taxonomies of.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return. Must be a value between 1 and 1000 inclusively. If not set, defaults to 50.
$msg->page_token()/$msg->page_token($value)Type:
StringThe pagination token of the next results page. If not set, the first page is returned.
The token is returned in the response to a previous list request.
$msg->filter()/$msg->filter($value)Type:
StringSupported field for filter is 'service' and value is 'dataplex'. Eg: service=dataplex.
Google::Cloud::Datacatalog::V1::Policytagmanager::ListTaxonomiesResponse
Response message for [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
Inherits from Protobuf::Message.
Accessors
$msg->taxonomies()/$msg->taxonomies($value)Type:
Message(Google::Cloud::Datacatalog::V1::Policytagmanager::Taxonomy)Taxonomies that the project contains.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPagination token of the next results page. Empty if there are no more results in the list.
Google::Cloud::Datacatalog::V1::Policytagmanager::GetTaxonomyRequest
Request message for [GetTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.GetTaxonomy].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the taxonomy to get.
Google::Cloud::Datacatalog::V1::Policytagmanager::CreatePolicyTagRequest
Request message for [CreatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTag].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource name of the taxonomy that the policy tag will belong to.
$msg->policy_tag()/$msg->policy_tag($value)Type:
Message(Google::Cloud::Datacatalog::V1::Policytagmanager::PolicyTag)The policy tag to create.
Google::Cloud::Datacatalog::V1::Policytagmanager::DeletePolicyTagRequest
Request message for [DeletePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.DeletePolicyTag].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the policy tag to delete.
Note: All of its descendant policy tags are also deleted.
Google::Cloud::Datacatalog::V1::Policytagmanager::UpdatePolicyTagRequest
Request message for [UpdatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.UpdatePolicyTag].
Inherits from Protobuf::Message.
Accessors
$msg->policy_tag()/$msg->policy_tag($value)Type:
Message(Google::Cloud::Datacatalog::V1::Policytagmanager::PolicyTag)The policy tag to update. You can update only its description, display name, and parent policy tag fields.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Specifies the fields to update.
You can update only display name, description, and parent policy tag. If not set, defaults to all updatable fields. For more information, see [FieldMask] (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
Google::Cloud::Datacatalog::V1::Policytagmanager::ListPolicyTagsRequest
Request message for [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Resource name of the taxonomy to list the policy tags of.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return. Must be a value between 1 and 1000 inclusively. If not set, defaults to 50.
$msg->page_token()/$msg->page_token($value)Type:
StringThe pagination token of the next results page. If not set, returns the first page.
The token is returned in the response to a previous list request.
Google::Cloud::Datacatalog::V1::Policytagmanager::ListPolicyTagsResponse
Response message for [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
Inherits from Protobuf::Message.
Accessors
$msg->policy_tags()/$msg->policy_tags($value)Type:
Message(Google::Cloud::Datacatalog::V1::Policytagmanager::PolicyTag)The policy tags that belong to the taxonomy.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringPagination token of the next results page. Empty if there are no more results in the list.
Google::Cloud::Datacatalog::V1::Policytagmanager::GetPolicyTagRequest
Request message for [GetPolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.GetPolicyTag].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the policy tag.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Datacatalog::V1::Policytagmanager::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.