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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 * NOTE: the `name` binding allows API services to override the binding | 177 * NOTE: the `name` binding allows API services to override the binding |
178 * to use different resource name schemes, such as `users / * /operations`. To | 178 * to use different resource name schemes, such as `users / * /operations`. To |
179 * override the binding, API services can add a binding such as | 179 * override the binding, API services can add a binding such as |
180 * `"/v1/{name=users / * }/operations"` to their service configuration. | 180 * `"/v1/{name=users / * }/operations"` to their service configuration. |
181 * For backwards compatibility, the default name includes the operations | 181 * For backwards compatibility, the default name includes the operations |
182 * collection id, however overriding users must ensure the name binding | 182 * collection id, however overriding users must ensure the name binding |
183 * is the parent resource, without the operations collection id. | 183 * is the parent resource, without the operations collection id. |
184 * | 184 * |
185 * Request parameters: | 185 * Request parameters: |
186 * | 186 * |
| 187 * [pageSize] - The standard list page size. |
| 188 * |
187 * [filter] - The standard list filter. | 189 * [filter] - The standard list filter. |
188 * | 190 * |
| 191 * [pageToken] - The standard list page token. |
| 192 * |
189 * [name] - The name of the operation's parent resource. | 193 * [name] - The name of the operation's parent resource. |
190 * | 194 * |
191 * [pageToken] - The standard list page token. | |
192 * | |
193 * [pageSize] - The standard list page size. | |
194 * | |
195 * Completes with a [ListOperationsResponse]. | 195 * Completes with a [ListOperationsResponse]. |
196 * | 196 * |
197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
198 * error. | 198 * error. |
199 * | 199 * |
200 * If the used [http.Client] completes with an error when making a REST call, | 200 * If the used [http.Client] completes with an error when making a REST call, |
201 * this method will complete with the same error. | 201 * this method will complete with the same error. |
202 */ | 202 */ |
203 async.Future<ListOperationsResponse> list({core.String filter, core.String nam
e, core.String pageToken, core.int pageSize}) { | 203 async.Future<ListOperationsResponse> list({core.int pageSize, core.String filt
er, core.String pageToken, core.String name}) { |
204 var _url = null; | 204 var _url = null; |
205 var _queryParams = new core.Map(); | 205 var _queryParams = new core.Map(); |
206 var _uploadMedia = null; | 206 var _uploadMedia = null; |
207 var _uploadOptions = null; | 207 var _uploadOptions = null; |
208 var _downloadOptions = commons.DownloadOptions.Metadata; | 208 var _downloadOptions = commons.DownloadOptions.Metadata; |
209 var _body = null; | 209 var _body = null; |
210 | 210 |
| 211 if (pageSize != null) { |
| 212 _queryParams["pageSize"] = ["${pageSize}"]; |
| 213 } |
211 if (filter != null) { | 214 if (filter != null) { |
212 _queryParams["filter"] = [filter]; | 215 _queryParams["filter"] = [filter]; |
213 } | 216 } |
| 217 if (pageToken != null) { |
| 218 _queryParams["pageToken"] = [pageToken]; |
| 219 } |
214 if (name != null) { | 220 if (name != null) { |
215 _queryParams["name"] = [name]; | 221 _queryParams["name"] = [name]; |
216 } | 222 } |
217 if (pageToken != null) { | |
218 _queryParams["pageToken"] = [pageToken]; | |
219 } | |
220 if (pageSize != null) { | |
221 _queryParams["pageSize"] = ["${pageSize}"]; | |
222 } | |
223 | 223 |
224 _url = 'v1beta1/operations'; | 224 _url = 'v1beta1/operations'; |
225 | 225 |
226 var _response = _requester.request(_url, | 226 var _response = _requester.request(_url, |
227 "GET", | 227 "GET", |
228 body: _body, | 228 body: _body, |
229 queryParams: _queryParams, | 229 queryParams: _queryParams, |
230 uploadOptions: _uploadOptions, | 230 uploadOptions: _uploadOptions, |
231 uploadMedia: _uploadMedia, | 231 uploadMedia: _uploadMedia, |
232 downloadOptions: _downloadOptions); | 232 downloadOptions: _downloadOptions); |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 } | 924 } |
925 | 925 |
926 core.Map<core.String, core.Object> toJson() { | 926 core.Map<core.String, core.Object> toJson() { |
927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
928 if (results != null) { | 928 if (results != null) { |
929 _json["results"] = results.map((value) => (value).toJson()).toList(); | 929 _json["results"] = results.map((value) => (value).toJson()).toList(); |
930 } | 930 } |
931 return _json; | 931 return _json; |
932 } | 932 } |
933 } | 933 } |
OLD | NEW |