Struct googapis::google::appengine::v1beta::versions_client::VersionsClient [−][src]
pub struct VersionsClient<T> { /* fields omitted */ }
Expand description
Manages versions of a service.
Implementations
impl<T> VersionsClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> VersionsClient<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
) -> VersionsClient<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 list_versions(
&mut self,
request: impl IntoRequest<ListVersionsRequest>
) -> Result<Response<ListVersionsResponse>, Status>
pub async fn list_versions(
&mut self,
request: impl IntoRequest<ListVersionsRequest>
) -> Result<Response<ListVersionsResponse>, Status>
Lists the versions of a service.
pub async fn get_version(
&mut self,
request: impl IntoRequest<GetVersionRequest>
) -> Result<Response<Version>, Status>
pub async fn get_version(
&mut self,
request: impl IntoRequest<GetVersionRequest>
) -> Result<Response<Version>, Status>
Gets the specified Version resource.
By default, only a BASIC_VIEW
will be returned.
Specify the FULL_VIEW
parameter to get the full resource.
pub async fn create_version(
&mut self,
request: impl IntoRequest<CreateVersionRequest>
) -> Result<Response<Operation>, Status>
pub async fn create_version(
&mut self,
request: impl IntoRequest<CreateVersionRequest>
) -> Result<Response<Operation>, Status>
Deploys code and resource files to a new version.
pub async fn update_version(
&mut self,
request: impl IntoRequest<UpdateVersionRequest>
) -> Result<Response<Operation>, Status>
pub async fn update_version(
&mut self,
request: impl IntoRequest<UpdateVersionRequest>
) -> Result<Response<Operation>, Status>
Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:
Standard environment
automatic scaling in the standard environment:
automatic_scaling.min_idle_instances
automatic_scaling.max_idle_instances
automaticScaling.standard_scheduler_settings.max_instances
automaticScaling.standard_scheduler_settings.min_instances
automaticScaling.standard_scheduler_settings.target_cpu_utilization
automaticScaling.standard_scheduler_settings.target_throughput_utilization
basic scaling or manual scaling in the standard environment:
Flexible environment
automatic scaling in the flexible environment:
automatic_scaling.min_total_instances
automatic_scaling.max_total_instances
automatic_scaling.cool_down_period_sec
automatic_scaling.cpu_utilization.target_utilization
manual scaling in the flexible environment:
pub async fn delete_version(
&mut self,
request: impl IntoRequest<DeleteVersionRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_version(
&mut self,
request: impl IntoRequest<DeleteVersionRequest>
) -> Result<Response<Operation>, Status>
Deletes an existing Version resource.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for VersionsClient<T> where
T: RefUnwindSafe,
impl<T> Send for VersionsClient<T> where
T: Send,
impl<T> Sync for VersionsClient<T> where
T: Sync,
impl<T> Unpin for VersionsClient<T> where
T: Unpin,
impl<T> UnwindSafe for VersionsClient<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