| 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 * [pageToken] - Continuation token for fetching the next page of results. |
| 418 * |
| 417 * [pageSize] - Maximum results to return per page. | 419 * [pageSize] - Maximum results to return per page. |
| 418 * | 420 * |
| 419 * [pageToken] - Continuation token for fetching the next page of results. | |
| 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.int pageSize,
core.String pageToken}) { | 429 async.Future<ListModulesResponse> list(core.String appsId, {core.String pageTo
ken, core.int pageSize}) { |
| 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 (pageToken != null) { |
| 441 _queryParams["pageToken"] = [pageToken]; |
| 442 } |
| 440 if (pageSize != null) { | 443 if (pageSize != null) { |
| 441 _queryParams["pageSize"] = ["${pageSize}"]; | 444 _queryParams["pageSize"] = ["${pageSize}"]; |
| 442 } | 445 } |
| 443 if (pageToken != null) { | |
| 444 _queryParams["pageToken"] = [pageToken]; | |
| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 /** | 701 /** |
| 702 * Lists the versions of a module. | 702 * Lists the versions of a module. |
| 703 * | 703 * |
| 704 * Request parameters: | 704 * Request parameters: |
| 705 * | 705 * |
| 706 * [appsId] - Part of `name`. Name of the resource requested. Example: | 706 * [appsId] - Part of `name`. Name of the resource requested. Example: |
| 707 * apps/myapp/modules/default. | 707 * apps/myapp/modules/default. |
| 708 * | 708 * |
| 709 * [modulesId] - Part of `name`. See documentation of `appsId`. | 709 * [modulesId] - Part of `name`. See documentation of `appsId`. |
| 710 * | 710 * |
| 711 * [pageToken] - Continuation token for fetching the next page of results. |
| 712 * |
| 711 * [pageSize] - Maximum results to return per page. | 713 * [pageSize] - Maximum results to return per page. |
| 712 * | 714 * |
| 713 * [view] - Controls the set of fields returned in the List response. | 715 * [view] - Controls the set of fields returned in the List response. |
| 714 * Possible string values are: | 716 * Possible string values are: |
| 715 * - "BASIC" : A BASIC. | 717 * - "BASIC" : A BASIC. |
| 716 * - "FULL" : A FULL. | 718 * - "FULL" : A FULL. |
| 717 * | 719 * |
| 718 * [pageToken] - Continuation token for fetching the next page of results. | |
| 719 * | |
| 720 * Completes with a [ListVersionsResponse]. | 720 * Completes with a [ListVersionsResponse]. |
| 721 * | 721 * |
| 722 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 722 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 723 * error. | 723 * error. |
| 724 * | 724 * |
| 725 * If the used [http.Client] completes with an error when making a REST call, | 725 * If the used [http.Client] completes with an error when making a REST call, |
| 726 * this method will complete with the same error. | 726 * this method will complete with the same error. |
| 727 */ | 727 */ |
| 728 async.Future<ListVersionsResponse> list(core.String appsId, core.String module
sId, {core.int pageSize, core.String view, core.String pageToken}) { | 728 async.Future<ListVersionsResponse> list(core.String appsId, core.String module
sId, {core.String pageToken, core.int pageSize, core.String view}) { |
| 729 var _url = null; | 729 var _url = null; |
| 730 var _queryParams = new core.Map(); | 730 var _queryParams = new core.Map(); |
| 731 var _uploadMedia = null; | 731 var _uploadMedia = null; |
| 732 var _uploadOptions = null; | 732 var _uploadOptions = null; |
| 733 var _downloadOptions = commons.DownloadOptions.Metadata; | 733 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 734 var _body = null; | 734 var _body = null; |
| 735 | 735 |
| 736 if (appsId == null) { | 736 if (appsId == null) { |
| 737 throw new core.ArgumentError("Parameter appsId is required."); | 737 throw new core.ArgumentError("Parameter appsId is required."); |
| 738 } | 738 } |
| 739 if (modulesId == null) { | 739 if (modulesId == null) { |
| 740 throw new core.ArgumentError("Parameter modulesId is required."); | 740 throw new core.ArgumentError("Parameter modulesId is required."); |
| 741 } | 741 } |
| 742 if (pageToken != null) { |
| 743 _queryParams["pageToken"] = [pageToken]; |
| 744 } |
| 742 if (pageSize != null) { | 745 if (pageSize != null) { |
| 743 _queryParams["pageSize"] = ["${pageSize}"]; | 746 _queryParams["pageSize"] = ["${pageSize}"]; |
| 744 } | 747 } |
| 745 if (view != null) { | 748 if (view != null) { |
| 746 _queryParams["view"] = [view]; | 749 _queryParams["view"] = [view]; |
| 747 } | 750 } |
| 748 if (pageToken != null) { | |
| 749 _queryParams["pageToken"] = [pageToken]; | |
| 750 } | |
| 751 | 751 |
| 752 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions'; | 752 _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/module
s/' + commons.Escaper.ecapeVariable('$modulesId') + '/versions'; |
| 753 | 753 |
| 754 var _response = _requester.request(_url, | 754 var _response = _requester.request(_url, |
| 755 "GET", | 755 "GET", |
| 756 body: _body, | 756 body: _body, |
| 757 queryParams: _queryParams, | 757 queryParams: _queryParams, |
| 758 uploadOptions: _uploadOptions, | 758 uploadOptions: _uploadOptions, |
| 759 uploadMedia: _uploadMedia, | 759 uploadMedia: _uploadMedia, |
| 760 downloadOptions: _downloadOptions); | 760 downloadOptions: _downloadOptions); |
| (...skipping 386 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 * | |
| 1159 * [filter] - The standard list filter. | 1157 * [filter] - The standard list filter. |
| 1160 * | 1158 * |
| 1161 * [pageToken] - The standard list page token. | 1159 * [pageToken] - The standard list page token. |
| 1162 * | 1160 * |
| 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.int pageSi
ze, core.String filter, core.String pageToken}) { | 1171 async.Future<ListOperationsResponse> list(core.String appsId, {core.String fil
ter, core.String pageToken, core.int pageSize}) { |
| 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 } | |
| 1185 if (filter != null) { | 1182 if (filter != null) { |
| 1186 _queryParams["filter"] = [filter]; | 1183 _queryParams["filter"] = [filter]; |
| 1187 } | 1184 } |
| 1188 if (pageToken != null) { | 1185 if (pageToken != null) { |
| 1189 _queryParams["pageToken"] = [pageToken]; | 1186 _queryParams["pageToken"] = [pageToken]; |
| 1190 } | 1187 } |
| 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 2966 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 |