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.cloudresourcemanager.v1beta1; | 3 library googleapis_beta.cloudresourcemanager.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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 return _response.then((data) => new Policy.fromJson(data)); | 617 return _response.then((data) => new Policy.fromJson(data)); |
618 } | 618 } |
619 | 619 |
620 /** | 620 /** |
621 * Lists Projects that are visible to the user and satisfy the | 621 * Lists Projects that are visible to the user and satisfy the |
622 * specified filter. This method returns Projects in an unspecified order. | 622 * specified filter. This method returns Projects in an unspecified order. |
623 * New Projects do not necessarily appear at the end of the list. | 623 * New Projects do not necessarily appear at the end of the list. |
624 * | 624 * |
625 * Request parameters: | 625 * Request parameters: |
626 * | 626 * |
| 627 * [pageToken] - A pagination token returned from a previous call to |
| 628 * ListProjects |
| 629 * that indicates from where listing should continue. |
| 630 * |
| 631 * Optional. |
| 632 * |
| 633 * [pageSize] - The maximum number of Projects to return in the response. |
| 634 * The server can return fewer Projects than requested. |
| 635 * If unspecified, server picks an appropriate default. |
| 636 * |
| 637 * Optional. |
| 638 * |
627 * [filter] - An expression for filtering the results of the request. Filter | 639 * [filter] - An expression for filtering the results of the request. Filter |
628 * rules are | 640 * rules are |
629 * case insensitive. The fields eligible for filtering are: | 641 * case insensitive. The fields eligible for filtering are: |
630 * | 642 * |
631 * + `name` | 643 * + `name` |
632 * + `id` | 644 * + `id` |
633 * + <code>labels.<em>key</em></code> where *key* is the name of a label | 645 * + <code>labels.<em>key</em></code> where *key* is the name of a label |
634 * | 646 * |
635 * Some examples of using labels as filters: | 647 * Some examples of using labels as filters: |
636 * | 648 * |
(...skipping 12 matching lines...) Expand all Loading... |
649 * the `resourcemanager.projects.list` permission is checked on the parent. | 661 * the `resourcemanager.projects.list` permission is checked on the parent. |
650 * If the user has this permission, all projects under the parent will be | 662 * If the user has this permission, all projects under the parent will be |
651 * returned after remaining filters have been applied. If the user lacks this | 663 * returned after remaining filters have been applied. If the user lacks this |
652 * permission, then all projects for which the user has the | 664 * permission, then all projects for which the user has the |
653 * `resourcemanager.projects.get` permission will be returned after remaining | 665 * `resourcemanager.projects.get` permission will be returned after remaining |
654 * filters have been applied. If no filter is specified, the call will return | 666 * filters have been applied. If no filter is specified, the call will return |
655 * projects for which the user has `resourcemanager.projects.get` permissions. | 667 * projects for which the user has `resourcemanager.projects.get` permissions. |
656 * | 668 * |
657 * Optional. | 669 * Optional. |
658 * | 670 * |
659 * [pageToken] - A pagination token returned from a previous call to | |
660 * ListProjects | |
661 * that indicates from where listing should continue. | |
662 * | |
663 * Optional. | |
664 * | |
665 * [pageSize] - The maximum number of Projects to return in the response. | |
666 * The server can return fewer Projects than requested. | |
667 * If unspecified, server picks an appropriate default. | |
668 * | |
669 * Optional. | |
670 * | |
671 * Completes with a [ListProjectsResponse]. | 671 * Completes with a [ListProjectsResponse]. |
672 * | 672 * |
673 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 673 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
674 * error. | 674 * error. |
675 * | 675 * |
676 * If the used [http.Client] completes with an error when making a REST call, | 676 * If the used [http.Client] completes with an error when making a REST call, |
677 * this method will complete with the same error. | 677 * this method will complete with the same error. |
678 */ | 678 */ |
679 async.Future<ListProjectsResponse> list({core.String filter, core.String pageT
oken, core.int pageSize}) { | 679 async.Future<ListProjectsResponse> list({core.String pageToken, core.int pageS
ize, core.String filter}) { |
680 var _url = null; | 680 var _url = null; |
681 var _queryParams = new core.Map(); | 681 var _queryParams = new core.Map(); |
682 var _uploadMedia = null; | 682 var _uploadMedia = null; |
683 var _uploadOptions = null; | 683 var _uploadOptions = null; |
684 var _downloadOptions = commons.DownloadOptions.Metadata; | 684 var _downloadOptions = commons.DownloadOptions.Metadata; |
685 var _body = null; | 685 var _body = null; |
686 | 686 |
687 if (filter != null) { | |
688 _queryParams["filter"] = [filter]; | |
689 } | |
690 if (pageToken != null) { | 687 if (pageToken != null) { |
691 _queryParams["pageToken"] = [pageToken]; | 688 _queryParams["pageToken"] = [pageToken]; |
692 } | 689 } |
693 if (pageSize != null) { | 690 if (pageSize != null) { |
694 _queryParams["pageSize"] = ["${pageSize}"]; | 691 _queryParams["pageSize"] = ["${pageSize}"]; |
695 } | 692 } |
| 693 if (filter != null) { |
| 694 _queryParams["filter"] = [filter]; |
| 695 } |
696 | 696 |
697 _url = 'v1beta1/projects'; | 697 _url = 'v1beta1/projects'; |
698 | 698 |
699 var _response = _requester.request(_url, | 699 var _response = _requester.request(_url, |
700 "GET", | 700 "GET", |
701 body: _body, | 701 body: _body, |
702 queryParams: _queryParams, | 702 queryParams: _queryParams, |
703 uploadOptions: _uploadOptions, | 703 uploadOptions: _uploadOptions, |
704 uploadMedia: _uploadMedia, | 704 uploadMedia: _uploadMedia, |
705 downloadOptions: _downloadOptions); | 705 downloadOptions: _downloadOptions); |
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1995 UndeleteProjectRequest(); | 1995 UndeleteProjectRequest(); |
1996 | 1996 |
1997 UndeleteProjectRequest.fromJson(core.Map _json) { | 1997 UndeleteProjectRequest.fromJson(core.Map _json) { |
1998 } | 1998 } |
1999 | 1999 |
2000 core.Map<core.String, core.Object> toJson() { | 2000 core.Map<core.String, core.Object> toJson() { |
2001 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2001 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2002 return _json; | 2002 return _json; |
2003 } | 2003 } |
2004 } | 2004 } |
OLD | NEW |