#[non_exhaustive]pub struct Version {Show 38 fields
pub name: String,
pub id: String,
pub inbound_services: Vec<InboundServiceType>,
pub instance_class: String,
pub network: Option<Network>,
pub zones: Vec<String>,
pub resources: Option<Resources>,
pub runtime: String,
pub runtime_channel: String,
pub threadsafe: bool,
pub vm: bool,
pub app_engine_apis: bool,
pub beta_settings: HashMap<String, String>,
pub env: String,
pub serving_status: ServingStatus,
pub created_by: String,
pub create_time: Option<Timestamp>,
pub disk_usage_bytes: i64,
pub runtime_api_version: String,
pub runtime_main_executable_path: String,
pub service_account: String,
pub handlers: Vec<UrlMap>,
pub error_handlers: Vec<ErrorHandler>,
pub libraries: Vec<Library>,
pub api_config: Option<ApiConfigHandler>,
pub env_variables: HashMap<String, String>,
pub build_env_variables: HashMap<String, String>,
pub default_expiration: Option<Duration>,
pub health_check: Option<HealthCheck>,
pub readiness_check: Option<ReadinessCheck>,
pub liveness_check: Option<LivenessCheck>,
pub nobuild_files_regex: String,
pub deployment: Option<Deployment>,
pub version_url: String,
pub endpoints_api_service: Option<EndpointsApiService>,
pub entrypoint: Option<Entrypoint>,
pub vpc_access_connector: Option<VpcAccessConnector>,
pub scaling: Option<Scaling>,
/* private fields */
}
Expand description
A Version resource is a specific set of source code and configuration files that are deployed into a service.
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 Version resource in the API. Example:
apps/myapp/services/default/versions/v1
.
@OutputOnly
id: 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: Vec<InboundServiceType>
Before an application can receive email or XMPP messages, the application must be configured to enable the service.
instance_class: 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_1G
Defaults to F1
for AutomaticScaling and B1
for ManualScaling or
BasicScaling.
network: Option<Network>
Extra network settings. Only applicable in the App Engine flexible environment.
zones: Vec<String>
The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
resources: Option<Resources>
Machine resources for this version. Only applicable in the App Engine flexible environment.
runtime: String
Desired runtime. Example: python27
.
runtime_channel: String
The channel of the runtime to use. Only available for some
runtimes. Defaults to the default
channel.
threadsafe: bool
Whether multiple requests can be dispatched to this version at once.
vm: bool
Whether to deploy this version in a container on a virtual machine.
app_engine_apis: bool
Allows App Engine second generation runtimes to access the legacy bundled services.
beta_settings: HashMap<String, String>
Metadata settings that are supplied to this version to enable beta runtime features.
env: String
App Engine execution environment for this version.
Defaults to standard
.
serving_status: ServingStatus
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
.
created_by: String
Email address of the user who created this version.
@OutputOnly
create_time: Option<Timestamp>
Time that this version was created.
@OutputOnly
disk_usage_bytes: i64
Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.
@OutputOnly
runtime_api_version: 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/<language>/config/appref
runtime_main_executable_path: String
The path or name of the app’s main executable.
service_account: 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.
handlers: 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.
error_handlers: Vec<ErrorHandler>
Custom static error pages. Limited to 10KB per page.
Only returned in GET
requests if view=FULL
is set.
libraries: 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.
api_config: Option<ApiConfigHandler>
Serving configuration for Google Cloud Endpoints.
Only returned in GET
requests if view=FULL
is set.
env_variables: HashMap<String, String>
Environment variables available to the application.
Only returned in GET
requests if view=FULL
is set.
build_env_variables: HashMap<String, String>
Environment variables available to the build environment.
Only returned in GET
requests if view=FULL
is set.
default_expiration: Option<Duration>
Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler does not specify its own expiration time.
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.
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.
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
Only returned in GET
requests if view=FULL
is set.
nobuild_files_regex: 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.
deployment: Option<Deployment>
Code and application artifacts that make up this version.
Only returned in GET
requests if view=FULL
is set.
version_url: String
Serving URL for this version. Example:
https://myversion-dot-myservice-dot-myapp.appspot.com
@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.
vpc_access_connector: Option<VpcAccessConnector>
Enables VPC connectivity for standard apps.
scaling: Option<Scaling>
Controls how instances are created, scaled, and reaped.
Defaults to AutomaticScaling
.
Implementations§
Source§impl Version
impl Version
pub fn new() -> Self
Sourcepub fn set_inbound_services<T, V>(self, v: T) -> Self
pub fn set_inbound_services<T, V>(self, v: T) -> Self
Sets the value of inbound_services.
Sourcepub fn set_instance_class<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_class<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_class.
Sourcepub fn set_network<T>(self, v: T) -> Self
pub fn set_network<T>(self, v: T) -> Self
Sets the value of network.
Sourcepub fn set_or_clear_network<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_network<T>(self, v: Option<T>) -> Self
Sets or clears the value of network.
Sourcepub fn set_resources<T>(self, v: T) -> Self
pub fn set_resources<T>(self, v: T) -> Self
Sets the value of resources.
Sourcepub fn set_or_clear_resources<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_resources<T>(self, v: Option<T>) -> Self
Sets or clears the value of resources.
Sourcepub fn set_runtime<T: Into<String>>(self, v: T) -> Self
pub fn set_runtime<T: Into<String>>(self, v: T) -> Self
Sets the value of runtime.
Sourcepub fn set_runtime_channel<T: Into<String>>(self, v: T) -> Self
pub fn set_runtime_channel<T: Into<String>>(self, v: T) -> Self
Sets the value of runtime_channel.
Sourcepub fn set_threadsafe<T: Into<bool>>(self, v: T) -> Self
pub fn set_threadsafe<T: Into<bool>>(self, v: T) -> Self
Sets the value of threadsafe.
Sourcepub fn set_app_engine_apis<T: Into<bool>>(self, v: T) -> Self
pub fn set_app_engine_apis<T: Into<bool>>(self, v: T) -> Self
Sets the value of app_engine_apis.
Sourcepub fn set_beta_settings<T, K, V>(self, v: T) -> Self
pub fn set_beta_settings<T, K, V>(self, v: T) -> Self
Sets the value of beta_settings.
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_created_by<T: Into<String>>(self, v: T) -> Self
pub fn set_created_by<T: Into<String>>(self, v: T) -> Self
Sets the value of created_by.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_disk_usage_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_disk_usage_bytes<T: Into<i64>>(self, v: T) -> Self
Sets the value of disk_usage_bytes.
Sourcepub fn set_runtime_api_version<T: Into<String>>(self, v: T) -> Self
pub fn set_runtime_api_version<T: Into<String>>(self, v: T) -> Self
Sets the value of runtime_api_version.
Sourcepub fn set_runtime_main_executable_path<T: Into<String>>(self, v: T) -> Self
pub fn set_runtime_main_executable_path<T: Into<String>>(self, v: T) -> Self
Sets the value of runtime_main_executable_path.
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_handlers<T, V>(self, v: T) -> Self
pub fn set_handlers<T, V>(self, v: T) -> Self
Sets the value of handlers.
Sourcepub fn set_error_handlers<T, V>(self, v: T) -> Self
pub fn set_error_handlers<T, V>(self, v: T) -> Self
Sets the value of error_handlers.
Sourcepub fn set_libraries<T, V>(self, v: T) -> Self
pub fn set_libraries<T, V>(self, v: T) -> Self
Sets the value of libraries.
Sourcepub fn set_api_config<T>(self, v: T) -> Selfwhere
T: Into<ApiConfigHandler>,
pub fn set_api_config<T>(self, v: T) -> Selfwhere
T: Into<ApiConfigHandler>,
Sets the value of api_config.
Sourcepub fn set_or_clear_api_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ApiConfigHandler>,
pub fn set_or_clear_api_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ApiConfigHandler>,
Sets or clears the value of api_config.
Sourcepub fn set_env_variables<T, K, V>(self, v: T) -> Self
pub fn set_env_variables<T, K, V>(self, v: T) -> Self
Sets the value of env_variables.
Sourcepub fn set_build_env_variables<T, K, V>(self, v: T) -> Self
pub fn set_build_env_variables<T, K, V>(self, v: T) -> Self
Sets the value of build_env_variables.
Sourcepub fn set_default_expiration<T>(self, v: T) -> Self
pub fn set_default_expiration<T>(self, v: T) -> Self
Sets the value of default_expiration.
Sourcepub fn set_or_clear_default_expiration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_default_expiration<T>(self, v: Option<T>) -> Self
Sets or clears the value of default_expiration.
Sourcepub fn set_health_check<T>(self, v: T) -> Selfwhere
T: Into<HealthCheck>,
pub fn set_health_check<T>(self, v: T) -> Selfwhere
T: Into<HealthCheck>,
Sets the value of health_check.
Sourcepub fn set_or_clear_health_check<T>(self, v: Option<T>) -> Selfwhere
T: Into<HealthCheck>,
pub fn set_or_clear_health_check<T>(self, v: Option<T>) -> Selfwhere
T: Into<HealthCheck>,
Sets or clears the value of health_check.
Sourcepub fn set_readiness_check<T>(self, v: T) -> Selfwhere
T: Into<ReadinessCheck>,
pub fn set_readiness_check<T>(self, v: T) -> Selfwhere
T: Into<ReadinessCheck>,
Sets the value of readiness_check.
Sourcepub fn set_or_clear_readiness_check<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReadinessCheck>,
pub fn set_or_clear_readiness_check<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReadinessCheck>,
Sets or clears the value of readiness_check.
Sourcepub fn set_liveness_check<T>(self, v: T) -> Selfwhere
T: Into<LivenessCheck>,
pub fn set_liveness_check<T>(self, v: T) -> Selfwhere
T: Into<LivenessCheck>,
Sets the value of liveness_check.
Sourcepub fn set_or_clear_liveness_check<T>(self, v: Option<T>) -> Selfwhere
T: Into<LivenessCheck>,
pub fn set_or_clear_liveness_check<T>(self, v: Option<T>) -> Selfwhere
T: Into<LivenessCheck>,
Sets or clears the value of liveness_check.
Sourcepub fn set_nobuild_files_regex<T: Into<String>>(self, v: T) -> Self
pub fn set_nobuild_files_regex<T: Into<String>>(self, v: T) -> Self
Sets the value of nobuild_files_regex.
Sourcepub fn set_deployment<T>(self, v: T) -> Selfwhere
T: Into<Deployment>,
pub fn set_deployment<T>(self, v: T) -> Selfwhere
T: Into<Deployment>,
Sets the value of deployment.
Sourcepub fn set_or_clear_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<Deployment>,
pub fn set_or_clear_deployment<T>(self, v: Option<T>) -> Selfwhere
T: Into<Deployment>,
Sets or clears the value of deployment.
Sourcepub fn set_version_url<T: Into<String>>(self, v: T) -> Self
pub fn set_version_url<T: Into<String>>(self, v: T) -> Self
Sets the value of version_url.
Sourcepub fn set_endpoints_api_service<T>(self, v: T) -> Selfwhere
T: Into<EndpointsApiService>,
pub fn set_endpoints_api_service<T>(self, v: T) -> Selfwhere
T: Into<EndpointsApiService>,
Sets the value of endpoints_api_service.
Sourcepub fn set_or_clear_endpoints_api_service<T>(self, v: Option<T>) -> Selfwhere
T: Into<EndpointsApiService>,
pub fn set_or_clear_endpoints_api_service<T>(self, v: Option<T>) -> Selfwhere
T: Into<EndpointsApiService>,
Sets or clears the value of endpoints_api_service.
Sourcepub fn set_entrypoint<T>(self, v: T) -> Selfwhere
T: Into<Entrypoint>,
pub fn set_entrypoint<T>(self, v: T) -> Selfwhere
T: Into<Entrypoint>,
Sets the value of entrypoint.
Sourcepub fn set_or_clear_entrypoint<T>(self, v: Option<T>) -> Selfwhere
T: Into<Entrypoint>,
pub fn set_or_clear_entrypoint<T>(self, v: Option<T>) -> Selfwhere
T: Into<Entrypoint>,
Sets or clears the value of entrypoint.
Sourcepub fn set_vpc_access_connector<T>(self, v: T) -> Selfwhere
T: Into<VpcAccessConnector>,
pub fn set_vpc_access_connector<T>(self, v: T) -> Selfwhere
T: Into<VpcAccessConnector>,
Sets the value of vpc_access_connector.
Sourcepub fn set_or_clear_vpc_access_connector<T>(self, v: Option<T>) -> Selfwhere
T: Into<VpcAccessConnector>,
pub fn set_or_clear_vpc_access_connector<T>(self, v: Option<T>) -> Selfwhere
T: Into<VpcAccessConnector>,
Sets or clears the value of vpc_access_connector.
Sourcepub fn set_scaling<T: Into<Option<Scaling>>>(self, v: T) -> Self
pub fn set_scaling<T: Into<Option<Scaling>>>(self, v: T) -> Self
Sets the value of scaling.
Note that all the setters affecting scaling
are mutually
exclusive.
Sourcepub fn automatic_scaling(&self) -> Option<&Box<AutomaticScaling>>
pub fn automatic_scaling(&self) -> Option<&Box<AutomaticScaling>>
The value of scaling
if it holds a AutomaticScaling
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_automatic_scaling<T: Into<Box<AutomaticScaling>>>(self, v: T) -> Self
pub fn set_automatic_scaling<T: Into<Box<AutomaticScaling>>>(self, v: T) -> Self
Sets the value of scaling
to hold a AutomaticScaling
.
Note that all the setters affecting scaling
are
mutually exclusive.
Sourcepub fn basic_scaling(&self) -> Option<&Box<BasicScaling>>
pub fn basic_scaling(&self) -> Option<&Box<BasicScaling>>
The value of scaling
if it holds a BasicScaling
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_basic_scaling<T: Into<Box<BasicScaling>>>(self, v: T) -> Self
pub fn set_basic_scaling<T: Into<Box<BasicScaling>>>(self, v: T) -> Self
Sets the value of scaling
to hold a BasicScaling
.
Note that all the setters affecting scaling
are
mutually exclusive.
Sourcepub fn manual_scaling(&self) -> Option<&Box<ManualScaling>>
pub fn manual_scaling(&self) -> Option<&Box<ManualScaling>>
The value of scaling
if it holds a ManualScaling
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_manual_scaling<T: Into<Box<ManualScaling>>>(self, v: T) -> Self
pub fn set_manual_scaling<T: Into<Box<ManualScaling>>>(self, v: T) -> Self
Sets the value of scaling
to hold a ManualScaling
.
Note that all the setters affecting scaling
are
mutually exclusive.