1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="appengine_v1beta4.html">App Engine Admin API</a> . <a href="appengine_v1beta4.apps.html">apps</a> . <a href="appengine_v1beta4.apps.modules.html">modules</a> . <a href="appengine_v1beta4.apps.modules.versions.html">versions</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="appengine_v1beta4.apps.modules.versions.instances.html">instances()</a></code> 79</p> 80<p class="firstline">Returns the instances Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="#close">close()</a></code></p> 84<p class="firstline">Close httplib2 connections.</p> 85<p class="toc_element"> 86 <code><a href="#create">create(appsId, modulesId, body=None, x__xgafv=None)</a></code></p> 87<p class="firstline">Deploys code and resource files to a new version.</p> 88<p class="toc_element"> 89 <code><a href="#delete">delete(appsId, modulesId, versionsId, x__xgafv=None)</a></code></p> 90<p class="firstline">Deletes an existing version.</p> 91<p class="toc_element"> 92 <code><a href="#get">get(appsId, modulesId, versionsId, view=None, x__xgafv=None)</a></code></p> 93<p class="firstline">Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.</p> 94<p class="toc_element"> 95 <code><a href="#list">list(appsId, modulesId, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p> 96<p class="firstline">Lists the versions of a module.</p> 97<p class="toc_element"> 98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 99<p class="firstline">Retrieves the next page of results.</p> 100<p class="toc_element"> 101 <code><a href="#patch">patch(appsId, modulesId, versionsId, body=None, mask=None, x__xgafv=None)</a></code></p> 102<p class="firstline">Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:</p> 103<h3>Method Details</h3> 104<div class="method"> 105 <code class="details" id="close">close()</code> 106 <pre>Close httplib2 connections.</pre> 107</div> 108 109<div class="method"> 110 <code class="details" id="create">create(appsId, modulesId, body=None, x__xgafv=None)</code> 111 <pre>Deploys code and resource files to a new version. 112 113Args: 114 appsId: string, Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default. (required) 115 modulesId: string, Part of `name`. See documentation of `appsId`. (required) 116 body: object, The request body. 117 The object takes the form of: 118 119{ # A Version resource is a specific set of source code and configuration files that are deployed into a module. 120 "apiConfig": { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set. 121 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect. 122 "login": "A String", # Level of login required to access this resource. Defaults to optional. 123 "script": "A String", # Path to the script from the application root directory. 124 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL. 125 "url": "A String", # URL to serve the endpoint at. 126 }, 127 "automaticScaling": { # Automatic scaling is based on request rate, response latencies, and other application metrics. # Automatic scaling is based on request rate, response latencies, and other application metrics. 128 "coolDownPeriod": "A String", # The time period that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment. 129 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage. 130 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated. 131 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1. 132 }, 133 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage. 134 "targetReadBytesPerSec": 42, # Target bytes read per second. 135 "targetReadOpsPerSec": 42, # Target ops read per second. 136 "targetWriteBytesPerSec": 42, # Target bytes written per second. 137 "targetWriteOpsPerSec": 42, # Target ops written per second. 138 }, 139 "maxConcurrentRequests": 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value. 140 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version. 141 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. 142 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests. 143 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module. 144 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. 145 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version. 146 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage. 147 "targetReceivedBytesPerSec": 42, # Target bytes received per second. 148 "targetReceivedPacketsPerSec": 42, # Target packets received per second. 149 "targetSentBytesPerSec": 42, # Target bytes sent per second. 150 "targetSentPacketsPerSec": 42, # Target packets sent per second. 151 }, 152 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization. 153 "targetConcurrentRequests": 42, # Target number of concurrent requests. 154 "targetRequestCountPerSec": 42, # Target requests per second. 155 }, 156 }, 157 "basicScaling": { # A module 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. # A module 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. 158 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down. 159 "maxInstances": 42, # Maximum number of instances to create for this version. 160 }, 161 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features. 162 "a_key": "A String", 163 }, 164 "creationTime": "A String", # Time that this version was created.@OutputOnly 165 "defaultExpiration": "A 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. 166 "deployer": "A String", # Email address of the user who created this version.@OutputOnly 167 "deployment": { # Code and application artifacts used to deploy a version to App Engine. # Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set. 168 "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment. 169 "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" 170 }, 171 "files": { # Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call. 172 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately. 173 "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage. 174 "sha1Sum": "A String", # The SHA1 hash of the file, in hex. 175 "sourceUrl": "A String", # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'. 176 }, 177 }, 178 "sourceReferences": [ # Origin of the source code for this deployment. There can be more than one source reference per version if source code is distributed among multiple repositories. 179 { # Reference to a particular snapshot of the source tree used to build and deploy the application. 180 "repository": "A String", # URI string identifying the repository. Example: "https://source.developers.google.com/p/app-123/r/default" 181 "revisionId": "A String", # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b" 182 }, 183 ], 184 }, 185 "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments..The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # 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. 186 "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"By default, the Endpoints service configuration id is fixed and config_id must be specified. To keep the Endpoints service configuration id updated with each rollout, specify RolloutStrategy.MANAGED and omit config_id. 187 "disableTraceSampling": True or False, # Enable or disable trace sampling. By default, this is set to false for enabled. 188 "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog" 189 "rolloutStrategy": "A String", # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted. 190 }, 191 "env": "A String", # App Engine execution environment to use for this version.Defaults to 1. 192 "envVariables": { # Environment variables made available to the application.Only returned in GET requests if view=FULL is set. 193 "a_key": "A String", 194 }, 195 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set. 196 { # Custom static error page to be served when an error occurs. 197 "errorCode": "A String", # Error condition this handler applies to. 198 "mimeType": "A String", # MIME type of file. Defaults to text/html. 199 "staticFile": "A String", # Static file content to be served for this error. 200 }, 201 ], 202 "handlers": [ # 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. 203 { # URL pattern and description of how the URL should be handled. App Engine can handle URLs by executing application code, or by serving static files uploaded with the version, such as images, CSS, or JavaScript. 204 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests. 205 "scriptPath": "A String", # Path to the script from the application root directory. 206 }, 207 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect. 208 "login": "A String", # Level of login required to access this resource. 209 "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302. 210 "script": { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern. 211 "scriptPath": "A String", # Path to the script from the application root directory. 212 }, 213 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL. 214 "staticDirectory": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static directory handlers make it easy to serve the entire contents of a directory as static files. # Serves the entire contents of a directory as static files.This attribute is deprecated. You can mimic the behavior of static directories using static files. 215 "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static directory handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas. 216 "directory": "A String", # Path to the directory containing the static files from the application root directory. Everything after the end of the matched URL pattern is appended to static_dir to form the full path to the requested file. 217 "expiration": "A String", # Time a static file served by this handler should be cached. 218 "httpHeaders": { # HTTP headers to use for all responses from these URLs. 219 "a_key": "A String", 220 }, 221 "mimeType": "A String", # MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are direved from each file's filename extension. 222 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist. 223 }, 224 "staticFiles": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. # Returns the contents of a file, such as an image, as the response. 225 "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas. 226 "expiration": "A String", # Time a static file served by this handler should be cached. 227 "httpHeaders": { # HTTP headers to use for all responses from these URLs. 228 "a_key": "A String", 229 }, 230 "mimeType": "A String", # MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension. 231 "path": "A String", # Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern. 232 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist. 233 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler. 234 }, 235 "urlRegex": "A String", # A URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path. 236 }, 237 ], 238 "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set. 239 "checkInterval": "A String", # Interval between health checks. 240 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance. 241 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic. 242 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com" 243 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted. 244 "timeout": "A String", # Time before the health check is considered failed. 245 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic. 246 }, 247 "id": "A String", # Relative name of the version within the module. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-". 248 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service. 249 "A String", 250 ], 251 "instanceClass": "A String", # Instance class that is used to run this version. Valid values are: 252 # AutomaticScaling: F1, F2, F4, F4_1G 253 # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling. 254 "libraries": [ # Configuration for third-party Python runtime libraries required by the application.Only returned in GET requests if view=FULL is set. 255 { # Third-party Python runtime library that is required by the application. 256 "name": "A String", # Name of the library. Example: "django". 257 "version": "A String", # Version of the library to select, or "latest". 258 }, 259 ], 260 "manualScaling": { # A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. 261 "instances": 42, # Number of instances to assign to the module at the start. This number can later be altered by using the Modules API (https://cloud.google.com/appengine/docs/python/modules/functions) set_num_instances() function. 262 }, 263 "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/modules/default/versions/v1.@OutputOnly 264 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes. 265 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container. 266 "A String", 267 ], 268 "instanceTag": "A String", # Tag to apply to the VM instance during creation. 269 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default. 270 }, 271 "nobuildFilesRegex": "A 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. 272 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes. 273 "cpu": 3.14, # Number of CPU cores needed. 274 "diskGb": 3.14, # Disk size (GB) needed. 275 "memoryGb": 3.14, # Memory (GB) needed. 276 "volumes": [ # User specified volumes. 277 { # Volumes mounted within the app container. Only applicable for VM runtimes. 278 "name": "A String", # Unique name for the volume. 279 "sizeGb": 3.14, # Volume size in gigabytes. 280 "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'. 281 }, 282 ], 283 }, 284 "runtime": "A String", # Desired runtime. Example: python27. 285 "runtimeApiVersion": "A 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 286 "runtimeMainExecutablePath": "A String", # The path or name of the app's main executable. 287 "servingStatus": "A 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. 288 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once. 289 "vm": True or False, # Whether to deploy this version in a container on a virtual machine. 290} 291 292 x__xgafv: string, V1 error format. 293 Allowed values 294 1 - v1 error format 295 2 - v2 error format 296 297Returns: 298 An object of the form: 299 300 { # This resource represents a long-running operation that is the result of a network API call. 301 "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available. 302 "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be: # The error result of the operation in case of failure or cancellation. 303 # Simple to use and understand for most users 304 # Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include: 305 # Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors. 306 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting. 307 # Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response. 308 # Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message. 309 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons. 310 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 311 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 312 { 313 "a_key": "", # Properties of the object. Contains field @type with type URL. 314 }, 315 ], 316 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 317 }, 318 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 319 "a_key": "", # Properties of the object. Contains field @type with type URL. 320 }, 321 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should have the format of operations/some/unique/name. 322 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse. 323 "a_key": "", # Properties of the object. Contains field @type with type URL. 324 }, 325}</pre> 326</div> 327 328<div class="method"> 329 <code class="details" id="delete">delete(appsId, modulesId, versionsId, x__xgafv=None)</code> 330 <pre>Deletes an existing version. 331 332Args: 333 appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1. (required) 334 modulesId: string, Part of `name`. See documentation of `appsId`. (required) 335 versionsId: string, Part of `name`. See documentation of `appsId`. (required) 336 x__xgafv: string, V1 error format. 337 Allowed values 338 1 - v1 error format 339 2 - v2 error format 340 341Returns: 342 An object of the form: 343 344 { # This resource represents a long-running operation that is the result of a network API call. 345 "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available. 346 "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be: # The error result of the operation in case of failure or cancellation. 347 # Simple to use and understand for most users 348 # Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include: 349 # Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors. 350 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting. 351 # Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response. 352 # Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message. 353 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons. 354 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 355 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 356 { 357 "a_key": "", # Properties of the object. Contains field @type with type URL. 358 }, 359 ], 360 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 361 }, 362 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 363 "a_key": "", # Properties of the object. Contains field @type with type URL. 364 }, 365 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should have the format of operations/some/unique/name. 366 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse. 367 "a_key": "", # Properties of the object. Contains field @type with type URL. 368 }, 369}</pre> 370</div> 371 372<div class="method"> 373 <code class="details" id="get">get(appsId, modulesId, versionsId, view=None, x__xgafv=None)</code> 374 <pre>Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource. 375 376Args: 377 appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default/versions/v1. (required) 378 modulesId: string, Part of `name`. See documentation of `appsId`. (required) 379 versionsId: string, Part of `name`. See documentation of `appsId`. (required) 380 view: string, Controls the set of fields returned in the Get response. 381 x__xgafv: string, V1 error format. 382 Allowed values 383 1 - v1 error format 384 2 - v2 error format 385 386Returns: 387 An object of the form: 388 389 { # A Version resource is a specific set of source code and configuration files that are deployed into a module. 390 "apiConfig": { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set. 391 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect. 392 "login": "A String", # Level of login required to access this resource. Defaults to optional. 393 "script": "A String", # Path to the script from the application root directory. 394 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL. 395 "url": "A String", # URL to serve the endpoint at. 396 }, 397 "automaticScaling": { # Automatic scaling is based on request rate, response latencies, and other application metrics. # Automatic scaling is based on request rate, response latencies, and other application metrics. 398 "coolDownPeriod": "A String", # The time period that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment. 399 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage. 400 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated. 401 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1. 402 }, 403 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage. 404 "targetReadBytesPerSec": 42, # Target bytes read per second. 405 "targetReadOpsPerSec": 42, # Target ops read per second. 406 "targetWriteBytesPerSec": 42, # Target bytes written per second. 407 "targetWriteOpsPerSec": 42, # Target ops written per second. 408 }, 409 "maxConcurrentRequests": 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value. 410 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version. 411 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. 412 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests. 413 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module. 414 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. 415 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version. 416 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage. 417 "targetReceivedBytesPerSec": 42, # Target bytes received per second. 418 "targetReceivedPacketsPerSec": 42, # Target packets received per second. 419 "targetSentBytesPerSec": 42, # Target bytes sent per second. 420 "targetSentPacketsPerSec": 42, # Target packets sent per second. 421 }, 422 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization. 423 "targetConcurrentRequests": 42, # Target number of concurrent requests. 424 "targetRequestCountPerSec": 42, # Target requests per second. 425 }, 426 }, 427 "basicScaling": { # A module 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. # A module 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. 428 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down. 429 "maxInstances": 42, # Maximum number of instances to create for this version. 430 }, 431 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features. 432 "a_key": "A String", 433 }, 434 "creationTime": "A String", # Time that this version was created.@OutputOnly 435 "defaultExpiration": "A 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. 436 "deployer": "A String", # Email address of the user who created this version.@OutputOnly 437 "deployment": { # Code and application artifacts used to deploy a version to App Engine. # Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set. 438 "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment. 439 "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" 440 }, 441 "files": { # Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call. 442 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately. 443 "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage. 444 "sha1Sum": "A String", # The SHA1 hash of the file, in hex. 445 "sourceUrl": "A String", # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'. 446 }, 447 }, 448 "sourceReferences": [ # Origin of the source code for this deployment. There can be more than one source reference per version if source code is distributed among multiple repositories. 449 { # Reference to a particular snapshot of the source tree used to build and deploy the application. 450 "repository": "A String", # URI string identifying the repository. Example: "https://source.developers.google.com/p/app-123/r/default" 451 "revisionId": "A String", # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b" 452 }, 453 ], 454 }, 455 "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments..The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # 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. 456 "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"By default, the Endpoints service configuration id is fixed and config_id must be specified. To keep the Endpoints service configuration id updated with each rollout, specify RolloutStrategy.MANAGED and omit config_id. 457 "disableTraceSampling": True or False, # Enable or disable trace sampling. By default, this is set to false for enabled. 458 "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog" 459 "rolloutStrategy": "A String", # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted. 460 }, 461 "env": "A String", # App Engine execution environment to use for this version.Defaults to 1. 462 "envVariables": { # Environment variables made available to the application.Only returned in GET requests if view=FULL is set. 463 "a_key": "A String", 464 }, 465 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set. 466 { # Custom static error page to be served when an error occurs. 467 "errorCode": "A String", # Error condition this handler applies to. 468 "mimeType": "A String", # MIME type of file. Defaults to text/html. 469 "staticFile": "A String", # Static file content to be served for this error. 470 }, 471 ], 472 "handlers": [ # 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. 473 { # URL pattern and description of how the URL should be handled. App Engine can handle URLs by executing application code, or by serving static files uploaded with the version, such as images, CSS, or JavaScript. 474 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests. 475 "scriptPath": "A String", # Path to the script from the application root directory. 476 }, 477 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect. 478 "login": "A String", # Level of login required to access this resource. 479 "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302. 480 "script": { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern. 481 "scriptPath": "A String", # Path to the script from the application root directory. 482 }, 483 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL. 484 "staticDirectory": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static directory handlers make it easy to serve the entire contents of a directory as static files. # Serves the entire contents of a directory as static files.This attribute is deprecated. You can mimic the behavior of static directories using static files. 485 "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static directory handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas. 486 "directory": "A String", # Path to the directory containing the static files from the application root directory. Everything after the end of the matched URL pattern is appended to static_dir to form the full path to the requested file. 487 "expiration": "A String", # Time a static file served by this handler should be cached. 488 "httpHeaders": { # HTTP headers to use for all responses from these URLs. 489 "a_key": "A String", 490 }, 491 "mimeType": "A String", # MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are direved from each file's filename extension. 492 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist. 493 }, 494 "staticFiles": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. # Returns the contents of a file, such as an image, as the response. 495 "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas. 496 "expiration": "A String", # Time a static file served by this handler should be cached. 497 "httpHeaders": { # HTTP headers to use for all responses from these URLs. 498 "a_key": "A String", 499 }, 500 "mimeType": "A String", # MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension. 501 "path": "A String", # Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern. 502 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist. 503 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler. 504 }, 505 "urlRegex": "A String", # A URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path. 506 }, 507 ], 508 "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set. 509 "checkInterval": "A String", # Interval between health checks. 510 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance. 511 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic. 512 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com" 513 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted. 514 "timeout": "A String", # Time before the health check is considered failed. 515 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic. 516 }, 517 "id": "A String", # Relative name of the version within the module. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-". 518 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service. 519 "A String", 520 ], 521 "instanceClass": "A String", # Instance class that is used to run this version. Valid values are: 522 # AutomaticScaling: F1, F2, F4, F4_1G 523 # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling. 524 "libraries": [ # Configuration for third-party Python runtime libraries required by the application.Only returned in GET requests if view=FULL is set. 525 { # Third-party Python runtime library that is required by the application. 526 "name": "A String", # Name of the library. Example: "django". 527 "version": "A String", # Version of the library to select, or "latest". 528 }, 529 ], 530 "manualScaling": { # A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. 531 "instances": 42, # Number of instances to assign to the module at the start. This number can later be altered by using the Modules API (https://cloud.google.com/appengine/docs/python/modules/functions) set_num_instances() function. 532 }, 533 "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/modules/default/versions/v1.@OutputOnly 534 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes. 535 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container. 536 "A String", 537 ], 538 "instanceTag": "A String", # Tag to apply to the VM instance during creation. 539 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default. 540 }, 541 "nobuildFilesRegex": "A 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. 542 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes. 543 "cpu": 3.14, # Number of CPU cores needed. 544 "diskGb": 3.14, # Disk size (GB) needed. 545 "memoryGb": 3.14, # Memory (GB) needed. 546 "volumes": [ # User specified volumes. 547 { # Volumes mounted within the app container. Only applicable for VM runtimes. 548 "name": "A String", # Unique name for the volume. 549 "sizeGb": 3.14, # Volume size in gigabytes. 550 "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'. 551 }, 552 ], 553 }, 554 "runtime": "A String", # Desired runtime. Example: python27. 555 "runtimeApiVersion": "A 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 556 "runtimeMainExecutablePath": "A String", # The path or name of the app's main executable. 557 "servingStatus": "A 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. 558 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once. 559 "vm": True or False, # Whether to deploy this version in a container on a virtual machine. 560}</pre> 561</div> 562 563<div class="method"> 564 <code class="details" id="list">list(appsId, modulesId, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code> 565 <pre>Lists the versions of a module. 566 567Args: 568 appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/modules/default. (required) 569 modulesId: string, Part of `name`. See documentation of `appsId`. (required) 570 pageSize: integer, Maximum results to return per page. 571 pageToken: string, Continuation token for fetching the next page of results. 572 view: string, Controls the set of fields returned in the List response. 573 x__xgafv: string, V1 error format. 574 Allowed values 575 1 - v1 error format 576 2 - v2 error format 577 578Returns: 579 An object of the form: 580 581 { # Response message for Versions.ListVersions. 582 "nextPageToken": "A String", # Continuation token for fetching the next page of results. 583 "versions": [ # The versions belonging to the requested module. 584 { # A Version resource is a specific set of source code and configuration files that are deployed into a module. 585 "apiConfig": { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set. 586 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect. 587 "login": "A String", # Level of login required to access this resource. Defaults to optional. 588 "script": "A String", # Path to the script from the application root directory. 589 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL. 590 "url": "A String", # URL to serve the endpoint at. 591 }, 592 "automaticScaling": { # Automatic scaling is based on request rate, response latencies, and other application metrics. # Automatic scaling is based on request rate, response latencies, and other application metrics. 593 "coolDownPeriod": "A String", # The time period that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment. 594 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage. 595 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated. 596 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1. 597 }, 598 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage. 599 "targetReadBytesPerSec": 42, # Target bytes read per second. 600 "targetReadOpsPerSec": 42, # Target ops read per second. 601 "targetWriteBytesPerSec": 42, # Target bytes written per second. 602 "targetWriteOpsPerSec": 42, # Target ops written per second. 603 }, 604 "maxConcurrentRequests": 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value. 605 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version. 606 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. 607 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests. 608 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module. 609 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. 610 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version. 611 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage. 612 "targetReceivedBytesPerSec": 42, # Target bytes received per second. 613 "targetReceivedPacketsPerSec": 42, # Target packets received per second. 614 "targetSentBytesPerSec": 42, # Target bytes sent per second. 615 "targetSentPacketsPerSec": 42, # Target packets sent per second. 616 }, 617 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization. 618 "targetConcurrentRequests": 42, # Target number of concurrent requests. 619 "targetRequestCountPerSec": 42, # Target requests per second. 620 }, 621 }, 622 "basicScaling": { # A module 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. # A module 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. 623 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down. 624 "maxInstances": 42, # Maximum number of instances to create for this version. 625 }, 626 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features. 627 "a_key": "A String", 628 }, 629 "creationTime": "A String", # Time that this version was created.@OutputOnly 630 "defaultExpiration": "A 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. 631 "deployer": "A String", # Email address of the user who created this version.@OutputOnly 632 "deployment": { # Code and application artifacts used to deploy a version to App Engine. # Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set. 633 "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment. 634 "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" 635 }, 636 "files": { # Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call. 637 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately. 638 "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage. 639 "sha1Sum": "A String", # The SHA1 hash of the file, in hex. 640 "sourceUrl": "A String", # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'. 641 }, 642 }, 643 "sourceReferences": [ # Origin of the source code for this deployment. There can be more than one source reference per version if source code is distributed among multiple repositories. 644 { # Reference to a particular snapshot of the source tree used to build and deploy the application. 645 "repository": "A String", # URI string identifying the repository. Example: "https://source.developers.google.com/p/app-123/r/default" 646 "revisionId": "A String", # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b" 647 }, 648 ], 649 }, 650 "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments..The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # 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. 651 "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"By default, the Endpoints service configuration id is fixed and config_id must be specified. To keep the Endpoints service configuration id updated with each rollout, specify RolloutStrategy.MANAGED and omit config_id. 652 "disableTraceSampling": True or False, # Enable or disable trace sampling. By default, this is set to false for enabled. 653 "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog" 654 "rolloutStrategy": "A String", # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted. 655 }, 656 "env": "A String", # App Engine execution environment to use for this version.Defaults to 1. 657 "envVariables": { # Environment variables made available to the application.Only returned in GET requests if view=FULL is set. 658 "a_key": "A String", 659 }, 660 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set. 661 { # Custom static error page to be served when an error occurs. 662 "errorCode": "A String", # Error condition this handler applies to. 663 "mimeType": "A String", # MIME type of file. Defaults to text/html. 664 "staticFile": "A String", # Static file content to be served for this error. 665 }, 666 ], 667 "handlers": [ # 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. 668 { # URL pattern and description of how the URL should be handled. App Engine can handle URLs by executing application code, or by serving static files uploaded with the version, such as images, CSS, or JavaScript. 669 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests. 670 "scriptPath": "A String", # Path to the script from the application root directory. 671 }, 672 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect. 673 "login": "A String", # Level of login required to access this resource. 674 "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302. 675 "script": { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern. 676 "scriptPath": "A String", # Path to the script from the application root directory. 677 }, 678 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL. 679 "staticDirectory": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static directory handlers make it easy to serve the entire contents of a directory as static files. # Serves the entire contents of a directory as static files.This attribute is deprecated. You can mimic the behavior of static directories using static files. 680 "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static directory handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas. 681 "directory": "A String", # Path to the directory containing the static files from the application root directory. Everything after the end of the matched URL pattern is appended to static_dir to form the full path to the requested file. 682 "expiration": "A String", # Time a static file served by this handler should be cached. 683 "httpHeaders": { # HTTP headers to use for all responses from these URLs. 684 "a_key": "A String", 685 }, 686 "mimeType": "A String", # MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are direved from each file's filename extension. 687 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist. 688 }, 689 "staticFiles": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. # Returns the contents of a file, such as an image, as the response. 690 "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas. 691 "expiration": "A String", # Time a static file served by this handler should be cached. 692 "httpHeaders": { # HTTP headers to use for all responses from these URLs. 693 "a_key": "A String", 694 }, 695 "mimeType": "A String", # MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension. 696 "path": "A String", # Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern. 697 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist. 698 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler. 699 }, 700 "urlRegex": "A String", # A URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path. 701 }, 702 ], 703 "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set. 704 "checkInterval": "A String", # Interval between health checks. 705 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance. 706 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic. 707 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com" 708 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted. 709 "timeout": "A String", # Time before the health check is considered failed. 710 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic. 711 }, 712 "id": "A String", # Relative name of the version within the module. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-". 713 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service. 714 "A String", 715 ], 716 "instanceClass": "A String", # Instance class that is used to run this version. Valid values are: 717 # AutomaticScaling: F1, F2, F4, F4_1G 718 # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling. 719 "libraries": [ # Configuration for third-party Python runtime libraries required by the application.Only returned in GET requests if view=FULL is set. 720 { # Third-party Python runtime library that is required by the application. 721 "name": "A String", # Name of the library. Example: "django". 722 "version": "A String", # Version of the library to select, or "latest". 723 }, 724 ], 725 "manualScaling": { # A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. 726 "instances": 42, # Number of instances to assign to the module at the start. This number can later be altered by using the Modules API (https://cloud.google.com/appengine/docs/python/modules/functions) set_num_instances() function. 727 }, 728 "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/modules/default/versions/v1.@OutputOnly 729 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes. 730 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container. 731 "A String", 732 ], 733 "instanceTag": "A String", # Tag to apply to the VM instance during creation. 734 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default. 735 }, 736 "nobuildFilesRegex": "A 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. 737 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes. 738 "cpu": 3.14, # Number of CPU cores needed. 739 "diskGb": 3.14, # Disk size (GB) needed. 740 "memoryGb": 3.14, # Memory (GB) needed. 741 "volumes": [ # User specified volumes. 742 { # Volumes mounted within the app container. Only applicable for VM runtimes. 743 "name": "A String", # Unique name for the volume. 744 "sizeGb": 3.14, # Volume size in gigabytes. 745 "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'. 746 }, 747 ], 748 }, 749 "runtime": "A String", # Desired runtime. Example: python27. 750 "runtimeApiVersion": "A 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 751 "runtimeMainExecutablePath": "A String", # The path or name of the app's main executable. 752 "servingStatus": "A 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. 753 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once. 754 "vm": True or False, # Whether to deploy this version in a container on a virtual machine. 755 }, 756 ], 757}</pre> 758</div> 759 760<div class="method"> 761 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 762 <pre>Retrieves the next page of results. 763 764Args: 765 previous_request: The request for the previous page. (required) 766 previous_response: The response from the request for the previous page. (required) 767 768Returns: 769 A request object that you can call 'execute()' on to request the next 770 page. Returns None if there are no more items in the collection. 771 </pre> 772</div> 773 774<div class="method"> 775 <code class="details" id="patch">patch(appsId, modulesId, versionsId, body=None, mask=None, x__xgafv=None)</code> 776 <pre>Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses: 777serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment. 778instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment. 779automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment. 780automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta4/apps.modules.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment. 781 782Args: 783 appsId: string, Part of `name`. Name of the resource to update. Example: apps/myapp/modules/default/versions/1. (required) 784 modulesId: string, Part of `name`. See documentation of `appsId`. (required) 785 versionsId: string, Part of `name`. See documentation of `appsId`. (required) 786 body: object, The request body. 787 The object takes the form of: 788 789{ # A Version resource is a specific set of source code and configuration files that are deployed into a module. 790 "apiConfig": { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set. 791 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect. 792 "login": "A String", # Level of login required to access this resource. Defaults to optional. 793 "script": "A String", # Path to the script from the application root directory. 794 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL. 795 "url": "A String", # URL to serve the endpoint at. 796 }, 797 "automaticScaling": { # Automatic scaling is based on request rate, response latencies, and other application metrics. # Automatic scaling is based on request rate, response latencies, and other application metrics. 798 "coolDownPeriod": "A String", # The time period that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment. 799 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage. 800 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated. 801 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1. 802 }, 803 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage. 804 "targetReadBytesPerSec": 42, # Target bytes read per second. 805 "targetReadOpsPerSec": 42, # Target ops read per second. 806 "targetWriteBytesPerSec": 42, # Target bytes written per second. 807 "targetWriteOpsPerSec": 42, # Target ops written per second. 808 }, 809 "maxConcurrentRequests": 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value. 810 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version. 811 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. 812 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests. 813 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module. 814 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. 815 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version. 816 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage. 817 "targetReceivedBytesPerSec": 42, # Target bytes received per second. 818 "targetReceivedPacketsPerSec": 42, # Target packets received per second. 819 "targetSentBytesPerSec": 42, # Target bytes sent per second. 820 "targetSentPacketsPerSec": 42, # Target packets sent per second. 821 }, 822 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization. 823 "targetConcurrentRequests": 42, # Target number of concurrent requests. 824 "targetRequestCountPerSec": 42, # Target requests per second. 825 }, 826 }, 827 "basicScaling": { # A module 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. # A module 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. 828 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down. 829 "maxInstances": 42, # Maximum number of instances to create for this version. 830 }, 831 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features. 832 "a_key": "A String", 833 }, 834 "creationTime": "A String", # Time that this version was created.@OutputOnly 835 "defaultExpiration": "A 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. 836 "deployer": "A String", # Email address of the user who created this version.@OutputOnly 837 "deployment": { # Code and application artifacts used to deploy a version to App Engine. # Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set. 838 "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment. 839 "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" 840 }, 841 "files": { # Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call. 842 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately. 843 "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage. 844 "sha1Sum": "A String", # The SHA1 hash of the file, in hex. 845 "sourceUrl": "A String", # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'. 846 }, 847 }, 848 "sourceReferences": [ # Origin of the source code for this deployment. There can be more than one source reference per version if source code is distributed among multiple repositories. 849 { # Reference to a particular snapshot of the source tree used to build and deploy the application. 850 "repository": "A String", # URI string identifying the repository. Example: "https://source.developers.google.com/p/app-123/r/default" 851 "revisionId": "A String", # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b" 852 }, 853 ], 854 }, 855 "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments..The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # 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. 856 "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"By default, the Endpoints service configuration id is fixed and config_id must be specified. To keep the Endpoints service configuration id updated with each rollout, specify RolloutStrategy.MANAGED and omit config_id. 857 "disableTraceSampling": True or False, # Enable or disable trace sampling. By default, this is set to false for enabled. 858 "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog" 859 "rolloutStrategy": "A String", # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted. 860 }, 861 "env": "A String", # App Engine execution environment to use for this version.Defaults to 1. 862 "envVariables": { # Environment variables made available to the application.Only returned in GET requests if view=FULL is set. 863 "a_key": "A String", 864 }, 865 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set. 866 { # Custom static error page to be served when an error occurs. 867 "errorCode": "A String", # Error condition this handler applies to. 868 "mimeType": "A String", # MIME type of file. Defaults to text/html. 869 "staticFile": "A String", # Static file content to be served for this error. 870 }, 871 ], 872 "handlers": [ # 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. 873 { # URL pattern and description of how the URL should be handled. App Engine can handle URLs by executing application code, or by serving static files uploaded with the version, such as images, CSS, or JavaScript. 874 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests. 875 "scriptPath": "A String", # Path to the script from the application root directory. 876 }, 877 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect. 878 "login": "A String", # Level of login required to access this resource. 879 "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302. 880 "script": { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern. 881 "scriptPath": "A String", # Path to the script from the application root directory. 882 }, 883 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL. 884 "staticDirectory": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static directory handlers make it easy to serve the entire contents of a directory as static files. # Serves the entire contents of a directory as static files.This attribute is deprecated. You can mimic the behavior of static directories using static files. 885 "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static directory handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas. 886 "directory": "A String", # Path to the directory containing the static files from the application root directory. Everything after the end of the matched URL pattern is appended to static_dir to form the full path to the requested file. 887 "expiration": "A String", # Time a static file served by this handler should be cached. 888 "httpHeaders": { # HTTP headers to use for all responses from these URLs. 889 "a_key": "A String", 890 }, 891 "mimeType": "A String", # MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are direved from each file's filename extension. 892 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist. 893 }, 894 "staticFiles": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. # Returns the contents of a file, such as an image, as the response. 895 "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas. 896 "expiration": "A String", # Time a static file served by this handler should be cached. 897 "httpHeaders": { # HTTP headers to use for all responses from these URLs. 898 "a_key": "A String", 899 }, 900 "mimeType": "A String", # MIME type used to serve all files served by this handler. Defaults to file-specific MIME types, which are derived from each file's filename extension. 901 "path": "A String", # Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern. 902 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist. 903 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler. 904 }, 905 "urlRegex": "A String", # A URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path. 906 }, 907 ], 908 "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set. 909 "checkInterval": "A String", # Interval between health checks. 910 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance. 911 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic. 912 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com" 913 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted. 914 "timeout": "A String", # Time before the health check is considered failed. 915 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic. 916 }, 917 "id": "A String", # Relative name of the version within the module. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-". 918 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service. 919 "A String", 920 ], 921 "instanceClass": "A String", # Instance class that is used to run this version. Valid values are: 922 # AutomaticScaling: F1, F2, F4, F4_1G 923 # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling. 924 "libraries": [ # Configuration for third-party Python runtime libraries required by the application.Only returned in GET requests if view=FULL is set. 925 { # Third-party Python runtime library that is required by the application. 926 "name": "A String", # Name of the library. Example: "django". 927 "version": "A String", # Version of the library to select, or "latest". 928 }, 929 ], 930 "manualScaling": { # A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A module with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. 931 "instances": 42, # Number of instances to assign to the module at the start. This number can later be altered by using the Modules API (https://cloud.google.com/appengine/docs/python/modules/functions) set_num_instances() function. 932 }, 933 "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/modules/default/versions/v1.@OutputOnly 934 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes. 935 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container. 936 "A String", 937 ], 938 "instanceTag": "A String", # Tag to apply to the VM instance during creation. 939 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default. 940 }, 941 "nobuildFilesRegex": "A 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. 942 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes. 943 "cpu": 3.14, # Number of CPU cores needed. 944 "diskGb": 3.14, # Disk size (GB) needed. 945 "memoryGb": 3.14, # Memory (GB) needed. 946 "volumes": [ # User specified volumes. 947 { # Volumes mounted within the app container. Only applicable for VM runtimes. 948 "name": "A String", # Unique name for the volume. 949 "sizeGb": 3.14, # Volume size in gigabytes. 950 "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'. 951 }, 952 ], 953 }, 954 "runtime": "A String", # Desired runtime. Example: python27. 955 "runtimeApiVersion": "A 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 956 "runtimeMainExecutablePath": "A String", # The path or name of the app's main executable. 957 "servingStatus": "A 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. 958 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once. 959 "vm": True or False, # Whether to deploy this version in a container on a virtual machine. 960} 961 962 mask: string, Standard field mask for the set of fields to be updated. 963 x__xgafv: string, V1 error format. 964 Allowed values 965 1 - v1 error format 966 2 - v2 error format 967 968Returns: 969 An object of the form: 970 971 { # This resource represents a long-running operation that is the result of a network API call. 972 "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available. 973 "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be: # The error result of the operation in case of failure or cancellation. 974 # Simple to use and understand for most users 975 # Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include: 976 # Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors. 977 # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting. 978 # Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response. 979 # Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message. 980 # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons. 981 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 982 "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. 983 { 984 "a_key": "", # Properties of the object. Contains field @type with type URL. 985 }, 986 ], 987 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. 988 }, 989 "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. 990 "a_key": "", # Properties of the object. Contains field @type with type URL. 991 }, 992 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should have the format of operations/some/unique/name. 993 "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse. 994 "a_key": "", # Properties of the object. Contains field @type with type URL. 995 }, 996}</pre> 997</div> 998 999</body></html>