Struct google_appengine1::Version [−][src]
pub struct Version {
pub endpoints_api_service: Option<EndpointsApiService>,
pub default_expiration: Option<String>,
pub basic_scaling: Option<BasicScaling>,
pub vm: Option<bool>,
pub zones: Option<Vec<String>>,
pub instance_class: Option<String>,
pub error_handlers: Option<Vec<ErrorHandler>>,
pub version_url: Option<String>,
pub readiness_check: Option<ReadinessCheck>,
pub api_config: Option<ApiConfigHandler>,
pub network: Option<Network>,
pub health_check: Option<HealthCheck>,
pub id: Option<String>,
pub libraries: Option<Vec<Library>>,
pub entrypoint: Option<Entrypoint>,
pub env: Option<String>,
pub disk_usage_bytes: Option<String>,
pub automatic_scaling: Option<AutomaticScaling>,
pub env_variables: Option<HashMap<String, String>>,
pub resources: Option<Resources>,
pub manual_scaling: Option<ManualScaling>,
pub inbound_services: Option<Vec<String>>,
pub runtime_channel: Option<String>,
pub beta_settings: Option<HashMap<String, String>>,
pub created_by: Option<String>,
pub deployment: Option<Deployment>,
pub nobuild_files_regex: Option<String>,
pub create_time: Option<String>,
pub threadsafe: Option<bool>,
pub runtime_api_version: Option<String>,
pub liveness_check: Option<LivenessCheck>,
pub name: Option<String>,
pub handlers: Option<Vec<UrlMap>>,
pub serving_status: Option<String>,
pub runtime: Option<String>,
}A Version resource is a specific set of source code and configuration files that are deployed into a service.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- services versions get apps (response)
- services versions create apps (request)
- services versions patch apps (request)
Fields
endpoints_api_service: Option<EndpointsApiService>
Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
default_expiration: Option<String>
Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
basic_scaling: Option<BasicScaling>
A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
vm: Option<bool>
Whether to deploy this version in a container on a virtual machine.
zones: Option<Vec<String>>
The Google Compute Engine zones that are supported by this version in the App Engine flexible environment.
instance_class: Option<String>
Instance class that is used to run this version. Valid values are: AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
error_handlers: Option<Vec<ErrorHandler>>
Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
version_url: Option<String>
Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly
readiness_check: Option<ReadinessCheck>
Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
api_config: Option<ApiConfigHandler>
Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set.
network: Option<Network>
Extra network settings. Only applicable in the App Engine flexible environment.
health_check: Option<HealthCheck>
Configures health checking for instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment.Only returned in GET requests if view=FULL is set.
id: Option<String>
Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-".
libraries: Option<Vec<Library>>
Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
entrypoint: Option<Entrypoint>
The entrypoint for the application.
env: Option<String>
App Engine execution environment for this version.Defaults to standard.
disk_usage_bytes: Option<String>
Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly
automatic_scaling: Option<AutomaticScaling>
Automatic scaling is based on request rate, response latencies, and other application metrics.
env_variables: Option<HashMap<String, String>>
Environment variables available to the application.Only returned in GET requests if view=FULL is set.
resources: Option<Resources>
Machine resources for this version. Only applicable in the App Engine flexible environment.
manual_scaling: Option<ManualScaling>
A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
inbound_services: Option<Vec<String>>
Before an application can receive email or XMPP messages, the application must be configured to enable the service.
runtime_channel: Option<String>
The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
beta_settings: Option<HashMap<String, String>>
Metadata settings that are supplied to this version to enable beta runtime features.
created_by: Option<String>
Email address of the user who created this version.@OutputOnly
deployment: Option<Deployment>
Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set.
nobuild_files_regex: Option<String>
Files that match this pattern will not be built into this version. Only applicable for Go runtimes.Only returned in GET requests if view=FULL is set.
create_time: Option<String>
Time that this version was created.@OutputOnly
threadsafe: Option<bool>
Whether multiple requests can be dispatched to this version at once.
runtime_api_version: Option<String>
The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard/
liveness_check: Option<LivenessCheck>
Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
name: Option<String>
Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
handlers: Option<Vec<UrlMap>>
An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted.Only returned in GET requests if view=FULL is set.
serving_status: Option<String>
Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING.
runtime: Option<String>
Desired runtime. Example: python27.
Trait Implementations
impl Default for Version[src]
impl Default for Versionimpl Clone for Version[src]
impl Clone for Versionfn clone(&self) -> Version[src]
fn clone(&self) -> VersionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Version[src]
impl Debug for Versionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl RequestValue for Version[src]
impl RequestValue for Versionimpl ResponseResult for Version[src]
impl ResponseResult for Version