Struct googapis::google::cloud::datacatalog::v1::policy_tag_manager_client::PolicyTagManagerClient [−][src]
pub struct PolicyTagManagerClient<T> { /* fields omitted */ }
Expand description
Policy Tag Manager API service allows you to manage your policy tags and taxonomies.
Policy tags are used to tag BigQuery columns and apply additional access control policies. A taxonomy is a hierarchical grouping of policy tags that classify data along a common axis.
Implementations
impl<T> PolicyTagManagerClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> PolicyTagManagerClient<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
) -> PolicyTagManagerClient<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 create_taxonomy(
&mut self,
request: impl IntoRequest<CreateTaxonomyRequest>
) -> Result<Response<Taxonomy>, Status>
pub async fn create_taxonomy(
&mut self,
request: impl IntoRequest<CreateTaxonomyRequest>
) -> Result<Response<Taxonomy>, Status>
Creates a taxonomy in a specified project.
The taxonomy is initially empty, that is, it doesn’t contain policy tags.
pub async fn delete_taxonomy(
&mut self,
request: impl IntoRequest<DeleteTaxonomyRequest>
) -> Result<Response<()>, Status>
pub async fn delete_taxonomy(
&mut self,
request: impl IntoRequest<DeleteTaxonomyRequest>
) -> Result<Response<()>, Status>
Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and the policy tags references from BigQuery columns.
pub async fn update_taxonomy(
&mut self,
request: impl IntoRequest<UpdateTaxonomyRequest>
) -> Result<Response<Taxonomy>, Status>
pub async fn update_taxonomy(
&mut self,
request: impl IntoRequest<UpdateTaxonomyRequest>
) -> Result<Response<Taxonomy>, Status>
Updates a taxonomy, including its display name, description, and activated policy types.
pub async fn list_taxonomies(
&mut self,
request: impl IntoRequest<ListTaxonomiesRequest>
) -> Result<Response<ListTaxonomiesResponse>, Status>
pub async fn list_taxonomies(
&mut self,
request: impl IntoRequest<ListTaxonomiesRequest>
) -> Result<Response<ListTaxonomiesResponse>, Status>
Lists all taxonomies in a project in a particular location that you have a permission to view.
pub async fn get_taxonomy(
&mut self,
request: impl IntoRequest<GetTaxonomyRequest>
) -> Result<Response<Taxonomy>, Status>
pub async fn get_taxonomy(
&mut self,
request: impl IntoRequest<GetTaxonomyRequest>
) -> Result<Response<Taxonomy>, Status>
Gets a taxonomy.
pub async fn create_policy_tag(
&mut self,
request: impl IntoRequest<CreatePolicyTagRequest>
) -> Result<Response<PolicyTag>, Status>
pub async fn create_policy_tag(
&mut self,
request: impl IntoRequest<CreatePolicyTagRequest>
) -> Result<Response<PolicyTag>, Status>
Creates a policy tag in a taxonomy.
pub async fn delete_policy_tag(
&mut self,
request: impl IntoRequest<DeletePolicyTagRequest>
) -> Result<Response<()>, Status>
pub async fn delete_policy_tag(
&mut self,
request: impl IntoRequest<DeletePolicyTagRequest>
) -> Result<Response<()>, Status>
Deletes a policy tag together with the following:
- All of its descendant policy tags, if any
- Policies associated with the policy tag and its descendants
- References from BigQuery table schema of the policy tag and its descendants
pub async fn update_policy_tag(
&mut self,
request: impl IntoRequest<UpdatePolicyTagRequest>
) -> Result<Response<PolicyTag>, Status>
pub async fn update_policy_tag(
&mut self,
request: impl IntoRequest<UpdatePolicyTagRequest>
) -> Result<Response<PolicyTag>, Status>
Updates a policy tag, including its display name, description, and parent policy tag.
Lists all policy tags in a taxonomy.
pub async fn get_policy_tag(
&mut self,
request: impl IntoRequest<GetPolicyTagRequest>
) -> Result<Response<PolicyTag>, Status>
pub async fn get_policy_tag(
&mut self,
request: impl IntoRequest<GetPolicyTagRequest>
) -> Result<Response<PolicyTag>, Status>
Gets a policy tag.
pub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
pub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
Gets the IAM policy for a policy tag or a taxonomy.
pub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
pub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
Sets the IAM policy for a policy tag or a taxonomy.
pub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsRequest>
) -> Result<Response<TestIamPermissionsResponse>, Status>
pub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsRequest>
) -> Result<Response<TestIamPermissionsResponse>, Status>
Returns your permissions on a specified policy tag or taxonomy.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for PolicyTagManagerClient<T> where
T: RefUnwindSafe,
impl<T> Send for PolicyTagManagerClient<T> where
T: Send,
impl<T> Sync for PolicyTagManagerClient<T> where
T: Sync,
impl<T> Unpin for PolicyTagManagerClient<T> where
T: Unpin,
impl<T> UnwindSafe for PolicyTagManagerClient<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