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.runtimeconfig.v1; | 3 library googleapis.runtimeconfig.v1; |
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 143 * server doesn't support this method, it returns `UNIMPLEMENTED`. |
144 * | 144 * |
145 * NOTE: the `name` binding below allows API services to override the binding | 145 * NOTE: the `name` binding below allows API services to override the binding |
146 * to use different resource name schemes, such as `users / * /operations`. | 146 * to use different resource name schemes, such as `users / * /operations`. |
147 * | 147 * |
148 * Request parameters: | 148 * Request parameters: |
149 * | 149 * |
150 * [name] - The name of the operation collection. | 150 * [name] - The name of the operation collection. |
151 * Value must have pattern "^operations$". | 151 * Value must have pattern "^operations$". |
152 * | 152 * |
| 153 * [pageToken] - The standard list page token. |
| 154 * |
153 * [pageSize] - The standard list page size. | 155 * [pageSize] - The standard list page size. |
154 * | 156 * |
155 * [filter] - The standard list filter. | 157 * [filter] - The standard list filter. |
156 * | 158 * |
157 * [pageToken] - The standard list page token. | |
158 * | |
159 * Completes with a [ListOperationsResponse]. | 159 * Completes with a [ListOperationsResponse]. |
160 * | 160 * |
161 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 161 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
162 * error. | 162 * error. |
163 * | 163 * |
164 * If the used [http.Client] completes with an error when making a REST call, | 164 * If the used [http.Client] completes with an error when making a REST call, |
165 * this method will complete with the same error. | 165 * this method will complete with the same error. |
166 */ | 166 */ |
167 async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize
, core.String filter, core.String pageToken}) { | 167 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT
oken, core.int pageSize, core.String filter}) { |
168 var _url = null; | 168 var _url = null; |
169 var _queryParams = new core.Map(); | 169 var _queryParams = new core.Map(); |
170 var _uploadMedia = null; | 170 var _uploadMedia = null; |
171 var _uploadOptions = null; | 171 var _uploadOptions = null; |
172 var _downloadOptions = commons.DownloadOptions.Metadata; | 172 var _downloadOptions = commons.DownloadOptions.Metadata; |
173 var _body = null; | 173 var _body = null; |
174 | 174 |
175 if (name == null) { | 175 if (name == null) { |
176 throw new core.ArgumentError("Parameter name is required."); | 176 throw new core.ArgumentError("Parameter name is required."); |
177 } | 177 } |
| 178 if (pageToken != null) { |
| 179 _queryParams["pageToken"] = [pageToken]; |
| 180 } |
178 if (pageSize != null) { | 181 if (pageSize != null) { |
179 _queryParams["pageSize"] = ["${pageSize}"]; | 182 _queryParams["pageSize"] = ["${pageSize}"]; |
180 } | 183 } |
181 if (filter != null) { | 184 if (filter != null) { |
182 _queryParams["filter"] = [filter]; | 185 _queryParams["filter"] = [filter]; |
183 } | 186 } |
184 if (pageToken != null) { | |
185 _queryParams["pageToken"] = [pageToken]; | |
186 } | |
187 | 187 |
188 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 188 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
189 | 189 |
190 var _response = _requester.request(_url, | 190 var _response = _requester.request(_url, |
191 "GET", | 191 "GET", |
192 body: _body, | 192 body: _body, |
193 queryParams: _queryParams, | 193 queryParams: _queryParams, |
194 uploadOptions: _uploadOptions, | 194 uploadOptions: _uploadOptions, |
195 uploadMedia: _uploadMedia, | 195 uploadMedia: _uploadMedia, |
196 downloadOptions: _downloadOptions); | 196 downloadOptions: _downloadOptions); |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 } | 449 } |
450 if (details != null) { | 450 if (details != null) { |
451 _json["details"] = details; | 451 _json["details"] = details; |
452 } | 452 } |
453 if (message != null) { | 453 if (message != null) { |
454 _json["message"] = message; | 454 _json["message"] = message; |
455 } | 455 } |
456 return _json; | 456 return _json; |
457 } | 457 } |
458 } | 458 } |
OLD | NEW |