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 * | |
303 * [filter] - `Release` filter. The list method supports filters with | 295 * [filter] - `Release` filter. The list method supports filters with |
304 * restrictions on the | 296 * restrictions on the |
305 * `Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`. | 297 * `Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`. |
306 * | 298 * |
307 * Example 1: A filter of 'name=prod*' might return `Release`s with names | 299 * Example 1: A filter of 'name=prod*' might return `Release`s with names |
308 * within 'projects/foo' prefixed with 'prod': | 300 * within 'projects/foo' prefixed with 'prod': |
309 * | 301 * |
310 * Name | Ruleset Name | 302 * Name | Ruleset Name |
311 * ------------------------------|------------- | 303 * ------------------------------|------------- |
312 * projects/foo/releases/prod | projects/foo/rulesets/uuid1234 | 304 * projects/foo/releases/prod | projects/foo/rulesets/uuid1234 |
313 * projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234 | 305 * projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234 |
314 * projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 | 306 * projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 |
315 * | 307 * |
316 * Example 2: A filter of `name=prod* ruleset_name=uuid1234` would return only | 308 * Example 2: A filter of `name=prod* ruleset_name=uuid1234` would return only |
317 * `Release` instances for 'projects/foo' with names prefixed with 'prod' | 309 * `Release` instances for 'projects/foo' with names prefixed with 'prod' |
318 * referring to the same `Ruleset` name of 'uuid1234': | 310 * referring to the same `Ruleset` name of 'uuid1234': |
319 * | 311 * |
320 * Name | Ruleset Name | 312 * Name | Ruleset Name |
321 * ------------------------------|------------- | 313 * ------------------------------|------------- |
322 * projects/foo/releases/prod | projects/foo/rulesets/1234 | 314 * projects/foo/releases/prod | projects/foo/rulesets/1234 |
323 * projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 | 315 * projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 |
324 * | 316 * |
325 * In the examples, the filter parameters refer to the search filters are | 317 * In the examples, the filter parameters refer to the search filters are |
326 * relative to the project. Fully qualified prefixed may also be used. e.g. | 318 * relative to the project. Fully qualified prefixed may also be used. e.g. |
327 * `test_suite_name=projects/foo/testsuites/uuid1` | 319 * `test_suite_name=projects/foo/testsuites/uuid1` |
328 * | 320 * |
| 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 pageTok
en, core.int pageSize, core.String filter}) { | 337 async.Future<ListReleasesResponse> list(core.String name, {core.String filter,
core.String pageToken, core.int pageSize}) { |
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 } |
348 if (pageToken != null) { | 351 if (pageToken != null) { |
349 _queryParams["pageToken"] = [pageToken]; | 352 _queryParams["pageToken"] = [pageToken]; |
350 } | 353 } |
351 if (pageSize != null) { | 354 if (pageSize != null) { |
352 _queryParams["pageSize"] = ["${pageSize}"]; | 355 _queryParams["pageSize"] = ["${pageSize}"]; |
353 } | 356 } |
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 * The full `Source` contents of a `Ruleset` may be retrieved with | 593 * The full `Source` contents of a `Ruleset` may be retrieved with |
594 * GetRuleset. | 594 * GetRuleset. |
595 * | 595 * |
596 * Request parameters: | 596 * Request parameters: |
597 * | 597 * |
598 * [name] - Resource name for the project. | 598 * [name] - Resource name for the project. |
599 * | 599 * |
600 * Format: `projects/{project_id}` | 600 * Format: `projects/{project_id}` |
601 * Value must have pattern "^projects/[^/]+$". | 601 * Value must have pattern "^projects/[^/]+$". |
602 * | 602 * |
| 603 * [pageToken] - Next page token for loading the next batch of `Ruleset` |
| 604 * instances. |
| 605 * |
| 606 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. |
| 607 * Note: `page_size` is just a hint and the service may choose to load less |
| 608 * than `page_size` due to the size of the output. To traverse all of the |
| 609 * releases, caller should iterate until the `page_token` is empty. |
| 610 * |
603 * [filter] - `Ruleset` filter. The list method supports filters with | 611 * [filter] - `Ruleset` filter. The list method supports filters with |
604 * restrictions on | 612 * restrictions on |
605 * `Ruleset.name`. | 613 * `Ruleset.name`. |
606 * | 614 * |
607 * Filters on `Ruleset.create_time` should use the `date` function which | 615 * Filters on `Ruleset.create_time` should use the `date` function which |
608 * parses strings that conform to the RFC 3339 date/time specifications. | 616 * parses strings that conform to the RFC 3339 date/time specifications. |
609 * | 617 * |
610 * Example: `create_time > date("2017-01-01") AND name=UUID-*` | 618 * Example: `create_time > date("2017-01-01") AND name=UUID-*` |
611 * | 619 * |
612 * [pageToken] - Next page token for loading the next batch of `Ruleset` | |
613 * instances. | |
614 * | |
615 * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. | |
616 * Note: `page_size` is just a hint and the service may choose to load less | |
617 * than `page_size` due to the size of the output. To traverse all of the | |
618 * releases, caller should iterate until the `page_token` is empty. | |
619 * | |
620 * Completes with a [ListRulesetsResponse]. | 620 * Completes with a [ListRulesetsResponse]. |
621 * | 621 * |
622 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 622 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
623 * error. | 623 * error. |
624 * | 624 * |
625 * If the used [http.Client] completes with an error when making a REST call, | 625 * If the used [http.Client] completes with an error when making a REST call, |
626 * this method will complete with the same error. | 626 * this method will complete with the same error. |
627 */ | 627 */ |
628 async.Future<ListRulesetsResponse> list(core.String name, {core.String filter,
core.String pageToken, core.int pageSize}) { | 628 async.Future<ListRulesetsResponse> list(core.String name, {core.String pageTok
en, core.int pageSize, core.String filter}) { |
629 var _url = null; | 629 var _url = null; |
630 var _queryParams = new core.Map(); | 630 var _queryParams = new core.Map(); |
631 var _uploadMedia = null; | 631 var _uploadMedia = null; |
632 var _uploadOptions = null; | 632 var _uploadOptions = null; |
633 var _downloadOptions = commons.DownloadOptions.Metadata; | 633 var _downloadOptions = commons.DownloadOptions.Metadata; |
634 var _body = null; | 634 var _body = null; |
635 | 635 |
636 if (name == null) { | 636 if (name == null) { |
637 throw new core.ArgumentError("Parameter name is required."); | 637 throw new core.ArgumentError("Parameter name is required."); |
638 } | 638 } |
639 if (filter != null) { | |
640 _queryParams["filter"] = [filter]; | |
641 } | |
642 if (pageToken != null) { | 639 if (pageToken != null) { |
643 _queryParams["pageToken"] = [pageToken]; | 640 _queryParams["pageToken"] = [pageToken]; |
644 } | 641 } |
645 if (pageSize != null) { | 642 if (pageSize != null) { |
646 _queryParams["pageSize"] = ["${pageSize}"]; | 643 _queryParams["pageSize"] = ["${pageSize}"]; |
647 } | 644 } |
| 645 if (filter != null) { |
| 646 _queryParams["filter"] = [filter]; |
| 647 } |
648 | 648 |
649 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/rulesets'; | 649 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/rulesets'; |
650 | 650 |
651 var _response = _requester.request(_url, | 651 var _response = _requester.request(_url, |
652 "GET", | 652 "GET", |
653 body: _body, | 653 body: _body, |
654 queryParams: _queryParams, | 654 queryParams: _queryParams, |
655 uploadOptions: _uploadOptions, | 655 uploadOptions: _uploadOptions, |
656 uploadMedia: _uploadMedia, | 656 uploadMedia: _uploadMedia, |
657 downloadOptions: _downloadOptions); | 657 downloadOptions: _downloadOptions); |
(...skipping 814 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 |