Reference documentation and code samples for the App Engine Admin V1 API class Google::Cloud::AppEngine::V1::Version.
A Version resource is a specific set of source code and configuration files that are deployed into a service.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#api_config
def api_config() -> ::Google::Cloud::AppEngine::V1::ApiConfigHandler
-
(::Google::Cloud::AppEngine::V1::ApiConfigHandler) — Serving configuration for
Google Cloud Endpoints.
Only returned in
GET
requests ifview=FULL
is set.
#api_config=
def api_config=(value) -> ::Google::Cloud::AppEngine::V1::ApiConfigHandler
-
value (::Google::Cloud::AppEngine::V1::ApiConfigHandler) — Serving configuration for
Google Cloud Endpoints.
Only returned in
GET
requests ifview=FULL
is set.
-
(::Google::Cloud::AppEngine::V1::ApiConfigHandler) — Serving configuration for
Google Cloud Endpoints.
Only returned in
GET
requests ifview=FULL
is set.
#automatic_scaling
def automatic_scaling() -> ::Google::Cloud::AppEngine::V1::AutomaticScaling
- (::Google::Cloud::AppEngine::V1::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.
#automatic_scaling=
def automatic_scaling=(value) -> ::Google::Cloud::AppEngine::V1::AutomaticScaling
- value (::Google::Cloud::AppEngine::V1::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.
- (::Google::Cloud::AppEngine::V1::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
def basic_scaling() -> ::Google::Cloud::AppEngine::V1::BasicScaling
- (::Google::Cloud::AppEngine::V1::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.
#basic_scaling=
def basic_scaling=(value) -> ::Google::Cloud::AppEngine::V1::BasicScaling
- value (::Google::Cloud::AppEngine::V1::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.
- (::Google::Cloud::AppEngine::V1::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
def beta_settings() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Metadata settings that are supplied to this version to enable beta runtime features.
#beta_settings=
def beta_settings=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Metadata settings that are supplied to this version to enable beta runtime features.
- (::Google::Protobuf::Map{::String => ::String}) — Metadata settings that are supplied to this version to enable beta runtime features.
#build_env_variables
def build_env_variables() -> ::Google::Protobuf::Map{::String => ::String}
-
(::Google::Protobuf::Map{::String => ::String}) — Environment variables available to the build environment.
Only returned in
GET
requests ifview=FULL
is set.
#build_env_variables=
def build_env_variables=(value) -> ::Google::Protobuf::Map{::String => ::String}
-
value (::Google::Protobuf::Map{::String => ::String}) — Environment variables available to the build environment.
Only returned in
GET
requests ifview=FULL
is set.
-
(::Google::Protobuf::Map{::String => ::String}) — Environment variables available to the build environment.
Only returned in
GET
requests ifview=FULL
is set.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Time that this version was created.
#create_time=
def create_time=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — Time that this version was created.
- (::Google::Protobuf::Timestamp) — Time that this version was created.
#created_by
def created_by() -> ::String
- (::String) — Email address of the user who created this version.
#created_by=
def created_by=(value) -> ::String
- value (::String) — Email address of the user who created this version.
- (::String) — Email address of the user who created this version.
#default_expiration
def default_expiration() -> ::Google::Protobuf::Duration
-
(::Google::Protobuf::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 ifview=FULL
is set.
#default_expiration=
def default_expiration=(value) -> ::Google::Protobuf::Duration
-
value (::Google::Protobuf::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 ifview=FULL
is set.
-
(::Google::Protobuf::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 ifview=FULL
is set.
#deployment
def deployment() -> ::Google::Cloud::AppEngine::V1::Deployment
-
(::Google::Cloud::AppEngine::V1::Deployment) — Code and application artifacts that make up this version.
Only returned in
GET
requests ifview=FULL
is set.
#deployment=
def deployment=(value) -> ::Google::Cloud::AppEngine::V1::Deployment
-
value (::Google::Cloud::AppEngine::V1::Deployment) — Code and application artifacts that make up this version.
Only returned in
GET
requests ifview=FULL
is set.
-
(::Google::Cloud::AppEngine::V1::Deployment) — Code and application artifacts that make up this version.
Only returned in
GET
requests ifview=FULL
is set.
#disk_usage_bytes
def disk_usage_bytes() -> ::Integer
- (::Integer) — Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.
#disk_usage_bytes=
def disk_usage_bytes=(value) -> ::Integer
- value (::Integer) — Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.
- (::Integer) — Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.
#endpoints_api_service
def endpoints_api_service() -> ::Google::Cloud::AppEngine::V1::EndpointsApiService
-
(::Google::Cloud::AppEngine::V1::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.
#endpoints_api_service=
def endpoints_api_service=(value) -> ::Google::Cloud::AppEngine::V1::EndpointsApiService
-
value (::Google::Cloud::AppEngine::V1::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.
-
(::Google::Cloud::AppEngine::V1::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
def entrypoint() -> ::Google::Cloud::AppEngine::V1::Entrypoint
- (::Google::Cloud::AppEngine::V1::Entrypoint) — The entrypoint for the application.
#entrypoint=
def entrypoint=(value) -> ::Google::Cloud::AppEngine::V1::Entrypoint
- value (::Google::Cloud::AppEngine::V1::Entrypoint) — The entrypoint for the application.
- (::Google::Cloud::AppEngine::V1::Entrypoint) — The entrypoint for the application.
#env
def env() -> ::String
-
(::String) — App Engine execution environment for this version.
Defaults to
standard
.
#env=
def env=(value) -> ::String
-
value (::String) — App Engine execution environment for this version.
Defaults to
standard
.
-
(::String) — App Engine execution environment for this version.
Defaults to
standard
.
#env_variables
def env_variables() -> ::Google::Protobuf::Map{::String => ::String}
-
(::Google::Protobuf::Map{::String => ::String}) — Environment variables available to the application.
Only returned in
GET
requests ifview=FULL
is set.
#env_variables=
def env_variables=(value) -> ::Google::Protobuf::Map{::String => ::String}
-
value (::Google::Protobuf::Map{::String => ::String}) — Environment variables available to the application.
Only returned in
GET
requests ifview=FULL
is set.
-
(::Google::Protobuf::Map{::String => ::String}) — Environment variables available to the application.
Only returned in
GET
requests ifview=FULL
is set.
#error_handlers
def error_handlers() -> ::Array<::Google::Cloud::AppEngine::V1::ErrorHandler>
-
(::Array<::Google::Cloud::AppEngine::V1::ErrorHandler>) — Custom static error pages. Limited to 10KB per page.
Only returned in
GET
requests ifview=FULL
is set.
#error_handlers=
def error_handlers=(value) -> ::Array<::Google::Cloud::AppEngine::V1::ErrorHandler>
-
value (::Array<::Google::Cloud::AppEngine::V1::ErrorHandler>) — Custom static error pages. Limited to 10KB per page.
Only returned in
GET
requests ifview=FULL
is set.
-
(::Array<::Google::Cloud::AppEngine::V1::ErrorHandler>) — Custom static error pages. Limited to 10KB per page.
Only returned in
GET
requests ifview=FULL
is set.
#handlers
def handlers() -> ::Array<::Google::Cloud::AppEngine::V1::UrlMap>
-
(::Array<::Google::Cloud::AppEngine::V1::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 ifview=FULL
is set.
#handlers=
def handlers=(value) -> ::Array<::Google::Cloud::AppEngine::V1::UrlMap>
-
value (::Array<::Google::Cloud::AppEngine::V1::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 ifview=FULL
is set.
-
(::Array<::Google::Cloud::AppEngine::V1::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 ifview=FULL
is set.
#health_check
def health_check() -> ::Google::Cloud::AppEngine::V1::HealthCheck
-
(::Google::Cloud::AppEngine::V1::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 ifview=FULL
is set.
#health_check=
def health_check=(value) -> ::Google::Cloud::AppEngine::V1::HealthCheck
-
value (::Google::Cloud::AppEngine::V1::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 ifview=FULL
is set.
-
(::Google::Cloud::AppEngine::V1::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 ifview=FULL
is set.
#id
def id() -> ::String
-
(::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-".
#id=
def id=(value) -> ::String
-
value (::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-".
-
(::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
def inbound_services() -> ::Array<::Google::Cloud::AppEngine::V1::InboundServiceType>
- (::Array<::Google::Cloud::AppEngine::V1::InboundServiceType>) — Before an application can receive email or XMPP messages, the application must be configured to enable the service.
#inbound_services=
def inbound_services=(value) -> ::Array<::Google::Cloud::AppEngine::V1::InboundServiceType>
- value (::Array<::Google::Cloud::AppEngine::V1::InboundServiceType>) — Before an application can receive email or XMPP messages, the application must be configured to enable the service.
- (::Array<::Google::Cloud::AppEngine::V1::InboundServiceType>) — Before an application can receive email or XMPP messages, the application must be configured to enable the service.
#instance_class
def instance_class() -> ::String
-
(::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 andB1
for ManualScaling or BasicScaling. - AutomaticScaling:
#instance_class=
def instance_class=(value) -> ::String
-
value (::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 andB1
for ManualScaling or BasicScaling. - AutomaticScaling:
-
(::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 andB1
for ManualScaling or BasicScaling. - AutomaticScaling:
#libraries
def libraries() -> ::Array<::Google::Cloud::AppEngine::V1::Library>
-
(::Array<::Google::Cloud::AppEngine::V1::Library>) — Configuration for third-party Python runtime libraries that are required
by the application.
Only returned in
GET
requests ifview=FULL
is set.
#libraries=
def libraries=(value) -> ::Array<::Google::Cloud::AppEngine::V1::Library>
-
value (::Array<::Google::Cloud::AppEngine::V1::Library>) — Configuration for third-party Python runtime libraries that are required
by the application.
Only returned in
GET
requests ifview=FULL
is set.
-
(::Array<::Google::Cloud::AppEngine::V1::Library>) — Configuration for third-party Python runtime libraries that are required
by the application.
Only returned in
GET
requests ifview=FULL
is set.
#liveness_check
def liveness_check() -> ::Google::Cloud::AppEngine::V1::LivenessCheck
-
(::Google::Cloud::AppEngine::V1::LivenessCheck) — Configures liveness health checking for instances.
Unhealthy instances are stopped and replaced with new instances
Only returned in
GET
requests ifview=FULL
is set.
#liveness_check=
def liveness_check=(value) -> ::Google::Cloud::AppEngine::V1::LivenessCheck
-
value (::Google::Cloud::AppEngine::V1::LivenessCheck) — Configures liveness health checking for instances.
Unhealthy instances are stopped and replaced with new instances
Only returned in
GET
requests ifview=FULL
is set.
-
(::Google::Cloud::AppEngine::V1::LivenessCheck) — Configures liveness health checking for instances.
Unhealthy instances are stopped and replaced with new instances
Only returned in
GET
requests ifview=FULL
is set.
#manual_scaling
def manual_scaling() -> ::Google::Cloud::AppEngine::V1::ManualScaling
- (::Google::Cloud::AppEngine::V1::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".
#manual_scaling=
def manual_scaling=(value) -> ::Google::Cloud::AppEngine::V1::ManualScaling
- value (::Google::Cloud::AppEngine::V1::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".
- (::Google::Cloud::AppEngine::V1::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
def name() -> ::String
-
(::String) — Full path to the Version resource in the API. Example:
apps/myapp/services/default/versions/v1
.
#name=
def name=(value) -> ::String
-
value (::String) — Full path to the Version resource in the API. Example:
apps/myapp/services/default/versions/v1
.
-
(::String) — Full path to the Version resource in the API. Example:
apps/myapp/services/default/versions/v1
.
#network
def network() -> ::Google::Cloud::AppEngine::V1::Network
- (::Google::Cloud::AppEngine::V1::Network) — Extra network settings. Only applicable in the App Engine flexible environment.
#network=
def network=(value) -> ::Google::Cloud::AppEngine::V1::Network
- value (::Google::Cloud::AppEngine::V1::Network) — Extra network settings. Only applicable in the App Engine flexible environment.
- (::Google::Cloud::AppEngine::V1::Network) — Extra network settings. Only applicable in the App Engine flexible environment.
#nobuild_files_regex
def nobuild_files_regex() -> ::String
-
(::String) — Files that match this pattern will not be built into this version.
Only applicable for Go runtimes.
Only returned in
GET
requests ifview=FULL
is set.
#nobuild_files_regex=
def nobuild_files_regex=(value) -> ::String
-
value (::String) — Files that match this pattern will not be built into this version.
Only applicable for Go runtimes.
Only returned in
GET
requests ifview=FULL
is set.
-
(::String) — Files that match this pattern will not be built into this version.
Only applicable for Go runtimes.
Only returned in
GET
requests ifview=FULL
is set.
#readiness_check
def readiness_check() -> ::Google::Cloud::AppEngine::V1::ReadinessCheck
-
(::Google::Cloud::AppEngine::V1::ReadinessCheck) — Configures readiness health checking for instances.
Unhealthy instances are not put into the backend traffic rotation.
Only returned in
GET
requests ifview=FULL
is set.
#readiness_check=
def readiness_check=(value) -> ::Google::Cloud::AppEngine::V1::ReadinessCheck
-
value (::Google::Cloud::AppEngine::V1::ReadinessCheck) — Configures readiness health checking for instances.
Unhealthy instances are not put into the backend traffic rotation.
Only returned in
GET
requests ifview=FULL
is set.
-
(::Google::Cloud::AppEngine::V1::ReadinessCheck) — Configures readiness health checking for instances.
Unhealthy instances are not put into the backend traffic rotation.
Only returned in
GET
requests ifview=FULL
is set.
#resources
def resources() -> ::Google::Cloud::AppEngine::V1::Resources
- (::Google::Cloud::AppEngine::V1::Resources) — Machine resources for this version. Only applicable in the App Engine flexible environment.
#resources=
def resources=(value) -> ::Google::Cloud::AppEngine::V1::Resources
- value (::Google::Cloud::AppEngine::V1::Resources) — Machine resources for this version. Only applicable in the App Engine flexible environment.
- (::Google::Cloud::AppEngine::V1::Resources) — Machine resources for this version. Only applicable in the App Engine flexible environment.
#runtime
def runtime() -> ::String
-
(::String) — Desired runtime. Example:
python27
.
#runtime=
def runtime=(value) -> ::String
-
value (::String) — Desired runtime. Example:
python27
.
-
(::String) — Desired runtime. Example:
python27
.
#runtime_api_version
def runtime_api_version() -> ::String
- (::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/
#runtime_api_version=
def runtime_api_version=(value) -> ::String
- value (::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/
- (::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/
#runtime_channel
def runtime_channel() -> ::String
-
(::String) — The channel of the runtime to use. Only available for some
runtimes. Defaults to the
default
channel.
#runtime_channel=
def runtime_channel=(value) -> ::String
-
value (::String) — The channel of the runtime to use. Only available for some
runtimes. Defaults to the
default
channel.
-
(::String) — The channel of the runtime to use. Only available for some
runtimes. Defaults to the
default
channel.
#runtime_main_executable_path
def runtime_main_executable_path() -> ::String
- (::String) — The path or name of the app's main executable.
#runtime_main_executable_path=
def runtime_main_executable_path=(value) -> ::String
- value (::String) — The path or name of the app's main executable.
- (::String) — The path or name of the app's main executable.
#service_account
def service_account() -> ::String
- (::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.
#service_account=
def service_account=(value) -> ::String
- value (::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.
- (::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
def serving_status() -> ::Google::Cloud::AppEngine::V1::ServingStatus
-
(::Google::Cloud::AppEngine::V1::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 toSERVING
.
#serving_status=
def serving_status=(value) -> ::Google::Cloud::AppEngine::V1::ServingStatus
-
value (::Google::Cloud::AppEngine::V1::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 toSERVING
.
-
(::Google::Cloud::AppEngine::V1::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 toSERVING
.
#threadsafe
def threadsafe() -> ::Boolean
- (::Boolean) — Whether multiple requests can be dispatched to this version at once.
#threadsafe=
def threadsafe=(value) -> ::Boolean
- value (::Boolean) — Whether multiple requests can be dispatched to this version at once.
- (::Boolean) — Whether multiple requests can be dispatched to this version at once.
#version_url
def version_url() -> ::String
- (::String) — Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"
#version_url=
def version_url=(value) -> ::String
- value (::String) — Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"
- (::String) — Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"
#vm
def vm() -> ::Boolean
- (::Boolean) — Whether to deploy this version in a container on a virtual machine.
#vm=
def vm=(value) -> ::Boolean
- value (::Boolean) — Whether to deploy this version in a container on a virtual machine.
- (::Boolean) — Whether to deploy this version in a container on a virtual machine.
#vpc_access_connector
def vpc_access_connector() -> ::Google::Cloud::AppEngine::V1::VpcAccessConnector
- (::Google::Cloud::AppEngine::V1::VpcAccessConnector) — Enables VPC connectivity for standard apps.
#vpc_access_connector=
def vpc_access_connector=(value) -> ::Google::Cloud::AppEngine::V1::VpcAccessConnector
- value (::Google::Cloud::AppEngine::V1::VpcAccessConnector) — Enables VPC connectivity for standard apps.
- (::Google::Cloud::AppEngine::V1::VpcAccessConnector) — Enables VPC connectivity for standard apps.
#zones
def zones() -> ::Array<::String>
- (::Array<::String>) — The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
#zones=
def zones=(value) -> ::Array<::String>
- value (::Array<::String>) — The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
- (::Array<::String>) — The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.