Struct google_api_proto::google::cloud::iap::v1::identity_aware_proxy_o_auth_service_client::IdentityAwareProxyOAuthServiceClient
source · pub struct IdentityAwareProxyOAuthServiceClient<T> { /* private fields */ }
Expand description
API to programmatically create, list and retrieve Identity Aware Proxy (IAP) OAuth brands; and create, retrieve, delete and reset-secret of IAP OAuth clients.
Implementations§
source§impl<T> IdentityAwareProxyOAuthServiceClient<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> IdentityAwareProxyOAuthServiceClient<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
) -> IdentityAwareProxyOAuthServiceClient<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_brands(
&mut self,
request: impl IntoRequest<ListBrandsRequest>
) -> Result<Response<ListBrandsResponse>, Status>
pub async fn list_brands( &mut self, request: impl IntoRequest<ListBrandsRequest> ) -> Result<Response<ListBrandsResponse>, Status>
Lists the existing brands for the project.
sourcepub async fn create_brand(
&mut self,
request: impl IntoRequest<CreateBrandRequest>
) -> Result<Response<Brand>, Status>
pub async fn create_brand( &mut self, request: impl IntoRequest<CreateBrandRequest> ) -> Result<Response<Brand>, Status>
Constructs a new OAuth brand for the project if one does not exist. The created brand is “internal only”, meaning that OAuth clients created under it only accept requests from users who belong to the same Google Workspace organization as the project. The brand is created in an un-reviewed status. NOTE: The “internal only” status can be manually changed in the Google Cloud Console. Requires that a brand does not already exist for the project, and that the specified support email is owned by the caller.
sourcepub async fn get_brand(
&mut self,
request: impl IntoRequest<GetBrandRequest>
) -> Result<Response<Brand>, Status>
pub async fn get_brand( &mut self, request: impl IntoRequest<GetBrandRequest> ) -> Result<Response<Brand>, Status>
Retrieves the OAuth brand of the project.
sourcepub async fn create_identity_aware_proxy_client(
&mut self,
request: impl IntoRequest<CreateIdentityAwareProxyClientRequest>
) -> Result<Response<IdentityAwareProxyClient>, Status>
pub async fn create_identity_aware_proxy_client( &mut self, request: impl IntoRequest<CreateIdentityAwareProxyClientRequest> ) -> Result<Response<IdentityAwareProxyClient>, Status>
Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned by IAP. Requires that the brand for the project exists and that it is set for internal-only use.
sourcepub async fn list_identity_aware_proxy_clients(
&mut self,
request: impl IntoRequest<ListIdentityAwareProxyClientsRequest>
) -> Result<Response<ListIdentityAwareProxyClientsResponse>, Status>
pub async fn list_identity_aware_proxy_clients( &mut self, request: impl IntoRequest<ListIdentityAwareProxyClientsRequest> ) -> Result<Response<ListIdentityAwareProxyClientsResponse>, Status>
Lists the existing clients for the brand.
sourcepub async fn get_identity_aware_proxy_client(
&mut self,
request: impl IntoRequest<GetIdentityAwareProxyClientRequest>
) -> Result<Response<IdentityAwareProxyClient>, Status>
pub async fn get_identity_aware_proxy_client( &mut self, request: impl IntoRequest<GetIdentityAwareProxyClientRequest> ) -> Result<Response<IdentityAwareProxyClient>, Status>
Retrieves an Identity Aware Proxy (IAP) OAuth client. Requires that the client is owned by IAP.
sourcepub async fn reset_identity_aware_proxy_client_secret(
&mut self,
request: impl IntoRequest<ResetIdentityAwareProxyClientSecretRequest>
) -> Result<Response<IdentityAwareProxyClient>, Status>
pub async fn reset_identity_aware_proxy_client_secret( &mut self, request: impl IntoRequest<ResetIdentityAwareProxyClientSecretRequest> ) -> Result<Response<IdentityAwareProxyClient>, Status>
Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the secret was compromised. Requires that the client is owned by IAP.
sourcepub async fn delete_identity_aware_proxy_client(
&mut self,
request: impl IntoRequest<DeleteIdentityAwareProxyClientRequest>
) -> Result<Response<()>, Status>
pub async fn delete_identity_aware_proxy_client( &mut self, request: impl IntoRequest<DeleteIdentityAwareProxyClientRequest> ) -> Result<Response<()>, Status>
Deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing obsolete clients, managing the number of clients in a given project, and cleaning up after tests. Requires that the client is owned by IAP.
Trait Implementations§
source§impl<T: Clone> Clone for IdentityAwareProxyOAuthServiceClient<T>
impl<T: Clone> Clone for IdentityAwareProxyOAuthServiceClient<T>
source§fn clone(&self) -> IdentityAwareProxyOAuthServiceClient<T>
fn clone(&self) -> IdentityAwareProxyOAuthServiceClient<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 IdentityAwareProxyOAuthServiceClient<T>
impl<T> RefUnwindSafe for IdentityAwareProxyOAuthServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for IdentityAwareProxyOAuthServiceClient<T>where
T: Send,
impl<T> Sync for IdentityAwareProxyOAuthServiceClient<T>where
T: Sync,
impl<T> Unpin for IdentityAwareProxyOAuthServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for IdentityAwareProxyOAuthServiceClient<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