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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 /** | 363 /** |
364 * Lists previously requested builds. | 364 * Lists previously requested builds. |
365 * | 365 * |
366 * Previously requested builds may still be in-progress, or may have finished | 366 * Previously requested builds may still be in-progress, or may have finished |
367 * successfully or unsuccessfully. | 367 * successfully or unsuccessfully. |
368 * | 368 * |
369 * Request parameters: | 369 * Request parameters: |
370 * | 370 * |
371 * [projectId] - ID of the project. | 371 * [projectId] - ID of the project. |
372 * | 372 * |
| 373 * [pageToken] - Token to provide to skip to a particular spot in the list. |
| 374 * |
373 * [pageSize] - Number of results to return in the list. | 375 * [pageSize] - Number of results to return in the list. |
374 * | 376 * |
375 * [filter] - The raw filter text to constrain the results. | 377 * [filter] - The raw filter text to constrain the results. |
376 * | 378 * |
377 * [pageToken] - Token to provide to skip to a particular spot in the list. | |
378 * | |
379 * Completes with a [ListBuildsResponse]. | 379 * Completes with a [ListBuildsResponse]. |
380 * | 380 * |
381 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 381 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
382 * error. | 382 * error. |
383 * | 383 * |
384 * If the used [http.Client] completes with an error when making a REST call, | 384 * If the used [http.Client] completes with an error when making a REST call, |
385 * this method will complete with the same error. | 385 * this method will complete with the same error. |
386 */ | 386 */ |
387 async.Future<ListBuildsResponse> list(core.String projectId, {core.int pageSiz
e, core.String filter, core.String pageToken}) { | 387 async.Future<ListBuildsResponse> list(core.String projectId, {core.String page
Token, core.int pageSize, core.String filter}) { |
388 var _url = null; | 388 var _url = null; |
389 var _queryParams = new core.Map(); | 389 var _queryParams = new core.Map(); |
390 var _uploadMedia = null; | 390 var _uploadMedia = null; |
391 var _uploadOptions = null; | 391 var _uploadOptions = null; |
392 var _downloadOptions = commons.DownloadOptions.Metadata; | 392 var _downloadOptions = commons.DownloadOptions.Metadata; |
393 var _body = null; | 393 var _body = null; |
394 | 394 |
395 if (projectId == null) { | 395 if (projectId == null) { |
396 throw new core.ArgumentError("Parameter projectId is required."); | 396 throw new core.ArgumentError("Parameter projectId is required."); |
397 } | 397 } |
| 398 if (pageToken != null) { |
| 399 _queryParams["pageToken"] = [pageToken]; |
| 400 } |
398 if (pageSize != null) { | 401 if (pageSize != null) { |
399 _queryParams["pageSize"] = ["${pageSize}"]; | 402 _queryParams["pageSize"] = ["${pageSize}"]; |
400 } | 403 } |
401 if (filter != null) { | 404 if (filter != null) { |
402 _queryParams["filter"] = [filter]; | 405 _queryParams["filter"] = [filter]; |
403 } | 406 } |
404 if (pageToken != null) { | |
405 _queryParams["pageToken"] = [pageToken]; | |
406 } | |
407 | 407 |
408 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/buil
ds'; | 408 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/buil
ds'; |
409 | 409 |
410 var _response = _requester.request(_url, | 410 var _response = _requester.request(_url, |
411 "GET", | 411 "GET", |
412 body: _body, | 412 body: _body, |
413 queryParams: _queryParams, | 413 queryParams: _queryParams, |
414 uploadOptions: _uploadOptions, | 414 uploadOptions: _uploadOptions, |
415 uploadMedia: _uploadMedia, | 415 uploadMedia: _uploadMedia, |
416 downloadOptions: _downloadOptions); | 416 downloadOptions: _downloadOptions); |
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1966 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1966 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1967 if (name != null) { | 1967 if (name != null) { |
1968 _json["name"] = name; | 1968 _json["name"] = name; |
1969 } | 1969 } |
1970 if (path != null) { | 1970 if (path != null) { |
1971 _json["path"] = path; | 1971 _json["path"] = path; |
1972 } | 1972 } |
1973 return _json; | 1973 return _json; |
1974 } | 1974 } |
1975 } | 1975 } |
OLD | NEW |