Struct google_api_proto::google::cloud::datacatalog::v1::Taxonomy
source · 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>,
pub service: Option<Service>,
}
Expand description
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: String
Identifier. Resource name of this taxonomy in URL format.
Note: Policy tag manager generates unique taxonomy IDs.
display_name: 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.
description: 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.
policy_tag_count: i32
Output only. Number of policy tags in this taxonomy.
taxonomy_timestamps: Option<SystemTimestamps>
Output only. Creation and modification timestamps of this taxonomy.
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.
service: Option<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.
Implementations§
source§impl Taxonomy
impl Taxonomy
sourcepub fn activated_policy_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<PolicyType>>
pub fn activated_policy_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<PolicyType>>
Returns an iterator which yields the valid enum values contained in activated_policy_types
.
sourcepub fn push_activated_policy_types(&mut self, value: PolicyType)
pub fn push_activated_policy_types(&mut self, value: PolicyType)
Appends the provided enum value to activated_policy_types
.
Trait Implementations§
source§impl Message for Taxonomy
impl Message for Taxonomy
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Taxonomy
impl PartialEq for Taxonomy
impl StructuralPartialEq for Taxonomy
Auto Trait Implementations§
impl Freeze for Taxonomy
impl RefUnwindSafe for Taxonomy
impl Send for Taxonomy
impl Sync for Taxonomy
impl Unpin for Taxonomy
impl UnwindSafe for Taxonomy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request