Struct googapis::google::cloud::talent::v4beta1::tenant_service_client::TenantServiceClient [−][src]
pub struct TenantServiceClient<T> { /* fields omitted */ }
Expand description
A service that handles tenant management, including CRUD and enumeration.
Implementations
impl<T> TenantServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> TenantServiceClient<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
) -> TenantServiceClient<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_tenant(
&mut self,
request: impl IntoRequest<CreateTenantRequest>
) -> Result<Response<Tenant>, Status>
pub async fn create_tenant(
&mut self,
request: impl IntoRequest<CreateTenantRequest>
) -> Result<Response<Tenant>, Status>
Creates a new tenant entity.
pub async fn get_tenant(
&mut self,
request: impl IntoRequest<GetTenantRequest>
) -> Result<Response<Tenant>, Status>
pub async fn get_tenant(
&mut self,
request: impl IntoRequest<GetTenantRequest>
) -> Result<Response<Tenant>, Status>
Retrieves specified tenant.
pub async fn update_tenant(
&mut self,
request: impl IntoRequest<UpdateTenantRequest>
) -> Result<Response<Tenant>, Status>
pub async fn update_tenant(
&mut self,
request: impl IntoRequest<UpdateTenantRequest>
) -> Result<Response<Tenant>, Status>
Updates specified tenant.
pub async fn delete_tenant(
&mut self,
request: impl IntoRequest<DeleteTenantRequest>
) -> Result<Response<()>, Status>
pub async fn delete_tenant(
&mut self,
request: impl IntoRequest<DeleteTenantRequest>
) -> Result<Response<()>, Status>
Deletes specified tenant.
pub async fn list_tenants(
&mut self,
request: impl IntoRequest<ListTenantsRequest>
) -> Result<Response<ListTenantsResponse>, Status>
pub async fn list_tenants(
&mut self,
request: impl IntoRequest<ListTenantsRequest>
) -> Result<Response<ListTenantsResponse>, Status>
Lists all tenants associated with the project.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for TenantServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for TenantServiceClient<T> where
T: Send,
impl<T> Sync for TenantServiceClient<T> where
T: Sync,
impl<T> Unpin for TenantServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for TenantServiceClient<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