pub struct Applications { /* private fields */ }
Expand description
Implements a client for the App Engine Admin API.
§Example
let client = Applications::builder().build().await?;
// use `client` to make requests to the App Engine Admin API.
§Service Description
Manages App Engine applications.
§Configuration
To configure Applications
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
Applications
holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap Applications
in
an Rc or Arc to reuse it, because it
already uses an Arc
internally.
Implementations§
Source§impl Applications
impl Applications
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for Applications.
let client = Applications::builder().build().await?;
Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: Applications + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: Applications + '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 get_application(&self) -> GetApplication
pub fn get_application(&self) -> GetApplication
Gets information about an application.
Sourcepub fn create_application(&self) -> CreateApplication
pub fn create_application(&self) -> CreateApplication
Creates an App Engine application for a Google Cloud Platform project. Required fields:
id
- The ID of the target Cloud Platform project.- location - The region where you want the App Engine application located.
For more information about App Engine applications, see Managing Projects, Applications, and Billing.
§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_application(&self) -> UpdateApplication
pub fn update_application(&self) -> UpdateApplication
Updates the specified Application resource. You can update the following fields:
auth_domain
- Google authentication domain for controlling user access to the application.default_cookie_expiration
- Cookie expiration policy for the application.iap
- Identity-Aware Proxy properties for the application.
§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 repair_application(&self) -> RepairApplication
pub fn repair_application(&self) -> RepairApplication
Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B“name”%3A“projects%2F-%2FserviceAccounts%2Funique_id“%2C“resource“%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.
§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.
Trait Implementations§
Source§impl Clone for Applications
impl Clone for Applications
Source§fn clone(&self) -> Applications
fn clone(&self) -> Applications
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more