Struct google_api_proto::google::appengine::v1::instances_client::InstancesClient
source · pub struct InstancesClient<T> { /* private fields */ }
Expand description
Manages instances of a version.
Implementations§
source§impl<T> InstancesClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> InstancesClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InstancesClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn list_instances(
&mut self,
request: impl IntoRequest<ListInstancesRequest>,
) -> Result<Response<ListInstancesResponse>, Status>
pub async fn list_instances( &mut self, request: impl IntoRequest<ListInstancesRequest>, ) -> Result<Response<ListInstancesResponse>, Status>
Lists the instances of a version.
Tip: To aggregate details about instances over time, see the Stackdriver Monitoring API.
sourcepub async fn get_instance(
&mut self,
request: impl IntoRequest<GetInstanceRequest>,
) -> Result<Response<Instance>, Status>
pub async fn get_instance( &mut self, request: impl IntoRequest<GetInstanceRequest>, ) -> Result<Response<Instance>, Status>
Gets instance information.
sourcepub async fn delete_instance(
&mut self,
request: impl IntoRequest<DeleteInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_instance( &mut self, request: impl IntoRequest<DeleteInstanceRequest>, ) -> Result<Response<Operation>, Status>
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.
sourcepub async fn debug_instance(
&mut self,
request: impl IntoRequest<DebugInstanceRequest>,
) -> Result<Response<Operation>, Status>
pub async fn debug_instance( &mut self, request: impl IntoRequest<DebugInstanceRequest>, ) -> Result<Response<Operation>, Status>
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§
source§impl<T: Clone> Clone for InstancesClient<T>
impl<T: Clone> Clone for InstancesClient<T>
source§fn clone(&self) -> InstancesClient<T>
fn clone(&self) -> InstancesClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for InstancesClient<T>
impl<T> RefUnwindSafe for InstancesClient<T>where
T: RefUnwindSafe,
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>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request