pub struct Versions { /* private fields */ }
Expand description
Implements a client for the App Engine Admin API.
§Example
let client = Versions::builder().build().await?;
// use `client` to make requests to the App Engine Admin API.
§Service Description
Manages versions of a service.
§Configuration
To configure Versions
use the with_*
methods in the type returned
by builder(). The default configuration should
work for most applications. Common configuration changes include
- with_endpoint(): by default this client uses the global default endpoint
(
https://appengine.googleapis.com
). Applications using regional endpoints or running in restricted networks (e.g. a network configured override this default. - with_credentials(): by default this client uses Application Default Credentials. Applications using custom authentication may need to override this default.
§Pooling and Cloning
Versions
holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap Versions
in
an Rc or Arc to reuse it, because it
already uses an Arc
internally.
Implementations§
Source§impl Versions
impl Versions
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for Versions.
let client = Versions::builder().build().await?;
Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: Versions + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: Versions + 'static,
Creates a new client from the provided stub.
The most common case for calling this function is in tests mocking the client’s behavior.
Sourcepub fn list_versions(&self) -> ListVersions
pub fn list_versions(&self) -> ListVersions
Lists the versions of a service.
Sourcepub fn get_version(&self) -> GetVersion
pub fn get_version(&self) -> GetVersion
Gets the specified Version resource.
By default, only a BASIC_VIEW
will be returned.
Specify the FULL_VIEW
parameter to get the full resource.
Sourcepub fn create_version(&self) -> CreateVersion
pub fn create_version(&self) -> CreateVersion
Deploys code and resource files to a new version.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn update_version(&self) -> UpdateVersion
pub fn update_version(&self) -> UpdateVersion
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:
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn delete_version(&self) -> DeleteVersion
pub fn delete_version(&self) -> DeleteVersion
Deletes an existing Version resource.
§Long running operations
This method is used to start, and/or poll a long-running Operation. The Working with long-running operations chapter in the user guide covers these operations in detail.
Sourcepub fn list_operations(&self) -> ListOperations
pub fn list_operations(&self) -> ListOperations
Provides the Operations service functionality in this service.
Sourcepub fn get_operation(&self) -> GetOperation
pub fn get_operation(&self) -> GetOperation
Provides the Operations service functionality in this service.