# Data Catalog V1 API - Class Google::Cloud::DataCatalog::V1::Taxonomy (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.0 2.5.1 2.4.0 2.3.1 2.2.2 2.1.1 2.0.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.23.0 0.22.0 0.21.2 0.20.1 0.19.0 0.18.1 0.17.0 0.16.1 0.15.0 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.1 Reference documentation and code samples for the Data Catalog V1 API class Google::Cloud::DataCatalog::V1::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

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #activated_policy_types

    def activated_policy_types() -> ::Array<::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType>

**Returns**

- (::Array\<[::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/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.

### #activated_policy_types=

    def activated_policy_types=(value) -> ::Array<::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/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.
**Returns**

- (::Array\<[::Google::Cloud::DataCatalog::V1::Taxonomy::PolicyType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/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.

### #description

    def description() -> ::String

**Returns**

- (::String) --- 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.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- 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.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- 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.
**Returns**

- (::String) --- 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.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. Resource name of this taxonomy in URL format.

  Note: Policy tag manager generates unique taxonomy IDs.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. Resource name of this taxonomy in URL format.


  Note: Policy tag manager generates unique taxonomy IDs.
**Returns**

- (::String) --- Identifier. Resource name of this taxonomy in URL format.

  Note: Policy tag manager generates unique taxonomy IDs.

### #policy_tag_count

    def policy_tag_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. Number of policy tags in this taxonomy.

### #service

    def service() -> ::Google::Cloud::DataCatalog::V1::Taxonomy::Service

**Returns**

- ([::Google::Cloud::DataCatalog::V1::Taxonomy::Service](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-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.

### #taxonomy_timestamps

    def taxonomy_timestamps() -> ::Google::Cloud::DataCatalog::V1::SystemTimestamps

**Returns**

- ([::Google::Cloud::DataCatalog::V1::SystemTimestamps](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-data_catalog-v1/latest/Google-Cloud-DataCatalog-V1-SystemTimestamps)) --- Output only. Creation and modification timestamps of this taxonomy.