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 * |
262 * [pageToken] - The standard list page token. | 264 * [pageToken] - The standard list page token. |
263 * | 265 * |
264 * [pageSize] - The standard list page size. | 266 * [pageSize] - The standard list page size. |
265 * | 267 * |
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 page
Token, core.int pageSize, core.String filter}) { | 276 async.Future<ListLocationsResponse> list(core.String appsId, {core.String filt
er, core.String pageToken, core.int pageSize}) { |
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 } |
287 if (pageToken != null) { | 290 if (pageToken != null) { |
288 _queryParams["pageToken"] = [pageToken]; | 291 _queryParams["pageToken"] = [pageToken]; |
289 } | 292 } |
290 if (pageSize != null) { | 293 if (pageSize != null) { |
291 _queryParams["pageSize"] = ["${pageSize}"]; | 294 _queryParams["pageSize"] = ["${pageSize}"]; |
292 } | 295 } |
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 * binding, API services can add a binding such as "/v1/{name=users / * | 369 * binding, API services can add a binding such as "/v1/{name=users / * |
370 * }/operations" to their service configuration. For backwards compatibility, | 370 * }/operations" to their service configuration. For backwards compatibility, |
371 * the default name includes the operations collection id, however overriding | 371 * the default name includes the operations collection id, however overriding |
372 * users must ensure the name binding is the parent resource, without the | 372 * users must ensure the name binding is the parent resource, without the |
373 * operations collection id. | 373 * operations collection id. |
374 * | 374 * |
375 * Request parameters: | 375 * Request parameters: |
376 * | 376 * |
377 * [appsId] - Part of `name`. The name of the operation's parent resource. | 377 * [appsId] - Part of `name`. The name of the operation's parent resource. |
378 * | 378 * |
379 * [pageToken] - The standard list page token. | |
380 * | |
381 * [pageSize] - The standard list page size. | 379 * [pageSize] - The standard list page size. |
382 * | 380 * |
383 * [filter] - The standard list filter. | 381 * [filter] - The standard list filter. |
384 * | 382 * |
| 383 * [pageToken] - The standard list page token. |
| 384 * |
385 * Completes with a [ListOperationsResponse]. | 385 * Completes with a [ListOperationsResponse]. |
386 * | 386 * |
387 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 387 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
388 * error. | 388 * error. |
389 * | 389 * |
390 * If the used [http.Client] completes with an error when making a REST call, | 390 * If the used [http.Client] completes with an error when making a REST call, |
391 * this method will complete with the same error. | 391 * this method will complete with the same error. |
392 */ | 392 */ |
393 async.Future<ListOperationsResponse> list(core.String appsId, {core.String pag
eToken, core.int pageSize, core.String filter}) { | 393 async.Future<ListOperationsResponse> list(core.String appsId, {core.int pageSi
ze, core.String filter, core.String pageToken}) { |
394 var _url = null; | 394 var _url = null; |
395 var _queryParams = new core.Map(); | 395 var _queryParams = new core.Map(); |
396 var _uploadMedia = null; | 396 var _uploadMedia = null; |
397 var _uploadOptions = null; | 397 var _uploadOptions = null; |
398 var _downloadOptions = commons.DownloadOptions.Metadata; | 398 var _downloadOptions = commons.DownloadOptions.Metadata; |
399 var _body = null; | 399 var _body = null; |
400 | 400 |
401 if (appsId == null) { | 401 if (appsId == null) { |
402 throw new core.ArgumentError("Parameter appsId is required."); | 402 throw new core.ArgumentError("Parameter appsId is required."); |
403 } | 403 } |
404 if (pageToken != null) { | |
405 _queryParams["pageToken"] = [pageToken]; | |
406 } | |
407 if (pageSize != null) { | 404 if (pageSize != null) { |
408 _queryParams["pageSize"] = ["${pageSize}"]; | 405 _queryParams["pageSize"] = ["${pageSize}"]; |
409 } | 406 } |
410 if (filter != null) { | 407 if (filter != null) { |
411 _queryParams["filter"] = [filter]; | 408 _queryParams["filter"] = [filter]; |
412 } | 409 } |
| 410 if (pageToken != null) { |
| 411 _queryParams["pageToken"] = [pageToken]; |
| 412 } |
413 | 413 |
414 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat
ions'; | 414 _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat
ions'; |
415 | 415 |
416 var _response = _requester.request(_url, | 416 var _response = _requester.request(_url, |
417 "GET", | 417 "GET", |
418 body: _body, | 418 body: _body, |
419 queryParams: _queryParams, | 419 queryParams: _queryParams, |
420 uploadOptions: _uploadOptions, | 420 uploadOptions: _uploadOptions, |
421 uploadMedia: _uploadMedia, | 421 uploadMedia: _uploadMedia, |
422 downloadOptions: _downloadOptions); | 422 downloadOptions: _downloadOptions); |
(...skipping 3738 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 |