| 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.runtimeconfig.v1beta1; | 3 library googleapis_beta.runtimeconfig.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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 * list variables. | 746 * list variables. |
| 747 * The configuration must exist beforehand; the path must by in the format: | 747 * The configuration must exist beforehand; the path must by in the format: |
| 748 * | 748 * |
| 749 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 749 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
| 750 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". | 750 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
| 751 * | 751 * |
| 752 * [filter] - Filters variables by matching the specified filter. For example: | 752 * [filter] - Filters variables by matching the specified filter. For example: |
| 753 * | 753 * |
| 754 * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. | 754 * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. |
| 755 * | 755 * |
| 756 * [pageToken] - Specifies a page token to use. Set `pageToken` to a | |
| 757 * `nextPageToken` | |
| 758 * returned by a previous list request to get the next page of results. | |
| 759 * | |
| 760 * [returnValues] - The flag indicates whether the user wants to return values | 756 * [returnValues] - The flag indicates whether the user wants to return values |
| 761 * of variables. | 757 * of variables. |
| 762 * If true, then only those variables that user has IAM GetVariable permission | 758 * If true, then only those variables that user has IAM GetVariable permission |
| 763 * will be returned along with their values. | 759 * will be returned along with their values. |
| 764 * | 760 * |
| 761 * [pageToken] - Specifies a page token to use. Set `pageToken` to a |
| 762 * `nextPageToken` |
| 763 * returned by a previous list request to get the next page of results. |
| 764 * |
| 765 * [pageSize] - Specifies the number of results to return per page. If there | 765 * [pageSize] - Specifies the number of results to return per page. If there |
| 766 * are fewer | 766 * are fewer |
| 767 * elements than the specified number, returns all elements. | 767 * elements than the specified number, returns all elements. |
| 768 * | 768 * |
| 769 * Completes with a [ListVariablesResponse]. | 769 * Completes with a [ListVariablesResponse]. |
| 770 * | 770 * |
| 771 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 771 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 772 * error. | 772 * error. |
| 773 * | 773 * |
| 774 * If the used [http.Client] completes with an error when making a REST call, | 774 * If the used [http.Client] completes with an error when making a REST call, |
| 775 * this method will complete with the same error. | 775 * this method will complete with the same error. |
| 776 */ | 776 */ |
| 777 async.Future<ListVariablesResponse> list(core.String parent, {core.String filt
er, core.String pageToken, core.bool returnValues, core.int pageSize}) { | 777 async.Future<ListVariablesResponse> list(core.String parent, {core.String filt
er, core.bool returnValues, core.String pageToken, core.int pageSize}) { |
| 778 var _url = null; | 778 var _url = null; |
| 779 var _queryParams = new core.Map(); | 779 var _queryParams = new core.Map(); |
| 780 var _uploadMedia = null; | 780 var _uploadMedia = null; |
| 781 var _uploadOptions = null; | 781 var _uploadOptions = null; |
| 782 var _downloadOptions = commons.DownloadOptions.Metadata; | 782 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 783 var _body = null; | 783 var _body = null; |
| 784 | 784 |
| 785 if (parent == null) { | 785 if (parent == null) { |
| 786 throw new core.ArgumentError("Parameter parent is required."); | 786 throw new core.ArgumentError("Parameter parent is required."); |
| 787 } | 787 } |
| 788 if (filter != null) { | 788 if (filter != null) { |
| 789 _queryParams["filter"] = [filter]; | 789 _queryParams["filter"] = [filter]; |
| 790 } | 790 } |
| 791 if (returnValues != null) { |
| 792 _queryParams["returnValues"] = ["${returnValues}"]; |
| 793 } |
| 791 if (pageToken != null) { | 794 if (pageToken != null) { |
| 792 _queryParams["pageToken"] = [pageToken]; | 795 _queryParams["pageToken"] = [pageToken]; |
| 793 } | 796 } |
| 794 if (returnValues != null) { | |
| 795 _queryParams["returnValues"] = ["${returnValues}"]; | |
| 796 } | |
| 797 if (pageSize != null) { | 797 if (pageSize != null) { |
| 798 _queryParams["pageSize"] = ["${pageSize}"]; | 798 _queryParams["pageSize"] = ["${pageSize}"]; |
| 799 } | 799 } |
| 800 | 800 |
| 801 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/var
iables'; | 801 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/var
iables'; |
| 802 | 802 |
| 803 var _response = _requester.request(_url, | 803 var _response = _requester.request(_url, |
| 804 "GET", | 804 "GET", |
| 805 body: _body, | 805 body: _body, |
| 806 queryParams: _queryParams, | 806 queryParams: _queryParams, |
| (...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2177 } | 2177 } |
| 2178 | 2178 |
| 2179 core.Map<core.String, core.Object> toJson() { | 2179 core.Map<core.String, core.Object> toJson() { |
| 2180 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2180 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2181 if (newerThan != null) { | 2181 if (newerThan != null) { |
| 2182 _json["newerThan"] = newerThan; | 2182 _json["newerThan"] = newerThan; |
| 2183 } | 2183 } |
| 2184 return _json; | 2184 return _json; |
| 2185 } | 2185 } |
| 2186 } | 2186 } |
| OLD | NEW |