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 * [pageToken] - The standard list page token. |
| 188 * |
| 189 * [name] - The name of the operation's parent resource. |
| 190 * |
187 * [pageSize] - The standard list page size. | 191 * [pageSize] - The standard list page size. |
188 * | 192 * |
189 * [filter] - The standard list filter. | 193 * [filter] - The standard list filter. |
190 * | 194 * |
191 * [pageToken] - The standard list page token. | |
192 * | |
193 * [name] - The name of the operation's parent resource. | |
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.int pageSize, core.String filt
er, core.String pageToken, core.String name}) { | 203 async.Future<ListOperationsResponse> list({core.String pageToken, core.String
name, core.int pageSize, core.String filter}) { |
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 (pageToken != null) { |
| 212 _queryParams["pageToken"] = [pageToken]; |
| 213 } |
| 214 if (name != null) { |
| 215 _queryParams["name"] = [name]; |
| 216 } |
211 if (pageSize != null) { | 217 if (pageSize != null) { |
212 _queryParams["pageSize"] = ["${pageSize}"]; | 218 _queryParams["pageSize"] = ["${pageSize}"]; |
213 } | 219 } |
214 if (filter != null) { | 220 if (filter != null) { |
215 _queryParams["filter"] = [filter]; | 221 _queryParams["filter"] = [filter]; |
216 } | 222 } |
217 if (pageToken != null) { | |
218 _queryParams["pageToken"] = [pageToken]; | |
219 } | |
220 if (name != null) { | |
221 _queryParams["name"] = [name]; | |
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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 * results in its response, the status of those operations should be | 820 * results in its response, the status of those operations should be |
821 * represented directly using the `Status` message. | 821 * represented directly using the `Status` message. |
822 * | 822 * |
823 * - Logging. If some API errors are stored in logs, the message `Status` could | 823 * - Logging. If some API errors are stored in logs, the message `Status` could |
824 * be used directly after any stripping needed for security/privacy reasons. | 824 * be used directly after any stripping needed for security/privacy reasons. |
825 */ | 825 */ |
826 class Status { | 826 class Status { |
827 /** The status code, which should be an enum value of google.rpc.Code. */ | 827 /** The status code, which should be an enum value of google.rpc.Code. */ |
828 core.int code; | 828 core.int code; |
829 /** | 829 /** |
830 * A list of messages that carry the error details. There will be a | 830 * A list of messages that carry the error details. There is a common set of |
831 * common set of message types for APIs to use. | 831 * message types for APIs to use. |
832 * | 832 * |
833 * The values for Object must be JSON objects. It can consist of `num`, | 833 * The values for Object must be JSON objects. It can consist of `num`, |
834 * `String`, `bool` and `null` as well as `Map` and `List` values. | 834 * `String`, `bool` and `null` as well as `Map` and `List` values. |
835 */ | 835 */ |
836 core.List<core.Map<core.String, core.Object>> details; | 836 core.List<core.Map<core.String, core.Object>> details; |
837 /** | 837 /** |
838 * A developer-facing error message, which should be in English. Any | 838 * A developer-facing error message, which should be in English. Any |
839 * user-facing error message should be localized and sent in the | 839 * user-facing error message should be localized and sent in the |
840 * google.rpc.Status.details field, or localized by the client. | 840 * google.rpc.Status.details field, or localized by the client. |
841 */ | 841 */ |
(...skipping 82 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 |