| 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 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 * | 571 * |
| 571 * Request parameters: | 572 * Request parameters: |
| 572 * | 573 * |
| 573 * [appsId] - Part of `name`. Name of the resource to update. Example: | 574 * [appsId] - Part of `name`. Name of the resource to update. Example: |
| 574 * apps/myapp/services/default. | 575 * apps/myapp/services/default. |
| 575 * | 576 * |
| 576 * [servicesId] - Part of `name`. See documentation of `appsId`. | 577 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 577 * | 578 * |
| 578 * [mask] - Standard field mask for the set of fields to be updated. | 579 * [mask] - Standard field mask for the set of fields to be updated. |
| 579 * | 580 * |
| 580 * [migrateTraffic] - Set to true to gradually shift traffic from one version | 581 * [migrateTraffic] - Set to true to gradually shift traffic to one or more |
| 581 * to another single version. By default, traffic is shifted immediately. For | 582 * versions that you specify. By default, traffic is shifted immediately. For |
| 582 * gradual traffic migration, the target version must be located within | 583 * gradual traffic migration, the target versions must be located within |
| 583 * instances that are configured for both warmup requests | 584 * instances that are configured for both warmup requests |
| 584 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/a
pps.services.versions#inboundservicetype) | 585 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/a
pps.services.versions#inboundservicetype) |
| 585 * and automatic scaling | 586 * and automatic scaling |
| 586 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/a
pps.services.versions#automaticscaling). | 587 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/a
pps.services.versions#automaticscaling). |
| 587 * You must specify the shardBy | 588 * You must specify the shardBy |
| 588 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/a
pps.services#shardby) | 589 * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta5/a
pps.services#shardby) |
| 589 * field in the Service resource. Gradual traffic migration is not supported | 590 * field in the Service resource. Gradual traffic migration is not supported |
| 590 * in the App Engine flexible environment. For examples, see Migrating and | 591 * in the App Engine flexible environment. For examples, see Migrating and |
| 591 * Splitting Traffic | 592 * Splitting Traffic |
| 592 * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traf
fic). | 593 * (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... |
| 1120 "GET", | 1121 "GET", |
| 1121 body: _body, | 1122 body: _body, |
| 1122 queryParams: _queryParams, | 1123 queryParams: _queryParams, |
| 1123 uploadOptions: _uploadOptions, | 1124 uploadOptions: _uploadOptions, |
| 1124 uploadMedia: _uploadMedia, | 1125 uploadMedia: _uploadMedia, |
| 1125 downloadOptions: _downloadOptions); | 1126 downloadOptions: _downloadOptions); |
| 1126 return _response.then((data) => new Instance.fromJson(data)); | 1127 return _response.then((data) => new Instance.fromJson(data)); |
| 1127 } | 1128 } |
| 1128 | 1129 |
| 1129 /** | 1130 /** |
| 1130 * Lists the instances of a version. | 1131 * Lists the instances of a version.Tip: To aggregate details about instances |
| 1132 * over time, see the Stackdriver Monitoring API |
| 1133 * (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries
/list). |
| 1131 * | 1134 * |
| 1132 * Request parameters: | 1135 * Request parameters: |
| 1133 * | 1136 * |
| 1134 * [appsId] - Part of `name`. Name of the resource requested. Example: | 1137 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 1135 * apps/myapp/services/default/versions/v1. | 1138 * apps/myapp/services/default/versions/v1. |
| 1136 * | 1139 * |
| 1137 * [servicesId] - Part of `name`. See documentation of `appsId`. | 1140 * [servicesId] - Part of `name`. See documentation of `appsId`. |
| 1138 * | 1141 * |
| 1139 * [versionsId] - Part of `name`. See documentation of `appsId`. | 1142 * [versionsId] - Part of `name`. See documentation of `appsId`. |
| 1140 * | 1143 * |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1319 * Hostname used to reach the application, as resolved by App | 1322 * Hostname used to reach the application, as resolved by App |
| 1320 * Engine.@OutputOnly | 1323 * Engine.@OutputOnly |
| 1321 */ | 1324 */ |
| 1322 core.String defaultHostname; | 1325 core.String defaultHostname; |
| 1323 /** | 1326 /** |
| 1324 * HTTP path dispatch rules for requests to the application that do not | 1327 * HTTP path dispatch rules for requests to the application that do not |
| 1325 * explicitly target a service or version. Rules are | 1328 * explicitly target a service or version. Rules are |
| 1326 * order-dependent.@OutputOnly | 1329 * order-dependent.@OutputOnly |
| 1327 */ | 1330 */ |
| 1328 core.List<UrlDispatchRule> dispatchRules; | 1331 core.List<UrlDispatchRule> dispatchRules; |
| 1332 IdentityAwareProxy iap; |
| 1329 /** | 1333 /** |
| 1330 * Identifier of the Application resource. This identifier is equivalent to | 1334 * Identifier of the Application resource. This identifier is equivalent to |
| 1331 * the project ID of the Google Cloud Platform project where you want to | 1335 * the project ID of the Google Cloud Platform project where you want to |
| 1332 * deploy your application. Example: myapp. | 1336 * deploy your application. Example: myapp. |
| 1333 */ | 1337 */ |
| 1334 core.String id; | 1338 core.String id; |
| 1335 /** | 1339 /** |
| 1336 * Location from which this application will be run. Application instances | 1340 * Location from which this application will be run. Application instances |
| 1337 * will run out of data centers in the chosen location, which is also where | 1341 * will run out of data centers in the chosen location, which is also where |
| 1338 * all of the application's end user content is stored.Defaults to | 1342 * all of the application's end user content is stored.Defaults to |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1360 } | 1364 } |
| 1361 if (_json.containsKey("defaultCookieExpiration")) { | 1365 if (_json.containsKey("defaultCookieExpiration")) { |
| 1362 defaultCookieExpiration = _json["defaultCookieExpiration"]; | 1366 defaultCookieExpiration = _json["defaultCookieExpiration"]; |
| 1363 } | 1367 } |
| 1364 if (_json.containsKey("defaultHostname")) { | 1368 if (_json.containsKey("defaultHostname")) { |
| 1365 defaultHostname = _json["defaultHostname"]; | 1369 defaultHostname = _json["defaultHostname"]; |
| 1366 } | 1370 } |
| 1367 if (_json.containsKey("dispatchRules")) { | 1371 if (_json.containsKey("dispatchRules")) { |
| 1368 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); | 1372 dispatchRules = _json["dispatchRules"].map((value) => new UrlDispatchRule.
fromJson(value)).toList(); |
| 1369 } | 1373 } |
| 1374 if (_json.containsKey("iap")) { |
| 1375 iap = new IdentityAwareProxy.fromJson(_json["iap"]); |
| 1376 } |
| 1370 if (_json.containsKey("id")) { | 1377 if (_json.containsKey("id")) { |
| 1371 id = _json["id"]; | 1378 id = _json["id"]; |
| 1372 } | 1379 } |
| 1373 if (_json.containsKey("location")) { | 1380 if (_json.containsKey("location")) { |
| 1374 location = _json["location"]; | 1381 location = _json["location"]; |
| 1375 } | 1382 } |
| 1376 if (_json.containsKey("name")) { | 1383 if (_json.containsKey("name")) { |
| 1377 name = _json["name"]; | 1384 name = _json["name"]; |
| 1378 } | 1385 } |
| 1379 } | 1386 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1391 } | 1398 } |
| 1392 if (defaultCookieExpiration != null) { | 1399 if (defaultCookieExpiration != null) { |
| 1393 _json["defaultCookieExpiration"] = defaultCookieExpiration; | 1400 _json["defaultCookieExpiration"] = defaultCookieExpiration; |
| 1394 } | 1401 } |
| 1395 if (defaultHostname != null) { | 1402 if (defaultHostname != null) { |
| 1396 _json["defaultHostname"] = defaultHostname; | 1403 _json["defaultHostname"] = defaultHostname; |
| 1397 } | 1404 } |
| 1398 if (dispatchRules != null) { | 1405 if (dispatchRules != null) { |
| 1399 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); | 1406 _json["dispatchRules"] = dispatchRules.map((value) => (value).toJson()).to
List(); |
| 1400 } | 1407 } |
| 1408 if (iap != null) { |
| 1409 _json["iap"] = (iap).toJson(); |
| 1410 } |
| 1401 if (id != null) { | 1411 if (id != null) { |
| 1402 _json["id"] = id; | 1412 _json["id"] = id; |
| 1403 } | 1413 } |
| 1404 if (location != null) { | 1414 if (location != null) { |
| 1405 _json["location"] = location; | 1415 _json["location"] = location; |
| 1406 } | 1416 } |
| 1407 if (name != null) { | 1417 if (name != null) { |
| 1408 _json["name"] = name; | 1418 _json["name"] = name; |
| 1409 } | 1419 } |
| 1410 return _json; | 1420 return _json; |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 _json["idleTimeout"] = idleTimeout; | 1588 _json["idleTimeout"] = idleTimeout; |
| 1579 } | 1589 } |
| 1580 if (maxInstances != null) { | 1590 if (maxInstances != null) { |
| 1581 _json["maxInstances"] = maxInstances; | 1591 _json["maxInstances"] = maxInstances; |
| 1582 } | 1592 } |
| 1583 return _json; | 1593 return _json; |
| 1584 } | 1594 } |
| 1585 } | 1595 } |
| 1586 | 1596 |
| 1587 /** | 1597 /** |
| 1588 * Docker image that is used to start a VM container for the version you deploy. | 1598 * Docker image that is used to create a container and start a VM instance for |
| 1599 * the version that you deploy. Only applicable for instances running in the App |
| 1600 * Engine flexible environment. |
| 1589 */ | 1601 */ |
| 1590 class ContainerInfo { | 1602 class ContainerInfo { |
| 1591 /** | 1603 /** |
| 1592 * URI to the hosted container image in a Docker repository. The URI must be | 1604 * URI to the hosted container image in Google Container Registry. The URI |
| 1593 * fully qualified and include a tag or digest. Examples: | 1605 * must be fully qualified and include a tag or digest. Examples: |
| 1594 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" | 1606 * "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest" |
| 1595 */ | 1607 */ |
| 1596 core.String image; | 1608 core.String image; |
| 1597 | 1609 |
| 1598 ContainerInfo(); | 1610 ContainerInfo(); |
| 1599 | 1611 |
| 1600 ContainerInfo.fromJson(core.Map _json) { | 1612 ContainerInfo.fromJson(core.Map _json) { |
| 1601 if (_json.containsKey("image")) { | 1613 if (_json.containsKey("image")) { |
| 1602 image = _json["image"]; | 1614 image = _json["image"]; |
| 1603 } | 1615 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1669 if (sshKey != null) { | 1681 if (sshKey != null) { |
| 1670 _json["sshKey"] = sshKey; | 1682 _json["sshKey"] = sshKey; |
| 1671 } | 1683 } |
| 1672 return _json; | 1684 return _json; |
| 1673 } | 1685 } |
| 1674 } | 1686 } |
| 1675 | 1687 |
| 1676 /** Code and application artifacts used to deploy a version to App Engine. */ | 1688 /** Code and application artifacts used to deploy a version to App Engine. */ |
| 1677 class Deployment { | 1689 class Deployment { |
| 1678 /** | 1690 /** |
| 1679 * A Docker image that App Engine uses the run the version. Only applicable | 1691 * The Docker image for the container that runs the version. Only applicable |
| 1680 * for instances in App Engine flexible environment. | 1692 * for instances running in the App Engine flexible environment. |
| 1681 */ | 1693 */ |
| 1682 ContainerInfo container; | 1694 ContainerInfo container; |
| 1683 /** | 1695 /** |
| 1684 * Manifest of the files stored in Google Cloud Storage that are included as | 1696 * Manifest of the files stored in Google Cloud Storage that are included as |
| 1685 * part of this version. All files must be readable using the credentials | 1697 * part of this version. All files must be readable using the credentials |
| 1686 * supplied with this call. | 1698 * supplied with this call. |
| 1687 */ | 1699 */ |
| 1688 core.Map<core.String, FileInfo> files; | 1700 core.Map<core.String, FileInfo> files; |
| 1689 /** | 1701 /** |
| 1690 * Origin of the source code for this deployment. There can be more than one | 1702 * Origin of the source code for this deployment. There can be more than one |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1981 if (timeout != null) { | 1993 if (timeout != null) { |
| 1982 _json["timeout"] = timeout; | 1994 _json["timeout"] = timeout; |
| 1983 } | 1995 } |
| 1984 if (unhealthyThreshold != null) { | 1996 if (unhealthyThreshold != null) { |
| 1985 _json["unhealthyThreshold"] = unhealthyThreshold; | 1997 _json["unhealthyThreshold"] = unhealthyThreshold; |
| 1986 } | 1998 } |
| 1987 return _json; | 1999 return _json; |
| 1988 } | 2000 } |
| 1989 } | 2001 } |
| 1990 | 2002 |
| 2003 /** Identity-Aware Proxy */ |
| 2004 class IdentityAwareProxy { |
| 2005 /** |
| 2006 * Whether the serving infrastructure will authenticate and authorize all |
| 2007 * incoming requests.If true, the oauth2_client_id and oauth2_client_secret |
| 2008 * fields must be non-empty. |
| 2009 */ |
| 2010 core.bool enabled; |
| 2011 /** OAuth2 client ID to use for the authentication flow. */ |
| 2012 core.String oauth2ClientId; |
| 2013 /** |
| 2014 * For security reasons, this value cannot be retrieved via the API. Instead, |
| 2015 * the SHA-256 hash of the value is returned in the |
| 2016 * oauth2_client_secret_sha256 field.@InputOnly |
| 2017 */ |
| 2018 core.String oauth2ClientSecret; |
| 2019 /** Hex-encoded SHA-256 hash of the client secret.@OutputOnly */ |
| 2020 core.String oauth2ClientSecretSha256; |
| 2021 |
| 2022 IdentityAwareProxy(); |
| 2023 |
| 2024 IdentityAwareProxy.fromJson(core.Map _json) { |
| 2025 if (_json.containsKey("enabled")) { |
| 2026 enabled = _json["enabled"]; |
| 2027 } |
| 2028 if (_json.containsKey("oauth2ClientId")) { |
| 2029 oauth2ClientId = _json["oauth2ClientId"]; |
| 2030 } |
| 2031 if (_json.containsKey("oauth2ClientSecret")) { |
| 2032 oauth2ClientSecret = _json["oauth2ClientSecret"]; |
| 2033 } |
| 2034 if (_json.containsKey("oauth2ClientSecretSha256")) { |
| 2035 oauth2ClientSecretSha256 = _json["oauth2ClientSecretSha256"]; |
| 2036 } |
| 2037 } |
| 2038 |
| 2039 core.Map toJson() { |
| 2040 var _json = new core.Map(); |
| 2041 if (enabled != null) { |
| 2042 _json["enabled"] = enabled; |
| 2043 } |
| 2044 if (oauth2ClientId != null) { |
| 2045 _json["oauth2ClientId"] = oauth2ClientId; |
| 2046 } |
| 2047 if (oauth2ClientSecret != null) { |
| 2048 _json["oauth2ClientSecret"] = oauth2ClientSecret; |
| 2049 } |
| 2050 if (oauth2ClientSecretSha256 != null) { |
| 2051 _json["oauth2ClientSecretSha256"] = oauth2ClientSecretSha256; |
| 2052 } |
| 2053 return _json; |
| 2054 } |
| 2055 } |
| 2056 |
| 1991 /** | 2057 /** |
| 1992 * An Instance resource is the computing unit that App Engine uses to | 2058 * An Instance resource is the computing unit that App Engine uses to |
| 1993 * automatically scale an application. | 2059 * automatically scale an application. |
| 1994 */ | 2060 */ |
| 1995 class Instance { | 2061 class Instance { |
| 1996 /** App Engine release this instance is running on.@OutputOnly */ | 2062 /** App Engine release this instance is running on.@OutputOnly */ |
| 1997 core.String appEngineRelease; | 2063 core.String appEngineRelease; |
| 1998 /** | 2064 /** |
| 1999 * Availability of the instance.@OutputOnly | 2065 * Availability of the instance.@OutputOnly |
| 2000 * Possible string values are: | 2066 * Possible string values are: |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2216 if (instances != null) { | 2282 if (instances != null) { |
| 2217 _json["instances"] = instances.map((value) => (value).toJson()).toList(); | 2283 _json["instances"] = instances.map((value) => (value).toJson()).toList(); |
| 2218 } | 2284 } |
| 2219 if (nextPageToken != null) { | 2285 if (nextPageToken != null) { |
| 2220 _json["nextPageToken"] = nextPageToken; | 2286 _json["nextPageToken"] = nextPageToken; |
| 2221 } | 2287 } |
| 2222 return _json; | 2288 return _json; |
| 2223 } | 2289 } |
| 2224 } | 2290 } |
| 2225 | 2291 |
| 2226 /** The response message for LocationService.ListLocations. */ | 2292 /** The response message for Locations.ListLocations. */ |
| 2227 class ListLocationsResponse { | 2293 class ListLocationsResponse { |
| 2228 /** A list of locations that matches the specified filter in the request. */ | 2294 /** A list of locations that matches the specified filter in the request. */ |
| 2229 core.List<Location> locations; | 2295 core.List<Location> locations; |
| 2230 /** The standard List next-page token. */ | 2296 /** The standard List next-page token. */ |
| 2231 core.String nextPageToken; | 2297 core.String nextPageToken; |
| 2232 | 2298 |
| 2233 ListLocationsResponse(); | 2299 ListLocationsResponse(); |
| 2234 | 2300 |
| 2235 ListLocationsResponse.fromJson(core.Map _json) { | 2301 ListLocationsResponse.fromJson(core.Map _json) { |
| 2236 if (_json.containsKey("locations")) { | 2302 if (_json.containsKey("locations")) { |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2867 _json["user"] = user; | 2933 _json["user"] = user; |
| 2868 } | 2934 } |
| 2869 if (warning != null) { | 2935 if (warning != null) { |
| 2870 _json["warning"] = warning; | 2936 _json["warning"] = warning; |
| 2871 } | 2937 } |
| 2872 return _json; | 2938 return _json; |
| 2873 } | 2939 } |
| 2874 } | 2940 } |
| 2875 | 2941 |
| 2876 /** Metadata for the given google.longrunning.Operation. */ | 2942 /** Metadata for the given google.longrunning.Operation. */ |
| 2943 class OperationMetadataV1Beta { |
| 2944 /** Time that this operation completed.@OutputOnly */ |
| 2945 core.String endTime; |
| 2946 /** |
| 2947 * Ephemeral message that may change every time the operation is polled. |
| 2948 * @OutputOnly |
| 2949 */ |
| 2950 core.String ephemeralMessage; |
| 2951 /** Time that this operation was created.@OutputOnly */ |
| 2952 core.String insertTime; |
| 2953 /** |
| 2954 * API method that initiated this operation. Example: |
| 2955 * google.appengine.v1beta.Versions.CreateVersion.@OutputOnly |
| 2956 */ |
| 2957 core.String method; |
| 2958 /** |
| 2959 * Name of the resource that this operation is acting on. Example: |
| 2960 * apps/myapp/services/default.@OutputOnly |
| 2961 */ |
| 2962 core.String target; |
| 2963 /** User who requested this operation.@OutputOnly */ |
| 2964 core.String user; |
| 2965 /** Durable messages that persist on every operation poll. @OutputOnly */ |
| 2966 core.List<core.String> warning; |
| 2967 |
| 2968 OperationMetadataV1Beta(); |
| 2969 |
| 2970 OperationMetadataV1Beta.fromJson(core.Map _json) { |
| 2971 if (_json.containsKey("endTime")) { |
| 2972 endTime = _json["endTime"]; |
| 2973 } |
| 2974 if (_json.containsKey("ephemeralMessage")) { |
| 2975 ephemeralMessage = _json["ephemeralMessage"]; |
| 2976 } |
| 2977 if (_json.containsKey("insertTime")) { |
| 2978 insertTime = _json["insertTime"]; |
| 2979 } |
| 2980 if (_json.containsKey("method")) { |
| 2981 method = _json["method"]; |
| 2982 } |
| 2983 if (_json.containsKey("target")) { |
| 2984 target = _json["target"]; |
| 2985 } |
| 2986 if (_json.containsKey("user")) { |
| 2987 user = _json["user"]; |
| 2988 } |
| 2989 if (_json.containsKey("warning")) { |
| 2990 warning = _json["warning"]; |
| 2991 } |
| 2992 } |
| 2993 |
| 2994 core.Map toJson() { |
| 2995 var _json = new core.Map(); |
| 2996 if (endTime != null) { |
| 2997 _json["endTime"] = endTime; |
| 2998 } |
| 2999 if (ephemeralMessage != null) { |
| 3000 _json["ephemeralMessage"] = ephemeralMessage; |
| 3001 } |
| 3002 if (insertTime != null) { |
| 3003 _json["insertTime"] = insertTime; |
| 3004 } |
| 3005 if (method != null) { |
| 3006 _json["method"] = method; |
| 3007 } |
| 3008 if (target != null) { |
| 3009 _json["target"] = target; |
| 3010 } |
| 3011 if (user != null) { |
| 3012 _json["user"] = user; |
| 3013 } |
| 3014 if (warning != null) { |
| 3015 _json["warning"] = warning; |
| 3016 } |
| 3017 return _json; |
| 3018 } |
| 3019 } |
| 3020 |
| 3021 /** Metadata for the given google.longrunning.Operation. */ |
| 2877 class OperationMetadataV1Beta5 { | 3022 class OperationMetadataV1Beta5 { |
| 2878 /** Timestamp that this operation completed.@OutputOnly */ | 3023 /** Timestamp that this operation completed.@OutputOnly */ |
| 2879 core.String endTime; | 3024 core.String endTime; |
| 2880 /** Timestamp that this operation was created.@OutputOnly */ | 3025 /** Timestamp that this operation was created.@OutputOnly */ |
| 2881 core.String insertTime; | 3026 core.String insertTime; |
| 2882 /** | 3027 /** |
| 2883 * API method name that initiated this operation. Example: | 3028 * API method name that initiated this operation. Example: |
| 2884 * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly | 3029 * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly |
| 2885 */ | 3030 */ |
| 2886 core.String method; | 3031 core.String method; |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3870 } | 4015 } |
| 3871 if (sizeGb != null) { | 4016 if (sizeGb != null) { |
| 3872 _json["sizeGb"] = sizeGb; | 4017 _json["sizeGb"] = sizeGb; |
| 3873 } | 4018 } |
| 3874 if (volumeType != null) { | 4019 if (volumeType != null) { |
| 3875 _json["volumeType"] = volumeType; | 4020 _json["volumeType"] = volumeType; |
| 3876 } | 4021 } |
| 3877 return _json; | 4022 return _json; |
| 3878 } | 4023 } |
| 3879 } | 4024 } |
| OLD | NEW |