1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="appengine_v1beta5.html">App Engine Admin API</a> . <a href="appengine_v1beta5.apps.html">apps</a> . <a href="appengine_v1beta5.apps.services.html">services</a> . <a href="appengine_v1beta5.apps.services.versions.html">versions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="appengine_v1beta5.apps.services.versions.instances.html">instances()</a></code>
79</p>
80<p class="firstline">Returns the instances Resource.</p>
81
82<p class="toc_element">
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 new 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.</p>
91<p class="toc_element">
92  <code><a href="#get">get(appsId, servicesId, versionsId, view=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Gets the specified Version resource. By default, only a BASIC_VIEW will be returned. Specify the FULL_VIEW parameter to get the full resource.</p>
94<p class="toc_element">
95  <code><a href="#list">list(appsId, servicesId, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
96<p class="firstline">Lists the versions of a service.</p>
97<p class="toc_element">
98  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<p class="toc_element">
101  <code><a href="#patch">patch(appsId, servicesId, versionsId, body=None, mask=None, x__xgafv=None)</a></code></p>
102<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:</p>
103<h3>Method Details</h3>
104<div class="method">
105    <code class="details" id="close">close()</code>
106  <pre>Close httplib2 connections.</pre>
107</div>
108
109<div class="method">
110    <code class="details" id="create">create(appsId, servicesId, body=None, x__xgafv=None)</code>
111  <pre>Deploys new code and resource files to a new version.
112
113Args:
114  appsId: string, Part of `name`. Name of the resource to update. For example: &quot;apps/myapp/services/default&quot;. (required)
115  servicesId: string, Part of `name`. See documentation of `appsId`. (required)
116  body: object, The request body.
117    The object takes the form of:
118
119{ # A Version resource is a specific set of source code and configuration files that are deployed into a service.
120  &quot;apiConfig&quot;: { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set.
121    &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
122    &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
123    &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
124    &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
125    &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
126  },
127  &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.
128    &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.
129    &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
130      &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
131      &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
132    },
133    &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
134      &quot;targetReadBytesPerSec&quot;: 42, # Target bytes read per second.
135      &quot;targetReadOpsPerSec&quot;: 42, # Target ops read per second.
136      &quot;targetWriteBytesPerSec&quot;: 42, # Target bytes written per second.
137      &quot;targetWriteOpsPerSec&quot;: 42, # Target ops written per second.
138    },
139    &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.
140    &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
141    &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.
142    &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests.
143    &quot;minIdleInstances&quot;: 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module.
144    &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.
145    &quot;minTotalInstances&quot;: 42, # Minimum number of instances that should be maintained for this version.
146    &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
147      &quot;targetReceivedBytesPerSec&quot;: 42, # Target bytes received per second.
148      &quot;targetReceivedPacketsPerSec&quot;: 42, # Target packets received per second.
149      &quot;targetSentBytesPerSec&quot;: 42, # Target bytes sent per second.
150      &quot;targetSentPacketsPerSec&quot;: 42, # Target packets sent per second.
151    },
152    &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
153      &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
154      &quot;targetRequestCountPerSec&quot;: 42, # Target requests per second.
155    },
156  },
157  &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.
158    &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.
159    &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
160  },
161  &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
162    &quot;a_key&quot;: &quot;A String&quot;,
163  },
164  &quot;creationTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
165  &quot;defaultExpiration&quot;: &quot;A String&quot;, # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#staticfileshandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
166  &quot;deployer&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
167  &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.
168    &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.
169      &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;
170    },
171    &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.
172      &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.
173        &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
174        &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
175        &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/&lt;bucket&gt;/&lt;object&gt;&#x27;.
176      },
177    },
178    &quot;sourceReferences&quot;: [ # Origin of the source code for this deployment. There can be more than one source reference per version if source code is distributed among multiple repositories.
179      { # Reference to a particular snapshot of the source tree used to build and deploy the application.
180        &quot;repository&quot;: &quot;A String&quot;, # URI string identifying the repository. Example: &quot;https://source.developers.google.com/p/app-123/r/default&quot;
181        &quot;revisionId&quot;: &quot;A String&quot;, # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): &quot;2198322f89e0bb2e25021667c2ed489d1fd34e6b&quot;
182      },
183    ],
184  },
185  &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Total size of version files hosted on App Engine disk in bytes.@OutputOnly
186  &quot;endpointsApiService&quot;: { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration id of a &quot;service&quot; resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
187    &quot;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 Endpoints service configuration id is fixed and config_id must be specified. To keep the Endpoints service configuration id updated with each rollout, specify RolloutStrategy.MANAGED and omit config_id.
188    &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
189    &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;
190    &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
191  },
192  &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment to use for this version.Defaults to 1.
193  &quot;envVariables&quot;: { # Environment variables made available to the application.Only returned in GET requests if view=FULL is set.
194    &quot;a_key&quot;: &quot;A String&quot;,
195  },
196  &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
197    { # Custom static error page to be served when an error occurs.
198      &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
199      &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
200      &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
201    },
202  ],
203  &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.
204    { # 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.
205      &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
206        &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
207      },
208      &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
209      &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource.
210      &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
211      &quot;script&quot;: { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern.
212        &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
213      },
214      &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
215      &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.
216        &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.
217        &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached.
218        &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
219          &quot;a_key&quot;: &quot;A String&quot;,
220        },
221        &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.
222        &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.
223        &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
224        &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
225      },
226      &quot;urlRegex&quot;: &quot;A String&quot;, # A URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
227    },
228  ],
229  &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 VM instances. Unhealthy instances are be stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
230    &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
231    &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
232    &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
233    &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
234    &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
235    &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
236    &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
237  },
238  &quot;id&quot;: &quot;A String&quot;, # Relative name of the version within the module. 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;.
239  &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
240    &quot;A String&quot;,
241  ],
242  &quot;instanceClass&quot;: &quot;A String&quot;, # Instance class that is used to run this version. Valid values are:
243      # AutomaticScaling: F1, F2, F4, F4_1G
244      # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
245  &quot;libraries&quot;: [ # Configuration for third-party Python runtime libraries required by the application.Only returned in GET requests if view=FULL is set.
246    { # Third-party Python runtime library that is required by the application.
247      &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
248      &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
249    },
250  ],
251  &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.
252    &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.
253  },
254  &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
255  &quot;network&quot;: { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
256    &quot;forwardedPorts&quot;: [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
257      &quot;A String&quot;,
258    ],
259    &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the VM instance during creation.
260    &quot;name&quot;: &quot;A String&quot;, # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
261    &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.
262        # If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
263        # If the network the VM instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
264        # If the network the VM instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.If specified, the subnetwork must exist in the same region as the Flex app.
265  },
266  &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.
267  &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
268    &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
269    &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
270    &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
271    &quot;volumes&quot;: [ # Volumes mounted within the app container.
272      { # Volumes mounted within the app container. Only applicable for VM runtimes.
273        &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
274        &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
275        &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
276      },
277    ],
278  },
279  &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
280  &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/&lt;language&gt;/config/appref
281  &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
282  &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.
283  &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
284  &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
285}
286
287  x__xgafv: string, V1 error format.
288    Allowed values
289      1 - v1 error format
290      2 - v2 error format
291
292Returns:
293  An object of the form:
294
295    { # This resource represents a long-running operation that is the result of a network API call.
296  &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.
297  &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). The error model is designed to be: # The error result of the operation in case of failure or cancellation.
298      # Simple to use and understand for most users
299      # Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:
300      # Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.
301      # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.
302      # Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.
303      # Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.
304      # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
305    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
306    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
307      {
308        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
309      },
310    ],
311    &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.
312  },
313  &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.
314    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
315  },
316  &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 have the format of operations/some/unique/name.
317  &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
318    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
319  },
320}</pre>
321</div>
322
323<div class="method">
324    <code class="details" id="delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</code>
325  <pre>Deletes an existing version.
326
327Args:
328  appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
329  servicesId: string, Part of `name`. See documentation of `appsId`. (required)
330  versionsId: string, Part of `name`. See documentation of `appsId`. (required)
331  x__xgafv: string, V1 error format.
332    Allowed values
333      1 - v1 error format
334      2 - v2 error format
335
336Returns:
337  An object of the form:
338
339    { # This resource represents a long-running operation that is the result of a network API call.
340  &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.
341  &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). The error model is designed to be: # The error result of the operation in case of failure or cancellation.
342      # Simple to use and understand for most users
343      # Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:
344      # Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.
345      # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.
346      # Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.
347      # Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.
348      # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
349    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
350    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
351      {
352        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
353      },
354    ],
355    &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.
356  },
357  &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.
358    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
359  },
360  &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 have the format of operations/some/unique/name.
361  &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
362    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
363  },
364}</pre>
365</div>
366
367<div class="method">
368    <code class="details" id="get">get(appsId, servicesId, versionsId, view=None, x__xgafv=None)</code>
369  <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.
370
371Args:
372  appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
373  servicesId: string, Part of `name`. See documentation of `appsId`. (required)
374  versionsId: string, Part of `name`. See documentation of `appsId`. (required)
375  view: string, Controls the set of fields returned in the Get response.
376  x__xgafv: string, V1 error format.
377    Allowed values
378      1 - v1 error format
379      2 - v2 error format
380
381Returns:
382  An object of the form:
383
384    { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
385  &quot;apiConfig&quot;: { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set.
386    &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
387    &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
388    &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
389    &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
390    &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
391  },
392  &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.
393    &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.
394    &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
395      &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
396      &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
397    },
398    &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
399      &quot;targetReadBytesPerSec&quot;: 42, # Target bytes read per second.
400      &quot;targetReadOpsPerSec&quot;: 42, # Target ops read per second.
401      &quot;targetWriteBytesPerSec&quot;: 42, # Target bytes written per second.
402      &quot;targetWriteOpsPerSec&quot;: 42, # Target ops written per second.
403    },
404    &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.
405    &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
406    &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.
407    &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests.
408    &quot;minIdleInstances&quot;: 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module.
409    &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.
410    &quot;minTotalInstances&quot;: 42, # Minimum number of instances that should be maintained for this version.
411    &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
412      &quot;targetReceivedBytesPerSec&quot;: 42, # Target bytes received per second.
413      &quot;targetReceivedPacketsPerSec&quot;: 42, # Target packets received per second.
414      &quot;targetSentBytesPerSec&quot;: 42, # Target bytes sent per second.
415      &quot;targetSentPacketsPerSec&quot;: 42, # Target packets sent per second.
416    },
417    &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
418      &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
419      &quot;targetRequestCountPerSec&quot;: 42, # Target requests per second.
420    },
421  },
422  &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.
423    &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.
424    &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
425  },
426  &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
427    &quot;a_key&quot;: &quot;A String&quot;,
428  },
429  &quot;creationTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
430  &quot;defaultExpiration&quot;: &quot;A String&quot;, # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#staticfileshandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
431  &quot;deployer&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
432  &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.
433    &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.
434      &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;
435    },
436    &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.
437      &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.
438        &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
439        &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
440        &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/&lt;bucket&gt;/&lt;object&gt;&#x27;.
441      },
442    },
443    &quot;sourceReferences&quot;: [ # Origin of the source code for this deployment. There can be more than one source reference per version if source code is distributed among multiple repositories.
444      { # Reference to a particular snapshot of the source tree used to build and deploy the application.
445        &quot;repository&quot;: &quot;A String&quot;, # URI string identifying the repository. Example: &quot;https://source.developers.google.com/p/app-123/r/default&quot;
446        &quot;revisionId&quot;: &quot;A String&quot;, # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): &quot;2198322f89e0bb2e25021667c2ed489d1fd34e6b&quot;
447      },
448    ],
449  },
450  &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Total size of version files hosted on App Engine disk in bytes.@OutputOnly
451  &quot;endpointsApiService&quot;: { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration id of a &quot;service&quot; resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
452    &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 Endpoints service configuration id is fixed and config_id must be specified. To keep the Endpoints service configuration id updated with each rollout, specify RolloutStrategy.MANAGED and omit config_id.
453    &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
454    &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;
455    &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
456  },
457  &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment to use for this version.Defaults to 1.
458  &quot;envVariables&quot;: { # Environment variables made available to the application.Only returned in GET requests if view=FULL is set.
459    &quot;a_key&quot;: &quot;A String&quot;,
460  },
461  &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
462    { # Custom static error page to be served when an error occurs.
463      &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
464      &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
465      &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
466    },
467  ],
468  &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.
469    { # 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.
470      &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
471        &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
472      },
473      &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
474      &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource.
475      &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
476      &quot;script&quot;: { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern.
477        &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
478      },
479      &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
480      &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.
481        &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.
482        &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached.
483        &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
484          &quot;a_key&quot;: &quot;A String&quot;,
485        },
486        &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.
487        &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.
488        &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
489        &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
490      },
491      &quot;urlRegex&quot;: &quot;A String&quot;, # A URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
492    },
493  ],
494  &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 VM instances. Unhealthy instances are be stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
495    &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
496    &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
497    &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
498    &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
499    &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
500    &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
501    &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
502  },
503  &quot;id&quot;: &quot;A String&quot;, # Relative name of the version within the module. 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;.
504  &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
505    &quot;A String&quot;,
506  ],
507  &quot;instanceClass&quot;: &quot;A String&quot;, # Instance class that is used to run this version. Valid values are:
508      # AutomaticScaling: F1, F2, F4, F4_1G
509      # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
510  &quot;libraries&quot;: [ # Configuration for third-party Python runtime libraries required by the application.Only returned in GET requests if view=FULL is set.
511    { # Third-party Python runtime library that is required by the application.
512      &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
513      &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
514    },
515  ],
516  &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.
517    &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.
518  },
519  &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
520  &quot;network&quot;: { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
521    &quot;forwardedPorts&quot;: [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
522      &quot;A String&quot;,
523    ],
524    &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the VM instance during creation.
525    &quot;name&quot;: &quot;A String&quot;, # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
526    &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.
527        # If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
528        # If the network the VM instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
529        # If the network the VM instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.If specified, the subnetwork must exist in the same region as the Flex app.
530  },
531  &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.
532  &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
533    &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
534    &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
535    &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
536    &quot;volumes&quot;: [ # Volumes mounted within the app container.
537      { # Volumes mounted within the app container. Only applicable for VM runtimes.
538        &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
539        &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
540        &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
541      },
542    ],
543  },
544  &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
545  &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/&lt;language&gt;/config/appref
546  &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
547  &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.
548  &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
549  &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
550}</pre>
551</div>
552
553<div class="method">
554    <code class="details" id="list">list(appsId, servicesId, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
555  <pre>Lists the versions of a service.
556
557Args:
558  appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default. (required)
559  servicesId: string, Part of `name`. See documentation of `appsId`. (required)
560  pageSize: integer, Maximum results to return per page.
561  pageToken: string, Continuation token for fetching the next page of results.
562  view: string, Controls the set of fields returned in the List response.
563  x__xgafv: string, V1 error format.
564    Allowed values
565      1 - v1 error format
566      2 - v2 error format
567
568Returns:
569  An object of the form:
570
571    { # Response message for Versions.ListVersions.
572  &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token for fetching the next page of results.
573  &quot;versions&quot;: [ # The versions belonging to the requested service.
574    { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
575      &quot;apiConfig&quot;: { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set.
576        &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
577        &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
578        &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
579        &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
580        &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
581      },
582      &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.
583        &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.
584        &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
585          &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
586          &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
587        },
588        &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
589          &quot;targetReadBytesPerSec&quot;: 42, # Target bytes read per second.
590          &quot;targetReadOpsPerSec&quot;: 42, # Target ops read per second.
591          &quot;targetWriteBytesPerSec&quot;: 42, # Target bytes written per second.
592          &quot;targetWriteOpsPerSec&quot;: 42, # Target ops written per second.
593        },
594        &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.
595        &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
596        &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.
597        &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests.
598        &quot;minIdleInstances&quot;: 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module.
599        &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.
600        &quot;minTotalInstances&quot;: 42, # Minimum number of instances that should be maintained for this version.
601        &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
602          &quot;targetReceivedBytesPerSec&quot;: 42, # Target bytes received per second.
603          &quot;targetReceivedPacketsPerSec&quot;: 42, # Target packets received per second.
604          &quot;targetSentBytesPerSec&quot;: 42, # Target bytes sent per second.
605          &quot;targetSentPacketsPerSec&quot;: 42, # Target packets sent per second.
606        },
607        &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
608          &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
609          &quot;targetRequestCountPerSec&quot;: 42, # Target requests per second.
610        },
611      },
612      &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.
613        &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.
614        &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
615      },
616      &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
617        &quot;a_key&quot;: &quot;A String&quot;,
618      },
619      &quot;creationTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
620      &quot;defaultExpiration&quot;: &quot;A String&quot;, # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#staticfileshandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
621      &quot;deployer&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
622      &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.
623        &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.
624          &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;
625        },
626        &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.
627          &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.
628            &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
629            &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
630            &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/&lt;bucket&gt;/&lt;object&gt;&#x27;.
631          },
632        },
633        &quot;sourceReferences&quot;: [ # Origin of the source code for this deployment. There can be more than one source reference per version if source code is distributed among multiple repositories.
634          { # Reference to a particular snapshot of the source tree used to build and deploy the application.
635            &quot;repository&quot;: &quot;A String&quot;, # URI string identifying the repository. Example: &quot;https://source.developers.google.com/p/app-123/r/default&quot;
636            &quot;revisionId&quot;: &quot;A String&quot;, # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): &quot;2198322f89e0bb2e25021667c2ed489d1fd34e6b&quot;
637          },
638        ],
639      },
640      &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Total size of version files hosted on App Engine disk in bytes.@OutputOnly
641      &quot;endpointsApiService&quot;: { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration id of a &quot;service&quot; resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
642        &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 Endpoints service configuration id is fixed and config_id must be specified. To keep the Endpoints service configuration id updated with each rollout, specify RolloutStrategy.MANAGED and omit config_id.
643        &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
644        &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;
645        &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
646      },
647      &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment to use for this version.Defaults to 1.
648      &quot;envVariables&quot;: { # Environment variables made available to the application.Only returned in GET requests if view=FULL is set.
649        &quot;a_key&quot;: &quot;A String&quot;,
650      },
651      &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
652        { # Custom static error page to be served when an error occurs.
653          &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
654          &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
655          &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
656        },
657      ],
658      &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.
659        { # 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.
660          &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
661            &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
662          },
663          &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
664          &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource.
665          &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
666          &quot;script&quot;: { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern.
667            &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
668          },
669          &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
670          &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.
671            &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.
672            &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached.
673            &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
674              &quot;a_key&quot;: &quot;A String&quot;,
675            },
676            &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.
677            &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.
678            &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
679            &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
680          },
681          &quot;urlRegex&quot;: &quot;A String&quot;, # A URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
682        },
683      ],
684      &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 VM instances. Unhealthy instances are be stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
685        &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
686        &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
687        &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
688        &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
689        &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
690        &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
691        &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
692      },
693      &quot;id&quot;: &quot;A String&quot;, # Relative name of the version within the module. 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;.
694      &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
695        &quot;A String&quot;,
696      ],
697      &quot;instanceClass&quot;: &quot;A String&quot;, # Instance class that is used to run this version. Valid values are:
698          # AutomaticScaling: F1, F2, F4, F4_1G
699          # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
700      &quot;libraries&quot;: [ # Configuration for third-party Python runtime libraries required by the application.Only returned in GET requests if view=FULL is set.
701        { # Third-party Python runtime library that is required by the application.
702          &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
703          &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
704        },
705      ],
706      &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.
707        &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.
708      },
709      &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
710      &quot;network&quot;: { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
711        &quot;forwardedPorts&quot;: [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
712          &quot;A String&quot;,
713        ],
714        &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the VM instance during creation.
715        &quot;name&quot;: &quot;A String&quot;, # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
716        &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.
717            # If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
718            # If the network the VM instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
719            # If the network the VM instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.If specified, the subnetwork must exist in the same region as the Flex app.
720      },
721      &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.
722      &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
723        &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
724        &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
725        &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
726        &quot;volumes&quot;: [ # Volumes mounted within the app container.
727          { # Volumes mounted within the app container. Only applicable for VM runtimes.
728            &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
729            &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
730            &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
731          },
732        ],
733      },
734      &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
735      &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/&lt;language&gt;/config/appref
736      &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
737      &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.
738      &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
739      &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
740    },
741  ],
742}</pre>
743</div>
744
745<div class="method">
746    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
747  <pre>Retrieves the next page of results.
748
749Args:
750  previous_request: The request for the previous page. (required)
751  previous_response: The response from the request for the previous page. (required)
752
753Returns:
754  A request object that you can call &#x27;execute()&#x27; on to request the next
755  page. Returns None if there are no more items in the collection.
756    </pre>
757</div>
758
759<div class="method">
760    <code class="details" id="patch">patch(appsId, servicesId, versionsId, body=None, mask=None, x__xgafv=None)</code>
761  <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:
762serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.serving_status):  For Version resources that use basic scaling, manual scaling, or run in  the App Engine flexible environment.
763instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.instance_class):  For Version resources that run in the App Engine standard environment.
764automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling):  For Version resources that use automatic scaling and run in the App  Engine standard environment.
765automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/apps.services.versions#Version.FIELDS.automatic_scaling):  For Version resources that use automatic scaling and run in the App  Engine standard environment.
766
767Args:
768  appsId: string, Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1. (required)
769  servicesId: string, Part of `name`. See documentation of `appsId`. (required)
770  versionsId: string, Part of `name`. See documentation of `appsId`. (required)
771  body: object, The request body.
772    The object takes the form of:
773
774{ # A Version resource is a specific set of source code and configuration files that are deployed into a service.
775  &quot;apiConfig&quot;: { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set.
776    &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
777    &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource. Defaults to optional.
778    &quot;script&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
779    &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
780    &quot;url&quot;: &quot;A String&quot;, # URL to serve the endpoint at.
781  },
782  &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.
783    &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.
784    &quot;cpuUtilization&quot;: { # Target scaling by CPU usage. # Target scaling by CPU usage.
785      &quot;aggregationWindowLength&quot;: &quot;A String&quot;, # Period of time over which CPU utilization is calculated.
786      &quot;targetUtilization&quot;: 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
787    },
788    &quot;diskUtilization&quot;: { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
789      &quot;targetReadBytesPerSec&quot;: 42, # Target bytes read per second.
790      &quot;targetReadOpsPerSec&quot;: 42, # Target ops read per second.
791      &quot;targetWriteBytesPerSec&quot;: 42, # Target bytes written per second.
792      &quot;targetWriteOpsPerSec&quot;: 42, # Target ops written per second.
793    },
794    &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.
795    &quot;maxIdleInstances&quot;: 42, # Maximum number of idle instances that should be maintained for this version.
796    &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.
797    &quot;maxTotalInstances&quot;: 42, # Maximum number of instances that should be started to handle requests.
798    &quot;minIdleInstances&quot;: 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a module.
799    &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.
800    &quot;minTotalInstances&quot;: 42, # Minimum number of instances that should be maintained for this version.
801    &quot;networkUtilization&quot;: { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
802      &quot;targetReceivedBytesPerSec&quot;: 42, # Target bytes received per second.
803      &quot;targetReceivedPacketsPerSec&quot;: 42, # Target packets received per second.
804      &quot;targetSentBytesPerSec&quot;: 42, # Target bytes sent per second.
805      &quot;targetSentPacketsPerSec&quot;: 42, # Target packets sent per second.
806    },
807    &quot;requestUtilization&quot;: { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
808      &quot;targetConcurrentRequests&quot;: 42, # Target number of concurrent requests.
809      &quot;targetRequestCountPerSec&quot;: 42, # Target requests per second.
810    },
811  },
812  &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.
813    &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.
814    &quot;maxInstances&quot;: 42, # Maximum number of instances to create for this version.
815  },
816  &quot;betaSettings&quot;: { # Metadata settings that are supplied to this version to enable beta runtime features.
817    &quot;a_key&quot;: &quot;A String&quot;,
818  },
819  &quot;creationTime&quot;: &quot;A String&quot;, # Time that this version was created.@OutputOnly
820  &quot;defaultExpiration&quot;: &quot;A String&quot;, # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#staticfileshandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
821  &quot;deployer&quot;: &quot;A String&quot;, # Email address of the user who created this version.@OutputOnly
822  &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.
823    &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.
824      &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;
825    },
826    &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.
827      &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.
828        &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.Defaults to the value from Google Cloud Storage.
829        &quot;sha1Sum&quot;: &quot;A String&quot;, # The SHA1 hash of the file, in hex.
830        &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/&lt;bucket&gt;/&lt;object&gt;&#x27;.
831      },
832    },
833    &quot;sourceReferences&quot;: [ # Origin of the source code for this deployment. There can be more than one source reference per version if source code is distributed among multiple repositories.
834      { # Reference to a particular snapshot of the source tree used to build and deploy the application.
835        &quot;repository&quot;: &quot;A String&quot;, # URI string identifying the repository. Example: &quot;https://source.developers.google.com/p/app-123/r/default&quot;
836        &quot;revisionId&quot;: &quot;A String&quot;, # The canonical, persistent identifier of the deployed revision. Aliases that include tags or branch names are not allowed. Example (git): &quot;2198322f89e0bb2e25021667c2ed489d1fd34e6b&quot;
837      },
838    ],
839  },
840  &quot;diskUsageBytes&quot;: &quot;A String&quot;, # Total size of version files hosted on App Engine disk in bytes.@OutputOnly
841  &quot;endpointsApiService&quot;: { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy. Only valid for App Engine Flexible environment deployments.The fields here refer to the name and configuration id of a &quot;service&quot; resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
842    &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 Endpoints service configuration id is fixed and config_id must be specified. To keep the Endpoints service configuration id updated with each rollout, specify RolloutStrategy.MANAGED and omit config_id.
843    &quot;disableTraceSampling&quot;: True or False, # Enable or disable trace sampling. By default, this is set to false for enabled.
844    &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;
845    &quot;rolloutStrategy&quot;: &quot;A String&quot;, # Endpoints rollout strategy. If FIXED, config_id must be specified. If MANAGED, config_id must be omitted.
846  },
847  &quot;env&quot;: &quot;A String&quot;, # App Engine execution environment to use for this version.Defaults to 1.
848  &quot;envVariables&quot;: { # Environment variables made available to the application.Only returned in GET requests if view=FULL is set.
849    &quot;a_key&quot;: &quot;A String&quot;,
850  },
851  &quot;errorHandlers&quot;: [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
852    { # Custom static error page to be served when an error occurs.
853      &quot;errorCode&quot;: &quot;A String&quot;, # Error condition this handler applies to.
854      &quot;mimeType&quot;: &quot;A String&quot;, # MIME type of file. Defaults to text/html.
855      &quot;staticFile&quot;: &quot;A String&quot;, # Static file content to be served for this error.
856    },
857  ],
858  &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.
859    { # 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.
860      &quot;apiEndpoint&quot;: { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
861        &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
862      },
863      &quot;authFailAction&quot;: &quot;A String&quot;, # Action to take when users access resources that require authentication. Defaults to redirect.
864      &quot;login&quot;: &quot;A String&quot;, # Level of login required to access this resource.
865      &quot;redirectHttpResponseCode&quot;: &quot;A String&quot;, # 30x code to use when performing redirects for the secure field. Defaults to 302.
866      &quot;script&quot;: { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern.
867        &quot;scriptPath&quot;: &quot;A String&quot;, # Path to the script from the application root directory.
868      },
869      &quot;securityLevel&quot;: &quot;A String&quot;, # Security (HTTPS) enforcement for this URL.
870      &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.
871        &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.
872        &quot;expiration&quot;: &quot;A String&quot;, # Time a static file served by this handler should be cached.
873        &quot;httpHeaders&quot;: { # HTTP headers to use for all responses from these URLs.
874          &quot;a_key&quot;: &quot;A String&quot;,
875        },
876        &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.
877        &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.
878        &quot;requireMatchingFile&quot;: True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
879        &quot;uploadPathRegex&quot;: &quot;A String&quot;, # Regular expression that matches the file paths for all files that should be referenced by this handler.
880      },
881      &quot;urlRegex&quot;: &quot;A String&quot;, # A URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
882    },
883  ],
884  &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 VM instances. Unhealthy instances are be stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
885    &quot;checkInterval&quot;: &quot;A String&quot;, # Interval between health checks.
886    &quot;disableHealthCheck&quot;: True or False, # Whether to explicitly disable health checks for this instance.
887    &quot;healthyThreshold&quot;: 42, # Number of consecutive successful health checks required before receiving traffic.
888    &quot;host&quot;: &quot;A String&quot;, # Host header to send when performing an HTTP health check. Example: &quot;myapp.appspot.com&quot;
889    &quot;restartThreshold&quot;: 42, # Number of consecutive failed health checks required before an instance is restarted.
890    &quot;timeout&quot;: &quot;A String&quot;, # Time before the health check is considered failed.
891    &quot;unhealthyThreshold&quot;: 42, # Number of consecutive failed health checks required before removing traffic.
892  },
893  &quot;id&quot;: &quot;A String&quot;, # Relative name of the version within the module. 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;.
894  &quot;inboundServices&quot;: [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
895    &quot;A String&quot;,
896  ],
897  &quot;instanceClass&quot;: &quot;A String&quot;, # Instance class that is used to run this version. Valid values are:
898      # AutomaticScaling: F1, F2, F4, F4_1G
899      # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
900  &quot;libraries&quot;: [ # Configuration for third-party Python runtime libraries required by the application.Only returned in GET requests if view=FULL is set.
901    { # Third-party Python runtime library that is required by the application.
902      &quot;name&quot;: &quot;A String&quot;, # Name of the library. Example: &quot;django&quot;.
903      &quot;version&quot;: &quot;A String&quot;, # Version of the library to select, or &quot;latest&quot;.
904    },
905  ],
906  &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.
907    &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.
908  },
909  &quot;name&quot;: &quot;A String&quot;, # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
910  &quot;network&quot;: { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
911    &quot;forwardedPorts&quot;: [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
912      &quot;A String&quot;,
913    ],
914    &quot;instanceTag&quot;: &quot;A String&quot;, # Tag to apply to the VM instance during creation.
915    &quot;name&quot;: &quot;A String&quot;, # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
916    &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.
917        # If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
918        # If the network the VM instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.
919        # If the network the VM instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.If specified, the subnetwork must exist in the same region as the Flex app.
920  },
921  &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.
922  &quot;resources&quot;: { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
923    &quot;cpu&quot;: 3.14, # Number of CPU cores needed.
924    &quot;diskGb&quot;: 3.14, # Disk size (GB) needed.
925    &quot;memoryGb&quot;: 3.14, # Memory (GB) needed.
926    &quot;volumes&quot;: [ # Volumes mounted within the app container.
927      { # Volumes mounted within the app container. Only applicable for VM runtimes.
928        &quot;name&quot;: &quot;A String&quot;, # Unique name for the volume.
929        &quot;sizeGb&quot;: 3.14, # Volume size in gigabytes.
930        &quot;volumeType&quot;: &quot;A String&quot;, # Underlying volume type, e.g. &#x27;tmpfs&#x27;.
931      },
932    ],
933  },
934  &quot;runtime&quot;: &quot;A String&quot;, # Desired runtime. Example: python27.
935  &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/&lt;language&gt;/config/appref
936  &quot;runtimeMainExecutablePath&quot;: &quot;A String&quot;, # The path or name of the app&#x27;s main executable.
937  &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.
938  &quot;threadsafe&quot;: True or False, # Whether multiple requests can be dispatched to this version at once.
939  &quot;vm&quot;: True or False, # Whether to deploy this version in a container on a virtual machine.
940}
941
942  mask: string, Standard field mask for the set of fields to be updated.
943  x__xgafv: string, V1 error format.
944    Allowed values
945      1 - v1 error format
946      2 - v2 error format
947
948Returns:
949  An object of the form:
950
951    { # This resource represents a long-running operation that is the result of a network API call.
952  &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.
953  &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). The error model is designed to be: # The error result of the operation in case of failure or cancellation.
954      # Simple to use and understand for most users
955      # Flexible enough to meet unexpected needsOverviewThe Status message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers understand and resolve the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package google.rpc that can be used for common error conditions.Language mappingThe Status message is the logical representation of the error model, but it is not necessarily the actual wire format. When the Status message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C.Other usesThe error model and the Status message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments.Example uses of this error model include:
956      # Partial errors. If a service needs to return partial errors to the client, it may embed the Status in the normal response to indicate the partial errors.
957      # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.
958      # Batch operations. If a client uses batch request and batch response, the Status message should be used directly inside batch response, one for each error sub-response.
959      # Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the Status message.
960      # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
961    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
962    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
963      {
964        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
965      },
966    ],
967    &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.
968  },
969  &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.
970    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
971  },
972  &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 have the format of operations/some/unique/name.
973  &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
974    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
975  },
976}</pre>
977</div>
978
979</body></html>