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; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 } | 252 } |
253 | 253 |
254 /** | 254 /** |
255 * Lists information about the supported locations for this service. | 255 * Lists information about the supported locations for this service. |
256 * | 256 * |
257 * Request parameters: | 257 * Request parameters: |
258 * | 258 * |
259 * [appsId] - Part of `name`. The resource that owns the locations collection, | 259 * [appsId] - Part of `name`. The resource that owns the locations collection, |
260 * if applicable. | 260 * if applicable. |
261 * | 261 * |
262 * [filter] - The standard list filter. | |
263 * | |
264 * [pageToken] - The standard list page token. | 262 * [pageToken] - The standard list page token. |
265 * | 263 * |
266 * [pageSize] - The standard list page size. | 264 * [pageSize] - The standard list page size. |
267 * | 265 * |
| 266 * [filter] - The standard list filter. |
| 267 * |
268 * Completes with a [ListLocationsResponse]. | 268 * Completes with a [ListLocationsResponse]. |
269 * | 269 * |
270 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 270 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
271 * error. | 271 * error. |
272 * | 272 * |
273 * If the used [http.Client] completes with an error when making a REST call, | 273 * If the used [http.Client] completes with an error when making a REST call, |
274 * this method will complete with the same error. | 274 * this method will complete with the same error. |
275 */ | 275 */ |
276 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt
er, core.String pageToken, core.int pageSize}) { | 276 async.Future<ListLocationsResponse> list(core.String appsId, {core.String page
Token, core.int pageSize, core.String filter}) { |
277 var _url = null; | 277 var _url = null; |
278 var _queryParams = new core.Map(); | 278 var _queryParams = new core.Map(); |
279 var _uploadMedia = null; | 279 var _uploadMedia = null; |
280 var _uploadOptions = null; | 280 var _uploadOptions = null; |
281 var _downloadOptions = commons.DownloadOptions.Metadata; | 281 var _downloadOptions = commons.DownloadOptions.Metadata; |
282 var _body = null; | 282 var _body = null; |
283 | 283 |
284 if (appsId == null) { | 284 if (appsId == null) { |
285 throw new core.ArgumentError("Parameter appsId is required."); | 285 throw new core.ArgumentError("Parameter appsId is required."); |
286 } | 286 } |
287 if (filter != null) { | |
288 _queryParams["filter"] = [filter]; | |
289 } | |
290 if (pageToken != null) { | 287 if (pageToken != null) { |
291 _queryParams["pageToken"] = [pageToken]; | 288 _queryParams["pageToken"] = [pageToken]; |
292 } | 289 } |
293 if (pageSize != null) { | 290 if (pageSize != null) { |
294 _queryParams["pageSize"] = ["${pageSize}"]; | 291 _queryParams["pageSize"] = ["${pageSize}"]; |
295 } | 292 } |
| 293 if (filter != null) { |
| 294 _queryParams["filter"] = [filter]; |
| 295 } |
296 | 296 |
297 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati
ons'; | 297 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati
ons'; |
298 | 298 |
299 var _response = _requester.request(_url, | 299 var _response = _requester.request(_url, |
300 "GET", | 300 "GET", |
301 body: _body, | 301 body: _body, |
302 queryParams: _queryParams, | 302 queryParams: _queryParams, |
303 uploadOptions: _uploadOptions, | 303 uploadOptions: _uploadOptions, |
304 uploadMedia: _uploadMedia, | 304 uploadMedia: _uploadMedia, |
305 downloadOptions: _downloadOptions); | 305 downloadOptions: _downloadOptions); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 queryParams: _queryParams, | 357 queryParams: _queryParams, |
358 uploadOptions: _uploadOptions, | 358 uploadOptions: _uploadOptions, |
359 uploadMedia: _uploadMedia, | 359 uploadMedia: _uploadMedia, |
360 downloadOptions: _downloadOptions); | 360 downloadOptions: _downloadOptions); |
361 return _response.then((data) => new Operation.fromJson(data)); | 361 return _response.then((data) => new Operation.fromJson(data)); |
362 } | 362 } |
363 | 363 |
364 /** | 364 /** |
365 * Lists operations that match the specified filter in the request. If the | 365 * Lists operations that match the specified filter in the request. If the |
366 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name | 366 * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name |
367 * binding below allows API services to override the binding to use different | 367 * binding allows API services to override the binding to use different |
368 * resource name schemes, such as users / * /operations. | 368 * resource name schemes, such as users / * /operations. To override the |
| 369 * binding, API services can add a binding such as "/v1/{name=users / * |
| 370 * }/operations" to their service configuration. For backwards compatibility, |
| 371 * the default name includes the operations collection id, however overriding |
| 372 * users must ensure the name binding is the parent resource, without the |
| 373 * operations collection id. |
369 * | 374 * |
370 * Request parameters: | 375 * Request parameters: |
371 * | 376 * |
372 * [appsId] - Part of `name`. The name of the operation collection. | 377 * [appsId] - Part of `name`. The name of the operation's parent resource. |
373 * | |
374 * [filter] - The standard list filter. | |
375 * | 378 * |
376 * [pageToken] - The standard list page token. | 379 * [pageToken] - The standard list page token. |
377 * | 380 * |
378 * [pageSize] - The standard list page size. | 381 * [pageSize] - The standard list page size. |
379 * | 382 * |
| 383 * [filter] - The standard list filter. |
| 384 * |
380 * Completes with a [ListOperationsResponse]. | 385 * Completes with a [ListOperationsResponse]. |
381 * | 386 * |
382 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 387 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
383 * error. | 388 * error. |
384 * | 389 * |
385 * If the used [http.Client] completes with an error when making a REST call, | 390 * If the used [http.Client] completes with an error when making a REST call, |
386 * this method will complete with the same error. | 391 * this method will complete with the same error. |
387 */ | 392 */ |
388 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.String pageToken, core.int pageSize}) { | 393 async.Future<ListOperationsResponse> list(core.String appsId, {core.String pag
eToken, core.int pageSize, core.String filter}) { |
389 var _url = null; | 394 var _url = null; |
390 var _queryParams = new core.Map(); | 395 var _queryParams = new core.Map(); |
391 var _uploadMedia = null; | 396 var _uploadMedia = null; |
392 var _uploadOptions = null; | 397 var _uploadOptions = null; |
393 var _downloadOptions = commons.DownloadOptions.Metadata; | 398 var _downloadOptions = commons.DownloadOptions.Metadata; |
394 var _body = null; | 399 var _body = null; |
395 | 400 |
396 if (appsId == null) { | 401 if (appsId == null) { |
397 throw new core.ArgumentError("Parameter appsId is required."); | 402 throw new core.ArgumentError("Parameter appsId is required."); |
398 } | 403 } |
399 if (filter != null) { | |
400 _queryParams["filter"] = [filter]; | |
401 } | |
402 if (pageToken != null) { | 404 if (pageToken != null) { |
403 _queryParams["pageToken"] = [pageToken]; | 405 _queryParams["pageToken"] = [pageToken]; |
404 } | 406 } |
405 if (pageSize != null) { | 407 if (pageSize != null) { |
406 _queryParams["pageSize"] = ["${pageSize}"]; | 408 _queryParams["pageSize"] = ["${pageSize}"]; |
407 } | 409 } |
| 410 if (filter != null) { |
| 411 _queryParams["filter"] = [filter]; |
| 412 } |
408 | 413 |
409 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat
ions'; | 414 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat
ions'; |
410 | 415 |
411 var _response = _requester.request(_url, | 416 var _response = _requester.request(_url, |
412 "GET", | 417 "GET", |
413 body: _body, | 418 body: _body, |
414 queryParams: _queryParams, | 419 queryParams: _queryParams, |
415 uploadOptions: _uploadOptions, | 420 uploadOptions: _uploadOptions, |
416 uploadMedia: _uploadMedia, | 421 uploadMedia: _uploadMedia, |
417 downloadOptions: _downloadOptions); | 422 downloadOptions: _downloadOptions); |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 script = _json["script"]; | 1273 script = _json["script"]; |
1269 } | 1274 } |
1270 if (_json.containsKey("securityLevel")) { | 1275 if (_json.containsKey("securityLevel")) { |
1271 securityLevel = _json["securityLevel"]; | 1276 securityLevel = _json["securityLevel"]; |
1272 } | 1277 } |
1273 if (_json.containsKey("url")) { | 1278 if (_json.containsKey("url")) { |
1274 url = _json["url"]; | 1279 url = _json["url"]; |
1275 } | 1280 } |
1276 } | 1281 } |
1277 | 1282 |
1278 core.Map toJson() { | 1283 core.Map<core.String, core.Object> toJson() { |
1279 var _json = new core.Map(); | 1284 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1280 if (authFailAction != null) { | 1285 if (authFailAction != null) { |
1281 _json["authFailAction"] = authFailAction; | 1286 _json["authFailAction"] = authFailAction; |
1282 } | 1287 } |
1283 if (login != null) { | 1288 if (login != null) { |
1284 _json["login"] = login; | 1289 _json["login"] = login; |
1285 } | 1290 } |
1286 if (script != null) { | 1291 if (script != null) { |
1287 _json["script"] = script; | 1292 _json["script"] = script; |
1288 } | 1293 } |
1289 if (securityLevel != null) { | 1294 if (securityLevel != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
1302 core.String scriptPath; | 1307 core.String scriptPath; |
1303 | 1308 |
1304 ApiEndpointHandler(); | 1309 ApiEndpointHandler(); |
1305 | 1310 |
1306 ApiEndpointHandler.fromJson(core.Map _json) { | 1311 ApiEndpointHandler.fromJson(core.Map _json) { |
1307 if (_json.containsKey("scriptPath")) { | 1312 if (_json.containsKey("scriptPath")) { |
1308 scriptPath = _json["scriptPath"]; | 1313 scriptPath = _json["scriptPath"]; |
1309 } | 1314 } |
1310 } | 1315 } |
1311 | 1316 |
1312 core.Map toJson() { | 1317 core.Map<core.String, core.Object> toJson() { |
1313 var _json = new core.Map(); | 1318 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1314 if (scriptPath != null) { | 1319 if (scriptPath != null) { |
1315 _json["scriptPath"] = scriptPath; | 1320 _json["scriptPath"] = scriptPath; |
1316 } | 1321 } |
1317 return _json; | 1322 return _json; |
1318 } | 1323 } |
1319 } | 1324 } |
1320 | 1325 |
1321 /** | 1326 /** |
1322 * An Application resource contains the top-level configuration of an App Engine | 1327 * An Application resource contains the top-level configuration of an App Engine |
1323 * application. | 1328 * application. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1401 id = _json["id"]; | 1406 id = _json["id"]; |
1402 } | 1407 } |
1403 if (_json.containsKey("location")) { | 1408 if (_json.containsKey("location")) { |
1404 location = _json["location"]; | 1409 location = _json["location"]; |
1405 } | 1410 } |
1406 if (_json.containsKey("name")) { | 1411 if (_json.containsKey("name")) { |
1407 name = _json["name"]; | 1412 name = _json["name"]; |
1408 } | 1413 } |
1409 } | 1414 } |
1410 | 1415 |
1411 core.Map toJson() { | 1416 core.Map<core.String, core.Object> toJson() { |
1412 var _json = new core.Map(); | 1417 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1413 if (authDomain != null) { | 1418 if (authDomain != null) { |
1414 _json["authDomain"] = authDomain; | 1419 _json["authDomain"] = authDomain; |
1415 } | 1420 } |
1416 if (codeBucket != null) { | 1421 if (codeBucket != null) { |
1417 _json["codeBucket"] = codeBucket; | 1422 _json["codeBucket"] = codeBucket; |
1418 } | 1423 } |
1419 if (defaultBucket != null) { | 1424 if (defaultBucket != null) { |
1420 _json["defaultBucket"] = defaultBucket; | 1425 _json["defaultBucket"] = defaultBucket; |
1421 } | 1426 } |
1422 if (defaultCookieExpiration != null) { | 1427 if (defaultCookieExpiration != null) { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1530 minTotalInstances = _json["minTotalInstances"]; | 1535 minTotalInstances = _json["minTotalInstances"]; |
1531 } | 1536 } |
1532 if (_json.containsKey("networkUtilization")) { | 1537 if (_json.containsKey("networkUtilization")) { |
1533 networkUtilization = new NetworkUtilization.fromJson(_json["networkUtiliza
tion"]); | 1538 networkUtilization = new NetworkUtilization.fromJson(_json["networkUtiliza
tion"]); |
1534 } | 1539 } |
1535 if (_json.containsKey("requestUtilization")) { | 1540 if (_json.containsKey("requestUtilization")) { |
1536 requestUtilization = new RequestUtilization.fromJson(_json["requestUtiliza
tion"]); | 1541 requestUtilization = new RequestUtilization.fromJson(_json["requestUtiliza
tion"]); |
1537 } | 1542 } |
1538 } | 1543 } |
1539 | 1544 |
1540 core.Map toJson() { | 1545 core.Map<core.String, core.Object> toJson() { |
1541 var _json = new core.Map(); | 1546 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1542 if (coolDownPeriod != null) { | 1547 if (coolDownPeriod != null) { |
1543 _json["coolDownPeriod"] = coolDownPeriod; | 1548 _json["coolDownPeriod"] = coolDownPeriod; |
1544 } | 1549 } |
1545 if (cpuUtilization != null) { | 1550 if (cpuUtilization != null) { |
1546 _json["cpuUtilization"] = (cpuUtilization).toJson(); | 1551 _json["cpuUtilization"] = (cpuUtilization).toJson(); |
1547 } | 1552 } |
1548 if (diskUtilization != null) { | 1553 if (diskUtilization != null) { |
1549 _json["diskUtilization"] = (diskUtilization).toJson(); | 1554 _json["diskUtilization"] = (diskUtilization).toJson(); |
1550 } | 1555 } |
1551 if (maxConcurrentRequests != null) { | 1556 if (maxConcurrentRequests != null) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 | 1603 |
1599 BasicScaling.fromJson(core.Map _json) { | 1604 BasicScaling.fromJson(core.Map _json) { |
1600 if (_json.containsKey("idleTimeout")) { | 1605 if (_json.containsKey("idleTimeout")) { |
1601 idleTimeout = _json["idleTimeout"]; | 1606 idleTimeout = _json["idleTimeout"]; |
1602 } | 1607 } |
1603 if (_json.containsKey("maxInstances")) { | 1608 if (_json.containsKey("maxInstances")) { |
1604 maxInstances = _json["maxInstances"]; | 1609 maxInstances = _json["maxInstances"]; |
1605 } | 1610 } |
1606 } | 1611 } |
1607 | 1612 |
1608 core.Map toJson() { | 1613 core.Map<core.String, core.Object> toJson() { |
1609 var _json = new core.Map(); | 1614 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1610 if (idleTimeout != null) { | 1615 if (idleTimeout != null) { |
1611 _json["idleTimeout"] = idleTimeout; | 1616 _json["idleTimeout"] = idleTimeout; |
1612 } | 1617 } |
1613 if (maxInstances != null) { | 1618 if (maxInstances != null) { |
1614 _json["maxInstances"] = maxInstances; | 1619 _json["maxInstances"] = maxInstances; |
1615 } | 1620 } |
1616 return _json; | 1621 return _json; |
1617 } | 1622 } |
1618 } | 1623 } |
1619 | 1624 |
(...skipping 11 matching lines...) Expand all Loading... |
1631 core.String image; | 1636 core.String image; |
1632 | 1637 |
1633 ContainerInfo(); | 1638 ContainerInfo(); |
1634 | 1639 |
1635 ContainerInfo.fromJson(core.Map _json) { | 1640 ContainerInfo.fromJson(core.Map _json) { |
1636 if (_json.containsKey("image")) { | 1641 if (_json.containsKey("image")) { |
1637 image = _json["image"]; | 1642 image = _json["image"]; |
1638 } | 1643 } |
1639 } | 1644 } |
1640 | 1645 |
1641 core.Map toJson() { | 1646 core.Map<core.String, core.Object> toJson() { |
1642 var _json = new core.Map(); | 1647 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1643 if (image != null) { | 1648 if (image != null) { |
1644 _json["image"] = image; | 1649 _json["image"] = image; |
1645 } | 1650 } |
1646 return _json; | 1651 return _json; |
1647 } | 1652 } |
1648 } | 1653 } |
1649 | 1654 |
1650 /** Target scaling by CPU usage. */ | 1655 /** Target scaling by CPU usage. */ |
1651 class CpuUtilization { | 1656 class CpuUtilization { |
1652 /** Period of time over which CPU utilization is calculated. */ | 1657 /** Period of time over which CPU utilization is calculated. */ |
1653 core.String aggregationWindowLength; | 1658 core.String aggregationWindowLength; |
1654 /** | 1659 /** |
1655 * Target CPU utilization ratio to maintain when scaling. Must be between 0 | 1660 * Target CPU utilization ratio to maintain when scaling. Must be between 0 |
1656 * and 1. | 1661 * and 1. |
1657 */ | 1662 */ |
1658 core.double targetUtilization; | 1663 core.double targetUtilization; |
1659 | 1664 |
1660 CpuUtilization(); | 1665 CpuUtilization(); |
1661 | 1666 |
1662 CpuUtilization.fromJson(core.Map _json) { | 1667 CpuUtilization.fromJson(core.Map _json) { |
1663 if (_json.containsKey("aggregationWindowLength")) { | 1668 if (_json.containsKey("aggregationWindowLength")) { |
1664 aggregationWindowLength = _json["aggregationWindowLength"]; | 1669 aggregationWindowLength = _json["aggregationWindowLength"]; |
1665 } | 1670 } |
1666 if (_json.containsKey("targetUtilization")) { | 1671 if (_json.containsKey("targetUtilization")) { |
1667 targetUtilization = _json["targetUtilization"]; | 1672 targetUtilization = _json["targetUtilization"]; |
1668 } | 1673 } |
1669 } | 1674 } |
1670 | 1675 |
1671 core.Map toJson() { | 1676 core.Map<core.String, core.Object> toJson() { |
1672 var _json = new core.Map(); | 1677 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1673 if (aggregationWindowLength != null) { | 1678 if (aggregationWindowLength != null) { |
1674 _json["aggregationWindowLength"] = aggregationWindowLength; | 1679 _json["aggregationWindowLength"] = aggregationWindowLength; |
1675 } | 1680 } |
1676 if (targetUtilization != null) { | 1681 if (targetUtilization != null) { |
1677 _json["targetUtilization"] = targetUtilization; | 1682 _json["targetUtilization"] = targetUtilization; |
1678 } | 1683 } |
1679 return _json; | 1684 return _json; |
1680 } | 1685 } |
1681 } | 1686 } |
1682 | 1687 |
(...skipping 10 matching lines...) Expand all Loading... |
1693 core.String sshKey; | 1698 core.String sshKey; |
1694 | 1699 |
1695 DebugInstanceRequest(); | 1700 DebugInstanceRequest(); |
1696 | 1701 |
1697 DebugInstanceRequest.fromJson(core.Map _json) { | 1702 DebugInstanceRequest.fromJson(core.Map _json) { |
1698 if (_json.containsKey("sshKey")) { | 1703 if (_json.containsKey("sshKey")) { |
1699 sshKey = _json["sshKey"]; | 1704 sshKey = _json["sshKey"]; |
1700 } | 1705 } |
1701 } | 1706 } |
1702 | 1707 |
1703 core.Map toJson() { | 1708 core.Map<core.String, core.Object> toJson() { |
1704 var _json = new core.Map(); | 1709 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1705 if (sshKey != null) { | 1710 if (sshKey != null) { |
1706 _json["sshKey"] = sshKey; | 1711 _json["sshKey"] = sshKey; |
1707 } | 1712 } |
1708 return _json; | 1713 return _json; |
1709 } | 1714 } |
1710 } | 1715 } |
1711 | 1716 |
1712 /** Code and application artifacts used to deploy a version to App Engine. */ | 1717 /** Code and application artifacts used to deploy a version to App Engine. */ |
1713 class Deployment { | 1718 class Deployment { |
1714 /** | 1719 /** |
(...skipping 14 matching lines...) Expand all Loading... |
1729 */ | 1734 */ |
1730 core.List<SourceReference> sourceReferences; | 1735 core.List<SourceReference> sourceReferences; |
1731 | 1736 |
1732 Deployment(); | 1737 Deployment(); |
1733 | 1738 |
1734 Deployment.fromJson(core.Map _json) { | 1739 Deployment.fromJson(core.Map _json) { |
1735 if (_json.containsKey("container")) { | 1740 if (_json.containsKey("container")) { |
1736 container = new ContainerInfo.fromJson(_json["container"]); | 1741 container = new ContainerInfo.fromJson(_json["container"]); |
1737 } | 1742 } |
1738 if (_json.containsKey("files")) { | 1743 if (_json.containsKey("files")) { |
1739 files = commons.mapMap(_json["files"], (item) => new FileInfo.fromJson(ite
m)); | 1744 files = commons.mapMap<core.Map<core.String, core.Object>, FileInfo>(_json
["files"], (core.Map<core.String, core.Object> item) => new FileInfo.fromJson(it
em)); |
1740 } | 1745 } |
1741 if (_json.containsKey("sourceReferences")) { | 1746 if (_json.containsKey("sourceReferences")) { |
1742 sourceReferences = _json["sourceReferences"].map((value) => new SourceRefe
rence.fromJson(value)).toList(); | 1747 sourceReferences = _json["sourceReferences"].map((value) => new SourceRefe
rence.fromJson(value)).toList(); |
1743 } | 1748 } |
1744 } | 1749 } |
1745 | 1750 |
1746 core.Map toJson() { | 1751 core.Map<core.String, core.Object> toJson() { |
1747 var _json = new core.Map(); | 1752 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1748 if (container != null) { | 1753 if (container != null) { |
1749 _json["container"] = (container).toJson(); | 1754 _json["container"] = (container).toJson(); |
1750 } | 1755 } |
1751 if (files != null) { | 1756 if (files != null) { |
1752 _json["files"] = commons.mapMap(files, (item) => (item).toJson()); | 1757 _json["files"] = commons.mapMap<FileInfo, core.Map<core.String, core.Objec
t>>(files, (FileInfo item) => (item).toJson()); |
1753 } | 1758 } |
1754 if (sourceReferences != null) { | 1759 if (sourceReferences != null) { |
1755 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson
()).toList(); | 1760 _json["sourceReferences"] = sourceReferences.map((value) => (value).toJson
()).toList(); |
1756 } | 1761 } |
1757 return _json; | 1762 return _json; |
1758 } | 1763 } |
1759 } | 1764 } |
1760 | 1765 |
1761 /** Target scaling by disk usage. Only applicable for VM runtimes. */ | 1766 /** Target scaling by disk usage. Only applicable for VM runtimes. */ |
1762 class DiskUtilization { | 1767 class DiskUtilization { |
(...skipping 16 matching lines...) Expand all Loading... |
1779 targetReadOpsPerSec = _json["targetReadOpsPerSec"]; | 1784 targetReadOpsPerSec = _json["targetReadOpsPerSec"]; |
1780 } | 1785 } |
1781 if (_json.containsKey("targetWriteBytesPerSec")) { | 1786 if (_json.containsKey("targetWriteBytesPerSec")) { |
1782 targetWriteBytesPerSec = _json["targetWriteBytesPerSec"]; | 1787 targetWriteBytesPerSec = _json["targetWriteBytesPerSec"]; |
1783 } | 1788 } |
1784 if (_json.containsKey("targetWriteOpsPerSec")) { | 1789 if (_json.containsKey("targetWriteOpsPerSec")) { |
1785 targetWriteOpsPerSec = _json["targetWriteOpsPerSec"]; | 1790 targetWriteOpsPerSec = _json["targetWriteOpsPerSec"]; |
1786 } | 1791 } |
1787 } | 1792 } |
1788 | 1793 |
1789 core.Map toJson() { | 1794 core.Map<core.String, core.Object> toJson() { |
1790 var _json = new core.Map(); | 1795 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1791 if (targetReadBytesPerSec != null) { | 1796 if (targetReadBytesPerSec != null) { |
1792 _json["targetReadBytesPerSec"] = targetReadBytesPerSec; | 1797 _json["targetReadBytesPerSec"] = targetReadBytesPerSec; |
1793 } | 1798 } |
1794 if (targetReadOpsPerSec != null) { | 1799 if (targetReadOpsPerSec != null) { |
1795 _json["targetReadOpsPerSec"] = targetReadOpsPerSec; | 1800 _json["targetReadOpsPerSec"] = targetReadOpsPerSec; |
1796 } | 1801 } |
1797 if (targetWriteBytesPerSec != null) { | 1802 if (targetWriteBytesPerSec != null) { |
1798 _json["targetWriteBytesPerSec"] = targetWriteBytesPerSec; | 1803 _json["targetWriteBytesPerSec"] = targetWriteBytesPerSec; |
1799 } | 1804 } |
1800 if (targetWriteOpsPerSec != null) { | 1805 if (targetWriteOpsPerSec != null) { |
(...skipping 26 matching lines...) Expand all Loading... |
1827 | 1832 |
1828 EndpointsApiService.fromJson(core.Map _json) { | 1833 EndpointsApiService.fromJson(core.Map _json) { |
1829 if (_json.containsKey("configId")) { | 1834 if (_json.containsKey("configId")) { |
1830 configId = _json["configId"]; | 1835 configId = _json["configId"]; |
1831 } | 1836 } |
1832 if (_json.containsKey("name")) { | 1837 if (_json.containsKey("name")) { |
1833 name = _json["name"]; | 1838 name = _json["name"]; |
1834 } | 1839 } |
1835 } | 1840 } |
1836 | 1841 |
1837 core.Map toJson() { | 1842 core.Map<core.String, core.Object> toJson() { |
1838 var _json = new core.Map(); | 1843 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1839 if (configId != null) { | 1844 if (configId != null) { |
1840 _json["configId"] = configId; | 1845 _json["configId"] = configId; |
1841 } | 1846 } |
1842 if (name != null) { | 1847 if (name != null) { |
1843 _json["name"] = name; | 1848 _json["name"] = name; |
1844 } | 1849 } |
1845 return _json; | 1850 return _json; |
1846 } | 1851 } |
1847 } | 1852 } |
1848 | 1853 |
(...skipping 22 matching lines...) Expand all Loading... |
1871 errorCode = _json["errorCode"]; | 1876 errorCode = _json["errorCode"]; |
1872 } | 1877 } |
1873 if (_json.containsKey("mimeType")) { | 1878 if (_json.containsKey("mimeType")) { |
1874 mimeType = _json["mimeType"]; | 1879 mimeType = _json["mimeType"]; |
1875 } | 1880 } |
1876 if (_json.containsKey("staticFile")) { | 1881 if (_json.containsKey("staticFile")) { |
1877 staticFile = _json["staticFile"]; | 1882 staticFile = _json["staticFile"]; |
1878 } | 1883 } |
1879 } | 1884 } |
1880 | 1885 |
1881 core.Map toJson() { | 1886 core.Map<core.String, core.Object> toJson() { |
1882 var _json = new core.Map(); | 1887 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1883 if (errorCode != null) { | 1888 if (errorCode != null) { |
1884 _json["errorCode"] = errorCode; | 1889 _json["errorCode"] = errorCode; |
1885 } | 1890 } |
1886 if (mimeType != null) { | 1891 if (mimeType != null) { |
1887 _json["mimeType"] = mimeType; | 1892 _json["mimeType"] = mimeType; |
1888 } | 1893 } |
1889 if (staticFile != null) { | 1894 if (staticFile != null) { |
1890 _json["staticFile"] = staticFile; | 1895 _json["staticFile"] = staticFile; |
1891 } | 1896 } |
1892 return _json; | 1897 return _json; |
(...skipping 25 matching lines...) Expand all Loading... |
1918 mimeType = _json["mimeType"]; | 1923 mimeType = _json["mimeType"]; |
1919 } | 1924 } |
1920 if (_json.containsKey("sha1Sum")) { | 1925 if (_json.containsKey("sha1Sum")) { |
1921 sha1Sum = _json["sha1Sum"]; | 1926 sha1Sum = _json["sha1Sum"]; |
1922 } | 1927 } |
1923 if (_json.containsKey("sourceUrl")) { | 1928 if (_json.containsKey("sourceUrl")) { |
1924 sourceUrl = _json["sourceUrl"]; | 1929 sourceUrl = _json["sourceUrl"]; |
1925 } | 1930 } |
1926 } | 1931 } |
1927 | 1932 |
1928 core.Map toJson() { | 1933 core.Map<core.String, core.Object> toJson() { |
1929 var _json = new core.Map(); | 1934 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1930 if (mimeType != null) { | 1935 if (mimeType != null) { |
1931 _json["mimeType"] = mimeType; | 1936 _json["mimeType"] = mimeType; |
1932 } | 1937 } |
1933 if (sha1Sum != null) { | 1938 if (sha1Sum != null) { |
1934 _json["sha1Sum"] = sha1Sum; | 1939 _json["sha1Sum"] = sha1Sum; |
1935 } | 1940 } |
1936 if (sourceUrl != null) { | 1941 if (sourceUrl != null) { |
1937 _json["sourceUrl"] = sourceUrl; | 1942 _json["sourceUrl"] = sourceUrl; |
1938 } | 1943 } |
1939 return _json; | 1944 return _json; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1992 restartThreshold = _json["restartThreshold"]; | 1997 restartThreshold = _json["restartThreshold"]; |
1993 } | 1998 } |
1994 if (_json.containsKey("timeout")) { | 1999 if (_json.containsKey("timeout")) { |
1995 timeout = _json["timeout"]; | 2000 timeout = _json["timeout"]; |
1996 } | 2001 } |
1997 if (_json.containsKey("unhealthyThreshold")) { | 2002 if (_json.containsKey("unhealthyThreshold")) { |
1998 unhealthyThreshold = _json["unhealthyThreshold"]; | 2003 unhealthyThreshold = _json["unhealthyThreshold"]; |
1999 } | 2004 } |
2000 } | 2005 } |
2001 | 2006 |
2002 core.Map toJson() { | 2007 core.Map<core.String, core.Object> toJson() { |
2003 var _json = new core.Map(); | 2008 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2004 if (checkInterval != null) { | 2009 if (checkInterval != null) { |
2005 _json["checkInterval"] = checkInterval; | 2010 _json["checkInterval"] = checkInterval; |
2006 } | 2011 } |
2007 if (disableHealthCheck != null) { | 2012 if (disableHealthCheck != null) { |
2008 _json["disableHealthCheck"] = disableHealthCheck; | 2013 _json["disableHealthCheck"] = disableHealthCheck; |
2009 } | 2014 } |
2010 if (healthyThreshold != null) { | 2015 if (healthyThreshold != null) { |
2011 _json["healthyThreshold"] = healthyThreshold; | 2016 _json["healthyThreshold"] = healthyThreshold; |
2012 } | 2017 } |
2013 if (host != null) { | 2018 if (host != null) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2055 oauth2ClientId = _json["oauth2ClientId"]; | 2060 oauth2ClientId = _json["oauth2ClientId"]; |
2056 } | 2061 } |
2057 if (_json.containsKey("oauth2ClientSecret")) { | 2062 if (_json.containsKey("oauth2ClientSecret")) { |
2058 oauth2ClientSecret = _json["oauth2ClientSecret"]; | 2063 oauth2ClientSecret = _json["oauth2ClientSecret"]; |
2059 } | 2064 } |
2060 if (_json.containsKey("oauth2ClientSecretSha256")) { | 2065 if (_json.containsKey("oauth2ClientSecretSha256")) { |
2061 oauth2ClientSecretSha256 = _json["oauth2ClientSecretSha256"]; | 2066 oauth2ClientSecretSha256 = _json["oauth2ClientSecretSha256"]; |
2062 } | 2067 } |
2063 } | 2068 } |
2064 | 2069 |
2065 core.Map toJson() { | 2070 core.Map<core.String, core.Object> toJson() { |
2066 var _json = new core.Map(); | 2071 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2067 if (enabled != null) { | 2072 if (enabled != null) { |
2068 _json["enabled"] = enabled; | 2073 _json["enabled"] = enabled; |
2069 } | 2074 } |
2070 if (oauth2ClientId != null) { | 2075 if (oauth2ClientId != null) { |
2071 _json["oauth2ClientId"] = oauth2ClientId; | 2076 _json["oauth2ClientId"] = oauth2ClientId; |
2072 } | 2077 } |
2073 if (oauth2ClientSecret != null) { | 2078 if (oauth2ClientSecret != null) { |
2074 _json["oauth2ClientSecret"] = oauth2ClientSecret; | 2079 _json["oauth2ClientSecret"] = oauth2ClientSecret; |
2075 } | 2080 } |
2076 if (oauth2ClientSecretSha256 != null) { | 2081 if (oauth2ClientSecretSha256 != null) { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2194 vmStatus = _json["vmStatus"]; | 2199 vmStatus = _json["vmStatus"]; |
2195 } | 2200 } |
2196 if (_json.containsKey("vmUnlocked")) { | 2201 if (_json.containsKey("vmUnlocked")) { |
2197 vmUnlocked = _json["vmUnlocked"]; | 2202 vmUnlocked = _json["vmUnlocked"]; |
2198 } | 2203 } |
2199 if (_json.containsKey("vmZoneName")) { | 2204 if (_json.containsKey("vmZoneName")) { |
2200 vmZoneName = _json["vmZoneName"]; | 2205 vmZoneName = _json["vmZoneName"]; |
2201 } | 2206 } |
2202 } | 2207 } |
2203 | 2208 |
2204 core.Map toJson() { | 2209 core.Map<core.String, core.Object> toJson() { |
2205 var _json = new core.Map(); | 2210 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2206 if (appEngineRelease != null) { | 2211 if (appEngineRelease != null) { |
2207 _json["appEngineRelease"] = appEngineRelease; | 2212 _json["appEngineRelease"] = appEngineRelease; |
2208 } | 2213 } |
2209 if (availability != null) { | 2214 if (availability != null) { |
2210 _json["availability"] = availability; | 2215 _json["availability"] = availability; |
2211 } | 2216 } |
2212 if (averageLatency != null) { | 2217 if (averageLatency != null) { |
2213 _json["averageLatency"] = averageLatency; | 2218 _json["averageLatency"] = averageLatency; |
2214 } | 2219 } |
2215 if (errors != null) { | 2220 if (errors != null) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2266 | 2271 |
2267 Library.fromJson(core.Map _json) { | 2272 Library.fromJson(core.Map _json) { |
2268 if (_json.containsKey("name")) { | 2273 if (_json.containsKey("name")) { |
2269 name = _json["name"]; | 2274 name = _json["name"]; |
2270 } | 2275 } |
2271 if (_json.containsKey("version")) { | 2276 if (_json.containsKey("version")) { |
2272 version = _json["version"]; | 2277 version = _json["version"]; |
2273 } | 2278 } |
2274 } | 2279 } |
2275 | 2280 |
2276 core.Map toJson() { | 2281 core.Map<core.String, core.Object> toJson() { |
2277 var _json = new core.Map(); | 2282 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2278 if (name != null) { | 2283 if (name != null) { |
2279 _json["name"] = name; | 2284 _json["name"] = name; |
2280 } | 2285 } |
2281 if (version != null) { | 2286 if (version != null) { |
2282 _json["version"] = version; | 2287 _json["version"] = version; |
2283 } | 2288 } |
2284 return _json; | 2289 return _json; |
2285 } | 2290 } |
2286 } | 2291 } |
2287 | 2292 |
2288 /** Response message for Instances.ListInstances. */ | 2293 /** Response message for Instances.ListInstances. */ |
2289 class ListInstancesResponse { | 2294 class ListInstancesResponse { |
2290 /** The instances belonging to the requested version. */ | 2295 /** The instances belonging to the requested version. */ |
2291 core.List<Instance> instances; | 2296 core.List<Instance> instances; |
2292 /** Continuation token for fetching the next page of results. */ | 2297 /** Continuation token for fetching the next page of results. */ |
2293 core.String nextPageToken; | 2298 core.String nextPageToken; |
2294 | 2299 |
2295 ListInstancesResponse(); | 2300 ListInstancesResponse(); |
2296 | 2301 |
2297 ListInstancesResponse.fromJson(core.Map _json) { | 2302 ListInstancesResponse.fromJson(core.Map _json) { |
2298 if (_json.containsKey("instances")) { | 2303 if (_json.containsKey("instances")) { |
2299 instances = _json["instances"].map((value) => new Instance.fromJson(value)
).toList(); | 2304 instances = _json["instances"].map((value) => new Instance.fromJson(value)
).toList(); |
2300 } | 2305 } |
2301 if (_json.containsKey("nextPageToken")) { | 2306 if (_json.containsKey("nextPageToken")) { |
2302 nextPageToken = _json["nextPageToken"]; | 2307 nextPageToken = _json["nextPageToken"]; |
2303 } | 2308 } |
2304 } | 2309 } |
2305 | 2310 |
2306 core.Map toJson() { | 2311 core.Map<core.String, core.Object> toJson() { |
2307 var _json = new core.Map(); | 2312 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2308 if (instances != null) { | 2313 if (instances != null) { |
2309 _json["instances"] = instances.map((value) => (value).toJson()).toList(); | 2314 _json["instances"] = instances.map((value) => (value).toJson()).toList(); |
2310 } | 2315 } |
2311 if (nextPageToken != null) { | 2316 if (nextPageToken != null) { |
2312 _json["nextPageToken"] = nextPageToken; | 2317 _json["nextPageToken"] = nextPageToken; |
2313 } | 2318 } |
2314 return _json; | 2319 return _json; |
2315 } | 2320 } |
2316 } | 2321 } |
2317 | 2322 |
2318 /** The response message for Locations.ListLocations. */ | 2323 /** The response message for Locations.ListLocations. */ |
2319 class ListLocationsResponse { | 2324 class ListLocationsResponse { |
2320 /** A list of locations that matches the specified filter in the request. */ | 2325 /** A list of locations that matches the specified filter in the request. */ |
2321 core.List<Location> locations; | 2326 core.List<Location> locations; |
2322 /** The standard List next-page token. */ | 2327 /** The standard List next-page token. */ |
2323 core.String nextPageToken; | 2328 core.String nextPageToken; |
2324 | 2329 |
2325 ListLocationsResponse(); | 2330 ListLocationsResponse(); |
2326 | 2331 |
2327 ListLocationsResponse.fromJson(core.Map _json) { | 2332 ListLocationsResponse.fromJson(core.Map _json) { |
2328 if (_json.containsKey("locations")) { | 2333 if (_json.containsKey("locations")) { |
2329 locations = _json["locations"].map((value) => new Location.fromJson(value)
).toList(); | 2334 locations = _json["locations"].map((value) => new Location.fromJson(value)
).toList(); |
2330 } | 2335 } |
2331 if (_json.containsKey("nextPageToken")) { | 2336 if (_json.containsKey("nextPageToken")) { |
2332 nextPageToken = _json["nextPageToken"]; | 2337 nextPageToken = _json["nextPageToken"]; |
2333 } | 2338 } |
2334 } | 2339 } |
2335 | 2340 |
2336 core.Map toJson() { | 2341 core.Map<core.String, core.Object> toJson() { |
2337 var _json = new core.Map(); | 2342 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2338 if (locations != null) { | 2343 if (locations != null) { |
2339 _json["locations"] = locations.map((value) => (value).toJson()).toList(); | 2344 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
2340 } | 2345 } |
2341 if (nextPageToken != null) { | 2346 if (nextPageToken != null) { |
2342 _json["nextPageToken"] = nextPageToken; | 2347 _json["nextPageToken"] = nextPageToken; |
2343 } | 2348 } |
2344 return _json; | 2349 return _json; |
2345 } | 2350 } |
2346 } | 2351 } |
2347 | 2352 |
2348 /** The response message for Operations.ListOperations. */ | 2353 /** The response message for Operations.ListOperations. */ |
2349 class ListOperationsResponse { | 2354 class ListOperationsResponse { |
2350 /** The standard List next-page token. */ | 2355 /** The standard List next-page token. */ |
2351 core.String nextPageToken; | 2356 core.String nextPageToken; |
2352 /** A list of operations that matches the specified filter in the request. */ | 2357 /** A list of operations that matches the specified filter in the request. */ |
2353 core.List<Operation> operations; | 2358 core.List<Operation> operations; |
2354 | 2359 |
2355 ListOperationsResponse(); | 2360 ListOperationsResponse(); |
2356 | 2361 |
2357 ListOperationsResponse.fromJson(core.Map _json) { | 2362 ListOperationsResponse.fromJson(core.Map _json) { |
2358 if (_json.containsKey("nextPageToken")) { | 2363 if (_json.containsKey("nextPageToken")) { |
2359 nextPageToken = _json["nextPageToken"]; | 2364 nextPageToken = _json["nextPageToken"]; |
2360 } | 2365 } |
2361 if (_json.containsKey("operations")) { | 2366 if (_json.containsKey("operations")) { |
2362 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 2367 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
2363 } | 2368 } |
2364 } | 2369 } |
2365 | 2370 |
2366 core.Map toJson() { | 2371 core.Map<core.String, core.Object> toJson() { |
2367 var _json = new core.Map(); | 2372 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2368 if (nextPageToken != null) { | 2373 if (nextPageToken != null) { |
2369 _json["nextPageToken"] = nextPageToken; | 2374 _json["nextPageToken"] = nextPageToken; |
2370 } | 2375 } |
2371 if (operations != null) { | 2376 if (operations != null) { |
2372 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 2377 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
2373 } | 2378 } |
2374 return _json; | 2379 return _json; |
2375 } | 2380 } |
2376 } | 2381 } |
2377 | 2382 |
2378 /** Response message for Services.ListServices. */ | 2383 /** Response message for Services.ListServices. */ |
2379 class ListServicesResponse { | 2384 class ListServicesResponse { |
2380 /** Continuation token for fetching the next page of results. */ | 2385 /** Continuation token for fetching the next page of results. */ |
2381 core.String nextPageToken; | 2386 core.String nextPageToken; |
2382 /** The services belonging to the requested application. */ | 2387 /** The services belonging to the requested application. */ |
2383 core.List<Service> services; | 2388 core.List<Service> services; |
2384 | 2389 |
2385 ListServicesResponse(); | 2390 ListServicesResponse(); |
2386 | 2391 |
2387 ListServicesResponse.fromJson(core.Map _json) { | 2392 ListServicesResponse.fromJson(core.Map _json) { |
2388 if (_json.containsKey("nextPageToken")) { | 2393 if (_json.containsKey("nextPageToken")) { |
2389 nextPageToken = _json["nextPageToken"]; | 2394 nextPageToken = _json["nextPageToken"]; |
2390 } | 2395 } |
2391 if (_json.containsKey("services")) { | 2396 if (_json.containsKey("services")) { |
2392 services = _json["services"].map((value) => new Service.fromJson(value)).t
oList(); | 2397 services = _json["services"].map((value) => new Service.fromJson(value)).t
oList(); |
2393 } | 2398 } |
2394 } | 2399 } |
2395 | 2400 |
2396 core.Map toJson() { | 2401 core.Map<core.String, core.Object> toJson() { |
2397 var _json = new core.Map(); | 2402 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2398 if (nextPageToken != null) { | 2403 if (nextPageToken != null) { |
2399 _json["nextPageToken"] = nextPageToken; | 2404 _json["nextPageToken"] = nextPageToken; |
2400 } | 2405 } |
2401 if (services != null) { | 2406 if (services != null) { |
2402 _json["services"] = services.map((value) => (value).toJson()).toList(); | 2407 _json["services"] = services.map((value) => (value).toJson()).toList(); |
2403 } | 2408 } |
2404 return _json; | 2409 return _json; |
2405 } | 2410 } |
2406 } | 2411 } |
2407 | 2412 |
2408 /** Response message for Versions.ListVersions. */ | 2413 /** Response message for Versions.ListVersions. */ |
2409 class ListVersionsResponse { | 2414 class ListVersionsResponse { |
2410 /** Continuation token for fetching the next page of results. */ | 2415 /** Continuation token for fetching the next page of results. */ |
2411 core.String nextPageToken; | 2416 core.String nextPageToken; |
2412 /** The versions belonging to the requested service. */ | 2417 /** The versions belonging to the requested service. */ |
2413 core.List<Version> versions; | 2418 core.List<Version> versions; |
2414 | 2419 |
2415 ListVersionsResponse(); | 2420 ListVersionsResponse(); |
2416 | 2421 |
2417 ListVersionsResponse.fromJson(core.Map _json) { | 2422 ListVersionsResponse.fromJson(core.Map _json) { |
2418 if (_json.containsKey("nextPageToken")) { | 2423 if (_json.containsKey("nextPageToken")) { |
2419 nextPageToken = _json["nextPageToken"]; | 2424 nextPageToken = _json["nextPageToken"]; |
2420 } | 2425 } |
2421 if (_json.containsKey("versions")) { | 2426 if (_json.containsKey("versions")) { |
2422 versions = _json["versions"].map((value) => new Version.fromJson(value)).t
oList(); | 2427 versions = _json["versions"].map((value) => new Version.fromJson(value)).t
oList(); |
2423 } | 2428 } |
2424 } | 2429 } |
2425 | 2430 |
2426 core.Map toJson() { | 2431 core.Map<core.String, core.Object> toJson() { |
2427 var _json = new core.Map(); | 2432 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2428 if (nextPageToken != null) { | 2433 if (nextPageToken != null) { |
2429 _json["nextPageToken"] = nextPageToken; | 2434 _json["nextPageToken"] = nextPageToken; |
2430 } | 2435 } |
2431 if (versions != null) { | 2436 if (versions != null) { |
2432 _json["versions"] = versions.map((value) => (value).toJson()).toList(); | 2437 _json["versions"] = versions.map((value) => (value).toJson()).toList(); |
2433 } | 2438 } |
2434 return _json; | 2439 return _json; |
2435 } | 2440 } |
2436 } | 2441 } |
2437 | 2442 |
(...skipping 30 matching lines...) Expand all Loading... |
2468 locationId = _json["locationId"]; | 2473 locationId = _json["locationId"]; |
2469 } | 2474 } |
2470 if (_json.containsKey("metadata")) { | 2475 if (_json.containsKey("metadata")) { |
2471 metadata = _json["metadata"]; | 2476 metadata = _json["metadata"]; |
2472 } | 2477 } |
2473 if (_json.containsKey("name")) { | 2478 if (_json.containsKey("name")) { |
2474 name = _json["name"]; | 2479 name = _json["name"]; |
2475 } | 2480 } |
2476 } | 2481 } |
2477 | 2482 |
2478 core.Map toJson() { | 2483 core.Map<core.String, core.Object> toJson() { |
2479 var _json = new core.Map(); | 2484 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2480 if (labels != null) { | 2485 if (labels != null) { |
2481 _json["labels"] = labels; | 2486 _json["labels"] = labels; |
2482 } | 2487 } |
2483 if (locationId != null) { | 2488 if (locationId != null) { |
2484 _json["locationId"] = locationId; | 2489 _json["locationId"] = locationId; |
2485 } | 2490 } |
2486 if (metadata != null) { | 2491 if (metadata != null) { |
2487 _json["metadata"] = metadata; | 2492 _json["metadata"] = metadata; |
2488 } | 2493 } |
2489 if (name != null) { | 2494 if (name != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
2510 | 2515 |
2511 LocationMetadata.fromJson(core.Map _json) { | 2516 LocationMetadata.fromJson(core.Map _json) { |
2512 if (_json.containsKey("flexibleEnvironmentAvailable")) { | 2517 if (_json.containsKey("flexibleEnvironmentAvailable")) { |
2513 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; | 2518 flexibleEnvironmentAvailable = _json["flexibleEnvironmentAvailable"]; |
2514 } | 2519 } |
2515 if (_json.containsKey("standardEnvironmentAvailable")) { | 2520 if (_json.containsKey("standardEnvironmentAvailable")) { |
2516 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"]; | 2521 standardEnvironmentAvailable = _json["standardEnvironmentAvailable"]; |
2517 } | 2522 } |
2518 } | 2523 } |
2519 | 2524 |
2520 core.Map toJson() { | 2525 core.Map<core.String, core.Object> toJson() { |
2521 var _json = new core.Map(); | 2526 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2522 if (flexibleEnvironmentAvailable != null) { | 2527 if (flexibleEnvironmentAvailable != null) { |
2523 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; | 2528 _json["flexibleEnvironmentAvailable"] = flexibleEnvironmentAvailable; |
2524 } | 2529 } |
2525 if (standardEnvironmentAvailable != null) { | 2530 if (standardEnvironmentAvailable != null) { |
2526 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable; | 2531 _json["standardEnvironmentAvailable"] = standardEnvironmentAvailable; |
2527 } | 2532 } |
2528 return _json; | 2533 return _json; |
2529 } | 2534 } |
2530 } | 2535 } |
2531 | 2536 |
(...skipping 11 matching lines...) Expand all Loading... |
2543 core.int instances; | 2548 core.int instances; |
2544 | 2549 |
2545 ManualScaling(); | 2550 ManualScaling(); |
2546 | 2551 |
2547 ManualScaling.fromJson(core.Map _json) { | 2552 ManualScaling.fromJson(core.Map _json) { |
2548 if (_json.containsKey("instances")) { | 2553 if (_json.containsKey("instances")) { |
2549 instances = _json["instances"]; | 2554 instances = _json["instances"]; |
2550 } | 2555 } |
2551 } | 2556 } |
2552 | 2557 |
2553 core.Map toJson() { | 2558 core.Map<core.String, core.Object> toJson() { |
2554 var _json = new core.Map(); | 2559 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2555 if (instances != null) { | 2560 if (instances != null) { |
2556 _json["instances"] = instances; | 2561 _json["instances"] = instances; |
2557 } | 2562 } |
2558 return _json; | 2563 return _json; |
2559 } | 2564 } |
2560 } | 2565 } |
2561 | 2566 |
2562 /** Extra network settings. Only applicable for VM runtimes. */ | 2567 /** Extra network settings. Only applicable for VM runtimes. */ |
2563 class Network { | 2568 class Network { |
2564 /** | 2569 /** |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2601 instanceTag = _json["instanceTag"]; | 2606 instanceTag = _json["instanceTag"]; |
2602 } | 2607 } |
2603 if (_json.containsKey("name")) { | 2608 if (_json.containsKey("name")) { |
2604 name = _json["name"]; | 2609 name = _json["name"]; |
2605 } | 2610 } |
2606 if (_json.containsKey("subnetworkName")) { | 2611 if (_json.containsKey("subnetworkName")) { |
2607 subnetworkName = _json["subnetworkName"]; | 2612 subnetworkName = _json["subnetworkName"]; |
2608 } | 2613 } |
2609 } | 2614 } |
2610 | 2615 |
2611 core.Map toJson() { | 2616 core.Map<core.String, core.Object> toJson() { |
2612 var _json = new core.Map(); | 2617 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2613 if (forwardedPorts != null) { | 2618 if (forwardedPorts != null) { |
2614 _json["forwardedPorts"] = forwardedPorts; | 2619 _json["forwardedPorts"] = forwardedPorts; |
2615 } | 2620 } |
2616 if (instanceTag != null) { | 2621 if (instanceTag != null) { |
2617 _json["instanceTag"] = instanceTag; | 2622 _json["instanceTag"] = instanceTag; |
2618 } | 2623 } |
2619 if (name != null) { | 2624 if (name != null) { |
2620 _json["name"] = name; | 2625 _json["name"] = name; |
2621 } | 2626 } |
2622 if (subnetworkName != null) { | 2627 if (subnetworkName != null) { |
(...skipping 24 matching lines...) Expand all Loading... |
2647 targetReceivedPacketsPerSec = _json["targetReceivedPacketsPerSec"]; | 2652 targetReceivedPacketsPerSec = _json["targetReceivedPacketsPerSec"]; |
2648 } | 2653 } |
2649 if (_json.containsKey("targetSentBytesPerSec")) { | 2654 if (_json.containsKey("targetSentBytesPerSec")) { |
2650 targetSentBytesPerSec = _json["targetSentBytesPerSec"]; | 2655 targetSentBytesPerSec = _json["targetSentBytesPerSec"]; |
2651 } | 2656 } |
2652 if (_json.containsKey("targetSentPacketsPerSec")) { | 2657 if (_json.containsKey("targetSentPacketsPerSec")) { |
2653 targetSentPacketsPerSec = _json["targetSentPacketsPerSec"]; | 2658 targetSentPacketsPerSec = _json["targetSentPacketsPerSec"]; |
2654 } | 2659 } |
2655 } | 2660 } |
2656 | 2661 |
2657 core.Map toJson() { | 2662 core.Map<core.String, core.Object> toJson() { |
2658 var _json = new core.Map(); | 2663 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2659 if (targetReceivedBytesPerSec != null) { | 2664 if (targetReceivedBytesPerSec != null) { |
2660 _json["targetReceivedBytesPerSec"] = targetReceivedBytesPerSec; | 2665 _json["targetReceivedBytesPerSec"] = targetReceivedBytesPerSec; |
2661 } | 2666 } |
2662 if (targetReceivedPacketsPerSec != null) { | 2667 if (targetReceivedPacketsPerSec != null) { |
2663 _json["targetReceivedPacketsPerSec"] = targetReceivedPacketsPerSec; | 2668 _json["targetReceivedPacketsPerSec"] = targetReceivedPacketsPerSec; |
2664 } | 2669 } |
2665 if (targetSentBytesPerSec != null) { | 2670 if (targetSentBytesPerSec != null) { |
2666 _json["targetSentBytesPerSec"] = targetSentBytesPerSec; | 2671 _json["targetSentBytesPerSec"] = targetSentBytesPerSec; |
2667 } | 2672 } |
2668 if (targetSentPacketsPerSec != null) { | 2673 if (targetSentPacketsPerSec != null) { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2728 metadata = _json["metadata"]; | 2733 metadata = _json["metadata"]; |
2729 } | 2734 } |
2730 if (_json.containsKey("name")) { | 2735 if (_json.containsKey("name")) { |
2731 name = _json["name"]; | 2736 name = _json["name"]; |
2732 } | 2737 } |
2733 if (_json.containsKey("response")) { | 2738 if (_json.containsKey("response")) { |
2734 response = _json["response"]; | 2739 response = _json["response"]; |
2735 } | 2740 } |
2736 } | 2741 } |
2737 | 2742 |
2738 core.Map toJson() { | 2743 core.Map<core.String, core.Object> toJson() { |
2739 var _json = new core.Map(); | 2744 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2740 if (done != null) { | 2745 if (done != null) { |
2741 _json["done"] = done; | 2746 _json["done"] = done; |
2742 } | 2747 } |
2743 if (error != null) { | 2748 if (error != null) { |
2744 _json["error"] = (error).toJson(); | 2749 _json["error"] = (error).toJson(); |
2745 } | 2750 } |
2746 if (metadata != null) { | 2751 if (metadata != null) { |
2747 _json["metadata"] = metadata; | 2752 _json["metadata"] = metadata; |
2748 } | 2753 } |
2749 if (name != null) { | 2754 if (name != null) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2796 operationType = _json["operationType"]; | 2801 operationType = _json["operationType"]; |
2797 } | 2802 } |
2798 if (_json.containsKey("target")) { | 2803 if (_json.containsKey("target")) { |
2799 target = _json["target"]; | 2804 target = _json["target"]; |
2800 } | 2805 } |
2801 if (_json.containsKey("user")) { | 2806 if (_json.containsKey("user")) { |
2802 user = _json["user"]; | 2807 user = _json["user"]; |
2803 } | 2808 } |
2804 } | 2809 } |
2805 | 2810 |
2806 core.Map toJson() { | 2811 core.Map<core.String, core.Object> toJson() { |
2807 var _json = new core.Map(); | 2812 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2808 if (endTime != null) { | 2813 if (endTime != null) { |
2809 _json["endTime"] = endTime; | 2814 _json["endTime"] = endTime; |
2810 } | 2815 } |
2811 if (insertTime != null) { | 2816 if (insertTime != null) { |
2812 _json["insertTime"] = insertTime; | 2817 _json["insertTime"] = insertTime; |
2813 } | 2818 } |
2814 if (method != null) { | 2819 if (method != null) { |
2815 _json["method"] = method; | 2820 _json["method"] = method; |
2816 } | 2821 } |
2817 if (operationType != null) { | 2822 if (operationType != null) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2859 method = _json["method"]; | 2864 method = _json["method"]; |
2860 } | 2865 } |
2861 if (_json.containsKey("target")) { | 2866 if (_json.containsKey("target")) { |
2862 target = _json["target"]; | 2867 target = _json["target"]; |
2863 } | 2868 } |
2864 if (_json.containsKey("user")) { | 2869 if (_json.containsKey("user")) { |
2865 user = _json["user"]; | 2870 user = _json["user"]; |
2866 } | 2871 } |
2867 } | 2872 } |
2868 | 2873 |
2869 core.Map toJson() { | 2874 core.Map<core.String, core.Object> toJson() { |
2870 var _json = new core.Map(); | 2875 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2871 if (endTime != null) { | 2876 if (endTime != null) { |
2872 _json["endTime"] = endTime; | 2877 _json["endTime"] = endTime; |
2873 } | 2878 } |
2874 if (insertTime != null) { | 2879 if (insertTime != null) { |
2875 _json["insertTime"] = insertTime; | 2880 _json["insertTime"] = insertTime; |
2876 } | 2881 } |
2877 if (method != null) { | 2882 if (method != null) { |
2878 _json["method"] = method; | 2883 _json["method"] = method; |
2879 } | 2884 } |
2880 if (target != null) { | 2885 if (target != null) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2932 target = _json["target"]; | 2937 target = _json["target"]; |
2933 } | 2938 } |
2934 if (_json.containsKey("user")) { | 2939 if (_json.containsKey("user")) { |
2935 user = _json["user"]; | 2940 user = _json["user"]; |
2936 } | 2941 } |
2937 if (_json.containsKey("warning")) { | 2942 if (_json.containsKey("warning")) { |
2938 warning = _json["warning"]; | 2943 warning = _json["warning"]; |
2939 } | 2944 } |
2940 } | 2945 } |
2941 | 2946 |
2942 core.Map toJson() { | 2947 core.Map<core.String, core.Object> toJson() { |
2943 var _json = new core.Map(); | 2948 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2944 if (endTime != null) { | 2949 if (endTime != null) { |
2945 _json["endTime"] = endTime; | 2950 _json["endTime"] = endTime; |
2946 } | 2951 } |
| 2952 if (ephemeralMessage != null) { |
| 2953 _json["ephemeralMessage"] = ephemeralMessage; |
| 2954 } |
| 2955 if (insertTime != null) { |
| 2956 _json["insertTime"] = insertTime; |
| 2957 } |
| 2958 if (method != null) { |
| 2959 _json["method"] = method; |
| 2960 } |
| 2961 if (target != null) { |
| 2962 _json["target"] = target; |
| 2963 } |
| 2964 if (user != null) { |
| 2965 _json["user"] = user; |
| 2966 } |
| 2967 if (warning != null) { |
| 2968 _json["warning"] = warning; |
| 2969 } |
| 2970 return _json; |
| 2971 } |
| 2972 } |
| 2973 |
| 2974 /** Metadata for the given google.longrunning.Operation. */ |
| 2975 class OperationMetadataV1Alpha { |
| 2976 /** Time that this operation completed.@OutputOnly */ |
| 2977 core.String endTime; |
| 2978 /** |
| 2979 * Ephemeral message that may change every time the operation is polled. |
| 2980 * @OutputOnly |
| 2981 */ |
| 2982 core.String ephemeralMessage; |
| 2983 /** Time that this operation was created.@OutputOnly */ |
| 2984 core.String insertTime; |
| 2985 /** |
| 2986 * API method that initiated this operation. Example: |
| 2987 * google.appengine.v1alpha.Versions.CreateVersion.@OutputOnly |
| 2988 */ |
| 2989 core.String method; |
| 2990 /** |
| 2991 * Name of the resource that this operation is acting on. Example: |
| 2992 * apps/myapp/services/default.@OutputOnly |
| 2993 */ |
| 2994 core.String target; |
| 2995 /** User who requested this operation.@OutputOnly */ |
| 2996 core.String user; |
| 2997 /** Durable messages that persist on every operation poll. @OutputOnly */ |
| 2998 core.List<core.String> warning; |
| 2999 |
| 3000 OperationMetadataV1Alpha(); |
| 3001 |
| 3002 OperationMetadataV1Alpha.fromJson(core.Map _json) { |
| 3003 if (_json.containsKey("endTime")) { |
| 3004 endTime = _json["endTime"]; |
| 3005 } |
| 3006 if (_json.containsKey("ephemeralMessage")) { |
| 3007 ephemeralMessage = _json["ephemeralMessage"]; |
| 3008 } |
| 3009 if (_json.containsKey("insertTime")) { |
| 3010 insertTime = _json["insertTime"]; |
| 3011 } |
| 3012 if (_json.containsKey("method")) { |
| 3013 method = _json["method"]; |
| 3014 } |
| 3015 if (_json.containsKey("target")) { |
| 3016 target = _json["target"]; |
| 3017 } |
| 3018 if (_json.containsKey("user")) { |
| 3019 user = _json["user"]; |
| 3020 } |
| 3021 if (_json.containsKey("warning")) { |
| 3022 warning = _json["warning"]; |
| 3023 } |
| 3024 } |
| 3025 |
| 3026 core.Map<core.String, core.Object> toJson() { |
| 3027 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3028 if (endTime != null) { |
| 3029 _json["endTime"] = endTime; |
| 3030 } |
2947 if (ephemeralMessage != null) { | 3031 if (ephemeralMessage != null) { |
2948 _json["ephemeralMessage"] = ephemeralMessage; | 3032 _json["ephemeralMessage"] = ephemeralMessage; |
2949 } | 3033 } |
2950 if (insertTime != null) { | 3034 if (insertTime != null) { |
2951 _json["insertTime"] = insertTime; | 3035 _json["insertTime"] = insertTime; |
2952 } | 3036 } |
2953 if (method != null) { | 3037 if (method != null) { |
2954 _json["method"] = method; | 3038 _json["method"] = method; |
2955 } | 3039 } |
2956 if (target != null) { | 3040 if (target != null) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3011 target = _json["target"]; | 3095 target = _json["target"]; |
3012 } | 3096 } |
3013 if (_json.containsKey("user")) { | 3097 if (_json.containsKey("user")) { |
3014 user = _json["user"]; | 3098 user = _json["user"]; |
3015 } | 3099 } |
3016 if (_json.containsKey("warning")) { | 3100 if (_json.containsKey("warning")) { |
3017 warning = _json["warning"]; | 3101 warning = _json["warning"]; |
3018 } | 3102 } |
3019 } | 3103 } |
3020 | 3104 |
3021 core.Map toJson() { | 3105 core.Map<core.String, core.Object> toJson() { |
3022 var _json = new core.Map(); | 3106 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3023 if (endTime != null) { | 3107 if (endTime != null) { |
3024 _json["endTime"] = endTime; | 3108 _json["endTime"] = endTime; |
3025 } | 3109 } |
3026 if (ephemeralMessage != null) { | 3110 if (ephemeralMessage != null) { |
3027 _json["ephemeralMessage"] = ephemeralMessage; | 3111 _json["ephemeralMessage"] = ephemeralMessage; |
3028 } | 3112 } |
3029 if (insertTime != null) { | 3113 if (insertTime != null) { |
3030 _json["insertTime"] = insertTime; | 3114 _json["insertTime"] = insertTime; |
3031 } | 3115 } |
3032 if (method != null) { | 3116 if (method != null) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3077 method = _json["method"]; | 3161 method = _json["method"]; |
3078 } | 3162 } |
3079 if (_json.containsKey("target")) { | 3163 if (_json.containsKey("target")) { |
3080 target = _json["target"]; | 3164 target = _json["target"]; |
3081 } | 3165 } |
3082 if (_json.containsKey("user")) { | 3166 if (_json.containsKey("user")) { |
3083 user = _json["user"]; | 3167 user = _json["user"]; |
3084 } | 3168 } |
3085 } | 3169 } |
3086 | 3170 |
3087 core.Map toJson() { | 3171 core.Map<core.String, core.Object> toJson() { |
3088 var _json = new core.Map(); | 3172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3089 if (endTime != null) { | 3173 if (endTime != null) { |
3090 _json["endTime"] = endTime; | 3174 _json["endTime"] = endTime; |
3091 } | 3175 } |
3092 if (insertTime != null) { | 3176 if (insertTime != null) { |
3093 _json["insertTime"] = insertTime; | 3177 _json["insertTime"] = insertTime; |
3094 } | 3178 } |
3095 if (method != null) { | 3179 if (method != null) { |
3096 _json["method"] = method; | 3180 _json["method"] = method; |
3097 } | 3181 } |
3098 if (target != null) { | 3182 if (target != null) { |
(...skipping 17 matching lines...) Expand all Loading... |
3116 | 3200 |
3117 RequestUtilization.fromJson(core.Map _json) { | 3201 RequestUtilization.fromJson(core.Map _json) { |
3118 if (_json.containsKey("targetConcurrentRequests")) { | 3202 if (_json.containsKey("targetConcurrentRequests")) { |
3119 targetConcurrentRequests = _json["targetConcurrentRequests"]; | 3203 targetConcurrentRequests = _json["targetConcurrentRequests"]; |
3120 } | 3204 } |
3121 if (_json.containsKey("targetRequestCountPerSec")) { | 3205 if (_json.containsKey("targetRequestCountPerSec")) { |
3122 targetRequestCountPerSec = _json["targetRequestCountPerSec"]; | 3206 targetRequestCountPerSec = _json["targetRequestCountPerSec"]; |
3123 } | 3207 } |
3124 } | 3208 } |
3125 | 3209 |
3126 core.Map toJson() { | 3210 core.Map<core.String, core.Object> toJson() { |
3127 var _json = new core.Map(); | 3211 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3128 if (targetConcurrentRequests != null) { | 3212 if (targetConcurrentRequests != null) { |
3129 _json["targetConcurrentRequests"] = targetConcurrentRequests; | 3213 _json["targetConcurrentRequests"] = targetConcurrentRequests; |
3130 } | 3214 } |
3131 if (targetRequestCountPerSec != null) { | 3215 if (targetRequestCountPerSec != null) { |
3132 _json["targetRequestCountPerSec"] = targetRequestCountPerSec; | 3216 _json["targetRequestCountPerSec"] = targetRequestCountPerSec; |
3133 } | 3217 } |
3134 return _json; | 3218 return _json; |
3135 } | 3219 } |
3136 } | 3220 } |
3137 | 3221 |
(...skipping 18 matching lines...) Expand all Loading... |
3156 diskGb = _json["diskGb"]; | 3240 diskGb = _json["diskGb"]; |
3157 } | 3241 } |
3158 if (_json.containsKey("memoryGb")) { | 3242 if (_json.containsKey("memoryGb")) { |
3159 memoryGb = _json["memoryGb"]; | 3243 memoryGb = _json["memoryGb"]; |
3160 } | 3244 } |
3161 if (_json.containsKey("volumes")) { | 3245 if (_json.containsKey("volumes")) { |
3162 volumes = _json["volumes"].map((value) => new Volume.fromJson(value)).toLi
st(); | 3246 volumes = _json["volumes"].map((value) => new Volume.fromJson(value)).toLi
st(); |
3163 } | 3247 } |
3164 } | 3248 } |
3165 | 3249 |
3166 core.Map toJson() { | 3250 core.Map<core.String, core.Object> toJson() { |
3167 var _json = new core.Map(); | 3251 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3168 if (cpu != null) { | 3252 if (cpu != null) { |
3169 _json["cpu"] = cpu; | 3253 _json["cpu"] = cpu; |
3170 } | 3254 } |
3171 if (diskGb != null) { | 3255 if (diskGb != null) { |
3172 _json["diskGb"] = diskGb; | 3256 _json["diskGb"] = diskGb; |
3173 } | 3257 } |
3174 if (memoryGb != null) { | 3258 if (memoryGb != null) { |
3175 _json["memoryGb"] = memoryGb; | 3259 _json["memoryGb"] = memoryGb; |
3176 } | 3260 } |
3177 if (volumes != null) { | 3261 if (volumes != null) { |
3178 _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); | 3262 _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); |
3179 } | 3263 } |
3180 return _json; | 3264 return _json; |
3181 } | 3265 } |
3182 } | 3266 } |
3183 | 3267 |
3184 /** Executes a script to handle the request that matches the URL pattern. */ | 3268 /** Executes a script to handle the request that matches the URL pattern. */ |
3185 class ScriptHandler { | 3269 class ScriptHandler { |
3186 /** Path to the script from the application root directory. */ | 3270 /** Path to the script from the application root directory. */ |
3187 core.String scriptPath; | 3271 core.String scriptPath; |
3188 | 3272 |
3189 ScriptHandler(); | 3273 ScriptHandler(); |
3190 | 3274 |
3191 ScriptHandler.fromJson(core.Map _json) { | 3275 ScriptHandler.fromJson(core.Map _json) { |
3192 if (_json.containsKey("scriptPath")) { | 3276 if (_json.containsKey("scriptPath")) { |
3193 scriptPath = _json["scriptPath"]; | 3277 scriptPath = _json["scriptPath"]; |
3194 } | 3278 } |
3195 } | 3279 } |
3196 | 3280 |
3197 core.Map toJson() { | 3281 core.Map<core.String, core.Object> toJson() { |
3198 var _json = new core.Map(); | 3282 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3199 if (scriptPath != null) { | 3283 if (scriptPath != null) { |
3200 _json["scriptPath"] = scriptPath; | 3284 _json["scriptPath"] = scriptPath; |
3201 } | 3285 } |
3202 return _json; | 3286 return _json; |
3203 } | 3287 } |
3204 } | 3288 } |
3205 | 3289 |
3206 /** | 3290 /** |
3207 * A Service resource is a logical component of an application that can share | 3291 * A Service resource is a logical component of an application that can share |
3208 * state and communicate in a secure fashion with other services. For example, | 3292 * state and communicate in a secure fashion with other services. For example, |
(...skipping 26 matching lines...) Expand all Loading... |
3235 id = _json["id"]; | 3319 id = _json["id"]; |
3236 } | 3320 } |
3237 if (_json.containsKey("name")) { | 3321 if (_json.containsKey("name")) { |
3238 name = _json["name"]; | 3322 name = _json["name"]; |
3239 } | 3323 } |
3240 if (_json.containsKey("split")) { | 3324 if (_json.containsKey("split")) { |
3241 split = new TrafficSplit.fromJson(_json["split"]); | 3325 split = new TrafficSplit.fromJson(_json["split"]); |
3242 } | 3326 } |
3243 } | 3327 } |
3244 | 3328 |
3245 core.Map toJson() { | 3329 core.Map<core.String, core.Object> toJson() { |
3246 var _json = new core.Map(); | 3330 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3247 if (id != null) { | 3331 if (id != null) { |
3248 _json["id"] = id; | 3332 _json["id"] = id; |
3249 } | 3333 } |
3250 if (name != null) { | 3334 if (name != null) { |
3251 _json["name"] = name; | 3335 _json["name"] = name; |
3252 } | 3336 } |
3253 if (split != null) { | 3337 if (split != null) { |
3254 _json["split"] = (split).toJson(); | 3338 _json["split"] = (split).toJson(); |
3255 } | 3339 } |
3256 return _json; | 3340 return _json; |
(...skipping 21 matching lines...) Expand all Loading... |
3278 | 3362 |
3279 SourceReference.fromJson(core.Map _json) { | 3363 SourceReference.fromJson(core.Map _json) { |
3280 if (_json.containsKey("repository")) { | 3364 if (_json.containsKey("repository")) { |
3281 repository = _json["repository"]; | 3365 repository = _json["repository"]; |
3282 } | 3366 } |
3283 if (_json.containsKey("revisionId")) { | 3367 if (_json.containsKey("revisionId")) { |
3284 revisionId = _json["revisionId"]; | 3368 revisionId = _json["revisionId"]; |
3285 } | 3369 } |
3286 } | 3370 } |
3287 | 3371 |
3288 core.Map toJson() { | 3372 core.Map<core.String, core.Object> toJson() { |
3289 var _json = new core.Map(); | 3373 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3290 if (repository != null) { | 3374 if (repository != null) { |
3291 _json["repository"] = repository; | 3375 _json["repository"] = repository; |
3292 } | 3376 } |
3293 if (revisionId != null) { | 3377 if (revisionId != null) { |
3294 _json["revisionId"] = revisionId; | 3378 _json["revisionId"] = revisionId; |
3295 } | 3379 } |
3296 return _json; | 3380 return _json; |
3297 } | 3381 } |
3298 } | 3382 } |
3299 | 3383 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3358 path = _json["path"]; | 3442 path = _json["path"]; |
3359 } | 3443 } |
3360 if (_json.containsKey("requireMatchingFile")) { | 3444 if (_json.containsKey("requireMatchingFile")) { |
3361 requireMatchingFile = _json["requireMatchingFile"]; | 3445 requireMatchingFile = _json["requireMatchingFile"]; |
3362 } | 3446 } |
3363 if (_json.containsKey("uploadPathRegex")) { | 3447 if (_json.containsKey("uploadPathRegex")) { |
3364 uploadPathRegex = _json["uploadPathRegex"]; | 3448 uploadPathRegex = _json["uploadPathRegex"]; |
3365 } | 3449 } |
3366 } | 3450 } |
3367 | 3451 |
3368 core.Map toJson() { | 3452 core.Map<core.String, core.Object> toJson() { |
3369 var _json = new core.Map(); | 3453 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3370 if (applicationReadable != null) { | 3454 if (applicationReadable != null) { |
3371 _json["applicationReadable"] = applicationReadable; | 3455 _json["applicationReadable"] = applicationReadable; |
3372 } | 3456 } |
3373 if (expiration != null) { | 3457 if (expiration != null) { |
3374 _json["expiration"] = expiration; | 3458 _json["expiration"] = expiration; |
3375 } | 3459 } |
3376 if (httpHeaders != null) { | 3460 if (httpHeaders != null) { |
3377 _json["httpHeaders"] = httpHeaders; | 3461 _json["httpHeaders"] = httpHeaders; |
3378 } | 3462 } |
3379 if (mimeType != null) { | 3463 if (mimeType != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
3398 * gRPC (https://github.com/grpc). The error model is designed to be: | 3482 * gRPC (https://github.com/grpc). The error model is designed to be: |
3399 * Simple to use and understand for most users | 3483 * Simple to use and understand for most users |
3400 * Flexible enough to meet unexpected needsOverviewThe Status message contains | 3484 * Flexible enough to meet unexpected needsOverviewThe Status message contains |
3401 * three pieces of data: error code, error message, and error details. The error | 3485 * three pieces of data: error code, error message, and error details. The error |
3402 * code should be an enum value of google.rpc.Code, but it may accept additional | 3486 * code should be an enum value of google.rpc.Code, but it may accept additional |
3403 * error codes if needed. The error message should be a developer-facing English | 3487 * error codes if needed. The error message should be a developer-facing English |
3404 * message that helps developers understand and resolve the error. If a | 3488 * message that helps developers understand and resolve the error. If a |
3405 * localized user-facing error message is needed, put the localized message in | 3489 * localized user-facing error message is needed, put the localized message in |
3406 * the error details or localize it in the client. The optional error details | 3490 * the error details or localize it in the client. The optional error details |
3407 * may contain arbitrary information about the error. There is a predefined set | 3491 * may contain arbitrary information about the error. There is a predefined set |
3408 * of error detail types in the package google.rpc which can be used for common | 3492 * of error detail types in the package google.rpc that can be used for common |
3409 * error conditions.Language mappingThe Status message is the logical | 3493 * error conditions.Language mappingThe Status message is the logical |
3410 * representation of the error model, but it is not necessarily the actual wire | 3494 * representation of the error model, but it is not necessarily the actual wire |
3411 * format. When the Status message is exposed in different client libraries and | 3495 * format. When the Status message is exposed in different client libraries and |
3412 * different wire protocols, it can be mapped differently. For example, it will | 3496 * different wire protocols, it can be mapped differently. For example, it will |
3413 * likely be mapped to some exceptions in Java, but more likely mapped to some | 3497 * likely be mapped to some exceptions in Java, but more likely mapped to some |
3414 * error codes in C.Other usesThe error model and the Status message can be used | 3498 * error codes in C.Other usesThe error model and the Status message can be used |
3415 * in a variety of environments, either with or without APIs, to provide a | 3499 * in a variety of environments, either with or without APIs, to provide a |
3416 * consistent developer experience across different environments.Example uses of | 3500 * consistent developer experience across different environments.Example uses of |
3417 * this error model include: | 3501 * this error model include: |
3418 * Partial errors. If a service needs to return partial errors to the client, it | 3502 * Partial errors. If a service needs to return partial errors to the client, it |
3419 * may embed the Status in the normal response to indicate the partial errors. | 3503 * may embed the Status in the normal response to indicate the partial errors. |
3420 * Workflow errors. A typical workflow has multiple steps. Each step may have a | 3504 * Workflow errors. A typical workflow has multiple steps. Each step may have a |
3421 * Status message for error reporting purpose. | 3505 * Status message for error reporting. |
3422 * Batch operations. If a client uses batch request and batch response, the | 3506 * Batch operations. If a client uses batch request and batch response, the |
3423 * Status message should be used directly inside batch response, one for each | 3507 * Status message should be used directly inside batch response, one for each |
3424 * error sub-response. | 3508 * error sub-response. |
3425 * Asynchronous operations. If an API call embeds asynchronous operation results | 3509 * Asynchronous operations. If an API call embeds asynchronous operation results |
3426 * in its response, the status of those operations should be represented | 3510 * in its response, the status of those operations should be represented |
3427 * directly using the Status message. | 3511 * directly using the Status message. |
3428 * Logging. If some API errors are stored in logs, the message Status could be | 3512 * Logging. If some API errors are stored in logs, the message Status could be |
3429 * used directly after any stripping needed for security/privacy reasons. | 3513 * used directly after any stripping needed for security/privacy reasons. |
3430 */ | 3514 */ |
3431 class Status { | 3515 class Status { |
(...skipping 21 matching lines...) Expand all Loading... |
3453 code = _json["code"]; | 3537 code = _json["code"]; |
3454 } | 3538 } |
3455 if (_json.containsKey("details")) { | 3539 if (_json.containsKey("details")) { |
3456 details = _json["details"]; | 3540 details = _json["details"]; |
3457 } | 3541 } |
3458 if (_json.containsKey("message")) { | 3542 if (_json.containsKey("message")) { |
3459 message = _json["message"]; | 3543 message = _json["message"]; |
3460 } | 3544 } |
3461 } | 3545 } |
3462 | 3546 |
3463 core.Map toJson() { | 3547 core.Map<core.String, core.Object> toJson() { |
3464 var _json = new core.Map(); | 3548 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3465 if (code != null) { | 3549 if (code != null) { |
3466 _json["code"] = code; | 3550 _json["code"] = code; |
3467 } | 3551 } |
3468 if (details != null) { | 3552 if (details != null) { |
3469 _json["details"] = details; | 3553 _json["details"] = details; |
3470 } | 3554 } |
3471 if (message != null) { | 3555 if (message != null) { |
3472 _json["message"] = message; | 3556 _json["message"] = message; |
3473 } | 3557 } |
3474 return _json; | 3558 return _json; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3508 | 3592 |
3509 TrafficSplit.fromJson(core.Map _json) { | 3593 TrafficSplit.fromJson(core.Map _json) { |
3510 if (_json.containsKey("allocations")) { | 3594 if (_json.containsKey("allocations")) { |
3511 allocations = _json["allocations"]; | 3595 allocations = _json["allocations"]; |
3512 } | 3596 } |
3513 if (_json.containsKey("shardBy")) { | 3597 if (_json.containsKey("shardBy")) { |
3514 shardBy = _json["shardBy"]; | 3598 shardBy = _json["shardBy"]; |
3515 } | 3599 } |
3516 } | 3600 } |
3517 | 3601 |
3518 core.Map toJson() { | 3602 core.Map<core.String, core.Object> toJson() { |
3519 var _json = new core.Map(); | 3603 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3520 if (allocations != null) { | 3604 if (allocations != null) { |
3521 _json["allocations"] = allocations; | 3605 _json["allocations"] = allocations; |
3522 } | 3606 } |
3523 if (shardBy != null) { | 3607 if (shardBy != null) { |
3524 _json["shardBy"] = shardBy; | 3608 _json["shardBy"] = shardBy; |
3525 } | 3609 } |
3526 return _json; | 3610 return _json; |
3527 } | 3611 } |
3528 } | 3612 } |
3529 | 3613 |
(...skipping 23 matching lines...) Expand all Loading... |
3553 domain = _json["domain"]; | 3637 domain = _json["domain"]; |
3554 } | 3638 } |
3555 if (_json.containsKey("path")) { | 3639 if (_json.containsKey("path")) { |
3556 path = _json["path"]; | 3640 path = _json["path"]; |
3557 } | 3641 } |
3558 if (_json.containsKey("service")) { | 3642 if (_json.containsKey("service")) { |
3559 service = _json["service"]; | 3643 service = _json["service"]; |
3560 } | 3644 } |
3561 } | 3645 } |
3562 | 3646 |
3563 core.Map toJson() { | 3647 core.Map<core.String, core.Object> toJson() { |
3564 var _json = new core.Map(); | 3648 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3565 if (domain != null) { | 3649 if (domain != null) { |
3566 _json["domain"] = domain; | 3650 _json["domain"] = domain; |
3567 } | 3651 } |
3568 if (path != null) { | 3652 if (path != null) { |
3569 _json["path"] = path; | 3653 _json["path"] = path; |
3570 } | 3654 } |
3571 if (service != null) { | 3655 if (service != null) { |
3572 _json["service"] = service; | 3656 _json["service"] = service; |
3573 } | 3657 } |
3574 return _json; | 3658 return _json; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3672 securityLevel = _json["securityLevel"]; | 3756 securityLevel = _json["securityLevel"]; |
3673 } | 3757 } |
3674 if (_json.containsKey("staticFiles")) { | 3758 if (_json.containsKey("staticFiles")) { |
3675 staticFiles = new StaticFilesHandler.fromJson(_json["staticFiles"]); | 3759 staticFiles = new StaticFilesHandler.fromJson(_json["staticFiles"]); |
3676 } | 3760 } |
3677 if (_json.containsKey("urlRegex")) { | 3761 if (_json.containsKey("urlRegex")) { |
3678 urlRegex = _json["urlRegex"]; | 3762 urlRegex = _json["urlRegex"]; |
3679 } | 3763 } |
3680 } | 3764 } |
3681 | 3765 |
3682 core.Map toJson() { | 3766 core.Map<core.String, core.Object> toJson() { |
3683 var _json = new core.Map(); | 3767 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3684 if (apiEndpoint != null) { | 3768 if (apiEndpoint != null) { |
3685 _json["apiEndpoint"] = (apiEndpoint).toJson(); | 3769 _json["apiEndpoint"] = (apiEndpoint).toJson(); |
3686 } | 3770 } |
3687 if (authFailAction != null) { | 3771 if (authFailAction != null) { |
3688 _json["authFailAction"] = authFailAction; | 3772 _json["authFailAction"] = authFailAction; |
3689 } | 3773 } |
3690 if (login != null) { | 3774 if (login != null) { |
3691 _json["login"] = login; | 3775 _json["login"] = login; |
3692 } | 3776 } |
3693 if (redirectHttpResponseCode != null) { | 3777 if (redirectHttpResponseCode != null) { |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3830 * Files that match this pattern will not be built into this version. Only | 3914 * Files that match this pattern will not be built into this version. Only |
3831 * applicable for Go runtimes.Only returned in GET requests if view=FULL is | 3915 * applicable for Go runtimes.Only returned in GET requests if view=FULL is |
3832 * set. | 3916 * set. |
3833 */ | 3917 */ |
3834 core.String nobuildFilesRegex; | 3918 core.String nobuildFilesRegex; |
3835 /** Machine resources for this version. Only applicable for VM runtimes. */ | 3919 /** Machine resources for this version. Only applicable for VM runtimes. */ |
3836 Resources resources; | 3920 Resources resources; |
3837 /** Desired runtime. Example: python27. */ | 3921 /** Desired runtime. Example: python27. */ |
3838 core.String runtime; | 3922 core.String runtime; |
3839 /** | 3923 /** |
| 3924 * The version of the API in the given runtime environment. Please see the |
| 3925 * app.yaml reference for valid values at |
| 3926 * https://cloud.google.com/appengine/docs/standard/<language>/config/appref |
| 3927 */ |
| 3928 core.String runtimeApiVersion; |
| 3929 /** |
3840 * Current serving status of this version. Only the versions with a SERVING | 3930 * Current serving status of this version. Only the versions with a SERVING |
3841 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an | 3931 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an |
3842 * invalid value. Defaults to SERVING. | 3932 * invalid value. Defaults to SERVING. |
3843 * Possible string values are: | 3933 * Possible string values are: |
3844 * - "SERVING_STATUS_UNSPECIFIED" : Not specified. | 3934 * - "SERVING_STATUS_UNSPECIFIED" : Not specified. |
3845 * - "SERVING" : Currently serving. Instances are created according to the | 3935 * - "SERVING" : Currently serving. Instances are created according to the |
3846 * scaling settings of the version. | 3936 * scaling settings of the version. |
3847 * - "STOPPED" : Disabled from serving. No instances will be created and the | 3937 * - "STOPPED" : Disabled from serving. No instances will be created and the |
3848 * scaling settings are ignored until the state of the version changes to | 3938 * scaling settings are ignored until the state of the version changes to |
3849 * SERVING. | 3939 * SERVING. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3925 } | 4015 } |
3926 if (_json.containsKey("nobuildFilesRegex")) { | 4016 if (_json.containsKey("nobuildFilesRegex")) { |
3927 nobuildFilesRegex = _json["nobuildFilesRegex"]; | 4017 nobuildFilesRegex = _json["nobuildFilesRegex"]; |
3928 } | 4018 } |
3929 if (_json.containsKey("resources")) { | 4019 if (_json.containsKey("resources")) { |
3930 resources = new Resources.fromJson(_json["resources"]); | 4020 resources = new Resources.fromJson(_json["resources"]); |
3931 } | 4021 } |
3932 if (_json.containsKey("runtime")) { | 4022 if (_json.containsKey("runtime")) { |
3933 runtime = _json["runtime"]; | 4023 runtime = _json["runtime"]; |
3934 } | 4024 } |
| 4025 if (_json.containsKey("runtimeApiVersion")) { |
| 4026 runtimeApiVersion = _json["runtimeApiVersion"]; |
| 4027 } |
3935 if (_json.containsKey("servingStatus")) { | 4028 if (_json.containsKey("servingStatus")) { |
3936 servingStatus = _json["servingStatus"]; | 4029 servingStatus = _json["servingStatus"]; |
3937 } | 4030 } |
3938 if (_json.containsKey("threadsafe")) { | 4031 if (_json.containsKey("threadsafe")) { |
3939 threadsafe = _json["threadsafe"]; | 4032 threadsafe = _json["threadsafe"]; |
3940 } | 4033 } |
3941 if (_json.containsKey("vm")) { | 4034 if (_json.containsKey("vm")) { |
3942 vm = _json["vm"]; | 4035 vm = _json["vm"]; |
3943 } | 4036 } |
3944 } | 4037 } |
3945 | 4038 |
3946 core.Map toJson() { | 4039 core.Map<core.String, core.Object> toJson() { |
3947 var _json = new core.Map(); | 4040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3948 if (apiConfig != null) { | 4041 if (apiConfig != null) { |
3949 _json["apiConfig"] = (apiConfig).toJson(); | 4042 _json["apiConfig"] = (apiConfig).toJson(); |
3950 } | 4043 } |
3951 if (automaticScaling != null) { | 4044 if (automaticScaling != null) { |
3952 _json["automaticScaling"] = (automaticScaling).toJson(); | 4045 _json["automaticScaling"] = (automaticScaling).toJson(); |
3953 } | 4046 } |
3954 if (basicScaling != null) { | 4047 if (basicScaling != null) { |
3955 _json["basicScaling"] = (basicScaling).toJson(); | 4048 _json["basicScaling"] = (basicScaling).toJson(); |
3956 } | 4049 } |
3957 if (betaSettings != null) { | 4050 if (betaSettings != null) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4013 } | 4106 } |
4014 if (nobuildFilesRegex != null) { | 4107 if (nobuildFilesRegex != null) { |
4015 _json["nobuildFilesRegex"] = nobuildFilesRegex; | 4108 _json["nobuildFilesRegex"] = nobuildFilesRegex; |
4016 } | 4109 } |
4017 if (resources != null) { | 4110 if (resources != null) { |
4018 _json["resources"] = (resources).toJson(); | 4111 _json["resources"] = (resources).toJson(); |
4019 } | 4112 } |
4020 if (runtime != null) { | 4113 if (runtime != null) { |
4021 _json["runtime"] = runtime; | 4114 _json["runtime"] = runtime; |
4022 } | 4115 } |
| 4116 if (runtimeApiVersion != null) { |
| 4117 _json["runtimeApiVersion"] = runtimeApiVersion; |
| 4118 } |
4023 if (servingStatus != null) { | 4119 if (servingStatus != null) { |
4024 _json["servingStatus"] = servingStatus; | 4120 _json["servingStatus"] = servingStatus; |
4025 } | 4121 } |
4026 if (threadsafe != null) { | 4122 if (threadsafe != null) { |
4027 _json["threadsafe"] = threadsafe; | 4123 _json["threadsafe"] = threadsafe; |
4028 } | 4124 } |
4029 if (vm != null) { | 4125 if (vm != null) { |
4030 _json["vm"] = vm; | 4126 _json["vm"] = vm; |
4031 } | 4127 } |
4032 return _json; | 4128 return _json; |
(...skipping 18 matching lines...) Expand all Loading... |
4051 name = _json["name"]; | 4147 name = _json["name"]; |
4052 } | 4148 } |
4053 if (_json.containsKey("sizeGb")) { | 4149 if (_json.containsKey("sizeGb")) { |
4054 sizeGb = _json["sizeGb"]; | 4150 sizeGb = _json["sizeGb"]; |
4055 } | 4151 } |
4056 if (_json.containsKey("volumeType")) { | 4152 if (_json.containsKey("volumeType")) { |
4057 volumeType = _json["volumeType"]; | 4153 volumeType = _json["volumeType"]; |
4058 } | 4154 } |
4059 } | 4155 } |
4060 | 4156 |
4061 core.Map toJson() { | 4157 core.Map<core.String, core.Object> toJson() { |
4062 var _json = new core.Map(); | 4158 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4063 if (name != null) { | 4159 if (name != null) { |
4064 _json["name"] = name; | 4160 _json["name"] = name; |
4065 } | 4161 } |
4066 if (sizeGb != null) { | 4162 if (sizeGb != null) { |
4067 _json["sizeGb"] = sizeGb; | 4163 _json["sizeGb"] = sizeGb; |
4068 } | 4164 } |
4069 if (volumeType != null) { | 4165 if (volumeType != null) { |
4070 _json["volumeType"] = volumeType; | 4166 _json["volumeType"] = volumeType; |
4071 } | 4167 } |
4072 return _json; | 4168 return _json; |
4073 } | 4169 } |
4074 } | 4170 } |
OLD | NEW |