OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.appengine.v1beta5; | 3 library googleapis_beta.appengine.v1beta5; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 } | 252 } |
253 | 253 |
254 /** | 254 /** |
255 * Lists information about the supported locations for this service. | 255 * Lists information about the supported locations for this service. |
256 * | 256 * |
257 * Request parameters: | 257 * Request parameters: |
258 * | 258 * |
259 * [appsId] - Part of `name`. The resource that owns the locations collection, | 259 * [appsId] - Part of `name`. The resource that owns the locations collection, |
260 * if applicable. | 260 * if applicable. |
261 * | 261 * |
262 * [filter] - The standard list filter. | |
263 * | |
264 * [pageToken] - The standard list page token. | 262 * [pageToken] - The standard list page token. |
265 * | 263 * |
266 * [pageSize] - The standard list page size. | 264 * [pageSize] - The standard list page size. |
267 * | 265 * |
| 266 * [filter] - The standard list filter. |
| 267 * |
268 * Completes with a [ListLocationsResponse]. | 268 * Completes with a [ListLocationsResponse]. |
269 * | 269 * |
270 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 270 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
271 * error. | 271 * error. |
272 * | 272 * |
273 * If the used [http.Client] completes with an error when making a REST call, | 273 * If the used [http.Client] completes with an error when making a REST call, |
274 * this method will complete with the same error. | 274 * this method will complete with the same error. |
275 */ | 275 */ |
276 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt
er, core.String pageToken, core.int pageSize}) { | 276 async.Future<ListLocationsResponse> list(core.String appsId, {core.String page
Token, core.int pageSize, core.String filter}) { |
277 var _url = null; | 277 var _url = null; |
278 var _queryParams = new core.Map(); | 278 var _queryParams = new core.Map(); |
279 var _uploadMedia = null; | 279 var _uploadMedia = null; |
280 var _uploadOptions = null; | 280 var _uploadOptions = null; |
281 var _downloadOptions = commons.DownloadOptions.Metadata; | 281 var _downloadOptions = commons.DownloadOptions.Metadata; |
282 var _body = null; | 282 var _body = null; |
283 | 283 |
284 if (appsId == null) { | 284 if (appsId == null) { |
285 throw new core.ArgumentError("Parameter appsId is required."); | 285 throw new core.ArgumentError("Parameter appsId is required."); |
286 } | 286 } |
287 if (filter != null) { | |
288 _queryParams["filter"] = [filter]; | |
289 } | |
290 if (pageToken != null) { | 287 if (pageToken != null) { |
291 _queryParams["pageToken"] = [pageToken]; | 288 _queryParams["pageToken"] = [pageToken]; |
292 } | 289 } |
293 if (pageSize != null) { | 290 if (pageSize != null) { |
294 _queryParams["pageSize"] = ["${pageSize}"]; | 291 _queryParams["pageSize"] = ["${pageSize}"]; |
295 } | 292 } |
| 293 if (filter != null) { |
| 294 _queryParams["filter"] = [filter]; |
| 295 } |
296 | 296 |
297 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati
ons'; | 297 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locati
ons'; |
298 | 298 |
299 var _response = _requester.request(_url, | 299 var _response = _requester.request(_url, |
300 "GET", | 300 "GET", |
301 body: _body, | 301 body: _body, |
302 queryParams: _queryParams, | 302 queryParams: _queryParams, |
303 uploadOptions: _uploadOptions, | 303 uploadOptions: _uploadOptions, |
304 uploadMedia: _uploadMedia, | 304 uploadMedia: _uploadMedia, |
305 downloadOptions: _downloadOptions); | 305 downloadOptions: _downloadOptions); |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 } | 525 } |
526 | 526 |
527 /** | 527 /** |
528 * Lists all the services in the application. | 528 * Lists all the services in the application. |
529 * | 529 * |
530 * Request parameters: | 530 * Request parameters: |
531 * | 531 * |
532 * [appsId] - Part of `name`. Name of the resource requested. Example: | 532 * [appsId] - Part of `name`. Name of the resource requested. Example: |
533 * apps/myapp. | 533 * apps/myapp. |
534 * | 534 * |
| 535 * [pageToken] - Continuation token for fetching the next page of results. |
| 536 * |
535 * [pageSize] - Maximum results to return per page. | 537 * [pageSize] - Maximum results to return per page. |
536 * | 538 * |
537 * [pageToken] - Continuation token for fetching the next page of results. | |
538 * | |
539 * Completes with a [ListServicesResponse]. | 539 * Completes with a [ListServicesResponse]. |
540 * | 540 * |
541 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 541 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
542 * error. | 542 * error. |
543 * | 543 * |
544 * If the used [http.Client] completes with an error when making a REST call, | 544 * If the used [http.Client] completes with an error when making a REST call, |
545 * this method will complete with the same error. | 545 * this method will complete with the same error. |
546 */ | 546 */ |
547 async.Future<ListServicesResponse> list(core.String appsId, {core.int pageSize
, core.String pageToken}) { | 547 async.Future<ListServicesResponse> list(core.String appsId, {core.String pageT
oken, core.int pageSize}) { |
548 var _url = null; | 548 var _url = null; |
549 var _queryParams = new core.Map(); | 549 var _queryParams = new core.Map(); |
550 var _uploadMedia = null; | 550 var _uploadMedia = null; |
551 var _uploadOptions = null; | 551 var _uploadOptions = null; |
552 var _downloadOptions = commons.DownloadOptions.Metadata; | 552 var _downloadOptions = commons.DownloadOptions.Metadata; |
553 var _body = null; | 553 var _body = null; |
554 | 554 |
555 if (appsId == null) { | 555 if (appsId == null) { |
556 throw new core.ArgumentError("Parameter appsId is required."); | 556 throw new core.ArgumentError("Parameter appsId is required."); |
557 } | 557 } |
| 558 if (pageToken != null) { |
| 559 _queryParams["pageToken"] = [pageToken]; |
| 560 } |
558 if (pageSize != null) { | 561 if (pageSize != null) { |
559 _queryParams["pageSize"] = ["${pageSize}"]; | 562 _queryParams["pageSize"] = ["${pageSize}"]; |
560 } | 563 } |
561 if (pageToken != null) { | |
562 _queryParams["pageToken"] = [pageToken]; | |
563 } | |
564 | 564 |
565 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es'; | 565 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/servic
es'; |
566 | 566 |
567 var _response = _requester.request(_url, | 567 var _response = _requester.request(_url, |
568 "GET", | 568 "GET", |
569 body: _body, | 569 body: _body, |
570 queryParams: _queryParams, | 570 queryParams: _queryParams, |
571 uploadOptions: _uploadOptions, | 571 uploadOptions: _uploadOptions, |
572 uploadMedia: _uploadMedia, | 572 uploadMedia: _uploadMedia, |
573 downloadOptions: _downloadOptions); | 573 downloadOptions: _downloadOptions); |
(...skipping 3587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4161 } | 4161 } |
4162 if (sizeGb != null) { | 4162 if (sizeGb != null) { |
4163 _json["sizeGb"] = sizeGb; | 4163 _json["sizeGb"] = sizeGb; |
4164 } | 4164 } |
4165 if (volumeType != null) { | 4165 if (volumeType != null) { |
4166 _json["volumeType"] = volumeType; | 4166 _json["volumeType"] = volumeType; |
4167 } | 4167 } |
4168 return _json; | 4168 return _json; |
4169 } | 4169 } |
4170 } | 4170 } |
OLD | NEW |