Debian Codegraph @

docs/dyn/appengine_v1beta.apps.services.versions.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="appengine_v1beta.html">App Engine Admin API</a> . <a href="appengine_v1beta.apps.html">apps</a> . <a href="appengine_v1beta.apps.services.html">services</a> . <a href="appengine_v1beta.apps.services.versions.html">versions</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="appengine_v1beta.apps.services.versions.instances.html">instances()</a></code>
79 </p>
80 <p class="firstline">Returns the instances Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(appsId, servicesId, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Deploys code and resource files to a new version.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes an existing Version resource.</p>
91 <p class="toc_element">
92 <code><a href="#exportAppImage">exportAppImage(appsId, servicesId, versionsId, body=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">Exports a user image to Artifact Registry.</p>
94 <p class="toc_element">
95 <code><a href="#get">get(appsId, servicesId, versionsId, includeExtraData=None, view=None, x__xgafv=None)</a></code></p>
96 <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>
97 <p class="toc_element">
98 <code><a href="#list">list(appsId, servicesId, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">Lists the versions of a service.</p>
100 <p class="toc_element">
101 <code><a href="#list_next">list_next()</a></code></p>
102 <p class="firstline">Retrieves the next page of results.</p>
103 <p class="toc_element">
104 <code><a href="#patch">patch(appsId, servicesId, versionsId, body=None, updateMask=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:Standard environment instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.instance_class)automatic scaling in the standard environment: automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings.max_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_cpu_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_throughput_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings)basic scaling or manual scaling in the standard environment: serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status) manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#manualscaling)Flexible environment serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status)automatic scaling in the flexible environment: automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling)manual scaling in the flexible environment: manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#manualscaling)</p>
106 <h3>Method Details</h3>
107 <div class="method">
108 <code class="details" id="close">close()</code>
109 <pre>Close httplib2 connections.</pre>
110 </div>
111
112 <div class="method">
113 <code class="details" id="create">create(appsId, servicesId, body=None, x__xgafv=None)</code>
114 <pre>Deploys code and resource files to a new version.
115
116 Args:
117 appsId: string, Part of `parent`. Required. Name of the parent resource to create this version under. Example: apps/myapp/services/default. (required)
118 servicesId: string, Part of `parent`. See documentation of `appsId`. (required)
119 body: object, The request body.
120 The object takes the form of:
121
122 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
123 &quot;apiConfig&quot;: { # Google Cloud Endpoints (https://cloud.google.com/endpoints) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/endpoints).Only returned in GET requests if view=FULL is set.
124 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
125 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
126 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
127 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
128 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
129 },
130 &quot;appEngineApis&quot;: True or False, # Allows App Engine second generation runtimes to access the legacy bundled services.
131 &quot;appEngineBundledServices&quot;: [ # List of specific App Engine Bundled Services that are enabled for this Version.
132 &quot;A String&quot;,
133 ],
134 &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.
135 &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.
136 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
137 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
138 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
139 },
140 &quot;customMetrics&quot;: [ # Target scaling by user-provided metrics. Only applicable in the App Engine flexible environment.
141 { # Allows autoscaling based on Stackdriver metrics.
142 &quot;filter&quot;: &quot;A String&quot;, # Allows filtering on the metric&#x27;s fields.
143 &quot;metricName&quot;: &quot;A String&quot;, # The name of the metric.
144 &quot;singleInstanceAssignment&quot;: 3.14, # May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment.
145 &quot;targetType&quot;: &quot;A String&quot;, # The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
146 &quot;targetUtilization&quot;: 3.14, # The target value for the metric.
147 },
148 ],
149 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
150 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
151 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
152 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
153 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
154 },
155 &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.
156 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
157 &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.
158 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
159 &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.
160 &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.
161 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
162 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
163 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
164 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
165 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
166 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
167 },
168 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
169 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
170 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
171 },
172 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
173 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to 2147483647 to disable max_instances configuration.
174 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
175 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
176 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
177 },
178 },
179 &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.
180 &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.
181 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
182 },
183 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
184 &quot;a_key&quot;: &quot;A String&quot;,
185 },
186 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
187 &quot;a_key&quot;: &quot;A String&quot;,
188 },
189 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
190 &quot;createdBy&quot;: &quot;A String&quot;, # Output only. Email address of the user who created this version.@OutputOnly
191 &quot;defaultExpiration&quot;: &quot;A String&quot;, # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
192 &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.
193 &quot;build&quot;: { # Google Cloud Build information. # Google Cloud Build build information. Only applicable for instances running in the App Engine flexible environment.
194 &quot;cloudBuildId&quot;: &quot;A String&quot;, # The Google Cloud Build id. Example: &quot;f966068f-08b2-42c8-bdfe-74137dff2bf9&quot;
195 },
196 &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.
197 &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.
198 &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.
199 },
200 &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.
201 &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;
202 },
203 &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.
204 &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.
205 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
206 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
207 &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;.
208 },
209 },
210 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
211 &quot;filesCount&quot;: 42, # An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.
212 &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;.
213 },
214 },
215 &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Output only. Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly
216 &quot;endpointsApiService&quot;: { # Google 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.
217 &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.
218 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
219 &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;
220 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
221 },
222 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
223 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
224 },
225 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
226 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
227 &quot;a_key&quot;: &quot;A String&quot;,
228 },
229 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
230 { # Custom static error page to be served when an error occurs.
231 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
232 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
233 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
234 },
235 ],
236 &quot;flexibleRuntimeSettings&quot;: { # Runtime settings for the App Engine flexible environment. # Settings for App Engine flexible runtimes.
237 &quot;operatingSystem&quot;: &quot;A String&quot;, # The operating system of the application runtime.
238 &quot;runtimeVersion&quot;: &quot;A String&quot;, # The runtime version of an App Engine flexible application.
239 },
240 &quot;generatedCustomerMetadata&quot;: { # Additional Google Generated Customer Metadata, this field won&#x27;t be provided by default and can be requested by setting the IncludeExtraData field in GetVersionRequest
241 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
242 },
243 &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.
244 { # 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.
245 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
246 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
247 },
248 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
249 &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.
250 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
251 &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;.
252 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
253 },
254 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
255 &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.
256 &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.
257 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
258 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
259 &quot;a_key&quot;: &quot;A String&quot;,
260 },
261 &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.
262 &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.
263 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
264 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
265 },
266 &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.
267 },
268 ],
269 &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.
270 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
271 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
272 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
273 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
274 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
275 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
276 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
277 },
278 &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;.
279 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
280 &quot;A String&quot;,
281 ],
282 &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.
283 &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.
284 { # Third-party Python runtime library that is required by the application.
285 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
286 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
287 },
288 ],
289 &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 instances
290 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
291 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
292 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
293 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
294 &quot;path&quot;: &quot;A String&quot;, # The request path.
295 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
296 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
297 },
298 &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;.
299 &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.
300 },
301 &quot;name&quot;: &quot;A String&quot;, # Output only. Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
302 &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.
303 &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.
304 &quot;A String&quot;,
305 ],
306 &quot;instanceIpMode&quot;: &quot;A String&quot;, # The IP mode for instances. Only applicable in the App Engine flexible environment.
307 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
308 &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.
309 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
310 &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.
311 },
312 &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.
313 &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.
314 &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.
315 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
316 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
317 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
318 &quot;path&quot;: &quot;A String&quot;, # The request path.
319 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
320 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
321 },
322 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
323 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
324 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
325 &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
326 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
327 &quot;volumes&quot;: [ # User specified volumes.
328 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
329 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
330 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
331 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
332 },
333 ],
334 },
335 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
336 &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
337 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
338 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
339 &quot;serviceAccount&quot;: &quot;A String&quot;, # The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
340 &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.
341 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
342 &quot;versionUrl&quot;: &quot;A String&quot;, # Output only. Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
343 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
344 &quot;vpcAccess&quot;: { # VPC Access settings # Enables VPC access connectivity for standard apps.
345 &quot;networkInterfaces&quot;: [ # The Direct VPC configuration. Currently only single network interface is supported.
346 { # Network interface key message.
347 &quot;network&quot;: &quot;A String&quot;, # Optional. The VPC network that the App Engine resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork. Could be either a short name or a full path. e.g. {VPC_NETWORK} or projects/{HOST_PROJECT_ID}/global/networks/{VPC_NETWORK}
348 &quot;subnet&quot;: &quot;A String&quot;, # Optional. The VPC subnetwork that the App Engine resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used. Could be either a short name or a full path. e.g. {SUBNET_NAME} or projects/{HOST_PROJECT_ID}/regions/{REGION}/subnetworks/{SUBNET_NAME}
349 &quot;tags&quot;: [ # Optional. The network tags that will be applied to this App Engine resource.
350 &quot;A String&quot;,
351 ],
352 },
353 ],
354 &quot;vpcEgress&quot;: &quot;A String&quot;, # The traffic egress setting for the VPC network interface, controlling what traffic is diverted through it.
355 },
356 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
357 &quot;egressSetting&quot;: &quot;A String&quot;, # The egress setting for the connector, controlling what traffic is diverted through it.
358 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. projects/my-project/locations/us-central1/connectors/c1.
359 },
360 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
361 &quot;A String&quot;,
362 ],
363 }
364
365 x__xgafv: string, V1 error format.
366 Allowed values
367 1 - v1 error format
368 2 - v2 error format
369
370 Returns:
371 An object of the form:
372
373 { # This resource represents a long-running operation that is the result of a network API call.
374 &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.
375 &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.
376 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
377 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
378 {
379 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
380 },
381 ],
382 &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.
383 },
384 &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.
385 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
386 },
387 &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}.
388 &quot;response&quot;: { # The normal, successful response of the operation. 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.
389 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
390 },
391 }</pre>
392 </div>
393
394 <div class="method">
395 <code class="details" id="delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</code>
396 <pre>Deletes an existing Version resource.
397
398 Args:
399 appsId: string, Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
400 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
401 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
402 x__xgafv: string, V1 error format.
403 Allowed values
404 1 - v1 error format
405 2 - v2 error format
406
407 Returns:
408 An object of the form:
409
410 { # This resource represents a long-running operation that is the result of a network API call.
411 &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.
412 &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.
413 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
414 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
415 {
416 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
417 },
418 ],
419 &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.
420 },
421 &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.
422 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
423 },
424 &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}.
425 &quot;response&quot;: { # The normal, successful response of the operation. 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.
426 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
427 },
428 }</pre>
429 </div>
430
431 <div class="method">
432 <code class="details" id="exportAppImage">exportAppImage(appsId, servicesId, versionsId, body=None, x__xgafv=None)</code>
433 <pre>Exports a user image to Artifact Registry.
434
435 Args:
436 appsId: string, Part of `name`. Required. Name of the App Engine version resource. Format: apps/{app}/services/{service}/versions/{version} (required)
437 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
438 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
439 body: object, The request body.
440 The object takes the form of:
441
442 { # Request message for Versions.ExportAppImage.
443 &quot;destinationRepository&quot;: &quot;A String&quot;, # Optional. The full resource name of the AR repository to export to. Format: projects/{project}/locations/{location}/repositories/{repository} If not specified, defaults to projects/{project}/locations/{location}/repositories/gae-standard in the same region as the app. The default repository will be created if it does not exist.
444 }
445
446 x__xgafv: string, V1 error format.
447 Allowed values
448 1 - v1 error format
449 2 - v2 error format
450
451 Returns:
452 An object of the form:
453
454 { # This resource represents a long-running operation that is the result of a network API call.
455 &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.
456 &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.
457 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
458 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
459 {
460 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
461 },
462 ],
463 &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.
464 },
465 &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.
466 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
467 },
468 &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}.
469 &quot;response&quot;: { # The normal, successful response of the operation. 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.
470 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
471 },
472 }</pre>
473 </div>
474
475 <div class="method">
476 <code class="details" id="get">get(appsId, servicesId, versionsId, includeExtraData=None, view=None, x__xgafv=None)</code>
477 <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.
478
479 Args:
480 appsId: string, Part of `name`. Required. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
481 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
482 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
483 includeExtraData: string, Optional. Options to include extra data
484 Allowed values
485 INCLUDE_EXTRA_DATA_UNSPECIFIED - Unspecified: No extra data will be returned
486 INCLUDE_EXTRA_DATA_NONE - Do not return any extra data
487 INCLUDE_GOOGLE_GENERATED_METADATA - Return GGCM associated with the resources
488 view: string, Controls the set of fields returned in the Get response.
489 Allowed values
490 BASIC - Basic version information including scaling and inbound services, but not detailed deployment information.
491 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.
492 x__xgafv: string, V1 error format.
493 Allowed values
494 1 - v1 error format
495 2 - v2 error format
496
497 Returns:
498 An object of the form:
499
500 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
501 &quot;apiConfig&quot;: { # Google Cloud Endpoints (https://cloud.google.com/endpoints) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/endpoints).Only returned in GET requests if view=FULL is set.
502 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
503 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
504 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
505 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
506 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
507 },
508 &quot;appEngineApis&quot;: True or False, # Allows App Engine second generation runtimes to access the legacy bundled services.
509 &quot;appEngineBundledServices&quot;: [ # List of specific App Engine Bundled Services that are enabled for this Version.
510 &quot;A String&quot;,
511 ],
512 &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.
513 &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.
514 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
515 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
516 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
517 },
518 &quot;customMetrics&quot;: [ # Target scaling by user-provided metrics. Only applicable in the App Engine flexible environment.
519 { # Allows autoscaling based on Stackdriver metrics.
520 &quot;filter&quot;: &quot;A String&quot;, # Allows filtering on the metric&#x27;s fields.
521 &quot;metricName&quot;: &quot;A String&quot;, # The name of the metric.
522 &quot;singleInstanceAssignment&quot;: 3.14, # May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment.
523 &quot;targetType&quot;: &quot;A String&quot;, # The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
524 &quot;targetUtilization&quot;: 3.14, # The target value for the metric.
525 },
526 ],
527 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
528 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
529 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
530 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
531 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
532 },
533 &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.
534 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
535 &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.
536 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
537 &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.
538 &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.
539 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
540 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
541 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
542 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
543 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
544 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
545 },
546 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
547 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
548 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
549 },
550 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
551 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to 2147483647 to disable max_instances configuration.
552 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
553 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
554 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
555 },
556 },
557 &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.
558 &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.
559 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
560 },
561 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
562 &quot;a_key&quot;: &quot;A String&quot;,
563 },
564 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
565 &quot;a_key&quot;: &quot;A String&quot;,
566 },
567 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
568 &quot;createdBy&quot;: &quot;A String&quot;, # Output only. Email address of the user who created this version.@OutputOnly
569 &quot;defaultExpiration&quot;: &quot;A String&quot;, # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
570 &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.
571 &quot;build&quot;: { # Google Cloud Build information. # Google Cloud Build build information. Only applicable for instances running in the App Engine flexible environment.
572 &quot;cloudBuildId&quot;: &quot;A String&quot;, # The Google Cloud Build id. Example: &quot;f966068f-08b2-42c8-bdfe-74137dff2bf9&quot;
573 },
574 &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.
575 &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.
576 &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.
577 },
578 &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.
579 &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;
580 },
581 &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.
582 &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.
583 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
584 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
585 &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;.
586 },
587 },
588 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
589 &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.
590 &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;.
591 },
592 },
593 &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Output only. Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly
594 &quot;endpointsApiService&quot;: { # Google 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.
595 &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.
596 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
597 &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;
598 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
599 },
600 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
601 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
602 },
603 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
604 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
605 &quot;a_key&quot;: &quot;A String&quot;,
606 },
607 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
608 { # Custom static error page to be served when an error occurs.
609 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
610 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
611 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
612 },
613 ],
614 &quot;flexibleRuntimeSettings&quot;: { # Runtime settings for the App Engine flexible environment. # Settings for App Engine flexible runtimes.
615 &quot;operatingSystem&quot;: &quot;A String&quot;, # The operating system of the application runtime.
616 &quot;runtimeVersion&quot;: &quot;A String&quot;, # The runtime version of an App Engine flexible application.
617 },
618 &quot;generatedCustomerMetadata&quot;: { # Additional Google Generated Customer Metadata, this field won&#x27;t be provided by default and can be requested by setting the IncludeExtraData field in GetVersionRequest
619 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
620 },
621 &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.
622 { # 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.
623 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
624 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
625 },
626 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
627 &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.
628 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
629 &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;.
630 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
631 },
632 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
633 &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.
634 &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.
635 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
636 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
637 &quot;a_key&quot;: &quot;A String&quot;,
638 },
639 &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.
640 &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.
641 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
642 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
643 },
644 &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.
645 },
646 ],
647 &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.
648 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
649 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
650 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
651 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
652 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
653 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
654 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
655 },
656 &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;.
657 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
658 &quot;A String&quot;,
659 ],
660 &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.
661 &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.
662 { # Third-party Python runtime library that is required by the application.
663 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
664 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
665 },
666 ],
667 &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 instances
668 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
669 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
670 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
671 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
672 &quot;path&quot;: &quot;A String&quot;, # The request path.
673 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
674 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
675 },
676 &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;.
677 &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.
678 },
679 &quot;name&quot;: &quot;A String&quot;, # Output only. Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
680 &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.
681 &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.
682 &quot;A String&quot;,
683 ],
684 &quot;instanceIpMode&quot;: &quot;A String&quot;, # The IP mode for instances. Only applicable in the App Engine flexible environment.
685 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
686 &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.
687 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
688 &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.
689 },
690 &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.
691 &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.
692 &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.
693 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
694 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
695 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
696 &quot;path&quot;: &quot;A String&quot;, # The request path.
697 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
698 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
699 },
700 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
701 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
702 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
703 &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
704 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
705 &quot;volumes&quot;: [ # User specified volumes.
706 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
707 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
708 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
709 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
710 },
711 ],
712 },
713 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
714 &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
715 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
716 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
717 &quot;serviceAccount&quot;: &quot;A String&quot;, # The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
718 &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.
719 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
720 &quot;versionUrl&quot;: &quot;A String&quot;, # Output only. Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
721 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
722 &quot;vpcAccess&quot;: { # VPC Access settings # Enables VPC access connectivity for standard apps.
723 &quot;networkInterfaces&quot;: [ # The Direct VPC configuration. Currently only single network interface is supported.
724 { # Network interface key message.
725 &quot;network&quot;: &quot;A String&quot;, # Optional. The VPC network that the App Engine resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork. Could be either a short name or a full path. e.g. {VPC_NETWORK} or projects/{HOST_PROJECT_ID}/global/networks/{VPC_NETWORK}
726 &quot;subnet&quot;: &quot;A String&quot;, # Optional. The VPC subnetwork that the App Engine resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used. Could be either a short name or a full path. e.g. {SUBNET_NAME} or projects/{HOST_PROJECT_ID}/regions/{REGION}/subnetworks/{SUBNET_NAME}
727 &quot;tags&quot;: [ # Optional. The network tags that will be applied to this App Engine resource.
728 &quot;A String&quot;,
729 ],
730 },
731 ],
732 &quot;vpcEgress&quot;: &quot;A String&quot;, # The traffic egress setting for the VPC network interface, controlling what traffic is diverted through it.
733 },
734 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
735 &quot;egressSetting&quot;: &quot;A String&quot;, # The egress setting for the connector, controlling what traffic is diverted through it.
736 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. projects/my-project/locations/us-central1/connectors/c1.
737 },
738 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
739 &quot;A String&quot;,
740 ],
741 }</pre>
742 </div>
743
744 <div class="method">
745 <code class="details" id="list">list(appsId, servicesId, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
746 <pre>Lists the versions of a service.
747
748 Args:
749 appsId: string, Part of `parent`. Required. Name of the parent Service resource. Example: apps/myapp/services/default. (required)
750 servicesId: string, Part of `parent`. See documentation of `appsId`. (required)
751 pageSize: integer, Maximum results to return per page.
752 pageToken: string, Continuation token for fetching the next page of results.
753 view: string, Controls the set of fields returned in the List response.
754 Allowed values
755 BASIC - Basic version information including scaling and inbound services, but not detailed deployment information.
756 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.
757 x__xgafv: string, V1 error format.
758 Allowed values
759 1 - v1 error format
760 2 - v2 error format
761
762 Returns:
763 An object of the form:
764
765 { # Response message for Versions.ListVersions.
766 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token for fetching the next page of results.
767 &quot;versions&quot;: [ # The versions belonging to the requested service.
768 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
769 &quot;apiConfig&quot;: { # Google Cloud Endpoints (https://cloud.google.com/endpoints) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/endpoints).Only returned in GET requests if view=FULL is set.
770 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
771 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
772 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
773 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
774 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
775 },
776 &quot;appEngineApis&quot;: True or False, # Allows App Engine second generation runtimes to access the legacy bundled services.
777 &quot;appEngineBundledServices&quot;: [ # List of specific App Engine Bundled Services that are enabled for this Version.
778 &quot;A String&quot;,
779 ],
780 &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.
781 &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.
782 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
783 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
784 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
785 },
786 &quot;customMetrics&quot;: [ # Target scaling by user-provided metrics. Only applicable in the App Engine flexible environment.
787 { # Allows autoscaling based on Stackdriver metrics.
788 &quot;filter&quot;: &quot;A String&quot;, # Allows filtering on the metric&#x27;s fields.
789 &quot;metricName&quot;: &quot;A String&quot;, # The name of the metric.
790 &quot;singleInstanceAssignment&quot;: 3.14, # May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment.
791 &quot;targetType&quot;: &quot;A String&quot;, # The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
792 &quot;targetUtilization&quot;: 3.14, # The target value for the metric.
793 },
794 ],
795 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
796 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
797 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
798 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
799 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
800 },
801 &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.
802 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
803 &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.
804 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
805 &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.
806 &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.
807 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
808 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
809 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
810 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
811 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
812 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
813 },
814 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
815 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
816 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
817 },
818 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
819 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to 2147483647 to disable max_instances configuration.
820 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
821 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
822 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
823 },
824 },
825 &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.
826 &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.
827 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
828 },
829 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
830 &quot;a_key&quot;: &quot;A String&quot;,
831 },
832 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
833 &quot;a_key&quot;: &quot;A String&quot;,
834 },
835 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
836 &quot;createdBy&quot;: &quot;A String&quot;, # Output only. Email address of the user who created this version.@OutputOnly
837 &quot;defaultExpiration&quot;: &quot;A String&quot;, # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
838 &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.
839 &quot;build&quot;: { # Google Cloud Build information. # Google Cloud Build build information. Only applicable for instances running in the App Engine flexible environment.
840 &quot;cloudBuildId&quot;: &quot;A String&quot;, # The Google Cloud Build id. Example: &quot;f966068f-08b2-42c8-bdfe-74137dff2bf9&quot;
841 },
842 &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.
843 &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.
844 &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.
845 },
846 &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.
847 &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;
848 },
849 &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.
850 &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.
851 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
852 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
853 &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;.
854 },
855 },
856 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
857 &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.
858 &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;.
859 },
860 },
861 &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Output only. Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly
862 &quot;endpointsApiService&quot;: { # Google 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.
863 &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.
864 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
865 &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;
866 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
867 },
868 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
869 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
870 },
871 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
872 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
873 &quot;a_key&quot;: &quot;A String&quot;,
874 },
875 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
876 { # Custom static error page to be served when an error occurs.
877 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
878 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
879 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
880 },
881 ],
882 &quot;flexibleRuntimeSettings&quot;: { # Runtime settings for the App Engine flexible environment. # Settings for App Engine flexible runtimes.
883 &quot;operatingSystem&quot;: &quot;A String&quot;, # The operating system of the application runtime.
884 &quot;runtimeVersion&quot;: &quot;A String&quot;, # The runtime version of an App Engine flexible application.
885 },
886 &quot;generatedCustomerMetadata&quot;: { # Additional Google Generated Customer Metadata, this field won&#x27;t be provided by default and can be requested by setting the IncludeExtraData field in GetVersionRequest
887 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
888 },
889 &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.
890 { # 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.
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;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
895 &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.
896 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
897 &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;.
898 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
899 },
900 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
901 &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.
902 &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.
903 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
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;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.
908 &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.
909 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
910 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
911 },
912 &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.
913 },
914 ],
915 &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.
916 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
917 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
918 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
919 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
920 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
921 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
922 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
923 },
924 &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;.
925 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
926 &quot;A String&quot;,
927 ],
928 &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.
929 &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.
930 { # Third-party Python runtime library that is required by the application.
931 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
932 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
933 },
934 ],
935 &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 instances
936 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
937 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
938 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
939 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
940 &quot;path&quot;: &quot;A String&quot;, # The request path.
941 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
942 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
943 },
944 &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;.
945 &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.
946 },
947 &quot;name&quot;: &quot;A String&quot;, # Output only. Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
948 &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.
949 &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.
950 &quot;A String&quot;,
951 ],
952 &quot;instanceIpMode&quot;: &quot;A String&quot;, # The IP mode for instances. Only applicable in the App Engine flexible environment.
953 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
954 &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.
955 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
956 &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.
957 },
958 &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.
959 &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.
960 &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.
961 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
962 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
963 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
964 &quot;path&quot;: &quot;A String&quot;, # The request path.
965 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
966 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
967 },
968 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
969 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
970 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
971 &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
972 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
973 &quot;volumes&quot;: [ # User specified volumes.
974 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
975 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
976 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
977 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
978 },
979 ],
980 },
981 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
982 &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
983 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
984 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
985 &quot;serviceAccount&quot;: &quot;A String&quot;, # The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
986 &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.
987 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
988 &quot;versionUrl&quot;: &quot;A String&quot;, # Output only. Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
989 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
990 &quot;vpcAccess&quot;: { # VPC Access settings # Enables VPC access connectivity for standard apps.
991 &quot;networkInterfaces&quot;: [ # The Direct VPC configuration. Currently only single network interface is supported.
992 { # Network interface key message.
993 &quot;network&quot;: &quot;A String&quot;, # Optional. The VPC network that the App Engine resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork. Could be either a short name or a full path. e.g. {VPC_NETWORK} or projects/{HOST_PROJECT_ID}/global/networks/{VPC_NETWORK}
994 &quot;subnet&quot;: &quot;A String&quot;, # Optional. The VPC subnetwork that the App Engine resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used. Could be either a short name or a full path. e.g. {SUBNET_NAME} or projects/{HOST_PROJECT_ID}/regions/{REGION}/subnetworks/{SUBNET_NAME}
995 &quot;tags&quot;: [ # Optional. The network tags that will be applied to this App Engine resource.
996 &quot;A String&quot;,
997 ],
998 },
999 ],
1000 &quot;vpcEgress&quot;: &quot;A String&quot;, # The traffic egress setting for the VPC network interface, controlling what traffic is diverted through it.
1001 },
1002 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
1003 &quot;egressSetting&quot;: &quot;A String&quot;, # The egress setting for the connector, controlling what traffic is diverted through it.
1004 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. projects/my-project/locations/us-central1/connectors/c1.
1005 },
1006 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
1007 &quot;A String&quot;,
1008 ],
1009 },
1010 ],
1011 }</pre>
1012 </div>
1013
1014 <div class="method">
1015 <code class="details" id="list_next">list_next()</code>
1016 <pre>Retrieves the next page of results.
1017
1018 Args:
1019 previous_request: The request for the previous page. (required)
1020 previous_response: The response from the request for the previous page. (required)
1021
1022 Returns:
1023 A request object that you can call &#x27;execute()&#x27; on to request the next
1024 page. Returns None if there are no more items in the collection.
1025 </pre>
1026 </div>
1027
1028 <div class="method">
1029 <code class="details" id="patch">patch(appsId, servicesId, versionsId, body=None, updateMask=None, x__xgafv=None)</code>
1030 <pre>Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:Standard environment instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.instance_class)automatic scaling in the standard environment: automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings.max_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_cpu_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_throughput_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StandardSchedulerSettings)basic scaling or manual scaling in the standard environment: serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status) manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#manualscaling)Flexible environment serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status)automatic scaling in the flexible environment: automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling)manual scaling in the flexible environment: manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#manualscaling)
1031
1032 Args:
1033 appsId: string, Part of `name`. Required. Name of the resource to update. Example: apps/myapp/services/default/versions/1. (required)
1034 servicesId: string, Part of `name`. See documentation of `appsId`. (required)
1035 versionsId: string, Part of `name`. See documentation of `appsId`. (required)
1036 body: object, The request body.
1037 The object takes the form of:
1038
1039 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
1040 &quot;apiConfig&quot;: { # Google Cloud Endpoints (https://cloud.google.com/endpoints) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/endpoints).Only returned in GET requests if view=FULL is set.
1041 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
1042 &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
1043 &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
1044 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
1045 &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
1046 },
1047 &quot;appEngineApis&quot;: True or False, # Allows App Engine second generation runtimes to access the legacy bundled services.
1048 &quot;appEngineBundledServices&quot;: [ # List of specific App Engine Bundled Services that are enabled for this Version.
1049 &quot;A String&quot;,
1050 ],
1051 &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.
1052 &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.
1053 &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
1054 &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
1055 &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
1056 },
1057 &quot;customMetrics&quot;: [ # Target scaling by user-provided metrics. Only applicable in the App Engine flexible environment.
1058 { # Allows autoscaling based on Stackdriver metrics.
1059 &quot;filter&quot;: &quot;A String&quot;, # Allows filtering on the metric&#x27;s fields.
1060 &quot;metricName&quot;: &quot;A String&quot;, # The name of the metric.
1061 &quot;singleInstanceAssignment&quot;: 3.14, # May be used instead of target_utilization when an instance can handle a specific amount of work/resources and the metric value is equal to the current amount of work remaining. The autoscaler will try to keep the number of instances equal to the metric value divided by single_instance_assignment.
1062 &quot;targetType&quot;: &quot;A String&quot;, # The type of the metric. Must be a string representing a Stackdriver metric type e.g. GAGUE, DELTA_PER_SECOND, etc.
1063 &quot;targetUtilization&quot;: 3.14, # The target value for the metric.
1064 },
1065 ],
1066 &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable in the App Engine flexible environment. # Target scaling by disk usage.
1067 &quot;targetReadBytesPerSecond&quot;: 42, # Target bytes read per second.
1068 &quot;targetReadOpsPerSecond&quot;: 42, # Target ops read per seconds.
1069 &quot;targetWriteBytesPerSecond&quot;: 42, # Target bytes written per second.
1070 &quot;targetWriteOpsPerSecond&quot;: 42, # Target ops written per second.
1071 },
1072 &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.
1073 &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
1074 &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.
1075 &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests for this version.
1076 &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.
1077 &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.
1078 &quot;minTotalInstances&quot;: 42, # Minimum number of running instances that should be maintained for this version.
1079 &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable in the App Engine flexible environment. # Target scaling by network usage.
1080 &quot;targetReceivedBytesPerSecond&quot;: 42, # Target bytes received per second.
1081 &quot;targetReceivedPacketsPerSecond&quot;: 42, # Target packets received per second.
1082 &quot;targetSentBytesPerSecond&quot;: 42, # Target bytes sent per second.
1083 &quot;targetSentPacketsPerSecond&quot;: 42, # Target packets sent per second.
1084 },
1085 &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable in the App Engine flexible environment. # Target scaling by request utilization.
1086 &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
1087 &quot;targetRequestCountPerSecond&quot;: 42, # Target requests per second.
1088 },
1089 &quot;standardSchedulerSettings&quot;: { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
1090 &quot;maxInstances&quot;: 42, # Maximum number of instances to run for this version. Set to 2147483647 to disable max_instances configuration.
1091 &quot;minInstances&quot;: 42, # Minimum number of instances to run for this version. Set to zero to disable min_instances configuration.
1092 &quot;targetCpuUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling.
1093 &quot;targetThroughputUtilization&quot;: 3.14, # Target throughput utilization ratio to maintain when scaling
1094 },
1095 },
1096 &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.
1097 &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.
1098 &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
1099 },
1100 &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
1101 &quot;a_key&quot;: &quot;A String&quot;,
1102 },
1103 &quot;buildEnvVariables&quot;: { # Environment variables available to the build environment.Only returned in GET requests if view=FULL is set.
1104 &quot;a_key&quot;: &quot;A String&quot;,
1105 },
1106 &quot;createTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
1107 &quot;createdBy&quot;: &quot;A String&quot;, # Output only. Email address of the user who created this version.@OutputOnly
1108 &quot;defaultExpiration&quot;: &quot;A String&quot;, # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#StaticFilesHandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
1109 &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.
1110 &quot;build&quot;: { # Google Cloud Build information. # Google Cloud Build build information. Only applicable for instances running in the App Engine flexible environment.
1111 &quot;cloudBuildId&quot;: &quot;A String&quot;, # The Google Cloud Build id. Example: &quot;f966068f-08b2-42c8-bdfe-74137dff2bf9&quot;
1112 },
1113 &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.
1114 &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.
1115 &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.
1116 },
1117 &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.
1118 &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;
1119 },
1120 &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.
1121 &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.
1122 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
1123 &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
1124 &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;.
1125 },
1126 },
1127 &quot;zip&quot;: { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
1128 &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.
1129 &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;.
1130 },
1131 },
1132 &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Output only. Total size in bytes of all the files that are included in this version and currently hosted on the App Engine disk.@OutputOnly
1133 &quot;endpointsApiService&quot;: { # Google 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.
1134 &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.
1135 &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
1136 &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;
1137 &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
1138 },
1139 &quot;entrypoint&quot;: { # The entrypoint for the application. # The entrypoint for the application.
1140 &quot;shell&quot;: &quot;A String&quot;, # The format should be a shell command that can be fed to bash -c.
1141 },
1142 &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment for this version.Defaults to standard.
1143 &quot;envVariables&quot;: { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
1144 &quot;a_key&quot;: &quot;A String&quot;,
1145 },
1146 &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
1147 { # Custom static error page to be served when an error occurs.
1148 &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
1149 &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
1150 &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
1151 },
1152 ],
1153 &quot;flexibleRuntimeSettings&quot;: { # Runtime settings for the App Engine flexible environment. # Settings for App Engine flexible runtimes.
1154 &quot;operatingSystem&quot;: &quot;A String&quot;, # The operating system of the application runtime.
1155 &quot;runtimeVersion&quot;: &quot;A String&quot;, # The runtime version of an App Engine flexible application.
1156 },
1157 &quot;generatedCustomerMetadata&quot;: { # Additional Google Generated Customer Metadata, this field won&#x27;t be provided by default and can be requested by setting the IncludeExtraData field in GetVersionRequest
1158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1159 },
1160 &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.
1161 { # 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.
1162 &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
1163 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
1164 },
1165 &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
1166 &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.
1167 &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
1168 &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;.
1169 &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
1170 },
1171 &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
1172 &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.
1173 &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.
1174 &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached by web proxies and browsers.
1175 &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
1176 &quot;a_key&quot;: &quot;A String&quot;,
1177 },
1178 &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.
1179 &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.
1180 &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
1181 &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
1182 },
1183 &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.
1184 },
1185 ],
1186 &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.
1187 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
1188 &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
1189 &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
1190 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
1191 &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
1192 &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
1193 &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
1194 },
1195 &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;.
1196 &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
1197 &quot;A String&quot;,
1198 ],
1199 &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.
1200 &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.
1201 { # Third-party Python runtime library that is required by the application.
1202 &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
1203 &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
1204 },
1205 ],
1206 &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 instances
1207 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
1208 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before considering the VM unhealthy.
1209 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Liveness check. Example: &quot;myapp.appspot.com&quot;
1210 &quot;initialDelay&quot;: &quot;A String&quot;, # The initial delay before starting to execute the checks.
1211 &quot;path&quot;: &quot;A String&quot;, # The request path.
1212 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before considering the VM healthy.
1213 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
1214 },
1215 &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;.
1216 &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.
1217 },
1218 &quot;name&quot;: &quot;A String&quot;, # Output only. Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
1219 &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.
1220 &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.
1221 &quot;A String&quot;,
1222 ],
1223 &quot;instanceIpMode&quot;: &quot;A String&quot;, # The IP mode for instances. Only applicable in the App Engine flexible environment.
1224 &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.
1225 &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.
1226 &quot;sessionAffinity&quot;: True or False, # Enable session affinity. Only applicable in the App Engine flexible environment.
1227 &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.
1228 },
1229 &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.
1230 &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.
1231 &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.
1232 &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
1233 &quot;failureThreshold&quot;: 42, # Number of consecutive failed checks required before removing traffic.
1234 &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing a HTTP Readiness check. Example: &quot;myapp.appspot.com&quot;
1235 &quot;path&quot;: &quot;A String&quot;, # The request path.
1236 &quot;successThreshold&quot;: 42, # Number of consecutive successful checks required before receiving traffic.
1237 &quot;timeout&quot;: &quot;A String&quot;, # Time before the check is considered failed.
1238 },
1239 &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable in the App Engine flexible environment.
1240 &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
1241 &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
1242 &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
1243 &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
1244 &quot;volumes&quot;: [ # User specified volumes.
1245 { # Volumes mounted within the app container. Only applicable in the App Engine flexible environment.
1246 &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
1247 &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
1248 &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
1249 },
1250 ],
1251 },
1252 &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
1253 &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
1254 &quot;runtimeChannel&quot;: &quot;A String&quot;, # The channel of the runtime to use. Only available for some runtimes. Defaults to the default channel.
1255 &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
1256 &quot;serviceAccount&quot;: &quot;A String&quot;, # The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as default if this field is neither provided in app.yaml file nor through CLI flag.
1257 &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.
1258 &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
1259 &quot;versionUrl&quot;: &quot;A String&quot;, # Output only. Serving URL for this version. Example: &quot;https://myversion-dot-myservice-dot-myapp.appspot.com&quot;@OutputOnly
1260 &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
1261 &quot;vpcAccess&quot;: { # VPC Access settings # Enables VPC access connectivity for standard apps.
1262 &quot;networkInterfaces&quot;: [ # The Direct VPC configuration. Currently only single network interface is supported.
1263 { # Network interface key message.
1264 &quot;network&quot;: &quot;A String&quot;, # Optional. The VPC network that the App Engine resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork. Could be either a short name or a full path. e.g. {VPC_NETWORK} or projects/{HOST_PROJECT_ID}/global/networks/{VPC_NETWORK}
1265 &quot;subnet&quot;: &quot;A String&quot;, # Optional. The VPC subnetwork that the App Engine resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used. Could be either a short name or a full path. e.g. {SUBNET_NAME} or projects/{HOST_PROJECT_ID}/regions/{REGION}/subnetworks/{SUBNET_NAME}
1266 &quot;tags&quot;: [ # Optional. The network tags that will be applied to this App Engine resource.
1267 &quot;A String&quot;,
1268 ],
1269 },
1270 ],
1271 &quot;vpcEgress&quot;: &quot;A String&quot;, # The traffic egress setting for the VPC network interface, controlling what traffic is diverted through it.
1272 },
1273 &quot;vpcAccessConnector&quot;: { # VPC access connector specification. # Enables VPC connectivity for standard apps.
1274 &quot;egressSetting&quot;: &quot;A String&quot;, # The egress setting for the connector, controlling what traffic is diverted through it.
1275 &quot;name&quot;: &quot;A String&quot;, # Full Serverless VPC Access Connector name e.g. projects/my-project/locations/us-central1/connectors/c1.
1276 },
1277 &quot;zones&quot;: [ # The Google Compute Engine zones that are supported by this version in the App Engine flexible environment. Deprecated.
1278 &quot;A String&quot;,
1279 ],
1280 }
1281
1282 updateMask: string, Standard field mask for the set of fields to be updated.
1283 x__xgafv: string, V1 error format.
1284 Allowed values
1285 1 - v1 error format
1286 2 - v2 error format
1287
1288 Returns:
1289 An object of the form:
1290
1291 { # This resource represents a long-running operation that is the result of a network API call.
1292 &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.
1293 &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.
1294 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1295 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1296 {
1297 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1298 },
1299 ],
1300 &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.
1301 },
1302 &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.
1303 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1304 },
1305 &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}.
1306 &quot;response&quot;: { # The normal, successful response of the operation. 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.
1307 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1308 },
1309 }</pre>
1310 </div>
1311
1312 </body></html>