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 1136 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 |