| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 return _response.then((data) => new Policy.fromJson(data)); | 139 return _response.then((data) => new Policy.fromJson(data)); |
| 140 } | 140 } |
| 141 | 141 |
| 142 /** | 142 /** |
| 143 * Lists Organization resources that are visible to the user and satisfy | 143 * Lists Organization resources that are visible to the user and satisfy |
| 144 * the specified filter. This method returns Organizations in an unspecified | 144 * the specified filter. This method returns Organizations in an unspecified |
| 145 * order. New Organizations do not necessarily appear at the end of the list. | 145 * order. New Organizations do not necessarily appear at the end of the list. |
| 146 * | 146 * |
| 147 * Request parameters: | 147 * Request parameters: |
| 148 * | 148 * |
| 149 * [pageSize] - The maximum number of Organizations to return in the response. | |
| 150 * This field is optional. | |
| 151 * | |
| 152 * [filter] - An optional query string used to filter the Organizations to | 149 * [filter] - An optional query string used to filter the Organizations to |
| 153 * return in | 150 * return in |
| 154 * the response. Filter rules are case-insensitive. | 151 * the response. Filter rules are case-insensitive. |
| 155 * | 152 * |
| 156 * | 153 * |
| 157 * Organizations may be filtered by `owner.directoryCustomerId` or by | 154 * Organizations may be filtered by `owner.directoryCustomerId` or by |
| 158 * `domain`, where the domain is a Google for Work domain, for example: | 155 * `domain`, where the domain is a Google for Work domain, for example: |
| 159 * | 156 * |
| 160 * |Filter|Description| | 157 * |Filter|Description| |
| 161 * |------|-----------| | 158 * |------|-----------| |
| 162 * |owner.directorycustomerid:123456789|Organizations with | 159 * |owner.directorycustomerid:123456789|Organizations with |
| 163 * `owner.directory_customer_id` equal to `123456789`.| | 160 * `owner.directory_customer_id` equal to `123456789`.| |
| 164 * |domain:google.com|Organizations corresponding to the domain `google.com`.| | 161 * |domain:google.com|Organizations corresponding to the domain `google.com`.| |
| 165 * | 162 * |
| 166 * This field is optional. | 163 * This field is optional. |
| 167 * | 164 * |
| 168 * [pageToken] - A pagination token returned from a previous call to | 165 * [pageToken] - A pagination token returned from a previous call to |
| 169 * `ListOrganizations` | 166 * `ListOrganizations` |
| 170 * that indicates from where listing should continue. | 167 * that indicates from where listing should continue. |
| 171 * This field is optional. | 168 * This field is optional. |
| 172 * | 169 * |
| 170 * [pageSize] - The maximum number of Organizations to return in the response. |
| 171 * This field is optional. |
| 172 * |
| 173 * Completes with a [ListOrganizationsResponse]. | 173 * Completes with a [ListOrganizationsResponse]. |
| 174 * | 174 * |
| 175 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 175 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 176 * error. | 176 * error. |
| 177 * | 177 * |
| 178 * If the used [http.Client] completes with an error when making a REST call, | 178 * If the used [http.Client] completes with an error when making a REST call, |
| 179 * this method will complete with the same error. | 179 * this method will complete with the same error. |
| 180 */ | 180 */ |
| 181 async.Future<ListOrganizationsResponse> list({core.int pageSize, core.String f
ilter, core.String pageToken}) { | 181 async.Future<ListOrganizationsResponse> list({core.String filter, core.String
pageToken, core.int pageSize}) { |
| 182 var _url = null; | 182 var _url = null; |
| 183 var _queryParams = new core.Map(); | 183 var _queryParams = new core.Map(); |
| 184 var _uploadMedia = null; | 184 var _uploadMedia = null; |
| 185 var _uploadOptions = null; | 185 var _uploadOptions = null; |
| 186 var _downloadOptions = commons.DownloadOptions.Metadata; | 186 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 187 var _body = null; | 187 var _body = null; |
| 188 | 188 |
| 189 if (pageSize != null) { | |
| 190 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 191 } | |
| 192 if (filter != null) { | 189 if (filter != null) { |
| 193 _queryParams["filter"] = [filter]; | 190 _queryParams["filter"] = [filter]; |
| 194 } | 191 } |
| 195 if (pageToken != null) { | 192 if (pageToken != null) { |
| 196 _queryParams["pageToken"] = [pageToken]; | 193 _queryParams["pageToken"] = [pageToken]; |
| 197 } | 194 } |
| 195 if (pageSize != null) { |
| 196 _queryParams["pageSize"] = ["${pageSize}"]; |
| 197 } |
| 198 | 198 |
| 199 _url = 'v1beta1/organizations'; | 199 _url = 'v1beta1/organizations'; |
| 200 | 200 |
| 201 var _response = _requester.request(_url, | 201 var _response = _requester.request(_url, |
| 202 "GET", | 202 "GET", |
| 203 body: _body, | 203 body: _body, |
| 204 queryParams: _queryParams, | 204 queryParams: _queryParams, |
| 205 uploadOptions: _uploadOptions, | 205 uploadOptions: _uploadOptions, |
| 206 uploadMedia: _uploadMedia, | 206 uploadMedia: _uploadMedia, |
| 207 downloadOptions: _downloadOptions); | 207 downloadOptions: _downloadOptions); |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 return _response.then((data) => new Policy.fromJson(data)); | 621 return _response.then((data) => new Policy.fromJson(data)); |
| 622 } | 622 } |
| 623 | 623 |
| 624 /** | 624 /** |
| 625 * Lists Projects that are visible to the user and satisfy the | 625 * Lists Projects that are visible to the user and satisfy the |
| 626 * specified filter. This method returns Projects in an unspecified order. | 626 * specified filter. This method returns Projects in an unspecified order. |
| 627 * New Projects do not necessarily appear at the end of the list. | 627 * New Projects do not necessarily appear at the end of the list. |
| 628 * | 628 * |
| 629 * Request parameters: | 629 * Request parameters: |
| 630 * | 630 * |
| 631 * [pageToken] - A pagination token returned from a previous call to |
| 632 * ListProjects |
| 633 * that indicates from where listing should continue. |
| 634 * |
| 635 * Optional. |
| 636 * |
| 631 * [pageSize] - The maximum number of Projects to return in the response. | 637 * [pageSize] - The maximum number of Projects to return in the response. |
| 632 * The server can return fewer Projects than requested. | 638 * The server can return fewer Projects than requested. |
| 633 * If unspecified, server picks an appropriate default. | 639 * If unspecified, server picks an appropriate default. |
| 634 * | 640 * |
| 635 * Optional. | 641 * Optional. |
| 636 * | 642 * |
| 637 * [filter] - An expression for filtering the results of the request. Filter | 643 * [filter] - An expression for filtering the results of the request. Filter |
| 638 * rules are | 644 * rules are |
| 639 * case insensitive. The fields eligible for filtering are: | 645 * case insensitive. The fields eligible for filtering are: |
| 640 * | 646 * |
| 641 * + `name` | 647 * + `name` |
| 642 * + `id` | 648 * + `id` |
| 643 * + <code>labels.<em>key</em></code> where *key* is the name of a label | 649 * + <code>labels.<em>key</em></code> where *key* is the name of a label |
| 644 * | 650 * |
| 645 * Some examples of using labels as filters: | 651 * Some examples of using labels as filters: |
| 646 * | 652 * |
| 647 * |Filter|Description| | 653 * |Filter|Description| |
| 648 * |------|-----------| | 654 * |------|-----------| |
| 649 * |name:*|The project has a name.| | 655 * |name:*|The project has a name.| |
| 650 * |name:Howl|The project's name is `Howl` or `howl`.| | 656 * |name:Howl|The project's name is `Howl` or `howl`.| |
| 651 * |name:HOWL|Equivalent to above.| | 657 * |name:HOWL|Equivalent to above.| |
| 652 * |NAME:howl|Equivalent to above.| | 658 * |NAME:howl|Equivalent to above.| |
| 653 * |labels.color:*|The project has the label `color`.| | 659 * |labels.color:*|The project has the label `color`.| |
| 654 * |labels.color:red|The project's label `color` has the value `red`.| | 660 * |labels.color:red|The project's label `color` has the value `red`.| |
| 655 * |labels.color:red label.size:big|The project's label `color` has the | 661 * |labels.color:red label.size:big|The project's label `color` has the |
| 656 * value `red` and its label `size` has the value `big`. | 662 * value `red` and its label `size` has the value `big`. |
| 657 * | 663 * |
| 658 * Optional. | 664 * Optional. |
| 659 * | 665 * |
| 660 * [pageToken] - A pagination token returned from a previous call to | |
| 661 * ListProjects | |
| 662 * that indicates from where listing should continue. | |
| 663 * | |
| 664 * Optional. | |
| 665 * | |
| 666 * Completes with a [ListProjectsResponse]. | 666 * Completes with a [ListProjectsResponse]. |
| 667 * | 667 * |
| 668 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 668 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 669 * error. | 669 * error. |
| 670 * | 670 * |
| 671 * If the used [http.Client] completes with an error when making a REST call, | 671 * If the used [http.Client] completes with an error when making a REST call, |
| 672 * this method will complete with the same error. | 672 * this method will complete with the same error. |
| 673 */ | 673 */ |
| 674 async.Future<ListProjectsResponse> list({core.int pageSize, core.String filter
, core.String pageToken}) { | 674 async.Future<ListProjectsResponse> list({core.String pageToken, core.int pageS
ize, core.String filter}) { |
| 675 var _url = null; | 675 var _url = null; |
| 676 var _queryParams = new core.Map(); | 676 var _queryParams = new core.Map(); |
| 677 var _uploadMedia = null; | 677 var _uploadMedia = null; |
| 678 var _uploadOptions = null; | 678 var _uploadOptions = null; |
| 679 var _downloadOptions = commons.DownloadOptions.Metadata; | 679 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 680 var _body = null; | 680 var _body = null; |
| 681 | 681 |
| 682 if (pageToken != null) { |
| 683 _queryParams["pageToken"] = [pageToken]; |
| 684 } |
| 682 if (pageSize != null) { | 685 if (pageSize != null) { |
| 683 _queryParams["pageSize"] = ["${pageSize}"]; | 686 _queryParams["pageSize"] = ["${pageSize}"]; |
| 684 } | 687 } |
| 685 if (filter != null) { | 688 if (filter != null) { |
| 686 _queryParams["filter"] = [filter]; | 689 _queryParams["filter"] = [filter]; |
| 687 } | 690 } |
| 688 if (pageToken != null) { | |
| 689 _queryParams["pageToken"] = [pageToken]; | |
| 690 } | |
| 691 | 691 |
| 692 _url = 'v1beta1/projects'; | 692 _url = 'v1beta1/projects'; |
| 693 | 693 |
| 694 var _response = _requester.request(_url, | 694 var _response = _requester.request(_url, |
| 695 "GET", | 695 "GET", |
| 696 body: _body, | 696 body: _body, |
| 697 queryParams: _queryParams, | 697 queryParams: _queryParams, |
| 698 uploadOptions: _uploadOptions, | 698 uploadOptions: _uploadOptions, |
| 699 uploadMedia: _uploadMedia, | 699 uploadMedia: _uploadMedia, |
| 700 downloadOptions: _downloadOptions); | 700 downloadOptions: _downloadOptions); |
| (...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1817 UndeleteProjectRequest(); | 1817 UndeleteProjectRequest(); |
| 1818 | 1818 |
| 1819 UndeleteProjectRequest.fromJson(core.Map _json) { | 1819 UndeleteProjectRequest.fromJson(core.Map _json) { |
| 1820 } | 1820 } |
| 1821 | 1821 |
| 1822 core.Map toJson() { | 1822 core.Map toJson() { |
| 1823 var _json = new core.Map(); | 1823 var _json = new core.Map(); |
| 1824 return _json; | 1824 return _json; |
| 1825 } | 1825 } |
| 1826 } | 1826 } |
| OLD | NEW |