pub struct Version {
Show 42 fields pub api_config: Option<ApiConfigHandler>, pub app_engine_apis: Option<bool>, pub automatic_scaling: Option<AutomaticScaling>, pub basic_scaling: Option<BasicScaling>, pub beta_settings: Option<HashMap<String, String>>, pub build_env_variables: Option<HashMap<String, String>>, pub create_time: Option<DateTime<Utc>>, pub created_by: Option<String>, pub default_expiration: Option<Duration>, pub deployment: Option<Deployment>, pub disk_usage_bytes: Option<i64>, pub endpoints_api_service: Option<EndpointsApiService>, pub entrypoint: Option<Entrypoint>, pub env: Option<String>, pub env_variables: Option<HashMap<String, String>>, pub error_handlers: Option<Vec<ErrorHandler>>, pub flexible_runtime_settings: Option<FlexibleRuntimeSettings>, pub generated_customer_metadata: Option<HashMap<String, Value>>, pub handlers: Option<Vec<UrlMap>>, pub health_check: Option<HealthCheck>, pub id: Option<String>, pub inbound_services: Option<Vec<String>>, pub instance_class: Option<String>, pub libraries: Option<Vec<Library>>, pub liveness_check: Option<LivenessCheck>, pub manual_scaling: Option<ManualScaling>, pub name: Option<String>, pub network: Option<Network>, pub nobuild_files_regex: Option<String>, pub readiness_check: Option<ReadinessCheck>, pub resources: Option<Resources>, pub runtime: Option<String>, pub runtime_api_version: Option<String>, pub runtime_channel: Option<String>, pub runtime_main_executable_path: Option<String>, pub service_account: Option<String>, pub serving_status: Option<String>, pub threadsafe: Option<bool>, pub version_url: Option<String>, pub vm: Option<bool>, pub vpc_access_connector: Option<VpcAccessConnector>, pub zones: Option<Vec<String>>,
}
Expand description

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).

Fields§

§api_config: Option<ApiConfigHandler>

Serving configuration for Google Cloud Endpoints (https://cloud.google.com/endpoints).Only returned in GET requests if view=FULL is set.

§app_engine_apis: Option<bool>

Allows App Engine second generation runtimes to access the legacy bundled services.

§automatic_scaling: Option<AutomaticScaling>

Automatic scaling is based on request rate, response latencies, and other application metrics. Instances are dynamically created and destroyed as needed in order to handle traffic.

§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.

§beta_settings: Option<HashMap<String, String>>

Metadata settings that are supplied to this version to enable beta runtime features.

§build_env_variables: Option<HashMap<String, String>>

Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.

§create_time: Option<DateTime<Utc>>

Time that this version was created.@OutputOnly

§created_by: Option<String>

Email address of the user who created this version.@OutputOnly

§default_expiration: Option<Duration>

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.

§deployment: Option<Deployment>

Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set.

§disk_usage_bytes: Option<i64>

Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly

§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.

§entrypoint: Option<Entrypoint>

The entrypoint for the application.

§env: Option<String>

App Engine execution environment for this version.Defaults to standard.

§env_variables: Option<HashMap<String, String>>

Environment variables available to the application.Only returned in GET requests if view=FULL is set.

§error_handlers: Option<Vec<ErrorHandler>>

Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.

§flexible_runtime_settings: Option<FlexibleRuntimeSettings>

Settings for App Engine flexible runtimes.

§generated_customer_metadata: Option<HashMap<String, Value>>

Additional Google Generated Customer Metadata, this field won’t be provided by default and can be requested by setting the IncludeExtraData field in GetVersionRequest

§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.

§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.

§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-”.

§inbound_services: Option<Vec<String>>

Before an application can receive email or XMPP messages, the application must be configured to enable the service.

§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.

§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.

§liveness_check: Option<LivenessCheck>

Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instances

§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. Manually scaled versions are sometimes referred to as “backends”.

§name: Option<String>

Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly

§network: Option<Network>

Extra network settings. Only applicable in the App Engine flexible environment.

§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.

§readiness_check: Option<ReadinessCheck>

Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.

§resources: Option<Resources>

Machine resources for this version. Only applicable in the App Engine flexible environment.

§runtime: Option<String>

Desired runtime. Example: python27.

§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//config/appref

§runtime_channel: Option<String>

The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.

§runtime_main_executable_path: Option<String>

The path or name of the app’s main executable.

§service_account: Option<String>

The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.

§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.

§threadsafe: Option<bool>

Whether multiple requests can be dispatched to this version at once.

§version_url: Option<String>

Serving URL for this version. Example: “https://myversion-dot-myservice-dot-myapp.appspot.com”@OutputOnly

§vm: Option<bool>

Whether to deploy this version in a container on a virtual machine.

§vpc_access_connector: Option<VpcAccessConnector>

Enables VPC connectivity for standard apps.

§zones: Option<Vec<String>>

The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.

Trait Implementations§

source§

impl Clone for Version

source§

fn clone(&self) -> Version

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Version

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Version

source§

fn default() -> Version

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Version

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Version

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for Version

source§

impl ResponseResult for Version

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,