Class Version (1.2.1)

Version(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A Version resource is a specific set of source code and configuration files that are deployed into a service.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
name str
Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1. @OutputOnly
id str
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-".
automatic_scaling google.cloud.appengine_admin_v1.types.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. This field is a member of oneof_ scaling.
basic_scaling google.cloud.appengine_admin_v1.types.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. This field is a member of oneof_ scaling.
manual_scaling google.cloud.appengine_admin_v1.types.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". This field is a member of oneof_ scaling.
inbound_services Sequence[google.cloud.appengine_admin_v1.types.InboundServiceType]
Before an application can receive email or XMPP messages, the application must be configured to enable the service.
instance_class str
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 google.cloud.appengine_admin_v1.types.Network
Extra network settings. Only applicable in the App Engine flexible environment.
zones Sequence[str]
The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
resources google.cloud.appengine_admin_v1.types.Resources
Machine resources for this version. Only applicable in the App Engine flexible environment.
runtime str
Desired runtime. Example: python27.
runtime_channel str
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.
beta_settings Sequence[google.cloud.appengine_admin_v1.types.Version.BetaSettingsEntry]
Metadata settings that are supplied to this version to enable beta runtime features.
env str
App Engine execution environment for this version. Defaults to standard.
serving_status google.cloud.appengine_admin_v1.types.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 str
Email address of the user who created this version. @OutputOnly
create_time google.protobuf.timestamp_pb2.Timestamp
Time that this version was created. @OutputOnly
disk_usage_bytes int
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 str
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/
runtime_main_executable_path str
The path or name of the app's main executable.
service_account str
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 Sequence[google.cloud.appengine_admin_v1.types.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 Sequence[google.cloud.appengine_admin_v1.types.ErrorHandler]
Custom static error pages. Limited to 10KB per page. Only returned in GET requests if view=FULL is set.
libraries Sequence[google.cloud.appengine_admin_v1.types.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 google.cloud.appengine_admin_v1.types.ApiConfigHandler
Serving configuration for `Google Cloud Endpoints
env_variables Sequence[google.cloud.appengine_admin_v1.types.Version.EnvVariablesEntry]
Environment variables available to the application. Only returned in GET requests if view=FULL is set.
build_env_variables Sequence[google.cloud.appengine_admin_v1.types.Version.BuildEnvVariablesEntry]
Environment variables available to the build environment. Only returned in GET requests if view=FULL is set.
default_expiration google.protobuf.duration_pb2.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 google.cloud.appengine_admin_v1.types.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 google.cloud.appengine_admin_v1.types.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 google.cloud.appengine_admin_v1.types.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 str
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 google.cloud.appengine_admin_v1.types.Deployment
Code and application artifacts that make up this version. Only returned in GET requests if view=FULL is set.
version_url str
Serving URL for this version. Example: "https://myversion-dot-myservice-dot- myapp.appspot.com" @OutputOnly
endpoints_api_service google.cloud.appengine_admin_v1.types.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 google.cloud.appengine_admin_v1.types.Entrypoint
The entrypoint for the application.
vpc_access_connector google.cloud.appengine_admin_v1.types.VpcAccessConnector
Enables VPC connectivity for standard apps.

Classes

BetaSettingsEntry

BetaSettingsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

BuildEnvVariablesEntry

BuildEnvVariablesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

EnvVariablesEntry

EnvVariablesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.