| OLD | NEW | 
|     1 // This is a generated file (see the discoveryapis_generator project). |     1 // This is a generated file (see the discoveryapis_generator project). | 
|     2  |     2  | 
|     3 library googleapis_beta.appengine.v1beta5; |     3 library googleapis_beta.appengine.v1beta5; | 
|     4  |     4  | 
|     5 import 'dart:core' as core; |     5 import 'dart:core' as core; | 
|     6 import 'dart:async' as async; |     6 import 'dart:async' as async; | 
|     7 import 'dart:convert' as convert; |     7 import 'dart:convert' as convert; | 
|     8  |     8  | 
|     9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |     9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 
|    10 import 'package:http/http.dart' as http; |    10 import 'package:http/http.dart' as http; | 
|    11  |    11  | 
|    12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |    12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 
|    13     ApiRequestError, DetailedApiRequestError; |    13     ApiRequestError, DetailedApiRequestError; | 
|    14  |    14  | 
|    15 const core.String USER_AGENT = 'dart-api-client appengine/v1beta5'; |    15 const core.String USER_AGENT = 'dart-api-client appengine/v1beta5'; | 
|    16  |    16  | 
|    17 /** Provisions and manages App Engine applications. */ |    17 /** Provisions and manages App Engine applications. */ | 
|    18 class AppengineApi { |    18 class AppengineApi { | 
 |    19   /** View and manage your applications deployed on Google App Engine */ | 
 |    20   static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine.
      admin"; | 
 |    21  | 
|    19   /** View and manage your data across Google Cloud Platform services */ |    22   /** View and manage your data across Google Cloud Platform services */ | 
|    20   static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
      orm"; |    23   static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
      orm"; | 
|    21  |    24  | 
 |    25   /** View your data across Google Cloud Platform services */ | 
 |    26   static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
      ud-platform.read-only"; | 
 |    27  | 
|    22  |    28  | 
|    23   final commons.ApiRequester _requester; |    29   final commons.ApiRequester _requester; | 
|    24  |    30  | 
|    25   AppsResourceApi get apps => new AppsResourceApi(_requester); |    31   AppsResourceApi get apps => new AppsResourceApi(_requester); | 
|    26  |    32  | 
|    27   AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog
      leapis.com/", core.String servicePath: ""}) : |    33   AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog
      leapis.com/", core.String servicePath: ""}) : | 
|    28       _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
      GENT); |    34       _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
      GENT); | 
|    29 } |    35 } | 
|    30  |    36  | 
|    31  |    37  | 
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   125     var _response = _requester.request(_url, |   131     var _response = _requester.request(_url, | 
|   126                                        "GET", |   132                                        "GET", | 
|   127                                        body: _body, |   133                                        body: _body, | 
|   128                                        queryParams: _queryParams, |   134                                        queryParams: _queryParams, | 
|   129                                        uploadOptions: _uploadOptions, |   135                                        uploadOptions: _uploadOptions, | 
|   130                                        uploadMedia: _uploadMedia, |   136                                        uploadMedia: _uploadMedia, | 
|   131                                        downloadOptions: _downloadOptions); |   137                                        downloadOptions: _downloadOptions); | 
|   132     return _response.then((data) => new Application.fromJson(data)); |   138     return _response.then((data) => new Application.fromJson(data)); | 
|   133   } |   139   } | 
|   134  |   140  | 
 |   141   /** | 
 |   142    * Updates application fields. | 
 |   143    * | 
 |   144    * [request] - The metadata request object. | 
 |   145    * | 
 |   146    * Request parameters: | 
 |   147    * | 
 |   148    * [appsId] - Part of `name`. Name of the application to update. Example: | 
 |   149    * `apps/myapp`. | 
 |   150    * | 
 |   151    * [mask] - Standard field mask for the set of fields to be updated. | 
 |   152    * | 
 |   153    * Completes with a [Operation]. | 
 |   154    * | 
 |   155    * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 
 |   156    * error. | 
 |   157    * | 
 |   158    * If the used [http.Client] completes with an error when making a REST call, | 
 |   159    * this method will complete with the same error. | 
 |   160    */ | 
 |   161   async.Future<Operation> patch(Application request, core.String appsId, {core.S
      tring mask}) { | 
 |   162     var _url = null; | 
 |   163     var _queryParams = new core.Map(); | 
 |   164     var _uploadMedia = null; | 
 |   165     var _uploadOptions = null; | 
 |   166     var _downloadOptions = commons.DownloadOptions.Metadata; | 
 |   167     var _body = null; | 
 |   168  | 
 |   169     if (request != null) { | 
 |   170       _body = convert.JSON.encode((request).toJson()); | 
 |   171     } | 
 |   172     if (appsId == null) { | 
 |   173       throw new core.ArgumentError("Parameter appsId is required."); | 
 |   174     } | 
 |   175     if (mask != null) { | 
 |   176       _queryParams["mask"] = [mask]; | 
 |   177     } | 
 |   178  | 
 |   179     _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId'); | 
 |   180  | 
 |   181     var _response = _requester.request(_url, | 
 |   182                                        "PATCH", | 
 |   183                                        body: _body, | 
 |   184                                        queryParams: _queryParams, | 
 |   185                                        uploadOptions: _uploadOptions, | 
 |   186                                        uploadMedia: _uploadMedia, | 
 |   187                                        downloadOptions: _downloadOptions); | 
 |   188     return _response.then((data) => new Operation.fromJson(data)); | 
 |   189   } | 
 |   190  | 
