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.appengine.v1; | 3 library googleapis.appengine.v1; |
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/v1'; | 15 const core.String USER_AGENT = 'dart-api-client appengine/v1'; |
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); |
| 32 ExperimentalResourceApi get experimental => new ExperimentalResourceApi(_reque
ster); |
26 | 33 |
27 AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog
leapis.com/", core.String servicePath: ""}) : | 34 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); | 35 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
29 } | 36 } |
30 | 37 |
31 | 38 |
32 class AppsResourceApi { | 39 class AppsResourceApi { |
33 final commons.ApiRequester _requester; | 40 final commons.ApiRequester _requester; |
34 | 41 |
35 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); | 42 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); |
36 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 43 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); |
37 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); | 44 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); |
38 | 45 |
39 AppsResourceApi(commons.ApiRequester client) : | 46 AppsResourceApi(commons.ApiRequester client) : |
40 _requester = client; | 47 _requester = client; |
41 | 48 |
42 /** | 49 /** |
| 50 * Creates an App Engine application for a Google Cloud Platform project. This |
| 51 * requires a project that excludes an App Engine application. For details |
| 52 * about creating a project without an application, see the [Google Cloud |
| 53 * Resource Manager create project |
| 54 * topic](https://cloud.google.com/resource-manager/docs/creating-project). |
| 55 * |
| 56 * [request] - The metadata request object. |
| 57 * |
| 58 * Request parameters: |
| 59 * |
| 60 * Completes with a [Operation]. |
| 61 * |
| 62 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 63 * error. |
| 64 * |
| 65 * If the used [http.Client] completes with an error when making a REST call, |
| 66 * this method will complete with the same error. |
| 67 */ |
| 68 async.Future<Operation> create(Application request) { |
| 69 var _url = null; |
| 70 var _queryParams = new core.Map(); |
| 71 var _uploadMedia = null; |
| 72 var _uploadOptions = null; |
| 73 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 74 var _body = null; |
| 75 |
| 76 if (request != null) { |
| 77 _body = convert.JSON.encode((request).toJson()); |
| 78 } |
| 79 |
| 80 _url = 'v1/apps'; |
| 81 |
| 82 var _response = _requester.request(_url, |
| 83 "POST", |
| 84 body: _body, |
| 85 queryParams: _queryParams, |
| 86 uploadOptions: _uploadOptions, |
| 87 uploadMedia: _uploadMedia, |
| 88 downloadOptions: _downloadOptions); |
| 89 return _response.then((data) => new Operation.fromJson(data)); |
| 90 } |
| 91 |
| 92 /** |
43 * Gets information about an application. | 93 * Gets information about an application. |
44 * | 94 * |
45 * Request parameters: | 95 * Request parameters: |
46 * | 96 * |
47 * [appsId] - Part of `name`. Name of the Application resource to get. | 97 * [appsId] - Part of `name`. Name of the Application resource to get. |
48 * Example: `apps/myapp`. | 98 * Example: `apps/myapp`. |
49 * | 99 * |
50 * Completes with a [Application]. | 100 * Completes with a [Application]. |
51 * | 101 * |
52 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 102 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
(...skipping 20 matching lines...) Expand all Loading... |
73 "GET", | 123 "GET", |
74 body: _body, | 124 body: _body, |
75 queryParams: _queryParams, | 125 queryParams: _queryParams, |
76 uploadOptions: _uploadOptions, | 126 uploadOptions: _uploadOptions, |
77 uploadMedia: _uploadMedia, | 127 uploadMedia: _uploadMedia, |
78 downloadOptions: _downloadOptions); | 128 downloadOptions: _downloadOptions); |
79 return _response.then((data) => new Application.fromJson(data)); | 129 return _response.then((data) => new Application.fromJson(data)); |
80 } | 130 } |
81 | 131 |
82 /** | 132 /** |
| 133 * Updates application fields. |
| 134 * |
| 135 * [request] - The metadata request object. |
| 136 * |
| 137 * Request parameters: |
| 138 * |
| 139 * [appsId] - Part of `name`. Name of the application to update. Example: |
| 140 * `apps/myapp`. |
| 141 * |
| 142 * [updateMask] - Standard field mask for the set of fields to be updated. |
| 143 * |
| 144 * Completes with a [Operation]. |
| 145 * |
| 146 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 147 * error. |
| 148 * |
| 149 * If the used [http.Client] completes with an error when making a REST call, |
| 150 * this method will complete with the same error. |
| 151 */ |
| 152 async.Future<Operation> patch(Application request, core.String appsId, {core.S
tring updateMask}) { |
| 153 var _url = null; |
| 154 var _queryParams = new core.Map(); |
| 155 var _uploadMedia = null; |
| 156 var _uploadOptions = null; |
| 157 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 158 var _body = null; |
| 159 |
| 160 if (request != null) { |
| 161 _body = convert.JSON.encode((request).toJson()); |
| 162 } |
| 163 if (appsId == null) { |
| 164 throw new core.ArgumentError("Parameter appsId is required."); |
| 165 } |
| 166 if (updateMask != null) { |
| 167 _queryParams["updateMask"] = [updateMask]; |
| 168 } |
| 169 |
| 170 _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId'); |
| 171 |
| 172 var _response = _requester.request(_url, |
| 173 "PATCH", |
| 174 body: _body, |
| 175 queryParams: _queryParams, |
| 176 uploadOptions: _uploadOptions, |
| 177 uploadMedia: _uploadMedia, |
| 178 downloadOptions: _downloadOptions); |
| 179 return _response.then((data) => new Operation.fromJson(data)); |
| 180 } |
| 181 |
| 182 /** |
83 * Recreates the required App Engine features for the application in your | 183 * Recreates the required App Engine features for the application in your |
84 * project, for example a Cloud Storage bucket or App Engine service account. | 184 * project, for example a Cloud Storage bucket or App Engine service account. |
85 * Use this method if you receive an error message about a missing feature, | 185 * Use this method if you receive an error message about a missing feature, |
86 * for example "*Error retrieving the App Engine service account*". | 186 * for example "*Error retrieving the App Engine service account*". |
87 * | 187 * |
88 * [request] - The metadata request object. | 188 * [request] - The metadata request object. |
89 * | 189 * |
90 * Request parameters: | 190 * Request parameters: |
91 * | 191 * |
92 * [appsId] - Part of `name`. Name of the application to repair. Example: | 192 * [appsId] - Part of `name`. Name of the application to repair. Example: |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1116 queryParams: _queryParams, | 1216 queryParams: _queryParams, |
1117 uploadOptions: _uploadOptions, | 1217 uploadOptions: _uploadOptions, |
1118 uploadMedia: _uploadMedia, | 1218 uploadMedia: _uploadMedia, |
1119 downloadOptions: _downloadOptions); | 1219 downloadOptions: _downloadOptions); |
1120 return _response.then((data) => new ListInstancesResponse.fromJson(data)); | 1220 return _response.then((data) => new ListInstancesResponse.fromJson(data)); |
1121 } | 1221 } |
1122 | 1222 |
1123 } | 1223 } |
1124 | 1224 |
1125 | 1225 |
| 1226 class ExperimentalResourceApi { |
| 1227 final commons.ApiRequester _requester; |
| 1228 |
| 1229 ExperimentalAppsResourceApi get apps => new ExperimentalAppsResourceApi(_reque
ster); |
| 1230 |
| 1231 ExperimentalResourceApi(commons.ApiRequester client) : |
| 1232 _requester = client; |
| 1233 } |
| 1234 |
| 1235 |
| 1236 class ExperimentalAppsResourceApi { |
| 1237 final commons.ApiRequester _requester; |
| 1238 |
| 1239 ExperimentalAppsOperationsResourceApi get operations => new ExperimentalAppsOp
erationsResourceApi(_requester); |
| 1240 |
| 1241 ExperimentalAppsResourceApi(commons.ApiRequester client) : |
| 1242 _requester = client; |
| 1243 } |
| 1244 |
| 1245 |
| 1246 class ExperimentalAppsOperationsResourceApi { |
| 1247 final commons.ApiRequester _requester; |
| 1248 |
| 1249 ExperimentalAppsOperationsResourceApi(commons.ApiRequester client) : |
| 1250 _requester = client; |
| 1251 |
| 1252 /** |
| 1253 * Gets the latest state of a long-running operation. Clients can use this |
| 1254 * method to poll the operation result at intervals as recommended by the API |
| 1255 * service. |
| 1256 * |
| 1257 * Request parameters: |
| 1258 * |
| 1259 * [appsId] - Part of `name`. The name of the operation resource. |
| 1260 * |
| 1261 * [operationsId] - Part of `name`. See documentation of `appsId`. |
| 1262 * |
| 1263 * Completes with a [Operation]. |
| 1264 * |
| 1265 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1266 * error. |
| 1267 * |
| 1268 * If the used [http.Client] completes with an error when making a REST call, |
| 1269 * this method will complete with the same error. |
| 1270 */ |
| 1271 async.Future<Operation> get(core.String appsId, core.String operationsId) { |
| 1272 var _url = null; |
| 1273 var _queryParams = new core.Map(); |
| 1274 var _uploadMedia = null; |
| 1275 var _uploadOptions = null; |
| 1276 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1277 var _body = null; |
| 1278 |
| 1279 if (appsId == null) { |
| 1280 throw new core.ArgumentError("Parameter appsId is required."); |
| 1281 } |
| 1282 if (operationsId == null) { |
| 1283 throw new core.ArgumentError("Parameter operationsId is required."); |
| 1284 } |
| 1285 |
| 1286 _url = 'experimental/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/o
perations/' + commons.Escaper.ecapeVariable('$operationsId'); |
| 1287 |
| 1288 var _response = _requester.request(_url, |
| 1289 "GET", |
| 1290 body: _body, |
| 1291 queryParams: _queryParams, |
| 1292 uploadOptions: _uploadOptions, |
| 1293 uploadMedia: _uploadMedia, |
| 1294 downloadOptions: _downloadOptions); |
| 1295 return _response.then((data) => new Operation.fromJson(data)); |
| 1296 } |
| 1297 |
| 1298 /** |
| 1299 * Lists operations that match the specified filter in the request. If the |
| 1300 * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the |
| 1301 * `name` binding below allows API services to override the binding to use |
| 1302 * different resource name schemes, such as `users / * /operations`. |
| 1303 * |
| 1304 * Request parameters: |
| 1305 * |
| 1306 * [appsId] - Part of `name`. The name of the operation collection. |
| 1307 * |
| 1308 * [filter] - The standard list filter. |
| 1309 * |
| 1310 * [pageSize] - The standard list page size. |
| 1311 * |
| 1312 * [pageToken] - The standard list page token. |
| 1313 * |
| 1314 * Completes with a [ListOperationsResponse]. |
| 1315 * |
| 1316 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1317 * error. |
| 1318 * |
| 1319 * If the used [http.Client] completes with an error when making a REST call, |
| 1320 * this method will complete with the same error. |
| 1321 */ |
| 1322 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.int pageSize, core.String pageToken}) { |
| 1323 var _url = null; |
| 1324 var _queryParams = new core.Map(); |
| 1325 var _uploadMedia = null; |
| 1326 var _uploadOptions = null; |
| 1327 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1328 var _body = null; |
| 1329 |
| 1330 if (appsId == null) { |
| 1331 throw new core.ArgumentError("Parameter appsId is required."); |
| 1332 } |
| 1333 if (filter != null) { |
| 1334 _queryParams["filter"] = [filter]; |
| 1335 } |
| 1336 if (pageSize != null) { |
| 1337 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1338 } |
| 1339 if (pageToken != null) { |
| 1340 _queryParams["pageToken"] = [pageToken]; |
| 1341 } |
| 1342 |
| 1343 _url = 'experimental/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/o
perations'; |
| 1344 |
| 1345 var _response = _requester.request(_url, |
| 1346 "GET", |
| 1347 body: _body, |
| 1348 queryParams: _queryParams, |
| 1349 uploadOptions: _uploadOptions, |
| 1350 uploadMedia: _uploadMedia, |
| 1351 downloadOptions: _downloadOptions); |
| 1352 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
| 1353 } |
| 1354 |
| 1355 } |
| 1356 |
| 1357 |
1126 | 1358 |
1127 /** | 1359 /** |
1128 * [Google Cloud | 1360 * [Google Cloud |
1129 * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) | 1361 * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) |
1130 * configuration for API handlers. | 1362 * configuration for API handlers. |
1131 */ | 1363 */ |
1132 class ApiConfigHandler { | 1364 class ApiConfigHandler { |
1133 /** | 1365 /** |
1134 * Action to take when users access resources that require authentication. | 1366 * Action to take when users access resources that require authentication. |
1135 * Defaults to `redirect`. | 1367 * Defaults to `redirect`. |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 } | 1807 } |
1576 if (targetUtilization != null) { | 1808 if (targetUtilization != null) { |
1577 _json["targetUtilization"] = targetUtilization; | 1809 _json["targetUtilization"] = targetUtilization; |
1578 } | 1810 } |
1579 return _json; | 1811 return _json; |
1580 } | 1812 } |
1581 } | 1813 } |
1582 | 1814 |
1583 /** Request message for `Instances.DebugInstance`. */ | 1815 /** Request message for `Instances.DebugInstance`. */ |
1584 class DebugInstanceRequest { | 1816 class DebugInstanceRequest { |
| 1817 /** |
| 1818 * Public SSH key to add to the instance. Example: `[USERNAME]:ssh-rsa |
| 1819 * KEY_VALUE` or `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh |
| 1820 * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}` For more information, |
| 1821 * see [Adding and Removing SSH |
| 1822 * Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-k
eys) |
| 1823 */ |
| 1824 core.String sshKey; |
1585 | 1825 |
1586 DebugInstanceRequest(); | 1826 DebugInstanceRequest(); |
1587 | 1827 |
1588 DebugInstanceRequest.fromJson(core.Map _json) { | 1828 DebugInstanceRequest.fromJson(core.Map _json) { |
| 1829 if (_json.containsKey("sshKey")) { |
| 1830 sshKey = _json["sshKey"]; |
| 1831 } |
1589 } | 1832 } |
1590 | 1833 |
1591 core.Map toJson() { | 1834 core.Map toJson() { |
1592 var _json = new core.Map(); | 1835 var _json = new core.Map(); |
| 1836 if (sshKey != null) { |
| 1837 _json["sshKey"] = sshKey; |
| 1838 } |
1593 return _json; | 1839 return _json; |
1594 } | 1840 } |
1595 } | 1841 } |
1596 | 1842 |
1597 /** Code and application artifacts used to deploy a version to App Engine. */ | 1843 /** Code and application artifacts used to deploy a version to App Engine. */ |
1598 class Deployment { | 1844 class Deployment { |
1599 /** | 1845 /** |
1600 * A Docker image that App Engine uses to run the version. Only applicable for | 1846 * A Docker image that App Engine uses to run the version. Only applicable for |
1601 * instances in App Engine flexible environment. | 1847 * instances in App Engine flexible environment. |
1602 */ | 1848 */ |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1904 * Whether this instance is in debug mode. Only applicable for instances in | 2150 * Whether this instance is in debug mode. Only applicable for instances in |
1905 * App Engine flexible environment. @OutputOnly | 2151 * App Engine flexible environment. @OutputOnly |
1906 */ | 2152 */ |
1907 core.bool vmDebugEnabled; | 2153 core.bool vmDebugEnabled; |
1908 /** | 2154 /** |
1909 * Virtual machine ID of this instance. Only applicable for instances in App | 2155 * Virtual machine ID of this instance. Only applicable for instances in App |
1910 * Engine flexible environment. @OutputOnly | 2156 * Engine flexible environment. @OutputOnly |
1911 */ | 2157 */ |
1912 core.String vmId; | 2158 core.String vmId; |
1913 /** | 2159 /** |
| 2160 * The IP address of this instance. Only applicable for instances in App |
| 2161 * Engine flexible environment. @OutputOnly |
| 2162 */ |
| 2163 core.String vmIp; |
| 2164 /** |
1914 * Name of the virtual machine where this instance lives. Only applicable for | 2165 * Name of the virtual machine where this instance lives. Only applicable for |
1915 * instances in App Engine flexible environment. @OutputOnly | 2166 * instances in App Engine flexible environment. @OutputOnly |
1916 */ | 2167 */ |
1917 core.String vmName; | 2168 core.String vmName; |
1918 /** | 2169 /** |
1919 * Status of the virtual machine where this instance lives. Only applicable | 2170 * Status of the virtual machine where this instance lives. Only applicable |
1920 * for instances in App Engine flexible environment. @OutputOnly | 2171 * for instances in App Engine flexible environment. @OutputOnly |
1921 */ | 2172 */ |
1922 core.String vmStatus; | 2173 core.String vmStatus; |
1923 /** | 2174 /** |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1958 } | 2209 } |
1959 if (_json.containsKey("startTime")) { | 2210 if (_json.containsKey("startTime")) { |
1960 startTime = _json["startTime"]; | 2211 startTime = _json["startTime"]; |
1961 } | 2212 } |
1962 if (_json.containsKey("vmDebugEnabled")) { | 2213 if (_json.containsKey("vmDebugEnabled")) { |
1963 vmDebugEnabled = _json["vmDebugEnabled"]; | 2214 vmDebugEnabled = _json["vmDebugEnabled"]; |
1964 } | 2215 } |
1965 if (_json.containsKey("vmId")) { | 2216 if (_json.containsKey("vmId")) { |
1966 vmId = _json["vmId"]; | 2217 vmId = _json["vmId"]; |
1967 } | 2218 } |
| 2219 if (_json.containsKey("vmIp")) { |
| 2220 vmIp = _json["vmIp"]; |
| 2221 } |
1968 if (_json.containsKey("vmName")) { | 2222 if (_json.containsKey("vmName")) { |
1969 vmName = _json["vmName"]; | 2223 vmName = _json["vmName"]; |
1970 } | 2224 } |
1971 if (_json.containsKey("vmStatus")) { | 2225 if (_json.containsKey("vmStatus")) { |
1972 vmStatus = _json["vmStatus"]; | 2226 vmStatus = _json["vmStatus"]; |
1973 } | 2227 } |
1974 if (_json.containsKey("vmZoneName")) { | 2228 if (_json.containsKey("vmZoneName")) { |
1975 vmZoneName = _json["vmZoneName"]; | 2229 vmZoneName = _json["vmZoneName"]; |
1976 } | 2230 } |
1977 } | 2231 } |
(...skipping 29 matching lines...) Expand all Loading... |
2007 } | 2261 } |
2008 if (startTime != null) { | 2262 if (startTime != null) { |
2009 _json["startTime"] = startTime; | 2263 _json["startTime"] = startTime; |
2010 } | 2264 } |
2011 if (vmDebugEnabled != null) { | 2265 if (vmDebugEnabled != null) { |
2012 _json["vmDebugEnabled"] = vmDebugEnabled; | 2266 _json["vmDebugEnabled"] = vmDebugEnabled; |
2013 } | 2267 } |
2014 if (vmId != null) { | 2268 if (vmId != null) { |
2015 _json["vmId"] = vmId; | 2269 _json["vmId"] = vmId; |
2016 } | 2270 } |
| 2271 if (vmIp != null) { |
| 2272 _json["vmIp"] = vmIp; |
| 2273 } |
2017 if (vmName != null) { | 2274 if (vmName != null) { |
2018 _json["vmName"] = vmName; | 2275 _json["vmName"] = vmName; |
2019 } | 2276 } |
2020 if (vmStatus != null) { | 2277 if (vmStatus != null) { |
2021 _json["vmStatus"] = vmStatus; | 2278 _json["vmStatus"] = vmStatus; |
2022 } | 2279 } |
2023 if (vmZoneName != null) { | 2280 if (vmZoneName != null) { |
2024 _json["vmZoneName"] = vmZoneName; | 2281 _json["vmZoneName"] = vmZoneName; |
2025 } | 2282 } |
2026 return _json; | 2283 return _json; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2207 } | 2464 } |
2208 } | 2465 } |
2209 | 2466 |
2210 /** A resource that represents Google Cloud Platform location. */ | 2467 /** A resource that represents Google Cloud Platform location. */ |
2211 class Location { | 2468 class Location { |
2212 /** | 2469 /** |
2213 * Cross-service attributes for the location. For example | 2470 * Cross-service attributes for the location. For example |
2214 * {"cloud.googleapis.com/region": "us-east1"} | 2471 * {"cloud.googleapis.com/region": "us-east1"} |
2215 */ | 2472 */ |
2216 core.Map<core.String, core.String> labels; | 2473 core.Map<core.String, core.String> labels; |
2217 /** The cononical id for this location. For example: `"us-east1"`. */ | 2474 /** The canonical id for this location. For example: `"us-east1"`. */ |
2218 core.String locationId; | 2475 core.String locationId; |
2219 /** | 2476 /** |
2220 * Service-specific metadata. For example the available capacity at the given | 2477 * Service-specific metadata. For example the available capacity at the given |
2221 * location. | 2478 * location. |
2222 * | 2479 * |
2223 * The values for Object must be JSON objects. It can consist of `num`, | 2480 * The values for Object must be JSON objects. It can consist of `num`, |
2224 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2481 * `String`, `bool` and `null` as well as `Map` and `List` values. |
2225 */ | 2482 */ |
2226 core.Map<core.String, core.Object> metadata; | 2483 core.Map<core.String, core.Object> metadata; |
2227 /** | 2484 /** |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2425 * This resource represents a long-running operation that is the result of a | 2682 * This resource represents a long-running operation that is the result of a |
2426 * network API call. | 2683 * network API call. |
2427 */ | 2684 */ |
2428 class Operation { | 2685 class Operation { |
2429 /** | 2686 /** |
2430 * If the value is `false`, it means the operation is still in progress. If | 2687 * If the value is `false`, it means the operation is still in progress. If |
2431 * true, the operation is completed, and either `error` or `response` is | 2688 * true, the operation is completed, and either `error` or `response` is |
2432 * available. | 2689 * available. |
2433 */ | 2690 */ |
2434 core.bool done; | 2691 core.bool done; |
2435 /** The error result of the operation in case of failure. */ | 2692 /** The error result of the operation in case of failure or cancellation. */ |
2436 Status error; | 2693 Status error; |
2437 /** | 2694 /** |
2438 * Service-specific metadata associated with the operation. It typically | 2695 * Service-specific metadata associated with the operation. It typically |
2439 * contains progress information and common metadata such as create time. Some | 2696 * contains progress information and common metadata such as create time. Some |
2440 * services might not provide such metadata. Any method that returns a | 2697 * services might not provide such metadata. Any method that returns a |
2441 * long-running operation should document the metadata type, if any. | 2698 * long-running operation should document the metadata type, if any. |
2442 * | 2699 * |
2443 * The values for Object must be JSON objects. It can consist of `num`, | 2700 * The values for Object must be JSON objects. It can consist of `num`, |
2444 * `String`, `bool` and `null` as well as `Map` and `List` values. | 2701 * `String`, `bool` and `null` as well as `Map` and `List` values. |
2445 */ | 2702 */ |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2570 _json["target"] = target; | 2827 _json["target"] = target; |
2571 } | 2828 } |
2572 if (user != null) { | 2829 if (user != null) { |
2573 _json["user"] = user; | 2830 _json["user"] = user; |
2574 } | 2831 } |
2575 return _json; | 2832 return _json; |
2576 } | 2833 } |
2577 } | 2834 } |
2578 | 2835 |
2579 /** Metadata for the given google.longrunning.Operation. */ | 2836 /** Metadata for the given google.longrunning.Operation. */ |
| 2837 class OperationMetadataExperimental { |
| 2838 /** Time that this operation completed. @OutputOnly */ |
| 2839 core.String endTime; |
| 2840 /** Time that this operation was created. @OutputOnly */ |
| 2841 core.String insertTime; |
| 2842 /** |
| 2843 * API method that initiated this operation. Example: |
| 2844 * `google.appengine.experimental.CustomDomains.CreateCustomDomain`. |
| 2845 * @OutputOnly |
| 2846 */ |
| 2847 core.String method; |
| 2848 /** |
| 2849 * Name of the resource that this operation is acting on. Example: |
| 2850 * `apps/myapp/customDomains/example.com`. @OutputOnly |
| 2851 */ |
| 2852 core.String target; |
| 2853 /** User who requested this operation. @OutputOnly */ |
| 2854 core.String user; |
| 2855 |
| 2856 OperationMetadataExperimental(); |
| 2857 |
| 2858 OperationMetadataExperimental.fromJson(core.Map _json) { |
| 2859 if (_json.containsKey("endTime")) { |
| 2860 endTime = _json["endTime"]; |
| 2861 } |
| 2862 if (_json.containsKey("insertTime")) { |
| 2863 insertTime = _json["insertTime"]; |
| 2864 } |
| 2865 if (_json.containsKey("method")) { |
| 2866 method = _json["method"]; |
| 2867 } |
| 2868 if (_json.containsKey("target")) { |
| 2869 target = _json["target"]; |
| 2870 } |
| 2871 if (_json.containsKey("user")) { |
| 2872 user = _json["user"]; |
| 2873 } |
| 2874 } |
| 2875 |
| 2876 core.Map toJson() { |
| 2877 var _json = new core.Map(); |
| 2878 if (endTime != null) { |
| 2879 _json["endTime"] = endTime; |
| 2880 } |
| 2881 if (insertTime != null) { |
| 2882 _json["insertTime"] = insertTime; |
| 2883 } |
| 2884 if (method != null) { |
| 2885 _json["method"] = method; |
| 2886 } |
| 2887 if (target != null) { |
| 2888 _json["target"] = target; |
| 2889 } |
| 2890 if (user != null) { |
| 2891 _json["user"] = user; |
| 2892 } |
| 2893 return _json; |
| 2894 } |
| 2895 } |
| 2896 |
| 2897 /** Metadata for the given google.longrunning.Operation. */ |
2580 class OperationMetadataV1 { | 2898 class OperationMetadataV1 { |
2581 /** Time that this operation completed. @OutputOnly */ | 2899 /** Time that this operation completed. @OutputOnly */ |
2582 core.String endTime; | 2900 core.String endTime; |
2583 /** Time that this operation was created. @OutputOnly */ | 2901 /** Time that this operation was created. @OutputOnly */ |
2584 core.String insertTime; | 2902 core.String insertTime; |
2585 /** | 2903 /** |
2586 * API method that initiated this operation. Example: | 2904 * API method that initiated this operation. Example: |
2587 * `google.appengine.v1.Versions.CreateVersion`. @OutputOnly | 2905 * `google.appengine.v1.Versions.CreateVersion`. @OutputOnly |
2588 */ | 2906 */ |
2589 core.String method; | 2907 core.String method; |
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3564 if (versionUrl != null) { | 3882 if (versionUrl != null) { |
3565 _json["versionUrl"] = versionUrl; | 3883 _json["versionUrl"] = versionUrl; |
3566 } | 3884 } |
3567 if (vm != null) { | 3885 if (vm != null) { |
3568 _json["vm"] = vm; | 3886 _json["vm"] = vm; |
3569 } | 3887 } |
3570 return _json; | 3888 return _json; |
3571 } | 3889 } |
3572 } | 3890 } |
3573 | 3891 |
| 3892 /** The zip file information for a zip deployment. */ |
3574 class ZipInfo { | 3893 class ZipInfo { |
3575 /** | 3894 /** |
3576 * An estimate of the number of files in a zip for a zip deployment. If set, | 3895 * An estimate of the number of files in a zip for a zip deployment. If set, |
3577 * must be greater than or equal to the actual number of files. Used for | 3896 * must be greater than or equal to the actual number of files. Used for |
3578 * optimizing performance; if not provided, deployment may be slow. | 3897 * optimizing performance; if not provided, deployment may be slow. |
3579 */ | 3898 */ |
3580 core.int filesCount; | 3899 core.int filesCount; |
3581 /** | 3900 /** |
3582 * URL of the zip file to deploy from. Must be a URL to a resource in Google | 3901 * URL of the zip file to deploy from. Must be a URL to a resource in Google |
3583 * Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. | 3902 * Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. |
(...skipping 15 matching lines...) Expand all Loading... |
3599 var _json = new core.Map(); | 3918 var _json = new core.Map(); |
3600 if (filesCount != null) { | 3919 if (filesCount != null) { |
3601 _json["filesCount"] = filesCount; | 3920 _json["filesCount"] = filesCount; |
3602 } | 3921 } |
3603 if (sourceUrl != null) { | 3922 if (sourceUrl != null) { |
3604 _json["sourceUrl"] = sourceUrl; | 3923 _json["sourceUrl"] = sourceUrl; |
3605 } | 3924 } |
3606 return _json; | 3925 return _json; |
3607 } | 3926 } |
3608 } | 3927 } |
OLD | NEW |