| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 /** | 250 /** |
| 251 * Lists all the RuntimeConfig resources within project. | 251 * Lists all the RuntimeConfig resources within project. |
| 252 * | 252 * |
| 253 * Request parameters: | 253 * Request parameters: |
| 254 * | 254 * |
| 255 * [parent] - The [project | 255 * [parent] - The [project |
| 256 * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848
) | 256 * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848
) |
| 257 * for this request, in the format `projects/[PROJECT_ID]`. | 257 * for this request, in the format `projects/[PROJECT_ID]`. |
| 258 * Value must have pattern "^projects/[^/]+$". | 258 * Value must have pattern "^projects/[^/]+$". |
| 259 * | 259 * |
| 260 * [pageToken] - Specifies a page token to use. Set `pageToken` to a |
| 261 * `nextPageToken` |
| 262 * returned by a previous list request to get the next page of results. |
| 263 * |
| 260 * [pageSize] - Specifies the number of results to return per page. If there | 264 * [pageSize] - Specifies the number of results to return per page. If there |
| 261 * are fewer | 265 * are fewer |
| 262 * elements than the specified number, returns all elements. | 266 * elements than the specified number, returns all elements. |
| 263 * | 267 * |
| 264 * [pageToken] - Specifies a page token to use. Set `pageToken` to a | |
| 265 * `nextPageToken` | |
| 266 * returned by a previous list request to get the next page of results. | |
| 267 * | |
| 268 * Completes with a [ListConfigsResponse]. | 268 * Completes with a [ListConfigsResponse]. |
| 269 * | 269 * |
| 270 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 270 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 271 * error. | 271 * error. |
| 272 * | 272 * |
| 273 * If the used [http.Client] completes with an error when making a REST call, | 273 * If the used [http.Client] completes with an error when making a REST call, |
| 274 * this method will complete with the same error. | 274 * this method will complete with the same error. |
| 275 */ | 275 */ |
| 276 async.Future<ListConfigsResponse> list(core.String parent, {core.int pageSize,
core.String pageToken}) { | 276 async.Future<ListConfigsResponse> list(core.String parent, {core.String pageTo
ken, core.int pageSize}) { |
| 277 var _url = null; | 277 var _url = null; |
| 278 var _queryParams = new core.Map(); | 278 var _queryParams = new core.Map(); |
| 279 var _uploadMedia = null; | 279 var _uploadMedia = null; |
| 280 var _uploadOptions = null; | 280 var _uploadOptions = null; |
| 281 var _downloadOptions = commons.DownloadOptions.Metadata; | 281 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 282 var _body = null; | 282 var _body = null; |
| 283 | 283 |
| 284 if (parent == null) { | 284 if (parent == null) { |
| 285 throw new core.ArgumentError("Parameter parent is required."); | 285 throw new core.ArgumentError("Parameter parent is required."); |
| 286 } | 286 } |
| 287 if (pageToken != null) { |
| 288 _queryParams["pageToken"] = [pageToken]; |
| 289 } |
| 287 if (pageSize != null) { | 290 if (pageSize != null) { |
| 288 _queryParams["pageSize"] = ["${pageSize}"]; | 291 _queryParams["pageSize"] = ["${pageSize}"]; |
| 289 } | 292 } |
| 290 if (pageToken != null) { | |
| 291 _queryParams["pageToken"] = [pageToken]; | |
| 292 } | |
| 293 | 293 |
| 294 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/con
figs'; | 294 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/con
figs'; |
| 295 | 295 |
| 296 var _response = _requester.request(_url, | 296 var _response = _requester.request(_url, |
| 297 "GET", | 297 "GET", |
| 298 body: _body, | 298 body: _body, |
| 299 queryParams: _queryParams, | 299 queryParams: _queryParams, |
| 300 uploadOptions: _uploadOptions, | 300 uploadOptions: _uploadOptions, |
| 301 uploadMedia: _uploadMedia, | 301 uploadMedia: _uploadMedia, |
| 302 downloadOptions: _downloadOptions); | 302 downloadOptions: _downloadOptions); |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 * | 737 * |
| 738 * Request parameters: | 738 * Request parameters: |
| 739 * | 739 * |
| 740 * [parent] - The path to the RuntimeConfig resource for which you want to | 740 * [parent] - The path to the RuntimeConfig resource for which you want to |
| 741 * list variables. | 741 * list variables. |
| 742 * The configuration must exist beforehand; the path must by in the format: | 742 * The configuration must exist beforehand; the path must by in the format: |
| 743 * | 743 * |
| 744 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 744 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
| 745 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". | 745 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
| 746 * | 746 * |
| 747 * [pageToken] - Specifies a page token to use. Set `pageToken` to a |
| 748 * `nextPageToken` |
| 749 * returned by a previous list request to get the next page of results. |
| 750 * |
| 747 * [pageSize] - Specifies the number of results to return per page. If there | 751 * [pageSize] - Specifies the number of results to return per page. If there |
| 748 * are fewer | 752 * are fewer |
| 749 * elements than the specified number, returns all elements. | 753 * elements than the specified number, returns all elements. |
| 750 * | 754 * |
| 751 * [filter] - Filters variables by matching the specified filter. For example: | 755 * [filter] - Filters variables by matching the specified filter. For example: |
| 752 * | 756 * |
| 753 * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. | 757 * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. |
| 754 * | 758 * |
| 755 * [pageToken] - Specifies a page token to use. Set `pageToken` to a | |
| 756 * `nextPageToken` | |
| 757 * returned by a previous list request to get the next page of results. | |
| 758 * | |
| 759 * Completes with a [ListVariablesResponse]. | 759 * Completes with a [ListVariablesResponse]. |
| 760 * | 760 * |
| 761 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 761 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 762 * error. | 762 * error. |
| 763 * | 763 * |
| 764 * If the used [http.Client] completes with an error when making a REST call, | 764 * If the used [http.Client] completes with an error when making a REST call, |
| 765 * this method will complete with the same error. | 765 * this method will complete with the same error. |
| 766 */ | 766 */ |
| 767 async.Future<ListVariablesResponse> list(core.String parent, {core.int pageSiz
e, core.String filter, core.String pageToken}) { | 767 async.Future<ListVariablesResponse> list(core.String parent, {core.String page
Token, core.int pageSize, core.String filter}) { |
| 768 var _url = null; | 768 var _url = null; |
| 769 var _queryParams = new core.Map(); | 769 var _queryParams = new core.Map(); |
| 770 var _uploadMedia = null; | 770 var _uploadMedia = null; |
| 771 var _uploadOptions = null; | 771 var _uploadOptions = null; |
| 772 var _downloadOptions = commons.DownloadOptions.Metadata; | 772 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 773 var _body = null; | 773 var _body = null; |
| 774 | 774 |
| 775 if (parent == null) { | 775 if (parent == null) { |
| 776 throw new core.ArgumentError("Parameter parent is required."); | 776 throw new core.ArgumentError("Parameter parent is required."); |
| 777 } | 777 } |
| 778 if (pageToken != null) { |
| 779 _queryParams["pageToken"] = [pageToken]; |
| 780 } |
| 778 if (pageSize != null) { | 781 if (pageSize != null) { |
| 779 _queryParams["pageSize"] = ["${pageSize}"]; | 782 _queryParams["pageSize"] = ["${pageSize}"]; |
| 780 } | 783 } |
| 781 if (filter != null) { | 784 if (filter != null) { |
| 782 _queryParams["filter"] = [filter]; | 785 _queryParams["filter"] = [filter]; |
| 783 } | 786 } |
| 784 if (pageToken != null) { | |
| 785 _queryParams["pageToken"] = [pageToken]; | |
| 786 } | |
| 787 | 787 |
| 788 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/var
iables'; | 788 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/var
iables'; |
| 789 | 789 |
| 790 var _response = _requester.request(_url, | 790 var _response = _requester.request(_url, |
| 791 "GET", | 791 "GET", |
| 792 body: _body, | 792 body: _body, |
| 793 queryParams: _queryParams, | 793 queryParams: _queryParams, |
| 794 uploadOptions: _uploadOptions, | 794 uploadOptions: _uploadOptions, |
| 795 uploadMedia: _uploadMedia, | 795 uploadMedia: _uploadMedia, |
| 796 downloadOptions: _downloadOptions); | 796 downloadOptions: _downloadOptions); |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 * | 1127 * |
| 1128 * Request parameters: | 1128 * Request parameters: |
| 1129 * | 1129 * |
| 1130 * [parent] - The path to the configuration for which you want to get a list | 1130 * [parent] - The path to the configuration for which you want to get a list |
| 1131 * of waiters. | 1131 * of waiters. |
| 1132 * The configuration must exist beforehand; the path must by in the format: | 1132 * The configuration must exist beforehand; the path must by in the format: |
| 1133 * | 1133 * |
| 1134 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 1134 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
| 1135 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". | 1135 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
| 1136 * | 1136 * |
| 1137 * [pageToken] - Specifies a page token to use. Set `pageToken` to a |
| 1138 * `nextPageToken` |
| 1139 * returned by a previous list request to get the next page of results. |
| 1140 * |
| 1137 * [pageSize] - Specifies the number of results to return per page. If there | 1141 * [pageSize] - Specifies the number of results to return per page. If there |
| 1138 * are fewer | 1142 * are fewer |
| 1139 * elements than the specified number, returns all elements. | 1143 * elements than the specified number, returns all elements. |
| 1140 * | 1144 * |
| 1141 * [pageToken] - Specifies a page token to use. Set `pageToken` to a | |
| 1142 * `nextPageToken` | |
| 1143 * returned by a previous list request to get the next page of results. | |
| 1144 * | |
| 1145 * Completes with a [ListWaitersResponse]. | 1145 * Completes with a [ListWaitersResponse]. |
| 1146 * | 1146 * |
| 1147 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1147 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1148 * error. | 1148 * error. |
| 1149 * | 1149 * |
| 1150 * If the used [http.Client] completes with an error when making a REST call, | 1150 * If the used [http.Client] completes with an error when making a REST call, |
| 1151 * this method will complete with the same error. | 1151 * this method will complete with the same error. |
| 1152 */ | 1152 */ |
| 1153 async.Future<ListWaitersResponse> list(core.String parent, {core.int pageSize,
core.String pageToken}) { | 1153 async.Future<ListWaitersResponse> list(core.String parent, {core.String pageTo
ken, core.int pageSize}) { |
| 1154 var _url = null; | 1154 var _url = null; |
| 1155 var _queryParams = new core.Map(); | 1155 var _queryParams = new core.Map(); |
| 1156 var _uploadMedia = null; | 1156 var _uploadMedia = null; |
| 1157 var _uploadOptions = null; | 1157 var _uploadOptions = null; |
| 1158 var _downloadOptions = commons.DownloadOptions.Metadata; | 1158 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1159 var _body = null; | 1159 var _body = null; |
| 1160 | 1160 |
| 1161 if (parent == null) { | 1161 if (parent == null) { |
| 1162 throw new core.ArgumentError("Parameter parent is required."); | 1162 throw new core.ArgumentError("Parameter parent is required."); |
| 1163 } | 1163 } |
| 1164 if (pageToken != null) { |
| 1165 _queryParams["pageToken"] = [pageToken]; |
| 1166 } |
| 1164 if (pageSize != null) { | 1167 if (pageSize != null) { |
| 1165 _queryParams["pageSize"] = ["${pageSize}"]; | 1168 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1166 } | 1169 } |
| 1167 if (pageToken != null) { | |
| 1168 _queryParams["pageToken"] = [pageToken]; | |
| 1169 } | |
| 1170 | 1170 |
| 1171 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/wai
ters'; | 1171 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/wai
ters'; |
| 1172 | 1172 |
| 1173 var _response = _requester.request(_url, | 1173 var _response = _requester.request(_url, |
| 1174 "GET", | 1174 "GET", |
| 1175 body: _body, | 1175 body: _body, |
| 1176 queryParams: _queryParams, | 1176 queryParams: _queryParams, |
| 1177 uploadOptions: _uploadOptions, | 1177 uploadOptions: _uploadOptions, |
| 1178 uploadMedia: _uploadMedia, | 1178 uploadMedia: _uploadMedia, |
| 1179 downloadOptions: _downloadOptions); | 1179 downloadOptions: _downloadOptions); |
| (...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2166 } | 2166 } |
| 2167 | 2167 |
| 2168 core.Map toJson() { | 2168 core.Map toJson() { |
| 2169 var _json = new core.Map(); | 2169 var _json = new core.Map(); |
| 2170 if (newerThan != null) { | 2170 if (newerThan != null) { |
| 2171 _json["newerThan"] = newerThan; | 2171 _json["newerThan"] = newerThan; |
| 2172 } | 2172 } |
| 2173 return _json; | 2173 return _json; |
| 2174 } | 2174 } |
| 2175 } | 2175 } |
| OLD | NEW |