Struct gapi_grpc::google::appengine::v1beta::instances_client::InstancesClient[][src]

pub struct InstancesClient<T> { /* fields omitted */ }

Manages instances of a version.

Implementations

impl InstancesClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> InstancesClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn list_instances(
    &mut self,
    request: impl IntoRequest<ListInstancesRequest>
) -> Result<Response<ListInstancesResponse>, Status>
[src]

Lists the instances of a version.

Tip: To aggregate details about instances over time, see the Stackdriver Monitoring API.

pub async fn get_instance(
    &mut self,
    request: impl IntoRequest<GetInstanceRequest>
) -> Result<Response<Instance>, Status>
[src]

Gets instance information.

pub async fn delete_instance(
    &mut self,
    request: impl IntoRequest<DeleteInstanceRequest>
) -> Result<Response<Operation>, Status>
[src]

Stops a running instance.

The instance might be automatically recreated based on the scaling settings of the version. For more information, see “How Instances are Managed” (standard environment | flexible environment).

To ensure that instances are not re-created and avoid getting billed, you can stop all instances within the target version by changing the serving status of the version to STOPPED with the apps.services.versions.patch method.

pub async fn debug_instance(
    &mut self,
    request: impl IntoRequest<DebugInstanceRequest>
) -> Result<Response<Operation>, Status>
[src]

Enables debugging on a VM instance. This allows you to use the SSH command to connect to the virtual machine where the instance lives. While in “debug mode”, the instance continues to serve live traffic. You should delete the instance when you are done debugging and then allow the system to take over and determine if another instance should be started.

Only applicable for instances in App Engine flexible environment.

Trait Implementations

impl<T: Clone> Clone for InstancesClient<T>[src]

impl<T> Debug for InstancesClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for InstancesClient<T>

impl<T> Send for InstancesClient<T> where
    T: Send

impl<T> Sync for InstancesClient<T> where
    T: Sync

impl<T> Unpin for InstancesClient<T> where
    T: Unpin

impl<T> !UnwindSafe for InstancesClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]