Index
PolicyTagManager(interface)PolicyTagManagerSerialization(interface)CreatePolicyTagRequest(message)CreateTaxonomyRequest(message)CrossRegionalSource(message)DeletePolicyTagRequest(message)DeleteTaxonomyRequest(message)ExportTaxonomiesRequest(message)ExportTaxonomiesResponse(message)GetPolicyTagRequest(message)GetTaxonomyRequest(message)ImportTaxonomiesRequest(message)ImportTaxonomiesResponse(message)InlineSource(message)ListPolicyTagsRequest(message)ListPolicyTagsResponse(message)ListTaxonomiesRequest(message)ListTaxonomiesResponse(message)ManagingSystem(enum)PolicyTag(message)ReplaceTaxonomyRequest(message)SerializedPolicyTag(message)SerializedTaxonomy(message)SystemTimestamps(message)Taxonomy(message)Taxonomy.PolicyType(enum)Taxonomy.Service(message)UpdatePolicyTagRequest(message)UpdateTaxonomyRequest(message)
PolicyTagManager
Policy Tag Manager API service allows you to manage your policy tags and taxonomies.
Policy tags are used to tag BigQuery columns and apply additional access control policies. A taxonomy is a hierarchical grouping of policy tags that classify data along a common axis.
| CreatePolicyTag |
|---|
|
Creates a policy tag in a taxonomy.
|
| CreateTaxonomy |
|---|
|
Creates a taxonomy in a specified project. The taxonomy is initially empty, that is, it doesn't contain policy tags.
|
| DeletePolicyTag |
|---|
|
Deletes a policy tag together with the following:
|
| DeleteTaxonomy |
|---|
|
Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and the policy tags references from BigQuery columns.
|
| GetIamPolicy |
|---|
|
Gets the IAM policy for a policy tag or a taxonomy.
|
| GetPolicyTag |
|---|
|
Gets a policy tag.
|
| GetTaxonomy |
|---|
|
Gets a taxonomy.
|
| ListPolicyTags |
|---|
|
Lists all policy tags in a taxonomy.
|
| ListTaxonomies |
|---|
|
Lists all taxonomies in a project in a particular location that you have a permission to view.
|
| SetIamPolicy |
|---|
|
Sets the IAM policy for a policy tag or a taxonomy.
|
| TestIamPermissions |
|---|
|
Returns your permissions on a specified policy tag or taxonomy.
|
| UpdatePolicyTag |
|---|
|
Updates a policy tag, including its display name, description, and parent policy tag.
|
| UpdateTaxonomy |
|---|
|
Updates a taxonomy, including its display name, description, and activated policy types.
|
PolicyTagManagerSerialization
Policy Tag Manager Serialization API service allows you to manipulate your policy tags and taxonomies in a serialized format.
Taxonomy is a hierarchical group of policy tags.
| ExportTaxonomies |
|---|
|
Exports taxonomies in the requested type and returns them, including their policy tags. The requested taxonomies must belong to the same project. This method generates
|
| ImportTaxonomies |
|---|
|
Creates new taxonomies (including their policy tags) in a given project by importing from inlined or cross-regional sources. For a cross-regional source, new taxonomies are created by copying from a source in another region. For an inlined source, taxonomies and policy tags are created in bulk using nested protocol buffer structures.
|
| ReplaceTaxonomy |
|---|
|
Replaces (updates) a taxonomy and all its policy tags. The taxonomy and its entire hierarchy of policy tags must be represented literally by This operation automatically does the following:
|
CreatePolicyTagRequest
Request message for CreatePolicyTag.
| Fields | |
|---|---|
parent |
Required. Resource name of the taxonomy that the policy tag will belong to. Authorization requires the following IAM permission on the specified resource
|
policy_tag |
The policy tag to create. |
CreateTaxonomyRequest
Request message for CreateTaxonomy.
| Fields | |
|---|---|
parent |
Required. Resource name of the project that the taxonomy will belong to. Authorization requires the following IAM permission on the specified resource
|
taxonomy |
The taxonomy to create. |
CrossRegionalSource
Cross-regional source used to import an existing taxonomy into a different region.
| Fields | |
|---|---|
taxonomy |
Required. The resource name of the source taxonomy to import. |
DeletePolicyTagRequest
Request message for DeletePolicyTag.
| Fields | |
|---|---|
name |
Required. Resource name of the policy tag to delete. Note: All of its descendant policy tags are also deleted. Authorization requires the following IAM permission on the specified resource
|
DeleteTaxonomyRequest
Request message for DeleteTaxonomy.
| Fields | |
|---|---|
name |
Required. Resource name of the taxonomy to delete. Note: All policy tags in this taxonomy are also deleted. Authorization requires the following IAM permission on the specified resource
|
ExportTaxonomiesRequest
Request message for ExportTaxonomies.
| Fields | |
|---|---|
parent |
Required. Resource name of the project that the exported taxonomies belong to. Authorization requires the following IAM permission on the specified resource
|
taxonomies[] |
Required. Resource names of the taxonomies to export. |
Union field destination. Required. Export destination for taxonomies. destination can be only one of the following: |
|
serialized_taxonomies |
Serialized export taxonomies that contain all the policy tags as nested protocol buffers. |
ExportTaxonomiesResponse
Response message for ExportTaxonomies.
| Fields | |
|---|---|
taxonomies[] |
List of taxonomies and policy tags as nested protocol buffers. |
GetPolicyTagRequest
Request message for GetPolicyTag.
| Fields | |
|---|---|
name |
Required. Resource name of the policy tag. Authorization requires the following IAM permission on the specified resource
|
GetTaxonomyRequest
Request message for GetTaxonomy.
| Fields | |
|---|---|
name |
Required. Resource name of the taxonomy to get. Authorization requires the following IAM permission on the specified resource
|
ImportTaxonomiesRequest
Request message for ImportTaxonomies.
| Fields | |
|---|---|
parent |
Required. Resource name of project that the imported taxonomies will belong to. Authorization requires the following IAM permission on the specified resource
|
Union field source. Source taxonomies to import. source can be only one of the following: |
|
inline_source |
Inline source taxonomy to import. |
cross_regional_source |
Cross-regional source taxonomy to import. |
ImportTaxonomiesResponse
Response message for ImportTaxonomies.
| Fields | |
|---|---|
taxonomies[] |
Imported taxonomies. |
InlineSource
Inline source containing taxonomies to import.
| Fields | |
|---|---|
taxonomies[] |
Required. Taxonomies to import. |
ListPolicyTagsRequest
Request message for ListPolicyTags.
| Fields | |
|---|---|
parent |
Required. Resource name of the taxonomy to list the policy tags of. Authorization requires the following IAM permission on the specified resource
|
page_size |
The maximum number of items to return. Must be a value between 1 and 1000 inclusively. If not set, defaults to 50. |
page_token |
The 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. |
ListPolicyTagsResponse
Response message for ListPolicyTags.
| Fields | |
|---|---|
policy_tags[] |
The policy tags that belong to the taxonomy. |
next_page_token |
Pagination token of the next results page. Empty if there are no more results in the list. |
ListTaxonomiesRequest
Request message for ListTaxonomies.
| Fields | |
|---|---|
parent |
Required. Resource name of the project to list the taxonomies of. Authorization requires the following IAM permission on the specified resource
|
page_size |
The maximum number of items to return. Must be a value between 1 and 1000 inclusively. If not set, defaults to 50. |
page_token |
The 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. |
filter |
Supported field for filter is 'service' and value is 'dataplex'. Eg: service=dataplex. |
ListTaxonomiesResponse
Response message for ListTaxonomies.
| Fields | |
|---|---|
taxonomies[] |
Taxonomies that the project contains. |
next_page_token |
Pagination token of the next results page. Empty if there are no more results in the list. |
ManagingSystem
This enum describes all the systems that manage Taxonomy and PolicyTag resources in DataCatalog.
| Enums | |
|---|---|
MANAGING_SYSTEM_UNSPECIFIED |
Default value |
MANAGING_SYSTEM_DATAPLEX |
Dataplex Universal Catalog. |
MANAGING_SYSTEM_OTHER |
Other |
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.
| Fields | |
|---|---|
name |
Identifier. Resource name of this policy tag in the URL format. The policy tag manager generates unique taxonomy IDs and policy tag IDs. |
display_name |
Required. 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. |
description |
Description 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. |
parent_policy_tag |
Resource 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. |
child_policy_tags[] |
Output only. Resource names of child policy tags of this policy tag. |
ReplaceTaxonomyRequest
Request message for ReplaceTaxonomy.
| Fields | |
|---|---|
name |
Required. Resource name of the taxonomy to update. Authorization requires the following IAM permission on the specified resource
|
serialized_taxonomy |
Required. Taxonomy to update along with its child policy tags. |
SerializedPolicyTag
A nested protocol buffer that represents a policy tag and all its descendants.
| Fields | |
|---|---|
policy_tag |
Resource name of the policy tag. This field is ignored when calling |
display_name |
Required. Display name of the policy tag. At most 200 bytes when encoded in UTF-8. |
description |
Description of the serialized policy tag. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description. |
child_policy_tags[] |
Children of the policy tag, if any. |
SerializedTaxonomy
A nested protocol buffer that represents a taxonomy and the hierarchy of its policy tags. Used for taxonomy replacement, import, and export.
| Fields | |
|---|---|
display_name |
Required. Display name of the taxonomy. At most 200 bytes when encoded in UTF-8. |
description |
Description of the serialized taxonomy. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description. |
policy_tags[] |
Top level policy tags associated with the taxonomy, if any. |
activated_policy_types[] |
A list of policy types that are activated per taxonomy. |
SystemTimestamps
Timestamps associated with this resource in a particular system.
| Fields | |
|---|---|
create_time |
Creation timestamp of the resource within the given system. |
update_time |
Timestamp of the last modification of the resource or its metadata within a given system. Note: Depending on the source system, not every modification updates this timestamp. For example, BigQuery timestamps every metadata modification but not data or permission changes. |
expire_time |
Output only. Expiration timestamp of the resource within the given system. Currently only applicable to BigQuery resources. |
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
| Fields | |
|---|---|
name |
Identifier. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs. |
display_name |
Required. 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. |
description |
Optional. 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. |
policy_tag_count |
Output only. Number of policy tags in this taxonomy. |
taxonomy_timestamps |
Output only. Creation and modification timestamps of this taxonomy. |
activated_policy_types[] |
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list. |
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. |
PolicyType
Defines policy types where the policy tags can be used for.
| Enums | |
|---|---|
POLICY_TYPE_UNSPECIFIED |
Unspecified policy type. |
FINE_GRAINED_ACCESS_CONTROL |
Fine-grained access control policy that enables access control on tagged sub-resources. |
Service
The source system of the Taxonomy.
| Fields | |
|---|---|
name |
The Google Cloud service name. |
identity |
The service agent for the service. |
UpdatePolicyTagRequest
Request message for UpdatePolicyTag.
| Fields | |
|---|---|
policy_tag |
The policy tag to update. You can update only its description, display name, and parent policy tag fields. Authorization requires the following IAM permission on the specified resource
|
update_mask |
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. |
UpdateTaxonomyRequest
Request message for UpdateTaxonomy.
| Fields | |
|---|---|
taxonomy |
The taxonomy to update. You can update only its description, display name, and activated policy types. Authorization requires the following IAM permission on the specified resource
|
update_mask |
Specifies fields to update. If not set, defaults to all fields you can update. For more information, see FieldMask. |