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.firebaserules.v1; | 3 library googleapis.firebaserules.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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 * filtered by `Release` name, `Ruleset` name, `TestSuite` name, or any | 285 * filtered by `Release` name, `Ruleset` name, `TestSuite` name, or any |
286 * combination thereof. | 286 * combination thereof. |
287 * | 287 * |
288 * Request parameters: | 288 * Request parameters: |
289 * | 289 * |
290 * [name] - Resource name for the project. | 290 * [name] - Resource name for the project. |
291 * | 291 * |
292 * Format: `projects/{project_id}` | 292 * Format: `projects/{project_id}` |
293 * Value must have pattern "^projects/[^/]+$". | 293 * Value must have pattern "^projects/[^/]+$". |
294 * | 294 * |
| 295 * [pageToken] - Next page token for the next batch of `Release` instances. |
| 296 * |
| 297 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. |
| 298 * Note: `page_size` is just a hint and the service may choose to load fewer |
| 299 * than `page_size` results due to the size of the output. To traverse all of |
| 300 * the releases, the caller should iterate until the `page_token` on the |
| 301 * response is empty. |
| 302 * |
295 * [filter] - `Release` filter. The list method supports filters with | 303 * [filter] - `Release` filter. The list method supports filters with |
296 * restrictions on the | 304 * restrictions on the |
297 * `Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`. | 305 * `Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`. |
298 * | 306 * |
299 * Example 1: A filter of 'name=prod*' might return `Release`s with names | 307 * Example 1: A filter of 'name=prod*' might return `Release`s with names |
300 * within 'projects/foo' prefixed with 'prod': | 308 * within 'projects/foo' prefixed with 'prod': |
301 * | 309 * |
302 * Name | Ruleset Name | 310 * Name | Ruleset Name |
303 * ------------------------------|------------- | 311 * ------------------------------|------------- |
304 * projects/foo/releases/prod | projects/foo/rulesets/uuid1234 | 312 * projects/foo/releases/prod | projects/foo/rulesets/uuid1234 |
305 * projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234 | 313 * projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234 |
306 * projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 | 314 * projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 |
307 * | 315 * |
308 * Example 2: A filter of `name=prod* ruleset_name=uuid1234` would return only | 316 * Example 2: A filter of `name=prod* ruleset_name=uuid1234` would return only |
309 * `Release` instances for 'projects/foo' with names prefixed with 'prod' | 317 * `Release` instances for 'projects/foo' with names prefixed with 'prod' |
310 * referring to the same `Ruleset` name of 'uuid1234': | 318 * referring to the same `Ruleset` name of 'uuid1234': |
311 * | 319 * |
312 * Name | Ruleset Name | 320 * Name | Ruleset Name |
313 * ------------------------------|------------- | 321 * ------------------------------|------------- |
314 * projects/foo/releases/prod | projects/foo/rulesets/1234 | 322 * projects/foo/releases/prod | projects/foo/rulesets/1234 |
315 * projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 | 323 * projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 |
316 * | 324 * |
317 * In the examples, the filter parameters refer to the search filters are | 325 * In the examples, the filter parameters refer to the search filters are |
318 * relative to the project. Fully qualified prefixed may also be used. e.g. | 326 * relative to the project. Fully qualified prefixed may also be used. e.g. |
319 * `test_suite_name=projects/foo/testsuites/uuid1` | 327 * `test_suite_name=projects/foo/testsuites/uuid1` |
320 * | 328 * |
321 * [pageToken] - Next page token for the next batch of `Release` instances. | |
322 * | |
323 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. | |
324 * Note: `page_size` is just a hint and the service may choose to load fewer | |
325 * than `page_size` results due to the size of the output. To traverse all of | |
326 * the releases, the caller should iterate until the `page_token` on the | |
327 * response is empty. | |
328 * | |
329 * Completes with a [ListReleasesResponse]. | 329 * Completes with a [ListReleasesResponse]. |
330 * | 330 * |
331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
332 * error. | 332 * error. |
333 * | 333 * |
334 * If the used [http.Client] completes with an error when making a REST call, | 334 * If the used [http.Client] completes with an error when making a REST call, |
335 * this method will complete with the same error. | 335 * this method will complete with the same error. |
336 */ | 336 */ |
337 async.Future<ListReleasesResponse> list(core.String name, {core.String filter,
core.String pageToken, core.int pageSize}) { | 337 async.Future<ListReleasesResponse> list(core.String name, {core.String pageTok
en, core.int pageSize, core.String filter}) { |
338 var _url = null; | 338 var _url = null; |
339 var _queryParams = new core.Map(); | 339 var _queryParams = new core.Map(); |
340 var _uploadMedia = null; | 340 var _uploadMedia = null; |
341 var _uploadOptions = null; | 341 var _uploadOptions = null; |
342 var _downloadOptions = commons.DownloadOptions.Metadata; | 342 var _downloadOptions = commons.DownloadOptions.Metadata; |
343 var _body = null; | 343 var _body = null; |
344 | 344 |
345 if (name == null) { | 345 if (name == null) { |
346 throw new core.ArgumentError("Parameter name is required."); | 346 throw new core.ArgumentError("Parameter name is required."); |
347 } | 347 } |
348 if (filter != null) { | |
349 _queryParams["filter"] = [filter]; | |
350 } | |
351 if (pageToken != null) { | 348 if (pageToken != null) { |
352 _queryParams["pageToken"] = [pageToken]; | 349 _queryParams["pageToken"] = [pageToken]; |
353 } | 350 } |
354 if (pageSize != null) { | 351 if (pageSize != null) { |
355 _queryParams["pageSize"] = ["${pageSize}"]; | 352 _queryParams["pageSize"] = ["${pageSize}"]; |
356 } | 353 } |
| 354 if (filter != null) { |
| 355 _queryParams["filter"] = [filter]; |
| 356 } |
357 | 357 |
358 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/releases'; | 358 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/releases'; |
359 | 359 |
360 var _response = _requester.request(_url, | 360 var _response = _requester.request(_url, |
361 "GET", | 361 "GET", |
362 body: _body, | 362 body: _body, |
363 queryParams: _queryParams, | 363 queryParams: _queryParams, |
364 uploadOptions: _uploadOptions, | 364 uploadOptions: _uploadOptions, |
365 uploadMedia: _uploadMedia, | 365 uploadMedia: _uploadMedia, |
366 downloadOptions: _downloadOptions); | 366 downloadOptions: _downloadOptions); |
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1472 } | 1472 } |
1473 | 1473 |
1474 core.Map<core.String, core.Object> toJson() { | 1474 core.Map<core.String, core.Object> toJson() { |
1475 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1475 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1476 if (testCases != null) { | 1476 if (testCases != null) { |
1477 _json["testCases"] = testCases.map((value) => (value).toJson()).toList(); | 1477 _json["testCases"] = testCases.map((value) => (value).toJson()).toList(); |
1478 } | 1478 } |
1479 return _json; | 1479 return _json; |
1480 } | 1480 } |
1481 } | 1481 } |
OLD | NEW |