Struct googapis::google::cloud::compute::v1::target_instances_client::TargetInstancesClient [−][src]
pub struct TargetInstancesClient<T> { /* fields omitted */ }
Expand description
The TargetInstances API.
Implementations
impl<T> TargetInstancesClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> TargetInstancesClient<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
) -> TargetInstancesClient<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<AggregatedListTargetInstancesRequest>
) -> Result<Response<TargetInstanceAggregatedList>, Status>
pub async fn aggregated_list(
&mut self,
request: impl IntoRequest<AggregatedListTargetInstancesRequest>
) -> Result<Response<TargetInstanceAggregatedList>, Status>
Retrieves an aggregated list of target instances.
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteTargetInstanceRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteTargetInstanceRequest>
) -> Result<Response<Operation>, Status>
Deletes the specified TargetInstance resource.
pub async fn get(
&mut self,
request: impl IntoRequest<GetTargetInstanceRequest>
) -> Result<Response<TargetInstance>, Status>
pub async fn get(
&mut self,
request: impl IntoRequest<GetTargetInstanceRequest>
) -> Result<Response<TargetInstance>, Status>
Returns the specified TargetInstance resource. Gets a list of available target instances by making a list() request.
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertTargetInstanceRequest>
) -> Result<Response<Operation>, Status>
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertTargetInstanceRequest>
) -> Result<Response<Operation>, Status>
Creates a TargetInstance resource in the specified project and zone using the data included in the request.
pub async fn list(
&mut self,
request: impl IntoRequest<ListTargetInstancesRequest>
) -> Result<Response<TargetInstanceList>, Status>
pub async fn list(
&mut self,
request: impl IntoRequest<ListTargetInstancesRequest>
) -> Result<Response<TargetInstanceList>, Status>
Retrieves a list of TargetInstance resources available to the specified project and zone.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for TargetInstancesClient<T> where
T: RefUnwindSafe,
impl<T> Send for TargetInstancesClient<T> where
T: Send,
impl<T> Sync for TargetInstancesClient<T> where
T: Sync,
impl<T> Unpin for TargetInstancesClient<T> where
T: Unpin,
impl<T> UnwindSafe for TargetInstancesClient<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