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.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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 } | 407 } |
408 | 408 |
409 /** | 409 /** |
410 * Lists all the modules in the application. | 410 * Lists all the modules in the application. |
411 * | 411 * |
412 * Request parameters: | 412 * Request parameters: |
413 * | 413 * |
414 * [appsId] - Part of `name`. Name of the resource requested. Example: | 414 * [appsId] - Part of `name`. Name of the resource requested. Example: |
415 * apps/myapp. | 415 * apps/myapp. |
416 * | 416 * |
| 417 * [pageSize] - Maximum results to return per page. |
| 418 * |
417 * [pageToken] - Continuation token for fetching the next page of results. | 419 * [pageToken] - Continuation token for fetching the next page of results. |
418 * | 420 * |
419 * [pageSize] - Maximum results to return per page. | |
420 * | |
421 * Completes with a [ListModulesResponse]. | 421 * Completes with a [ListModulesResponse]. |
422 * | 422 * |
423 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 423 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
424 * error. | 424 * error. |
425 * | 425 * |
426 * If the used [http.Client] completes with an error when making a REST call, | 426 * If the used [http.Client] completes with an error when making a REST call, |
427 * this method will complete with the same error. | 427 * this method will complete with the same error. |
428 */ | 428 */ |
429 async.Future<ListModulesResponse> list(core.String appsId, {core.String pageTo
ken, core.int pageSize}) { | 429 async.Future<ListModulesResponse> list(core.String appsId, {core.int pageSize,
core.String pageToken}) { |
430 var _url = null; | 430 var _url = null; |
431 var _queryParams = new core.Map(); | 431 var _queryParams = new core.Map(); |
432 var _uploadMedia = null; | 432 var _uploadMedia = null; |
433 var _uploadOptions = null; | 433 var _uploadOptions = null; |
434 var _downloadOptions = commons.DownloadOptions.Metadata; | 434 var _downloadOptions = commons.DownloadOptions.Metadata; |
435 var _body = null; | 435 var _body = null; |
436 | 436 |
437 if (appsId == null) { | 437 if (appsId == null) { |
438 throw new core.ArgumentError("Parameter appsId is required."); | 438 throw new core.ArgumentError("Parameter appsId is required."); |
439 } | 439 } |
| 440 if (pageSize != null) { |
| 441 _queryParams["pageSize"] = ["${pageSize}"]; |
| 442 } |
440 if (pageToken != null) { | 443 if (pageToken != null) { |
441 _queryParams["pageToken"] = [pageToken]; | 444 _queryParams["pageToken"] = [pageToken]; |
442 } | 445 } |
443 if (pageSize != null) { | |
444 _queryParams["pageSize"] = ["${pageSize}"]; | |
445 } | |
446 | 446 |
447 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s'; | 447 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s'; |
448 | 448 |
449 var _response = _requester.request(_url, | 449 var _response = _requester.request(_url, |
450 "GET", | 450 "GET", |
451 body: _body, | 451 body: _body, |
452 queryParams: _queryParams, | 452 queryParams: _queryParams, |
453 uploadOptions: _uploadOptions, | 453 uploadOptions: _uploadOptions, |
454 uploadMedia: _uploadMedia, | 454 uploadMedia: _uploadMedia, |
455 downloadOptions: _downloadOptions); | 455 downloadOptions: _downloadOptions); |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 * binding, API services can add a binding such as "/v1/{name=users / * | 1147 * binding, API services can add a binding such as "/v1/{name=users / * |
1148 * }/operations" to their service configuration. For backwards compatibility, | 1148 * }/operations" to their service configuration. For backwards compatibility, |
1149 * the default name includes the operations collection id, however overriding | 1149 * the default name includes the operations collection id, however overriding |
1150 * users must ensure the name binding is the parent resource, without the | 1150 * users must ensure the name binding is the parent resource, without the |
1151 * operations collection id. | 1151 * operations collection id. |
1152 * | 1152 * |
1153 * Request parameters: | 1153 * Request parameters: |
1154 * | 1154 * |
1155 * [appsId] - Part of `name`. The name of the operation's parent resource. | 1155 * [appsId] - Part of `name`. The name of the operation's parent resource. |
1156 * | 1156 * |
| 1157 * [pageSize] - The standard list page size. |
| 1158 * |
1157 * [filter] - The standard list filter. | 1159 * [filter] - The standard list filter. |
1158 * | 1160 * |
1159 * [pageToken] - The standard list page token. | 1161 * [pageToken] - The standard list page token. |
1160 * | 1162 * |
1161 * [pageSize] - The standard list page size. | |
1162 * | |
1163 * Completes with a [ListOperationsResponse]. | 1163 * Completes with a [ListOperationsResponse]. |
1164 * | 1164 * |
1165 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1165 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1166 * error. | 1166 * error. |
1167 * | 1167 * |
1168 * If the used [http.Client] completes with an error when making a REST call, | 1168 * If the used [http.Client] completes with an error when making a REST call, |
1169 * this method will complete with the same error. | 1169 * this method will complete with the same error. |
1170 */ | 1170 */ |
1171 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.String pageToken, core.int pageSize}) { | 1171 async.Future<ListOperationsResponse> list(core.String appsId, {core.int pageSi
ze, core.String filter, core.String pageToken}) { |
1172 var _url = null; | 1172 var _url = null; |
1173 var _queryParams = new core.Map(); | 1173 var _queryParams = new core.Map(); |
1174 var _uploadMedia = null; | 1174 var _uploadMedia = null; |
1175 var _uploadOptions = null; | 1175 var _uploadOptions = null; |
1176 var _downloadOptions = commons.DownloadOptions.Metadata; | 1176 var _downloadOptions = commons.DownloadOptions.Metadata; |
1177 var _body = null; | 1177 var _body = null; |
1178 | 1178 |
1179 if (appsId == null) { | 1179 if (appsId == null) { |
1180 throw new core.ArgumentError("Parameter appsId is required."); | 1180 throw new core.ArgumentError("Parameter appsId is required."); |
1181 } | 1181 } |
| 1182 if (pageSize != null) { |
| 1183 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1184 } |
1182 if (filter != null) { | 1185 if (filter != null) { |
1183 _queryParams["filter"] = [filter]; | 1186 _queryParams["filter"] = [filter]; |
1184 } | 1187 } |
1185 if (pageToken != null) { | 1188 if (pageToken != null) { |
1186 _queryParams["pageToken"] = [pageToken]; | 1189 _queryParams["pageToken"] = [pageToken]; |
1187 } | 1190 } |
1188 if (pageSize != null) { | |
1189 _queryParams["pageSize"] = ["${pageSize}"]; | |
1190 } | |
1191 | 1191 |
1192 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat
ions'; | 1192 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operat
ions'; |
1193 | 1193 |
1194 var _response = _requester.request(_url, | 1194 var _response = _requester.request(_url, |
1195 "GET", | 1195 "GET", |
1196 body: _body, | 1196 body: _body, |
1197 queryParams: _queryParams, | 1197 queryParams: _queryParams, |
1198 uploadOptions: _uploadOptions, | 1198 uploadOptions: _uploadOptions, |
1199 uploadMedia: _uploadMedia, | 1199 uploadMedia: _uploadMedia, |
1200 downloadOptions: _downloadOptions); | 1200 downloadOptions: _downloadOptions); |
(...skipping 2325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3526 * Asynchronous operations. If an API call embeds asynchronous operation results | 3526 * Asynchronous operations. If an API call embeds asynchronous operation results |
3527 * in its response, the status of those operations should be represented | 3527 * in its response, the status of those operations should be represented |
3528 * directly using the Status message. | 3528 * directly using the Status message. |
3529 * Logging. If some API errors are stored in logs, the message Status could be | 3529 * Logging. If some API errors are stored in logs, the message Status could be |
3530 * used directly after any stripping needed for security/privacy reasons. | 3530 * used directly after any stripping needed for security/privacy reasons. |
3531 */ | 3531 */ |
3532 class Status { | 3532 class Status { |
3533 /** The status code, which should be an enum value of google.rpc.Code. */ | 3533 /** The status code, which should be an enum value of google.rpc.Code. */ |
3534 core.int code; | 3534 core.int code; |
3535 /** | 3535 /** |
3536 * A list of messages that carry the error details. There will be a common set | 3536 * A list of messages that carry the error details. There is a common set of |
3537 * of message types for APIs to use. | 3537 * message types for APIs to use. |
3538 * | 3538 * |
3539 * The values for Object must be JSON objects. It can consist of `num`, | 3539 * The values for Object must be JSON objects. It can consist of `num`, |
3540 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3540 * `String`, `bool` and `null` as well as `Map` and `List` values. |
3541 */ | 3541 */ |
3542 core.List<core.Map<core.String, core.Object>> details; | 3542 core.List<core.Map<core.String, core.Object>> details; |
3543 /** | 3543 /** |
3544 * A developer-facing error message, which should be in English. Any | 3544 * A developer-facing error message, which should be in English. Any |
3545 * user-facing error message should be localized and sent in the | 3545 * user-facing error message should be localized and sent in the |
3546 * google.rpc.Status.details field, or localized by the client. | 3546 * google.rpc.Status.details field, or localized by the client. |
3547 */ | 3547 */ |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4167 } | 4167 } |
4168 if (sizeGb != null) { | 4168 if (sizeGb != null) { |
4169 _json["sizeGb"] = sizeGb; | 4169 _json["sizeGb"] = sizeGb; |
4170 } | 4170 } |
4171 if (volumeType != null) { | 4171 if (volumeType != null) { |
4172 _json["volumeType"] = volumeType; | 4172 _json["volumeType"] = volumeType; |
4173 } | 4173 } |
4174 return _json; | 4174 return _json; |
4175 } | 4175 } |
4176 } | 4176 } |
OLD | NEW |