#[non_exhaustive]pub struct Application {Show 15 fields
pub name: String,
pub id: String,
pub dispatch_rules: Vec<UrlDispatchRule>,
pub auth_domain: String,
pub location_id: String,
pub code_bucket: String,
pub default_cookie_expiration: Option<Duration>,
pub serving_status: ServingStatus,
pub default_hostname: String,
pub default_bucket: String,
pub service_account: String,
pub iap: Option<IdentityAwareProxy>,
pub gcr_domain: String,
pub database_type: DatabaseType,
pub feature_settings: Option<FeatureSettings>,
/* private fields */
}
Expand description
An Application resource contains the top-level configuration of an App Engine application.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
Full path to the Application resource in the API.
Example: apps/myapp
.
@OutputOnly
id: String
Identifier of the Application resource. This identifier is equivalent
to the project ID of the Google Cloud Platform project where you want to
deploy your application.
Example: myapp
.
dispatch_rules: Vec<UrlDispatchRule>
HTTP path dispatch rules for requests to the application that do not explicitly target a service or version. Rules are order-dependent. Up to 20 dispatch rules can be supported.
auth_domain: String
Google Apps authentication domain that controls which users can access this application.
Defaults to open access for any Google Account.
location_id: String
Location from which this application runs. Application instances run out of the data centers in the specified location, which is also where all of the application’s end user content is stored.
Defaults to us-central
.
View the list of supported locations.
code_bucket: String
Google Cloud Storage bucket that can be used for storing files associated with this application. This bucket is associated with the application and can be used by the gcloud deployment commands.
@OutputOnly
Cookie expiration policy for this application.
serving_status: ServingStatus
Serving status of this application.
default_hostname: String
Hostname used to reach this application, as resolved by App Engine.
@OutputOnly
default_bucket: String
Google Cloud Storage bucket that can be used by this application to store content.
@OutputOnly
service_account: String
The service account associated with the application. This is the app-level default identity. If no identity provided during create version, Admin API will fallback to this one.
iap: Option<IdentityAwareProxy>
§gcr_domain: String
The Google Container Registry domain used for storing managed build docker images for this application.
database_type: DatabaseType
The type of the Cloud Firestore or Cloud Datastore database associated with this application.
feature_settings: Option<FeatureSettings>
The feature specific settings to be used in the application.
Implementations§
Source§impl Application
impl Application
pub fn new() -> Self
Sourcepub fn set_dispatch_rules<T, V>(self, v: T) -> Self
pub fn set_dispatch_rules<T, V>(self, v: T) -> Self
Sets the value of dispatch_rules.
Sourcepub fn set_auth_domain<T: Into<String>>(self, v: T) -> Self
pub fn set_auth_domain<T: Into<String>>(self, v: T) -> Self
Sets the value of auth_domain.
Sourcepub fn set_location_id<T: Into<String>>(self, v: T) -> Self
pub fn set_location_id<T: Into<String>>(self, v: T) -> Self
Sets the value of location_id.
Sourcepub fn set_code_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_code_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of code_bucket.
Sets the value of default_cookie_expiration.
Sets or clears the value of default_cookie_expiration.
Sourcepub fn set_serving_status<T: Into<ServingStatus>>(self, v: T) -> Self
pub fn set_serving_status<T: Into<ServingStatus>>(self, v: T) -> Self
Sets the value of serving_status.
Sourcepub fn set_default_hostname<T: Into<String>>(self, v: T) -> Self
pub fn set_default_hostname<T: Into<String>>(self, v: T) -> Self
Sets the value of default_hostname.
Sourcepub fn set_default_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_default_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of default_bucket.
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
Sourcepub fn set_iap<T>(self, v: T) -> Selfwhere
T: Into<IdentityAwareProxy>,
pub fn set_iap<T>(self, v: T) -> Selfwhere
T: Into<IdentityAwareProxy>,
Sets the value of iap.
Sourcepub fn set_or_clear_iap<T>(self, v: Option<T>) -> Selfwhere
T: Into<IdentityAwareProxy>,
pub fn set_or_clear_iap<T>(self, v: Option<T>) -> Selfwhere
T: Into<IdentityAwareProxy>,
Sets or clears the value of iap.
Sourcepub fn set_gcr_domain<T: Into<String>>(self, v: T) -> Self
pub fn set_gcr_domain<T: Into<String>>(self, v: T) -> Self
Sets the value of gcr_domain.
Sourcepub fn set_database_type<T: Into<DatabaseType>>(self, v: T) -> Self
pub fn set_database_type<T: Into<DatabaseType>>(self, v: T) -> Self
Sets the value of database_type.
Sourcepub fn set_feature_settings<T>(self, v: T) -> Selfwhere
T: Into<FeatureSettings>,
pub fn set_feature_settings<T>(self, v: T) -> Selfwhere
T: Into<FeatureSettings>,
Sets the value of feature_settings.
Sourcepub fn set_or_clear_feature_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSettings>,
pub fn set_or_clear_feature_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<FeatureSettings>,
Sets or clears the value of feature_settings.
Trait Implementations§
Source§impl Clone for Application
impl Clone for Application
Source§fn clone(&self) -> Application
fn clone(&self) -> Application
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more