Home | History | Annotate | Download | only in dyn
      1 <html><body>
      2 <style>
      3 
      4 body, h1, h2, h3, div, span, p, pre, a {
      5   margin: 0;
      6   padding: 0;
      7   border: 0;
      8   font-weight: inherit;
      9   font-style: inherit;
     10   font-size: 100%;
     11   font-family: inherit;
     12   vertical-align: baseline;
     13 }
     14 
     15 body {
     16   font-size: 13px;
     17   padding: 1em;
     18 }
     19 
     20 h1 {
     21   font-size: 26px;
     22   margin-bottom: 1em;
     23 }
     24 
     25 h2 {
     26   font-size: 24px;
     27   margin-bottom: 1em;
     28 }
     29 
     30 h3 {
     31   font-size: 20px;
     32   margin-bottom: 1em;
     33   margin-top: 1em;
     34 }
     35 
     36 pre, code {
     37   line-height: 1.5;
     38   font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
     39 }
     40 
     41 pre {
     42   margin-top: 0.5em;
     43 }
     44 
     45 h1, h2, h3, p {
     46   font-family: Arial, sans serif;
     47 }
     48 
     49 h1, h2, h3 {
     50   border-bottom: solid #CCC 1px;
     51 }
     52 
     53 .toc_element {
     54   margin-top: 0.5em;
     55 }
     56 
     57 .firstline {
     58   margin-left: 2 em;
     59 }
     60 
     61 .method  {
     62   margin-top: 1em;
     63   border: solid 1px #CCC;
     64   padding: 1em;
     65   background: #EEE;
     66 }
     67 
     68 .details {
     69   font-weight: bold;
     70   font-size: 14px;
     71 }
     72 
     73 </style>
     74 
     75 <h1><a href="appengine_v1beta.html">Google App Engine Admin API</a> . <a href="appengine_v1beta.apps.html">apps</a> . <a href="appengine_v1beta.apps.services.html">services</a> . <a href="appengine_v1beta.apps.services.versions.html">versions</a></h1>
     76 <h2>Instance Methods</h2>
     77 <p class="toc_element">
     78   <code><a href="appengine_v1beta.apps.services.versions.instances.html">instances()</a></code>
     79 </p>
     80 <p class="firstline">Returns the instances Resource.</p>
     81 
     82 <p class="toc_element">
     83   <code><a href="#create">create(appsId, servicesId, body, x__xgafv=None)</a></code></p>
     84 <p class="firstline">Deploys code and resource files to a new version.</p>
     85 <p class="toc_element">
     86   <code><a href="#delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</a></code></p>
     87 <p class="firstline">Deletes an existing Version resource.</p>
     88 <p class="toc_element">
     89   <code><a href="#get">get(appsId, servicesId, versionsId, x__xgafv=None, view=None)</a></code></p>
     90 <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>
     91 <p class="toc_element">
     92   <code><a href="#list">list(appsId, servicesId, pageSize=None, pageToken=None, x__xgafv=None, view=None)</a></code></p>
     93 <p class="firstline">Lists the versions of a service.</p>
     94 <p class="toc_element">
     95   <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
     96 <p class="firstline">Retrieves the next page of results.</p>
     97 <p class="toc_element">
     98   <code><a href="#patch">patch(appsId, servicesId, versionsId, body, updateMask=None, x__xgafv=None)</a></code></p>
     99 <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>
    100 <h3>Method Details</h3>
    101 <div class="method">
    102     <code class="details" id="create">create(appsId, servicesId, body, x__xgafv=None)</code>
    103   <pre>Deploys code and resource files to a new version.
    104 
    105 Args:
    106   appsId: string, Part of `parent`. Name of the parent resource to create this version under. Example: apps/myapp/services/default. (required)
    107   servicesId: string, Part of `parent`. See documentation of `appsId`. (required)
    108   body: object, The request body. (required)
    109     The object takes the form of:
    110 
    111 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
    112     "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
    113       "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"
    114       "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
    115     },
    116     "defaultExpiration": "A String", # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#staticfileshandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
    117     "basicScaling": { # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
    118       "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
    119       "maxInstances": 42, # Maximum number of instances to create for this version.
    120     },
    121     "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
    122     "instanceClass": "A String", # Instance class that is used to run this version. Valid values are:
    123         # AutomaticScaling: F1, F2, F4, F4_1G
    124         # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
    125     "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
    126       { # Custom static error page to be served when an error occurs.
    127         "errorCode": "A String", # Error condition this handler applies to.
    128         "mimeType": "A String", # MIME type of file. Defaults to text/html.
    129         "staticFile": "A String", # Static file content to be served for this error.
    130       },
    131     ],
    132     "id": "A String", # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-".
    133     "readinessCheck": { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for VM instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
    134       "checkInterval": "A String", # Interval between health checks.
    135       "host": "A String", # Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
    136       "timeout": "A String", # Time before the check is considered failed.
    137       "path": "A String", # The request path.
    138       "successThreshold": 42, # Number of consecutive successful checks required before receiving traffic.
    139       "failureThreshold": 42, # Number of consecutive failed checks required before removing traffic.
    140     },
    141     "apiConfig": { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set.
    142       "url": "A String", # URL to serve the endpoint at.
    143       "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
    144       "login": "A String", # Level of login required to access this resource. Defaults to optional.
    145       "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
    146       "script": "A String", # Path to the script from the application root directory.
    147     },
    148     "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
    149       "instanceTag": "A String", # Tag to apply to the VM instance during creation.
    150       "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
    151         "A String",
    152       ],
    153       "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
    154       "subnetworkName": "A String", # Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.If a subnetwork name is specified, a network name will also be required unless it is for the default network.
    155           # If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
    156           # 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.
    157           # 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.
    158     },
    159     "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
    160       "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
    161       "checkInterval": "A String", # Interval between health checks.
    162       "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
    163       "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
    164       "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
    165       "timeout": "A String", # Time before the health check is considered failed.
    166       "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
    167     },
    168     "versionUrl": "A String", # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly
    169     "libraries": [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
    170       { # Third-party Python runtime library that is required by the application.
    171         "version": "A String", # Version of the library to select, or "latest".
    172         "name": "A String", # Name of the library. Example: "django".
    173       },
    174     ],
    175     "env": "A String", # App Engine execution environment for this version.Defaults to standard.
    176     "diskUsageBytes": "A String", # Total size in bytes of all the files that are included in this version and curerntly hosted on the App Engine disk.@OutputOnly
    177     "automaticScaling": { # Automatic scaling is based on request rate, response latencies, and other application metrics. # Automatic scaling is based on request rate, response latencies, and other application metrics.
    178       "standardSchedulerSettings": { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
    179         "targetCpuUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling.
    180         "targetThroughputUtilization": 3.14, # Target throughput utilization ratio to maintain when scaling
    181       },
    182       "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
    183       "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
    184         "targetReceivedPacketsPerSecond": 42, # Target packets received per second.
    185         "targetSentPacketsPerSecond": 42, # Target packets sent per second.
    186         "targetReceivedBytesPerSecond": 42, # Target bytes received per second.
    187         "targetSentBytesPerSecond": 42, # Target bytes sent per second.
    188       },
    189       "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
    190       "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
    191       "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
    192       "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
    193         "targetReadOpsPerSecond": 42, # Target ops read per seconds.
    194         "targetWriteBytesPerSecond": 42, # Target bytes written per second.
    195         "targetReadBytesPerSecond": 42, # Target bytes read per second.
    196         "targetWriteOpsPerSecond": 42, # Target ops written per second.
    197       },
    198       "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
    199         "targetConcurrentRequests": 42, # Target number of concurrent requests.
    200         "targetRequestCountPerSecond": 42, # Target requests per second.
    201       },
    202       "coolDownPeriod": "A String", # Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait between changes to the number of virtual machines. Only applicable for VM runtimes.
    203       "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
    204       "maxConcurrentRequests": 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value.
    205       "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
    206       "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
    207         "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
    208         "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
    209       },
    210     },
    211     "envVariables": { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
    212       "a_key": "A String",
    213     },
    214     "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
    215       "memoryGb": 3.14, # Memory (GB) needed.
    216       "diskGb": 3.14, # Disk size (GB) needed.
    217       "cpu": 3.14, # Number of CPU cores needed.
    218       "volumes": [ # User specified volumes.
    219         { # Volumes mounted within the app container. Only applicable for VM runtimes.
    220           "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'.
    221           "name": "A String", # Unique name for the volume.
    222           "sizeGb": 3.14, # Volume size in gigabytes.
    223         },
    224       ],
    225     },
    226     "manualScaling": { # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
    227       "instances": 42, # Number of instances to assign to the service at the start. This number can later be altered by using the Modules API (https://cloud.google.com/appengine/docs/python/modules/functions) set_num_instances() function.
    228     },
    229     "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
    230       "A String",
    231     ],
    232     "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
    233       "a_key": "A String",
    234     },
    235     "createdBy": "A String", # Email address of the user who created this version.@OutputOnly
    236     "deployment": { # Code and application artifacts used to deploy a version to App Engine. # Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set.
    237       "files": { # Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.
    238         "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
    239           "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage.
    240           "sourceUrl": "A String", # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
    241           "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
    242         },
    243       },
    244       "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.
    245         "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
    246       },
    247       "build": { # Google Cloud Container Builder build information. # Google Cloud Container Builder build information.
    248         "cloudBuildId": "A String", # The Google Cloud Container Builder build id. Example: "f966068f-08b2-42c8-bdfe-74137dff2bf9"
    249       },
    250       "zip": { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
    251         "filesCount": 42, # An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.
    252         "sourceUrl": "A String", # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
    253       },
    254     },
    255     "livenessCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for VM instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
    256       "checkInterval": "A String", # Interval between health checks.
    257       "initialDelay": "A String", # The initial delay before starting to execute the checks.
    258       "host": "A String", # Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
    259       "timeout": "A String", # Time before the check is considered failed.
    260       "path": "A String", # The request path.
    261       "successThreshold": 42, # Number of consecutive successful checks required before considering the VM healthy.
    262       "failureThreshold": 42, # Number of consecutive failed checks required before considering the VM unhealthy.
    263     },
    264     "createTime": "A String", # Time that this version was created.@OutputOnly
    265     "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
    266     "runtimeApiVersion": "A String", # 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/<language>/config/appref
    267     "nobuildFilesRegex": "A String", # Files that match this pattern will not be built into this version. Only applicable for Go runtimes.Only returned in GET requests if view=FULL is set.
    268     "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
    269     "handlers": [ # An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted.Only returned in GET requests if view=FULL is set.
    270       { # 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.
    271         "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
    272         "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
    273         "urlRegex": "A String", # URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
    274         "script": { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern.
    275           "scriptPath": "A String", # Path to the script from the application root directory.
    276         },
    277         "staticFiles": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. # Returns the contents of a file, such as an image, as the response.
    278           "mimeType": "A String", # MIME type used to serve all files served by this handler.Defaults to file-specific MIME types, which are derived from each file's filename extension.
    279           "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
    280           "expiration": "A String", # Time a static file served by this handler should be cached by web proxies and browsers.
    281           "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
    282           "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
    283           "path": "A String", # Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
    284           "httpHeaders": { # HTTP headers to use for all responses from these URLs.
    285             "a_key": "A String",
    286           },
    287         },
    288         "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
    289           "scriptPath": "A String", # Path to the script from the application root directory.
    290         },
    291         "login": "A String", # Level of login required to access this resource.
    292         "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302.
    293       },
    294     ],
    295     "servingStatus": "A String", # Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING.
    296     "runtime": "A String", # Desired runtime. Example: python27.
    297   }
    298 
    299   x__xgafv: string, V1 error format.
    300     Allowed values
    301       1 - v1 error format
    302       2 - v2 error format
    303 
    304 Returns:
    305   An object of the form:
    306 
    307     { # This resource represents a long-running operation that is the result of a network API call.
    308     "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
    309       "a_key": "", # Properties of the object. Contains field @type with type URL.
    310     },
    311     "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be: # The error result of the operation in case of failure or cancellation.
    312         # Simple to use and understand for most users
    313         # 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:
    314         # 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.
    315         # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.
    316         # 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.
    317         # 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.
    318         # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
    319       "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    320       "code": 42, # The status code, which should be an enum value of google.rpc.Code.
    321       "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
    322         {
    323           "a_key": "", # Properties of the object. Contains field @type with type URL.
    324         },
    325       ],
    326     },
    327     "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
    328     "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
    329       "a_key": "", # Properties of the object. Contains field @type with type URL.
    330     },
    331     "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should have the format of operations/some/unique/name.
    332   }</pre>
    333 </div>
    334 
    335 <div class="method">
    336     <code class="details" id="delete">delete(appsId, servicesId, versionsId, x__xgafv=None)</code>
    337   <pre>Deletes an existing Version resource.
    338 
    339 Args:
    340   appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
    341   servicesId: string, Part of `name`. See documentation of `appsId`. (required)
    342   versionsId: string, Part of `name`. See documentation of `appsId`. (required)
    343   x__xgafv: string, V1 error format.
    344     Allowed values
    345       1 - v1 error format
    346       2 - v2 error format
    347 
    348 Returns:
    349   An object of the form:
    350 
    351     { # This resource represents a long-running operation that is the result of a network API call.
    352     "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
    353       "a_key": "", # Properties of the object. Contains field @type with type URL.
    354     },
    355     "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be: # The error result of the operation in case of failure or cancellation.
    356         # Simple to use and understand for most users
    357         # 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:
    358         # 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.
    359         # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.
    360         # 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.
    361         # 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.
    362         # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
    363       "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    364       "code": 42, # The status code, which should be an enum value of google.rpc.Code.
    365       "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
    366         {
    367           "a_key": "", # Properties of the object. Contains field @type with type URL.
    368         },
    369       ],
    370     },
    371     "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
    372     "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
    373       "a_key": "", # Properties of the object. Contains field @type with type URL.
    374     },
    375     "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should have the format of operations/some/unique/name.
    376   }</pre>
    377 </div>
    378 
    379 <div class="method">
    380     <code class="details" id="get">get(appsId, servicesId, versionsId, x__xgafv=None, view=None)</code>
    381   <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.
    382 
    383 Args:
    384   appsId: string, Part of `name`. Name of the resource requested. Example: apps/myapp/services/default/versions/v1. (required)
    385   servicesId: string, Part of `name`. See documentation of `appsId`. (required)
    386   versionsId: string, Part of `name`. See documentation of `appsId`. (required)
    387   x__xgafv: string, V1 error format.
    388     Allowed values
    389       1 - v1 error format
    390       2 - v2 error format
    391   view: string, Controls the set of fields returned in the Get response.
    392 
    393 Returns:
    394   An object of the form:
    395 
    396     { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
    397       "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
    398         "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"
    399         "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
    400       },
    401       "defaultExpiration": "A String", # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#staticfileshandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
    402       "basicScaling": { # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
    403         "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
    404         "maxInstances": 42, # Maximum number of instances to create for this version.
    405       },
    406       "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
    407       "instanceClass": "A String", # Instance class that is used to run this version. Valid values are:
    408           # AutomaticScaling: F1, F2, F4, F4_1G
    409           # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
    410       "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
    411         { # Custom static error page to be served when an error occurs.
    412           "errorCode": "A String", # Error condition this handler applies to.
    413           "mimeType": "A String", # MIME type of file. Defaults to text/html.
    414           "staticFile": "A String", # Static file content to be served for this error.
    415         },
    416       ],
    417       "id": "A String", # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-".
    418       "readinessCheck": { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for VM instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
    419         "checkInterval": "A String", # Interval between health checks.
    420         "host": "A String", # Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
    421         "timeout": "A String", # Time before the check is considered failed.
    422         "path": "A String", # The request path.
    423         "successThreshold": 42, # Number of consecutive successful checks required before receiving traffic.
    424         "failureThreshold": 42, # Number of consecutive failed checks required before removing traffic.
    425       },
    426       "apiConfig": { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set.
    427         "url": "A String", # URL to serve the endpoint at.
    428         "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
    429         "login": "A String", # Level of login required to access this resource. Defaults to optional.
    430         "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
    431         "script": "A String", # Path to the script from the application root directory.
    432       },
    433       "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
    434         "instanceTag": "A String", # Tag to apply to the VM instance during creation.
    435         "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
    436           "A String",
    437         ],
    438         "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
    439         "subnetworkName": "A String", # Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.If a subnetwork name is specified, a network name will also be required unless it is for the default network.
    440             # If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
    441             # 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.
    442             # 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.
    443       },
    444       "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
    445         "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
    446         "checkInterval": "A String", # Interval between health checks.
    447         "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
    448         "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
    449         "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
    450         "timeout": "A String", # Time before the health check is considered failed.
    451         "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
    452       },
    453       "versionUrl": "A String", # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly
    454       "libraries": [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
    455         { # Third-party Python runtime library that is required by the application.
    456           "version": "A String", # Version of the library to select, or "latest".
    457           "name": "A String", # Name of the library. Example: "django".
    458         },
    459       ],
    460       "env": "A String", # App Engine execution environment for this version.Defaults to standard.
    461       "diskUsageBytes": "A String", # Total size in bytes of all the files that are included in this version and curerntly hosted on the App Engine disk.@OutputOnly
    462       "automaticScaling": { # Automatic scaling is based on request rate, response latencies, and other application metrics. # Automatic scaling is based on request rate, response latencies, and other application metrics.
    463         "standardSchedulerSettings": { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
    464           "targetCpuUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling.
    465           "targetThroughputUtilization": 3.14, # Target throughput utilization ratio to maintain when scaling
    466         },
    467         "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
    468         "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
    469           "targetReceivedPacketsPerSecond": 42, # Target packets received per second.
    470           "targetSentPacketsPerSecond": 42, # Target packets sent per second.
    471           "targetReceivedBytesPerSecond": 42, # Target bytes received per second.
    472           "targetSentBytesPerSecond": 42, # Target bytes sent per second.
    473         },
    474         "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
    475         "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
    476         "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
    477         "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
    478           "targetReadOpsPerSecond": 42, # Target ops read per seconds.
    479           "targetWriteBytesPerSecond": 42, # Target bytes written per second.
    480           "targetReadBytesPerSecond": 42, # Target bytes read per second.
    481           "targetWriteOpsPerSecond": 42, # Target ops written per second.
    482         },
    483         "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
    484           "targetConcurrentRequests": 42, # Target number of concurrent requests.
    485           "targetRequestCountPerSecond": 42, # Target requests per second.
    486         },
    487         "coolDownPeriod": "A String", # Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait between changes to the number of virtual machines. Only applicable for VM runtimes.
    488         "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
    489         "maxConcurrentRequests": 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value.
    490         "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
    491         "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
    492           "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
    493           "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
    494         },
    495       },
    496       "envVariables": { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
    497         "a_key": "A String",
    498       },
    499       "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
    500         "memoryGb": 3.14, # Memory (GB) needed.
    501         "diskGb": 3.14, # Disk size (GB) needed.
    502         "cpu": 3.14, # Number of CPU cores needed.
    503         "volumes": [ # User specified volumes.
    504           { # Volumes mounted within the app container. Only applicable for VM runtimes.
    505             "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'.
    506             "name": "A String", # Unique name for the volume.
    507             "sizeGb": 3.14, # Volume size in gigabytes.
    508           },
    509         ],
    510       },
    511       "manualScaling": { # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
    512         "instances": 42, # Number of instances to assign to the service at the start. This number can later be altered by using the Modules API (https://cloud.google.com/appengine/docs/python/modules/functions) set_num_instances() function.
    513       },
    514       "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
    515         "A String",
    516       ],
    517       "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
    518         "a_key": "A String",
    519       },
    520       "createdBy": "A String", # Email address of the user who created this version.@OutputOnly
    521       "deployment": { # Code and application artifacts used to deploy a version to App Engine. # Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set.
    522         "files": { # Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.
    523           "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
    524             "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage.
    525             "sourceUrl": "A String", # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
    526             "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
    527           },
    528         },
    529         "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.
    530           "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
    531         },
    532         "build": { # Google Cloud Container Builder build information. # Google Cloud Container Builder build information.
    533           "cloudBuildId": "A String", # The Google Cloud Container Builder build id. Example: "f966068f-08b2-42c8-bdfe-74137dff2bf9"
    534         },
    535         "zip": { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
    536           "filesCount": 42, # An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.
    537           "sourceUrl": "A String", # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
    538         },
    539       },
    540       "livenessCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for VM instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
    541         "checkInterval": "A String", # Interval between health checks.
    542         "initialDelay": "A String", # The initial delay before starting to execute the checks.
    543         "host": "A String", # Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
    544         "timeout": "A String", # Time before the check is considered failed.
    545         "path": "A String", # The request path.
    546         "successThreshold": 42, # Number of consecutive successful checks required before considering the VM healthy.
    547         "failureThreshold": 42, # Number of consecutive failed checks required before considering the VM unhealthy.
    548       },
    549       "createTime": "A String", # Time that this version was created.@OutputOnly
    550       "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
    551       "runtimeApiVersion": "A String", # 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/<language>/config/appref
    552       "nobuildFilesRegex": "A String", # Files that match this pattern will not be built into this version. Only applicable for Go runtimes.Only returned in GET requests if view=FULL is set.
    553       "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
    554       "handlers": [ # An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted.Only returned in GET requests if view=FULL is set.
    555         { # 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.
    556           "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
    557           "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
    558           "urlRegex": "A String", # URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
    559           "script": { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern.
    560             "scriptPath": "A String", # Path to the script from the application root directory.
    561           },
    562           "staticFiles": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. # Returns the contents of a file, such as an image, as the response.
    563             "mimeType": "A String", # MIME type used to serve all files served by this handler.Defaults to file-specific MIME types, which are derived from each file's filename extension.
    564             "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
    565             "expiration": "A String", # Time a static file served by this handler should be cached by web proxies and browsers.
    566             "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
    567             "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
    568             "path": "A String", # Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
    569             "httpHeaders": { # HTTP headers to use for all responses from these URLs.
    570               "a_key": "A String",
    571             },
    572           },
    573           "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
    574             "scriptPath": "A String", # Path to the script from the application root directory.
    575           },
    576           "login": "A String", # Level of login required to access this resource.
    577           "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302.
    578         },
    579       ],
    580       "servingStatus": "A String", # Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING.
    581       "runtime": "A String", # Desired runtime. Example: python27.
    582     }</pre>
    583 </div>
    584 
    585 <div class="method">
    586     <code class="details" id="list">list(appsId, servicesId, pageSize=None, pageToken=None, x__xgafv=None, view=None)</code>
    587   <pre>Lists the versions of a service.
    588 
    589 Args:
    590   appsId: string, Part of `parent`. Name of the parent Service resource. Example: apps/myapp/services/default. (required)
    591   servicesId: string, Part of `parent`. See documentation of `appsId`. (required)
    592   pageSize: integer, Maximum results to return per page.
    593   pageToken: string, Continuation token for fetching the next page of results.
    594   x__xgafv: string, V1 error format.
    595     Allowed values
    596       1 - v1 error format
    597       2 - v2 error format
    598   view: string, Controls the set of fields returned in the List response.
    599 
    600 Returns:
    601   An object of the form:
    602 
    603     { # Response message for Versions.ListVersions.
    604     "nextPageToken": "A String", # Continuation token for fetching the next page of results.
    605     "versions": [ # The versions belonging to the requested service.
    606       { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
    607           "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
    608             "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"
    609             "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
    610           },
    611           "defaultExpiration": "A String", # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#staticfileshandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
    612           "basicScaling": { # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
    613             "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
    614             "maxInstances": 42, # Maximum number of instances to create for this version.
    615           },
    616           "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
    617           "instanceClass": "A String", # Instance class that is used to run this version. Valid values are:
    618               # AutomaticScaling: F1, F2, F4, F4_1G
    619               # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
    620           "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
    621             { # Custom static error page to be served when an error occurs.
    622               "errorCode": "A String", # Error condition this handler applies to.
    623               "mimeType": "A String", # MIME type of file. Defaults to text/html.
    624               "staticFile": "A String", # Static file content to be served for this error.
    625             },
    626           ],
    627           "id": "A String", # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-".
    628           "readinessCheck": { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for VM instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
    629             "checkInterval": "A String", # Interval between health checks.
    630             "host": "A String", # Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
    631             "timeout": "A String", # Time before the check is considered failed.
    632             "path": "A String", # The request path.
    633             "successThreshold": 42, # Number of consecutive successful checks required before receiving traffic.
    634             "failureThreshold": 42, # Number of consecutive failed checks required before removing traffic.
    635           },
    636           "apiConfig": { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set.
    637             "url": "A String", # URL to serve the endpoint at.
    638             "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
    639             "login": "A String", # Level of login required to access this resource. Defaults to optional.
    640             "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
    641             "script": "A String", # Path to the script from the application root directory.
    642           },
    643           "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
    644             "instanceTag": "A String", # Tag to apply to the VM instance during creation.
    645             "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
    646               "A String",
    647             ],
    648             "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
    649             "subnetworkName": "A String", # Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.If a subnetwork name is specified, a network name will also be required unless it is for the default network.
    650                 # If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
    651                 # 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.
    652                 # 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.
    653           },
    654           "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
    655             "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
    656             "checkInterval": "A String", # Interval between health checks.
    657             "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
    658             "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
    659             "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
    660             "timeout": "A String", # Time before the health check is considered failed.
    661             "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
    662           },
    663           "versionUrl": "A String", # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly
    664           "libraries": [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
    665             { # Third-party Python runtime library that is required by the application.
    666               "version": "A String", # Version of the library to select, or "latest".
    667               "name": "A String", # Name of the library. Example: "django".
    668             },
    669           ],
    670           "env": "A String", # App Engine execution environment for this version.Defaults to standard.
    671           "diskUsageBytes": "A String", # Total size in bytes of all the files that are included in this version and curerntly hosted on the App Engine disk.@OutputOnly
    672           "automaticScaling": { # Automatic scaling is based on request rate, response latencies, and other application metrics. # Automatic scaling is based on request rate, response latencies, and other application metrics.
    673             "standardSchedulerSettings": { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
    674               "targetCpuUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling.
    675               "targetThroughputUtilization": 3.14, # Target throughput utilization ratio to maintain when scaling
    676             },
    677             "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
    678             "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
    679               "targetReceivedPacketsPerSecond": 42, # Target packets received per second.
    680               "targetSentPacketsPerSecond": 42, # Target packets sent per second.
    681               "targetReceivedBytesPerSecond": 42, # Target bytes received per second.
    682               "targetSentBytesPerSecond": 42, # Target bytes sent per second.
    683             },
    684             "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
    685             "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
    686             "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
    687             "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
    688               "targetReadOpsPerSecond": 42, # Target ops read per seconds.
    689               "targetWriteBytesPerSecond": 42, # Target bytes written per second.
    690               "targetReadBytesPerSecond": 42, # Target bytes read per second.
    691               "targetWriteOpsPerSecond": 42, # Target ops written per second.
    692             },
    693             "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
    694               "targetConcurrentRequests": 42, # Target number of concurrent requests.
    695               "targetRequestCountPerSecond": 42, # Target requests per second.
    696             },
    697             "coolDownPeriod": "A String", # Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait between changes to the number of virtual machines. Only applicable for VM runtimes.
    698             "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
    699             "maxConcurrentRequests": 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value.
    700             "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
    701             "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
    702               "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
    703               "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
    704             },
    705           },
    706           "envVariables": { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
    707             "a_key": "A String",
    708           },
    709           "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
    710             "memoryGb": 3.14, # Memory (GB) needed.
    711             "diskGb": 3.14, # Disk size (GB) needed.
    712             "cpu": 3.14, # Number of CPU cores needed.
    713             "volumes": [ # User specified volumes.
    714               { # Volumes mounted within the app container. Only applicable for VM runtimes.
    715                 "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'.
    716                 "name": "A String", # Unique name for the volume.
    717                 "sizeGb": 3.14, # Volume size in gigabytes.
    718               },
    719             ],
    720           },
    721           "manualScaling": { # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
    722             "instances": 42, # Number of instances to assign to the service at the start. This number can later be altered by using the Modules API (https://cloud.google.com/appengine/docs/python/modules/functions) set_num_instances() function.
    723           },
    724           "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
    725             "A String",
    726           ],
    727           "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
    728             "a_key": "A String",
    729           },
    730           "createdBy": "A String", # Email address of the user who created this version.@OutputOnly
    731           "deployment": { # Code and application artifacts used to deploy a version to App Engine. # Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set.
    732             "files": { # Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.
    733               "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
    734                 "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage.
    735                 "sourceUrl": "A String", # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
    736                 "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
    737               },
    738             },
    739             "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.
    740               "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
    741             },
    742             "build": { # Google Cloud Container Builder build information. # Google Cloud Container Builder build information.
    743               "cloudBuildId": "A String", # The Google Cloud Container Builder build id. Example: "f966068f-08b2-42c8-bdfe-74137dff2bf9"
    744             },
    745             "zip": { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
    746               "filesCount": 42, # An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.
    747               "sourceUrl": "A String", # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
    748             },
    749           },
    750           "livenessCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for VM instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
    751             "checkInterval": "A String", # Interval between health checks.
    752             "initialDelay": "A String", # The initial delay before starting to execute the checks.
    753             "host": "A String", # Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
    754             "timeout": "A String", # Time before the check is considered failed.
    755             "path": "A String", # The request path.
    756             "successThreshold": 42, # Number of consecutive successful checks required before considering the VM healthy.
    757             "failureThreshold": 42, # Number of consecutive failed checks required before considering the VM unhealthy.
    758           },
    759           "createTime": "A String", # Time that this version was created.@OutputOnly
    760           "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
    761           "runtimeApiVersion": "A String", # 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/<language>/config/appref
    762           "nobuildFilesRegex": "A String", # Files that match this pattern will not be built into this version. Only applicable for Go runtimes.Only returned in GET requests if view=FULL is set.
    763           "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
    764           "handlers": [ # An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted.Only returned in GET requests if view=FULL is set.
    765             { # 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.
    766               "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
    767               "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
    768               "urlRegex": "A String", # URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
    769               "script": { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern.
    770                 "scriptPath": "A String", # Path to the script from the application root directory.
    771               },
    772               "staticFiles": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. # Returns the contents of a file, such as an image, as the response.
    773                 "mimeType": "A String", # MIME type used to serve all files served by this handler.Defaults to file-specific MIME types, which are derived from each file's filename extension.
    774                 "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
    775                 "expiration": "A String", # Time a static file served by this handler should be cached by web proxies and browsers.
    776                 "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
    777                 "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
    778                 "path": "A String", # Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
    779                 "httpHeaders": { # HTTP headers to use for all responses from these URLs.
    780                   "a_key": "A String",
    781                 },
    782               },
    783               "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
    784                 "scriptPath": "A String", # Path to the script from the application root directory.
    785               },
    786               "login": "A String", # Level of login required to access this resource.
    787               "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302.
    788             },
    789           ],
    790           "servingStatus": "A String", # Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING.
    791           "runtime": "A String", # Desired runtime. Example: python27.
    792         },
    793     ],
    794   }</pre>
    795 </div>
    796 
    797 <div class="method">
    798     <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
    799   <pre>Retrieves the next page of results.
    800 
    801 Args:
    802   previous_request: The request for the previous page. (required)
    803   previous_response: The response from the request for the previous page. (required)
    804 
    805 Returns:
    806   A request object that you can call 'execute()' on to request the next
    807   page. Returns None if there are no more items in the collection.
    808     </pre>
    809 </div>
    810 
    811 <div class="method">
    812     <code class="details" id="patch">patch(appsId, servicesId, versionsId, body, updateMask=None, x__xgafv=None)</code>
    813   <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:
    814 serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.serving_status):  For Version resources that use basic scaling, manual scaling, or run in  the App Engine flexible environment.
    815 instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.instance_class):  For Version resources that run in the App Engine standard environment.
    816 automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling):  For Version resources that use automatic scaling and run in the App  Engine standard environment.
    817 automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS.automatic_scaling):  For Version resources that use automatic scaling and run in the App  Engine standard environment.
    818 
    819 Args:
    820   appsId: string, Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1. (required)
    821   servicesId: string, Part of `name`. See documentation of `appsId`. (required)
    822   versionsId: string, Part of `name`. See documentation of `appsId`. (required)
    823   body: object, The request body. (required)
    824     The object takes the form of:
    825 
    826 { # A Version resource is a specific set of source code and configuration files that are deployed into a service.
    827     "endpointsApiService": { # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The Endpoints API Service provides tooling for serving Open API and gRPC endpoints via an NGINX proxy.The fields here refer to the name and configuration id of a "service" resource in the Service Management API (https://cloud.google.com/service-management/overview). # Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud Endpoints Extensible Service Proxy will be provided to serve the API implemented by the app.
    828       "configId": "A String", # Endpoints service configuration id as specified by the Service Management API. For example "2016-09-19r1"
    829       "name": "A String", # Endpoints service name which is the name of the "service" resource in the Service Management API. For example "myapi.endpoints.myproject.cloud.goog"
    830     },
    831     "defaultExpiration": "A String", # Duration that static files should be cached by web proxies and browsers. Only applicable if the corresponding StaticFilesHandler (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#staticfileshandler) does not specify its own expiration time.Only returned in GET requests if view=FULL is set.
    832     "basicScaling": { # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity. # A service with basic scaling will create an instance when the application receives a request. The instance will be turned down when the app becomes idle. Basic scaling is ideal for work that is intermittent or driven by user activity.
    833       "idleTimeout": "A String", # Duration of time after the last request that an instance must wait before the instance is shut down.
    834       "maxInstances": 42, # Maximum number of instances to create for this version.
    835     },
    836     "vm": True or False, # Whether to deploy this version in a container on a virtual machine.
    837     "instanceClass": "A String", # Instance class that is used to run this version. Valid values are:
    838         # AutomaticScaling: F1, F2, F4, F4_1G
    839         # ManualScaling or BasicScaling: B1, B2, B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling or BasicScaling.
    840     "errorHandlers": [ # Custom static error pages. Limited to 10KB per page.Only returned in GET requests if view=FULL is set.
    841       { # Custom static error page to be served when an error occurs.
    842         "errorCode": "A String", # Error condition this handler applies to.
    843         "mimeType": "A String", # MIME type of file. Defaults to text/html.
    844         "staticFile": "A String", # Static file content to be served for this error.
    845       },
    846     ],
    847     "id": "A String", # Relative name of the version within the service. Example: v1. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names: "default", "latest", and any name with the prefix "ah-".
    848     "readinessCheck": { # Readiness checking configuration for VM instances. Unhealthy instances are removed from traffic rotation. # Configures readiness health checking for VM instances. Unhealthy instances are not put into the backend traffic rotation.Only returned in GET requests if view=FULL is set.
    849       "checkInterval": "A String", # Interval between health checks.
    850       "host": "A String", # Host header to send when performing a HTTP Readiness check. Example: "myapp.appspot.com"
    851       "timeout": "A String", # Time before the check is considered failed.
    852       "path": "A String", # The request path.
    853       "successThreshold": 42, # Number of consecutive successful checks required before receiving traffic.
    854       "failureThreshold": 42, # Number of consecutive failed checks required before removing traffic.
    855     },
    856     "apiConfig": { # Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for API handlers. # Serving configuration for Google Cloud Endpoints (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned in GET requests if view=FULL is set.
    857       "url": "A String", # URL to serve the endpoint at.
    858       "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
    859       "login": "A String", # Level of login required to access this resource. Defaults to optional.
    860       "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
    861       "script": "A String", # Path to the script from the application root directory.
    862     },
    863     "network": { # Extra network settings. Only applicable for VM runtimes. # Extra network settings. Only applicable for VM runtimes.
    864       "instanceTag": "A String", # Tag to apply to the VM instance during creation.
    865       "forwardedPorts": [ # List of ports, or port pairs, to forward from the virtual machine to the application container.
    866         "A String",
    867       ],
    868       "name": "A String", # Google Cloud Platform network where the virtual machines are created. Specify the short name, not the resource path.Defaults to default.
    869       "subnetworkName": "A String", # Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.If a subnetwork name is specified, a network name will also be required unless it is for the default network.
    870           # If the network the VM instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.
    871           # 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.
    872           # 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.
    873     },
    874     "healthCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. Only applicable for instances in App Engine flexible environment. # Configures health checking for VM instances. Unhealthy instances are stopped and replaced with new instances. Only applicable for VM runtimes.Only returned in GET requests if view=FULL is set.
    875       "restartThreshold": 42, # Number of consecutive failed health checks required before an instance is restarted.
    876       "checkInterval": "A String", # Interval between health checks.
    877       "unhealthyThreshold": 42, # Number of consecutive failed health checks required before removing traffic.
    878       "healthyThreshold": 42, # Number of consecutive successful health checks required before receiving traffic.
    879       "host": "A String", # Host header to send when performing an HTTP health check. Example: "myapp.appspot.com"
    880       "timeout": "A String", # Time before the health check is considered failed.
    881       "disableHealthCheck": True or False, # Whether to explicitly disable health checks for this instance.
    882     },
    883     "versionUrl": "A String", # Serving URL for this version. Example: "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly
    884     "libraries": [ # Configuration for third-party Python runtime libraries that are required by the application.Only returned in GET requests if view=FULL is set.
    885       { # Third-party Python runtime library that is required by the application.
    886         "version": "A String", # Version of the library to select, or "latest".
    887         "name": "A String", # Name of the library. Example: "django".
    888       },
    889     ],
    890     "env": "A String", # App Engine execution environment for this version.Defaults to standard.
    891     "diskUsageBytes": "A String", # Total size in bytes of all the files that are included in this version and curerntly hosted on the App Engine disk.@OutputOnly
    892     "automaticScaling": { # Automatic scaling is based on request rate, response latencies, and other application metrics. # Automatic scaling is based on request rate, response latencies, and other application metrics.
    893       "standardSchedulerSettings": { # Scheduler settings for standard environment. # Scheduler settings for standard environment.
    894         "targetCpuUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling.
    895         "targetThroughputUtilization": 3.14, # Target throughput utilization ratio to maintain when scaling
    896       },
    897       "minPendingLatency": "A String", # Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
    898       "networkUtilization": { # Target scaling by network usage. Only applicable for VM runtimes. # Target scaling by network usage.
    899         "targetReceivedPacketsPerSecond": 42, # Target packets received per second.
    900         "targetSentPacketsPerSecond": 42, # Target packets sent per second.
    901         "targetReceivedBytesPerSecond": 42, # Target bytes received per second.
    902         "targetSentBytesPerSecond": 42, # Target bytes sent per second.
    903       },
    904       "minIdleInstances": 42, # Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
    905       "maxPendingLatency": "A String", # Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
    906       "maxIdleInstances": 42, # Maximum number of idle instances that should be maintained for this version.
    907       "diskUtilization": { # Target scaling by disk usage. Only applicable for VM runtimes. # Target scaling by disk usage.
    908         "targetReadOpsPerSecond": 42, # Target ops read per seconds.
    909         "targetWriteBytesPerSecond": 42, # Target bytes written per second.
    910         "targetReadBytesPerSecond": 42, # Target bytes read per second.
    911         "targetWriteOpsPerSecond": 42, # Target ops written per second.
    912       },
    913       "requestUtilization": { # Target scaling by request utilization. Only applicable for VM runtimes. # Target scaling by request utilization.
    914         "targetConcurrentRequests": 42, # Target number of concurrent requests.
    915         "targetRequestCountPerSecond": 42, # Target requests per second.
    916       },
    917       "coolDownPeriod": "A String", # Amount of time that the Autoscaler (https://cloud.google.com/compute/docs/autoscaler/) should wait between changes to the number of virtual machines. Only applicable for VM runtimes.
    918       "maxTotalInstances": 42, # Maximum number of instances that should be started to handle requests.
    919       "maxConcurrentRequests": 42, # Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value.
    920       "minTotalInstances": 42, # Minimum number of instances that should be maintained for this version.
    921       "cpuUtilization": { # Target scaling by CPU usage. # Target scaling by CPU usage.
    922         "targetUtilization": 3.14, # Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
    923         "aggregationWindowLength": "A String", # Period of time over which CPU utilization is calculated.
    924       },
    925     },
    926     "envVariables": { # Environment variables available to the application.Only returned in GET requests if view=FULL is set.
    927       "a_key": "A String",
    928     },
    929     "resources": { # Machine resources for a version. # Machine resources for this version. Only applicable for VM runtimes.
    930       "memoryGb": 3.14, # Memory (GB) needed.
    931       "diskGb": 3.14, # Disk size (GB) needed.
    932       "cpu": 3.14, # Number of CPU cores needed.
    933       "volumes": [ # User specified volumes.
    934         { # Volumes mounted within the app container. Only applicable for VM runtimes.
    935           "volumeType": "A String", # Underlying volume type, e.g. 'tmpfs'.
    936           "name": "A String", # Unique name for the volume.
    937           "sizeGb": 3.14, # Volume size in gigabytes.
    938         },
    939       ],
    940     },
    941     "manualScaling": { # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time. # A service with manual scaling runs continuously, allowing you to perform complex initialization and rely on the state of its memory over time.
    942       "instances": 42, # Number of instances to assign to the service at the start. This number can later be altered by using the Modules API (https://cloud.google.com/appengine/docs/python/modules/functions) set_num_instances() function.
    943     },
    944     "inboundServices": [ # Before an application can receive email or XMPP messages, the application must be configured to enable the service.
    945       "A String",
    946     ],
    947     "betaSettings": { # Metadata settings that are supplied to this version to enable beta runtime features.
    948       "a_key": "A String",
    949     },
    950     "createdBy": "A String", # Email address of the user who created this version.@OutputOnly
    951     "deployment": { # Code and application artifacts used to deploy a version to App Engine. # Code and application artifacts that make up this version.Only returned in GET requests if view=FULL is set.
    952       "files": { # Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.
    953         "a_key": { # Single source file that is part of the version to be deployed. Each source file that is deployed must be specified separately.
    954           "mimeType": "A String", # The MIME type of the file.Defaults to the value from Google Cloud Storage.
    955           "sourceUrl": "A String", # URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
    956           "sha1Sum": "A String", # The SHA1 hash of the file, in hex.
    957         },
    958       },
    959       "container": { # Docker image that is used to create a container and start a VM instance for the version that you deploy. Only applicable for instances running in the App Engine flexible environment. # The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.
    960         "image": "A String", # URI to the hosted container image in Google Container Registry. The URI must be fully qualified and include a tag or digest. Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
    961       },
    962       "build": { # Google Cloud Container Builder build information. # Google Cloud Container Builder build information.
    963         "cloudBuildId": "A String", # The Google Cloud Container Builder build id. Example: "f966068f-08b2-42c8-bdfe-74137dff2bf9"
    964       },
    965       "zip": { # The zip file information for a zip deployment. # The zip file for this deployment, if this is a zip deployment.
    966         "filesCount": 42, # An estimate of the number of files in a zip for a zip deployment. If set, must be greater than or equal to the actual number of files. Used for optimizing performance; if not provided, deployment may be slow.
    967         "sourceUrl": "A String", # URL of the zip file to deploy from. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/<bucket>/<object>'.
    968       },
    969     },
    970     "livenessCheck": { # Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances. # Configures liveness health checking for VM instances. Unhealthy instances are stopped and replaced with new instancesOnly returned in GET requests if view=FULL is set.
    971       "checkInterval": "A String", # Interval between health checks.
    972       "initialDelay": "A String", # The initial delay before starting to execute the checks.
    973       "host": "A String", # Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
    974       "timeout": "A String", # Time before the check is considered failed.
    975       "path": "A String", # The request path.
    976       "successThreshold": 42, # Number of consecutive successful checks required before considering the VM healthy.
    977       "failureThreshold": 42, # Number of consecutive failed checks required before considering the VM unhealthy.
    978     },
    979     "createTime": "A String", # Time that this version was created.@OutputOnly
    980     "threadsafe": True or False, # Whether multiple requests can be dispatched to this version at once.
    981     "runtimeApiVersion": "A String", # 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/<language>/config/appref
    982     "nobuildFilesRegex": "A String", # Files that match this pattern will not be built into this version. Only applicable for Go runtimes.Only returned in GET requests if view=FULL is set.
    983     "name": "A String", # Full path to the Version resource in the API. Example: apps/myapp/services/default/versions/v1.@OutputOnly
    984     "handlers": [ # An ordered list of URL-matching patterns that should be applied to incoming requests. The first matching URL handles the request and other request handlers are not attempted.Only returned in GET requests if view=FULL is set.
    985       { # 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.
    986         "securityLevel": "A String", # Security (HTTPS) enforcement for this URL.
    987         "authFailAction": "A String", # Action to take when users access resources that require authentication. Defaults to redirect.
    988         "urlRegex": "A String", # URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
    989         "script": { # Executes a script to handle the request that matches the URL pattern. # Executes a script to handle the request that matches this URL pattern.
    990           "scriptPath": "A String", # Path to the script from the application root directory.
    991         },
    992         "staticFiles": { # Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them. # Returns the contents of a file, such as an image, as the response.
    993           "mimeType": "A String", # MIME type used to serve all files served by this handler.Defaults to file-specific MIME types, which are derived from each file's filename extension.
    994           "applicationReadable": True or False, # Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
    995           "expiration": "A String", # Time a static file served by this handler should be cached by web proxies and browsers.
    996           "requireMatchingFile": True or False, # Whether this handler should match the request if the file referenced by the handler does not exist.
    997           "uploadPathRegex": "A String", # Regular expression that matches the file paths for all files that should be referenced by this handler.
    998           "path": "A String", # Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
    999           "httpHeaders": { # HTTP headers to use for all responses from these URLs.
   1000             "a_key": "A String",
   1001           },
   1002         },
   1003         "apiEndpoint": { # Uses Google Cloud Endpoints to handle requests. # Uses API Endpoints to handle requests.
   1004           "scriptPath": "A String", # Path to the script from the application root directory.
   1005         },
   1006         "login": "A String", # Level of login required to access this resource.
   1007         "redirectHttpResponseCode": "A String", # 30x code to use when performing redirects for the secure field. Defaults to 302.
   1008       },
   1009     ],
   1010     "servingStatus": "A String", # Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an invalid value. Defaults to SERVING.
   1011     "runtime": "A String", # Desired runtime. Example: python27.
   1012   }
   1013 
   1014   updateMask: string, Standard field mask for the set of fields to be updated.
   1015   x__xgafv: string, V1 error format.
   1016     Allowed values
   1017       1 - v1 error format
   1018       2 - v2 error format
   1019 
   1020 Returns:
   1021   An object of the form:
   1022 
   1023     { # This resource represents a long-running operation that is the result of a network API call.
   1024     "metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
   1025       "a_key": "", # Properties of the object. Contains field @type with type URL.
   1026     },
   1027     "error": { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). The error model is designed to be: # The error result of the operation in case of failure or cancellation.
   1028         # Simple to use and understand for most users
   1029         # 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:
   1030         # 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.
   1031         # Workflow errors. A typical workflow has multiple steps. Each step may have a Status message for error reporting.
   1032         # 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.
   1033         # 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.
   1034         # Logging. If some API errors are stored in logs, the message Status could be used directly after any stripping needed for security/privacy reasons.
   1035       "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
   1036       "code": 42, # The status code, which should be an enum value of google.rpc.Code.
   1037       "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
   1038         {
   1039           "a_key": "", # Properties of the object. Contains field @type with type URL.
   1040         },
   1041       ],
   1042     },
   1043     "done": True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
   1044     "response": { # The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
   1045       "a_key": "", # Properties of the object. Contains field @type with type URL.
   1046     },
   1047     "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should have the format of operations/some/unique/name.
   1048   }</pre>
   1049 </div>
   1050 
   1051 </body></html>