Class Taxonomy (3.19.0)

Taxonomy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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


name str
Identifier. Resource name of this taxonomy in URL format. Note: Policy tag manager generates unique taxonomy IDs.
display_name str
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 str
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 int
Output only. Number of policy tags in this taxonomy.
Output only. Creation and modification timestamps of this taxonomy.
activated_policy_types MutableSequence[]
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
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.




Defines policy types where the policy tags can be used for.

Values: POLICY_TYPE_UNSPECIFIED (0): Unspecified policy type. FINE_GRAINED_ACCESS_CONTROL (1): Fine-grained access control policy that enables access control on tagged sub-resources.


Service(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The source system of the Taxonomy.