Struct googapis::google::cloud::datacatalog::v1::policy_tag_manager_serialization_client::PolicyTagManagerSerializationClient [−][src]
pub struct PolicyTagManagerSerializationClient<T> { /* fields omitted */ }
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
impl<T> PolicyTagManagerSerializationClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> PolicyTagManagerSerializationClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> PolicyTagManagerSerializationClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub 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.
pub 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.
pub 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
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more