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.cloudbuild.v1; | 3 library googleapis.cloudbuild.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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 137 * server doesn't support this method, it returns `UNIMPLEMENTED`. |
138 * | 138 * |
139 * NOTE: the `name` binding below allows API services to override the binding | 139 * NOTE: the `name` binding below allows API services to override the binding |
140 * to use different resource name schemes, such as `users / * /operations`. | 140 * to use different resource name schemes, such as `users / * /operations`. |
141 * | 141 * |
142 * Request parameters: | 142 * Request parameters: |
143 * | 143 * |
144 * [name] - The name of the operation collection. | 144 * [name] - The name of the operation collection. |
145 * Value must have pattern "^operations$". | 145 * Value must have pattern "^operations$". |
146 * | 146 * |
147 * [filter] - The standard list filter. | |
148 * | |
149 * [pageToken] - The standard list page token. | 147 * [pageToken] - The standard list page token. |
150 * | 148 * |
151 * [pageSize] - The standard list page size. | 149 * [pageSize] - The standard list page size. |
152 * | 150 * |
| 151 * [filter] - The standard list filter. |
| 152 * |
153 * Completes with a [ListOperationsResponse]. | 153 * Completes with a [ListOperationsResponse]. |
154 * | 154 * |
155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
156 * error. | 156 * error. |
157 * | 157 * |
158 * If the used [http.Client] completes with an error when making a REST call, | 158 * If the used [http.Client] completes with an error when making a REST call, |
159 * this method will complete with the same error. | 159 * this method will complete with the same error. |
160 */ | 160 */ |
161 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.String pageToken, core.int pageSize}) { | 161 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT
oken, core.int pageSize, core.String filter}) { |
162 var _url = null; | 162 var _url = null; |
163 var _queryParams = new core.Map(); | 163 var _queryParams = new core.Map(); |
164 var _uploadMedia = null; | 164 var _uploadMedia = null; |
165 var _uploadOptions = null; | 165 var _uploadOptions = null; |
166 var _downloadOptions = commons.DownloadOptions.Metadata; | 166 var _downloadOptions = commons.DownloadOptions.Metadata; |
167 var _body = null; | 167 var _body = null; |
168 | 168 |
169 if (name == null) { | 169 if (name == null) { |
170 throw new core.ArgumentError("Parameter name is required."); | 170 throw new core.ArgumentError("Parameter name is required."); |
171 } | 171 } |
172 if (filter != null) { | |
173 _queryParams["filter"] = [filter]; | |
174 } | |
175 if (pageToken != null) { | 172 if (pageToken != null) { |
176 _queryParams["pageToken"] = [pageToken]; | 173 _queryParams["pageToken"] = [pageToken]; |
177 } | 174 } |
178 if (pageSize != null) { | 175 if (pageSize != null) { |
179 _queryParams["pageSize"] = ["${pageSize}"]; | 176 _queryParams["pageSize"] = ["${pageSize}"]; |
180 } | 177 } |
| 178 if (filter != null) { |
| 179 _queryParams["filter"] = [filter]; |
| 180 } |
181 | 181 |
182 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 182 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
183 | 183 |
184 var _response = _requester.request(_url, | 184 var _response = _requester.request(_url, |
185 "GET", | 185 "GET", |
186 body: _body, | 186 body: _body, |
187 queryParams: _queryParams, | 187 queryParams: _queryParams, |
188 uploadOptions: _uploadOptions, | 188 uploadOptions: _uploadOptions, |
189 uploadMedia: _uploadMedia, | 189 uploadMedia: _uploadMedia, |
190 downloadOptions: _downloadOptions); | 190 downloadOptions: _downloadOptions); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 /** | 358 /** |
359 * Lists previously requested builds. | 359 * Lists previously requested builds. |
360 * | 360 * |
361 * Previously requested builds may still be in-progress, or may have finished | 361 * Previously requested builds may still be in-progress, or may have finished |
362 * successfully or unsuccessfully. | 362 * successfully or unsuccessfully. |
363 * | 363 * |
364 * Request parameters: | 364 * Request parameters: |
365 * | 365 * |
366 * [projectId] - ID of the project. | 366 * [projectId] - ID of the project. |
367 * | 367 * |
368 * [filter] - The raw filter text to constrain the results. | |
369 * | |
370 * [pageToken] - Token to provide to skip to a particular spot in the list. | 368 * [pageToken] - Token to provide to skip to a particular spot in the list. |
371 * | 369 * |
372 * [pageSize] - Number of results to return in the list. | 370 * [pageSize] - Number of results to return in the list. |
373 * | 371 * |
| 372 * [filter] - The raw filter text to constrain the results. |
| 373 * |
374 * Completes with a [ListBuildsResponse]. | 374 * Completes with a [ListBuildsResponse]. |
375 * | 375 * |
376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
377 * error. | 377 * error. |
378 * | 378 * |
379 * If the used [http.Client] completes with an error when making a REST call, | 379 * If the used [http.Client] completes with an error when making a REST call, |
380 * this method will complete with the same error. | 380 * this method will complete with the same error. |
381 */ | 381 */ |
382 async.Future<ListBuildsResponse> list(core.String projectId, {core.String filt
er, core.String pageToken, core.int pageSize}) { | 382 async.Future<ListBuildsResponse> list(core.String projectId, {core.String page
Token, core.int pageSize, core.String filter}) { |
383 var _url = null; | 383 var _url = null; |
384 var _queryParams = new core.Map(); | 384 var _queryParams = new core.Map(); |
385 var _uploadMedia = null; | 385 var _uploadMedia = null; |
386 var _uploadOptions = null; | 386 var _uploadOptions = null; |
387 var _downloadOptions = commons.DownloadOptions.Metadata; | 387 var _downloadOptions = commons.DownloadOptions.Metadata; |
388 var _body = null; | 388 var _body = null; |
389 | 389 |
390 if (projectId == null) { | 390 if (projectId == null) { |
391 throw new core.ArgumentError("Parameter projectId is required."); | 391 throw new core.ArgumentError("Parameter projectId is required."); |
392 } | 392 } |
393 if (filter != null) { | |
394 _queryParams["filter"] = [filter]; | |
395 } | |
396 if (pageToken != null) { | 393 if (pageToken != null) { |
397 _queryParams["pageToken"] = [pageToken]; | 394 _queryParams["pageToken"] = [pageToken]; |
398 } | 395 } |
399 if (pageSize != null) { | 396 if (pageSize != null) { |
400 _queryParams["pageSize"] = ["${pageSize}"]; | 397 _queryParams["pageSize"] = ["${pageSize}"]; |
401 } | 398 } |
| 399 if (filter != null) { |
| 400 _queryParams["filter"] = [filter]; |
| 401 } |
402 | 402 |
403 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/buil
ds'; | 403 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/buil
ds'; |
404 | 404 |
405 var _response = _requester.request(_url, | 405 var _response = _requester.request(_url, |
406 "GET", | 406 "GET", |
407 body: _body, | 407 body: _body, |
408 queryParams: _queryParams, | 408 queryParams: _queryParams, |
409 uploadOptions: _uploadOptions, | 409 uploadOptions: _uploadOptions, |
410 uploadMedia: _uploadMedia, | 410 uploadMedia: _uploadMedia, |
411 downloadOptions: _downloadOptions); | 411 downloadOptions: _downloadOptions); |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1819 } | 1819 } |
1820 if (generation != null) { | 1820 if (generation != null) { |
1821 _json["generation"] = generation; | 1821 _json["generation"] = generation; |
1822 } | 1822 } |
1823 if (object != null) { | 1823 if (object != null) { |
1824 _json["object"] = object; | 1824 _json["object"] = object; |
1825 } | 1825 } |
1826 return _json; | 1826 return _json; |
1827 } | 1827 } |
1828 } | 1828 } |
OLD | NEW |