Struct googapis::google::cloud::iap::v1::identity_aware_proxy_o_auth_service_client::IdentityAwareProxyOAuthServiceClient [−][src]
pub struct IdentityAwareProxyOAuthServiceClient<T> { /* fields omitted */ }
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
impl<T> IdentityAwareProxyOAuthServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> IdentityAwareProxyOAuthServiceClient<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
) -> IdentityAwareProxyOAuthServiceClient<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 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.
pub 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 G Suite 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.
pub 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.
pub 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.
pub 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.
pub 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.
pub 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.
pub 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
Auto Trait Implementations
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
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