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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 * | 744 * |
745 * Request parameters: | 745 * Request parameters: |
746 * | 746 * |
747 * [parent] - The path to the RuntimeConfig resource for which you want to | 747 * [parent] - The path to the RuntimeConfig resource for which you want to |
748 * list variables. | 748 * list variables. |
749 * The configuration must exist beforehand; the path must by in the format: | 749 * The configuration must exist beforehand; the path must by in the format: |
750 * | 750 * |
751 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 751 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
752 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". | 752 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
753 * | 753 * |
754 * [pageSize] - Specifies the number of results to return per page. If there | |
755 * are fewer | |
756 * elements than the specified number, returns all elements. | |
757 * | |
758 * [filter] - Filters variables by matching the specified filter. For example: | 754 * [filter] - Filters variables by matching the specified filter. For example: |
759 * | 755 * |
760 * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. | 756 * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. |
761 * | 757 * |
762 * [pageToken] - Specifies a page token to use. Set `pageToken` to a | 758 * [pageToken] - Specifies a page token to use. Set `pageToken` to a |
763 * `nextPageToken` | 759 * `nextPageToken` |
764 * returned by a previous list request to get the next page of results. | 760 * returned by a previous list request to get the next page of results. |
765 * | 761 * |
766 * [returnValues] - The flag indicates whether the user wants to return values | 762 * [returnValues] - The flag indicates whether the user wants to return values |
767 * of variables. | 763 * of variables. |
768 * If true, then only those variables that user has IAM GetVariable permission | 764 * If true, then only those variables that user has IAM GetVariable permission |
769 * will be returned along with their values. | 765 * will be returned along with their values. |
770 * | 766 * |
| 767 * [pageSize] - Specifies the number of results to return per page. If there |
| 768 * are fewer |
| 769 * elements than the specified number, returns all elements. |
| 770 * |
771 * Completes with a [ListVariablesResponse]. | 771 * Completes with a [ListVariablesResponse]. |
772 * | 772 * |
773 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 773 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
774 * error. | 774 * error. |
775 * | 775 * |
776 * If the used [http.Client] completes with an error when making a REST call, | 776 * If the used [http.Client] completes with an error when making a REST call, |
777 * this method will complete with the same error. | 777 * this method will complete with the same error. |
778 */ | 778 */ |
779 async.Future<ListVariablesResponse> list(core.String parent, {core.int pageSiz
e, core.String filter, core.String pageToken, core.bool returnValues}) { | 779 async.Future<ListVariablesResponse> list(core.String parent, {core.String filt
er, core.String pageToken, core.bool returnValues, core.int pageSize}) { |
780 var _url = null; | 780 var _url = null; |
781 var _queryParams = new core.Map(); | 781 var _queryParams = new core.Map(); |
782 var _uploadMedia = null; | 782 var _uploadMedia = null; |
783 var _uploadOptions = null; | 783 var _uploadOptions = null; |
784 var _downloadOptions = commons.DownloadOptions.Metadata; | 784 var _downloadOptions = commons.DownloadOptions.Metadata; |
785 var _body = null; | 785 var _body = null; |
786 | 786 |
787 if (parent == null) { | 787 if (parent == null) { |
788 throw new core.ArgumentError("Parameter parent is required."); | 788 throw new core.ArgumentError("Parameter parent is required."); |
789 } | 789 } |
790 if (pageSize != null) { | |
791 _queryParams["pageSize"] = ["${pageSize}"]; | |
792 } | |
793 if (filter != null) { | 790 if (filter != null) { |
794 _queryParams["filter"] = [filter]; | 791 _queryParams["filter"] = [filter]; |
795 } | 792 } |
796 if (pageToken != null) { | 793 if (pageToken != null) { |
797 _queryParams["pageToken"] = [pageToken]; | 794 _queryParams["pageToken"] = [pageToken]; |
798 } | 795 } |
799 if (returnValues != null) { | 796 if (returnValues != null) { |
800 _queryParams["returnValues"] = ["${returnValues}"]; | 797 _queryParams["returnValues"] = ["${returnValues}"]; |
801 } | 798 } |
| 799 if (pageSize != null) { |
| 800 _queryParams["pageSize"] = ["${pageSize}"]; |
| 801 } |
802 | 802 |
803 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/var
iables'; | 803 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/var
iables'; |
804 | 804 |
805 var _response = _requester.request(_url, | 805 var _response = _requester.request(_url, |
806 "GET", | 806 "GET", |
807 body: _body, | 807 body: _body, |
808 queryParams: _queryParams, | 808 queryParams: _queryParams, |
809 uploadOptions: _uploadOptions, | 809 uploadOptions: _uploadOptions, |
810 uploadMedia: _uploadMedia, | 810 uploadMedia: _uploadMedia, |
811 downloadOptions: _downloadOptions); | 811 downloadOptions: _downloadOptions); |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 * | 1145 * |
1146 * Request parameters: | 1146 * Request parameters: |
1147 * | 1147 * |
1148 * [parent] - The path to the configuration for which you want to get a list | 1148 * [parent] - The path to the configuration for which you want to get a list |
1149 * of waiters. | 1149 * of waiters. |
1150 * The configuration must exist beforehand; the path must by in the format: | 1150 * The configuration must exist beforehand; the path must by in the format: |
1151 * | 1151 * |
1152 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 1152 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
1153 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". | 1153 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
1154 * | 1154 * |
| 1155 * [pageSize] - Specifies the number of results to return per page. If there |
| 1156 * are fewer |
| 1157 * elements than the specified number, returns all elements. |
| 1158 * |
1155 * [pageToken] - Specifies a page token to use. Set `pageToken` to a | 1159 * [pageToken] - Specifies a page token to use. Set `pageToken` to a |
1156 * `nextPageToken` | 1160 * `nextPageToken` |
1157 * returned by a previous list request to get the next page of results. | 1161 * returned by a previous list request to get the next page of results. |
1158 * | 1162 * |
1159 * [pageSize] - Specifies the number of results to return per page. If there | |
1160 * are fewer | |
1161 * elements than the specified number, returns all elements. | |
1162 * | |
1163 * Completes with a [ListWaitersResponse]. | 1163 * Completes with a [ListWaitersResponse]. |
1164 * | 1164 * |
1165 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1165 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1166 * error. | 1166 * error. |
1167 * | 1167 * |
1168 * If the used [http.Client] completes with an error when making a REST call, | 1168 * If the used [http.Client] completes with an error when making a REST call, |
1169 * this method will complete with the same error. | 1169 * this method will complete with the same error. |
1170 */ | 1170 */ |
1171 async.Future<ListWaitersResponse> list(core.String parent, {core.String pageTo
ken, core.int pageSize}) { | 1171 async.Future<ListWaitersResponse> list(core.String parent, {core.int pageSize,
core.String pageToken}) { |
1172 var _url = null; | 1172 var _url = null; |
1173 var _queryParams = new core.Map(); | 1173 var _queryParams = new core.Map(); |
1174 var _uploadMedia = null; | 1174 var _uploadMedia = null; |
1175 var _uploadOptions = null; | 1175 var _uploadOptions = null; |
1176 var _downloadOptions = commons.DownloadOptions.Metadata; | 1176 var _downloadOptions = commons.DownloadOptions.Metadata; |
1177 var _body = null; | 1177 var _body = null; |
1178 | 1178 |
1179 if (parent == null) { | 1179 if (parent == null) { |
1180 throw new core.ArgumentError("Parameter parent is required."); | 1180 throw new core.ArgumentError("Parameter parent is required."); |
1181 } | 1181 } |
| 1182 if (pageSize != null) { |
| 1183 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1184 } |
1182 if (pageToken != null) { | 1185 if (pageToken != null) { |
1183 _queryParams["pageToken"] = [pageToken]; | 1186 _queryParams["pageToken"] = [pageToken]; |
1184 } | 1187 } |
1185 if (pageSize != null) { | |
1186 _queryParams["pageSize"] = ["${pageSize}"]; | |
1187 } | |
1188 | 1188 |
1189 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/wai
ters'; | 1189 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/wai
ters'; |
1190 | 1190 |
1191 var _response = _requester.request(_url, | 1191 var _response = _requester.request(_url, |
1192 "GET", | 1192 "GET", |
1193 body: _body, | 1193 body: _body, |
1194 queryParams: _queryParams, | 1194 queryParams: _queryParams, |
1195 uploadOptions: _uploadOptions, | 1195 uploadOptions: _uploadOptions, |
1196 uploadMedia: _uploadMedia, | 1196 uploadMedia: _uploadMedia, |
1197 downloadOptions: _downloadOptions); | 1197 downloadOptions: _downloadOptions); |
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2187 } | 2187 } |
2188 | 2188 |
2189 core.Map toJson() { | 2189 core.Map toJson() { |
2190 var _json = new core.Map(); | 2190 var _json = new core.Map(); |
2191 if (newerThan != null) { | 2191 if (newerThan != null) { |
2192 _json["newerThan"] = newerThan; | 2192 _json["newerThan"] = newerThan; |
2193 } | 2193 } |
2194 return _json; | 2194 return _json; |
2195 } | 2195 } |
2196 } | 2196 } |
OLD | NEW |