|   135 } |   191 } | 
|   136  |   192  | 
|   137  |   193  | 
|   138 class AppsLocationsResourceApi { |   194 class AppsLocationsResourceApi { | 
|   139   final commons.ApiRequester _requester; |   195   final commons.ApiRequester _requester; | 
|   140  |   196  | 
|   141   AppsLocationsResourceApi(commons.ApiRequester client) :  |   197   AppsLocationsResourceApi(commons.ApiRequester client) :  | 
|   142       _requester = client; |   198       _requester = client; | 
|   143  |   199  | 
|   144   /** |   200   /** | 
| (...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1580     } |  1636     } | 
|  1581     if (targetUtilization != null) { |  1637     if (targetUtilization != null) { | 
|  1582       _json["targetUtilization"] = targetUtilization; |  1638       _json["targetUtilization"] = targetUtilization; | 
|  1583     } |  1639     } | 
|  1584     return _json; |  1640     return _json; | 
|  1585   } |  1641   } | 
|  1586 } |  1642 } | 
|  1587  |  1643  | 
|  1588 /** Request message for `Instances.DebugInstance`. */ |  1644 /** Request message for `Instances.DebugInstance`. */ | 
|  1589 class DebugInstanceRequest { |  1645 class DebugInstanceRequest { | 
 |  1646   /** | 
 |  1647    * Public SSH key to add to the instance. Example: `[USERNAME]:ssh-rsa | 
 |  1648    * KEY_VALUE` or `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh | 
 |  1649    * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}` For more information, | 
 |  1650    * see [Adding and Removing SSH | 
 |  1651    * Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-k
      eys) | 
 |  1652    */ | 
 |  1653   core.String sshKey; | 
|  1590  |  1654  | 
|  1591   DebugInstanceRequest(); |  1655   DebugInstanceRequest(); | 
|  1592  |  1656  | 
|  1593   DebugInstanceRequest.fromJson(core.Map _json) { |  1657   DebugInstanceRequest.fromJson(core.Map _json) { | 
 |  1658     if (_json.containsKey("sshKey")) { | 
 |  1659       sshKey = _json["sshKey"]; | 
 |  1660     } | 
|  1594   } |  1661   } | 
|  1595  |  1662  | 
|  1596   core.Map toJson() { |  1663   core.Map toJson() { | 
|  1597     var _json = new core.Map(); |  1664     var _json = new core.Map(); | 
 |  1665     if (sshKey != null) { | 
 |  1666       _json["sshKey"] = sshKey; | 
 |  1667     } | 
|  1598     return _json; |  1668     return _json; | 
|  1599   } |  1669   } | 
|  1600 } |  1670 } | 
|  1601  |  1671  | 
|  1602 /** Code and application artifacts used to deploy a version to App Engine. */ |  1672 /** Code and application artifacts used to deploy a version to App Engine. */ | 
|  1603 class Deployment { |  1673 class Deployment { | 
|  1604   /** |  1674   /** | 
|  1605    * A Docker image that App Engine uses the run the version. Only applicable |  1675    * A Docker image that App Engine uses the run the version. Only applicable | 
|  1606    * for instances in App Engine flexible environment. |  1676    * for instances in App Engine flexible environment. | 
|  1607    */ |  1677    */ | 
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1908   /** Number of requests since this instance was started. @OutputOnly */ |  1978   /** Number of requests since this instance was started. @OutputOnly */ | 
|  1909   core.int requests; |  1979   core.int requests; | 
|  1910   /** Time that this instance was started. @OutputOnly */ |  1980   /** Time that this instance was started. @OutputOnly */ | 
|  1911   core.String startTimestamp; |  1981   core.String startTimestamp; | 
|  1912   /** |  1982   /** | 
|  1913    * Virtual machine ID of this instance. Only applicable for instances in App |  1983    * Virtual machine ID of this instance. Only applicable for instances in App | 
|  1914    * Engine flexible environment. @OutputOnly |  1984    * Engine flexible environment. @OutputOnly | 
|  1915    */ |  1985    */ | 
|  1916   core.String vmId; |  1986   core.String vmId; | 
|  1917   /** |  1987   /** | 
 |  1988    * The IP address of this instance. Only applicable for instances in App | 
 |  1989    * Engine flexible environment. @OutputOnly | 
 |  1990    */ | 
 |  1991   core.String vmIp; | 
 |  1992   /** | 
|  1918    * Name of the virtual machine where this instance lives. Only applicable for |  1993    * Name of the virtual machine where this instance lives. Only applicable for | 
|  1919    * instances in App Engine flexible environment. @OutputOnly |  1994    * instances in App Engine flexible environment. @OutputOnly | 
|  1920    */ |  1995    */ | 
|  1921   core.String vmName; |  1996   core.String vmName; | 
|  1922   /** |  1997   /** | 
|  1923    * Status of the virtual machine where this instance lives. Only applicable |  1998    * Status of the virtual machine where this instance lives. Only applicable | 
|  1924    * for instances in App Engine flexible environment. @OutputOnly |  1999    * for instances in App Engine flexible environment. @OutputOnly | 
|  1925    */ |  2000    */ | 
|  1926   core.String vmStatus; |  2001   core.String vmStatus; | 
|  1927   /** |  2002   /** | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1964     } |  2039     } | 
|  1965     if (_json.containsKey("requests")) { |  2040     if (_json.containsKey("requests")) { | 
|  1966       requests = _json["requests"]; |  2041       requests = _json["requests"]; | 
|  1967     } |  2042     } | 
|  1968     if (_json.containsKey("startTimestamp")) { |  2043     if (_json.containsKey("startTimestamp")) { | 
|  1969       startTimestamp = _json["startTimestamp"]; |  2044       startTimestamp = _json["startTimestamp"]; | 
|  1970     } |  2045     } | 
|  1971     if (_json.containsKey("vmId")) { |  2046     if (_json.containsKey("vmId")) { | 
|  1972       vmId = _json["vmId"]; |  2047       vmId = _json["vmId"]; | 
|  1973     } |  2048     } | 
 |  2049     if (_json.containsKey("vmIp")) { | 
 |  2050       vmIp = _json["vmIp"]; | 
 |  2051     } | 
|  1974     if (_json.containsKey("vmName")) { |  2052     if (_json.containsKey("vmName")) { | 
|  1975       vmName = _json["vmName"]; |  2053       vmName = _json["vmName"]; | 
|  1976     } |  2054     } | 
|  1977     if (_json.containsKey("vmStatus")) { |  2055     if (_json.containsKey("vmStatus")) { | 
|  1978       vmStatus = _json["vmStatus"]; |  2056       vmStatus = _json["vmStatus"]; | 
|  1979     } |  2057     } | 
|  1980     if (_json.containsKey("vmUnlocked")) { |  2058     if (_json.containsKey("vmUnlocked")) { | 
|  1981       vmUnlocked = _json["vmUnlocked"]; |  2059       vmUnlocked = _json["vmUnlocked"]; | 
|  1982     } |  2060     } | 
|  1983     if (_json.containsKey("vmZoneName")) { |  2061     if (_json.containsKey("vmZoneName")) { | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
|  2013     } |  2091     } | 
|  2014     if (requests != null) { |  2092     if (requests != null) { | 
|  2015       _json["requests"] = requests; |  2093       _json["requests"] = requests; | 
|  2016     } |  2094     } | 
|  2017     if (startTimestamp != null) { |  2095     if (startTimestamp != null) { | 
|  2018       _json["startTimestamp"] = startTimestamp; |  2096       _json["startTimestamp"] = startTimestamp; | 
|  2019     } |  2097     } | 
|  2020     if (vmId != null) { |  2098     if (vmId != null) { | 
|  2021       _json["vmId"] = vmId; |  2099       _json["vmId"] = vmId; | 
|  2022     } |  2100     } | 
 |  2101     if (vmIp != null) { | 
 |  2102       _json["vmIp"] = vmIp; | 
 |  2103     } | 
|  2023     if (vmName != null) { |  2104     if (vmName != null) { | 
|  2024       _json["vmName"] = vmName; |  2105       _json["vmName"] = vmName; | 
|  2025     } |  2106     } | 
|  2026     if (vmStatus != null) { |  2107     if (vmStatus != null) { | 
|  2027       _json["vmStatus"] = vmStatus; |  2108       _json["vmStatus"] = vmStatus; | 
|  2028     } |  2109     } | 
|  2029     if (vmUnlocked != null) { |  2110     if (vmUnlocked != null) { | 
|  2030       _json["vmUnlocked"] = vmUnlocked; |  2111       _json["vmUnlocked"] = vmUnlocked; | 
|  2031     } |  2112     } | 
|  2032     if (vmZoneName != null) { |  2113     if (vmZoneName != null) { | 
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2216   } |  2297   } | 
|  2217 } |  2298 } | 
|  2218  |  2299  | 
|  2219 /** A resource that represents Google Cloud Platform location. */ |  2300 /** A resource that represents Google Cloud Platform location. */ | 
|  2220 class Location { |  2301 class Location { | 
|  2221   /** |  2302   /** | 
|  2222    * Cross-service attributes for the location. For example |  2303    * Cross-service attributes for the location. For example | 
|  2223    * {"cloud.googleapis.com/region": "us-east1"} |  2304    * {"cloud.googleapis.com/region": "us-east1"} | 
|  2224    */ |  2305    */ | 
|  2225   core.Map<core.String, core.String> labels; |  2306   core.Map<core.String, core.String> labels; | 
|  2226   /** The cononical id for this location. For example: `"us-east1"`. */ |  2307   /** The canonical id for this location. For example: `"us-east1"`. */ | 
|  2227   core.String locationId; |  2308   core.String locationId; | 
|  2228   /** |  2309   /** | 
|  2229    * Service-specific metadata. For example the available capacity at the given |  2310    * Service-specific metadata. For example the available capacity at the given | 
|  2230    * location. |  2311    * location. | 
|  2231    * |  2312    * | 
|  2232    * The values for Object must be JSON objects. It can consist of `num`, |  2313    * The values for Object must be JSON objects. It can consist of `num`, | 
|  2233    * `String`, `bool` and `null` as well as `Map` and `List` values. |  2314    * `String`, `bool` and `null` as well as `Map` and `List` values. | 
|  2234    */ |  2315    */ | 
|  2235   core.Map<core.String, core.Object> metadata; |  2316   core.Map<core.String, core.Object> metadata; | 
|  2236   /** |  2317   /** | 
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2434  * This resource represents a long-running operation that is the result of a |  2515  * This resource represents a long-running operation that is the result of a | 
|  2435  * network API call. |  2516  * network API call. | 
|  2436  */ |  2517  */ | 
|  2437 class Operation { |  2518 class Operation { | 
|  2438   /** |  2519   /** | 
|  2439    * If the value is `false`, it means the operation is still in progress. If |  2520    * If the value is `false`, it means the operation is still in progress. If | 
|  2440    * true, the operation is completed, and either `error` or `response` is |  2521    * true, the operation is completed, and either `error` or `response` is | 
|  2441    * available. |  2522    * available. | 
|  2442    */ |  2523    */ | 
|  2443   core.bool done; |  2524   core.bool done; | 
|  2444   /** The error result of the operation in case of failure. */ |  2525   /** The error result of the operation in case of failure or cancellation. */ | 
|  2445   Status error; |  2526   Status error; | 
|  2446   /** |  2527   /** | 
|  2447    * Service-specific metadata associated with the operation. It typically |  2528    * Service-specific metadata associated with the operation. It typically | 
|  2448    * contains progress information and common metadata such as create time. Some |  2529    * contains progress information and common metadata such as create time. Some | 
|  2449    * services might not provide such metadata. Any method that returns a |  2530    * services might not provide such metadata. Any method that returns a | 
|  2450    * long-running operation should document the metadata type, if any. |  2531    * long-running operation should document the metadata type, if any. | 
|  2451    * |  2532    * | 
|  2452    * The values for Object must be JSON objects. It can consist of `num`, |  2533    * The values for Object must be JSON objects. It can consist of `num`, | 
|  2453    * `String`, `bool` and `null` as well as `Map` and `List` values. |  2534    * `String`, `bool` and `null` as well as `Map` and `List` values. | 
|  2454    */ |  2535    */ | 
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2579       _json["target"] = target; |  2660       _json["target"] = target; | 
|  2580     } |  2661     } | 
|  2581     if (user != null) { |  2662     if (user != null) { | 
|  2582       _json["user"] = user; |  2663       _json["user"] = user; | 
|  2583     } |  2664     } | 
|  2584     return _json; |  2665     return _json; | 
|  2585   } |  2666   } | 
|  2586 } |  2667 } | 
|  2587  |  2668  | 
|  2588 /** Metadata for the given google.longrunning.Operation. */ |  2669 /** Metadata for the given google.longrunning.Operation. */ | 
 |  2670 class OperationMetadataExperimental { | 
 |  2671   /** Time that this operation completed. @OutputOnly */ | 
 |  2672   core.String endTime; | 
 |  2673   /** Time that this operation was created. @OutputOnly */ | 
 |  2674   core.String insertTime; | 
 |  2675   /** | 
 |  2676    * API method that initiated this operation. Example: | 
 |  2677    * `google.appengine.experimental.CustomDomains.CreateCustomDomain`. | 
 |  2678    * @OutputOnly | 
 |  2679    */ | 
 |  2680   core.String method; | 
 |  2681   /** | 
 |  2682    * Name of the resource that this operation is acting on. Example: | 
 |  2683    * `apps/myapp/customDomains/example.com`. @OutputOnly | 
 |  2684    */ | 
 |  2685   core.String target; | 
 |  2686   /** User who requested this operation. @OutputOnly */ | 
 |  2687   core.String user; | 
 |  2688  | 
 |  2689   OperationMetadataExperimental(); | 
 |  2690  | 
 |  2691   OperationMetadataExperimental.fromJson(core.Map _json) { | 
 |  2692     if (_json.containsKey("endTime")) { | 
 |  2693       endTime = _json["endTime"]; | 
 |  2694     } | 
 |  2695     if (_json.containsKey("insertTime")) { | 
 |  2696       insertTime = _json["insertTime"]; | 
 |  2697     } | 
 |  2698     if (_json.containsKey("method")) { | 
 |  2699       method = _json["method"]; | 
 |  2700     } | 
 |  2701     if (_json.containsKey("target")) { | 
 |  2702       target = _json["target"]; | 
 |  2703     } | 
 |  2704     if (_json.containsKey("user")) { | 
 |  2705       user = _json["user"]; | 
 |  2706     } | 
 |  2707   } | 
 |  2708  | 
 |  2709   core.Map toJson() { | 
 |  2710     var _json = new core.Map(); | 
 |  2711     if (endTime != null) { | 
 |  2712       _json["endTime"] = endTime; | 
 |  2713     } | 
 |  2714     if (insertTime != null) { | 
 |  2715       _json["insertTime"] = insertTime; | 
 |  2716     } | 
 |  2717     if (method != null) { | 
 |  2718       _json["method"] = method; | 
 |  2719     } | 
 |  2720     if (target != null) { | 
 |  2721       _json["target"] = target; | 
 |  2722     } | 
 |  2723     if (user != null) { | 
 |  2724       _json["user"] = user; | 
 |  2725     } | 
 |  2726     return _json; | 
 |  2727   } | 
 |  2728 } | 
 |  2729  | 
 |  2730 /** Metadata for the given google.longrunning.Operation. */ | 
|  2589 class OperationMetadataV1 { |  2731 class OperationMetadataV1 { | 
|  2590   /** Time that this operation completed. @OutputOnly */ |  2732   /** Time that this operation completed. @OutputOnly */ | 
|  2591   core.String endTime; |  2733   core.String endTime; | 
|  2592   /** Time that this operation was created. @OutputOnly */ |  2734   /** Time that this operation was created. @OutputOnly */ | 
|  2593   core.String insertTime; |  2735   core.String insertTime; | 
|  2594   /** |  2736   /** | 
|  2595    * API method that initiated this operation. Example: |  2737    * API method that initiated this operation. Example: | 
|  2596    * `google.appengine.v1.Versions.CreateVersion`. @OutputOnly |  2738    * `google.appengine.v1.Versions.CreateVersion`. @OutputOnly | 
|  2597    */ |  2739    */ | 
|  2598   core.String method; |  2740   core.String method; | 
| (...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3583     } |  3725     } | 
|  3584     if (threadsafe != null) { |  3726     if (threadsafe != null) { | 
|  3585       _json["threadsafe"] = threadsafe; |  3727       _json["threadsafe"] = threadsafe; | 
|  3586     } |  3728     } | 
|  3587     if (vm != null) { |  3729     if (vm != null) { | 
|  3588       _json["vm"] = vm; |  3730       _json["vm"] = vm; | 
|  3589     } |  3731     } | 
|  3590     return _json; |  3732     return _json; | 
|  3591   } |  3733   } | 
|  3592 } |  3734 } | 
| OLD | NEW |