Struct google_api_proto::google::cloud::datacatalog::v1::PolicyTag
source · pub struct PolicyTag {
pub name: String,
pub display_name: String,
pub description: String,
pub parent_policy_tag: String,
pub child_policy_tags: Vec<String>,
}
Expand description
Denotes one policy tag in a taxonomy, for example, SSN.
Policy tags can be defined in a hierarchy. For example:
+ Geolocation
+ LatLong
+ City
+ ZipCode
Where the “Geolocation” policy tag contains three children.
Fields§
§name: String
Identifier. Resource name of this policy tag in the URL format.
The policy tag manager generates unique taxonomy IDs and policy tag IDs.
display_name: String
Required. User-defined name of this policy tag.
The name can’t start or end with spaces and must be unique within the parent taxonomy, contain only Unicode letters, numbers, underscores, dashes and spaces, and be at most 200 bytes long when encoded in UTF-8.
description: String
Description of this policy tag. 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.
parent_policy_tag: String
Resource name of this policy tag’s parent policy tag. If empty, this is a top level tag. If not set, defaults to an empty string.
For example, for the “LatLong” policy tag in the example above, this field contains the resource name of the “Geolocation” policy tag, and, for “Geolocation”, this field is empty.
Output only. Resource names of child policy tags of this policy tag.
Trait Implementations§
source§impl Message for PolicyTag
impl Message for PolicyTag
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for PolicyTag
impl PartialEq for PolicyTag
impl StructuralPartialEq for PolicyTag
Auto Trait Implementations§
impl Freeze for PolicyTag
impl RefUnwindSafe for PolicyTag
impl Send for PolicyTag
impl Sync for PolicyTag
impl Unpin for PolicyTag
impl UnwindSafe for PolicyTag
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