| 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.cloudresourcemanager.v1; | 3 library googleapis.cloudresourcemanager.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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 return _response.then((data) => new Policy.fromJson(data)); | 587 return _response.then((data) => new Policy.fromJson(data)); |
| 588 } | 588 } |
| 589 | 589 |
| 590 /** | 590 /** |
| 591 * Lists Projects that are visible to the user and satisfy the | 591 * Lists Projects that are visible to the user and satisfy the |
| 592 * specified filter. This method returns Projects in an unspecified order. | 592 * specified filter. This method returns Projects in an unspecified order. |
| 593 * New Projects do not necessarily appear at the end of the list. | 593 * New Projects do not necessarily appear at the end of the list. |
| 594 * | 594 * |
| 595 * Request parameters: | 595 * Request parameters: |
| 596 * | 596 * |
| 597 * [pageSize] - The maximum number of Projects to return in the response. | |
| 598 * The server can return fewer Projects than requested. | |
| 599 * If unspecified, server picks an appropriate default. | |
| 600 * | |
| 601 * Optional. | |
| 602 * | |
| 603 * [filter] - An expression for filtering the results of the request. Filter | 597 * [filter] - An expression for filtering the results of the request. Filter |
| 604 * rules are | 598 * rules are |
| 605 * case insensitive. The fields eligible for filtering are: | 599 * case insensitive. The fields eligible for filtering are: |
| 606 * | 600 * |
| 607 * + `name` | 601 * + `name` |
| 608 * + `id` | 602 * + `id` |
| 609 * + <code>labels.<em>key</em></code> where *key* is the name of a label | 603 * + <code>labels.<em>key</em></code> where *key* is the name of a label |
| 610 * | 604 * |
| 611 * Some examples of using labels as filters: | 605 * Some examples of using labels as filters: |
| 612 * | 606 * |
| 613 * |Filter|Description| | 607 * |Filter|Description| |
| 614 * |------|-----------| | 608 * |------|-----------| |
| 615 * |name:*|The project has a name.| | 609 * |name:*|The project has a name.| |
| 616 * |name:Howl|The project's name is `Howl` or `howl`.| | 610 * |name:Howl|The project's name is `Howl` or `howl`.| |
| 617 * |name:HOWL|Equivalent to above.| | 611 * |name:HOWL|Equivalent to above.| |
| 618 * |NAME:howl|Equivalent to above.| | 612 * |NAME:howl|Equivalent to above.| |
| 619 * |labels.color:*|The project has the label `color`.| | 613 * |labels.color:*|The project has the label `color`.| |
| 620 * |labels.color:red|The project's label `color` has the value `red`.| | 614 * |labels.color:red|The project's label `color` has the value `red`.| |
| 621 * |labels.color:red label.size:big|The project's label `color` has the | 615 * |labels.color:red label.size:big|The project's label `color` has the |
| 622 * value `red` and its label `size` has the value `big`. | 616 * value `red` and its label `size` has the value `big`. |
| 623 * | 617 * |
| 624 * Optional. | 618 * Optional. |
| 625 * | 619 * |
| 626 * [pageToken] - A pagination token returned from a previous call to | 620 * [pageToken] - A pagination token returned from a previous call to |
| 627 * ListProjects | 621 * ListProjects |
| 628 * that indicates from where listing should continue. | 622 * that indicates from where listing should continue. |
| 629 * | 623 * |
| 630 * Optional. | 624 * Optional. |
| 631 * | 625 * |
| 626 * [pageSize] - The maximum number of Projects to return in the response. |
| 627 * The server can return fewer Projects than requested. |
| 628 * If unspecified, server picks an appropriate default. |
| 629 * |
| 630 * Optional. |
| 631 * |
| 632 * Completes with a [ListProjectsResponse]. | 632 * Completes with a [ListProjectsResponse]. |
| 633 * | 633 * |
| 634 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 634 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 635 * error. | 635 * error. |
| 636 * | 636 * |
| 637 * If the used [http.Client] completes with an error when making a REST call, | 637 * If the used [http.Client] completes with an error when making a REST call, |
| 638 * this method will complete with the same error. | 638 * this method will complete with the same error. |
| 639 */ | 639 */ |
| 640 async.Future<ListProjectsResponse> list({core.int pageSize, core.String filter
, core.String pageToken}) { | 640 async.Future<ListProjectsResponse> list({core.String filter, core.String pageT
oken, core.int pageSize}) { |
| 641 var _url = null; | 641 var _url = null; |
| 642 var _queryParams = new core.Map(); | 642 var _queryParams = new core.Map(); |
| 643 var _uploadMedia = null; | 643 var _uploadMedia = null; |
| 644 var _uploadOptions = null; | 644 var _uploadOptions = null; |
| 645 var _downloadOptions = commons.DownloadOptions.Metadata; | 645 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 646 var _body = null; | 646 var _body = null; |
| 647 | 647 |
| 648 if (pageSize != null) { | |
| 649 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 650 } | |
| 651 if (filter != null) { | 648 if (filter != null) { |
| 652 _queryParams["filter"] = [filter]; | 649 _queryParams["filter"] = [filter]; |
| 653 } | 650 } |
| 654 if (pageToken != null) { | 651 if (pageToken != null) { |
| 655 _queryParams["pageToken"] = [pageToken]; | 652 _queryParams["pageToken"] = [pageToken]; |
| 656 } | 653 } |
| 654 if (pageSize != null) { |
| 655 _queryParams["pageSize"] = ["${pageSize}"]; |
| 656 } |
| 657 | 657 |
| 658 _url = 'v1/projects'; | 658 _url = 'v1/projects'; |
| 659 | 659 |
| 660 var _response = _requester.request(_url, | 660 var _response = _requester.request(_url, |
| 661 "GET", | 661 "GET", |
| 662 body: _body, | 662 body: _body, |
| 663 queryParams: _queryParams, | 663 queryParams: _queryParams, |
| 664 uploadOptions: _uploadOptions, | 664 uploadOptions: _uploadOptions, |
| 665 uploadMedia: _uploadMedia, | 665 uploadMedia: _uploadMedia, |
| 666 downloadOptions: _downloadOptions); | 666 downloadOptions: _downloadOptions); |
| (...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2020 UndeleteProjectRequest(); | 2020 UndeleteProjectRequest(); |
| 2021 | 2021 |
| 2022 UndeleteProjectRequest.fromJson(core.Map _json) { | 2022 UndeleteProjectRequest.fromJson(core.Map _json) { |
| 2023 } | 2023 } |
| 2024 | 2024 |
| 2025 core.Map toJson() { | 2025 core.Map toJson() { |
| 2026 var _json = new core.Map(); | 2026 var _json = new core.Map(); |
| 2027 return _json; | 2027 return _json; |
| 2028 } | 2028 } |
| 2029 } | 2029 } |
| OLD | NEW |