| 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 358 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 * [pageSize] - The standard list page size. | |
| 380 * | |
| 381 * [filter] - The standard list filter. | 379 * [filter] - The standard list filter. |
| 382 * | 380 * |
| 383 * [pageToken] - The standard list page token. | 381 * [pageToken] - The standard list page token. |
| 384 * | 382 * |
| 383 * [pageSize] - The standard list page size. |
| 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.int pageSi
ze, core.String filter, core.String pageToken}) { | 393 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.String pageToken, core.int pageSize}) { |
| 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 (pageSize != null) { | |
| 405 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 406 } | |
| 407 if (filter != null) { | 404 if (filter != null) { |
| 408 _queryParams["filter"] = [filter]; | 405 _queryParams["filter"] = [filter]; |
| 409 } | 406 } |
| 410 if (pageToken != null) { | 407 if (pageToken != null) { |
| 411 _queryParams["pageToken"] = [pageToken]; | 408 _queryParams["pageToken"] = [pageToken]; |
| 412 } | 409 } |
| 410 if (pageSize != null) { |
| 411 _queryParams["pageSize"] = ["${pageSize}"]; |
| 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 102 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 * [pageSize] - Maximum results to return per page. |
| 536 * |
| 535 * [pageToken] - Continuation token for fetching the next page of results. | 537 * [pageToken] - Continuation token for fetching the next page of results. |
| 536 * | 538 * |
| 537 * [pageSize] - Maximum results to return per page. | |
| 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.String pageT
oken, core.int pageSize}) { | 547 async.Future<ListServicesResponse> list(core.String appsId, {core.int pageSize
, core.String pageToken}) { |
| 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 (pageSize != null) { |
| 559 _queryParams["pageSize"] = ["${pageSize}"]; |
| 560 } |
| 558 if (pageToken != null) { | 561 if (pageToken != null) { |
| 559 _queryParams["pageToken"] = [pageToken]; | 562 _queryParams["pageToken"] = [pageToken]; |
| 560 } | 563 } |
| 561 if (pageSize != null) { | |
| 562 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 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 2935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3509 * Asynchronous operations. If an API call embeds asynchronous operation results | 3509 * Asynchronous operations. If an API call embeds asynchronous operation results |
| 3510 * in its response, the status of those operations should be represented | 3510 * in its response, the status of those operations should be represented |
| 3511 * directly using the Status message. | 3511 * directly using the Status message. |
| 3512 * Logging. If some API errors are stored in logs, the message Status could be | 3512 * Logging. If some API errors are stored in logs, the message Status could be |
| 3513 * used directly after any stripping needed for security/privacy reasons. | 3513 * used directly after any stripping needed for security/privacy reasons. |
| 3514 */ | 3514 */ |
| 3515 class Status { | 3515 class Status { |
| 3516 /** The status code, which should be an enum value of google.rpc.Code. */ | 3516 /** The status code, which should be an enum value of google.rpc.Code. */ |
| 3517 core.int code; | 3517 core.int code; |
| 3518 /** | 3518 /** |
| 3519 * A list of messages that carry the error details. There will be a common set | 3519 * A list of messages that carry the error details. There is a common set of |
| 3520 * of message types for APIs to use. | 3520 * message types for APIs to use. |
| 3521 * | 3521 * |
| 3522 * The values for Object must be JSON objects. It can consist of `num`, | 3522 * The values for Object must be JSON objects. It can consist of `num`, |
| 3523 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3523 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 3524 */ | 3524 */ |
| 3525 core.List<core.Map<core.String, core.Object>> details; | 3525 core.List<core.Map<core.String, core.Object>> details; |
| 3526 /** | 3526 /** |
| 3527 * A developer-facing error message, which should be in English. Any | 3527 * A developer-facing error message, which should be in English. Any |
| 3528 * user-facing error message should be localized and sent in the | 3528 * user-facing error message should be localized and sent in the |
| 3529 * google.rpc.Status.details field, or localized by the client. | 3529 * google.rpc.Status.details field, or localized by the client. |
| 3530 */ | 3530 */ |
| (...skipping 630 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 |