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 * [filter] - The raw filter text to constrain the results. | |
374 * | |
375 * [pageToken] - Token to provide to skip to a particular spot in the list. | 373 * [pageToken] - Token to provide to skip to a particular spot in the list. |
376 * | 374 * |
377 * [pageSize] - Number of results to return in the list. | 375 * [pageSize] - Number of results to return in the list. |
378 * | 376 * |
| 377 * [filter] - The raw filter text to constrain the results. |
| 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.String filt
er, core.String pageToken, core.int pageSize}) { | 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 (filter != null) { | |
399 _queryParams["filter"] = [filter]; | |
400 } | |
401 if (pageToken != null) { | 398 if (pageToken != null) { |
402 _queryParams["pageToken"] = [pageToken]; | 399 _queryParams["pageToken"] = [pageToken]; |
403 } | 400 } |
404 if (pageSize != null) { | 401 if (pageSize != null) { |
405 _queryParams["pageSize"] = ["${pageSize}"]; | 402 _queryParams["pageSize"] = ["${pageSize}"]; |
406 } | 403 } |
| 404 if (filter != null) { |
| 405 _queryParams["filter"] = [filter]; |
| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 class BuildOptions { | 936 class BuildOptions { |
937 /** | 937 /** |
938 * Requested verifiability options. | 938 * Requested verifiability options. |
939 * Possible string values are: | 939 * Possible string values are: |
940 * - "NOT_VERIFIED" : Not a verifiable build. (default) | 940 * - "NOT_VERIFIED" : Not a verifiable build. (default) |
941 * - "VERIFIED" : Verified build. | 941 * - "VERIFIED" : Verified build. |
942 */ | 942 */ |
943 core.String requestedVerifyOption; | 943 core.String requestedVerifyOption; |
944 /** Requested hash for SourceProvenance. */ | 944 /** Requested hash for SourceProvenance. */ |
945 core.List<core.String> sourceProvenanceHash; | 945 core.List<core.String> sourceProvenanceHash; |
| 946 /** |
| 947 * SubstitutionOption to allow unmatch substitutions. |
| 948 * Possible string values are: |
| 949 * - "MUST_MATCH" : Fails the build if error in substitutions checks, like |
| 950 * missing |
| 951 * a substitution in the template or in the map. |
| 952 * - "ALLOW_LOOSE" : Do not fail the build if error in substitutions checks. |
| 953 */ |
| 954 core.String substitutionOption; |
946 | 955 |
947 BuildOptions(); | 956 BuildOptions(); |
948 | 957 |
949 BuildOptions.fromJson(core.Map _json) { | 958 BuildOptions.fromJson(core.Map _json) { |
950 if (_json.containsKey("requestedVerifyOption")) { | 959 if (_json.containsKey("requestedVerifyOption")) { |
951 requestedVerifyOption = _json["requestedVerifyOption"]; | 960 requestedVerifyOption = _json["requestedVerifyOption"]; |
952 } | 961 } |
953 if (_json.containsKey("sourceProvenanceHash")) { | 962 if (_json.containsKey("sourceProvenanceHash")) { |
954 sourceProvenanceHash = _json["sourceProvenanceHash"]; | 963 sourceProvenanceHash = _json["sourceProvenanceHash"]; |
955 } | 964 } |
| 965 if (_json.containsKey("substitutionOption")) { |
| 966 substitutionOption = _json["substitutionOption"]; |
| 967 } |
956 } | 968 } |
957 | 969 |
958 core.Map<core.String, core.Object> toJson() { | 970 core.Map<core.String, core.Object> toJson() { |
959 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 971 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
960 if (requestedVerifyOption != null) { | 972 if (requestedVerifyOption != null) { |
961 _json["requestedVerifyOption"] = requestedVerifyOption; | 973 _json["requestedVerifyOption"] = requestedVerifyOption; |
962 } | 974 } |
963 if (sourceProvenanceHash != null) { | 975 if (sourceProvenanceHash != null) { |
964 _json["sourceProvenanceHash"] = sourceProvenanceHash; | 976 _json["sourceProvenanceHash"] = sourceProvenanceHash; |
965 } | 977 } |
| 978 if (substitutionOption != null) { |
| 979 _json["substitutionOption"] = substitutionOption; |
| 980 } |
966 return _json; | 981 return _json; |
967 } | 982 } |
968 } | 983 } |
969 | 984 |
970 /** BuildStep describes a step to perform in the build pipeline. */ | 985 /** BuildStep describes a step to perform in the build pipeline. */ |
971 class BuildStep { | 986 class BuildStep { |
972 /** | 987 /** |
973 * A list of arguments that will be presented to the step when it is started. | 988 * A list of arguments that will be presented to the step when it is started. |
974 * | 989 * |
975 * If the image used to run the step's container has an entrypoint, these args | 990 * If the image used to run the step's container has an entrypoint, these args |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1737 * results in its response, the status of those operations should be | 1752 * results in its response, the status of those operations should be |
1738 * represented directly using the `Status` message. | 1753 * represented directly using the `Status` message. |
1739 * | 1754 * |
1740 * - Logging. If some API errors are stored in logs, the message `Status` could | 1755 * - Logging. If some API errors are stored in logs, the message `Status` could |
1741 * be used directly after any stripping needed for security/privacy reasons. | 1756 * be used directly after any stripping needed for security/privacy reasons. |
1742 */ | 1757 */ |
1743 class Status { | 1758 class Status { |
1744 /** The status code, which should be an enum value of google.rpc.Code. */ | 1759 /** The status code, which should be an enum value of google.rpc.Code. */ |
1745 core.int code; | 1760 core.int code; |
1746 /** | 1761 /** |
1747 * A list of messages that carry the error details. There will be a | 1762 * A list of messages that carry the error details. There is a common set of |
1748 * common set of message types for APIs to use. | 1763 * message types for APIs to use. |
1749 * | 1764 * |
1750 * The values for Object must be JSON objects. It can consist of `num`, | 1765 * The values for Object must be JSON objects. It can consist of `num`, |
1751 * `String`, `bool` and `null` as well as `Map` and `List` values. | 1766 * `String`, `bool` and `null` as well as `Map` and `List` values. |
1752 */ | 1767 */ |
1753 core.List<core.Map<core.String, core.Object>> details; | 1768 core.List<core.Map<core.String, core.Object>> details; |
1754 /** | 1769 /** |
1755 * A developer-facing error message, which should be in English. Any | 1770 * A developer-facing error message, which should be in English. Any |
1756 * user-facing error message should be localized and sent in the | 1771 * user-facing error message should be localized and sent in the |
1757 * google.rpc.Status.details field, or localized by the client. | 1772 * google.rpc.Status.details field, or localized by the client. |
1758 */ | 1773 */ |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1832 } | 1847 } |
1833 if (generation != null) { | 1848 if (generation != null) { |
1834 _json["generation"] = generation; | 1849 _json["generation"] = generation; |
1835 } | 1850 } |
1836 if (object != null) { | 1851 if (object != null) { |
1837 _json["object"] = object; | 1852 _json["object"] = object; |
1838 } | 1853 } |
1839 return _json; | 1854 return _json; |
1840 } | 1855 } |
1841 } | 1856 } |
OLD | NEW |