Struct google_api_proto::google::iam::v1beta::workload_identity_pools_client::WorkloadIdentityPoolsClient
source · pub struct WorkloadIdentityPoolsClient<T> { /* private fields */ }
Expand description
Manages WorkloadIdentityPools.
Implementations§
source§impl<T> WorkloadIdentityPoolsClient<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> WorkloadIdentityPoolsClient<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
) -> WorkloadIdentityPoolsClient<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 list_workload_identity_pools(
&mut self,
request: impl IntoRequest<ListWorkloadIdentityPoolsRequest>
) -> Result<Response<ListWorkloadIdentityPoolsResponse>, Status>
pub async fn list_workload_identity_pools( &mut self, request: impl IntoRequest<ListWorkloadIdentityPoolsRequest> ) -> Result<Response<ListWorkloadIdentityPoolsResponse>, Status>
Lists all non-deleted
[WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool]s in a
project. If show_deleted
is set to true
, then deleted pools are also
listed.
sourcepub async fn get_workload_identity_pool(
&mut self,
request: impl IntoRequest<GetWorkloadIdentityPoolRequest>
) -> Result<Response<WorkloadIdentityPool>, Status>
pub async fn get_workload_identity_pool( &mut self, request: impl IntoRequest<GetWorkloadIdentityPoolRequest> ) -> Result<Response<WorkloadIdentityPool>, Status>
Gets an individual [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool].
sourcepub async fn create_workload_identity_pool(
&mut self,
request: impl IntoRequest<CreateWorkloadIdentityPoolRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_workload_identity_pool( &mut self, request: impl IntoRequest<CreateWorkloadIdentityPoolRequest> ) -> Result<Response<Operation>, Status>
Creates a new [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool].
You cannot reuse the name of a deleted pool until 30 days after deletion.
sourcepub async fn update_workload_identity_pool(
&mut self,
request: impl IntoRequest<UpdateWorkloadIdentityPoolRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_workload_identity_pool( &mut self, request: impl IntoRequest<UpdateWorkloadIdentityPoolRequest> ) -> Result<Response<Operation>, Status>
Updates an existing [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool].
sourcepub async fn delete_workload_identity_pool(
&mut self,
request: impl IntoRequest<DeleteWorkloadIdentityPoolRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_workload_identity_pool( &mut self, request: impl IntoRequest<DeleteWorkloadIdentityPoolRequest> ) -> Result<Response<Operation>, Status>
Deletes a [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool].
You cannot use a deleted pool to exchange external credentials for Google Cloud credentials. However, deletion does not revoke credentials that have already been issued. Credentials issued for a deleted pool do not grant access to resources. If the pool is undeleted, and the credentials are not expired, they grant access again. You can undelete a pool for 30 days. After 30 days, deletion is permanent. You cannot update deleted pools. However, you can view and list them.
sourcepub async fn undelete_workload_identity_pool(
&mut self,
request: impl IntoRequest<UndeleteWorkloadIdentityPoolRequest>
) -> Result<Response<Operation>, Status>
pub async fn undelete_workload_identity_pool( &mut self, request: impl IntoRequest<UndeleteWorkloadIdentityPoolRequest> ) -> Result<Response<Operation>, Status>
Undeletes a [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool], as long as it was deleted fewer than 30 days ago.
sourcepub async fn list_workload_identity_pool_providers(
&mut self,
request: impl IntoRequest<ListWorkloadIdentityPoolProvidersRequest>
) -> Result<Response<ListWorkloadIdentityPoolProvidersResponse>, Status>
pub async fn list_workload_identity_pool_providers( &mut self, request: impl IntoRequest<ListWorkloadIdentityPoolProvidersRequest> ) -> Result<Response<ListWorkloadIdentityPoolProvidersResponse>, Status>
Lists all non-deleted
[WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityPoolProvider]s
in a [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool].
If show_deleted
is set to true
, then deleted providers are also listed.
sourcepub async fn get_workload_identity_pool_provider(
&mut self,
request: impl IntoRequest<GetWorkloadIdentityPoolProviderRequest>
) -> Result<Response<WorkloadIdentityPoolProvider>, Status>
pub async fn get_workload_identity_pool_provider( &mut self, request: impl IntoRequest<GetWorkloadIdentityPoolProviderRequest> ) -> Result<Response<WorkloadIdentityPoolProvider>, Status>
Gets an individual [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityPoolProvider].
sourcepub async fn create_workload_identity_pool_provider(
&mut self,
request: impl IntoRequest<CreateWorkloadIdentityPoolProviderRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_workload_identity_pool_provider( &mut self, request: impl IntoRequest<CreateWorkloadIdentityPoolProviderRequest> ) -> Result<Response<Operation>, Status>
Creates a new [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityProvider] in a [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool].
You cannot reuse the name of a deleted provider until 30 days after deletion.
sourcepub async fn update_workload_identity_pool_provider(
&mut self,
request: impl IntoRequest<UpdateWorkloadIdentityPoolProviderRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_workload_identity_pool_provider( &mut self, request: impl IntoRequest<UpdateWorkloadIdentityPoolProviderRequest> ) -> Result<Response<Operation>, Status>
Updates an existing [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityProvider].
sourcepub async fn delete_workload_identity_pool_provider(
&mut self,
request: impl IntoRequest<DeleteWorkloadIdentityPoolProviderRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_workload_identity_pool_provider( &mut self, request: impl IntoRequest<DeleteWorkloadIdentityPoolProviderRequest> ) -> Result<Response<Operation>, Status>
Deletes a [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityProvider]. Deleting a provider does not revoke credentials that have already been issued; they continue to grant access. You can undelete a provider for 30 days. After 30 days, deletion is permanent. You cannot update deleted providers. However, you can view and list them.
sourcepub async fn undelete_workload_identity_pool_provider(
&mut self,
request: impl IntoRequest<UndeleteWorkloadIdentityPoolProviderRequest>
) -> Result<Response<Operation>, Status>
pub async fn undelete_workload_identity_pool_provider( &mut self, request: impl IntoRequest<UndeleteWorkloadIdentityPoolProviderRequest> ) -> Result<Response<Operation>, Status>
Undeletes a [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityProvider], as long as it was deleted fewer than 30 days ago.
Trait Implementations§
source§impl<T: Clone> Clone for WorkloadIdentityPoolsClient<T>
impl<T: Clone> Clone for WorkloadIdentityPoolsClient<T>
source§fn clone(&self) -> WorkloadIdentityPoolsClient<T>
fn clone(&self) -> WorkloadIdentityPoolsClient<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 WorkloadIdentityPoolsClient<T>
impl<T> RefUnwindSafe for WorkloadIdentityPoolsClient<T>where
T: RefUnwindSafe,
impl<T> Send for WorkloadIdentityPoolsClient<T>where
T: Send,
impl<T> Sync for WorkloadIdentityPoolsClient<T>where
T: Sync,
impl<T> Unpin for WorkloadIdentityPoolsClient<T>where
T: Unpin,
impl<T> UnwindSafe for WorkloadIdentityPoolsClient<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