Struct googapis::google::cloud::compute::v1::instance_groups_client::InstanceGroupsClient [−][src]
pub struct InstanceGroupsClient<T> { /* fields omitted */ }
Expand description
The InstanceGroups API.
Implementations
impl<T> InstanceGroupsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> InstanceGroupsClient<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
) -> InstanceGroupsClient<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 add_instances(
&mut self,
request: impl IntoRequest<AddInstancesInstanceGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn add_instances(
&mut self,
request: impl IntoRequest<AddInstancesInstanceGroupRequest>
) -> Result<Response<Operation>, Status>
Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.
pub async fn aggregated_list(
&mut self,
request: impl IntoRequest<AggregatedListInstanceGroupsRequest>
) -> Result<Response<InstanceGroupAggregatedList>, Status>
pub async fn aggregated_list(
&mut self,
request: impl IntoRequest<AggregatedListInstanceGroupsRequest>
) -> Result<Response<InstanceGroupAggregatedList>, Status>
Retrieves the list of instance groups and sorts them by zone.
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteInstanceGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteInstanceGroupRequest>
) -> Result<Response<Operation>, Status>
Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information.
pub async fn get(
&mut self,
request: impl IntoRequest<GetInstanceGroupRequest>
) -> Result<Response<InstanceGroup>, Status>
pub async fn get(
&mut self,
request: impl IntoRequest<GetInstanceGroupRequest>
) -> Result<Response<InstanceGroup>, Status>
Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertInstanceGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn insert(
&mut self,
request: impl IntoRequest<InsertInstanceGroupRequest>
) -> Result<Response<Operation>, Status>
Creates an instance group in the specified project using the parameters that are included in the request.
pub async fn list(
&mut self,
request: impl IntoRequest<ListInstanceGroupsRequest>
) -> Result<Response<InstanceGroupList>, Status>
pub async fn list(
&mut self,
request: impl IntoRequest<ListInstanceGroupsRequest>
) -> Result<Response<InstanceGroupList>, Status>
Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use the instanceGroupManagers or regionInstanceGroupManagers methods instead.
pub async fn list_instances(
&mut self,
request: impl IntoRequest<ListInstancesInstanceGroupsRequest>
) -> Result<Response<InstanceGroupsListInstances>, Status>
pub async fn list_instances(
&mut self,
request: impl IntoRequest<ListInstancesInstanceGroupsRequest>
) -> Result<Response<InstanceGroupsListInstances>, Status>
Lists the instances in the specified instance group. The orderBy query parameter is not supported.
pub async fn remove_instances(
&mut self,
request: impl IntoRequest<RemoveInstancesInstanceGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn remove_instances(
&mut self,
request: impl IntoRequest<RemoveInstancesInstanceGroupRequest>
) -> Result<Response<Operation>, Status>
Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.
pub async fn set_named_ports(
&mut self,
request: impl IntoRequest<SetNamedPortsInstanceGroupRequest>
) -> Result<Response<Operation>, Status>
pub async fn set_named_ports(
&mut self,
request: impl IntoRequest<SetNamedPortsInstanceGroupRequest>
) -> Result<Response<Operation>, Status>
Sets the named ports for the specified instance group.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for InstanceGroupsClient<T> where
T: RefUnwindSafe,
impl<T> Send for InstanceGroupsClient<T> where
T: Send,
impl<T> Sync for InstanceGroupsClient<T> where
T: Sync,
impl<T> Unpin for InstanceGroupsClient<T> where
T: Unpin,
impl<T> UnwindSafe for InstanceGroupsClient<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