| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 uploadOptions: _uploadOptions, | 129 uploadOptions: _uploadOptions, |
| 130 uploadMedia: _uploadMedia, | 130 uploadMedia: _uploadMedia, |
| 131 downloadOptions: _downloadOptions); | 131 downloadOptions: _downloadOptions); |
| 132 return _response.then((data) => new Operation.fromJson(data)); | 132 return _response.then((data) => new Operation.fromJson(data)); |
| 133 } | 133 } |
| 134 | 134 |
| 135 /** | 135 /** |
| 136 * Lists operations that match the specified filter in the request. If the | 136 * Lists operations that match the specified filter in the request. If the |
| 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 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`. To |
| 141 * override the binding, API services can add a binding such as |
| 142 * `"/v1/{name=users / * }/operations"` to their service configuration. |
| 143 * For backwards compatibility, the default name includes the operations |
| 144 * collection id, however overriding users must ensure the name binding |
| 145 * is the parent resource, without the operations collection id. |
| 141 * | 146 * |
| 142 * Request parameters: | 147 * Request parameters: |
| 143 * | 148 * |
| 144 * [name] - The name of the operation collection. | 149 * [name] - The name of the operation's parent resource. |
| 145 * Value must have pattern "^operations$". | 150 * Value must have pattern "^operations$". |
| 146 * | 151 * |
| 152 * [filter] - The standard list filter. |
| 153 * |
| 147 * [pageToken] - The standard list page token. | 154 * [pageToken] - The standard list page token. |
| 148 * | 155 * |
| 149 * [pageSize] - The standard list page size. | 156 * [pageSize] - The standard list page size. |
| 150 * | 157 * |
| 151 * [filter] - The standard list filter. | |
| 152 * | |
| 153 * Completes with a [ListOperationsResponse]. | 158 * Completes with a [ListOperationsResponse]. |
| 154 * | 159 * |
| 155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 160 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 156 * error. | 161 * error. |
| 157 * | 162 * |
| 158 * If the used [http.Client] completes with an error when making a REST call, | 163 * If the used [http.Client] completes with an error when making a REST call, |
| 159 * this method will complete with the same error. | 164 * this method will complete with the same error. |
| 160 */ | 165 */ |
| 161 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT
oken, core.int pageSize, core.String filter}) { | 166 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.String pageToken, core.int pageSize}) { |
| 162 var _url = null; | 167 var _url = null; |
| 163 var _queryParams = new core.Map(); | 168 var _queryParams = new core.Map(); |
| 164 var _uploadMedia = null; | 169 var _uploadMedia = null; |
| 165 var _uploadOptions = null; | 170 var _uploadOptions = null; |
| 166 var _downloadOptions = commons.DownloadOptions.Metadata; | 171 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 167 var _body = null; | 172 var _body = null; |
| 168 | 173 |
| 169 if (name == null) { | 174 if (name == null) { |
| 170 throw new core.ArgumentError("Parameter name is required."); | 175 throw new core.ArgumentError("Parameter name is required."); |
| 171 } | 176 } |
| 177 if (filter != null) { |
| 178 _queryParams["filter"] = [filter]; |
| 179 } |
| 172 if (pageToken != null) { | 180 if (pageToken != null) { |
| 173 _queryParams["pageToken"] = [pageToken]; | 181 _queryParams["pageToken"] = [pageToken]; |
| 174 } | 182 } |
| 175 if (pageSize != null) { | 183 if (pageSize != null) { |
| 176 _queryParams["pageSize"] = ["${pageSize}"]; | 184 _queryParams["pageSize"] = ["${pageSize}"]; |
| 177 } | 185 } |
| 178 if (filter != null) { | |
| 179 _queryParams["filter"] = [filter]; | |
| 180 } | |
| 181 | 186 |
| 182 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 187 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 183 | 188 |
| 184 var _response = _requester.request(_url, | 189 var _response = _requester.request(_url, |
| 185 "GET", | 190 "GET", |
| 186 body: _body, | 191 body: _body, |
| 187 queryParams: _queryParams, | 192 queryParams: _queryParams, |
| 188 uploadOptions: _uploadOptions, | 193 uploadOptions: _uploadOptions, |
| 189 uploadMedia: _uploadMedia, | 194 uploadMedia: _uploadMedia, |
| 190 downloadOptions: _downloadOptions); | 195 downloadOptions: _downloadOptions); |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 substitutions = _json["substitutions"]; | 840 substitutions = _json["substitutions"]; |
| 836 } | 841 } |
| 837 if (_json.containsKey("tags")) { | 842 if (_json.containsKey("tags")) { |
| 838 tags = _json["tags"]; | 843 tags = _json["tags"]; |
| 839 } | 844 } |
| 840 if (_json.containsKey("timeout")) { | 845 if (_json.containsKey("timeout")) { |
| 841 timeout = _json["timeout"]; | 846 timeout = _json["timeout"]; |
| 842 } | 847 } |
| 843 } | 848 } |
| 844 | 849 |
| 845 core.Map toJson() { | 850 core.Map<core.String, core.Object> toJson() { |
| 846 var _json = new core.Map(); | 851 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 847 if (buildTriggerId != null) { | 852 if (buildTriggerId != null) { |
| 848 _json["buildTriggerId"] = buildTriggerId; | 853 _json["buildTriggerId"] = buildTriggerId; |
| 849 } | 854 } |
| 850 if (createTime != null) { | 855 if (createTime != null) { |
| 851 _json["createTime"] = createTime; | 856 _json["createTime"] = createTime; |
| 852 } | 857 } |
| 853 if (finishTime != null) { | 858 if (finishTime != null) { |
| 854 _json["finishTime"] = finishTime; | 859 _json["finishTime"] = finishTime; |
| 855 } | 860 } |
| 856 if (id != null) { | 861 if (id != null) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 Build build; | 916 Build build; |
| 912 | 917 |
| 913 BuildOperationMetadata(); | 918 BuildOperationMetadata(); |
| 914 | 919 |
| 915 BuildOperationMetadata.fromJson(core.Map _json) { | 920 BuildOperationMetadata.fromJson(core.Map _json) { |
| 916 if (_json.containsKey("build")) { | 921 if (_json.containsKey("build")) { |
| 917 build = new Build.fromJson(_json["build"]); | 922 build = new Build.fromJson(_json["build"]); |
| 918 } | 923 } |
| 919 } | 924 } |
| 920 | 925 |
| 921 core.Map toJson() { | 926 core.Map<core.String, core.Object> toJson() { |
| 922 var _json = new core.Map(); | 927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 923 if (build != null) { | 928 if (build != null) { |
| 924 _json["build"] = (build).toJson(); | 929 _json["build"] = (build).toJson(); |
| 925 } | 930 } |
| 926 return _json; | 931 return _json; |
| 927 } | 932 } |
| 928 } | 933 } |
| 929 | 934 |
| 930 /** Optional arguments to enable specific features of builds. */ | 935 /** Optional arguments to enable specific features of builds. */ |
| 931 class BuildOptions { | 936 class BuildOptions { |
| 932 /** | 937 /** |
| (...skipping 10 matching lines...) Expand all Loading... |
| 943 | 948 |
| 944 BuildOptions.fromJson(core.Map _json) { | 949 BuildOptions.fromJson(core.Map _json) { |
| 945 if (_json.containsKey("requestedVerifyOption")) { | 950 if (_json.containsKey("requestedVerifyOption")) { |
| 946 requestedVerifyOption = _json["requestedVerifyOption"]; | 951 requestedVerifyOption = _json["requestedVerifyOption"]; |
| 947 } | 952 } |
| 948 if (_json.containsKey("sourceProvenanceHash")) { | 953 if (_json.containsKey("sourceProvenanceHash")) { |
| 949 sourceProvenanceHash = _json["sourceProvenanceHash"]; | 954 sourceProvenanceHash = _json["sourceProvenanceHash"]; |
| 950 } | 955 } |
| 951 } | 956 } |
| 952 | 957 |
| 953 core.Map toJson() { | 958 core.Map<core.String, core.Object> toJson() { |
| 954 var _json = new core.Map(); | 959 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 955 if (requestedVerifyOption != null) { | 960 if (requestedVerifyOption != null) { |
| 956 _json["requestedVerifyOption"] = requestedVerifyOption; | 961 _json["requestedVerifyOption"] = requestedVerifyOption; |
| 957 } | 962 } |
| 958 if (sourceProvenanceHash != null) { | 963 if (sourceProvenanceHash != null) { |
| 959 _json["sourceProvenanceHash"] = sourceProvenanceHash; | 964 _json["sourceProvenanceHash"] = sourceProvenanceHash; |
| 960 } | 965 } |
| 961 return _json; | 966 return _json; |
| 962 } | 967 } |
| 963 } | 968 } |
| 964 | 969 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 id = _json["id"]; | 1047 id = _json["id"]; |
| 1043 } | 1048 } |
| 1044 if (_json.containsKey("name")) { | 1049 if (_json.containsKey("name")) { |
| 1045 name = _json["name"]; | 1050 name = _json["name"]; |
| 1046 } | 1051 } |
| 1047 if (_json.containsKey("waitFor")) { | 1052 if (_json.containsKey("waitFor")) { |
| 1048 waitFor = _json["waitFor"]; | 1053 waitFor = _json["waitFor"]; |
| 1049 } | 1054 } |
| 1050 } | 1055 } |
| 1051 | 1056 |
| 1052 core.Map toJson() { | 1057 core.Map<core.String, core.Object> toJson() { |
| 1053 var _json = new core.Map(); | 1058 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1054 if (args != null) { | 1059 if (args != null) { |
| 1055 _json["args"] = args; | 1060 _json["args"] = args; |
| 1056 } | 1061 } |
| 1057 if (dir != null) { | 1062 if (dir != null) { |
| 1058 _json["dir"] = dir; | 1063 _json["dir"] = dir; |
| 1059 } | 1064 } |
| 1060 if (entrypoint != null) { | 1065 if (entrypoint != null) { |
| 1061 _json["entrypoint"] = entrypoint; | 1066 _json["entrypoint"] = entrypoint; |
| 1062 } | 1067 } |
| 1063 if (env != null) { | 1068 if (env != null) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1137 id = _json["id"]; | 1142 id = _json["id"]; |
| 1138 } | 1143 } |
| 1139 if (_json.containsKey("substitutions")) { | 1144 if (_json.containsKey("substitutions")) { |
| 1140 substitutions = _json["substitutions"]; | 1145 substitutions = _json["substitutions"]; |
| 1141 } | 1146 } |
| 1142 if (_json.containsKey("triggerTemplate")) { | 1147 if (_json.containsKey("triggerTemplate")) { |
| 1143 triggerTemplate = new RepoSource.fromJson(_json["triggerTemplate"]); | 1148 triggerTemplate = new RepoSource.fromJson(_json["triggerTemplate"]); |
| 1144 } | 1149 } |
| 1145 } | 1150 } |
| 1146 | 1151 |
| 1147 core.Map toJson() { | 1152 core.Map<core.String, core.Object> toJson() { |
| 1148 var _json = new core.Map(); | 1153 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1149 if (build != null) { | 1154 if (build != null) { |
| 1150 _json["build"] = (build).toJson(); | 1155 _json["build"] = (build).toJson(); |
| 1151 } | 1156 } |
| 1152 if (createTime != null) { | 1157 if (createTime != null) { |
| 1153 _json["createTime"] = createTime; | 1158 _json["createTime"] = createTime; |
| 1154 } | 1159 } |
| 1155 if (description != null) { | 1160 if (description != null) { |
| 1156 _json["description"] = description; | 1161 _json["description"] = description; |
| 1157 } | 1162 } |
| 1158 if (disabled != null) { | 1163 if (disabled != null) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1188 | 1193 |
| 1189 BuiltImage.fromJson(core.Map _json) { | 1194 BuiltImage.fromJson(core.Map _json) { |
| 1190 if (_json.containsKey("digest")) { | 1195 if (_json.containsKey("digest")) { |
| 1191 digest = _json["digest"]; | 1196 digest = _json["digest"]; |
| 1192 } | 1197 } |
| 1193 if (_json.containsKey("name")) { | 1198 if (_json.containsKey("name")) { |
| 1194 name = _json["name"]; | 1199 name = _json["name"]; |
| 1195 } | 1200 } |
| 1196 } | 1201 } |
| 1197 | 1202 |
| 1198 core.Map toJson() { | 1203 core.Map<core.String, core.Object> toJson() { |
| 1199 var _json = new core.Map(); | 1204 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1200 if (digest != null) { | 1205 if (digest != null) { |
| 1201 _json["digest"] = digest; | 1206 _json["digest"] = digest; |
| 1202 } | 1207 } |
| 1203 if (name != null) { | 1208 if (name != null) { |
| 1204 _json["name"] = name; | 1209 _json["name"] = name; |
| 1205 } | 1210 } |
| 1206 return _json; | 1211 return _json; |
| 1207 } | 1212 } |
| 1208 } | 1213 } |
| 1209 | 1214 |
| 1210 /** Request to cancel an ongoing build. */ | 1215 /** Request to cancel an ongoing build. */ |
| 1211 class CancelBuildRequest { | 1216 class CancelBuildRequest { |
| 1212 | 1217 |
| 1213 CancelBuildRequest(); | 1218 CancelBuildRequest(); |
| 1214 | 1219 |
| 1215 CancelBuildRequest.fromJson(core.Map _json) { | 1220 CancelBuildRequest.fromJson(core.Map _json) { |
| 1216 } | 1221 } |
| 1217 | 1222 |
| 1218 core.Map toJson() { | 1223 core.Map<core.String, core.Object> toJson() { |
| 1219 var _json = new core.Map(); | 1224 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1220 return _json; | 1225 return _json; |
| 1221 } | 1226 } |
| 1222 } | 1227 } |
| 1223 | 1228 |
| 1224 /** The request message for Operations.CancelOperation. */ | 1229 /** The request message for Operations.CancelOperation. */ |
| 1225 class CancelOperationRequest { | 1230 class CancelOperationRequest { |
| 1226 | 1231 |
| 1227 CancelOperationRequest(); | 1232 CancelOperationRequest(); |
| 1228 | 1233 |
| 1229 CancelOperationRequest.fromJson(core.Map _json) { | 1234 CancelOperationRequest.fromJson(core.Map _json) { |
| 1230 } | 1235 } |
| 1231 | 1236 |
| 1232 core.Map toJson() { | 1237 core.Map<core.String, core.Object> toJson() { |
| 1233 var _json = new core.Map(); | 1238 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1234 return _json; | 1239 return _json; |
| 1235 } | 1240 } |
| 1236 } | 1241 } |
| 1237 | 1242 |
| 1238 /** | 1243 /** |
| 1239 * A generic empty message that you can re-use to avoid defining duplicated | 1244 * A generic empty message that you can re-use to avoid defining duplicated |
| 1240 * empty messages in your APIs. A typical example is to use it as the request | 1245 * empty messages in your APIs. A typical example is to use it as the request |
| 1241 * or the response type of an API method. For instance: | 1246 * or the response type of an API method. For instance: |
| 1242 * | 1247 * |
| 1243 * service Foo { | 1248 * service Foo { |
| 1244 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 1249 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 1245 * } | 1250 * } |
| 1246 * | 1251 * |
| 1247 * The JSON representation for `Empty` is empty JSON object `{}`. | 1252 * The JSON representation for `Empty` is empty JSON object `{}`. |
| 1248 */ | 1253 */ |
| 1249 class Empty { | 1254 class Empty { |
| 1250 | 1255 |
| 1251 Empty(); | 1256 Empty(); |
| 1252 | 1257 |
| 1253 Empty.fromJson(core.Map _json) { | 1258 Empty.fromJson(core.Map _json) { |
| 1254 } | 1259 } |
| 1255 | 1260 |
| 1256 core.Map toJson() { | 1261 core.Map<core.String, core.Object> toJson() { |
| 1257 var _json = new core.Map(); | 1262 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1258 return _json; | 1263 return _json; |
| 1259 } | 1264 } |
| 1260 } | 1265 } |
| 1261 | 1266 |
| 1262 /** | 1267 /** |
| 1263 * Container message for hashes of byte content of files, used in | 1268 * Container message for hashes of byte content of files, used in |
| 1264 * SourceProvenance messages to verify integrity of source input to the build. | 1269 * SourceProvenance messages to verify integrity of source input to the build. |
| 1265 */ | 1270 */ |
| 1266 class FileHashes { | 1271 class FileHashes { |
| 1267 /** Collection of file hashes. */ | 1272 /** Collection of file hashes. */ |
| 1268 core.List<Hash> fileHash; | 1273 core.List<Hash> fileHash; |
| 1269 | 1274 |
| 1270 FileHashes(); | 1275 FileHashes(); |
| 1271 | 1276 |
| 1272 FileHashes.fromJson(core.Map _json) { | 1277 FileHashes.fromJson(core.Map _json) { |
| 1273 if (_json.containsKey("fileHash")) { | 1278 if (_json.containsKey("fileHash")) { |
| 1274 fileHash = _json["fileHash"].map((value) => new Hash.fromJson(value)).toLi
st(); | 1279 fileHash = _json["fileHash"].map((value) => new Hash.fromJson(value)).toLi
st(); |
| 1275 } | 1280 } |
| 1276 } | 1281 } |
| 1277 | 1282 |
| 1278 core.Map toJson() { | 1283 core.Map<core.String, core.Object> toJson() { |
| 1279 var _json = new core.Map(); | 1284 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1280 if (fileHash != null) { | 1285 if (fileHash != null) { |
| 1281 _json["fileHash"] = fileHash.map((value) => (value).toJson()).toList(); | 1286 _json["fileHash"] = fileHash.map((value) => (value).toJson()).toList(); |
| 1282 } | 1287 } |
| 1283 return _json; | 1288 return _json; |
| 1284 } | 1289 } |
| 1285 } | 1290 } |
| 1286 | 1291 |
| 1287 /** Container message for hash values. */ | 1292 /** Container message for hash values. */ |
| 1288 class Hash { | 1293 class Hash { |
| 1289 /** | 1294 /** |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1307 | 1312 |
| 1308 Hash.fromJson(core.Map _json) { | 1313 Hash.fromJson(core.Map _json) { |
| 1309 if (_json.containsKey("type")) { | 1314 if (_json.containsKey("type")) { |
| 1310 type = _json["type"]; | 1315 type = _json["type"]; |
| 1311 } | 1316 } |
| 1312 if (_json.containsKey("value")) { | 1317 if (_json.containsKey("value")) { |
| 1313 value = _json["value"]; | 1318 value = _json["value"]; |
| 1314 } | 1319 } |
| 1315 } | 1320 } |
| 1316 | 1321 |
| 1317 core.Map toJson() { | 1322 core.Map<core.String, core.Object> toJson() { |
| 1318 var _json = new core.Map(); | 1323 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1319 if (type != null) { | 1324 if (type != null) { |
| 1320 _json["type"] = type; | 1325 _json["type"] = type; |
| 1321 } | 1326 } |
| 1322 if (value != null) { | 1327 if (value != null) { |
| 1323 _json["value"] = value; | 1328 _json["value"] = value; |
| 1324 } | 1329 } |
| 1325 return _json; | 1330 return _json; |
| 1326 } | 1331 } |
| 1327 } | 1332 } |
| 1328 | 1333 |
| 1329 /** Response containing existing BuildTriggers. */ | 1334 /** Response containing existing BuildTriggers. */ |
| 1330 class ListBuildTriggersResponse { | 1335 class ListBuildTriggersResponse { |
| 1331 /** BuildTriggers for the project, sorted by create_time descending. */ | 1336 /** BuildTriggers for the project, sorted by create_time descending. */ |
| 1332 core.List<BuildTrigger> triggers; | 1337 core.List<BuildTrigger> triggers; |
| 1333 | 1338 |
| 1334 ListBuildTriggersResponse(); | 1339 ListBuildTriggersResponse(); |
| 1335 | 1340 |
| 1336 ListBuildTriggersResponse.fromJson(core.Map _json) { | 1341 ListBuildTriggersResponse.fromJson(core.Map _json) { |
| 1337 if (_json.containsKey("triggers")) { | 1342 if (_json.containsKey("triggers")) { |
| 1338 triggers = _json["triggers"].map((value) => new BuildTrigger.fromJson(valu
e)).toList(); | 1343 triggers = _json["triggers"].map((value) => new BuildTrigger.fromJson(valu
e)).toList(); |
| 1339 } | 1344 } |
| 1340 } | 1345 } |
| 1341 | 1346 |
| 1342 core.Map toJson() { | 1347 core.Map<core.String, core.Object> toJson() { |
| 1343 var _json = new core.Map(); | 1348 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1344 if (triggers != null) { | 1349 if (triggers != null) { |
| 1345 _json["triggers"] = triggers.map((value) => (value).toJson()).toList(); | 1350 _json["triggers"] = triggers.map((value) => (value).toJson()).toList(); |
| 1346 } | 1351 } |
| 1347 return _json; | 1352 return _json; |
| 1348 } | 1353 } |
| 1349 } | 1354 } |
| 1350 | 1355 |
| 1351 /** Response including listed builds. */ | 1356 /** Response including listed builds. */ |
| 1352 class ListBuildsResponse { | 1357 class ListBuildsResponse { |
| 1353 /** Builds will be sorted by create_time, descending. */ | 1358 /** Builds will be sorted by create_time, descending. */ |
| 1354 core.List<Build> builds; | 1359 core.List<Build> builds; |
| 1355 /** Token to receive the next page of results. */ | 1360 /** Token to receive the next page of results. */ |
| 1356 core.String nextPageToken; | 1361 core.String nextPageToken; |
| 1357 | 1362 |
| 1358 ListBuildsResponse(); | 1363 ListBuildsResponse(); |
| 1359 | 1364 |
| 1360 ListBuildsResponse.fromJson(core.Map _json) { | 1365 ListBuildsResponse.fromJson(core.Map _json) { |
| 1361 if (_json.containsKey("builds")) { | 1366 if (_json.containsKey("builds")) { |
| 1362 builds = _json["builds"].map((value) => new Build.fromJson(value)).toList(
); | 1367 builds = _json["builds"].map((value) => new Build.fromJson(value)).toList(
); |
| 1363 } | 1368 } |
| 1364 if (_json.containsKey("nextPageToken")) { | 1369 if (_json.containsKey("nextPageToken")) { |
| 1365 nextPageToken = _json["nextPageToken"]; | 1370 nextPageToken = _json["nextPageToken"]; |
| 1366 } | 1371 } |
| 1367 } | 1372 } |
| 1368 | 1373 |
| 1369 core.Map toJson() { | 1374 core.Map<core.String, core.Object> toJson() { |
| 1370 var _json = new core.Map(); | 1375 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1371 if (builds != null) { | 1376 if (builds != null) { |
| 1372 _json["builds"] = builds.map((value) => (value).toJson()).toList(); | 1377 _json["builds"] = builds.map((value) => (value).toJson()).toList(); |
| 1373 } | 1378 } |
| 1374 if (nextPageToken != null) { | 1379 if (nextPageToken != null) { |
| 1375 _json["nextPageToken"] = nextPageToken; | 1380 _json["nextPageToken"] = nextPageToken; |
| 1376 } | 1381 } |
| 1377 return _json; | 1382 return _json; |
| 1378 } | 1383 } |
| 1379 } | 1384 } |
| 1380 | 1385 |
| 1381 /** The response message for Operations.ListOperations. */ | 1386 /** The response message for Operations.ListOperations. */ |
| 1382 class ListOperationsResponse { | 1387 class ListOperationsResponse { |
| 1383 /** The standard List next-page token. */ | 1388 /** The standard List next-page token. */ |
| 1384 core.String nextPageToken; | 1389 core.String nextPageToken; |
| 1385 /** A list of operations that matches the specified filter in the request. */ | 1390 /** A list of operations that matches the specified filter in the request. */ |
| 1386 core.List<Operation> operations; | 1391 core.List<Operation> operations; |
| 1387 | 1392 |
| 1388 ListOperationsResponse(); | 1393 ListOperationsResponse(); |
| 1389 | 1394 |
| 1390 ListOperationsResponse.fromJson(core.Map _json) { | 1395 ListOperationsResponse.fromJson(core.Map _json) { |
| 1391 if (_json.containsKey("nextPageToken")) { | 1396 if (_json.containsKey("nextPageToken")) { |
| 1392 nextPageToken = _json["nextPageToken"]; | 1397 nextPageToken = _json["nextPageToken"]; |
| 1393 } | 1398 } |
| 1394 if (_json.containsKey("operations")) { | 1399 if (_json.containsKey("operations")) { |
| 1395 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 1400 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
| 1396 } | 1401 } |
| 1397 } | 1402 } |
| 1398 | 1403 |
| 1399 core.Map toJson() { | 1404 core.Map<core.String, core.Object> toJson() { |
| 1400 var _json = new core.Map(); | 1405 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1401 if (nextPageToken != null) { | 1406 if (nextPageToken != null) { |
| 1402 _json["nextPageToken"] = nextPageToken; | 1407 _json["nextPageToken"] = nextPageToken; |
| 1403 } | 1408 } |
| 1404 if (operations != null) { | 1409 if (operations != null) { |
| 1405 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 1410 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
| 1406 } | 1411 } |
| 1407 return _json; | 1412 return _json; |
| 1408 } | 1413 } |
| 1409 } | 1414 } |
| 1410 | 1415 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 metadata = _json["metadata"]; | 1470 metadata = _json["metadata"]; |
| 1466 } | 1471 } |
| 1467 if (_json.containsKey("name")) { | 1472 if (_json.containsKey("name")) { |
| 1468 name = _json["name"]; | 1473 name = _json["name"]; |
| 1469 } | 1474 } |
| 1470 if (_json.containsKey("response")) { | 1475 if (_json.containsKey("response")) { |
| 1471 response = _json["response"]; | 1476 response = _json["response"]; |
| 1472 } | 1477 } |
| 1473 } | 1478 } |
| 1474 | 1479 |
| 1475 core.Map toJson() { | 1480 core.Map<core.String, core.Object> toJson() { |
| 1476 var _json = new core.Map(); | 1481 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1477 if (done != null) { | 1482 if (done != null) { |
| 1478 _json["done"] = done; | 1483 _json["done"] = done; |
| 1479 } | 1484 } |
| 1480 if (error != null) { | 1485 if (error != null) { |
| 1481 _json["error"] = (error).toJson(); | 1486 _json["error"] = (error).toJson(); |
| 1482 } | 1487 } |
| 1483 if (metadata != null) { | 1488 if (metadata != null) { |
| 1484 _json["metadata"] = metadata; | 1489 _json["metadata"] = metadata; |
| 1485 } | 1490 } |
| 1486 if (name != null) { | 1491 if (name != null) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1525 projectId = _json["projectId"]; | 1530 projectId = _json["projectId"]; |
| 1526 } | 1531 } |
| 1527 if (_json.containsKey("repoName")) { | 1532 if (_json.containsKey("repoName")) { |
| 1528 repoName = _json["repoName"]; | 1533 repoName = _json["repoName"]; |
| 1529 } | 1534 } |
| 1530 if (_json.containsKey("tagName")) { | 1535 if (_json.containsKey("tagName")) { |
| 1531 tagName = _json["tagName"]; | 1536 tagName = _json["tagName"]; |
| 1532 } | 1537 } |
| 1533 } | 1538 } |
| 1534 | 1539 |
| 1535 core.Map toJson() { | 1540 core.Map<core.String, core.Object> toJson() { |
| 1536 var _json = new core.Map(); | 1541 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1537 if (branchName != null) { | 1542 if (branchName != null) { |
| 1538 _json["branchName"] = branchName; | 1543 _json["branchName"] = branchName; |
| 1539 } | 1544 } |
| 1540 if (commitSha != null) { | 1545 if (commitSha != null) { |
| 1541 _json["commitSha"] = commitSha; | 1546 _json["commitSha"] = commitSha; |
| 1542 } | 1547 } |
| 1543 if (projectId != null) { | 1548 if (projectId != null) { |
| 1544 _json["projectId"] = projectId; | 1549 _json["projectId"] = projectId; |
| 1545 } | 1550 } |
| 1546 if (repoName != null) { | 1551 if (repoName != null) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1566 | 1571 |
| 1567 Results.fromJson(core.Map _json) { | 1572 Results.fromJson(core.Map _json) { |
| 1568 if (_json.containsKey("buildStepImages")) { | 1573 if (_json.containsKey("buildStepImages")) { |
| 1569 buildStepImages = _json["buildStepImages"]; | 1574 buildStepImages = _json["buildStepImages"]; |
| 1570 } | 1575 } |
| 1571 if (_json.containsKey("images")) { | 1576 if (_json.containsKey("images")) { |
| 1572 images = _json["images"].map((value) => new BuiltImage.fromJson(value)).to
List(); | 1577 images = _json["images"].map((value) => new BuiltImage.fromJson(value)).to
List(); |
| 1573 } | 1578 } |
| 1574 } | 1579 } |
| 1575 | 1580 |
| 1576 core.Map toJson() { | 1581 core.Map<core.String, core.Object> toJson() { |
| 1577 var _json = new core.Map(); | 1582 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1578 if (buildStepImages != null) { | 1583 if (buildStepImages != null) { |
| 1579 _json["buildStepImages"] = buildStepImages; | 1584 _json["buildStepImages"] = buildStepImages; |
| 1580 } | 1585 } |
| 1581 if (images != null) { | 1586 if (images != null) { |
| 1582 _json["images"] = images.map((value) => (value).toJson()).toList(); | 1587 _json["images"] = images.map((value) => (value).toJson()).toList(); |
| 1583 } | 1588 } |
| 1584 return _json; | 1589 return _json; |
| 1585 } | 1590 } |
| 1586 } | 1591 } |
| 1587 | 1592 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1602 | 1607 |
| 1603 Source.fromJson(core.Map _json) { | 1608 Source.fromJson(core.Map _json) { |
| 1604 if (_json.containsKey("repoSource")) { | 1609 if (_json.containsKey("repoSource")) { |
| 1605 repoSource = new RepoSource.fromJson(_json["repoSource"]); | 1610 repoSource = new RepoSource.fromJson(_json["repoSource"]); |
| 1606 } | 1611 } |
| 1607 if (_json.containsKey("storageSource")) { | 1612 if (_json.containsKey("storageSource")) { |
| 1608 storageSource = new StorageSource.fromJson(_json["storageSource"]); | 1613 storageSource = new StorageSource.fromJson(_json["storageSource"]); |
| 1609 } | 1614 } |
| 1610 } | 1615 } |
| 1611 | 1616 |
| 1612 core.Map toJson() { | 1617 core.Map<core.String, core.Object> toJson() { |
| 1613 var _json = new core.Map(); | 1618 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1614 if (repoSource != null) { | 1619 if (repoSource != null) { |
| 1615 _json["repoSource"] = (repoSource).toJson(); | 1620 _json["repoSource"] = (repoSource).toJson(); |
| 1616 } | 1621 } |
| 1617 if (storageSource != null) { | 1622 if (storageSource != null) { |
| 1618 _json["storageSource"] = (storageSource).toJson(); | 1623 _json["storageSource"] = (storageSource).toJson(); |
| 1619 } | 1624 } |
| 1620 return _json; | 1625 return _json; |
| 1621 } | 1626 } |
| 1622 } | 1627 } |
| 1623 | 1628 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1647 /** | 1652 /** |
| 1648 * A copy of the build's source.storage_source, if exists, with any | 1653 * A copy of the build's source.storage_source, if exists, with any |
| 1649 * generations resolved. | 1654 * generations resolved. |
| 1650 */ | 1655 */ |
| 1651 StorageSource resolvedStorageSource; | 1656 StorageSource resolvedStorageSource; |
| 1652 | 1657 |
| 1653 SourceProvenance(); | 1658 SourceProvenance(); |
| 1654 | 1659 |
| 1655 SourceProvenance.fromJson(core.Map _json) { | 1660 SourceProvenance.fromJson(core.Map _json) { |
| 1656 if (_json.containsKey("fileHashes")) { | 1661 if (_json.containsKey("fileHashes")) { |
| 1657 fileHashes = commons.mapMap(_json["fileHashes"], (item) => new FileHashes.
fromJson(item)); | 1662 fileHashes = commons.mapMap<core.Map<core.String, core.Object>, FileHashes
>(_json["fileHashes"], (core.Map<core.String, core.Object> item) => new FileHash
es.fromJson(item)); |
| 1658 } | 1663 } |
| 1659 if (_json.containsKey("resolvedRepoSource")) { | 1664 if (_json.containsKey("resolvedRepoSource")) { |
| 1660 resolvedRepoSource = new RepoSource.fromJson(_json["resolvedRepoSource"]); | 1665 resolvedRepoSource = new RepoSource.fromJson(_json["resolvedRepoSource"]); |
| 1661 } | 1666 } |
| 1662 if (_json.containsKey("resolvedStorageSource")) { | 1667 if (_json.containsKey("resolvedStorageSource")) { |
| 1663 resolvedStorageSource = new StorageSource.fromJson(_json["resolvedStorageS
ource"]); | 1668 resolvedStorageSource = new StorageSource.fromJson(_json["resolvedStorageS
ource"]); |
| 1664 } | 1669 } |
| 1665 } | 1670 } |
| 1666 | 1671 |
| 1667 core.Map toJson() { | 1672 core.Map<core.String, core.Object> toJson() { |
| 1668 var _json = new core.Map(); | 1673 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1669 if (fileHashes != null) { | 1674 if (fileHashes != null) { |
| 1670 _json["fileHashes"] = commons.mapMap(fileHashes, (item) => (item).toJson()
); | 1675 _json["fileHashes"] = commons.mapMap<FileHashes, core.Map<core.String, cor
e.Object>>(fileHashes, (FileHashes item) => (item).toJson()); |
| 1671 } | 1676 } |
| 1672 if (resolvedRepoSource != null) { | 1677 if (resolvedRepoSource != null) { |
| 1673 _json["resolvedRepoSource"] = (resolvedRepoSource).toJson(); | 1678 _json["resolvedRepoSource"] = (resolvedRepoSource).toJson(); |
| 1674 } | 1679 } |
| 1675 if (resolvedStorageSource != null) { | 1680 if (resolvedStorageSource != null) { |
| 1676 _json["resolvedStorageSource"] = (resolvedStorageSource).toJson(); | 1681 _json["resolvedStorageSource"] = (resolvedStorageSource).toJson(); |
| 1677 } | 1682 } |
| 1678 return _json; | 1683 return _json; |
| 1679 } | 1684 } |
| 1680 } | 1685 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1760 code = _json["code"]; | 1765 code = _json["code"]; |
| 1761 } | 1766 } |
| 1762 if (_json.containsKey("details")) { | 1767 if (_json.containsKey("details")) { |
| 1763 details = _json["details"]; | 1768 details = _json["details"]; |
| 1764 } | 1769 } |
| 1765 if (_json.containsKey("message")) { | 1770 if (_json.containsKey("message")) { |
| 1766 message = _json["message"]; | 1771 message = _json["message"]; |
| 1767 } | 1772 } |
| 1768 } | 1773 } |
| 1769 | 1774 |
| 1770 core.Map toJson() { | 1775 core.Map<core.String, core.Object> toJson() { |
| 1771 var _json = new core.Map(); | 1776 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1772 if (code != null) { | 1777 if (code != null) { |
| 1773 _json["code"] = code; | 1778 _json["code"] = code; |
| 1774 } | 1779 } |
| 1775 if (details != null) { | 1780 if (details != null) { |
| 1776 _json["details"] = details; | 1781 _json["details"] = details; |
| 1777 } | 1782 } |
| 1778 if (message != null) { | 1783 if (message != null) { |
| 1779 _json["message"] = message; | 1784 _json["message"] = message; |
| 1780 } | 1785 } |
| 1781 return _json; | 1786 return _json; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1813 bucket = _json["bucket"]; | 1818 bucket = _json["bucket"]; |
| 1814 } | 1819 } |
| 1815 if (_json.containsKey("generation")) { | 1820 if (_json.containsKey("generation")) { |
| 1816 generation = _json["generation"]; | 1821 generation = _json["generation"]; |
| 1817 } | 1822 } |
| 1818 if (_json.containsKey("object")) { | 1823 if (_json.containsKey("object")) { |
| 1819 object = _json["object"]; | 1824 object = _json["object"]; |
| 1820 } | 1825 } |
| 1821 } | 1826 } |
| 1822 | 1827 |
| 1823 core.Map toJson() { | 1828 core.Map<core.String, core.Object> toJson() { |
| 1824 var _json = new core.Map(); | 1829 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1825 if (bucket != null) { | 1830 if (bucket != null) { |
| 1826 _json["bucket"] = bucket; | 1831 _json["bucket"] = bucket; |
| 1827 } | 1832 } |
| 1828 if (generation != null) { | 1833 if (generation != null) { |
| 1829 _json["generation"] = generation; | 1834 _json["generation"] = generation; |
| 1830 } | 1835 } |
| 1831 if (object != null) { | 1836 if (object != null) { |
| 1832 _json["object"] = object; | 1837 _json["object"] = object; |
| 1833 } | 1838 } |
| 1834 return _json; | 1839 return _json; |
| 1835 } | 1840 } |
| 1836 } | 1841 } |
| OLD | NEW |