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.speech.v1beta1; | 3 library googleapis_beta.speech.v1beta1; |
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 /** | 173 /** |
174 * Lists operations that match the specified filter in the request. If the | 174 * Lists operations that match the specified filter in the request. If the |
175 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 175 * server doesn't support this method, it returns `UNIMPLEMENTED`. |
176 * | 176 * |
177 * NOTE: the `name` binding below allows API services to override the binding | 177 * NOTE: the `name` binding below allows API services to override the binding |
178 * to use different resource name schemes, such as `users / * /operations`. | 178 * to use different resource name schemes, such as `users / * /operations`. |
179 * | 179 * |
180 * Request parameters: | 180 * Request parameters: |
181 * | 181 * |
| 182 * [filter] - The standard list filter. |
| 183 * |
182 * [name] - The name of the operation collection. | 184 * [name] - The name of the operation collection. |
183 * | 185 * |
184 * [pageToken] - The standard list page token. | 186 * [pageToken] - The standard list page token. |
185 * | 187 * |
186 * [pageSize] - The standard list page size. | 188 * [pageSize] - The standard list page size. |
187 * | 189 * |
188 * [filter] - The standard list filter. | |
189 * | |
190 * Completes with a [ListOperationsResponse]. | 190 * Completes with a [ListOperationsResponse]. |
191 * | 191 * |
192 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 192 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
193 * error. | 193 * error. |
194 * | 194 * |
195 * If the used [http.Client] completes with an error when making a REST call, | 195 * If the used [http.Client] completes with an error when making a REST call, |
196 * this method will complete with the same error. | 196 * this method will complete with the same error. |
197 */ | 197 */ |
198 async.Future<ListOperationsResponse> list({core.String name, core.String pageT
oken, core.int pageSize, core.String filter}) { | 198 async.Future<ListOperationsResponse> list({core.String filter, core.String nam
e, core.String pageToken, core.int pageSize}) { |
199 var _url = null; | 199 var _url = null; |
200 var _queryParams = new core.Map(); | 200 var _queryParams = new core.Map(); |
201 var _uploadMedia = null; | 201 var _uploadMedia = null; |
202 var _uploadOptions = null; | 202 var _uploadOptions = null; |
203 var _downloadOptions = commons.DownloadOptions.Metadata; | 203 var _downloadOptions = commons.DownloadOptions.Metadata; |
204 var _body = null; | 204 var _body = null; |
205 | 205 |
| 206 if (filter != null) { |
| 207 _queryParams["filter"] = [filter]; |
| 208 } |
206 if (name != null) { | 209 if (name != null) { |
207 _queryParams["name"] = [name]; | 210 _queryParams["name"] = [name]; |
208 } | 211 } |
209 if (pageToken != null) { | 212 if (pageToken != null) { |
210 _queryParams["pageToken"] = [pageToken]; | 213 _queryParams["pageToken"] = [pageToken]; |
211 } | 214 } |
212 if (pageSize != null) { | 215 if (pageSize != null) { |
213 _queryParams["pageSize"] = ["${pageSize}"]; | 216 _queryParams["pageSize"] = ["${pageSize}"]; |
214 } | 217 } |
215 if (filter != null) { | |
216 _queryParams["filter"] = [filter]; | |
217 } | |
218 | 218 |
219 _url = 'v1beta1/operations'; | 219 _url = 'v1beta1/operations'; |
220 | 220 |
221 var _response = _requester.request(_url, | 221 var _response = _requester.request(_url, |
222 "GET", | 222 "GET", |
223 body: _body, | 223 body: _body, |
224 queryParams: _queryParams, | 224 queryParams: _queryParams, |
225 uploadOptions: _uploadOptions, | 225 uploadOptions: _uploadOptions, |
226 uploadMedia: _uploadMedia, | 226 uploadMedia: _uploadMedia, |
227 downloadOptions: _downloadOptions); | 227 downloadOptions: _downloadOptions); |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 } | 919 } |
920 | 920 |
921 core.Map toJson() { | 921 core.Map toJson() { |
922 var _json = new core.Map(); | 922 var _json = new core.Map(); |
923 if (results != null) { | 923 if (results != null) { |
924 _json["results"] = results.map((value) => (value).toJson()).toList(); | 924 _json["results"] = results.map((value) => (value).toJson()).toList(); |
925 } | 925 } |
926 return _json; | 926 return _json; |
927 } | 927 } |
928 } | 928 } |
OLD | NEW |