| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 * Possible string values are: | 423 * Possible string values are: |
| 424 * - "STATUS_UNKNOWN" : Status of the build is unknown. | 424 * - "STATUS_UNKNOWN" : Status of the build is unknown. |
| 425 * - "QUEUING" : Build has been received and is being queued. | 425 * - "QUEUING" : Build has been received and is being queued. |
| 426 * - "QUEUED" : Build is queued; work has not yet begun. | 426 * - "QUEUED" : Build is queued; work has not yet begun. |
| 427 * - "WORKING" : Build is being executed. | 427 * - "WORKING" : Build is being executed. |
| 428 * - "SUCCESS" : Build finished successfully. | 428 * - "SUCCESS" : Build finished successfully. |
| 429 * - "FAILURE" : Build failed to complete successfully. | 429 * - "FAILURE" : Build failed to complete successfully. |
| 430 * - "INTERNAL_ERROR" : Build failed due to an internal cause. | 430 * - "INTERNAL_ERROR" : Build failed due to an internal cause. |
| 431 * - "TIMEOUT" : Build took longer than was allowed. | 431 * - "TIMEOUT" : Build took longer than was allowed. |
| 432 * - "CANCELLED" : Build was canceled by a user. | 432 * - "CANCELLED" : Build was canceled by a user. |
| 433 * next_id = 9 | |
| 434 */ | 433 */ |
| 435 core.String status; | 434 core.String status; |
| 436 /** | 435 /** |
| 437 * Customer-readable message about the current status. | 436 * Customer-readable message about the current status. |
| 438 * @OutputOnly | 437 * @OutputOnly |
| 439 */ | 438 */ |
| 440 core.String statusDetail; | 439 core.String statusDetail; |
| 441 /** Describes the operations to be performed on the workspace. */ | 440 /** Describes the operations to be performed on the workspace. */ |
| 442 core.List<BuildStep> steps; | 441 core.List<BuildStep> steps; |
| 443 /** | 442 /** |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 /** Command-line arguments to use when running this step's container. */ | 611 /** Command-line arguments to use when running this step's container. */ |
| 613 core.List<core.String> args; | 612 core.List<core.String> args; |
| 614 /** | 613 /** |
| 615 * Working directory (relative to project source root) to use when running | 614 * Working directory (relative to project source root) to use when running |
| 616 * this operation's container. | 615 * this operation's container. |
| 617 */ | 616 */ |
| 618 core.String dir; | 617 core.String dir; |
| 619 /** Additional environment variables to set for this step's container. */ | 618 /** Additional environment variables to set for this step's container. */ |
| 620 core.List<core.String> env; | 619 core.List<core.String> env; |
| 621 /** | 620 /** |
| 621 * Optional unique identifier for this build step, used in wait_for to |
| 622 * reference this build step as a dependency. |
| 623 */ |
| 624 core.String id; |
| 625 /** |
| 622 * Name of the container image to use for creating this stage in the | 626 * Name of the container image to use for creating this stage in the |
| 623 * pipeline, as presented to `docker pull`. | 627 * pipeline, as presented to `docker pull`. |
| 624 */ | 628 */ |
| 625 core.String name; | 629 core.String name; |
| 630 /** |
| 631 * The ID(s) of the step(s) that this build step depends on. |
| 632 * This build step will not start until all the build steps in wait_for |
| 633 * have completed successfully. If wait_for is empty, this build step will |
| 634 * start when all previous build steps in the Build.Steps list have completed |
| 635 * successfully. |
| 636 */ |
| 637 core.List<core.String> waitFor; |
| 626 | 638 |
| 627 BuildStep(); | 639 BuildStep(); |
| 628 | 640 |
| 629 BuildStep.fromJson(core.Map _json) { | 641 BuildStep.fromJson(core.Map _json) { |
| 630 if (_json.containsKey("args")) { | 642 if (_json.containsKey("args")) { |
| 631 args = _json["args"]; | 643 args = _json["args"]; |
| 632 } | 644 } |
| 633 if (_json.containsKey("dir")) { | 645 if (_json.containsKey("dir")) { |
| 634 dir = _json["dir"]; | 646 dir = _json["dir"]; |
| 635 } | 647 } |
| 636 if (_json.containsKey("env")) { | 648 if (_json.containsKey("env")) { |
| 637 env = _json["env"]; | 649 env = _json["env"]; |
| 638 } | 650 } |
| 651 if (_json.containsKey("id")) { |
| 652 id = _json["id"]; |
| 653 } |
| 639 if (_json.containsKey("name")) { | 654 if (_json.containsKey("name")) { |
| 640 name = _json["name"]; | 655 name = _json["name"]; |
| 641 } | 656 } |
| 657 if (_json.containsKey("waitFor")) { |
| 658 waitFor = _json["waitFor"]; |
| 659 } |
| 642 } | 660 } |
| 643 | 661 |
| 644 core.Map toJson() { | 662 core.Map toJson() { |
| 645 var _json = new core.Map(); | 663 var _json = new core.Map(); |
| 646 if (args != null) { | 664 if (args != null) { |
| 647 _json["args"] = args; | 665 _json["args"] = args; |
| 648 } | 666 } |
| 649 if (dir != null) { | 667 if (dir != null) { |
| 650 _json["dir"] = dir; | 668 _json["dir"] = dir; |
| 651 } | 669 } |
| 652 if (env != null) { | 670 if (env != null) { |
| 653 _json["env"] = env; | 671 _json["env"] = env; |
| 654 } | 672 } |
| 673 if (id != null) { |
| 674 _json["id"] = id; |
| 675 } |
| 655 if (name != null) { | 676 if (name != null) { |
| 656 _json["name"] = name; | 677 _json["name"] = name; |
| 657 } | 678 } |
| 679 if (waitFor != null) { |
| 680 _json["waitFor"] = waitFor; |
| 681 } |
| 658 return _json; | 682 return _json; |
| 659 } | 683 } |
| 660 } | 684 } |
| 661 | 685 |
| 662 /** BuiltImage describes an image built by the pipeline. */ | 686 /** BuiltImage describes an image built by the pipeline. */ |
| 663 class BuiltImage { | 687 class BuiltImage { |
| 664 /** Docker Registry 2.0 digest. */ | 688 /** Docker Registry 2.0 digest. */ |
| 665 core.String digest; | 689 core.String digest; |
| 666 /** | 690 /** |
| 667 * Name used to push the container image to Google Container Registry, as | 691 * Name used to push the container image to Google Container Registry, as |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 if (name != null) { | 935 if (name != null) { |
| 912 _json["name"] = name; | 936 _json["name"] = name; |
| 913 } | 937 } |
| 914 if (response != null) { | 938 if (response != null) { |
| 915 _json["response"] = response; | 939 _json["response"] = response; |
| 916 } | 940 } |
| 917 return _json; | 941 return _json; |
| 918 } | 942 } |
| 919 } | 943 } |
| 920 | 944 |
| 945 /** |
| 946 * RepoSource describes the location of the source in a Google Cloud Source |
| 947 * Repository. |
| 948 */ |
| 949 class RepoSource { |
| 950 /** Name of the branch to build. */ |
| 951 core.String branchName; |
| 952 /** Explicit commit SHA to build. */ |
| 953 core.String commitSha; |
| 954 /** |
| 955 * ID of the project that owns the repo. If omitted, the project ID requesting |
| 956 * the build is assumed. |
| 957 */ |
| 958 core.String projectId; |
| 959 /** Name of the repo. If omitted, the name "default" is assumed. */ |
| 960 core.String repoName; |
| 961 /** Name of the tag to build. */ |
| 962 core.String tagName; |
| 963 |
| 964 RepoSource(); |
| 965 |
| 966 RepoSource.fromJson(core.Map _json) { |
| 967 if (_json.containsKey("branchName")) { |
| 968 branchName = _json["branchName"]; |
| 969 } |
| 970 if (_json.containsKey("commitSha")) { |
| 971 commitSha = _json["commitSha"]; |
| 972 } |
| 973 if (_json.containsKey("projectId")) { |
| 974 projectId = _json["projectId"]; |
| 975 } |
| 976 if (_json.containsKey("repoName")) { |
| 977 repoName = _json["repoName"]; |
| 978 } |
| 979 if (_json.containsKey("tagName")) { |
| 980 tagName = _json["tagName"]; |
| 981 } |
| 982 } |
| 983 |
| 984 core.Map toJson() { |
| 985 var _json = new core.Map(); |
| 986 if (branchName != null) { |
| 987 _json["branchName"] = branchName; |
| 988 } |
| 989 if (commitSha != null) { |
| 990 _json["commitSha"] = commitSha; |
| 991 } |
| 992 if (projectId != null) { |
| 993 _json["projectId"] = projectId; |
| 994 } |
| 995 if (repoName != null) { |
| 996 _json["repoName"] = repoName; |
| 997 } |
| 998 if (tagName != null) { |
| 999 _json["tagName"] = tagName; |
| 1000 } |
| 1001 return _json; |
| 1002 } |
| 1003 } |
| 1004 |
| 921 /** Results describes the artifacts created by the build pipeline. */ | 1005 /** Results describes the artifacts created by the build pipeline. */ |
| 922 class Results { | 1006 class Results { |
| 1007 /** |
| 1008 * List of build step digests, in order corresponding to build step indices. |
| 1009 * next id = 4 |
| 1010 */ |
| 1011 core.List<core.String> buildStepImages; |
| 923 /** Images that were built as a part of the build. */ | 1012 /** Images that were built as a part of the build. */ |
| 924 core.List<BuiltImage> images; | 1013 core.List<BuiltImage> images; |
| 925 | 1014 |
| 926 Results(); | 1015 Results(); |
| 927 | 1016 |
| 928 Results.fromJson(core.Map _json) { | 1017 Results.fromJson(core.Map _json) { |
| 1018 if (_json.containsKey("buildStepImages")) { |
| 1019 buildStepImages = _json["buildStepImages"]; |
| 1020 } |
| 929 if (_json.containsKey("images")) { | 1021 if (_json.containsKey("images")) { |
| 930 images = _json["images"].map((value) => new BuiltImage.fromJson(value)).to
List(); | 1022 images = _json["images"].map((value) => new BuiltImage.fromJson(value)).to
List(); |
| 931 } | 1023 } |
| 932 } | 1024 } |
| 933 | 1025 |
| 934 core.Map toJson() { | 1026 core.Map toJson() { |
| 935 var _json = new core.Map(); | 1027 var _json = new core.Map(); |
| 1028 if (buildStepImages != null) { |
| 1029 _json["buildStepImages"] = buildStepImages; |
| 1030 } |
| 936 if (images != null) { | 1031 if (images != null) { |
| 937 _json["images"] = images.map((value) => (value).toJson()).toList(); | 1032 _json["images"] = images.map((value) => (value).toJson()).toList(); |
| 938 } | 1033 } |
| 939 return _json; | 1034 return _json; |
| 940 } | 1035 } |
| 941 } | 1036 } |
| 942 | 1037 |
| 943 /** | 1038 /** |
| 944 * Source describes the location of the source in a supported storage | 1039 * Source describes the location of the source in a supported storage |
| 945 * service. | 1040 * service. |
| 946 */ | 1041 */ |
| 947 class Source { | 1042 class Source { |
| 1043 /** If provided, get source from this location in a Cloud Repo. */ |
| 1044 RepoSource repoSource; |
| 948 /** | 1045 /** |
| 949 * If provided, get the source from this location in in Google Cloud | 1046 * If provided, get the source from this location in in Google Cloud |
| 950 * Storage. | 1047 * Storage. |
| 951 */ | 1048 */ |
| 952 StorageSource storageSource; | 1049 StorageSource storageSource; |
| 953 | 1050 |
| 954 Source(); | 1051 Source(); |
| 955 | 1052 |
| 956 Source.fromJson(core.Map _json) { | 1053 Source.fromJson(core.Map _json) { |
| 1054 if (_json.containsKey("repoSource")) { |
| 1055 repoSource = new RepoSource.fromJson(_json["repoSource"]); |
| 1056 } |
| 957 if (_json.containsKey("storageSource")) { | 1057 if (_json.containsKey("storageSource")) { |
| 958 storageSource = new StorageSource.fromJson(_json["storageSource"]); | 1058 storageSource = new StorageSource.fromJson(_json["storageSource"]); |
| 959 } | 1059 } |
| 960 } | 1060 } |
| 961 | 1061 |
| 962 core.Map toJson() { | 1062 core.Map toJson() { |
| 963 var _json = new core.Map(); | 1063 var _json = new core.Map(); |
| 1064 if (repoSource != null) { |
| 1065 _json["repoSource"] = (repoSource).toJson(); |
| 1066 } |
| 964 if (storageSource != null) { | 1067 if (storageSource != null) { |
| 965 _json["storageSource"] = (storageSource).toJson(); | 1068 _json["storageSource"] = (storageSource).toJson(); |
| 966 } | 1069 } |
| 967 return _json; | 1070 return _json; |
| 968 } | 1071 } |
| 969 } | 1072 } |
| 970 | 1073 |
| 971 /** | 1074 /** |
| 972 * Provenance of the source. Ways to find the original source, or verify that | 1075 * Provenance of the source. Ways to find the original source, or verify that |
| 973 * some source was used for this build. | 1076 * some source was used for this build. |
| 974 */ | 1077 */ |
| 975 class SourceProvenance { | 1078 class SourceProvenance { |
| 976 /** | 1079 /** |
| 977 * Hash(es) of the build source, which can be used to verify that the original | 1080 * Hash(es) of the build source, which can be used to verify that the original |
| 978 * source integrity was maintained in the build. Note that FileHashes will | 1081 * source integrity was maintained in the build. Note that FileHashes will |
| 979 * only be populated if BuildOptions has requested a SourceProvenanceHash. | 1082 * only be populated if BuildOptions has requested a SourceProvenanceHash. |
| 980 * | 1083 * |
| 981 * The keys to this map are file paths used as build source and the values | 1084 * The keys to this map are file paths used as build source and the values |
| 982 * contain the hash values for those files. | 1085 * contain the hash values for those files. |
| 983 * | 1086 * |
| 984 * If the build source came in a single package such as a gzipped tarfile | 1087 * If the build source came in a single package such as a gzipped tarfile |
| 985 * (.tar.gz), the FileHash will be for the single path to that file. | 1088 * (.tar.gz), the FileHash will be for the single path to that file. |
| 986 * @OutputOnly | 1089 * @OutputOnly |
| 987 */ | 1090 */ |
| 988 core.Map<core.String, FileHashes> fileHashes; | 1091 core.Map<core.String, FileHashes> fileHashes; |
| 1092 /** |
| 1093 * A copy of the build's source.repo_source, if exists, with any |
| 1094 * revisions resolved. |
| 1095 */ |
| 1096 RepoSource resolvedRepoSource; |
| 1097 /** |
| 1098 * A copy of the build's source.storage_source, if exists, with any |
| 1099 * generations resolved. |
| 1100 */ |
| 1101 StorageSource resolvedStorageSource; |
| 989 | 1102 |
| 990 SourceProvenance(); | 1103 SourceProvenance(); |
| 991 | 1104 |
| 992 SourceProvenance.fromJson(core.Map _json) { | 1105 SourceProvenance.fromJson(core.Map _json) { |
| 993 if (_json.containsKey("fileHashes")) { | 1106 if (_json.containsKey("fileHashes")) { |
| 994 fileHashes = commons.mapMap(_json["fileHashes"], (item) => new FileHashes.
fromJson(item)); | 1107 fileHashes = commons.mapMap(_json["fileHashes"], (item) => new FileHashes.
fromJson(item)); |
| 995 } | 1108 } |
| 1109 if (_json.containsKey("resolvedRepoSource")) { |
| 1110 resolvedRepoSource = new RepoSource.fromJson(_json["resolvedRepoSource"]); |
| 1111 } |
| 1112 if (_json.containsKey("resolvedStorageSource")) { |
| 1113 resolvedStorageSource = new StorageSource.fromJson(_json["resolvedStorageS
ource"]); |
| 1114 } |
| 996 } | 1115 } |
| 997 | 1116 |
| 998 core.Map toJson() { | 1117 core.Map toJson() { |
| 999 var _json = new core.Map(); | 1118 var _json = new core.Map(); |
| 1000 if (fileHashes != null) { | 1119 if (fileHashes != null) { |
| 1001 _json["fileHashes"] = commons.mapMap(fileHashes, (item) => (item).toJson()
); | 1120 _json["fileHashes"] = commons.mapMap(fileHashes, (item) => (item).toJson()
); |
| 1002 } | 1121 } |
| 1122 if (resolvedRepoSource != null) { |
| 1123 _json["resolvedRepoSource"] = (resolvedRepoSource).toJson(); |
| 1124 } |
| 1125 if (resolvedStorageSource != null) { |
| 1126 _json["resolvedStorageSource"] = (resolvedStorageSource).toJson(); |
| 1127 } |
| 1003 return _json; | 1128 return _json; |
| 1004 } | 1129 } |
| 1005 } | 1130 } |
| 1006 | 1131 |
| 1007 /** | 1132 /** |
| 1008 * The `Status` type defines a logical error model that is suitable for | 1133 * The `Status` type defines a logical error model that is suitable for |
| 1009 * different | 1134 * different |
| 1010 * programming environments, including REST APIs and RPC APIs. It is used by | 1135 * programming environments, including REST APIs and RPC APIs. It is used by |
| 1011 * [gRPC](https://github.com/grpc). The error model is designed to be: | 1136 * [gRPC](https://github.com/grpc). The error model is designed to be: |
| 1012 * | 1137 * |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 } | 1277 } |
| 1153 if (generation != null) { | 1278 if (generation != null) { |
| 1154 _json["generation"] = generation; | 1279 _json["generation"] = generation; |
| 1155 } | 1280 } |
| 1156 if (object != null) { | 1281 if (object != null) { |
| 1157 _json["object"] = object; | 1282 _json["object"] = object; |
| 1158 } | 1283 } |
| 1159 return _json; | 1284 return _json; |
| 1160 } | 1285 } |
| 1161 } | 1286 } |
| OLD | NEW |