pub struct DomainMappings { /* private fields */ }Expand description
Implements a client for the App Engine Admin API.
§Example
let client = DomainMappings::builder().build().await?;
// use `client` to make requests to the App Engine Admin API.§Service Description
Manages domains serving an application.
§Configuration
To configure DomainMappings 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
DomainMappings holds a connection pool internally, it is advised to
create one and the reuse it. You do not need to wrap DomainMappings in
an Rc or Arc to reuse it, because it
already uses an Arc internally.
Implementations§
Source§impl DomainMappings
impl DomainMappings
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a builder for DomainMappings.
let client = DomainMappings::builder().build().await?;Sourcepub fn from_stub<T>(stub: T) -> Selfwhere
T: DomainMappings + 'static,
pub fn from_stub<T>(stub: T) -> Selfwhere
T: DomainMappings + '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_domain_mappings(&self) -> ListDomainMappings
pub fn list_domain_mappings(&self) -> ListDomainMappings
Lists the domain mappings on an application.
Sourcepub fn get_domain_mapping(&self) -> GetDomainMapping
pub fn get_domain_mapping(&self) -> GetDomainMapping
Gets the specified domain mapping.
Sourcepub fn create_domain_mapping(&self) -> CreateDomainMapping
pub fn create_domain_mapping(&self) -> CreateDomainMapping
Maps a domain to an application. A user must be authorized to administer a
domain in order to map it to an application. For a list of available
authorized domains, see AuthorizedDomains.ListAuthorizedDomains.
§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_domain_mapping(&self) -> UpdateDomainMapping
pub fn update_domain_mapping(&self) -> UpdateDomainMapping
Updates the specified domain mapping. To map an SSL certificate to a
domain mapping, update certificate_id to point to an AuthorizedCertificate
resource. A user must be authorized to administer the associated domain
in order to update a DomainMapping 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 delete_domain_mapping(&self) -> DeleteDomainMapping
pub fn delete_domain_mapping(&self) -> DeleteDomainMapping
Deletes the specified domain mapping. A user must be authorized to
administer the associated domain in order to delete a DomainMapping
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.
Trait Implementations§
Source§impl Clone for DomainMappings
impl Clone for DomainMappings
Source§fn clone(&self) -> DomainMappings
fn clone(&self) -> DomainMappings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more