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 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1473 return _response.then((data) => new OrgPolicy.fromJson(data)); | 1473 return _response.then((data) => new OrgPolicy.fromJson(data)); |
1474 } | 1474 } |
1475 | 1475 |
1476 /** | 1476 /** |
1477 * Lists Projects that are visible to the user and satisfy the | 1477 * Lists Projects that are visible to the user and satisfy the |
1478 * specified filter. This method returns Projects in an unspecified order. | 1478 * specified filter. This method returns Projects in an unspecified order. |
1479 * New Projects do not necessarily appear at the end of the list. | 1479 * New Projects do not necessarily appear at the end of the list. |
1480 * | 1480 * |
1481 * Request parameters: | 1481 * Request parameters: |
1482 * | 1482 * |
| 1483 * [pageSize] - The maximum number of Projects to return in the response. |
| 1484 * The server can return fewer Projects than requested. |
| 1485 * If unspecified, server picks an appropriate default. |
| 1486 * |
| 1487 * Optional. |
| 1488 * |
1483 * [filter] - An expression for filtering the results of the request. Filter | 1489 * [filter] - An expression for filtering the results of the request. Filter |
1484 * rules are | 1490 * rules are |
1485 * case insensitive. The fields eligible for filtering are: | 1491 * case insensitive. The fields eligible for filtering are: |
1486 * | 1492 * |
1487 * + `name` | 1493 * + `name` |
1488 * + `id` | 1494 * + `id` |
1489 * + <code>labels.<em>key</em></code> where *key* is the name of a label | 1495 * + <code>labels.<em>key</em></code> where *key* is the name of a label |
1490 * | 1496 * |
1491 * Some examples of using labels as filters: | 1497 * Some examples of using labels as filters: |
1492 * | 1498 * |
(...skipping 18 matching lines...) Expand all Loading... |
1511 * projects for which the user has `resourcemanager.projects.get` permissions. | 1517 * projects for which the user has `resourcemanager.projects.get` permissions. |
1512 * | 1518 * |
1513 * Optional. | 1519 * Optional. |
1514 * | 1520 * |
1515 * [pageToken] - A pagination token returned from a previous call to | 1521 * [pageToken] - A pagination token returned from a previous call to |
1516 * ListProjects | 1522 * ListProjects |
1517 * that indicates from where listing should continue. | 1523 * that indicates from where listing should continue. |
1518 * | 1524 * |
1519 * Optional. | 1525 * Optional. |
1520 * | 1526 * |
1521 * [pageSize] - The maximum number of Projects to return in the response. | |
1522 * The server can return fewer Projects than requested. | |
1523 * If unspecified, server picks an appropriate default. | |
1524 * | |
1525 * Optional. | |
1526 * | |
1527 * Completes with a [ListProjectsResponse]. | 1527 * Completes with a [ListProjectsResponse]. |
1528 * | 1528 * |
1529 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1529 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1530 * error. | 1530 * error. |
1531 * | 1531 * |
1532 * If the used [http.Client] completes with an error when making a REST call, | 1532 * If the used [http.Client] completes with an error when making a REST call, |
1533 * this method will complete with the same error. | 1533 * this method will complete with the same error. |
1534 */ | 1534 */ |
1535 async.Future<ListProjectsResponse> list({core.String filter, core.String pageT
oken, core.int pageSize}) { | 1535 async.Future<ListProjectsResponse> list({core.int pageSize, core.String filter
, core.String pageToken}) { |
1536 var _url = null; | 1536 var _url = null; |
1537 var _queryParams = new core.Map(); | 1537 var _queryParams = new core.Map(); |
1538 var _uploadMedia = null; | 1538 var _uploadMedia = null; |
1539 var _uploadOptions = null; | 1539 var _uploadOptions = null; |
1540 var _downloadOptions = commons.DownloadOptions.Metadata; | 1540 var _downloadOptions = commons.DownloadOptions.Metadata; |
1541 var _body = null; | 1541 var _body = null; |
1542 | 1542 |
| 1543 if (pageSize != null) { |
| 1544 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1545 } |
1543 if (filter != null) { | 1546 if (filter != null) { |
1544 _queryParams["filter"] = [filter]; | 1547 _queryParams["filter"] = [filter]; |
1545 } | 1548 } |
1546 if (pageToken != null) { | 1549 if (pageToken != null) { |
1547 _queryParams["pageToken"] = [pageToken]; | 1550 _queryParams["pageToken"] = [pageToken]; |
1548 } | 1551 } |
1549 if (pageSize != null) { | |
1550 _queryParams["pageSize"] = ["${pageSize}"]; | |
1551 } | |
1552 | 1552 |
1553 _url = 'v1/projects'; | 1553 _url = 'v1/projects'; |
1554 | 1554 |
1555 var _response = _requester.request(_url, | 1555 var _response = _requester.request(_url, |
1556 "GET", | 1556 "GET", |
1557 body: _body, | 1557 body: _body, |
1558 queryParams: _queryParams, | 1558 queryParams: _queryParams, |
1559 uploadOptions: _uploadOptions, | 1559 uploadOptions: _uploadOptions, |
1560 uploadMedia: _uploadMedia, | 1560 uploadMedia: _uploadMedia, |
1561 downloadOptions: _downloadOptions); | 1561 downloadOptions: _downloadOptions); |
(...skipping 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4147 UndeleteProjectRequest(); | 4147 UndeleteProjectRequest(); |
4148 | 4148 |
4149 UndeleteProjectRequest.fromJson(core.Map _json) { | 4149 UndeleteProjectRequest.fromJson(core.Map _json) { |
4150 } | 4150 } |
4151 | 4151 |
4152 core.Map<core.String, core.Object> toJson() { | 4152 core.Map<core.String, core.Object> toJson() { |
4153 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4153 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4154 return _json; | 4154 return _json; |
4155 } | 4155 } |
4156 } | 4156 } |
OLD | NEW |