blob: 77a0a9a4dc5f0b24839b84d3bdcb22a4b6ecc65a [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001<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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="appengine_v1beta.html">App Engine Admin API</a> . <a href="appengine_v1beta.apps.html">apps</a> . <a href="appengine_v1beta.apps.services.html">services</a> . <a href="appengine_v1beta.apps.services.versions.html">versions</a></h1>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="appengine_v1beta.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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#create">create(appsId, servicesId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040087<p class="firstline">Deploys code and resource files to a new version.</p>
88<p class="toc_element">
89 <code><a href="#delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</a></code></p>
90<p class="firstline">Deletes an existing Version resource.</p>
91<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070092 <code><a href="#get">get(appsId, servicesId, versionsId, view=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040093<p class="firstline">Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.</p>
94<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070095 <code><a href="#list">list(appsId, servicesId, pageToken=None, view=None, pageSize=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040096<p class="firstline">Lists the versions of a service.</p>
97<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#patch">patch(appsId, servicesId, versionsId, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102<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:Standard environment instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.instance_class)automatic scaling in the standard environment: automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings.max_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_cpu_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_throughput_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings)basic scaling or manual scaling in the standard environment: serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status) manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#manualscaling)Flexible environment serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status)automatic scaling in the flexible environment: automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling)manual scaling in the flexible environment: manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#manualscaling)</p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400103<h3>Method Details</h3>
104<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105 <code class="details" id="close">close()</code>
106 <pre>Close httplib2 connections.</pre>
107</div>
108
109<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 <code class="details" id="create">create(appsId, servicesId, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400111 <pre>Deploys code and resource files to a new version.
112
113Args:
114 appsId: string, Part of `parent`. Name of the parent resource to create this version under. Example: apps/myapp/services/default. (required)
115 servicesId: string, Part of `parent`. See documentation of `appsId`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400117 The object takes the form of:
118
119{ # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700120 &quot;servingStatus&quot;: &quot;A String&quot;, # 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.
121 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700122 &quot;A String&quot;,
123 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
125 { # Custom static error page to be served when an error occurs.
126 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
127 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
128 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700129 },
130 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700131 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
132 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
133 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
134 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
135 &quot;kmsKeyReference&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS. Only should be used by Cloud Composer to encrypt the vm disk
136 &quot;volumes&quot;: [ # User specified volumes.
137 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
138 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
139 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
140 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
141 },
142 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700143 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700144 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
145 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
146 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700147 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700148 &quot;handlers&quot;: [ # 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.
149 { # 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.
150 &quot;script&quot;: { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example &quot;script&quot;: &quot;auto&quot;.
151 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
152 },
153 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
154 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
155 },
156 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
157 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.
158 &quot;urlRegex&quot;: &quot;A String&quot;, # 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.
159 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
160 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
161 &quot;staticFiles&quot;: { # 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.
162 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
163 &quot;applicationReadable&quot;: 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.
164 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
165 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type used to serve all files served by this handler.Defaults to file-specific MIME types, which are derived from each file&#x27;s filename extension.
166 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
167 &quot;a_key&quot;: &quot;A String&quot;,
168 },
169 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
170 &quot;path&quot;: &quot;A String&quot;, # 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.
171 },
172 },
173 ],
174 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
175 &quot;defaultExpiration&quot;: &quot;A String&quot;, # 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/v1beta/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
176 &quot;runtimeApiVersion&quot;: &quot;A String&quot;, # The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref
177 &quot;healthCheck&quot;: { # 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 instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment.Only returned in GET requests if view=FULL is set.
178 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
179 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
180 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
181 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
182 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
183 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
184 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700185 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700186 &quot;endpointsApiService&quot;: { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration ID of a &quot;service&quot; 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.
187 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
188 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
189 &quot;configId&quot;: &quot;A String&quot;, # Endpoints service configuration ID as specified by the Service Management API. For example &quot;2016-09-19r1&quot;.By default, the rollout strategy for Endpoints is RolloutStrategy.FIXED. This means that Endpoints starts up with a particular configuration ID. When a new configuration is rolled out, Endpoints must be given the new configuration ID. The config_id field is used to give the configuration ID and is required in this case.Endpoints also has a rollout strategy called RolloutStrategy.MANAGED. When using this, Endpoints fetches the latest configuration and does not need the configuration ID. In this case, config_id must be omitted.
190 &quot;name&quot;: &quot;A String&quot;, # Endpoints service name which is the name of the &quot;service&quot; resource in the Service Management API. For example &quot;myapi.endpoints.myproject.cloud.goog&quot;
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700191 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700192 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
193 &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly
194 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
195 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700196 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700197 &quot;deployment&quot;: { # 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.
198 &quot;files&quot;: { # 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.
199 &quot;a_key&quot;: { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
200 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
201 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
202 &quot;sourceUrl&quot;: &quot;A String&quot;, # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form &#x27;http(s)://storage.googleapis.com//&#x27;.
203 },
204 },
205 &quot;cloudBuildOptions&quot;: { # Options for the build operations performed as a part of the version deployment. Only applicable for App Engine flexible environment when creating a version using source code directly. # Options for any Google Cloud Build builds created as a part of this deployment.These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.
206 &quot;cloudBuildTimeout&quot;: &quot;A String&quot;, # The Cloud Build timeout used as part of any dependent builds performed by version creation. Defaults to 10 minutes.
207 &quot;appYamlPath&quot;: &quot;A String&quot;, # Path to the yaml file used in deployment, used to determine runtime configuration details.Required for flexible environment builds.See https://cloud.google.com/appengine/docs/standard/python/config/appref for more details.
208 },
209 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
210 &quot;sourceUrl&quot;: &quot;A String&quot;, # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form &#x27;http(s)://storage.googleapis.com//&#x27;.
211 &quot;filesCount&quot;: 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.
212 },
213 &quot;container&quot;: { # 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.
214 &quot;image&quot;: &quot;A String&quot;, # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: &quot;gcr.io/my-project/image:tag&quot; or &quot;gcr.io/my-project/image@digest&quot;
215 },
216 &quot;build&quot;: { # Google Cloud Build information. # Google Cloud Build build information. Only applicable for instances running in the App Engine flexible environment.
217 &quot;cloudBuildId&quot;: &quot;A String&quot;, # The Google Cloud Build id. Example: &quot;f966068f-08b2-42c8-bdfe-74137dff2bf9&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700218 },
219 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700220 &quot;instanceClass&quot;: &quot;A String&quot;, # 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.
221 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
222 &quot;manualScaling&quot;: { # 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. Manually scaled versions are sometimes referred to as &quot;backends&quot;.
223 &quot;instances&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700224 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700225 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
226 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700227 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700228 &quot;apiConfig&quot;: { # 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.
229 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
230 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
231 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
232 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
233 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700234 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700235 &quot;versionUrl&quot;: &quot;A String&quot;, # Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
236 &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
237 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
238 &quot;a_key&quot;: &quot;A String&quot;,
239 },
240 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
241 &quot;readinessCheck&quot;: { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
242 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
243 &quot;appStartTimeout&quot;: &quot;A String&quot;, # A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
244 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
245 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
246 &quot;path&quot;: &quot;A String&quot;, # The request path.
247 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
248 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
249 },
250 &quot;automaticScaling&quot;: { # 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. Instances are dynamically created and destroyed as needed in order to handle traffic.
251 &quot;maxConcurrentRequests&quot;: 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value.
252 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
253 &quot;minIdleInstances&quot;: 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
254 &quot;coolDownPeriod&quot;: &quot;A String&quot;, # The time period that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment.
255 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
256 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
257 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
258 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
259 },
260 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
261 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
262 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
263 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
264 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
265 },
266 &quot;minPendingLatency&quot;: &quot;A String&quot;, # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
267 &quot;maxPendingLatency&quot;: &quot;A String&quot;, # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
268 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
269 &quot;customMetrics&quot;: [ # Target scaling by user-provided metrics. Only applicable in the App Engine flexible environment.
270 { # Allows autoscaling based on Stackdriver metrics.
271 &quot;singleInstanceAssignment&quot;: 3.14, # May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment.
272 &quot;metricName&quot;: &quot;A String&quot;, # The name of the metric.
273 &quot;filter&quot;: &quot;A String&quot;, # Allows filtering on the metric&#x27;s fields.
274 &quot;targetType&quot;: &quot;A String&quot;, # The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
275 &quot;targetUtilization&quot;: 3.14, # The target value for the metric.
276 },
277 ],
278 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
279 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
280 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
281 },
282 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
283 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
284 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
285 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to zero to disable max_instances configuration.
286 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
287 },
288 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
289 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
290 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
291 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
292 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
293 },
294 },
295 &quot;nobuildFilesRegex&quot;: &quot;A String&quot;, # 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.
296 &quot;libraries&quot;: [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
297 { # Third-party Python runtime library that is required by the application.
298 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
299 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
300 },
301 ],
302 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
303 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
304 &quot;A String&quot;,
305 ],
306 &quot;createdBy&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
307 &quot;id&quot;: &quot;A String&quot;, # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: &quot;default&quot;, &quot;latest&quot;, and any name with the prefix &quot;ah-&quot;.
308 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
309 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
310 },
311 &quot;livenessCheck&quot;: { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
312 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
313 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
314 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
315 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
316 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
317 &quot;path&quot;: &quot;A String&quot;, # The request path.
318 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
319 },
320 &quot;basicScaling&quot;: { # 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.
321 &quot;idleTimeout&quot;: &quot;A String&quot;, # Duration of time after the last request that an instance must wait before the instance is shut down.
322 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
323 },
324 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
325 &quot;network&quot;: { # Extra network settings. Only applicable in the App Engine flexible environment. # Extra network settings. Only applicable in the App Engine flexible environment.
326 &quot;name&quot;: &quot;A String&quot;, # Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
327 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
328 &quot;subnetworkName&quot;: &quot;A String&quot;, # 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 that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range. If the network that the 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 that the 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 App Engine flexible environment application.
329 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
330 &quot;forwardedPorts&quot;: [ # List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.
331 &quot;A String&quot;,
332 ],
333 },
334 }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400335
336 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400337 Allowed values
338 1 - v1 error format
339 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400340
341Returns:
342 An object of the form:
343
344 { # This resource represents a long-running operation that is the result of a network API call.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700345 &quot;done&quot;: 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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700346 &quot;response&quot;: { # 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.
347 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
348 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 &quot;error&quot;: { # 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). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
350 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400351 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700352 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400353 },
354 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700355 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700356 &quot;message&quot;: &quot;A String&quot;, # 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400357 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700358 &quot;name&quot;: &quot;A String&quot;, # 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 be a resource name ending with operations/{unique_id}.
Bu Sun Kim65020912020-05-20 12:08:20 -0700359 &quot;metadata&quot;: { # 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.
360 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400361 },
362 }</pre>
363</div>
364
365<div class="method">
366 <code class="details" id="delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</code>
367 <pre>Deletes an existing Version resource.
368
369Args:
370 appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
371 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
372 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
373 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400374 Allowed values
375 1 - v1 error format
376 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400377
378Returns:
379 An object of the form:
380
381 { # This resource represents a long-running operation that is the result of a network API call.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700382 &quot;done&quot;: 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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 &quot;response&quot;: { # 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.
384 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
385 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 &quot;error&quot;: { # 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). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
387 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400388 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700389 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400390 },
391 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700392 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700393 &quot;message&quot;: &quot;A String&quot;, # 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400394 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700395 &quot;name&quot;: &quot;A String&quot;, # 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 be a resource name ending with operations/{unique_id}.
Bu Sun Kim65020912020-05-20 12:08:20 -0700396 &quot;metadata&quot;: { # 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.
397 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400398 },
399 }</pre>
400</div>
401
402<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 <code class="details" id="get">get(appsId, servicesId, versionsId, view=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400404 <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.
405
406Args:
407 appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
408 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
409 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 view: string, Controls the set of fields returned in the Get response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700411 Allowed values
412 BASIC - Basic version information including scaling and inbound services, but not detailed deployment information.
413 FULL - The information from BASIC, plus detailed information about the deployment. This format is required when creating resources, but is not returned in Get or List by default.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400414 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400415 Allowed values
416 1 - v1 error format
417 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400418
419Returns:
420 An object of the form:
421
422 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700423 &quot;servingStatus&quot;: &quot;A String&quot;, # 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.
424 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700425 &quot;A String&quot;,
426 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700427 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
428 { # Custom static error page to be served when an error occurs.
429 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
430 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
431 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700432 },
433 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700434 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
435 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
436 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
437 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
438 &quot;kmsKeyReference&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS. Only should be used by Cloud Composer to encrypt the vm disk
439 &quot;volumes&quot;: [ # User specified volumes.
440 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
441 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
442 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
443 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
444 },
445 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700446 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700447 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
448 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
449 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700450 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700451 &quot;handlers&quot;: [ # 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.
452 { # 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.
453 &quot;script&quot;: { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example &quot;script&quot;: &quot;auto&quot;.
454 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
455 },
456 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
457 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
458 },
459 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
460 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.
461 &quot;urlRegex&quot;: &quot;A String&quot;, # 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.
462 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
463 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
464 &quot;staticFiles&quot;: { # 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.
465 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
466 &quot;applicationReadable&quot;: 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.
467 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
468 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type used to serve all files served by this handler.Defaults to file-specific MIME types, which are derived from each file&#x27;s filename extension.
469 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
470 &quot;a_key&quot;: &quot;A String&quot;,
471 },
472 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
473 &quot;path&quot;: &quot;A String&quot;, # 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.
474 },
475 },
476 ],
477 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
478 &quot;defaultExpiration&quot;: &quot;A String&quot;, # 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/v1beta/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
479 &quot;runtimeApiVersion&quot;: &quot;A String&quot;, # The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref
480 &quot;healthCheck&quot;: { # 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 instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment.Only returned in GET requests if view=FULL is set.
481 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
482 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
483 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
484 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
485 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
486 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
487 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700488 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700489 &quot;endpointsApiService&quot;: { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration ID of a &quot;service&quot; 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.
490 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
491 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
492 &quot;configId&quot;: &quot;A String&quot;, # Endpoints service configuration ID as specified by the Service Management API. For example &quot;2016-09-19r1&quot;.By default, the rollout strategy for Endpoints is RolloutStrategy.FIXED. This means that Endpoints starts up with a particular configuration ID. When a new configuration is rolled out, Endpoints must be given the new configuration ID. The config_id field is used to give the configuration ID and is required in this case.Endpoints also has a rollout strategy called RolloutStrategy.MANAGED. When using this, Endpoints fetches the latest configuration and does not need the configuration ID. In this case, config_id must be omitted.
493 &quot;name&quot;: &quot;A String&quot;, # Endpoints service name which is the name of the &quot;service&quot; resource in the Service Management API. For example &quot;myapi.endpoints.myproject.cloud.goog&quot;
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700494 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700495 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
496 &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly
497 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
498 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700499 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700500 &quot;deployment&quot;: { # 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.
501 &quot;files&quot;: { # 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.
502 &quot;a_key&quot;: { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
503 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
504 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
505 &quot;sourceUrl&quot;: &quot;A String&quot;, # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form &#x27;http(s)://storage.googleapis.com//&#x27;.
506 },
507 },
508 &quot;cloudBuildOptions&quot;: { # Options for the build operations performed as a part of the version deployment. Only applicable for App Engine flexible environment when creating a version using source code directly. # Options for any Google Cloud Build builds created as a part of this deployment.These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.
509 &quot;cloudBuildTimeout&quot;: &quot;A String&quot;, # The Cloud Build timeout used as part of any dependent builds performed by version creation. Defaults to 10 minutes.
510 &quot;appYamlPath&quot;: &quot;A String&quot;, # Path to the yaml file used in deployment, used to determine runtime configuration details.Required for flexible environment builds.See https://cloud.google.com/appengine/docs/standard/python/config/appref for more details.
511 },
512 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
513 &quot;sourceUrl&quot;: &quot;A String&quot;, # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form &#x27;http(s)://storage.googleapis.com//&#x27;.
514 &quot;filesCount&quot;: 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.
515 },
516 &quot;container&quot;: { # 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.
517 &quot;image&quot;: &quot;A String&quot;, # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: &quot;gcr.io/my-project/image:tag&quot; or &quot;gcr.io/my-project/image@digest&quot;
518 },
519 &quot;build&quot;: { # Google Cloud Build information. # Google Cloud Build build information. Only applicable for instances running in the App Engine flexible environment.
520 &quot;cloudBuildId&quot;: &quot;A String&quot;, # The Google Cloud Build id. Example: &quot;f966068f-08b2-42c8-bdfe-74137dff2bf9&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700521 },
522 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700523 &quot;instanceClass&quot;: &quot;A String&quot;, # 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.
524 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
525 &quot;manualScaling&quot;: { # 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. Manually scaled versions are sometimes referred to as &quot;backends&quot;.
526 &quot;instances&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700527 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700528 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
529 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700530 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700531 &quot;apiConfig&quot;: { # 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.
532 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
533 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
534 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
535 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
536 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700537 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700538 &quot;versionUrl&quot;: &quot;A String&quot;, # Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
539 &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
540 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
541 &quot;a_key&quot;: &quot;A String&quot;,
542 },
543 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
544 &quot;readinessCheck&quot;: { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
545 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
546 &quot;appStartTimeout&quot;: &quot;A String&quot;, # A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
547 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
548 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
549 &quot;path&quot;: &quot;A String&quot;, # The request path.
550 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
551 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
552 },
553 &quot;automaticScaling&quot;: { # 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. Instances are dynamically created and destroyed as needed in order to handle traffic.
554 &quot;maxConcurrentRequests&quot;: 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value.
555 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
556 &quot;minIdleInstances&quot;: 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
557 &quot;coolDownPeriod&quot;: &quot;A String&quot;, # The time period that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment.
558 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
559 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
560 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
561 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
562 },
563 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
564 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
565 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
566 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
567 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
568 },
569 &quot;minPendingLatency&quot;: &quot;A String&quot;, # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
570 &quot;maxPendingLatency&quot;: &quot;A String&quot;, # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
571 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
572 &quot;customMetrics&quot;: [ # Target scaling by user-provided metrics. Only applicable in the App Engine flexible environment.
573 { # Allows autoscaling based on Stackdriver metrics.
574 &quot;singleInstanceAssignment&quot;: 3.14, # May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment.
575 &quot;metricName&quot;: &quot;A String&quot;, # The name of the metric.
576 &quot;filter&quot;: &quot;A String&quot;, # Allows filtering on the metric&#x27;s fields.
577 &quot;targetType&quot;: &quot;A String&quot;, # The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
578 &quot;targetUtilization&quot;: 3.14, # The target value for the metric.
579 },
580 ],
581 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
582 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
583 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
584 },
585 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
586 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
587 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
588 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to zero to disable max_instances configuration.
589 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
590 },
591 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
592 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
593 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
594 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
595 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
596 },
597 },
598 &quot;nobuildFilesRegex&quot;: &quot;A String&quot;, # 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.
599 &quot;libraries&quot;: [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
600 { # Third-party Python runtime library that is required by the application.
601 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
602 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
603 },
604 ],
605 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
606 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
607 &quot;A String&quot;,
608 ],
609 &quot;createdBy&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
610 &quot;id&quot;: &quot;A String&quot;, # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: &quot;default&quot;, &quot;latest&quot;, and any name with the prefix &quot;ah-&quot;.
611 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
612 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
613 },
614 &quot;livenessCheck&quot;: { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
615 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
616 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
617 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
618 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
619 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
620 &quot;path&quot;: &quot;A String&quot;, # The request path.
621 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
622 },
623 &quot;basicScaling&quot;: { # 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.
624 &quot;idleTimeout&quot;: &quot;A String&quot;, # Duration of time after the last request that an instance must wait before the instance is shut down.
625 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
626 },
627 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
628 &quot;network&quot;: { # Extra network settings. Only applicable in the App Engine flexible environment. # Extra network settings. Only applicable in the App Engine flexible environment.
629 &quot;name&quot;: &quot;A String&quot;, # Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
630 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
631 &quot;subnetworkName&quot;: &quot;A String&quot;, # 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 that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range. If the network that the 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 that the 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 App Engine flexible environment application.
632 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
633 &quot;forwardedPorts&quot;: [ # List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.
634 &quot;A String&quot;,
635 ],
636 },
637 }</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400638</div>
639
640<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700641 <code class="details" id="list">list(appsId, servicesId, pageToken=None, view=None, pageSize=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400642 <pre>Lists the versions of a service.
643
644Args:
645 appsId: string, Part of `parent`. Name of the parent Service resource. Example: apps/myapp/services/default. (required)
646 servicesId: string, Part of `parent`. See documentation of `appsId`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700647 pageToken: string, Continuation token for fetching the next page of results.
648 view: string, Controls the set of fields returned in the List response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700649 Allowed values
650 BASIC - Basic version information including scaling and inbound services, but not detailed deployment information.
651 FULL - The information from BASIC, plus detailed information about the deployment. This format is required when creating resources, but is not returned in Get or List by default.
652 pageSize: integer, Maximum results to return per page.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400653 x__xgafv: string, V1 error format.
654 Allowed values
655 1 - v1 error format
656 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400657
658Returns:
659 An object of the form:
660
661 { # Response message for Versions.ListVersions.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700662 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token for fetching the next page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700663 &quot;versions&quot;: [ # The versions belonging to the requested service.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400664 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700665 &quot;servingStatus&quot;: &quot;A String&quot;, # 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.
666 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700667 &quot;A String&quot;,
668 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700669 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
670 { # Custom static error page to be served when an error occurs.
671 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
672 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
673 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700674 },
675 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700676 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
677 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
678 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
679 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
680 &quot;kmsKeyReference&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS. Only should be used by Cloud Composer to encrypt the vm disk
681 &quot;volumes&quot;: [ # User specified volumes.
682 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
683 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
684 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
685 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
686 },
687 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700688 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700689 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
690 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
691 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700692 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700693 &quot;handlers&quot;: [ # 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.
694 { # 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.
695 &quot;script&quot;: { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example &quot;script&quot;: &quot;auto&quot;.
696 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
697 },
698 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
699 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
700 },
701 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
702 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.
703 &quot;urlRegex&quot;: &quot;A String&quot;, # 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 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
705 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
706 &quot;staticFiles&quot;: { # 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.
707 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
708 &quot;applicationReadable&quot;: 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.
709 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
710 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type used to serve all files served by this handler.Defaults to file-specific MIME types, which are derived from each file&#x27;s filename extension.
711 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
712 &quot;a_key&quot;: &quot;A String&quot;,
713 },
714 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
715 &quot;path&quot;: &quot;A String&quot;, # 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.
716 },
717 },
718 ],
719 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
720 &quot;defaultExpiration&quot;: &quot;A String&quot;, # 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/v1beta/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
721 &quot;runtimeApiVersion&quot;: &quot;A String&quot;, # The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref
722 &quot;healthCheck&quot;: { # 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 instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment.Only returned in GET requests if view=FULL is set.
723 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
724 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
725 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
726 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
727 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
728 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
729 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700730 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700731 &quot;endpointsApiService&quot;: { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration ID of a &quot;service&quot; 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.
732 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
733 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
734 &quot;configId&quot;: &quot;A String&quot;, # Endpoints service configuration ID as specified by the Service Management API. For example &quot;2016-09-19r1&quot;.By default, the rollout strategy for Endpoints is RolloutStrategy.FIXED. This means that Endpoints starts up with a particular configuration ID. When a new configuration is rolled out, Endpoints must be given the new configuration ID. The config_id field is used to give the configuration ID and is required in this case.Endpoints also has a rollout strategy called RolloutStrategy.MANAGED. When using this, Endpoints fetches the latest configuration and does not need the configuration ID. In this case, config_id must be omitted.
735 &quot;name&quot;: &quot;A String&quot;, # Endpoints service name which is the name of the &quot;service&quot; resource in the Service Management API. For example &quot;myapi.endpoints.myproject.cloud.goog&quot;
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700736 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700737 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
738 &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly
739 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
740 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700742 &quot;deployment&quot;: { # 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.
743 &quot;files&quot;: { # 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.
744 &quot;a_key&quot;: { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
745 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
746 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
747 &quot;sourceUrl&quot;: &quot;A String&quot;, # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form &#x27;http(s)://storage.googleapis.com//&#x27;.
748 },
749 },
750 &quot;cloudBuildOptions&quot;: { # Options for the build operations performed as a part of the version deployment. Only applicable for App Engine flexible environment when creating a version using source code directly. # Options for any Google Cloud Build builds created as a part of this deployment.These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.
751 &quot;cloudBuildTimeout&quot;: &quot;A String&quot;, # The Cloud Build timeout used as part of any dependent builds performed by version creation. Defaults to 10 minutes.
752 &quot;appYamlPath&quot;: &quot;A String&quot;, # Path to the yaml file used in deployment, used to determine runtime configuration details.Required for flexible environment builds.See https://cloud.google.com/appengine/docs/standard/python/config/appref for more details.
753 },
754 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
755 &quot;sourceUrl&quot;: &quot;A String&quot;, # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form &#x27;http(s)://storage.googleapis.com//&#x27;.
756 &quot;filesCount&quot;: 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.
757 },
758 &quot;container&quot;: { # 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.
759 &quot;image&quot;: &quot;A String&quot;, # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: &quot;gcr.io/my-project/image:tag&quot; or &quot;gcr.io/my-project/image@digest&quot;
760 },
761 &quot;build&quot;: { # Google Cloud Build information. # Google Cloud Build build information. Only applicable for instances running in the App Engine flexible environment.
762 &quot;cloudBuildId&quot;: &quot;A String&quot;, # The Google Cloud Build id. Example: &quot;f966068f-08b2-42c8-bdfe-74137dff2bf9&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700763 },
764 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700765 &quot;instanceClass&quot;: &quot;A String&quot;, # 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.
766 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
767 &quot;manualScaling&quot;: { # 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. Manually scaled versions are sometimes referred to as &quot;backends&quot;.
768 &quot;instances&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700769 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700770 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
771 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700772 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700773 &quot;apiConfig&quot;: { # 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.
774 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
775 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
776 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
777 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
778 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
779 },
780 &quot;versionUrl&quot;: &quot;A String&quot;, # Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
781 &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
782 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
783 &quot;a_key&quot;: &quot;A String&quot;,
784 },
785 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
786 &quot;readinessCheck&quot;: { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
787 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
788 &quot;appStartTimeout&quot;: &quot;A String&quot;, # A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
789 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
790 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
791 &quot;path&quot;: &quot;A String&quot;, # The request path.
792 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
793 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
794 },
795 &quot;automaticScaling&quot;: { # 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. Instances are dynamically created and destroyed as needed in order to handle traffic.
796 &quot;maxConcurrentRequests&quot;: 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value.
797 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
798 &quot;minIdleInstances&quot;: 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
799 &quot;coolDownPeriod&quot;: &quot;A String&quot;, # The time period that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment.
800 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
801 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
802 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
803 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
804 },
805 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
806 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
807 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
808 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
809 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
810 },
811 &quot;minPendingLatency&quot;: &quot;A String&quot;, # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
812 &quot;maxPendingLatency&quot;: &quot;A String&quot;, # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
813 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
814 &quot;customMetrics&quot;: [ # Target scaling by user-provided metrics. Only applicable in the App Engine flexible environment.
815 { # Allows autoscaling based on Stackdriver metrics.
816 &quot;singleInstanceAssignment&quot;: 3.14, # May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment.
817 &quot;metricName&quot;: &quot;A String&quot;, # The name of the metric.
818 &quot;filter&quot;: &quot;A String&quot;, # Allows filtering on the metric&#x27;s fields.
819 &quot;targetType&quot;: &quot;A String&quot;, # The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
820 &quot;targetUtilization&quot;: 3.14, # The target value for the metric.
821 },
822 ],
823 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
824 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
825 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
826 },
827 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
828 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
829 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
830 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to zero to disable max_instances configuration.
831 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
832 },
833 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
834 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
835 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
836 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
837 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
838 },
839 },
840 &quot;nobuildFilesRegex&quot;: &quot;A String&quot;, # 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.
841 &quot;libraries&quot;: [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
842 { # Third-party Python runtime library that is required by the application.
843 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
844 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
845 },
846 ],
847 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
848 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
849 &quot;A String&quot;,
850 ],
851 &quot;createdBy&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
852 &quot;id&quot;: &quot;A String&quot;, # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: &quot;default&quot;, &quot;latest&quot;, and any name with the prefix &quot;ah-&quot;.
853 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
854 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
855 },
856 &quot;livenessCheck&quot;: { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
857 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
858 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
859 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
860 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
861 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
862 &quot;path&quot;: &quot;A String&quot;, # The request path.
863 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
864 },
865 &quot;basicScaling&quot;: { # 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.
866 &quot;idleTimeout&quot;: &quot;A String&quot;, # Duration of time after the last request that an instance must wait before the instance is shut down.
867 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
868 },
869 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
870 &quot;network&quot;: { # Extra network settings. Only applicable in the App Engine flexible environment. # Extra network settings. Only applicable in the App Engine flexible environment.
871 &quot;name&quot;: &quot;A String&quot;, # Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
872 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
873 &quot;subnetworkName&quot;: &quot;A String&quot;, # 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 that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range. If the network that the 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 that the 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 App Engine flexible environment application.
874 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
875 &quot;forwardedPorts&quot;: [ # List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.
876 &quot;A String&quot;,
877 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700878 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700879 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400880 ],
881 }</pre>
882</div>
883
884<div class="method">
885 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
886 <pre>Retrieves the next page of results.
887
888Args:
889 previous_request: The request for the previous page. (required)
890 previous_response: The response from the request for the previous page. (required)
891
892Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700893 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400894 page. Returns None if there are no more items in the collection.
895 </pre>
896</div>
897
898<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700899 <code class="details" id="patch">patch(appsId, servicesId, versionsId, body=None, updateMask=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700900 <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:Standard environment instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.instance_class)automatic scaling in the standard environment: automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings.max_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_cpu_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_throughput_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings)basic scaling or manual scaling in the standard environment: serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status) manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#manualscaling)Flexible environment serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status)automatic scaling in the flexible environment: automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling)manual scaling in the flexible environment: manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#manualscaling)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400901
902Args:
903 appsId: string, Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1. (required)
904 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
905 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700906 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400907 The object takes the form of:
908
909{ # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700910 &quot;servingStatus&quot;: &quot;A String&quot;, # 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.
911 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700912 &quot;A String&quot;,
913 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700914 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
915 { # Custom static error page to be served when an error occurs.
916 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
917 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
918 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700919 },
920 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700921 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
922 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
923 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
924 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
925 &quot;kmsKeyReference&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS. Only should be used by Cloud Composer to encrypt the vm disk
926 &quot;volumes&quot;: [ # User specified volumes.
927 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
928 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
929 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
930 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
931 },
932 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700933 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700934 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
935 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
936 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700937 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700938 &quot;handlers&quot;: [ # 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.
939 { # 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.
940 &quot;script&quot;: { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the requests that match this URL pattern. Only the auto value is supported for Node.js in the App Engine standard environment, for example &quot;script&quot;: &quot;auto&quot;.
941 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
942 },
943 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
944 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
945 },
946 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
947 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Not supported for Node.js in the App Engine standard environment.
948 &quot;urlRegex&quot;: &quot;A String&quot;, # 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.
949 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
950 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
951 &quot;staticFiles&quot;: { # 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.
952 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
953 &quot;applicationReadable&quot;: 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.
954 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
955 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type used to serve all files served by this handler.Defaults to file-specific MIME types, which are derived from each file&#x27;s filename extension.
956 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
957 &quot;a_key&quot;: &quot;A String&quot;,
958 },
959 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
960 &quot;path&quot;: &quot;A String&quot;, # 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.
961 },
962 },
963 ],
964 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
965 &quot;defaultExpiration&quot;: &quot;A String&quot;, # 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/v1beta/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
966 &quot;runtimeApiVersion&quot;: &quot;A String&quot;, # The version of the API in the given runtime environment. Please see the app.yaml reference for valid values at https://cloud.google.com/appengine/docs/standard//config/appref
967 &quot;healthCheck&quot;: { # 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 instances. Unhealthy instances are stopped and replaced with new instances. Only applicable in the App Engine flexible environment.Only returned in GET requests if view=FULL is set.
968 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
969 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
970 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
971 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
972 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
973 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
974 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700975 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700976 &quot;endpointsApiService&quot;: { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration ID of a &quot;service&quot; 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.
977 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
978 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
979 &quot;configId&quot;: &quot;A String&quot;, # Endpoints service configuration ID as specified by the Service Management API. For example &quot;2016-09-19r1&quot;.By default, the rollout strategy for Endpoints is RolloutStrategy.FIXED. This means that Endpoints starts up with a particular configuration ID. When a new configuration is rolled out, Endpoints must be given the new configuration ID. The config_id field is used to give the configuration ID and is required in this case.Endpoints also has a rollout strategy called RolloutStrategy.MANAGED. When using this, Endpoints fetches the latest configuration and does not need the configuration ID. In this case, config_id must be omitted.
980 &quot;name&quot;: &quot;A String&quot;, # Endpoints service name which is the name of the &quot;service&quot; resource in the Service Management API. For example &quot;myapi.endpoints.myproject.cloud.goog&quot;
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700981 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700982 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
983 &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly
984 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
985 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700986 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700987 &quot;deployment&quot;: { # 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.
988 &quot;files&quot;: { # 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.
989 &quot;a_key&quot;: { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
990 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
991 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
992 &quot;sourceUrl&quot;: &quot;A String&quot;, # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form &#x27;http(s)://storage.googleapis.com//&#x27;.
993 },
994 },
995 &quot;cloudBuildOptions&quot;: { # Options for the build operations performed as a part of the version deployment. Only applicable for App Engine flexible environment when creating a version using source code directly. # Options for any Google Cloud Build builds created as a part of this deployment.These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.
996 &quot;cloudBuildTimeout&quot;: &quot;A String&quot;, # The Cloud Build timeout used as part of any dependent builds performed by version creation. Defaults to 10 minutes.
997 &quot;appYamlPath&quot;: &quot;A String&quot;, # Path to the yaml file used in deployment, used to determine runtime configuration details.Required for flexible environment builds.See https://cloud.google.com/appengine/docs/standard/python/config/appref for more details.
998 },
999 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
1000 &quot;sourceUrl&quot;: &quot;A String&quot;, # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form &#x27;http(s)://storage.googleapis.com//&#x27;.
1001 &quot;filesCount&quot;: 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.
1002 },
1003 &quot;container&quot;: { # 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.
1004 &quot;image&quot;: &quot;A String&quot;, # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: &quot;gcr.io/my-project/image:tag&quot; or &quot;gcr.io/my-project/image@digest&quot;
1005 },
1006 &quot;build&quot;: { # Google Cloud Build information. # Google Cloud Build build information. Only applicable for instances running in the App Engine flexible environment.
1007 &quot;cloudBuildId&quot;: &quot;A String&quot;, # The Google Cloud Build id. Example: &quot;f966068f-08b2-42c8-bdfe-74137dff2bf9&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001008 },
1009 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001010 &quot;instanceClass&quot;: &quot;A String&quot;, # 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.
1011 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
1012 &quot;manualScaling&quot;: { # 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. Manually scaled versions are sometimes referred to as &quot;backends&quot;.
1013 &quot;instances&quot;: 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001014 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001015 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
1016 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001017 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001018 &quot;apiConfig&quot;: { # 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.
1019 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
1020 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
1021 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
1022 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
1023 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001024 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001025 &quot;versionUrl&quot;: &quot;A String&quot;, # Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
1026 &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
1027 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
1028 &quot;a_key&quot;: &quot;A String&quot;,
1029 },
1030 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
1031 &quot;readinessCheck&quot;: { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
1032 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
1033 &quot;appStartTimeout&quot;: &quot;A String&quot;, # A maximum time limit on application initialization, measured from moment the application successfully replies to a healthcheck until it is ready to serve traffic.
1034 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
1035 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
1036 &quot;path&quot;: &quot;A String&quot;, # The request path.
1037 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
1038 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
1039 },
1040 &quot;automaticScaling&quot;: { # 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. Instances are dynamically created and destroyed as needed in order to handle traffic.
1041 &quot;maxConcurrentRequests&quot;: 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value.
1042 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
1043 &quot;minIdleInstances&quot;: 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
1044 &quot;coolDownPeriod&quot;: &quot;A String&quot;, # The time period that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. Only applicable in the App Engine flexible environment.
1045 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
1046 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
1047 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
1048 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
1049 },
1050 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
1051 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
1052 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
1053 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
1054 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
1055 },
1056 &quot;minPendingLatency&quot;: &quot;A String&quot;, # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
1057 &quot;maxPendingLatency&quot;: &quot;A String&quot;, # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
1058 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
1059 &quot;customMetrics&quot;: [ # Target scaling by user-provided metrics. Only applicable in the App Engine flexible environment.
1060 { # Allows autoscaling based on Stackdriver metrics.
1061 &quot;singleInstanceAssignment&quot;: 3.14, # May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment.
1062 &quot;metricName&quot;: &quot;A String&quot;, # The name of the metric.
1063 &quot;filter&quot;: &quot;A String&quot;, # Allows filtering on the metric&#x27;s fields.
1064 &quot;targetType&quot;: &quot;A String&quot;, # The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
1065 &quot;targetUtilization&quot;: 3.14, # The target value for the metric.
1066 },
1067 ],
1068 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
1069 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
1070 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
1071 },
1072 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
1073 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
1074 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
1075 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to zero to disable max_instances configuration.
1076 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
1077 },
1078 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
1079 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
1080 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
1081 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
1082 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
1083 },
1084 },
1085 &quot;nobuildFilesRegex&quot;: &quot;A String&quot;, # 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.
1086 &quot;libraries&quot;: [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
1087 { # Third-party Python runtime library that is required by the application.
1088 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
1089 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
1090 },
1091 ],
1092 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
1093 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
1094 &quot;A String&quot;,
1095 ],
1096 &quot;createdBy&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
1097 &quot;id&quot;: &quot;A String&quot;, # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: &quot;default&quot;, &quot;latest&quot;, and any name with the prefix &quot;ah-&quot;.
1098 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
1099 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
1100 },
1101 &quot;livenessCheck&quot;: { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
1102 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
1103 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
1104 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
1105 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
1106 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
1107 &quot;path&quot;: &quot;A String&quot;, # The request path.
1108 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
1109 },
1110 &quot;basicScaling&quot;: { # 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.
1111 &quot;idleTimeout&quot;: &quot;A String&quot;, # Duration of time after the last request that an instance must wait before the instance is shut down.
1112 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
1113 },
1114 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
1115 &quot;network&quot;: { # Extra network settings. Only applicable in the App Engine flexible environment. # Extra network settings. Only applicable in the App Engine flexible environment.
1116 &quot;name&quot;: &quot;A String&quot;, # Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
1117 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
1118 &quot;subnetworkName&quot;: &quot;A String&quot;, # 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 that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range. If the network that the 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 that the 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 App Engine flexible environment application.
1119 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
1120 &quot;forwardedPorts&quot;: [ # List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.
1121 &quot;A String&quot;,
1122 ],
1123 },
1124 }
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001125
1126 updateMask: string, Standard field mask for the set of fields to be updated.
1127 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001128 Allowed values
1129 1 - v1 error format
1130 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001131
1132Returns:
1133 An object of the form:
1134
1135 { # This resource represents a long-running operation that is the result of a network API call.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001136 &quot;done&quot;: 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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001137 &quot;response&quot;: { # 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.
1138 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1139 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001140 &quot;error&quot;: { # 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). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1141 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001142 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001144 },
1145 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001146 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001147 &quot;message&quot;: &quot;A String&quot;, # 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.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001148 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001149 &quot;name&quot;: &quot;A String&quot;, # 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 be a resource name ending with operations/{unique_id}.
Bu Sun Kim65020912020-05-20 12:08:20 -07001150 &quot;metadata&quot;: { # 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.
1151 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001152 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001153 }</pre>
1154</div>
1155
1156</body></html>