Struct google_api_proto::google::cloud::datacatalog::v1::policy_tag_manager_serialization_client::PolicyTagManagerSerializationClient
source · pub struct PolicyTagManagerSerializationClient<T> { /* private fields */ }
Expand description
Policy Tag Manager Serialization API service allows you to manipulate your policy tags and taxonomies in a serialized format.
Taxonomy is a hierarchical group of policy tags.
Implementations§
source§impl<T> PolicyTagManagerSerializationClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> PolicyTagManagerSerializationClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> PolicyTagManagerSerializationClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn replace_taxonomy(
&mut self,
request: impl IntoRequest<ReplaceTaxonomyRequest>
) -> Result<Response<Taxonomy>, Status>
pub async fn replace_taxonomy( &mut self, request: impl IntoRequest<ReplaceTaxonomyRequest> ) -> Result<Response<Taxonomy>, Status>
Replaces (updates) a taxonomy and all its policy tags.
The taxonomy and its entire hierarchy of policy tags must be
represented literally by SerializedTaxonomy
and the nested
SerializedPolicyTag
messages.
This operation automatically does the following:
- Deletes the existing policy tags that are missing from the
SerializedPolicyTag
. - Creates policy tags that don’t have resource names. They are considered new.
- Updates policy tags with valid resources names accordingly.
sourcepub async fn import_taxonomies(
&mut self,
request: impl IntoRequest<ImportTaxonomiesRequest>
) -> Result<Response<ImportTaxonomiesResponse>, Status>
pub async fn import_taxonomies( &mut self, request: impl IntoRequest<ImportTaxonomiesRequest> ) -> Result<Response<ImportTaxonomiesResponse>, Status>
Creates new taxonomies (including their policy tags) in a given project by importing from inlined or cross-regional sources.
For a cross-regional source, new taxonomies are created by copying from a source in another region.
For an inlined source, taxonomies and policy tags are created in bulk using nested protocol buffer structures.
sourcepub async fn export_taxonomies(
&mut self,
request: impl IntoRequest<ExportTaxonomiesRequest>
) -> Result<Response<ExportTaxonomiesResponse>, Status>
pub async fn export_taxonomies( &mut self, request: impl IntoRequest<ExportTaxonomiesRequest> ) -> Result<Response<ExportTaxonomiesResponse>, Status>
Exports taxonomies in the requested type and returns them, including their policy tags. The requested taxonomies must belong to the same project.
This method generates SerializedTaxonomy
protocol buffers with nested
policy tags that can be used as input for ImportTaxonomies
calls.
Trait Implementations§
source§impl<T: Clone> Clone for PolicyTagManagerSerializationClient<T>
impl<T: Clone> Clone for PolicyTagManagerSerializationClient<T>
source§fn clone(&self) -> PolicyTagManagerSerializationClient<T>
fn clone(&self) -> PolicyTagManagerSerializationClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for PolicyTagManagerSerializationClient<T>
impl<T> RefUnwindSafe for PolicyTagManagerSerializationClient<T>where
T: RefUnwindSafe,
impl<T> Send for PolicyTagManagerSerializationClient<T>where
T: Send,
impl<T> Sync for PolicyTagManagerSerializationClient<T>where
T: Sync,
impl<T> Unpin for PolicyTagManagerSerializationClient<T>where
T: Unpin,
impl<T> UnwindSafe for PolicyTagManagerSerializationClient<T>where
T: UnwindSafe,
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