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,

source

pub fn new(inner: T) -> Self

source

pub fn with_origin(inner: T, origin: Uri) -> Self

source

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,

source

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.

source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

source

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.

source

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].

source

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.

source

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].

source

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.

source

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.

source

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.

source

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].

source

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.

source

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].

source

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.

source

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>

source§

fn clone(&self) -> WorkloadIdentityPoolsClient<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for WorkloadIdentityPoolsClient<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more