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; |
(...skipping 28 matching lines...) Expand all Loading... |
39 final commons.ApiRequester _requester; | 39 final commons.ApiRequester _requester; |
40 | 40 |
41 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); | 41 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques
ter); |
42 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); | 42 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req
uester); |
43 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); | 43 AppsServicesResourceApi get services => new AppsServicesResourceApi(_requester
); |
44 | 44 |
45 AppsResourceApi(commons.ApiRequester client) : | 45 AppsResourceApi(commons.ApiRequester client) : |
46 _requester = client; | 46 _requester = client; |
47 | 47 |
48 /** | 48 /** |
49 * Creates an App Engine application for a Google Cloud Platform project. This | 49 * Creates an App Engine application for a Google Cloud Platform project. |
50 * requires a project that excludes an App Engine application. For details | 50 * Required fields: id - The ID of the target Cloud Platform project. location |
51 * about creating a project without an application, see the Google Cloud | 51 * - The region (https://cloud.google.com/appengine/docs/locations) where you |
52 * Resource Manager create project topic | 52 * want the App Engine application located.For more information about App |
53 * (https://cloud.google.com/resource-manager/docs/creating-project). | 53 * Engine applications, see Managing Projects, Applications, and Billing |
| 54 * (https://cloud.google.com/appengine/docs/python/console/). |
54 * | 55 * |
55 * [request] - The metadata request object. | 56 * [request] - The metadata request object. |
56 * | 57 * |
57 * Request parameters: | 58 * Request parameters: |
58 * | 59 * |
59 * Completes with a [Operation]. | 60 * Completes with a [Operation]. |
60 * | 61 * |
61 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 62 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
62 * error. | 63 * error. |
63 * | 64 * |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 body: _body, | 124 body: _body, |
124 queryParams: _queryParams, | 125 queryParams: _queryParams, |
125 uploadOptions: _uploadOptions, | 126 uploadOptions: _uploadOptions, |
126 uploadMedia: _uploadMedia, | 127 uploadMedia: _uploadMedia, |
127 downloadOptions: _downloadOptions); | 128 downloadOptions: _downloadOptions); |
128 return _response.then((data) => new Application.fromJson(data)); | 129 return _response.then((data) => new Application.fromJson(data)); |
129 } | 130 } |
130 | 131 |
131 /** | 132 /** |
132 * Updates the specified Application resource. You can update the following | 133 * Updates the specified Application resource. You can update the following |
133 * fields: auth_domain | 134 * fields: auth_domain - Google authentication domain for controlling user |
134 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps#A
pplication.FIELDS.auth_domain) | 135 * access to the application. default_cookie_expiration - Cookie expiration |
135 * default_cookie_expiration | 136 * policy for the application. |
136 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps#A
pplication.FIELDS.default_cookie_expiration) | |
137 * | 137 * |
138 * [request] - The metadata request object. | 138 * [request] - The metadata request object. |
139 * | 139 * |
140 * Request parameters: | 140 * Request parameters: |
141 * | 141 * |
142 * [appsId] - Part of `name`. Name of the Application resource to update. | 142 * [appsId] - Part of `name`. Name of the Application resource to update. |
143 * Example: apps/myapp. | 143 * Example: apps/myapp. |
144 * | 144 * |
145 * [updateMask] - Standard field mask for the set of fields to be updated. | 145 * [updateMask] - Standard field mask for the set of fields to be updated. |
146 * | 146 * |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 * | 608 * |
609 * Request parameters: | 609 * Request parameters: |
610 * | 610 * |
611 * [appsId] - Part of `name`. Name of the resource to update. Example: | 611 * [appsId] - Part of `name`. Name of the resource to update. Example: |
612 * apps/myapp/services/default. | 612 * apps/myapp/services/default. |
613 * | 613 * |
614 * [servicesId] - Part of `name`. See documentation of `appsId`. | 614 * [servicesId] - Part of `name`. See documentation of `appsId`. |
615 * | 615 * |
616 * [updateMask] - Standard field mask for the set of fields to be updated. | 616 * [updateMask] - Standard field mask for the set of fields to be updated. |
617 * | 617 * |
618 * [migrateTraffic] - Set to true to gradually shift traffic from one version | 618 * [migrateTraffic] - Set to true to gradually shift traffic to one or more |
619 * to another single version. By default, traffic is shifted immediately. For | 619 * versions that you specify. By default, traffic is shifted immediately. For |
620 * gradual traffic migration, the target version must be located within | 620 * gradual traffic migration, the target versions must be located within |
621 * instances that are configured for both warmup requests | 621 * instances that are configured for both warmup requests |
622 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#inboundservicetype) | 622 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#inboundservicetype) |
623 * and automatic scaling | 623 * and automatic scaling |
624 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#automaticscaling). | 624 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices.versions#automaticscaling). |
625 * You must specify the shardBy | 625 * You must specify the shardBy |
626 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices#shardby) | 626 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.s
ervices#shardby) |
627 * field in the Service resource. Gradual traffic migration is not supported | 627 * field in the Service resource. Gradual traffic migration is not supported |
628 * in the App Engine flexible environment. For examples, see Migrating and | 628 * in the App Engine flexible environment. For examples, see Migrating and |
629 * Splitting Traffic | 629 * Splitting Traffic |
630 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). | 630 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 "GET", | 1158 "GET", |
1159 body: _body, | 1159 body: _body, |
1160 queryParams: _queryParams, | 1160 queryParams: _queryParams, |
1161 uploadOptions: _uploadOptions, | 1161 uploadOptions: _uploadOptions, |
1162 uploadMedia: _uploadMedia, | 1162 uploadMedia: _uploadMedia, |
1163 downloadOptions: _downloadOptions); | 1163 downloadOptions: _downloadOptions); |
1164 return _response.then((data) => new Instance.fromJson(data)); | 1164 return _response.then((data) => new Instance.fromJson(data)); |
1165 } | 1165 } |
1166 | 1166 |
1167 /** | 1167 /** |
1168 * Lists the instances of a version. | 1168 * Lists the instances of a version.Tip: To aggregate details about instances |
| 1169 * over time, see the Stackdriver Monitoring API |
| 1170 * (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries
/list). |
1169 * | 1171 * |
1170 * Request parameters: | 1172 * Request parameters: |
1171 * | 1173 * |
1172 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: | 1174 * [appsId] - Part of `parent`. Name of the parent Version resource. Example: |
1173 * apps/myapp/services/default/versions/v1. | 1175 * apps/myapp/services/default/versions/v1. |
1174 * | 1176 * |
1175 * [servicesId] - Part of `parent`. See documentation of `appsId`. | 1177 * [servicesId] - Part of `parent`. See documentation of `appsId`. |
1176 * | 1178 * |
1177 * [versionsId] - Part of `parent`. See documentation of `appsId`. | 1179 * [versionsId] - Part of `parent`. See documentation of `appsId`. |
1178 * | 1180 * |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1353 core.String defaultBucket; | 1355 core.String defaultBucket; |
1354 /** Cookie expiration policy for this application. */ | 1356 /** Cookie expiration policy for this application. */ |
1355 core.String defaultCookieExpiration; | 1357 core.String defaultCookieExpiration; |
1356 /** | 1358 /** |
1357 * Hostname used to reach this application, as resolved by App | 1359 * Hostname used to reach this application, as resolved by App |
1358 * Engine.@OutputOnly | 1360 * Engine.@OutputOnly |
1359 */ | 1361 */ |
1360 core.String defaultHostname; | 1362 core.String defaultHostname; |
1361 /** | 1363 /** |
1362 * HTTP path dispatch rules for requests to the application that do not | 1364 * HTTP path dispatch rules for requests to the application that do not |
1363 * explicitly target a service or version. Rules are | 1365 * explicitly target a service or version. Rules are order-dependent. Up to 20 |
1364 * order-dependent.@OutputOnly | 1366 * dispatch rules can be supported.@OutputOnly |
1365 */ | 1367 */ |
1366 core.List<UrlDispatchRule> dispatchRules; | 1368 core.List<UrlDispatchRule> dispatchRules; |
1367 /** | 1369 /** |
| 1370 * The Google Container Registry domain used for storing managed build docker |
| 1371 * images for this application. |
| 1372 */ |
| 1373 core.String gcrDomain; |
| 1374 IdentityAwareProxy iap; |
| 1375 /** |
1368 * Identifier of the Application resource. This identifier is equivalent to | 1376 * Identifier of the Application resource. This identifier is equivalent to |
1369 * the project ID of the Google Cloud Platform project where you want to | 1377 * the project ID of the Google Cloud Platform project where you want to |
1370 * deploy your application. Example: myapp. | 1378 * deploy your application. Example: myapp. |
1371 */ | 1379 */ |
1372 core.String id; | 1380 core.String id; |
1373 /** | 1381 /** |
1374 * Location from which this application will be run. Application instances | 1382 * Location from which this application will be run. Application instances |
1375 * will run out of data centers in the chosen location, which is also where | 1383 * will run out of data centers in the chosen location, which is also where |
1376 * all of the application's end user content is stored.Defaults to | 1384 * all of the application's end user content is stored.Defaults to |
1377 * us-central.Options are:us-central - Central USeurope-west - Western | 1385 * us-central.Options are:us-central - Central USeurope-west - Western |
1378 * Europeus-east1 - Eastern US | 1386 * Europeus-east1 - Eastern US |
1379 */ | 1387 */ |
1380 core.String locationId; | 1388 core.String locationId; |
1381 /** | 1389 /** |
1382 * Full path to the Application resource in the API. Example: | 1390 * Full path to the Application resource in the API. Example: |
1383 * apps/myapp.@OutputOnly | 1391 * apps/myapp.@OutputOnly |
1384 */ | 1392 */ |
1385 core.String name; | 1393 core.String name; |
| 1394 /** |
| 1395 * Serving status of this application. |
| 1396 * Possible string values are: |
| 1397 * - "UNSPECIFIED" : A UNSPECIFIED. |
| 1398 * - "SERVING" : A SERVING. |
| 1399 * - "USER_DISABLED" : A USER_DISABLED. |
| 1400 * - "SYSTEM_DISABLED" : A SYSTEM_DISABLED. |
| 1401 */ |
| 1402 core.String servingStatus; |
1386 | 1403 |
1387 Application(); | 1404 Application(); |
1388 | 1405 |
1389 Application.fromJson(core.Map _json) { | 1406 Application.fromJson(core.Map _json) { |
1390 if (_json.containsKey("authDomain")) { | 1407 if (_json.containsKey("authDomain")) { |
1391 authDomain = _json["authDomain"]; | 1408 authDomain = _json["authDomain"]; |
1392 } | 1409 } |
1393 if (_json.containsKey("codeBucket")) { | 1410 if (_json.containsKey("codeBucket")) { |
1394 codeBucket = _json["codeBucket"]; | 1411 codeBucket = _json["codeBucket"]; |
1395 } | 1412 } |
1396 if (_json.containsKey("defaultBucket")) { | 1413 if (_json.containsKey("defaultBucket")) { |
1397 defaultBucket = _json["defaultBucket"]; | 1414 defaultBucket = _json["defaultBucket"]; |
1398 } | 1415 } |
1399 if (_json.containsKey("defaultCookieExpiration")) { | 1416 if (_json.containsKey("defaultCookieExpiration")) { |
1400 defaultCookieExpiration = _json["defaultCookieExpiration"]; | 1417 defaultCookieExpiration = _json["defaultCookieExpiration"]; |
1401 } | 1418 } |
1402 if (_json.containsKey("defaultHostname")) { | 1419 if (_json.containsKey("defaultHostname")) { |
1403 defaultHostname = _json["defaultHostname"]; | 1420 defaultHostname = _json["defaultHostname"]; |
1404 } | 1421 } |
1405 if (_json.containsKey("dispatchRules")) { | 1422 if (_json.containsKey("dispatchRules")) { |
1406 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); | 1423 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); |
1407 } | 1424 } |
| 1425 if (_json.containsKey("gcrDomain")) { |
| 1426 gcrDomain = _json["gcrDomain"]; |
| 1427 } |
| 1428 if (_json.containsKey("iap")) { |
| 1429 iap = new IdentityAwareProxy.fromJson(_json["iap"]); |
| 1430 } |
1408 if (_json.containsKey("id")) { | 1431 if (_json.containsKey("id")) { |
1409 id = _json["id"]; | 1432 id = _json["id"]; |
1410 } | 1433 } |
1411 if (_json.containsKey("locationId")) { | 1434 if (_json.containsKey("locationId")) { |
1412 locationId = _json["locationId"]; | 1435 locationId = _json["locationId"]; |
1413 } | 1436 } |
1414 if (_json.containsKey("name")) { | 1437 if (_json.containsKey("name")) { |
1415 name = _json["name"]; | 1438 name = _json["name"]; |
1416 } | 1439 } |
| 1440 if (_json.containsKey("servingStatus")) { |
| 1441 servingStatus = _json["servingStatus"]; |
| 1442 } |
1417 } | 1443 } |
1418 | 1444 |
1419 core.Map toJson() { | 1445 core.Map toJson() { |
1420 var _json = new core.Map(); | 1446 var _json = new core.Map(); |
1421 if (authDomain != null) { | 1447 if (authDomain != null) { |
1422 _json["authDomain"] = authDomain; | 1448 _json["authDomain"] = authDomain; |
1423 } | 1449 } |
1424 if (codeBucket != null) { | 1450 if (codeBucket != null) { |
1425 _json["codeBucket"] = codeBucket; | 1451 _json["codeBucket"] = codeBucket; |
1426 } | 1452 } |
1427 if (defaultBucket != null) { | 1453 if (defaultBucket != null) { |
1428 _json["defaultBucket"] = defaultBucket; | 1454 _json["defaultBucket"] = defaultBucket; |
1429 } | 1455 } |
1430 if (defaultCookieExpiration != null) { | 1456 if (defaultCookieExpiration != null) { |
1431 _json["defaultCookieExpiration"] = defaultCookieExpiration; | 1457 _json["defaultCookieExpiration"] = defaultCookieExpiration; |
1432 } | 1458 } |
1433 if (defaultHostname != null) { | 1459 if (defaultHostname != null) { |
1434 _json["defaultHostname"] = defaultHostname; | 1460 _json["defaultHostname"] = defaultHostname; |
1435 } | 1461 } |
1436 if (dispatchRules != null) { | 1462 if (dispatchRules != null) { |
1437 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); | 1463 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); |
1438 } | 1464 } |
| 1465 if (gcrDomain != null) { |
| 1466 _json["gcrDomain"] = gcrDomain; |
| 1467 } |
| 1468 if (iap != null) { |
| 1469 _json["iap"] = (iap).toJson(); |
| 1470 } |
1439 if (id != null) { | 1471 if (id != null) { |
1440 _json["id"] = id; | 1472 _json["id"] = id; |
1441 } | 1473 } |
1442 if (locationId != null) { | 1474 if (locationId != null) { |
1443 _json["locationId"] = locationId; | 1475 _json["locationId"] = locationId; |
1444 } | 1476 } |
1445 if (name != null) { | 1477 if (name != null) { |
1446 _json["name"] = name; | 1478 _json["name"] = name; |
1447 } | 1479 } |
| 1480 if (servingStatus != null) { |
| 1481 _json["servingStatus"] = servingStatus; |
| 1482 } |
1448 return _json; | 1483 return _json; |
1449 } | 1484 } |
1450 } | 1485 } |
1451 | 1486 |
1452 /** | 1487 /** |
1453 * Automatic scaling is based on request rate, response latencies, and other | 1488 * Automatic scaling is based on request rate, response latencies, and other |
1454 * application metrics. | 1489 * application metrics. |
1455 */ | 1490 */ |
1456 class AutomaticScaling { | 1491 class AutomaticScaling { |
1457 /** | 1492 /** |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 _json["idleTimeout"] = idleTimeout; | 1651 _json["idleTimeout"] = idleTimeout; |
1617 } | 1652 } |
1618 if (maxInstances != null) { | 1653 if (maxInstances != null) { |
1619 _json["maxInstances"] = maxInstances; | 1654 _json["maxInstances"] = maxInstances; |
1620 } | 1655 } |
1621 return _json; | 1656 return _json; |
1622 } | 1657 } |
1623 } | 1658 } |
1624 | 1659 |
1625 /** | 1660 /** |
1626 * Docker image that is used to start a VM container for the version you deploy. | 1661 * Docker image that is used to create a container and start a VM instance for |
| 1662 * the version that you deploy. Only applicable for instances running in the App |
| 1663 * Engine flexible environment. |
1627 */ | 1664 */ |
1628 class ContainerInfo { | 1665 class ContainerInfo { |
1629 /** | 1666 /** |
1630 * URI to the hosted container image in a Docker repository. The URI must be | 1667 * URI to the hosted container image in Google Container Registry. The URI |
1631 * fully qualified and include a tag or digest. Examples: | 1668 * must be fully qualified and include a tag or digest. Examples: |
1632 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" | 1669 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" |
1633 */ | 1670 */ |
1634 core.String image; | 1671 core.String image; |
1635 | 1672 |
1636 ContainerInfo(); | 1673 ContainerInfo(); |
1637 | 1674 |
1638 ContainerInfo.fromJson(core.Map _json) { | 1675 ContainerInfo.fromJson(core.Map _json) { |
1639 if (_json.containsKey("image")) { | 1676 if (_json.containsKey("image")) { |
1640 image = _json["image"]; | 1677 image = _json["image"]; |
1641 } | 1678 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1707 if (sshKey != null) { | 1744 if (sshKey != null) { |
1708 _json["sshKey"] = sshKey; | 1745 _json["sshKey"] = sshKey; |
1709 } | 1746 } |
1710 return _json; | 1747 return _json; |
1711 } | 1748 } |
1712 } | 1749 } |
1713 | 1750 |
1714 /** Code and application artifacts used to deploy a version to App Engine. */ | 1751 /** Code and application artifacts used to deploy a version to App Engine. */ |
1715 class Deployment { | 1752 class Deployment { |
1716 /** | 1753 /** |
1717 * A Docker image that App Engine uses to run the version. Only applicable for | 1754 * The Docker image for the container that runs the version. Only applicable |
1718 * instances in App Engine flexible environment. | 1755 * for instances running in the App Engine flexible environment. |
1719 */ | 1756 */ |
1720 ContainerInfo container; | 1757 ContainerInfo container; |
1721 /** | 1758 /** |
1722 * Manifest of the files stored in Google Cloud Storage that are included as | 1759 * Manifest of the files stored in Google Cloud Storage that are included as |
1723 * part of this version. All files must be readable using the credentials | 1760 * part of this version. All files must be readable using the credentials |
1724 * supplied with this call. | 1761 * supplied with this call. |
1725 */ | 1762 */ |
1726 core.Map<core.String, FileInfo> files; | 1763 core.Map<core.String, FileInfo> files; |
1727 /** The zip file for this deployment, if this is a zip deployment. */ | 1764 /** The zip file for this deployment, if this is a zip deployment. */ |
1728 ZipInfo zip; | 1765 ZipInfo zip; |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2015 if (timeout != null) { | 2052 if (timeout != null) { |
2016 _json["timeout"] = timeout; | 2053 _json["timeout"] = timeout; |
2017 } | 2054 } |
2018 if (unhealthyThreshold != null) { | 2055 if (unhealthyThreshold != null) { |
2019 _json["unhealthyThreshold"] = unhealthyThreshold; | 2056 _json["unhealthyThreshold"] = unhealthyThreshold; |
2020 } | 2057 } |
2021 return _json; | 2058 return _json; |
2022 } | 2059 } |
2023 } | 2060 } |
2024 | 2061 |
| 2062 /** Identity-Aware Proxy */ |
| 2063 class IdentityAwareProxy { |
| 2064 /** |
| 2065 * Whether the serving infrastructure will authenticate and authorize all |
| 2066 * incoming requests.If true, the oauth2_client_id and oauth2_client_secret |
| 2067 * fields must be non-empty. |
| 2068 */ |
| 2069 core.bool enabled; |
| 2070 /** OAuth2 client ID to use for the authentication flow. */ |
| 2071 core.String oauth2ClientId; |
| 2072 /** |
| 2073 * OAuth2 client secret to use for the authentication flow.For security |
| 2074 * reasons, this value cannot be retrieved via the API. Instead, the SHA-256 |
| 2075 * hash of the value is returned in the oauth2_client_secret_sha256 |
| 2076 * field.@InputOnly |
| 2077 */ |
| 2078 core.String oauth2ClientSecret; |
| 2079 /** Hex-encoded SHA-256 hash of the client secret.@OutputOnly */ |
| 2080 core.String oauth2ClientSecretSha256; |
| 2081 |
| 2082 IdentityAwareProxy(); |
| 2083 |
| 2084 IdentityAwareProxy.fromJson(core.Map _json) { |
| 2085 if (_json.containsKey("enabled")) { |
| 2086 enabled = _json["enabled"]; |
| 2087 } |
| 2088 if (_json.containsKey("oauth2ClientId")) { |
| 2089 oauth2ClientId = _json["oauth2ClientId"]; |
| 2090 } |
| 2091 if (_json.containsKey("oauth2ClientSecret")) { |
| 2092 oauth2ClientSecret = _json["oauth2ClientSecret"]; |
| 2093 } |
| 2094 if (_json.containsKey("oauth2ClientSecretSha256")) { |
| 2095 oauth2ClientSecretSha256 = _json["oauth2ClientSecretSha256"]; |
| 2096 } |
| 2097 } |
| 2098 |
| 2099 core.Map toJson() { |
| 2100 var _json = new core.Map(); |
| 2101 if (enabled != null) { |
| 2102 _json["enabled"] = enabled; |
| 2103 } |
| 2104 if (oauth2ClientId != null) { |
| 2105 _json["oauth2ClientId"] = oauth2ClientId; |
| 2106 } |
| 2107 if (oauth2ClientSecret != null) { |
| 2108 _json["oauth2ClientSecret"] = oauth2ClientSecret; |
| 2109 } |
| 2110 if (oauth2ClientSecretSha256 != null) { |
| 2111 _json["oauth2ClientSecretSha256"] = oauth2ClientSecretSha256; |
| 2112 } |
| 2113 return _json; |
| 2114 } |
| 2115 } |
| 2116 |
2025 /** | 2117 /** |
2026 * An Instance resource is the computing unit that App Engine uses to | 2118 * An Instance resource is the computing unit that App Engine uses to |
2027 * automatically scale an application. | 2119 * automatically scale an application. |
2028 */ | 2120 */ |
2029 class Instance { | 2121 class Instance { |
2030 /** App Engine release this instance is running on.@OutputOnly */ | 2122 /** App Engine release this instance is running on.@OutputOnly */ |
2031 core.String appEngineRelease; | 2123 core.String appEngineRelease; |
2032 /** | 2124 /** |
2033 * Availability of the instance.@OutputOnly | 2125 * Availability of the instance.@OutputOnly |
2034 * Possible string values are: | 2126 * Possible string values are: |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2250 if (instances != null) { | 2342 if (instances != null) { |
2251 _json["instances"] = instances.map((value) => (value).toJson()).toList(); | 2343 _json["instances"] = instances.map((value) => (value).toJson()).toList(); |
2252 } | 2344 } |
2253 if (nextPageToken != null) { | 2345 if (nextPageToken != null) { |
2254 _json["nextPageToken"] = nextPageToken; | 2346 _json["nextPageToken"] = nextPageToken; |
2255 } | 2347 } |
2256 return _json; | 2348 return _json; |
2257 } | 2349 } |
2258 } | 2350 } |
2259 | 2351 |
2260 /** The response message for LocationService.ListLocations. */ | 2352 /** The response message for Locations.ListLocations. */ |
2261 class ListLocationsResponse { | 2353 class ListLocationsResponse { |
2262 /** A list of locations that matches the specified filter in the request. */ | 2354 /** A list of locations that matches the specified filter in the request. */ |
2263 core.List<Location> locations; | 2355 core.List<Location> locations; |
2264 /** The standard List next-page token. */ | 2356 /** The standard List next-page token. */ |
2265 core.String nextPageToken; | 2357 core.String nextPageToken; |
2266 | 2358 |
2267 ListLocationsResponse(); | 2359 ListLocationsResponse(); |
2268 | 2360 |
2269 ListLocationsResponse.fromJson(core.Map _json) { | 2361 ListLocationsResponse.fromJson(core.Map _json) { |
2270 if (_json.containsKey("locations")) { | 2362 if (_json.containsKey("locations")) { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2370 if (nextPageToken != null) { | 2462 if (nextPageToken != null) { |
2371 _json["nextPageToken"] = nextPageToken; | 2463 _json["nextPageToken"] = nextPageToken; |
2372 } | 2464 } |
2373 if (versions != null) { | 2465 if (versions != null) { |
2374 _json["versions"] = versions.map((value) => (value).toJson()).toList(); | 2466 _json["versions"] = versions.map((value) => (value).toJson()).toList(); |
2375 } | 2467 } |
2376 return _json; | 2468 return _json; |
2377 } | 2469 } |
2378 } | 2470 } |
2379 | 2471 |
| 2472 /** |
| 2473 * Health checking configuration for VM instances. Unhealthy instances are |
| 2474 * killed and replaced with new instances. |
| 2475 */ |
| 2476 class LivenessCheck { |
| 2477 /** Interval between health checks. */ |
| 2478 core.String checkInterval; |
| 2479 /** |
| 2480 * Number of consecutive failed checks required before considering the VM |
| 2481 * unhealthy. |
| 2482 */ |
| 2483 core.int failureThreshold; |
| 2484 /** |
| 2485 * Host header to send when performing a HTTP Liveness check. Example: |
| 2486 * "myapp.appspot.com" |
| 2487 */ |
| 2488 core.String host; |
| 2489 /** The initial delay before starting to execute the checks. */ |
| 2490 core.String initialDelay; |
| 2491 /** The request path. */ |
| 2492 core.String path; |
| 2493 /** |
| 2494 * Number of consecutive successful checks required before considering the VM |
| 2495 * healthy. |
| 2496 */ |
| 2497 core.int successThreshold; |
| 2498 /** Time before the check is considered failed. */ |
| 2499 core.String timeout; |
| 2500 |
| 2501 LivenessCheck(); |
| 2502 |
| 2503 LivenessCheck.fromJson(core.Map _json) { |
| 2504 if (_json.containsKey("checkInterval")) { |
| 2505 checkInterval = _json["checkInterval"]; |
| 2506 } |
| 2507 if (_json.containsKey("failureThreshold")) { |
| 2508 failureThreshold = _json["failureThreshold"]; |
| 2509 } |
| 2510 if (_json.containsKey("host")) { |
| 2511 host = _json["host"]; |
| 2512 } |
| 2513 if (_json.containsKey("initialDelay")) { |
| 2514 initialDelay = _json["initialDelay"]; |
| 2515 } |
| 2516 if (_json.containsKey("path")) { |
| 2517 path = _json["path"]; |
| 2518 } |
| 2519 if (_json.containsKey("successThreshold")) { |
| 2520 successThreshold = _json["successThreshold"]; |
| 2521 } |
| 2522 if (_json.containsKey("timeout")) { |
| 2523 timeout = _json["timeout"]; |
| 2524 } |
| 2525 } |
| 2526 |
| 2527 core.Map toJson() { |
| 2528 var _json = new core.Map(); |
| 2529 if (checkInterval != null) { |
| 2530 _json["checkInterval"] = checkInterval; |
| 2531 } |
| 2532 if (failureThreshold != null) { |
| 2533 _json["failureThreshold"] = failureThreshold; |
| 2534 } |
| 2535 if (host != null) { |
| 2536 _json["host"] = host; |
| 2537 } |
| 2538 if (initialDelay != null) { |
| 2539 _json["initialDelay"] = initialDelay; |
| 2540 } |
| 2541 if (path != null) { |
| 2542 _json["path"] = path; |
| 2543 } |
| 2544 if (successThreshold != null) { |
| 2545 _json["successThreshold"] = successThreshold; |
| 2546 } |
| 2547 if (timeout != null) { |
| 2548 _json["timeout"] = timeout; |
| 2549 } |
| 2550 return _json; |
| 2551 } |
| 2552 } |
| 2553 |
2380 /** A resource that represents Google Cloud Platform location. */ | 2554 /** A resource that represents Google Cloud Platform location. */ |
2381 class Location { | 2555 class Location { |
2382 /** | 2556 /** |
2383 * Cross-service attributes for the location. For example | 2557 * Cross-service attributes for the location. For example |
2384 * {"cloud.googleapis.com/region": "us-east1"} | 2558 * {"cloud.googleapis.com/region": "us-east1"} |
2385 */ | 2559 */ |
2386 core.Map<core.String, core.String> labels; | 2560 core.Map<core.String, core.String> labels; |
2387 /** The canonical id for this location. For example: "us-east1". */ | 2561 /** The canonical id for this location. For example: "us-east1". */ |
2388 core.String locationId; | 2562 core.String locationId; |
2389 /** | 2563 /** |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2901 _json["user"] = user; | 3075 _json["user"] = user; |
2902 } | 3076 } |
2903 if (warning != null) { | 3077 if (warning != null) { |
2904 _json["warning"] = warning; | 3078 _json["warning"] = warning; |
2905 } | 3079 } |
2906 return _json; | 3080 return _json; |
2907 } | 3081 } |
2908 } | 3082 } |
2909 | 3083 |
2910 /** Metadata for the given google.longrunning.Operation. */ | 3084 /** Metadata for the given google.longrunning.Operation. */ |
| 3085 class OperationMetadataV1Beta { |
| 3086 /** Time that this operation completed.@OutputOnly */ |
| 3087 core.String endTime; |
| 3088 /** |
| 3089 * Ephemeral message that may change every time the operation is polled. |
| 3090 * @OutputOnly |
| 3091 */ |
| 3092 core.String ephemeralMessage; |
| 3093 /** Time that this operation was created.@OutputOnly */ |
| 3094 core.String insertTime; |
| 3095 /** |
| 3096 * API method that initiated this operation. Example: |
| 3097 * google.appengine.v1beta.Versions.CreateVersion.@OutputOnly |
| 3098 */ |
| 3099 core.String method; |
| 3100 /** |
| 3101 * Name of the resource that this operation is acting on. Example: |
| 3102 * apps/myapp/services/default.@OutputOnly |
| 3103 */ |
| 3104 core.String target; |
| 3105 /** User who requested this operation.@OutputOnly */ |
| 3106 core.String user; |
| 3107 /** Durable messages that persist on every operation poll. @OutputOnly */ |
| 3108 core.List<core.String> warning; |
| 3109 |
| 3110 OperationMetadataV1Beta(); |
| 3111 |
| 3112 OperationMetadataV1Beta.fromJson(core.Map _json) { |
| 3113 if (_json.containsKey("endTime")) { |
| 3114 endTime = _json["endTime"]; |
| 3115 } |
| 3116 if (_json.containsKey("ephemeralMessage")) { |
| 3117 ephemeralMessage = _json["ephemeralMessage"]; |
| 3118 } |
| 3119 if (_json.containsKey("insertTime")) { |
| 3120 insertTime = _json["insertTime"]; |
| 3121 } |
| 3122 if (_json.containsKey("method")) { |
| 3123 method = _json["method"]; |
| 3124 } |
| 3125 if (_json.containsKey("target")) { |
| 3126 target = _json["target"]; |
| 3127 } |
| 3128 if (_json.containsKey("user")) { |
| 3129 user = _json["user"]; |
| 3130 } |
| 3131 if (_json.containsKey("warning")) { |
| 3132 warning = _json["warning"]; |
| 3133 } |
| 3134 } |
| 3135 |
| 3136 core.Map toJson() { |
| 3137 var _json = new core.Map(); |
| 3138 if (endTime != null) { |
| 3139 _json["endTime"] = endTime; |
| 3140 } |
| 3141 if (ephemeralMessage != null) { |
| 3142 _json["ephemeralMessage"] = ephemeralMessage; |
| 3143 } |
| 3144 if (insertTime != null) { |
| 3145 _json["insertTime"] = insertTime; |
| 3146 } |
| 3147 if (method != null) { |
| 3148 _json["method"] = method; |
| 3149 } |
| 3150 if (target != null) { |
| 3151 _json["target"] = target; |
| 3152 } |
| 3153 if (user != null) { |
| 3154 _json["user"] = user; |
| 3155 } |
| 3156 if (warning != null) { |
| 3157 _json["warning"] = warning; |
| 3158 } |
| 3159 return _json; |
| 3160 } |
| 3161 } |
| 3162 |
| 3163 /** Metadata for the given google.longrunning.Operation. */ |
2911 class OperationMetadataV1Beta5 { | 3164 class OperationMetadataV1Beta5 { |
2912 /** Timestamp that this operation completed.@OutputOnly */ | 3165 /** Timestamp that this operation completed.@OutputOnly */ |
2913 core.String endTime; | 3166 core.String endTime; |
2914 /** Timestamp that this operation was created.@OutputOnly */ | 3167 /** Timestamp that this operation was created.@OutputOnly */ |
2915 core.String insertTime; | 3168 core.String insertTime; |
2916 /** | 3169 /** |
2917 * API method name that initiated this operation. Example: | 3170 * API method name that initiated this operation. Example: |
2918 * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly | 3171 * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly |
2919 */ | 3172 */ |
2920 core.String method; | 3173 core.String method; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2960 if (target != null) { | 3213 if (target != null) { |
2961 _json["target"] = target; | 3214 _json["target"] = target; |
2962 } | 3215 } |
2963 if (user != null) { | 3216 if (user != null) { |
2964 _json["user"] = user; | 3217 _json["user"] = user; |
2965 } | 3218 } |
2966 return _json; | 3219 return _json; |
2967 } | 3220 } |
2968 } | 3221 } |
2969 | 3222 |
| 3223 /** |
| 3224 * Readiness checking configuration for VM instances. Unhealthy instances are |
| 3225 * removed from traffic rotation. |
| 3226 */ |
| 3227 class ReadinessCheck { |
| 3228 /** Interval between health checks. */ |
| 3229 core.String checkInterval; |
| 3230 /** Number of consecutive failed checks required before removing traffic. */ |
| 3231 core.int failureThreshold; |
| 3232 /** |
| 3233 * Host header to send when performing a HTTP Readiness check. Example: |
| 3234 * "myapp.appspot.com" |
| 3235 */ |
| 3236 core.String host; |
| 3237 /** The request path. */ |
| 3238 core.String path; |
| 3239 /** |
| 3240 * Number of consecutive successful checks required before receiving traffic. |
| 3241 */ |
| 3242 core.int successThreshold; |
| 3243 /** Time before the check is considered failed. */ |
| 3244 core.String timeout; |
| 3245 |
| 3246 ReadinessCheck(); |
| 3247 |
| 3248 ReadinessCheck.fromJson(core.Map _json) { |
| 3249 if (_json.containsKey("checkInterval")) { |
| 3250 checkInterval = _json["checkInterval"]; |
| 3251 } |
| 3252 if (_json.containsKey("failureThreshold")) { |
| 3253 failureThreshold = _json["failureThreshold"]; |
| 3254 } |
| 3255 if (_json.containsKey("host")) { |
| 3256 host = _json["host"]; |
| 3257 } |
| 3258 if (_json.containsKey("path")) { |
| 3259 path = _json["path"]; |
| 3260 } |
| 3261 if (_json.containsKey("successThreshold")) { |
| 3262 successThreshold = _json["successThreshold"]; |
| 3263 } |
| 3264 if (_json.containsKey("timeout")) { |
| 3265 timeout = _json["timeout"]; |
| 3266 } |
| 3267 } |
| 3268 |
| 3269 core.Map toJson() { |
| 3270 var _json = new core.Map(); |
| 3271 if (checkInterval != null) { |
| 3272 _json["checkInterval"] = checkInterval; |
| 3273 } |
| 3274 if (failureThreshold != null) { |
| 3275 _json["failureThreshold"] = failureThreshold; |
| 3276 } |
| 3277 if (host != null) { |
| 3278 _json["host"] = host; |
| 3279 } |
| 3280 if (path != null) { |
| 3281 _json["path"] = path; |
| 3282 } |
| 3283 if (successThreshold != null) { |
| 3284 _json["successThreshold"] = successThreshold; |
| 3285 } |
| 3286 if (timeout != null) { |
| 3287 _json["timeout"] = timeout; |
| 3288 } |
| 3289 return _json; |
| 3290 } |
| 3291 } |
| 3292 |
2970 /** Request message for 'Applications.RepairApplication'. */ | 3293 /** Request message for 'Applications.RepairApplication'. */ |
2971 class RepairApplicationRequest { | 3294 class RepairApplicationRequest { |
2972 | 3295 |
2973 RepairApplicationRequest(); | 3296 RepairApplicationRequest(); |
2974 | 3297 |
2975 RepairApplicationRequest.fromJson(core.Map _json) { | 3298 RepairApplicationRequest.fromJson(core.Map _json) { |
2976 } | 3299 } |
2977 | 3300 |
2978 core.Map toJson() { | 3301 core.Map toJson() { |
2979 var _json = new core.Map(); | 3302 var _json = new core.Map(); |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3328 */ | 3651 */ |
3329 core.Map<core.String, core.double> allocations; | 3652 core.Map<core.String, core.double> allocations; |
3330 /** | 3653 /** |
3331 * Mechanism used to determine which version a request is sent to. The traffic | 3654 * Mechanism used to determine which version a request is sent to. The traffic |
3332 * selection algorithm will be stable for either type until allocations are | 3655 * selection algorithm will be stable for either type until allocations are |
3333 * changed. | 3656 * changed. |
3334 * Possible string values are: | 3657 * Possible string values are: |
3335 * - "UNSPECIFIED" : A UNSPECIFIED. | 3658 * - "UNSPECIFIED" : A UNSPECIFIED. |
3336 * - "COOKIE" : A COOKIE. | 3659 * - "COOKIE" : A COOKIE. |
3337 * - "IP" : A IP. | 3660 * - "IP" : A IP. |
| 3661 * - "RANDOM" : A RANDOM. |
3338 */ | 3662 */ |
3339 core.String shardBy; | 3663 core.String shardBy; |
3340 | 3664 |
3341 TrafficSplit(); | 3665 TrafficSplit(); |
3342 | 3666 |
3343 TrafficSplit.fromJson(core.Map _json) { | 3667 TrafficSplit.fromJson(core.Map _json) { |
3344 if (_json.containsKey("allocations")) { | 3668 if (_json.containsKey("allocations")) { |
3345 allocations = _json["allocations"]; | 3669 allocations = _json["allocations"]; |
3346 } | 3670 } |
3347 if (_json.containsKey("shardBy")) { | 3671 if (_json.containsKey("shardBy")) { |
(...skipping 15 matching lines...) Expand all Loading... |
3363 | 3687 |
3364 /** Rules to match an HTTP request and dispatch that request to a service. */ | 3688 /** Rules to match an HTTP request and dispatch that request to a service. */ |
3365 class UrlDispatchRule { | 3689 class UrlDispatchRule { |
3366 /** | 3690 /** |
3367 * Domain name to match against. The wildcard "*" is supported if specified | 3691 * Domain name to match against. The wildcard "*" is supported if specified |
3368 * before a period: "*.".Defaults to matching all domains: "*". | 3692 * before a period: "*.".Defaults to matching all domains: "*". |
3369 */ | 3693 */ |
3370 core.String domain; | 3694 core.String domain; |
3371 /** | 3695 /** |
3372 * Pathname within the host. Must start with a "/". A single "*" can be | 3696 * Pathname within the host. Must start with a "/". A single "*" can be |
3373 * included at the end of the path. The sum of the lengths of the domain and | 3697 * included at the end of the path.The sum of the lengths of the domain and |
3374 * path may not exceed 100 characters. | 3698 * path may not exceed 100 characters. |
3375 */ | 3699 */ |
3376 core.String path; | 3700 core.String path; |
3377 /** | 3701 /** |
3378 * Resource ID of a service in this application that should serve the matched | 3702 * Resource ID of a service in this application that should serve the matched |
3379 * request. The service must already exist. Example: default. | 3703 * request. The service must already exist. Example: default. |
3380 */ | 3704 */ |
3381 core.String service; | 3705 core.String service; |
3382 | 3706 |
3383 UrlDispatchRule(); | 3707 UrlDispatchRule(); |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3628 * B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling | 3952 * B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling |
3629 * or BasicScaling. | 3953 * or BasicScaling. |
3630 */ | 3954 */ |
3631 core.String instanceClass; | 3955 core.String instanceClass; |
3632 /** | 3956 /** |
3633 * Configuration for third-party Python runtime libraries that are required by | 3957 * Configuration for third-party Python runtime libraries that are required by |
3634 * the application.Only returned in GET requests if view=FULL is set. | 3958 * the application.Only returned in GET requests if view=FULL is set. |
3635 */ | 3959 */ |
3636 core.List<Library> libraries; | 3960 core.List<Library> libraries; |
3637 /** | 3961 /** |
| 3962 * Configures liveness health checking for VM instances. Unhealthy instances |
| 3963 * are stopped and replaced with new instancesOnly returned in GET requests if |
| 3964 * view=FULL is set. |
| 3965 */ |
| 3966 LivenessCheck livenessCheck; |
| 3967 /** |
3638 * A service with manual scaling runs continuously, allowing you to perform | 3968 * A service with manual scaling runs continuously, allowing you to perform |
3639 * complex initialization and rely on the state of its memory over time. | 3969 * complex initialization and rely on the state of its memory over time. |
3640 */ | 3970 */ |
3641 ManualScaling manualScaling; | 3971 ManualScaling manualScaling; |
3642 /** | 3972 /** |
3643 * Full path to the Version resource in the API. Example: | 3973 * Full path to the Version resource in the API. Example: |
3644 * apps/myapp/services/default/versions/v1.@OutputOnly | 3974 * apps/myapp/services/default/versions/v1.@OutputOnly |
3645 */ | 3975 */ |
3646 core.String name; | 3976 core.String name; |
3647 /** Extra network settings. Only applicable for VM runtimes. */ | 3977 /** Extra network settings. Only applicable for VM runtimes. */ |
3648 Network network; | 3978 Network network; |
3649 /** | 3979 /** |
3650 * Files that match this pattern will not be built into this version. Only | 3980 * Files that match this pattern will not be built into this version. Only |
3651 * applicable for Go runtimes.Only returned in GET requests if view=FULL is | 3981 * applicable for Go runtimes.Only returned in GET requests if view=FULL is |
3652 * set. | 3982 * set. |
3653 */ | 3983 */ |
3654 core.String nobuildFilesRegex; | 3984 core.String nobuildFilesRegex; |
| 3985 /** |
| 3986 * Configures readiness health checking for VM instances. Unhealthy instances |
| 3987 * are not put into the backend traffic rotation.Only returned in GET requests |
| 3988 * if view=FULL is set. |
| 3989 */ |
| 3990 ReadinessCheck readinessCheck; |
3655 /** Machine resources for this version. Only applicable for VM runtimes. */ | 3991 /** Machine resources for this version. Only applicable for VM runtimes. */ |
3656 Resources resources; | 3992 Resources resources; |
3657 /** Desired runtime. Example: python27. */ | 3993 /** Desired runtime. Example: python27. */ |
3658 core.String runtime; | 3994 core.String runtime; |
3659 /** | 3995 /** |
3660 * Current serving status of this version. Only the versions with a SERVING | 3996 * Current serving status of this version. Only the versions with a SERVING |
3661 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an | 3997 * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an |
3662 * invalid value. Defaults to SERVING. | 3998 * invalid value. Defaults to SERVING. |
3663 * Possible string values are: | 3999 * Possible string values are: |
3664 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. | 4000 * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3729 } | 4065 } |
3730 if (_json.containsKey("inboundServices")) { | 4066 if (_json.containsKey("inboundServices")) { |
3731 inboundServices = _json["inboundServices"]; | 4067 inboundServices = _json["inboundServices"]; |
3732 } | 4068 } |
3733 if (_json.containsKey("instanceClass")) { | 4069 if (_json.containsKey("instanceClass")) { |
3734 instanceClass = _json["instanceClass"]; | 4070 instanceClass = _json["instanceClass"]; |
3735 } | 4071 } |
3736 if (_json.containsKey("libraries")) { | 4072 if (_json.containsKey("libraries")) { |
3737 libraries = _json["libraries"].map((value) => new Library.fromJson(value))
.toList(); | 4073 libraries = _json["libraries"].map((value) => new Library.fromJson(value))
.toList(); |
3738 } | 4074 } |
| 4075 if (_json.containsKey("livenessCheck")) { |
| 4076 livenessCheck = new LivenessCheck.fromJson(_json["livenessCheck"]); |
| 4077 } |
3739 if (_json.containsKey("manualScaling")) { | 4078 if (_json.containsKey("manualScaling")) { |
3740 manualScaling = new ManualScaling.fromJson(_json["manualScaling"]); | 4079 manualScaling = new ManualScaling.fromJson(_json["manualScaling"]); |
3741 } | 4080 } |
3742 if (_json.containsKey("name")) { | 4081 if (_json.containsKey("name")) { |
3743 name = _json["name"]; | 4082 name = _json["name"]; |
3744 } | 4083 } |
3745 if (_json.containsKey("network")) { | 4084 if (_json.containsKey("network")) { |
3746 network = new Network.fromJson(_json["network"]); | 4085 network = new Network.fromJson(_json["network"]); |
3747 } | 4086 } |
3748 if (_json.containsKey("nobuildFilesRegex")) { | 4087 if (_json.containsKey("nobuildFilesRegex")) { |
3749 nobuildFilesRegex = _json["nobuildFilesRegex"]; | 4088 nobuildFilesRegex = _json["nobuildFilesRegex"]; |
3750 } | 4089 } |
| 4090 if (_json.containsKey("readinessCheck")) { |
| 4091 readinessCheck = new ReadinessCheck.fromJson(_json["readinessCheck"]); |
| 4092 } |
3751 if (_json.containsKey("resources")) { | 4093 if (_json.containsKey("resources")) { |
3752 resources = new Resources.fromJson(_json["resources"]); | 4094 resources = new Resources.fromJson(_json["resources"]); |
3753 } | 4095 } |
3754 if (_json.containsKey("runtime")) { | 4096 if (_json.containsKey("runtime")) { |
3755 runtime = _json["runtime"]; | 4097 runtime = _json["runtime"]; |
3756 } | 4098 } |
3757 if (_json.containsKey("servingStatus")) { | 4099 if (_json.containsKey("servingStatus")) { |
3758 servingStatus = _json["servingStatus"]; | 4100 servingStatus = _json["servingStatus"]; |
3759 } | 4101 } |
3760 if (_json.containsKey("threadsafe")) { | 4102 if (_json.containsKey("threadsafe")) { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3820 } | 4162 } |
3821 if (inboundServices != null) { | 4163 if (inboundServices != null) { |
3822 _json["inboundServices"] = inboundServices; | 4164 _json["inboundServices"] = inboundServices; |
3823 } | 4165 } |
3824 if (instanceClass != null) { | 4166 if (instanceClass != null) { |
3825 _json["instanceClass"] = instanceClass; | 4167 _json["instanceClass"] = instanceClass; |
3826 } | 4168 } |
3827 if (libraries != null) { | 4169 if (libraries != null) { |
3828 _json["libraries"] = libraries.map((value) => (value).toJson()).toList(); | 4170 _json["libraries"] = libraries.map((value) => (value).toJson()).toList(); |
3829 } | 4171 } |
| 4172 if (livenessCheck != null) { |
| 4173 _json["livenessCheck"] = (livenessCheck).toJson(); |
| 4174 } |
3830 if (manualScaling != null) { | 4175 if (manualScaling != null) { |
3831 _json["manualScaling"] = (manualScaling).toJson(); | 4176 _json["manualScaling"] = (manualScaling).toJson(); |
3832 } | 4177 } |
3833 if (name != null) { | 4178 if (name != null) { |
3834 _json["name"] = name; | 4179 _json["name"] = name; |
3835 } | 4180 } |
3836 if (network != null) { | 4181 if (network != null) { |
3837 _json["network"] = (network).toJson(); | 4182 _json["network"] = (network).toJson(); |
3838 } | 4183 } |
3839 if (nobuildFilesRegex != null) { | 4184 if (nobuildFilesRegex != null) { |
3840 _json["nobuildFilesRegex"] = nobuildFilesRegex; | 4185 _json["nobuildFilesRegex"] = nobuildFilesRegex; |
3841 } | 4186 } |
| 4187 if (readinessCheck != null) { |
| 4188 _json["readinessCheck"] = (readinessCheck).toJson(); |
| 4189 } |
3842 if (resources != null) { | 4190 if (resources != null) { |
3843 _json["resources"] = (resources).toJson(); | 4191 _json["resources"] = (resources).toJson(); |
3844 } | 4192 } |
3845 if (runtime != null) { | 4193 if (runtime != null) { |
3846 _json["runtime"] = runtime; | 4194 _json["runtime"] = runtime; |
3847 } | 4195 } |
3848 if (servingStatus != null) { | 4196 if (servingStatus != null) { |
3849 _json["servingStatus"] = servingStatus; | 4197 _json["servingStatus"] = servingStatus; |
3850 } | 4198 } |
3851 if (threadsafe != null) { | 4199 if (threadsafe != null) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3930 var _json = new core.Map(); | 4278 var _json = new core.Map(); |
3931 if (filesCount != null) { | 4279 if (filesCount != null) { |
3932 _json["filesCount"] = filesCount; | 4280 _json["filesCount"] = filesCount; |
3933 } | 4281 } |
3934 if (sourceUrl != null) { | 4282 if (sourceUrl != null) { |
3935 _json["sourceUrl"] = sourceUrl; | 4283 _json["sourceUrl"] = sourceUrl; |
3936 } | 4284 } |
3937 return _json; | 4285 return _json; |
3938 } | 4286 } |
3939 } | 4287 } |
OLD | NEW |