Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: generated/googleapis_beta/lib/appengine/v1beta4.dart

Issue 2159673002: Api-roll 39: 2016-07-18 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.v1beta4; 3 library googleapis_beta.appengine.v1beta4;
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 14 matching lines...) Expand all
25 AppsResourceApi get apps => new AppsResourceApi(_requester); 25 AppsResourceApi get apps => new AppsResourceApi(_requester);
26 26
27 AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog leapis.com/", core.String servicePath: ""}) : 27 AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.goog leapis.com/", core.String servicePath: ""}) :
28 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 28 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
29 } 29 }
30 30
31 31
32 class AppsResourceApi { 32 class AppsResourceApi {
33 final commons.ApiRequester _requester; 33 final commons.ApiRequester _requester;
34 34
35 AppsLocationsResourceApi get locations => new AppsLocationsResourceApi(_reques ter);
35 AppsModulesResourceApi get modules => new AppsModulesResourceApi(_requester); 36 AppsModulesResourceApi get modules => new AppsModulesResourceApi(_requester);
36 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req uester); 37 AppsOperationsResourceApi get operations => new AppsOperationsResourceApi(_req uester);
37 38
38 AppsResourceApi(commons.ApiRequester client) : 39 AppsResourceApi(commons.ApiRequester client) :
39 _requester = client; 40 _requester = client;
40 41
41 /** 42 /**
43 * Creates an App Engine application for a Google Cloud Platform project. This
44 * requires a project that excludes an App Engine application. For details
45 * about creating a project without an application, see the [Google Cloud
46 * Resource Manager create project
47 * topic](https://cloud.google.com/resource-manager/docs/creating-project).
48 *
49 * [request] - The metadata request object.
50 *
51 * Request parameters:
52 *
53 * Completes with a [Operation].
54 *
55 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
56 * error.
57 *
58 * If the used [http.Client] completes with an error when making a REST call,
59 * this method will complete with the same error.
60 */
61 async.Future<Operation> create(Application request) {
62 var _url = null;
63 var _queryParams = new core.Map();
64 var _uploadMedia = null;
65 var _uploadOptions = null;
66 var _downloadOptions = commons.DownloadOptions.Metadata;
67 var _body = null;
68
69 if (request != null) {
70 _body = convert.JSON.encode((request).toJson());
71 }
72
73 _url = 'v1beta4/apps';
74
75 var _response = _requester.request(_url,
76 "POST",
77 body: _body,
78 queryParams: _queryParams,
79 uploadOptions: _uploadOptions,
80 uploadMedia: _uploadMedia,
81 downloadOptions: _downloadOptions);
82 return _response.then((data) => new Operation.fromJson(data));
83 }
84
85 /**
42 * Gets information about an application. 86 * Gets information about an application.
43 * 87 *
44 * Request parameters: 88 * Request parameters:
45 * 89 *
46 * [appsId] - Part of `name`. Name of the application to get. For example: 90 * [appsId] - Part of `name`. Name of the application to get. For example:
47 * "apps/myapp". 91 * "apps/myapp".
48 * 92 *
49 * [ensureResourcesExist] - Certain resources associated with an application 93 * [ensureResourcesExist] - Certain resources associated with an application
50 * are created on-demand. Controls whether these resources should be created 94 * are created on-demand. Controls whether these resources should be created
51 * when performing the `GET` operation. If specified and any resources could 95 * when performing the `GET` operation. If specified and any resources could
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 queryParams: _queryParams, 127 queryParams: _queryParams,
84 uploadOptions: _uploadOptions, 128 uploadOptions: _uploadOptions,
85 uploadMedia: _uploadMedia, 129 uploadMedia: _uploadMedia,
86 downloadOptions: _downloadOptions); 130 downloadOptions: _downloadOptions);
87 return _response.then((data) => new Application.fromJson(data)); 131 return _response.then((data) => new Application.fromJson(data));
88 } 132 }
89 133
90 } 134 }
91 135
92 136
137 class AppsLocationsResourceApi {
138 final commons.ApiRequester _requester;
139
140 AppsLocationsResourceApi(commons.ApiRequester client) :
141 _requester = client;
142
143 /**
144 * Get information about a location.
145 *
146 * Request parameters:
147 *
148 * [appsId] - Part of `name`. Resource name for the location.
149 *
150 * [locationsId] - Part of `name`. See documentation of `appsId`.
151 *
152 * Completes with a [Location].
153 *
154 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
155 * error.
156 *
157 * If the used [http.Client] completes with an error when making a REST call,
158 * this method will complete with the same error.
159 */
160 async.Future<Location> get(core.String appsId, core.String locationsId) {
161 var _url = null;
162 var _queryParams = new core.Map();
163 var _uploadMedia = null;
164 var _uploadOptions = null;
165 var _downloadOptions = commons.DownloadOptions.Metadata;
166 var _body = null;
167
168 if (appsId == null) {
169 throw new core.ArgumentError("Parameter appsId is required.");
170 }
171 if (locationsId == null) {
172 throw new core.ArgumentError("Parameter locationsId is required.");
173 }
174
175 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati ons/' + commons.Escaper.ecapeVariable('$locationsId');
176
177 var _response = _requester.request(_url,
178 "GET",
179 body: _body,
180 queryParams: _queryParams,
181 uploadOptions: _uploadOptions,
182 uploadMedia: _uploadMedia,
183 downloadOptions: _downloadOptions);
184 return _response.then((data) => new Location.fromJson(data));
185 }
186
187 /**
188 * Lists information about the supported locations for this service.
189 *
190 * Request parameters:
191 *
192 * [appsId] - Part of `name`. The resource that owns the locations collection,
193 * if applicable.
194 *
195 * [filter] - The standard list filter.
196 *
197 * [pageSize] - The standard list page size.
198 *
199 * [pageToken] - The standard list page token.
200 *
201 * Completes with a [ListLocationsResponse].
202 *
203 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
204 * error.
205 *
206 * If the used [http.Client] completes with an error when making a REST call,
207 * this method will complete with the same error.
208 */
209 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt er, core.int pageSize, core.String pageToken}) {
210 var _url = null;
211 var _queryParams = new core.Map();
212 var _uploadMedia = null;
213 var _uploadOptions = null;
214 var _downloadOptions = commons.DownloadOptions.Metadata;
215 var _body = null;
216
217 if (appsId == null) {
218 throw new core.ArgumentError("Parameter appsId is required.");
219 }
220 if (filter != null) {
221 _queryParams["filter"] = [filter];
222 }
223 if (pageSize != null) {
224 _queryParams["pageSize"] = ["${pageSize}"];
225 }
226 if (pageToken != null) {
227 _queryParams["pageToken"] = [pageToken];
228 }
229
230 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati ons';
231
232 var _response = _requester.request(_url,
233 "GET",
234 body: _body,
235 queryParams: _queryParams,
236 uploadOptions: _uploadOptions,
237 uploadMedia: _uploadMedia,
238 downloadOptions: _downloadOptions);
239 return _response.then((data) => new ListLocationsResponse.fromJson(data));
240 }
241
242 }
243
244
93 class AppsModulesResourceApi { 245 class AppsModulesResourceApi {
94 final commons.ApiRequester _requester; 246 final commons.ApiRequester _requester;
95 247
96 AppsModulesVersionsResourceApi get versions => new AppsModulesVersionsResource Api(_requester); 248 AppsModulesVersionsResourceApi get versions => new AppsModulesVersionsResource Api(_requester);
97 249
98 AppsModulesResourceApi(commons.ApiRequester client) : 250 AppsModulesResourceApi(commons.ApiRequester client) :
99 _requester = client; 251 _requester = client;
100 252
101 /** 253 /**
102 * Deletes a module and all enclosed versions. 254 * Deletes a module and all enclosed versions.
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 } 760 }
609 761
610 762
611 class AppsModulesVersionsInstancesResourceApi { 763 class AppsModulesVersionsInstancesResourceApi {
612 final commons.ApiRequester _requester; 764 final commons.ApiRequester _requester;
613 765
614 AppsModulesVersionsInstancesResourceApi(commons.ApiRequester client) : 766 AppsModulesVersionsInstancesResourceApi(commons.ApiRequester client) :
615 _requester = client; 767 _requester = client;
616 768
617 /** 769 /**
770 * Enable debugging of this VM instance. This call allows you to SSH to the
771 * VM. While the VM is in debug mode, it continues to serve live traffic.
772 * After you're done debugging an instance, delete the instance; the system
773 * creates a new instance when needed. You can't debug a non-VM instance.
774 *
775 * [request] - The metadata request object.
776 *
777 * Request parameters:
778 *
779 * [appsId] - Part of `name`. Name of the resource requested. For example:
780 * "apps/myapp/modules/default/versions/v1/instances/instance-1".
781 *
782 * [modulesId] - Part of `name`. See documentation of `appsId`.
783 *
784 * [versionsId] - Part of `name`. See documentation of `appsId`.
785 *
786 * [instancesId] - Part of `name`. See documentation of `appsId`.
787 *
788 * Completes with a [Operation].
789 *
790 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
791 * error.
792 *
793 * If the used [http.Client] completes with an error when making a REST call,
794 * this method will complete with the same error.
795 */
796 async.Future<Operation> debug(DebugInstanceRequest request, core.String appsId , core.String modulesId, core.String versionsId, core.String instancesId) {
797 var _url = null;
798 var _queryParams = new core.Map();
799 var _uploadMedia = null;
800 var _uploadOptions = null;
801 var _downloadOptions = commons.DownloadOptions.Metadata;
802 var _body = null;
803
804 if (request != null) {
805 _body = convert.JSON.encode((request).toJson());
806 }
807 if (appsId == null) {
808 throw new core.ArgumentError("Parameter appsId is required.");
809 }
810 if (modulesId == null) {
811 throw new core.ArgumentError("Parameter modulesId is required.");
812 }
813 if (versionsId == null) {
814 throw new core.ArgumentError("Parameter versionsId is required.");
815 }
816 if (instancesId == null) {
817 throw new core.ArgumentError("Parameter instancesId is required.");
818 }
819
820 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap er.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable( '$instancesId') + ':debug';
821
822 var _response = _requester.request(_url,
823 "POST",
824 body: _body,
825 queryParams: _queryParams,
826 uploadOptions: _uploadOptions,
827 uploadMedia: _uploadMedia,
828 downloadOptions: _downloadOptions);
829 return _response.then((data) => new Operation.fromJson(data));
830 }
831
832 /**
833 * Stops a running instance.
834 *
835 * Request parameters:
836 *
837 * [appsId] - Part of `name`. Name of the resource requested. For example:
838 * "apps/myapp/modules/default/versions/v1/instances/instance-1".
839 *
840 * [modulesId] - Part of `name`. See documentation of `appsId`.
841 *
842 * [versionsId] - Part of `name`. See documentation of `appsId`.
843 *
844 * [instancesId] - Part of `name`. See documentation of `appsId`.
845 *
846 * Completes with a [Operation].
847 *
848 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
849 * error.
850 *
851 * If the used [http.Client] completes with an error when making a REST call,
852 * this method will complete with the same error.
853 */
854 async.Future<Operation> delete(core.String appsId, core.String modulesId, core .String versionsId, core.String instancesId) {
855 var _url = null;
856 var _queryParams = new core.Map();
857 var _uploadMedia = null;
858 var _uploadOptions = null;
859 var _downloadOptions = commons.DownloadOptions.Metadata;
860 var _body = null;
861
862 if (appsId == null) {
863 throw new core.ArgumentError("Parameter appsId is required.");
864 }
865 if (modulesId == null) {
866 throw new core.ArgumentError("Parameter modulesId is required.");
867 }
868 if (versionsId == null) {
869 throw new core.ArgumentError("Parameter versionsId is required.");
870 }
871 if (instancesId == null) {
872 throw new core.ArgumentError("Parameter instancesId is required.");
873 }
874
875 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap er.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable( '$instancesId');
876
877 var _response = _requester.request(_url,
878 "DELETE",
879 body: _body,
880 queryParams: _queryParams,
881 uploadOptions: _uploadOptions,
882 uploadMedia: _uploadMedia,
883 downloadOptions: _downloadOptions);
884 return _response.then((data) => new Operation.fromJson(data));
885 }
886
887 /**
888 * Gets instance information.
889 *
890 * Request parameters:
891 *
892 * [appsId] - Part of `name`. Name of the resource requested. For example:
893 * "apps/myapp/modules/default/versions/v1/instances/instance-1".
894 *
895 * [modulesId] - Part of `name`. See documentation of `appsId`.
896 *
897 * [versionsId] - Part of `name`. See documentation of `appsId`.
898 *
899 * [instancesId] - Part of `name`. See documentation of `appsId`.
900 *
901 * Completes with a [Instance].
902 *
903 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
904 * error.
905 *
906 * If the used [http.Client] completes with an error when making a REST call,
907 * this method will complete with the same error.
908 */
909 async.Future<Instance> get(core.String appsId, core.String modulesId, core.Str ing versionsId, core.String instancesId) {
910 var _url = null;
911 var _queryParams = new core.Map();
912 var _uploadMedia = null;
913 var _uploadOptions = null;
914 var _downloadOptions = commons.DownloadOptions.Metadata;
915 var _body = null;
916
917 if (appsId == null) {
918 throw new core.ArgumentError("Parameter appsId is required.");
919 }
920 if (modulesId == null) {
921 throw new core.ArgumentError("Parameter modulesId is required.");
922 }
923 if (versionsId == null) {
924 throw new core.ArgumentError("Parameter versionsId is required.");
925 }
926 if (instancesId == null) {
927 throw new core.ArgumentError("Parameter instancesId is required.");
928 }
929
930 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions/' + commons.Escap er.ecapeVariable('$versionsId') + '/instances/' + commons.Escaper.ecapeVariable( '$instancesId');
931
932 var _response = _requester.request(_url,
933 "GET",
934 body: _body,
935 queryParams: _queryParams,
936 uploadOptions: _uploadOptions,
937 uploadMedia: _uploadMedia,
938 downloadOptions: _downloadOptions);
939 return _response.then((data) => new Instance.fromJson(data));
940 }
941
942 /**
618 * Lists the instances of a version. 943 * Lists the instances of a version.
619 * 944 *
620 * Request parameters: 945 * Request parameters:
621 * 946 *
622 * [appsId] - Part of `name`. Name of the resource requested. For example: 947 * [appsId] - Part of `name`. Name of the resource requested. For example:
623 * "apps/myapp/modules/default/versions/v1". 948 * "apps/myapp/modules/default/versions/v1".
624 * 949 *
625 * [modulesId] - Part of `name`. See documentation of `appsId`. 950 * [modulesId] - Part of `name`. See documentation of `appsId`.
626 * 951 *
627 * [versionsId] - Part of `name`. See documentation of `appsId`. 952 * [versionsId] - Part of `name`. See documentation of `appsId`.
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 /** 1243 /**
919 * The hostname used to reach the application, as resolved by App Engine. 1244 * The hostname used to reach the application, as resolved by App Engine.
920 * @OutputOnly 1245 * @OutputOnly
921 */ 1246 */
922 core.String defaultHostname; 1247 core.String defaultHostname;
923 /** 1248 /**
924 * HTTP path dispatch rules for requests to the app that do not explicitly 1249 * HTTP path dispatch rules for requests to the app that do not explicitly
925 * target a module or version. The rules are order-dependent. @OutputOnly 1250 * target a module or version. The rules are order-dependent. @OutputOnly
926 */ 1251 */
927 core.List<UrlDispatchRule> dispatchRules; 1252 core.List<UrlDispatchRule> dispatchRules;
928 /** The relative name/path of the application. Example: "myapp". */ 1253 /**
1254 * The identifier of the Application resource. This identifier is equivalent
1255 * to the project ID of the Google Cloud Platform project where you want to
1256 * deploy your application. Example: "myapp".
1257 */
929 core.String id; 1258 core.String id;
930 /** 1259 /**
931 * The location from which the application will be run. Application instances 1260 * The location from which the application will be run. Application instances
932 * will run out of data centers in the chosen location and all of the 1261 * will run out of data centers in the chosen location and all of the
933 * application's End User Content will be stored at rest. The default is 1262 * application's End User Content will be stored at rest. The default is
934 * "us-central". Choices are: "us-central" - Central US "europe-west" - 1263 * "us-central". Choices are: "us-central" - Central US "europe-west" -
935 * Western Europe "us-east1" - Eastern US 1264 * Western Europe "us-east1" - Eastern US
936 */ 1265 */
937 core.String location; 1266 core.String location;
938 /** 1267 /**
939 * The full path to the application in the API. Example: "apps/myapp". 1268 * The full path to the Application resource in the API. Example:
940 * @OutputOnly 1269 * "apps/myapp". @OutputOnly
941 */ 1270 */
942 core.String name; 1271 core.String name;
943 1272
944 Application(); 1273 Application();
945 1274
946 Application.fromJson(core.Map _json) { 1275 Application.fromJson(core.Map _json) {
947 if (_json.containsKey("authDomain")) { 1276 if (_json.containsKey("authDomain")) {
948 authDomain = _json["authDomain"]; 1277 authDomain = _json["authDomain"];
949 } 1278 }
950 if (_json.containsKey("codeBucket")) { 1279 if (_json.containsKey("codeBucket")) {
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 if (aggregationWindowLength != null) { 1564 if (aggregationWindowLength != null) {
1236 _json["aggregationWindowLength"] = aggregationWindowLength; 1565 _json["aggregationWindowLength"] = aggregationWindowLength;
1237 } 1566 }
1238 if (targetUtilization != null) { 1567 if (targetUtilization != null) {
1239 _json["targetUtilization"] = targetUtilization; 1568 _json["targetUtilization"] = targetUtilization;
1240 } 1569 }
1241 return _json; 1570 return _json;
1242 } 1571 }
1243 } 1572 }
1244 1573
1574 /** Request message for `Instances.DebugInstance`. */
1575 class DebugInstanceRequest {
1576
1577 DebugInstanceRequest();
1578
1579 DebugInstanceRequest.fromJson(core.Map _json) {
1580 }
1581
1582 core.Map toJson() {
1583 var _json = new core.Map();
1584 return _json;
1585 }
1586 }
1587
1245 /** Code and application artifacts used to deploy a version to App Engine. */ 1588 /** Code and application artifacts used to deploy a version to App Engine. */
1246 class Deployment { 1589 class Deployment {
1247 /** 1590 /**
1248 * If supplied, a docker (container) image which should be used to start the 1591 * If supplied, a docker (container) image which should be used to start the
1249 * application. Only applicable to the 'vm' runtime. 1592 * application. Only applicable to the 'vm' runtime.
1250 */ 1593 */
1251 ContainerInfo container; 1594 ContainerInfo container;
1252 /** 1595 /**
1253 * A manifest of files stored in Google Cloud Storage which should be included 1596 * A manifest of files stored in Google Cloud Storage which should be included
1254 * as part of this application. All files must be readable using the 1597 * as part of this application. All files must be readable using the
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 if (instances != null) { 2071 if (instances != null) {
1729 _json["instances"] = instances.map((value) => (value).toJson()).toList(); 2072 _json["instances"] = instances.map((value) => (value).toJson()).toList();
1730 } 2073 }
1731 if (nextPageToken != null) { 2074 if (nextPageToken != null) {
1732 _json["nextPageToken"] = nextPageToken; 2075 _json["nextPageToken"] = nextPageToken;
1733 } 2076 }
1734 return _json; 2077 return _json;
1735 } 2078 }
1736 } 2079 }
1737 2080
2081 /** The response message for LocationService.ListLocations. */
2082 class ListLocationsResponse {
2083 /** A list of locations that matches the specified filter in the request. */
2084 core.List<Location> locations;
2085 /** The standard List next-page token. */
2086 core.String nextPageToken;
2087
2088 ListLocationsResponse();
2089
2090 ListLocationsResponse.fromJson(core.Map _json) {
2091 if (_json.containsKey("locations")) {
2092 locations = _json["locations"].map((value) => new Location.fromJson(value) ).toList();
2093 }
2094 if (_json.containsKey("nextPageToken")) {
2095 nextPageToken = _json["nextPageToken"];
2096 }
2097 }
2098
2099 core.Map toJson() {
2100 var _json = new core.Map();
2101 if (locations != null) {
2102 _json["locations"] = locations.map((value) => (value).toJson()).toList();
2103 }
2104 if (nextPageToken != null) {
2105 _json["nextPageToken"] = nextPageToken;
2106 }
2107 return _json;
2108 }
2109 }
2110
1738 /** Response message for `Modules.ListModules`. */ 2111 /** Response message for `Modules.ListModules`. */
1739 class ListModulesResponse { 2112 class ListModulesResponse {
1740 /** The modules belonging to the requested application. */ 2113 /** The modules belonging to the requested application. */
1741 core.List<Module> modules; 2114 core.List<Module> modules;
1742 /** Continuation token for fetching the next page of results. */ 2115 /** Continuation token for fetching the next page of results. */
1743 core.String nextPageToken; 2116 core.String nextPageToken;
1744 2117
1745 ListModulesResponse(); 2118 ListModulesResponse();
1746 2119
1747 ListModulesResponse.fromJson(core.Map _json) { 2120 ListModulesResponse.fromJson(core.Map _json) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1818 if (nextPageToken != null) { 2191 if (nextPageToken != null) {
1819 _json["nextPageToken"] = nextPageToken; 2192 _json["nextPageToken"] = nextPageToken;
1820 } 2193 }
1821 if (versions != null) { 2194 if (versions != null) {
1822 _json["versions"] = versions.map((value) => (value).toJson()).toList(); 2195 _json["versions"] = versions.map((value) => (value).toJson()).toList();
1823 } 2196 }
1824 return _json; 2197 return _json;
1825 } 2198 }
1826 } 2199 }
1827 2200
2201 /** A resource that represents Google Cloud Platform location. */
2202 class Location {
2203 /**
2204 * Cross-service attributes for the location. For example
2205 * {"cloud.googleapis.com/region": "us-east1"}
2206 */
2207 core.Map<core.String, core.String> labels;
2208 /**
2209 * Service-specific metadata. For example the available capacity at the given
2210 * location.
2211 *
2212 * The values for Object must be JSON objects. It can consist of `num`,
2213 * `String`, `bool` and `null` as well as `Map` and `List` values.
2214 */
2215 core.Map<core.String, core.Object> metadata;
2216 /**
2217 * Resource name for the location, which may vary between implementations.
2218 * Example: `"projects/example-project/locations/us-east1"`
2219 */
2220 core.String name;
2221
2222 Location();
2223
2224 Location.fromJson(core.Map _json) {
2225 if (_json.containsKey("labels")) {
2226 labels = _json["labels"];
2227 }
2228 if (_json.containsKey("metadata")) {
2229 metadata = _json["metadata"];
2230 }
2231 if (_json.containsKey("name")) {
2232 name = _json["name"];
2233 }
2234 }
2235
2236 core.Map toJson() {
2237 var _json = new core.Map();
2238 if (labels != null) {
2239 _json["labels"] = labels;
2240 }
2241 if (metadata != null) {
2242 _json["metadata"] = metadata;
2243 }
2244 if (name != null) {
2245 _json["name"] = name;
2246 }
2247 return _json;
2248 }
2249 }
2250
1828 /** Metadata for the given google.cloud.location.Location. */ 2251 /** Metadata for the given google.cloud.location.Location. */
1829 class LocationMetadata { 2252 class LocationMetadata {
1830 2253
1831 LocationMetadata(); 2254 LocationMetadata();
1832 2255
1833 LocationMetadata.fromJson(core.Map _json) { 2256 LocationMetadata.fromJson(core.Map _json) {
1834 } 2257 }
1835 2258
1836 core.Map toJson() { 2259 core.Map toJson() {
1837 var _json = new core.Map(); 2260 var _json = new core.Map();
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after
3223 } 3646 }
3224 if (threadsafe != null) { 3647 if (threadsafe != null) {
3225 _json["threadsafe"] = threadsafe; 3648 _json["threadsafe"] = threadsafe;
3226 } 3649 }
3227 if (vm != null) { 3650 if (vm != null) {
3228 _json["vm"] = vm; 3651 _json["vm"] = vm;
3229 } 3652 }
3230 return _json; 3653 return _json;
3231 } 3654 }
3232 } 3655 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart ('k') | generated/googleapis_beta/lib/appengine/v1beta5.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698