| 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 347 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 * [pageToken] - Token to provide to skip to a particular spot in the list. |
| 369 * |
| 368 * [pageSize] - Number of results to return in the list. | 370 * [pageSize] - Number of results to return in the list. |
| 369 * | 371 * |
| 370 * [filter] - The raw filter text to constrain the results. | 372 * [filter] - The raw filter text to constrain the results. |
| 371 * | 373 * |
| 372 * [pageToken] - Token to provide to skip to a particular spot in the list. | |
| 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.int pageSiz
e, core.String filter, core.String pageToken}) { | 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 (pageToken != null) { |
| 394 _queryParams["pageToken"] = [pageToken]; |
| 395 } |
| 393 if (pageSize != null) { | 396 if (pageSize != null) { |
| 394 _queryParams["pageSize"] = ["${pageSize}"]; | 397 _queryParams["pageSize"] = ["${pageSize}"]; |
| 395 } | 398 } |
| 396 if (filter != null) { | 399 if (filter != null) { |
| 397 _queryParams["filter"] = [filter]; | 400 _queryParams["filter"] = [filter]; |
| 398 } | 401 } |
| 399 if (pageToken != null) { | |
| 400 _queryParams["pageToken"] = [pageToken]; | |
| 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 |