blob: 79b427d2713927f326f8d52143a5134bdeadfa66 [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="appengine_v1.html">App Engine Admin API</a> . <a href="appengine_v1.apps.html">apps</a> . <a href="appengine_v1.apps.services.html">services</a> . <a href="appengine_v1.apps.services.versions.html">versions</a></h1>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="appengine_v1.apps.services.versions.instances.html">instances()</a></code>
79</p>
80<p class="firstline">Returns the instances Resource.</p>
81
82<p class="toc_element">
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>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070087<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>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080093<p class="firstline">Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070094<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080095 <code><a href="#list">list(appsId, servicesId, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070096<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/v1/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/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings.max_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_cpu_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_throughput_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/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/v1/apps.services.versions#Version.FIELDS.serving_status) manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)Flexible environment serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/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/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/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/v1/apps.services.versions#manualscaling)</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700103<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>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700111 <pre>Deploys code and resource files to a new version.
112
113Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800114 appsId: string, Part of `parent`. Name of the parent resource to create this version under. Example: apps/myapp/services/default. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700115 servicesId: string, Part of `parent`. See documentation of `appsId`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700117 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800120 &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/v1/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
121 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
122 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700123 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800124 &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.
125 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
126 &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.
127 &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;
128 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800129 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800130 &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
131 &quot;createdBy&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
132 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
133 &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.
134 { # 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.
135 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
136 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
137 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
138 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
139 },
140 &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.
141 &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;.
142 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
143 },
144 &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.
145 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
146 &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.
147 &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.
148 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
149 &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.
150 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
151 &quot;a_key&quot;: &quot;A String&quot;,
152 },
153 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
154 },
155 &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.
156 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800157 },
158 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800159 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
160 &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.
161 &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.
162 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
163 },
164 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
165 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
166 },
167 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
168 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
169 &quot;a_key&quot;: &quot;A String&quot;,
170 },
171 &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.
172 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
173 &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.
174 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
175 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
176 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
177 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
178 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800179 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800180 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
181 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
182 &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.
183 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
184 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
185 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800186 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800187 &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.
188 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
189 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
190 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
191 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
192 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
193 },
194 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
195 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
196 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
197 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
198 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to zero to disable max_instances configuration.
199 },
200 &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.
201 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
202 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
203 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
204 },
205 &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.
206 },
207 &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;.
208 &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.
209 },
210 &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.
211 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
212 &quot;path&quot;: &quot;A String&quot;, # The request path.
213 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
214 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
215 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
216 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
217 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
218 },
219 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
220 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
221 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
222 &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
223 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
224 &quot;volumes&quot;: [ # User specified volumes.
225 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
226 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
227 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
228 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800229 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800230 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800231 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800232 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800233 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800234 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800235 &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;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
237 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800238 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800239 &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.
240 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
241 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
242 &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.
243 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
244 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
245 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
246 &quot;path&quot;: &quot;A String&quot;, # The request path.
247 },
248 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
249 &quot;a_key&quot;: &quot;A String&quot;,
250 },
251 &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.
252 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
253 &quot;A String&quot;,
254 ],
255 &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.
256 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
257 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
258 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
259 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
260 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
261 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
262 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
263 },
264 &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.
265 &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.
266 &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.
267 &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;.
268 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
269 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
270 },
271 },
272 &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.
273 &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;
274 },
275 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
276 &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.
277 &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;.
278 },
279 &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.
280 &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.
281 &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.
282 },
283 },
284 &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;.
285 &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.
286 &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.
287 &quot;A String&quot;,
288 ],
289 &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.
290 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
291 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
292 &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.
293 },
294 &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.
295 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
296 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
297 &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
298 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
299 &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.
300 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
301 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
302 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
303 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
304 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
305 },
306 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
307 { # Custom static error page to be served when an error occurs.
308 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
309 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
310 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
311 },
312 ],
313 &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.
314 &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
315 &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.
316 { # Third-party Python runtime library that is required by the application.
317 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
318 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
319 },
320 ],
321 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
322 }
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700323
324 x__xgafv: string, V1 error format.
325 Allowed values
326 1 - v1 error format
327 2 - v2 error format
328
329Returns:
330 An object of the form:
331
332 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800333 &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.
334 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
335 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800336 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700337 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
338 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700339 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800340 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700341 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
342 {
343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
344 },
345 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800346 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700347 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800348 &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}.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800349 &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 Kim4ed7d3f2020-05-27 12:20:54 -0700350 }</pre>
351</div>
352
353<div class="method">
354 <code class="details" id="delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</code>
355 <pre>Deletes an existing Version resource.
356
357Args:
358 appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
359 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
360 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
361 x__xgafv: string, V1 error format.
362 Allowed values
363 1 - v1 error format
364 2 - v2 error format
365
366Returns:
367 An object of the form:
368
369 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800370 &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.
371 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
372 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800373 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700374 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
375 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700376 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800377 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700378 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
379 {
380 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
381 },
382 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800383 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700384 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800385 &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}.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800386 &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 Kim4ed7d3f2020-05-27 12:20:54 -0700387 }</pre>
388</div>
389
390<div class="method">
391 <code class="details" id="get">get(appsId, servicesId, versionsId, view=None, x__xgafv=None)</code>
392 <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.
393
394Args:
395 appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
396 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
397 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
398 view: string, Controls the set of fields returned in the Get response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700399 Allowed values
400 BASIC - Basic version information including scaling and inbound services, but not detailed deployment information.
401 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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700402 x__xgafv: string, V1 error format.
403 Allowed values
404 1 - v1 error format
405 2 - v2 error format
406
407Returns:
408 An object of the form:
409
410 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800411 &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/v1/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
412 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
413 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700414 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800415 &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.
416 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
417 &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.
418 &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;
419 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800420 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800421 &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
422 &quot;createdBy&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
423 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
424 &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.
425 { # 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.
426 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
427 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
428 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
429 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
430 },
431 &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.
432 &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;.
433 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
434 },
435 &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.
436 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
437 &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.
438 &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.
439 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
440 &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.
441 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
442 &quot;a_key&quot;: &quot;A String&quot;,
443 },
444 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
445 },
446 &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.
447 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800448 },
449 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800450 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
451 &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.
452 &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.
453 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
454 },
455 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
456 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
457 },
458 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
459 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
460 &quot;a_key&quot;: &quot;A String&quot;,
461 },
462 &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.
463 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
464 &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.
465 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
466 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
467 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
468 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
469 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800470 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800471 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
472 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
473 &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.
474 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
475 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
476 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800477 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800478 &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.
479 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
480 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
481 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
482 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
483 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
484 },
485 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
486 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
487 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
488 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
489 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to zero to disable max_instances configuration.
490 },
491 &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.
492 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
493 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
494 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
495 },
496 &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.
497 },
498 &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;.
499 &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.
500 },
501 &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.
502 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
503 &quot;path&quot;: &quot;A String&quot;, # The request path.
504 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
505 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
506 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
507 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
508 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
509 },
510 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
511 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
512 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
513 &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
514 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
515 &quot;volumes&quot;: [ # User specified volumes.
516 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
517 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
518 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
519 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800520 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800521 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800522 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800523 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800524 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800525 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800526 &quot;versionUrl&quot;: &quot;A String&quot;, # Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
527 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
528 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800529 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800530 &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.
531 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
532 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
533 &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.
534 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
535 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
536 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
537 &quot;path&quot;: &quot;A String&quot;, # The request path.
538 },
539 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
540 &quot;a_key&quot;: &quot;A String&quot;,
541 },
542 &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.
543 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
544 &quot;A String&quot;,
545 ],
546 &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.
547 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
548 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
549 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
550 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
551 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
552 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
553 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
554 },
555 &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.
556 &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.
557 &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.
558 &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;.
559 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
560 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
561 },
562 },
563 &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.
564 &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;
565 },
566 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
567 &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.
568 &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;.
569 },
570 &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.
571 &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.
572 &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.
573 },
574 },
575 &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;.
576 &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.
577 &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.
578 &quot;A String&quot;,
579 ],
580 &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.
581 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
582 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
583 &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.
584 },
585 &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.
586 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
587 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
588 &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
589 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
590 &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.
591 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
592 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
593 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
594 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
595 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
596 },
597 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
598 { # Custom static error page to be served when an error occurs.
599 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
600 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
601 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
602 },
603 ],
604 &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.
605 &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
606 &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.
607 { # Third-party Python runtime library that is required by the application.
608 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
609 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
610 },
611 ],
612 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
613 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700614</div>
615
616<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800617 <code class="details" id="list">list(appsId, servicesId, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700618 <pre>Lists the versions of a service.
619
620Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800621 appsId: string, Part of `parent`. Name of the parent Service resource. Example: apps/myapp/services/default. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700622 servicesId: string, Part of `parent`. See documentation of `appsId`. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800623 pageSize: integer, Maximum results to return per page.
624 pageToken: string, Continuation token for fetching the next page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700625 view: string, Controls the set of fields returned in the List response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700626 Allowed values
627 BASIC - Basic version information including scaling and inbound services, but not detailed deployment information.
628 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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700629 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400630 Allowed values
631 1 - v1 error format
632 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700633
634Returns:
635 An object of the form:
636
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800637 { # Response message for Versions.ListVersions.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800638 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token for fetching the next page of results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700639 &quot;versions&quot;: [ # The versions belonging to the requested service.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700640 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800641 &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/v1/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
642 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
643 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700644 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800645 &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.
646 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
647 &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.
648 &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;
649 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800650 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800651 &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
652 &quot;createdBy&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
653 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
654 &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.
655 { # 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.
656 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
657 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
658 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
659 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
660 },
661 &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.
662 &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;.
663 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
664 },
665 &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.
666 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
667 &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.
668 &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.
669 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
670 &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.
671 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
672 &quot;a_key&quot;: &quot;A String&quot;,
673 },
674 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
675 },
676 &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.
677 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800678 },
679 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800680 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
681 &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.
682 &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.
683 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
684 },
685 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
686 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
687 },
688 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
689 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
690 &quot;a_key&quot;: &quot;A String&quot;,
691 },
692 &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.
693 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
694 &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.
695 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
696 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
697 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
698 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
699 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800700 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800701 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
702 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
703 &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.
704 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
705 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
706 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800707 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800708 &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.
709 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
710 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
711 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
712 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
713 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
714 },
715 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
716 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
717 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
718 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
719 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to zero to disable max_instances configuration.
720 },
721 &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.
722 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
723 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
724 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
725 },
726 &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.
727 },
728 &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;.
729 &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.
730 },
731 &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.
732 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
733 &quot;path&quot;: &quot;A String&quot;, # The request path.
734 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
735 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
736 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
737 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
738 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
739 },
740 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
741 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
742 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
743 &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
744 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
745 &quot;volumes&quot;: [ # User specified volumes.
746 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
747 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
748 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
749 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800750 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800751 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800752 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800753 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800754 &quot;A String&quot;,
755 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800756 &quot;versionUrl&quot;: &quot;A String&quot;, # Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
757 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
758 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800759 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800760 &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.
761 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
762 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
763 &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.
764 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
765 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
766 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
767 &quot;path&quot;: &quot;A String&quot;, # The request path.
768 },
769 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
770 &quot;a_key&quot;: &quot;A String&quot;,
771 },
772 &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.
773 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
774 &quot;A String&quot;,
775 ],
776 &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.
777 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
778 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
779 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
780 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
781 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
782 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
783 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
784 },
785 &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.
786 &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.
787 &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.
788 &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;.
789 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
790 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
791 },
792 },
793 &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.
794 &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;
795 },
796 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
797 &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.
798 &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;.
799 },
800 &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.
801 &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.
802 &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.
803 },
804 },
805 &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;.
806 &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.
807 &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.
808 &quot;A String&quot;,
809 ],
810 &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.
811 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
812 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
813 &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.
814 },
815 &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.
816 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
817 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
818 &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
819 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
820 &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.
821 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
822 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
823 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
824 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
825 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
826 },
827 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
828 { # Custom static error page to be served when an error occurs.
829 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
830 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
831 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
832 },
833 ],
834 &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.
835 &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
836 &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.
837 { # Third-party Python runtime library that is required by the application.
838 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
839 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
840 },
841 ],
842 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800843 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700844 ],
845 }</pre>
846</div>
847
848<div class="method">
849 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
850 <pre>Retrieves the next page of results.
851
852Args:
853 previous_request: The request for the previous page. (required)
854 previous_response: The response from the request for the previous page. (required)
855
856Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700857 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700858 page. Returns None if there are no more items in the collection.
859 </pre>
860</div>
861
862<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700863 <code class="details" id="patch">patch(appsId, servicesId, versionsId, body=None, updateMask=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700864 <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/v1/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/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings.max_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_cpu_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_throughput_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/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/v1/apps.services.versions#Version.FIELDS.serving_status) manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)Flexible environment serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/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/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/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/v1/apps.services.versions#manualscaling)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700865
866Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800867 appsId: string, Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700868 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
869 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700870 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700871 The object takes the form of:
872
873{ # A Version resource is a specific set of source code and configuration files that are deployed into a service.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800874 &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/v1/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
875 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
876 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700877 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800878 &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.
879 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
880 &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.
881 &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;
882 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800883 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800884 &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
885 &quot;createdBy&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
886 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
887 &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.
888 { # 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.
889 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
890 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
891 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
892 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
893 },
894 &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.
895 &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;.
896 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
897 },
898 &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.
899 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
900 &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.
901 &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.
902 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
903 &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.
904 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
905 &quot;a_key&quot;: &quot;A String&quot;,
906 },
907 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
908 },
909 &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.
910 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800911 },
912 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800913 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
914 &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.
915 &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.
916 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
917 },
918 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
919 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
920 },
921 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
922 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
923 &quot;a_key&quot;: &quot;A String&quot;,
924 },
925 &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.
926 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
927 &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.
928 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
929 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
930 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
931 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
932 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800933 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800934 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
935 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
936 &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.
937 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
938 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
939 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800940 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800941 &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.
942 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
943 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
944 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
945 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
946 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
947 },
948 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
949 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
950 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
951 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
952 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to zero to disable max_instances configuration.
953 },
954 &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.
955 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
956 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
957 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
958 },
959 &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.
960 },
961 &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;.
962 &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.
963 },
964 &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.
965 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
966 &quot;path&quot;: &quot;A String&quot;, # The request path.
967 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
968 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
969 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
970 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
971 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
972 },
973 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
974 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
975 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
976 &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
977 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
978 &quot;volumes&quot;: [ # User specified volumes.
979 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
980 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
981 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
982 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800983 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800984 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800985 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800986 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800987 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800988 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800989 &quot;versionUrl&quot;: &quot;A String&quot;, # Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
990 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
991 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. /projects/my-project/locations/us-central1/connectors/c1.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800992 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800993 &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.
994 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
995 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
996 &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.
997 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
998 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
999 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
1000 &quot;path&quot;: &quot;A String&quot;, # The request path.
1001 },
1002 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
1003 &quot;a_key&quot;: &quot;A String&quot;,
1004 },
1005 &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.
1006 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
1007 &quot;A String&quot;,
1008 ],
1009 &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.
1010 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
1011 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
1012 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
1013 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
1014 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
1015 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
1016 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
1017 },
1018 &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.
1019 &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.
1020 &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.
1021 &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;.
1022 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
1023 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
1024 },
1025 },
1026 &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.
1027 &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;
1028 },
1029 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
1030 &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.
1031 &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;.
1032 },
1033 &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.
1034 &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.
1035 &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.
1036 },
1037 },
1038 &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;.
1039 &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.
1040 &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.
1041 &quot;A String&quot;,
1042 ],
1043 &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.
1044 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
1045 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
1046 &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.
1047 },
1048 &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.
1049 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
1050 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
1051 &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
1052 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
1053 &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.
1054 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
1055 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
1056 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
1057 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
1058 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
1059 },
1060 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
1061 { # Custom static error page to be served when an error occurs.
1062 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
1063 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
1064 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
1065 },
1066 ],
1067 &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.
1068 &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
1069 &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.
1070 { # Third-party Python runtime library that is required by the application.
1071 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
1072 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
1073 },
1074 ],
1075 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
1076 }
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001077
1078 updateMask: string, Standard field mask for the set of fields to be updated.
1079 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001080 Allowed values
1081 1 - v1 error format
1082 2 - v2 error format
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001083
1084Returns:
1085 An object of the form:
1086
1087 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001088 &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.
1089 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1090 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001091 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001092 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1093 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001094 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001095 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001096 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001097 {
Bu Sun Kim65020912020-05-20 12:08:20 -07001098 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001099 },
1100 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001101 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim65020912020-05-20 12:08:20 -07001102 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001103 &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}.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001104 &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.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001105 }</pre>
1106</div>
1107
1108</body></html>