Struct googapis::google::cloud::compute::v1::region_commitments_client::RegionCommitmentsClient [−][src]
pub struct RegionCommitmentsClient<T> { /* fields omitted */ }
Expand description
The RegionCommitments API.
Implementations
impl<T> RegionCommitmentsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> RegionCommitmentsClient<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
) -> RegionCommitmentsClient<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 aggregated_list(
&mut self,
request: impl IntoRequest<AggregatedListRegionCommitmentsRequest>
) -> Result<Response<CommitmentAggregatedList>, Status>
pub async fn aggregated_list(
&mut self,
request: impl IntoRequest<AggregatedListRegionCommitmentsRequest>
) -> Result<Response<CommitmentAggregatedList>, Status>
Retrieves an aggregated list of commitments by region.
pub async fn get(
&mut self,
request: impl IntoRequest<GetRegionCommitmentRequest>
) -> Result<Response<Commitment>, Status>
pub async fn get(
&mut self,
request: impl IntoRequest<GetRegionCommitmentRequest>
) -> Result<Response<Commitment>, Status>
Returns the specified commitment resource. Gets a list of available commitments by making a list() request.
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertRegionCommitmentRequest>
) -> Result<Response<Operation>, Status>
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertRegionCommitmentRequest>
) -> Result<Response<Operation>, Status>
Creates a commitment in the specified project using the data included in the request.
pub async fn list(
&mut self,
request: impl IntoRequest<ListRegionCommitmentsRequest>
) -> Result<Response<CommitmentList>, Status>
pub async fn list(
&mut self,
request: impl IntoRequest<ListRegionCommitmentsRequest>
) -> Result<Response<CommitmentList>, Status>
Retrieves a list of commitments contained within the specified region.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for RegionCommitmentsClient<T> where
T: RefUnwindSafe,
impl<T> Send for RegionCommitmentsClient<T> where
T: Send,
impl<T> Sync for RegionCommitmentsClient<T> where
T: Sync,
impl<T> Unpin for RegionCommitmentsClient<T> where
T: Unpin,
impl<T> UnwindSafe for RegionCommitmentsClient<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