Struct gapi_grpc::google::cloud::datacatalog::v1::Taxonomy[][src]

pub struct Taxonomy {
    pub name: String,
    pub display_name: String,
    pub description: String,
    pub policy_tag_count: i32,
    pub taxonomy_timestamps: Option<SystemTimestamps>,
    pub activated_policy_types: Vec<i32>,
}

A taxonomy is a collection of hierarchical policy tags that classify data along a common axis. For instance a “data sensitivity” taxonomy could contain the following policy tags:

+ PII
  + Account number
  + Age
  + SSN
  + Zipcode
+ Financials
  + Revenue

A “data origin” taxonomy could contain the following policy tags:

+ User data
+ Employee data
+ Partner data
+ Public data

Fields

name: String

Output only. Resource name of this taxonomy in format: “projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}”. Note that taxonomy_id’s are unique and generated by Policy Tag Manager.

display_name: String

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.

description: String

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: i32

Output only. Number of policy tags contained in this taxonomy.

taxonomy_timestamps: Option<SystemTimestamps>

Output only. Timestamps about this taxonomy. Only create_time and update_time are used.

activated_policy_types: Vec<i32>

Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.

Implementations

impl Taxonomy[src]

pub fn activated_policy_types(
    &self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<PolicyType>>
[src]

Returns an iterator which yields the valid enum values contained in activated_policy_types.

pub fn push_activated_policy_types(&mut self, value: PolicyType)[src]

Appends the provided enum value to activated_policy_types.

Trait Implementations

impl Clone for Taxonomy[src]

impl Debug for Taxonomy[src]

impl Default for Taxonomy[src]

impl Message for Taxonomy[src]

impl PartialEq<Taxonomy> for Taxonomy[src]

impl StructuralPartialEq for Taxonomy[src]

Auto Trait Implementations

impl RefUnwindSafe for Taxonomy

impl Send for Taxonomy

impl Sync for Taxonomy

impl Unpin for Taxonomy

impl UnwindSafe for Taxonomy

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]