blob: 043b3ebe98df75151c6ac48ced789d906608549d [file] [log] [blame]
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001<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_v1beta5.html">Google App Engine Admin API</a> . <a href="appengine_v1beta5.apps.html">apps</a> . <a href="appengine_v1beta5.apps.services.html">services</a> . <a href="appengine_v1beta5.apps.services.versions.html">versions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070078 <code><a href="appengine_v1beta5.apps.services.versions.instances.html">instances()</a></code>
79</p>
80<p class="firstline">Returns the instances Resource.</p>
81
82<p class="toc_element">
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080083 <code><a href="#create">create(appsId, servicesId, body, x__xgafv=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070084<p class="firstline">Deploys new code and resource files to a new version.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080085<p class="toc_element">
86 <code><a href="#delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes an existing version.</p>
88<p class="toc_element">
89 <code><a href="#get">get(appsId, servicesId, versionsId, x__xgafv=None, view=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070090<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>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080091<p class="toc_element">
92 <code><a href="#list">list(appsId, servicesId, pageSize=None, x__xgafv=None, pageToken=None, view=None)</a></code></p>
93<p class="firstline">Lists the versions of a service.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070097<p class="toc_element">
98 <code><a href="#patch">patch(appsId, servicesId, versionsId, body, mask=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070099<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: * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment. * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment. * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment. * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800100<h3>Method Details</h3>
101<div class="method">
102 <code class="details" id="create">create(appsId, servicesId, body, x__xgafv=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700103 <pre>Deploys new code and resource files to a new version.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800104
105Args:
106 appsId: string, Part of `name`. Name of the resource to update. For example: "apps/myapp/services/default". (required)
107 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
108 body: object, The request body. (required)
109 The object takes the form of:
110
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700111{ # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800112 "basicScaling": { # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700113 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
114 "maxInstances": 42, # Maximum number of instances to create for this version.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800115 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700116 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800117 "a_key": "A String",
118 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700119 "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
120 "instanceClass": "A String", # Instance class that is used to run this version. Valid values are: * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or BasicScaling.
121 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page. Only returned in `GET` requests if `view=FULL` is set.
122 { # Custom static error page to be served when an error occurs.
123 "errorCode": "A String", # Error condition this handler applies to.
124 "mimeType": "A String", # MIME type of file. Defaults to `text/html`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800125 "staticFile": "A String", # Static file content to be served for this error.
126 },
127 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700128 "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-".
129 "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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800130 "url": "A String", # URL to serve the endpoint at.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700131 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
132 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to `redirect`.
133 "login": "A String", # Level of login required to access this resource. Defaults to `optional`.
134 "script": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800135 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700136 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
137 "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 be stopped and replaced with new instances. Only applicable for VM runtimes. Only returned in `GET` requests if `view=FULL` is set.
138 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
139 "checkInterval": "A String", # Interval between health checks.
140 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
141 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
142 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
143 "timeout": "A String", # Time before the health check is considered failed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800144 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
145 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700146 "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.
147 "libraries": [ # Configuration for third-party Python runtime libraries required by the application. Only returned in `GET` requests if `view=FULL` is set.
148 { # Third-party Python runtime library that is required by the application.
149 "version": "A String", # Version of the library to select, or "latest".
150 "name": "A String", # Name of the library. Example: "django".
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800151 },
152 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700153 "deployer": "A String", # Email address of the user who created this version. @OutputOnly
154 "env": "A String", # App Engine execution environment to use for this version. Defaults to `1`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800155 "diskUsageBytes": "A String", # Total size of version files hosted on App Engine disk in bytes. @OutputOnly
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700156 "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.
157 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
158 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
159 "targetReceivedBytesPerSec": 42, # Target bytes received per second.
160 "targetSentBytesPerSec": 42, # Target bytes sent per second.
161 "targetReceivedPacketsPerSec": 42, # Target packets received per second.
162 "targetSentPacketsPerSec": 42, # Target packets sent per second.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800163 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700164 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
165 "targetWriteOpsPerSec": 42, # Target ops written per second.
166 "targetReadBytesPerSec": 42, # Target bytes read per second.
167 "targetReadOpsPerSec": 42, # Target ops read per second.
168 "targetWriteBytesPerSec": 42, # Target bytes written per second.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800169 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700170 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
171 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
172 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module.
173 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800174 "targetConcurrentRequests": 42, # Target number of concurrent requests.
175 "targetRequestCountPerSec": 42, # Target requests per second.
176 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700177 "coolDownPeriod": "A String", # Amount of time that the [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait between changes to the number of virtual machines. Only applicable for VM runtimes.
178 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
179 "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.
180 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800181 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700182 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
183 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800184 },
185 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700186 "envVariables": { # Environment variables made available to the application. Only returned in `GET` requests if `view=FULL` is set.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800187 "a_key": "A String",
188 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700189 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
190 "diskGb": 3.14, # Disk size (GB) needed.
191 "cpu": 3.14, # Number of CPU cores needed.
192 "memoryGb": 3.14, # Memory (GB) needed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800193 },
194 "manualScaling": { # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700195 "instances": 42, # Number of instances to assign to the service 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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800196 },
197 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
198 "A String",
199 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700200 "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.
201 "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.
202 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
203 "mimeType": "A String", # The MIME type of the file. Defaults to the value from Google Cloud Storage.
204 "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/\/\'.
205 "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800206 },
207 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700208 "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.
209 { # Reference to a particular snapshot of the source tree used to build and deploy the application.
210 "revisionId": "A String", # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b"
211 "repository": "A String", # URI string identifying the repository. Example: "https://source.developers.google.com/p/app-123/r/default"
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800212 },
213 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700214 "container": { # Docker image that is used to start a VM container for the version you deploy. # A Docker image that App Engine uses the run the version. Only applicable for instances in App Engine flexible environment.
215 "image": "A String", # URI to the hosted container image in a Docker repository. 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"
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800216 },
217 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700218 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
219 "instanceTag": "A String", # Tag to apply to the VM instance during creation.
220 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800221 "A String",
222 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700223 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path. Defaults to `default`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800224 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700225 "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.
226 "name": "A String", # Full path to the Version resource in the API. Example: `apps/myapp/services/default/versions/v1`. @OutputOnly
227 "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.
228 { # 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.
229 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
230 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to `redirect`.
231 "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.
232 "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.
233 "scriptPath": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800234 },
235 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700236 "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.
237 "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.
238 "expiration": "A String", # Time a static file served by this handler should be cached.
239 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
240 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
241 "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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800242 "httpHeaders": { # HTTP headers to use for all responses from these URLs.
243 "a_key": "A String",
244 },
245 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700246 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
247 "scriptPath": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800248 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700249 "login": "A String", # Level of login required to access this resource.
250 "redirectHttpResponseCode": "A String", # `30x` code to use when performing redirects for the `secure` field. Defaults to `302`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800251 },
252 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700253 "creationTime": "A String", # Time that this version was created. @OutputOnly
254 "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`.
255 "runtime": "A String", # Desired runtime. Example: `python27`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800256 }
257
258 x__xgafv: string, V1 error format.
259
260Returns:
261 An object of the form:
262
263 { # This resource represents a long-running operation that is the result of a network API call.
264 "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`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700265 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800266 },
267 "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: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `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` which can be used for common error conditions. # Language mapping The `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 uses The 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: - 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. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - 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. - 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. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons. # The error result of the operation in case of failure.
268 "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.
269 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
270 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
271 {
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700272 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800273 },
274 ],
275 },
276 "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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700277 "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`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800278 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700279 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800280 },
281 }</pre>
282</div>
283
284<div class="method">
285 <code class="details" id="delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</code>
286 <pre>Deletes an existing version.
287
288Args:
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700289 appsId: string, Part of `name`. Name of the resource requested. Example: `apps/myapp/services/default/versions/v1`. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800290 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
291 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
292 x__xgafv: string, V1 error format.
293
294Returns:
295 An object of the form:
296
297 { # This resource represents a long-running operation that is the result of a network API call.
298 "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`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700299 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800300 },
301 "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: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `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` which can be used for common error conditions. # Language mapping The `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 uses The 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: - 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. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - 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. - 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. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons. # The error result of the operation in case of failure.
302 "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.
303 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
304 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
305 {
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700306 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800307 },
308 ],
309 },
310 "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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700311 "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`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800312 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700313 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800314 },
315 }</pre>
316</div>
317
318<div class="method">
319 <code class="details" id="get">get(appsId, servicesId, versionsId, x__xgafv=None, view=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700320 <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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800321
322Args:
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700323 appsId: string, Part of `name`. Name of the resource requested. Example: `apps/myapp/services/default/versions/v1`. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800324 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
325 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
326 x__xgafv: string, V1 error format.
327 view: string, Controls the set of fields returned in the `Get` response.
328
329Returns:
330 An object of the form:
331
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700332 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800333 "basicScaling": { # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700334 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
335 "maxInstances": 42, # Maximum number of instances to create for this version.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800336 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700337 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800338 "a_key": "A String",
339 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700340 "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
341 "instanceClass": "A String", # Instance class that is used to run this version. Valid values are: * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or BasicScaling.
342 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page. Only returned in `GET` requests if `view=FULL` is set.
343 { # Custom static error page to be served when an error occurs.
344 "errorCode": "A String", # Error condition this handler applies to.
345 "mimeType": "A String", # MIME type of file. Defaults to `text/html`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800346 "staticFile": "A String", # Static file content to be served for this error.
347 },
348 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700349 "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-".
350 "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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800351 "url": "A String", # URL to serve the endpoint at.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700352 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
353 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to `redirect`.
354 "login": "A String", # Level of login required to access this resource. Defaults to `optional`.
355 "script": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800356 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700357 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
358 "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 be stopped and replaced with new instances. Only applicable for VM runtimes. Only returned in `GET` requests if `view=FULL` is set.
359 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
360 "checkInterval": "A String", # Interval between health checks.
361 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
362 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
363 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
364 "timeout": "A String", # Time before the health check is considered failed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800365 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
366 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700367 "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.
368 "libraries": [ # Configuration for third-party Python runtime libraries required by the application. Only returned in `GET` requests if `view=FULL` is set.
369 { # Third-party Python runtime library that is required by the application.
370 "version": "A String", # Version of the library to select, or "latest".
371 "name": "A String", # Name of the library. Example: "django".
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800372 },
373 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700374 "deployer": "A String", # Email address of the user who created this version. @OutputOnly
375 "env": "A String", # App Engine execution environment to use for this version. Defaults to `1`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800376 "diskUsageBytes": "A String", # Total size of version files hosted on App Engine disk in bytes. @OutputOnly
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700377 "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.
378 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
379 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
380 "targetReceivedBytesPerSec": 42, # Target bytes received per second.
381 "targetSentBytesPerSec": 42, # Target bytes sent per second.
382 "targetReceivedPacketsPerSec": 42, # Target packets received per second.
383 "targetSentPacketsPerSec": 42, # Target packets sent per second.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800384 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700385 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
386 "targetWriteOpsPerSec": 42, # Target ops written per second.
387 "targetReadBytesPerSec": 42, # Target bytes read per second.
388 "targetReadOpsPerSec": 42, # Target ops read per second.
389 "targetWriteBytesPerSec": 42, # Target bytes written per second.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800390 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700391 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
392 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
393 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module.
394 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800395 "targetConcurrentRequests": 42, # Target number of concurrent requests.
396 "targetRequestCountPerSec": 42, # Target requests per second.
397 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700398 "coolDownPeriod": "A String", # Amount of time that the [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait between changes to the number of virtual machines. Only applicable for VM runtimes.
399 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
400 "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.
401 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800402 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700403 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
404 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800405 },
406 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700407 "envVariables": { # Environment variables made available to the application. Only returned in `GET` requests if `view=FULL` is set.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800408 "a_key": "A String",
409 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700410 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
411 "diskGb": 3.14, # Disk size (GB) needed.
412 "cpu": 3.14, # Number of CPU cores needed.
413 "memoryGb": 3.14, # Memory (GB) needed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800414 },
415 "manualScaling": { # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700416 "instances": 42, # Number of instances to assign to the service 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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800417 },
418 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
419 "A String",
420 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700421 "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.
422 "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.
423 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
424 "mimeType": "A String", # The MIME type of the file. Defaults to the value from Google Cloud Storage.
425 "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/\/\'.
426 "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800427 },
428 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700429 "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.
430 { # Reference to a particular snapshot of the source tree used to build and deploy the application.
431 "revisionId": "A String", # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b"
432 "repository": "A String", # URI string identifying the repository. Example: "https://source.developers.google.com/p/app-123/r/default"
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800433 },
434 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700435 "container": { # Docker image that is used to start a VM container for the version you deploy. # A Docker image that App Engine uses the run the version. Only applicable for instances in App Engine flexible environment.
436 "image": "A String", # URI to the hosted container image in a Docker repository. 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"
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800437 },
438 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700439 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
440 "instanceTag": "A String", # Tag to apply to the VM instance during creation.
441 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800442 "A String",
443 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700444 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path. Defaults to `default`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800445 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700446 "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.
447 "name": "A String", # Full path to the Version resource in the API. Example: `apps/myapp/services/default/versions/v1`. @OutputOnly
448 "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.
449 { # 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.
450 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
451 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to `redirect`.
452 "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.
453 "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.
454 "scriptPath": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800455 },
456 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700457 "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.
458 "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.
459 "expiration": "A String", # Time a static file served by this handler should be cached.
460 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
461 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
462 "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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800463 "httpHeaders": { # HTTP headers to use for all responses from these URLs.
464 "a_key": "A String",
465 },
466 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700467 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
468 "scriptPath": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800469 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700470 "login": "A String", # Level of login required to access this resource.
471 "redirectHttpResponseCode": "A String", # `30x` code to use when performing redirects for the `secure` field. Defaults to `302`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800472 },
473 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700474 "creationTime": "A String", # Time that this version was created. @OutputOnly
475 "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`.
476 "runtime": "A String", # Desired runtime. Example: `python27`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800477 }</pre>
478</div>
479
480<div class="method">
481 <code class="details" id="list">list(appsId, servicesId, pageSize=None, x__xgafv=None, pageToken=None, view=None)</code>
482 <pre>Lists the versions of a service.
483
484Args:
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700485 appsId: string, Part of `name`. Name of the resource requested. Example: `apps/myapp/services/default`. (required)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800486 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
487 pageSize: integer, Maximum results to return per page.
488 x__xgafv: string, V1 error format.
489 pageToken: string, Continuation token for fetching the next page of results.
490 view: string, Controls the set of fields returned in the `List` response.
491
492Returns:
493 An object of the form:
494
495 { # Response message for `Versions.ListVersions`.
496 "nextPageToken": "A String", # Continuation token for fetching the next page of results.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700497 "versions": [ # The versions belonging to the requested service.
498 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800499 "basicScaling": { # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700500 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
501 "maxInstances": 42, # Maximum number of instances to create for this version.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800502 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700503 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800504 "a_key": "A String",
505 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700506 "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
507 "instanceClass": "A String", # Instance class that is used to run this version. Valid values are: * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or BasicScaling.
508 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page. Only returned in `GET` requests if `view=FULL` is set.
509 { # Custom static error page to be served when an error occurs.
510 "errorCode": "A String", # Error condition this handler applies to.
511 "mimeType": "A String", # MIME type of file. Defaults to `text/html`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800512 "staticFile": "A String", # Static file content to be served for this error.
513 },
514 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700515 "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-".
516 "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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800517 "url": "A String", # URL to serve the endpoint at.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700518 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
519 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to `redirect`.
520 "login": "A String", # Level of login required to access this resource. Defaults to `optional`.
521 "script": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800522 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700523 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
524 "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 be stopped and replaced with new instances. Only applicable for VM runtimes. Only returned in `GET` requests if `view=FULL` is set.
525 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
526 "checkInterval": "A String", # Interval between health checks.
527 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
528 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
529 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
530 "timeout": "A String", # Time before the health check is considered failed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800531 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
532 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700533 "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.
534 "libraries": [ # Configuration for third-party Python runtime libraries required by the application. Only returned in `GET` requests if `view=FULL` is set.
535 { # Third-party Python runtime library that is required by the application.
536 "version": "A String", # Version of the library to select, or "latest".
537 "name": "A String", # Name of the library. Example: "django".
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800538 },
539 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700540 "deployer": "A String", # Email address of the user who created this version. @OutputOnly
541 "env": "A String", # App Engine execution environment to use for this version. Defaults to `1`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800542 "diskUsageBytes": "A String", # Total size of version files hosted on App Engine disk in bytes. @OutputOnly
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700543 "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.
544 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
545 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
546 "targetReceivedBytesPerSec": 42, # Target bytes received per second.
547 "targetSentBytesPerSec": 42, # Target bytes sent per second.
548 "targetReceivedPacketsPerSec": 42, # Target packets received per second.
549 "targetSentPacketsPerSec": 42, # Target packets sent per second.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800550 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700551 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
552 "targetWriteOpsPerSec": 42, # Target ops written per second.
553 "targetReadBytesPerSec": 42, # Target bytes read per second.
554 "targetReadOpsPerSec": 42, # Target ops read per second.
555 "targetWriteBytesPerSec": 42, # Target bytes written per second.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800556 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700557 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
558 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
559 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module.
560 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800561 "targetConcurrentRequests": 42, # Target number of concurrent requests.
562 "targetRequestCountPerSec": 42, # Target requests per second.
563 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700564 "coolDownPeriod": "A String", # Amount of time that the [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait between changes to the number of virtual machines. Only applicable for VM runtimes.
565 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
566 "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.
567 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800568 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700569 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
570 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800571 },
572 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700573 "envVariables": { # Environment variables made available to the application. Only returned in `GET` requests if `view=FULL` is set.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800574 "a_key": "A String",
575 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700576 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
577 "diskGb": 3.14, # Disk size (GB) needed.
578 "cpu": 3.14, # Number of CPU cores needed.
579 "memoryGb": 3.14, # Memory (GB) needed.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800580 },
581 "manualScaling": { # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700582 "instances": 42, # Number of instances to assign to the service 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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800583 },
584 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
585 "A String",
586 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700587 "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.
588 "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.
589 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
590 "mimeType": "A String", # The MIME type of the file. Defaults to the value from Google Cloud Storage.
591 "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/\/\'.
592 "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800593 },
594 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700595 "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.
596 { # Reference to a particular snapshot of the source tree used to build and deploy the application.
597 "revisionId": "A String", # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b"
598 "repository": "A String", # URI string identifying the repository. Example: "https://source.developers.google.com/p/app-123/r/default"
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800599 },
600 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700601 "container": { # Docker image that is used to start a VM container for the version you deploy. # A Docker image that App Engine uses the run the version. Only applicable for instances in App Engine flexible environment.
602 "image": "A String", # URI to the hosted container image in a Docker repository. 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"
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800603 },
604 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700605 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
606 "instanceTag": "A String", # Tag to apply to the VM instance during creation.
607 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800608 "A String",
609 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700610 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path. Defaults to `default`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800611 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700612 "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.
613 "name": "A String", # Full path to the Version resource in the API. Example: `apps/myapp/services/default/versions/v1`. @OutputOnly
614 "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.
615 { # 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.
616 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
617 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to `redirect`.
618 "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.
619 "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.
620 "scriptPath": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800621 },
622 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700623 "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.
624 "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.
625 "expiration": "A String", # Time a static file served by this handler should be cached.
626 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
627 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
628 "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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800629 "httpHeaders": { # HTTP headers to use for all responses from these URLs.
630 "a_key": "A String",
631 },
632 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700633 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
634 "scriptPath": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800635 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700636 "login": "A String", # Level of login required to access this resource.
637 "redirectHttpResponseCode": "A String", # `30x` code to use when performing redirects for the `secure` field. Defaults to `302`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800638 },
639 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700640 "creationTime": "A String", # Time that this version was created. @OutputOnly
641 "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`.
642 "runtime": "A String", # Desired runtime. Example: `python27`.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800643 },
644 ],
645 }</pre>
646</div>
647
648<div class="method">
649 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
650 <pre>Retrieves the next page of results.
651
652Args:
653 previous_request: The request for the previous page. (required)
654 previous_response: The response from the request for the previous page. (required)
655
656Returns:
657 A request object that you can call 'execute()' on to request the next
658 page. Returns None if there are no more items in the collection.
659 </pre>
660</div>
661
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700662<div class="method">
663 <code class="details" id="patch">patch(appsId, servicesId, versionsId, body, mask=None, x__xgafv=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700664 <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: * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status): For Version resources that use basic scaling, manual scaling, or run in the App Engine flexible environment. * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class): For Version resources that run in the App Engine standard environment. * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment. * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700665
666Args:
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700667 appsId: string, Part of `name`. Name of the resource to update. Example: `apps/myapp/services/default/versions/1`. (required)
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700668 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
669 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
670 body: object, The request body. (required)
671 The object takes the form of:
672
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700673{ # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700674 "basicScaling": { # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700675 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
676 "maxInstances": 42, # Maximum number of instances to create for this version.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700677 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700678 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700679 "a_key": "A String",
680 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700681 "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
682 "instanceClass": "A String", # Instance class that is used to run this version. Valid values are: * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` * ManualScaling or BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` Defaults to `F1` for AutomaticScaling and `B1` for ManualScaling or BasicScaling.
683 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page. Only returned in `GET` requests if `view=FULL` is set.
684 { # Custom static error page to be served when an error occurs.
685 "errorCode": "A String", # Error condition this handler applies to.
686 "mimeType": "A String", # MIME type of file. Defaults to `text/html`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700687 "staticFile": "A String", # Static file content to be served for this error.
688 },
689 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700690 "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-".
691 "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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700692 "url": "A String", # URL to serve the endpoint at.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700693 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
694 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to `redirect`.
695 "login": "A String", # Level of login required to access this resource. Defaults to `optional`.
696 "script": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700697 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700698 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
699 "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 be stopped and replaced with new instances. Only applicable for VM runtimes. Only returned in `GET` requests if `view=FULL` is set.
700 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
701 "checkInterval": "A String", # Interval between health checks.
702 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
703 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
704 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
705 "timeout": "A String", # Time before the health check is considered failed.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700706 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
707 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700708 "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.
709 "libraries": [ # Configuration for third-party Python runtime libraries required by the application. Only returned in `GET` requests if `view=FULL` is set.
710 { # Third-party Python runtime library that is required by the application.
711 "version": "A String", # Version of the library to select, or "latest".
712 "name": "A String", # Name of the library. Example: "django".
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700713 },
714 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700715 "deployer": "A String", # Email address of the user who created this version. @OutputOnly
716 "env": "A String", # App Engine execution environment to use for this version. Defaults to `1`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700717 "diskUsageBytes": "A String", # Total size of version files hosted on App Engine disk in bytes. @OutputOnly
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700718 "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.
719 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
720 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
721 "targetReceivedBytesPerSec": 42, # Target bytes received per second.
722 "targetSentBytesPerSec": 42, # Target bytes sent per second.
723 "targetReceivedPacketsPerSec": 42, # Target packets received per second.
724 "targetSentPacketsPerSec": 42, # Target packets sent per second.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700725 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700726 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
727 "targetWriteOpsPerSec": 42, # Target ops written per second.
728 "targetReadBytesPerSec": 42, # Target bytes read per second.
729 "targetReadOpsPerSec": 42, # Target ops read per second.
730 "targetWriteBytesPerSec": 42, # Target bytes written per second.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700731 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700732 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
733 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
734 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module.
735 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700736 "targetConcurrentRequests": 42, # Target number of concurrent requests.
737 "targetRequestCountPerSec": 42, # Target requests per second.
738 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700739 "coolDownPeriod": "A String", # Amount of time that the [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait between changes to the number of virtual machines. Only applicable for VM runtimes.
740 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
741 "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.
742 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700743 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700744 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
745 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700746 },
747 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700748 "envVariables": { # Environment variables made available to the application. Only returned in `GET` requests if `view=FULL` is set.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700749 "a_key": "A String",
750 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700751 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
752 "diskGb": 3.14, # Disk size (GB) needed.
753 "cpu": 3.14, # Number of CPU cores needed.
754 "memoryGb": 3.14, # Memory (GB) needed.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700755 },
756 "manualScaling": { # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700757 "instances": 42, # Number of instances to assign to the service 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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700758 },
759 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
760 "A String",
761 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700762 "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.
763 "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.
764 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
765 "mimeType": "A String", # The MIME type of the file. Defaults to the value from Google Cloud Storage.
766 "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/\/\'.
767 "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700768 },
769 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700770 "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.
771 { # Reference to a particular snapshot of the source tree used to build and deploy the application.
772 "revisionId": "A String", # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): "2198322f89e0bb2e25021667c2ed489d1fd34e6b"
773 "repository": "A String", # URI string identifying the repository. Example: "https://source.developers.google.com/p/app-123/r/default"
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700774 },
775 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700776 "container": { # Docker image that is used to start a VM container for the version you deploy. # A Docker image that App Engine uses the run the version. Only applicable for instances in App Engine flexible environment.
777 "image": "A String", # URI to the hosted container image in a Docker repository. 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"
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700778 },
779 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700780 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
781 "instanceTag": "A String", # Tag to apply to the VM instance during creation.
782 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700783 "A String",
784 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700785 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path. Defaults to `default`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700786 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700787 "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.
788 "name": "A String", # Full path to the Version resource in the API. Example: `apps/myapp/services/default/versions/v1`. @OutputOnly
789 "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.
790 { # 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.
791 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
792 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to `redirect`.
793 "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.
794 "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.
795 "scriptPath": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700796 },
797 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700798 "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.
799 "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.
800 "expiration": "A String", # Time a static file served by this handler should be cached.
801 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
802 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
803 "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.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700804 "httpHeaders": { # HTTP headers to use for all responses from these URLs.
805 "a_key": "A String",
806 },
807 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700808 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
809 "scriptPath": "A String", # Path to the script from the application root directory.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700810 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700811 "login": "A String", # Level of login required to access this resource.
812 "redirectHttpResponseCode": "A String", # `30x` code to use when performing redirects for the `secure` field. Defaults to `302`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700813 },
814 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700815 "creationTime": "A String", # Time that this version was created. @OutputOnly
816 "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`.
817 "runtime": "A String", # Desired runtime. Example: `python27`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700818 }
819
820 mask: string, Standard field mask for the set of fields to be updated.
821 x__xgafv: string, V1 error format.
822
823Returns:
824 An object of the form:
825
826 { # This resource represents a long-running operation that is the result of a network API call.
827 "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`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700828 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700829 },
830 "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: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `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` which can be used for common error conditions. # Language mapping The `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 uses The 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: - 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. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - 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. - 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. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons. # The error result of the operation in case of failure.
831 "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.
832 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
833 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
834 {
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700835 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700836 },
837 ],
838 },
839 "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.
840 "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`.
841 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700842 "a_key": "", # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700843 },
844 }</pre>
845</div>
846
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800847</body></html>