Index
PolicyTagManager(interface)PolicyTagManagerSerialization(interface)CreatePolicyTagRequest(message)CreateTaxonomyRequest(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)SerializedPolicyTag(message)SerializedTaxonomy(message)SystemTimestamps(message)Taxonomy(message)Taxonomy.PolicyType(enum)Taxonomy.Service(message)UpdatePolicyTagRequest(message)UpdateTaxonomyRequest(message)
PolicyTagManager
The policy tag manager API service allows clients to manage their taxonomies and policy tags.
| CreatePolicyTag |
|---|
|
Creates a policy tag in the specified taxonomy.
|
| CreateTaxonomy |
|---|
|
Creates a taxonomy in the specified project.
|
| DeletePolicyTag |
|---|
|
Deletes a policy tag. Also deletes all of its descendant policy tags.
|
| DeleteTaxonomy |
|---|
|
Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with their associated policies.
|
| GetIamPolicy |
|---|
|
Gets the IAM policy for a taxonomy or a policy tag.
|
| 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 the caller has permission to view.
|
| SetIamPolicy |
|---|
|
Sets the IAM policy for a taxonomy or a policy tag.
|
| TestIamPermissions |
|---|
|
Returns the permissions that a caller has on the specified taxonomy or policy tag.
|
| UpdatePolicyTag |
|---|
|
Updates a policy tag.
|
| UpdateTaxonomy |
|---|
|
Updates a taxonomy.
|
PolicyTagManagerSerialization
Policy tag manager serialization API service allows clients to manipulate their taxonomies and policy tags data with serialized format.
| ExportTaxonomies |
|---|
|
Exports all taxonomies and their policy tags in a project. This method generates SerializedTaxonomy protos with nested policy tags that can be used as an input for future ImportTaxonomies calls.
|
| ImportTaxonomies |
|---|
|
Imports all taxonomies and their policy tags to a project as new taxonomies. This method provides a bulk taxonomy / policy tag creation using nested proto structure.
|
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 be created. |
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 be created. |
DeletePolicyTagRequest
Request message for DeletePolicyTag.
| Fields | |
|---|---|
name |
Required. Resource name of the policy tag to be deleted. All of its descendant policy tags will also be 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 be deleted. All policy tags in this taxonomy will also be 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 taxonomies to be exported will share. Authorization requires the following IAM permission on the specified resource
|
taxonomies[] |
Required. Resource names of the taxonomies to be exported. |
Union field destination. Required. Taxonomies export destination. destination can be only one of the following: |
|
serialized_taxonomies |
Export taxonomies as serialized taxonomies. |
ExportTaxonomiesResponse
Response message for ExportTaxonomies.
| Fields | |
|---|---|
taxonomies[] |
List of taxonomies and policy tags in a tree structure. |
GetPolicyTagRequest
Request message for GetPolicyTag.
| Fields | |
|---|---|
name |
Required. Resource name of the requested policy tag. Authorization requires the following IAM permission on the specified resource
|
GetTaxonomyRequest
Request message for GetTaxonomy.
| Fields | |
|---|---|
name |
Required. Resource name of the requested taxonomy. 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 be imported. source can be only one of the following: |
|
inline_source |
Inline source used for taxonomies to be imported. |
ImportTaxonomiesResponse
Response message for ImportTaxonomies.
| Fields | |
|---|---|
taxonomies[] |
Taxonomies that were imported. |
InlineSource
Inline source used for taxonomies import.
| Fields | |
|---|---|
taxonomies[] |
Required. Taxonomies to be imported. |
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. If not set, defaults to 50. |
page_token |
The next_page_token value returned from a previous List request, if any. If not set, defaults to an empty string. |
ListPolicyTagsResponse
Response message for ListPolicyTags.
| Fields | |
|---|---|
policy_tags[] |
The policy tags that are in the requested taxonomy. |
next_page_token |
Token used to retrieve the next page of results, or 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. If not set, defaults to 50. |
page_token |
The next_page_token value returned from a previous list request, if any. If not set, defaults to an empty string. |
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 |
Token used to retrieve the next page of results, or empty if there are no more results in the list. |
ManagingSystem
This enum describes all the systems that manage Taxonomy and PolicyTag resources in Data Catalog.
| Enums | |
|---|---|
MANAGING_SYSTEM_UNSPECIFIED |
Default value |
MANAGING_SYSTEM_DATAPLEX |
Dataplex Universal Catalog. |
MANAGING_SYSTEM_OTHER |
Other |
PolicyTag
Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined in a hierarchy. For example, consider the following hierarchy: Geolocation -> (LatLong, City, ZipCode). PolicyTag "Geolocation" contains three child policy tags: "LatLong", "City", and "ZipCode".
| Fields | |
|---|---|
name |
Identifier. Resource name of this policy tag, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}". |
display_name |
Required. User defined name of this policy tag. It must: be unique within the parent taxonomy; contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8. |
description |
Description of this policy tag. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. If not set, defaults to an empty description. |
parent_policy_tag |
Resource name of this policy tag's parent policy tag (e.g. for the "LatLong" policy tag in the example above, this field contains the resource name of the "Geolocation" policy tag). If empty, it means this policy tag is a top level policy tag (e.g. this field is empty for the "Geolocation" policy tag in the example above). If not set, defaults to an empty string. |
child_policy_tags[] |
Output only. Resource names of child policy tags of this policy tag. |
SerializedPolicyTag
Message representing one policy tag when exported as a nested proto.
| Fields | |
|---|---|
policy_tag |
Resource name of the policy tag. This field will be ignored when calling ImportTaxonomies. |
display_name |
Required. Display name of the policy tag. Max 200 bytes when encoded in UTF-8. |
description |
Description of the serialized policy tag. The length of the description is limited to 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
Message capturing a taxonomy and its policy tag hierarchy as a nested proto. Used for taxonomy import/export and mutation.
| Fields | |
|---|---|
display_name |
Required. Display name of the taxonomy. Max 200 bytes when encoded in UTF-8. |
description |
Description of the serialized taxonomy. The length of the description is limited to 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 for a taxonomy. |
SystemTimestamps
Timestamps about this resource according to a particular system.
| Fields | |
|---|---|
create_time |
The creation time of the resource within the given system. |
update_time |
The last-modified time of the resource within the given system. |
expire_time |
Output only. The expiration time of the resource within the given system. Currently only apllicable to BigQuery resources. |
Taxonomy
A taxonomy is a collection of policy tags that classify data along a common axis. For instance a data sensitivity taxonomy could contain policy tags denoting PII such as age, zipcode, and SSN. A data origin taxonomy could contain policy tags to distinguish user data, employee data, partner data, public data.
| Fields | |
|---|---|
name |
Identifier. Resource name of this taxonomy, whose format is: "projects/{project_number}/locations/{location_id}/taxonomies/{id}". |
display_name |
Required. User defined name of this taxonomy. It must: contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with 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. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description. |
policy_tag_count |
Output only. Number of policy tags contained in this taxonomy. |
taxonomy_timestamps |
Output only. Timestamps about this taxonomy. Only create_time and update_time are used. |
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 policy tag can be used for.
| Enums | |
|---|---|
POLICY_TYPE_UNSPECIFIED |
Unspecified policy type. |
FINE_GRAINED_ACCESS_CONTROL |
Fine grained access control policy, which enables access control on tagged 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. Only the description, display_name, and parent_policy_tag fields can be updated. Authorization requires the following IAM permission on the specified resource
|
update_mask |
The update mask applies to the resource. Only display_name, description and parent_policy_tag can be updated and thus can be listed in the mask. If update_mask is not provided, all allowed fields (i.e. display_name, description and parent) will be updated. For more information including the |
UpdateTaxonomyRequest
Request message for UpdateTaxonomy.
| Fields | |
|---|---|
taxonomy |
The taxonomy to update. Only description, display_name, and activated policy types can be updated. Authorization requires the following IAM permission on the specified resource
|
update_mask |
The update mask applies to the resource. For the |