blob: a33a37425b5730646c92281a7a54e7918b2d01bb [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001<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_v1.html">Google App Engine Admin API</a> . <a href="appengine_v1.apps.html">apps</a> . <a href="appengine_v1.apps.services.html">services</a> . <a href="appengine_v1.apps.services.versions.html">versions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="appengine_v1.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">
83 <code><a href="#create">create(appsId, servicesId, body, x__xgafv=None)</a></code></p>
84<p class="firstline">Deploys code and resource files to a new version.</p>
85<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 resource.</p>
88<p class="toc_element">
89 <code><a href="#get">get(appsId, servicesId, versionsId, x__xgafv=None, view=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080090<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 Parrott7d5badb2016-08-16 12:44:29 -070091<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>
97<p class="toc_element">
98 <code><a href="#patch">patch(appsId, servicesId, versionsId, body, updateMask=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080099<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/v1/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/v1/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/v1/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/v1/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 Parrott7d5badb2016-08-16 12:44:29 -0700100<h3>Method Details</h3>
101<div class="method">
102 <code class="details" id="create">create(appsId, servicesId, body, x__xgafv=None)</code>
103 <pre>Deploys code and resource files to a new version.
104
105Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800106 appsId: string, Part of `parent`. Name of the parent resource to create this version under. Example: apps/myapp/services/default. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700107 servicesId: string, Part of `parent`. See documentation of `appsId`. (required)
108 body: object, The request body. (required)
109 The object takes the form of:
110
111{ # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800112 "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
113 "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"
114 "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
115 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700116 "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.
117 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
118 "maxInstances": 42, # Maximum number of instances to create for this version.
119 },
120 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
121 "a_key": "A String",
122 },
123 "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800124 "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_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
125 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700126 { # Custom static error page to be served when an error occurs.
127 "errorCode": "A String", # Error condition this handler applies to.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800128 "mimeType": "A String", # MIME type of file. Defaults to text/html.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700129 "staticFile": "A String", # Static file content to be served for this error.
130 },
131 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800132 "id": "A String", # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-".
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700133 "readinessCheck": { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for VM instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
134 "checkInterval": "A String", # Interval between health checks.
135 "unhealthyThreshold": 42, # Number of consecutive failed checks required before removing traffic.
136 "healthyThreshold": 42, # Number of consecutive successful checks required before receiving traffic.
137 "host": "A String", # Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
138 "timeout": "A String", # Time before the check is considered failed.
139 "path": "A String", # The request path.
140 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800141 "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 Parrott7d5badb2016-08-16 12:44:29 -0700142 "url": "A String", # URL to serve the endpoint at.
143 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800144 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
145 "login": "A String", # Level of login required to access this resource. Defaults to optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700146 "script": "A String", # Path to the script from the application root directory.
147 },
148 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800149 "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700150 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
151 "checkInterval": "A String", # Interval between health checks.
152 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
153 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
154 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
155 "timeout": "A String", # Time before the health check is considered failed.
156 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
157 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800158 "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.
159 "versionUrl": "A String", # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly
160 "libraries": [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700161 { # Third-party Python runtime library that is required by the application.
162 "version": "A String", # Version of the library to select, or "latest".
163 "name": "A String", # Name of the library. Example: "django".
164 },
165 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800166 "env": "A String", # App Engine execution environment for this version.Defaults to standard.
167 "diskUsageBytes": "A String", # Total size in bytes of all the files that are included in this version and curerntly hosted on the App Engine disk.@OutputOnly
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700168 "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.
169 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
170 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
171 "targetReceivedPacketsPerSecond": 42, # Target packets received per second.
172 "targetSentPacketsPerSecond": 42, # Target packets sent per second.
173 "targetReceivedBytesPerSecond": 42, # Target bytes received per second.
174 "targetSentBytesPerSecond": 42, # Target bytes sent per second.
175 },
176 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
177 "targetReadOpsPerSecond": 42, # Target ops read per seconds.
178 "targetWriteBytesPerSecond": 42, # Target bytes written per second.
179 "targetReadBytesPerSecond": 42, # Target bytes read per second.
180 "targetWriteOpsPerSecond": 42, # Target ops written per second.
181 },
182 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
183 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
184 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
185 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
186 "targetConcurrentRequests": 42, # Target number of concurrent requests.
187 "targetRequestCountPerSecond": 42, # Target requests per second.
188 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800189 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700190 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800191 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700192 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
193 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
194 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
195 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
196 },
197 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800198 "envVariables": { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700199 "a_key": "A String",
200 },
201 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800202 "volumes": [ # User specified volumes.
203 { # Volumes mounted within the app container. Only applicable for VM runtimes.
204 "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'.
205 "name": "A String", # Unique name for the volume.
206 "sizeGb": 3.14, # Volume size in gigabytes.
207 },
208 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700209 "diskGb": 3.14, # Disk size (GB) needed.
210 "cpu": 3.14, # Number of CPU cores needed.
211 "memoryGb": 3.14, # Memory (GB) needed.
212 },
213 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800214 "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 Parrott7d5badb2016-08-16 12:44:29 -0700215 },
216 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
217 "A String",
218 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800219 "createdBy": "A String", # Email address of the user who created this version.@OutputOnly
220 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700221 "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.
222 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800223 "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage.
224 "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//'.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700225 "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
226 },
227 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700228 "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.
229 "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700230 },
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700231 "zip": { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700232 "filesCount": 42, # An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800233 "sourceUrl": "A String", # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com//'.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700234 },
235 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700236 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800237 "createTime": "A String", # Time that this version was created.@OutputOnly
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700238 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
239 "instanceTag": "A String", # Tag to apply to the VM instance during creation.
240 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
241 "A String",
242 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800243 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
244 "subnetworkName": "A String", # Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.If a subnetwork name is specified, a network name will also be required unless it is for the default network. If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range. If the network the VM instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network. If the network the VM instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.If specified, the subnetwork must exist in the same region as the Flex app.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700245 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700246 "livenessCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for VM instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
247 "checkInterval": "A String", # Interval between health checks.
248 "initialDelay": "A String", # The initial delay before starting to execute the checks.
249 "unhealthyThreshold": 42, # Number of consecutive failed checks required before considering the VM unhealthy.
250 "healthyThreshold": 42, # Number of consecutive successful checks required before considering the VM healthy.
251 "host": "A String", # Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
252 "timeout": "A String", # Time before the check is considered failed.
253 "path": "A String", # The request path.
254 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800255 "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
256 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700257 { # 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.
258 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800259 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700260 "urlRegex": "A String", # 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.
261 "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.
262 "scriptPath": "A String", # Path to the script from the application root directory.
263 },
264 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800265 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700266 "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.
267 "expiration": "A String", # Time a static file served by this handler should be cached by web proxies and browsers.
268 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
269 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
270 "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.
271 "httpHeaders": { # HTTP headers to use for all responses from these URLs.
272 "a_key": "A String",
273 },
274 },
275 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
276 "scriptPath": "A String", # Path to the script from the application root directory.
277 },
278 "login": "A String", # Level of login required to access this resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800279 "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700280 },
281 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800282 "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.
283 "runtime": "A String", # Desired runtime. Example: python27.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700284 }
285
286 x__xgafv: string, V1 error format.
287
288Returns:
289 An object of the form:
290
291 { # This resource represents a long-running operation that is the result of a network API call.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800292 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700293 "a_key": "", # Properties of the object. Contains field @type with type URL.
294 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800295 "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 needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc which can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include: 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 or cancellation.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700296 "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.
297 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
298 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
299 {
300 "a_key": "", # Properties of the object. Contains field @type with type URL.
301 },
302 ],
303 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800304 "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.
305 "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 Parrott7d5badb2016-08-16 12:44:29 -0700306 "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.
307 "a_key": "", # Properties of the object. Contains field @type with type URL.
308 },
309 }</pre>
310</div>
311
312<div class="method">
313 <code class="details" id="delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</code>
314 <pre>Deletes an existing Version resource.
315
316Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800317 appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700318 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
319 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
320 x__xgafv: string, V1 error format.
321
322Returns:
323 An object of the form:
324
325 { # This resource represents a long-running operation that is the result of a network API call.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800326 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700327 "a_key": "", # Properties of the object. Contains field @type with type URL.
328 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800329 "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 needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc which can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include: 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 or cancellation.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700330 "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.
331 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
332 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
333 {
334 "a_key": "", # Properties of the object. Contains field @type with type URL.
335 },
336 ],
337 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800338 "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.
339 "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 Parrott7d5badb2016-08-16 12:44:29 -0700340 "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.
341 "a_key": "", # Properties of the object. Contains field @type with type URL.
342 },
343 }</pre>
344</div>
345
346<div class="method">
347 <code class="details" id="get">get(appsId, servicesId, versionsId, x__xgafv=None, view=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800348 <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 Parrott7d5badb2016-08-16 12:44:29 -0700349
350Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800351 appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700352 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
353 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
354 x__xgafv: string, V1 error format.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800355 view: string, Controls the set of fields returned in the Get response.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700356
357Returns:
358 An object of the form:
359
360 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800361 "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
362 "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"
363 "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
364 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700365 "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.
366 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
367 "maxInstances": 42, # Maximum number of instances to create for this version.
368 },
369 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
370 "a_key": "A String",
371 },
372 "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800373 "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_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
374 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700375 { # Custom static error page to be served when an error occurs.
376 "errorCode": "A String", # Error condition this handler applies to.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800377 "mimeType": "A String", # MIME type of file. Defaults to text/html.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700378 "staticFile": "A String", # Static file content to be served for this error.
379 },
380 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800381 "id": "A String", # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-".
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700382 "readinessCheck": { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for VM instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
383 "checkInterval": "A String", # Interval between health checks.
384 "unhealthyThreshold": 42, # Number of consecutive failed checks required before removing traffic.
385 "healthyThreshold": 42, # Number of consecutive successful checks required before receiving traffic.
386 "host": "A String", # Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
387 "timeout": "A String", # Time before the check is considered failed.
388 "path": "A String", # The request path.
389 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800390 "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 Parrott7d5badb2016-08-16 12:44:29 -0700391 "url": "A String", # URL to serve the endpoint at.
392 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800393 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
394 "login": "A String", # Level of login required to access this resource. Defaults to optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700395 "script": "A String", # Path to the script from the application root directory.
396 },
397 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800398 "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700399 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
400 "checkInterval": "A String", # Interval between health checks.
401 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
402 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
403 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
404 "timeout": "A String", # Time before the health check is considered failed.
405 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
406 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800407 "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.
408 "versionUrl": "A String", # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly
409 "libraries": [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700410 { # Third-party Python runtime library that is required by the application.
411 "version": "A String", # Version of the library to select, or "latest".
412 "name": "A String", # Name of the library. Example: "django".
413 },
414 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800415 "env": "A String", # App Engine execution environment for this version.Defaults to standard.
416 "diskUsageBytes": "A String", # Total size in bytes of all the files that are included in this version and curerntly hosted on the App Engine disk.@OutputOnly
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700417 "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.
418 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
419 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
420 "targetReceivedPacketsPerSecond": 42, # Target packets received per second.
421 "targetSentPacketsPerSecond": 42, # Target packets sent per second.
422 "targetReceivedBytesPerSecond": 42, # Target bytes received per second.
423 "targetSentBytesPerSecond": 42, # Target bytes sent per second.
424 },
425 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
426 "targetReadOpsPerSecond": 42, # Target ops read per seconds.
427 "targetWriteBytesPerSecond": 42, # Target bytes written per second.
428 "targetReadBytesPerSecond": 42, # Target bytes read per second.
429 "targetWriteOpsPerSecond": 42, # Target ops written per second.
430 },
431 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
432 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
433 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
434 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
435 "targetConcurrentRequests": 42, # Target number of concurrent requests.
436 "targetRequestCountPerSecond": 42, # Target requests per second.
437 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800438 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700439 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800440 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700441 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
442 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
443 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
444 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
445 },
446 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800447 "envVariables": { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700448 "a_key": "A String",
449 },
450 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800451 "volumes": [ # User specified volumes.
452 { # Volumes mounted within the app container. Only applicable for VM runtimes.
453 "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'.
454 "name": "A String", # Unique name for the volume.
455 "sizeGb": 3.14, # Volume size in gigabytes.
456 },
457 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700458 "diskGb": 3.14, # Disk size (GB) needed.
459 "cpu": 3.14, # Number of CPU cores needed.
460 "memoryGb": 3.14, # Memory (GB) needed.
461 },
462 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800463 "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 Parrott7d5badb2016-08-16 12:44:29 -0700464 },
465 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
466 "A String",
467 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800468 "createdBy": "A String", # Email address of the user who created this version.@OutputOnly
469 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700470 "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.
471 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800472 "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage.
473 "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//'.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700474 "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
475 },
476 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700477 "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.
478 "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700479 },
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700480 "zip": { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700481 "filesCount": 42, # An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800482 "sourceUrl": "A String", # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com//'.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700483 },
484 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700485 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800486 "createTime": "A String", # Time that this version was created.@OutputOnly
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700487 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
488 "instanceTag": "A String", # Tag to apply to the VM instance during creation.
489 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
490 "A String",
491 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800492 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
493 "subnetworkName": "A String", # Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.If a subnetwork name is specified, a network name will also be required unless it is for the default network. If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range. If the network the VM instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network. If the network the VM instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.If specified, the subnetwork must exist in the same region as the Flex app.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700494 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700495 "livenessCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for VM instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
496 "checkInterval": "A String", # Interval between health checks.
497 "initialDelay": "A String", # The initial delay before starting to execute the checks.
498 "unhealthyThreshold": 42, # Number of consecutive failed checks required before considering the VM unhealthy.
499 "healthyThreshold": 42, # Number of consecutive successful checks required before considering the VM healthy.
500 "host": "A String", # Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
501 "timeout": "A String", # Time before the check is considered failed.
502 "path": "A String", # The request path.
503 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800504 "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
505 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700506 { # 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.
507 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800508 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700509 "urlRegex": "A String", # 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.
510 "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.
511 "scriptPath": "A String", # Path to the script from the application root directory.
512 },
513 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800514 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700515 "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.
516 "expiration": "A String", # Time a static file served by this handler should be cached by web proxies and browsers.
517 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
518 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
519 "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.
520 "httpHeaders": { # HTTP headers to use for all responses from these URLs.
521 "a_key": "A String",
522 },
523 },
524 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
525 "scriptPath": "A String", # Path to the script from the application root directory.
526 },
527 "login": "A String", # Level of login required to access this resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800528 "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700529 },
530 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800531 "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.
532 "runtime": "A String", # Desired runtime. Example: python27.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700533 }</pre>
534</div>
535
536<div class="method">
537 <code class="details" id="list">list(appsId, servicesId, pageSize=None, x__xgafv=None, pageToken=None, view=None)</code>
538 <pre>Lists the versions of a service.
539
540Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800541 appsId: string, Part of `parent`. Name of the parent Service resource. Example: apps/myapp/services/default. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700542 servicesId: string, Part of `parent`. See documentation of `appsId`. (required)
543 pageSize: integer, Maximum results to return per page.
544 x__xgafv: string, V1 error format.
545 pageToken: string, Continuation token for fetching the next page of results.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800546 view: string, Controls the set of fields returned in the List response.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700547
548Returns:
549 An object of the form:
550
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800551 { # Response message for Versions.ListVersions.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700552 "nextPageToken": "A String", # Continuation token for fetching the next page of results.
553 "versions": [ # The versions belonging to the requested service.
554 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800555 "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
556 "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"
557 "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
558 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700559 "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.
560 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
561 "maxInstances": 42, # Maximum number of instances to create for this version.
562 },
563 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
564 "a_key": "A String",
565 },
566 "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800567 "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_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
568 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700569 { # Custom static error page to be served when an error occurs.
570 "errorCode": "A String", # Error condition this handler applies to.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800571 "mimeType": "A String", # MIME type of file. Defaults to text/html.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700572 "staticFile": "A String", # Static file content to be served for this error.
573 },
574 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800575 "id": "A String", # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-".
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700576 "readinessCheck": { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for VM instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
577 "checkInterval": "A String", # Interval between health checks.
578 "unhealthyThreshold": 42, # Number of consecutive failed checks required before removing traffic.
579 "healthyThreshold": 42, # Number of consecutive successful checks required before receiving traffic.
580 "host": "A String", # Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
581 "timeout": "A String", # Time before the check is considered failed.
582 "path": "A String", # The request path.
583 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800584 "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 Parrott7d5badb2016-08-16 12:44:29 -0700585 "url": "A String", # URL to serve the endpoint at.
586 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800587 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
588 "login": "A String", # Level of login required to access this resource. Defaults to optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700589 "script": "A String", # Path to the script from the application root directory.
590 },
591 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800592 "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700593 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
594 "checkInterval": "A String", # Interval between health checks.
595 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
596 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
597 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
598 "timeout": "A String", # Time before the health check is considered failed.
599 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
600 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800601 "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.
602 "versionUrl": "A String", # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly
603 "libraries": [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700604 { # Third-party Python runtime library that is required by the application.
605 "version": "A String", # Version of the library to select, or "latest".
606 "name": "A String", # Name of the library. Example: "django".
607 },
608 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800609 "env": "A String", # App Engine execution environment for this version.Defaults to standard.
610 "diskUsageBytes": "A String", # Total size in bytes of all the files that are included in this version and curerntly hosted on the App Engine disk.@OutputOnly
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700611 "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.
612 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
613 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
614 "targetReceivedPacketsPerSecond": 42, # Target packets received per second.
615 "targetSentPacketsPerSecond": 42, # Target packets sent per second.
616 "targetReceivedBytesPerSecond": 42, # Target bytes received per second.
617 "targetSentBytesPerSecond": 42, # Target bytes sent per second.
618 },
619 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
620 "targetReadOpsPerSecond": 42, # Target ops read per seconds.
621 "targetWriteBytesPerSecond": 42, # Target bytes written per second.
622 "targetReadBytesPerSecond": 42, # Target bytes read per second.
623 "targetWriteOpsPerSecond": 42, # Target ops written per second.
624 },
625 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
626 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
627 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
628 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
629 "targetConcurrentRequests": 42, # Target number of concurrent requests.
630 "targetRequestCountPerSecond": 42, # Target requests per second.
631 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800632 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700633 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800634 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700635 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
636 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
637 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
638 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
639 },
640 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800641 "envVariables": { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700642 "a_key": "A String",
643 },
644 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800645 "volumes": [ # User specified volumes.
646 { # Volumes mounted within the app container. Only applicable for VM runtimes.
647 "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'.
648 "name": "A String", # Unique name for the volume.
649 "sizeGb": 3.14, # Volume size in gigabytes.
650 },
651 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700652 "diskGb": 3.14, # Disk size (GB) needed.
653 "cpu": 3.14, # Number of CPU cores needed.
654 "memoryGb": 3.14, # Memory (GB) needed.
655 },
656 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800657 "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 Parrott7d5badb2016-08-16 12:44:29 -0700658 },
659 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
660 "A String",
661 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800662 "createdBy": "A String", # Email address of the user who created this version.@OutputOnly
663 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700664 "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.
665 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800666 "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage.
667 "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//'.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700668 "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
669 },
670 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700671 "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.
672 "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700673 },
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700674 "zip": { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700675 "filesCount": 42, # An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800676 "sourceUrl": "A String", # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com//'.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700677 },
678 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700679 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800680 "createTime": "A String", # Time that this version was created.@OutputOnly
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700681 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
682 "instanceTag": "A String", # Tag to apply to the VM instance during creation.
683 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
684 "A String",
685 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800686 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
687 "subnetworkName": "A String", # Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.If a subnetwork name is specified, a network name will also be required unless it is for the default network. If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range. If the network the VM instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network. If the network the VM instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.If specified, the subnetwork must exist in the same region as the Flex app.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700688 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700689 "livenessCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for VM instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
690 "checkInterval": "A String", # Interval between health checks.
691 "initialDelay": "A String", # The initial delay before starting to execute the checks.
692 "unhealthyThreshold": 42, # Number of consecutive failed checks required before considering the VM unhealthy.
693 "healthyThreshold": 42, # Number of consecutive successful checks required before considering the VM healthy.
694 "host": "A String", # Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
695 "timeout": "A String", # Time before the check is considered failed.
696 "path": "A String", # The request path.
697 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800698 "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
699 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700700 { # 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.
701 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800702 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700703 "urlRegex": "A String", # 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.
704 "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.
705 "scriptPath": "A String", # Path to the script from the application root directory.
706 },
707 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800708 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700709 "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.
710 "expiration": "A String", # Time a static file served by this handler should be cached by web proxies and browsers.
711 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
712 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
713 "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.
714 "httpHeaders": { # HTTP headers to use for all responses from these URLs.
715 "a_key": "A String",
716 },
717 },
718 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
719 "scriptPath": "A String", # Path to the script from the application root directory.
720 },
721 "login": "A String", # Level of login required to access this resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800722 "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700723 },
724 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800725 "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.
726 "runtime": "A String", # Desired runtime. Example: python27.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700727 },
728 ],
729 }</pre>
730</div>
731
732<div class="method">
733 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
734 <pre>Retrieves the next page of results.
735
736Args:
737 previous_request: The request for the previous page. (required)
738 previous_response: The response from the request for the previous page. (required)
739
740Returns:
741 A request object that you can call 'execute()' on to request the next
742 page. Returns None if there are no more items in the collection.
743 </pre>
744</div>
745
746<div class="method">
747 <code class="details" id="patch">patch(appsId, servicesId, versionsId, body, updateMask=None, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800748 <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/v1/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/v1/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/v1/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/v1/apps.services.versions#Version.FIELDS.automatic_scaling): For Version resources that use automatic scaling and run in the App Engine standard environment.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700749
750Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800751 appsId: string, Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700752 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
753 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
754 body: object, The request body. (required)
755 The object takes the form of:
756
757{ # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800758 "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
759 "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"
760 "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
761 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700762 "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.
763 "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
764 "maxInstances": 42, # Maximum number of instances to create for this version.
765 },
766 "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
767 "a_key": "A String",
768 },
769 "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800770 "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_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
771 "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700772 { # Custom static error page to be served when an error occurs.
773 "errorCode": "A String", # Error condition this handler applies to.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800774 "mimeType": "A String", # MIME type of file. Defaults to text/html.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700775 "staticFile": "A String", # Static file content to be served for this error.
776 },
777 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800778 "id": "A String", # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-".
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700779 "readinessCheck": { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for VM instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
780 "checkInterval": "A String", # Interval between health checks.
781 "unhealthyThreshold": 42, # Number of consecutive failed checks required before removing traffic.
782 "healthyThreshold": 42, # Number of consecutive successful checks required before receiving traffic.
783 "host": "A String", # Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
784 "timeout": "A String", # Time before the check is considered failed.
785 "path": "A String", # The request path.
786 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800787 "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 Parrott7d5badb2016-08-16 12:44:29 -0700788 "url": "A String", # URL to serve the endpoint at.
789 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800790 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
791 "login": "A String", # Level of login required to access this resource. Defaults to optional.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700792 "script": "A String", # Path to the script from the application root directory.
793 },
794 "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800795 "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700796 "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
797 "checkInterval": "A String", # Interval between health checks.
798 "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
799 "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
800 "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
801 "timeout": "A String", # Time before the health check is considered failed.
802 "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
803 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800804 "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.
805 "versionUrl": "A String", # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly
806 "libraries": [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700807 { # Third-party Python runtime library that is required by the application.
808 "version": "A String", # Version of the library to select, or "latest".
809 "name": "A String", # Name of the library. Example: "django".
810 },
811 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800812 "env": "A String", # App Engine execution environment for this version.Defaults to standard.
813 "diskUsageBytes": "A String", # Total size in bytes of all the files that are included in this version and curerntly hosted on the App Engine disk.@OutputOnly
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700814 "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.
815 "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
816 "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
817 "targetReceivedPacketsPerSecond": 42, # Target packets received per second.
818 "targetSentPacketsPerSecond": 42, # Target packets sent per second.
819 "targetReceivedBytesPerSecond": 42, # Target bytes received per second.
820 "targetSentBytesPerSecond": 42, # Target bytes sent per second.
821 },
822 "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
823 "targetReadOpsPerSecond": 42, # Target ops read per seconds.
824 "targetWriteBytesPerSecond": 42, # Target bytes written per second.
825 "targetReadBytesPerSecond": 42, # Target bytes read per second.
826 "targetWriteOpsPerSecond": 42, # Target ops written per second.
827 },
828 "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
829 "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
830 "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
831 "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
832 "targetConcurrentRequests": 42, # Target number of concurrent requests.
833 "targetRequestCountPerSecond": 42, # Target requests per second.
834 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800835 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700836 "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800837 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700838 "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
839 "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
840 "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
841 "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
842 },
843 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800844 "envVariables": { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700845 "a_key": "A String",
846 },
847 "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800848 "volumes": [ # User specified volumes.
849 { # Volumes mounted within the app container. Only applicable for VM runtimes.
850 "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'.
851 "name": "A String", # Unique name for the volume.
852 "sizeGb": 3.14, # Volume size in gigabytes.
853 },
854 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700855 "diskGb": 3.14, # Disk size (GB) needed.
856 "cpu": 3.14, # Number of CPU cores needed.
857 "memoryGb": 3.14, # Memory (GB) needed.
858 },
859 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800860 "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 Parrott7d5badb2016-08-16 12:44:29 -0700861 },
862 "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
863 "A String",
864 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800865 "createdBy": "A String", # Email address of the user who created this version.@OutputOnly
866 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700867 "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.
868 "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800869 "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage.
870 "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//'.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700871 "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
872 },
873 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700874 "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.
875 "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700876 },
Jon Wayne Parrottdc6c1ef2016-10-14 11:04:30 -0700877 "zip": { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700878 "filesCount": 42, # An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800879 "sourceUrl": "A String", # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com//'.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700880 },
881 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700882 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800883 "createTime": "A String", # Time that this version was created.@OutputOnly
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700884 "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
885 "instanceTag": "A String", # Tag to apply to the VM instance during creation.
886 "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
887 "A String",
888 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800889 "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
890 "subnetworkName": "A String", # Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.If a subnetwork name is specified, a network name will also be required unless it is for the default network. If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range. If the network the VM instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network. If the network the VM instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.If specified, the subnetwork must exist in the same region as the Flex app.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700891 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700892 "livenessCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for VM instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
893 "checkInterval": "A String", # Interval between health checks.
894 "initialDelay": "A String", # The initial delay before starting to execute the checks.
895 "unhealthyThreshold": 42, # Number of consecutive failed checks required before considering the VM unhealthy.
896 "healthyThreshold": 42, # Number of consecutive successful checks required before considering the VM healthy.
897 "host": "A String", # Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
898 "timeout": "A String", # Time before the check is considered failed.
899 "path": "A String", # The request path.
900 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800901 "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
902 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700903 { # 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.
904 "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800905 "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700906 "urlRegex": "A String", # 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.
907 "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.
908 "scriptPath": "A String", # Path to the script from the application root directory.
909 },
910 "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.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800911 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700912 "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.
913 "expiration": "A String", # Time a static file served by this handler should be cached by web proxies and browsers.
914 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
915 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
916 "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.
917 "httpHeaders": { # HTTP headers to use for all responses from these URLs.
918 "a_key": "A String",
919 },
920 },
921 "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
922 "scriptPath": "A String", # Path to the script from the application root directory.
923 },
924 "login": "A String", # Level of login required to access this resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800925 "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700926 },
927 ],
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800928 "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.
929 "runtime": "A String", # Desired runtime. Example: python27.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700930 }
931
932 updateMask: string, Standard field mask for the set of fields to be updated.
933 x__xgafv: string, V1 error format.
934
935Returns:
936 An object of the form:
937
938 { # This resource represents a long-running operation that is the result of a network API call.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800939 "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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700940 "a_key": "", # Properties of the object. Contains field @type with type URL.
941 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800942 "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 needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc which can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include: 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 or cancellation.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700943 "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.
944 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
945 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
946 {
947 "a_key": "", # Properties of the object. Contains field @type with type URL.
948 },
949 ],
950 },
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800951 "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.
952 "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 Parrott7d5badb2016-08-16 12:44:29 -0700953 "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.
954 "a_key": "", # Properties of the object. Contains field @type with type URL.
955 },
956 }</pre>
957</div>
958
959</body></html>