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 582 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1212 var _json = new core.Map(); | 1212 var _json = new core.Map(); |
1213 if (issues != null) { | 1213 if (issues != null) { |
1214 _json["issues"] = issues.map((value) => (value).toJson()).toList(); | 1214 _json["issues"] = issues.map((value) => (value).toJson()).toList(); |
1215 } | 1215 } |
1216 if (testResults != null) { | 1216 if (testResults != null) { |
1217 _json["testResults"] = testResults.map((value) => (value).toJson()).toList
(); | 1217 _json["testResults"] = testResults.map((value) => (value).toJson()).toList
(); |
1218 } | 1218 } |
1219 return _json; | 1219 return _json; |
1220 } | 1220 } |
1221 } | 1221 } |
OLD | NEW |