@aws-sdk/client-codecommit 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +821 -1034
- package/dist-es/protocols/Aws_json1_1.js +607 -820
- package/package.json +26 -26
|
@@ -797,8 +797,7 @@ const deserializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryCommandEr
|
|
|
797
797
|
body: await parseBody(output.body, context),
|
|
798
798
|
};
|
|
799
799
|
let response;
|
|
800
|
-
|
|
801
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
800
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
801
|
switch (errorCode) {
|
|
803
802
|
case "ApprovalRuleTemplateDoesNotExistException":
|
|
804
803
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateDoesNotExistException":
|
|
@@ -838,10 +837,12 @@ const deserializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryCommandEr
|
|
|
838
837
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
839
838
|
default:
|
|
840
839
|
const parsedBody = parsedOutput.body;
|
|
840
|
+
const $metadata = deserializeMetadata(output);
|
|
841
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
841
842
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
842
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
843
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
843
844
|
$fault: "client",
|
|
844
|
-
$metadata
|
|
845
|
+
$metadata,
|
|
845
846
|
});
|
|
846
847
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
847
848
|
}
|
|
@@ -866,8 +867,7 @@ const deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesCo
|
|
|
866
867
|
body: await parseBody(output.body, context),
|
|
867
868
|
};
|
|
868
869
|
let response;
|
|
869
|
-
|
|
870
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
871
|
switch (errorCode) {
|
|
872
872
|
case "ApprovalRuleTemplateDoesNotExistException":
|
|
873
873
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateDoesNotExistException":
|
|
@@ -901,10 +901,12 @@ const deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesCo
|
|
|
901
901
|
throw await deserializeAws_json1_1RepositoryNamesRequiredExceptionResponse(parsedOutput, context);
|
|
902
902
|
default:
|
|
903
903
|
const parsedBody = parsedOutput.body;
|
|
904
|
+
const $metadata = deserializeMetadata(output);
|
|
905
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
904
906
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
905
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
907
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
906
908
|
$fault: "client",
|
|
907
|
-
$metadata
|
|
909
|
+
$metadata,
|
|
908
910
|
});
|
|
909
911
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
910
912
|
}
|
|
@@ -929,8 +931,7 @@ const deserializeAws_json1_1BatchDescribeMergeConflictsCommandError = async (out
|
|
|
929
931
|
body: await parseBody(output.body, context),
|
|
930
932
|
};
|
|
931
933
|
let response;
|
|
932
|
-
|
|
933
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
935
|
switch (errorCode) {
|
|
935
936
|
case "CommitDoesNotExistException":
|
|
936
937
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -997,10 +998,12 @@ const deserializeAws_json1_1BatchDescribeMergeConflictsCommandError = async (out
|
|
|
997
998
|
throw await deserializeAws_json1_1TipsDivergenceExceededExceptionResponse(parsedOutput, context);
|
|
998
999
|
default:
|
|
999
1000
|
const parsedBody = parsedOutput.body;
|
|
1001
|
+
const $metadata = deserializeMetadata(output);
|
|
1002
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1000
1003
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1001
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1004
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1002
1005
|
$fault: "client",
|
|
1003
|
-
$metadata
|
|
1006
|
+
$metadata,
|
|
1004
1007
|
});
|
|
1005
1008
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1006
1009
|
}
|
|
@@ -1025,8 +1028,7 @@ const deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositorie
|
|
|
1025
1028
|
body: await parseBody(output.body, context),
|
|
1026
1029
|
};
|
|
1027
1030
|
let response;
|
|
1028
|
-
|
|
1029
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
1032
|
switch (errorCode) {
|
|
1031
1033
|
case "ApprovalRuleTemplateDoesNotExistException":
|
|
1032
1034
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateDoesNotExistException":
|
|
@@ -1060,10 +1062,12 @@ const deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositorie
|
|
|
1060
1062
|
throw await deserializeAws_json1_1RepositoryNamesRequiredExceptionResponse(parsedOutput, context);
|
|
1061
1063
|
default:
|
|
1062
1064
|
const parsedBody = parsedOutput.body;
|
|
1065
|
+
const $metadata = deserializeMetadata(output);
|
|
1066
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1063
1067
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1064
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1068
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1065
1069
|
$fault: "client",
|
|
1066
|
-
$metadata
|
|
1070
|
+
$metadata,
|
|
1067
1071
|
});
|
|
1068
1072
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1069
1073
|
}
|
|
@@ -1088,8 +1092,7 @@ const deserializeAws_json1_1BatchGetCommitsCommandError = async (output, context
|
|
|
1088
1092
|
body: await parseBody(output.body, context),
|
|
1089
1093
|
};
|
|
1090
1094
|
let response;
|
|
1091
|
-
|
|
1092
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
1096
|
switch (errorCode) {
|
|
1094
1097
|
case "CommitIdsLimitExceededException":
|
|
1095
1098
|
case "com.amazonaws.codecommit#CommitIdsLimitExceededException":
|
|
@@ -1123,10 +1126,12 @@ const deserializeAws_json1_1BatchGetCommitsCommandError = async (output, context
|
|
|
1123
1126
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
1124
1127
|
default:
|
|
1125
1128
|
const parsedBody = parsedOutput.body;
|
|
1129
|
+
const $metadata = deserializeMetadata(output);
|
|
1130
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1126
1131
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1132
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1128
1133
|
$fault: "client",
|
|
1129
|
-
$metadata
|
|
1134
|
+
$metadata,
|
|
1130
1135
|
});
|
|
1131
1136
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1132
1137
|
}
|
|
@@ -1151,8 +1156,7 @@ const deserializeAws_json1_1BatchGetRepositoriesCommandError = async (output, co
|
|
|
1151
1156
|
body: await parseBody(output.body, context),
|
|
1152
1157
|
};
|
|
1153
1158
|
let response;
|
|
1154
|
-
|
|
1155
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
1160
|
switch (errorCode) {
|
|
1157
1161
|
case "EncryptionIntegrityChecksFailedException":
|
|
1158
1162
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -1180,10 +1184,12 @@ const deserializeAws_json1_1BatchGetRepositoriesCommandError = async (output, co
|
|
|
1180
1184
|
throw await deserializeAws_json1_1RepositoryNamesRequiredExceptionResponse(parsedOutput, context);
|
|
1181
1185
|
default:
|
|
1182
1186
|
const parsedBody = parsedOutput.body;
|
|
1187
|
+
const $metadata = deserializeMetadata(output);
|
|
1188
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1183
1189
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1190
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1185
1191
|
$fault: "client",
|
|
1186
|
-
$metadata
|
|
1192
|
+
$metadata,
|
|
1187
1193
|
});
|
|
1188
1194
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1189
1195
|
}
|
|
@@ -1208,8 +1214,7 @@ const deserializeAws_json1_1CreateApprovalRuleTemplateCommandError = async (outp
|
|
|
1208
1214
|
body: await parseBody(output.body, context),
|
|
1209
1215
|
};
|
|
1210
1216
|
let response;
|
|
1211
|
-
|
|
1212
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1213
1218
|
switch (errorCode) {
|
|
1214
1219
|
case "ApprovalRuleTemplateContentRequiredException":
|
|
1215
1220
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateContentRequiredException":
|
|
@@ -1234,10 +1239,12 @@ const deserializeAws_json1_1CreateApprovalRuleTemplateCommandError = async (outp
|
|
|
1234
1239
|
throw await deserializeAws_json1_1NumberOfRuleTemplatesExceededExceptionResponse(parsedOutput, context);
|
|
1235
1240
|
default:
|
|
1236
1241
|
const parsedBody = parsedOutput.body;
|
|
1242
|
+
const $metadata = deserializeMetadata(output);
|
|
1243
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1237
1244
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1245
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1239
1246
|
$fault: "client",
|
|
1240
|
-
$metadata
|
|
1247
|
+
$metadata,
|
|
1241
1248
|
});
|
|
1242
1249
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1243
1250
|
}
|
|
@@ -1259,8 +1266,7 @@ const deserializeAws_json1_1CreateBranchCommandError = async (output, context) =
|
|
|
1259
1266
|
body: await parseBody(output.body, context),
|
|
1260
1267
|
};
|
|
1261
1268
|
let response;
|
|
1262
|
-
|
|
1263
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1264
1270
|
switch (errorCode) {
|
|
1265
1271
|
case "BranchNameExistsException":
|
|
1266
1272
|
case "com.amazonaws.codecommit#BranchNameExistsException":
|
|
@@ -1306,10 +1312,12 @@ const deserializeAws_json1_1CreateBranchCommandError = async (output, context) =
|
|
|
1306
1312
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
1307
1313
|
default:
|
|
1308
1314
|
const parsedBody = parsedOutput.body;
|
|
1315
|
+
const $metadata = deserializeMetadata(output);
|
|
1316
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1309
1317
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1310
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1318
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1311
1319
|
$fault: "client",
|
|
1312
|
-
$metadata
|
|
1320
|
+
$metadata,
|
|
1313
1321
|
});
|
|
1314
1322
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1315
1323
|
}
|
|
@@ -1334,8 +1342,7 @@ const deserializeAws_json1_1CreateCommitCommandError = async (output, context) =
|
|
|
1334
1342
|
body: await parseBody(output.body, context),
|
|
1335
1343
|
};
|
|
1336
1344
|
let response;
|
|
1337
|
-
|
|
1338
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
1346
|
switch (errorCode) {
|
|
1340
1347
|
case "BranchDoesNotExistException":
|
|
1341
1348
|
case "com.amazonaws.codecommit#BranchDoesNotExistException":
|
|
@@ -1453,10 +1460,12 @@ const deserializeAws_json1_1CreateCommitCommandError = async (output, context) =
|
|
|
1453
1460
|
throw await deserializeAws_json1_1SourceFileOrContentRequiredExceptionResponse(parsedOutput, context);
|
|
1454
1461
|
default:
|
|
1455
1462
|
const parsedBody = parsedOutput.body;
|
|
1463
|
+
const $metadata = deserializeMetadata(output);
|
|
1464
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1456
1465
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1457
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1466
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1458
1467
|
$fault: "client",
|
|
1459
|
-
$metadata
|
|
1468
|
+
$metadata,
|
|
1460
1469
|
});
|
|
1461
1470
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1462
1471
|
}
|
|
@@ -1481,8 +1490,7 @@ const deserializeAws_json1_1CreatePullRequestCommandError = async (output, conte
|
|
|
1481
1490
|
body: await parseBody(output.body, context),
|
|
1482
1491
|
};
|
|
1483
1492
|
let response;
|
|
1484
|
-
|
|
1485
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
1494
|
switch (errorCode) {
|
|
1487
1495
|
case "ClientRequestTokenRequiredException":
|
|
1488
1496
|
case "com.amazonaws.codecommit#ClientRequestTokenRequiredException":
|
|
@@ -1561,10 +1569,12 @@ const deserializeAws_json1_1CreatePullRequestCommandError = async (output, conte
|
|
|
1561
1569
|
throw await deserializeAws_json1_1TitleRequiredExceptionResponse(parsedOutput, context);
|
|
1562
1570
|
default:
|
|
1563
1571
|
const parsedBody = parsedOutput.body;
|
|
1572
|
+
const $metadata = deserializeMetadata(output);
|
|
1573
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1564
1574
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1565
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1575
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1566
1576
|
$fault: "client",
|
|
1567
|
-
$metadata
|
|
1577
|
+
$metadata,
|
|
1568
1578
|
});
|
|
1569
1579
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1570
1580
|
}
|
|
@@ -1589,8 +1599,7 @@ const deserializeAws_json1_1CreatePullRequestApprovalRuleCommandError = async (o
|
|
|
1589
1599
|
body: await parseBody(output.body, context),
|
|
1590
1600
|
};
|
|
1591
1601
|
let response;
|
|
1592
|
-
|
|
1593
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1602
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1594
1603
|
switch (errorCode) {
|
|
1595
1604
|
case "ApprovalRuleContentRequiredException":
|
|
1596
1605
|
case "com.amazonaws.codecommit#ApprovalRuleContentRequiredException":
|
|
@@ -1639,10 +1648,12 @@ const deserializeAws_json1_1CreatePullRequestApprovalRuleCommandError = async (o
|
|
|
1639
1648
|
throw await deserializeAws_json1_1PullRequestIdRequiredExceptionResponse(parsedOutput, context);
|
|
1640
1649
|
default:
|
|
1641
1650
|
const parsedBody = parsedOutput.body;
|
|
1651
|
+
const $metadata = deserializeMetadata(output);
|
|
1652
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1642
1653
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1643
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1654
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1644
1655
|
$fault: "client",
|
|
1645
|
-
$metadata
|
|
1656
|
+
$metadata,
|
|
1646
1657
|
});
|
|
1647
1658
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1648
1659
|
}
|
|
@@ -1667,8 +1678,7 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
1667
1678
|
body: await parseBody(output.body, context),
|
|
1668
1679
|
};
|
|
1669
1680
|
let response;
|
|
1670
|
-
|
|
1671
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1681
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
1682
|
switch (errorCode) {
|
|
1673
1683
|
case "EncryptionIntegrityChecksFailedException":
|
|
1674
1684
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -1714,10 +1724,12 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
1714
1724
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1715
1725
|
default:
|
|
1716
1726
|
const parsedBody = parsedOutput.body;
|
|
1727
|
+
const $metadata = deserializeMetadata(output);
|
|
1728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1717
1729
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1718
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1719
1731
|
$fault: "client",
|
|
1720
|
-
$metadata
|
|
1732
|
+
$metadata,
|
|
1721
1733
|
});
|
|
1722
1734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1723
1735
|
}
|
|
@@ -1742,8 +1754,7 @@ const deserializeAws_json1_1CreateUnreferencedMergeCommitCommandError = async (o
|
|
|
1742
1754
|
body: await parseBody(output.body, context),
|
|
1743
1755
|
};
|
|
1744
1756
|
let response;
|
|
1745
|
-
|
|
1746
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
1758
|
switch (errorCode) {
|
|
1748
1759
|
case "CommitDoesNotExistException":
|
|
1749
1760
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -1855,10 +1866,12 @@ const deserializeAws_json1_1CreateUnreferencedMergeCommitCommandError = async (o
|
|
|
1855
1866
|
throw await deserializeAws_json1_1TipsDivergenceExceededExceptionResponse(parsedOutput, context);
|
|
1856
1867
|
default:
|
|
1857
1868
|
const parsedBody = parsedOutput.body;
|
|
1869
|
+
const $metadata = deserializeMetadata(output);
|
|
1870
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1858
1871
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1859
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1872
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1860
1873
|
$fault: "client",
|
|
1861
|
-
$metadata
|
|
1874
|
+
$metadata,
|
|
1862
1875
|
});
|
|
1863
1876
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1864
1877
|
}
|
|
@@ -1883,8 +1896,7 @@ const deserializeAws_json1_1DeleteApprovalRuleTemplateCommandError = async (outp
|
|
|
1883
1896
|
body: await parseBody(output.body, context),
|
|
1884
1897
|
};
|
|
1885
1898
|
let response;
|
|
1886
|
-
|
|
1887
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1899
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
1900
|
switch (errorCode) {
|
|
1889
1901
|
case "ApprovalRuleTemplateInUseException":
|
|
1890
1902
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateInUseException":
|
|
@@ -1897,10 +1909,12 @@ const deserializeAws_json1_1DeleteApprovalRuleTemplateCommandError = async (outp
|
|
|
1897
1909
|
throw await deserializeAws_json1_1InvalidApprovalRuleTemplateNameExceptionResponse(parsedOutput, context);
|
|
1898
1910
|
default:
|
|
1899
1911
|
const parsedBody = parsedOutput.body;
|
|
1912
|
+
const $metadata = deserializeMetadata(output);
|
|
1913
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1900
1914
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1901
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1915
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1902
1916
|
$fault: "client",
|
|
1903
|
-
$metadata
|
|
1917
|
+
$metadata,
|
|
1904
1918
|
});
|
|
1905
1919
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1906
1920
|
}
|
|
@@ -1925,8 +1939,7 @@ const deserializeAws_json1_1DeleteBranchCommandError = async (output, context) =
|
|
|
1925
1939
|
body: await parseBody(output.body, context),
|
|
1926
1940
|
};
|
|
1927
1941
|
let response;
|
|
1928
|
-
|
|
1929
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1942
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1930
1943
|
switch (errorCode) {
|
|
1931
1944
|
case "BranchNameRequiredException":
|
|
1932
1945
|
case "com.amazonaws.codecommit#BranchNameRequiredException":
|
|
@@ -1963,10 +1976,12 @@ const deserializeAws_json1_1DeleteBranchCommandError = async (output, context) =
|
|
|
1963
1976
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
1964
1977
|
default:
|
|
1965
1978
|
const parsedBody = parsedOutput.body;
|
|
1979
|
+
const $metadata = deserializeMetadata(output);
|
|
1980
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1966
1981
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
1967
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1982
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1968
1983
|
$fault: "client",
|
|
1969
|
-
$metadata
|
|
1984
|
+
$metadata,
|
|
1970
1985
|
});
|
|
1971
1986
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1972
1987
|
}
|
|
@@ -1991,8 +2006,7 @@ const deserializeAws_json1_1DeleteCommentContentCommandError = async (output, co
|
|
|
1991
2006
|
body: await parseBody(output.body, context),
|
|
1992
2007
|
};
|
|
1993
2008
|
let response;
|
|
1994
|
-
|
|
1995
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2009
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1996
2010
|
switch (errorCode) {
|
|
1997
2011
|
case "CommentDeletedException":
|
|
1998
2012
|
case "com.amazonaws.codecommit#CommentDeletedException":
|
|
@@ -2008,10 +2022,12 @@ const deserializeAws_json1_1DeleteCommentContentCommandError = async (output, co
|
|
|
2008
2022
|
throw await deserializeAws_json1_1InvalidCommentIdExceptionResponse(parsedOutput, context);
|
|
2009
2023
|
default:
|
|
2010
2024
|
const parsedBody = parsedOutput.body;
|
|
2025
|
+
const $metadata = deserializeMetadata(output);
|
|
2026
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2011
2027
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2012
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2028
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2013
2029
|
$fault: "client",
|
|
2014
|
-
$metadata
|
|
2030
|
+
$metadata,
|
|
2015
2031
|
});
|
|
2016
2032
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2017
2033
|
}
|
|
@@ -2036,8 +2052,7 @@ const deserializeAws_json1_1DeleteFileCommandError = async (output, context) =>
|
|
|
2036
2052
|
body: await parseBody(output.body, context),
|
|
2037
2053
|
};
|
|
2038
2054
|
let response;
|
|
2039
|
-
|
|
2040
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2055
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
2056
|
switch (errorCode) {
|
|
2042
2057
|
case "BranchDoesNotExistException":
|
|
2043
2058
|
case "com.amazonaws.codecommit#BranchDoesNotExistException":
|
|
@@ -2107,10 +2122,12 @@ const deserializeAws_json1_1DeleteFileCommandError = async (output, context) =>
|
|
|
2107
2122
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
2108
2123
|
default:
|
|
2109
2124
|
const parsedBody = parsedOutput.body;
|
|
2125
|
+
const $metadata = deserializeMetadata(output);
|
|
2126
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2110
2127
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2111
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2128
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2112
2129
|
$fault: "client",
|
|
2113
|
-
$metadata
|
|
2130
|
+
$metadata,
|
|
2114
2131
|
});
|
|
2115
2132
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2116
2133
|
}
|
|
@@ -2135,8 +2152,7 @@ const deserializeAws_json1_1DeletePullRequestApprovalRuleCommandError = async (o
|
|
|
2135
2152
|
body: await parseBody(output.body, context),
|
|
2136
2153
|
};
|
|
2137
2154
|
let response;
|
|
2138
|
-
|
|
2139
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2155
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
2156
|
switch (errorCode) {
|
|
2141
2157
|
case "ApprovalRuleNameRequiredException":
|
|
2142
2158
|
case "com.amazonaws.codecommit#ApprovalRuleNameRequiredException":
|
|
@@ -2176,10 +2192,12 @@ const deserializeAws_json1_1DeletePullRequestApprovalRuleCommandError = async (o
|
|
|
2176
2192
|
throw await deserializeAws_json1_1PullRequestIdRequiredExceptionResponse(parsedOutput, context);
|
|
2177
2193
|
default:
|
|
2178
2194
|
const parsedBody = parsedOutput.body;
|
|
2195
|
+
const $metadata = deserializeMetadata(output);
|
|
2196
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2179
2197
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2180
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2198
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2181
2199
|
$fault: "client",
|
|
2182
|
-
$metadata
|
|
2200
|
+
$metadata,
|
|
2183
2201
|
});
|
|
2184
2202
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2185
2203
|
}
|
|
@@ -2204,8 +2222,7 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
2204
2222
|
body: await parseBody(output.body, context),
|
|
2205
2223
|
};
|
|
2206
2224
|
let response;
|
|
2207
|
-
|
|
2208
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2209
2226
|
switch (errorCode) {
|
|
2210
2227
|
case "EncryptionIntegrityChecksFailedException":
|
|
2211
2228
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -2230,10 +2247,12 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
2230
2247
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
2231
2248
|
default:
|
|
2232
2249
|
const parsedBody = parsedOutput.body;
|
|
2250
|
+
const $metadata = deserializeMetadata(output);
|
|
2251
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2233
2252
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2234
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2253
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2235
2254
|
$fault: "client",
|
|
2236
|
-
$metadata
|
|
2255
|
+
$metadata,
|
|
2237
2256
|
});
|
|
2238
2257
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2239
2258
|
}
|
|
@@ -2258,8 +2277,7 @@ const deserializeAws_json1_1DescribeMergeConflictsCommandError = async (output,
|
|
|
2258
2277
|
body: await parseBody(output.body, context),
|
|
2259
2278
|
};
|
|
2260
2279
|
let response;
|
|
2261
|
-
|
|
2262
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2280
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2263
2281
|
switch (errorCode) {
|
|
2264
2282
|
case "CommitDoesNotExistException":
|
|
2265
2283
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -2332,10 +2350,12 @@ const deserializeAws_json1_1DescribeMergeConflictsCommandError = async (output,
|
|
|
2332
2350
|
throw await deserializeAws_json1_1TipsDivergenceExceededExceptionResponse(parsedOutput, context);
|
|
2333
2351
|
default:
|
|
2334
2352
|
const parsedBody = parsedOutput.body;
|
|
2353
|
+
const $metadata = deserializeMetadata(output);
|
|
2354
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2335
2355
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2336
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2337
2357
|
$fault: "client",
|
|
2338
|
-
$metadata
|
|
2358
|
+
$metadata,
|
|
2339
2359
|
});
|
|
2340
2360
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2341
2361
|
}
|
|
@@ -2360,8 +2380,7 @@ const deserializeAws_json1_1DescribePullRequestEventsCommandError = async (outpu
|
|
|
2360
2380
|
body: await parseBody(output.body, context),
|
|
2361
2381
|
};
|
|
2362
2382
|
let response;
|
|
2363
|
-
|
|
2364
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2365
2384
|
switch (errorCode) {
|
|
2366
2385
|
case "ActorDoesNotExistException":
|
|
2367
2386
|
case "com.amazonaws.codecommit#ActorDoesNotExistException":
|
|
@@ -2404,10 +2423,12 @@ const deserializeAws_json1_1DescribePullRequestEventsCommandError = async (outpu
|
|
|
2404
2423
|
throw await deserializeAws_json1_1PullRequestIdRequiredExceptionResponse(parsedOutput, context);
|
|
2405
2424
|
default:
|
|
2406
2425
|
const parsedBody = parsedOutput.body;
|
|
2426
|
+
const $metadata = deserializeMetadata(output);
|
|
2427
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2407
2428
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2408
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2429
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2409
2430
|
$fault: "client",
|
|
2410
|
-
$metadata
|
|
2431
|
+
$metadata,
|
|
2411
2432
|
});
|
|
2412
2433
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2413
2434
|
}
|
|
@@ -2429,8 +2450,7 @@ const deserializeAws_json1_1DisassociateApprovalRuleTemplateFromRepositoryComman
|
|
|
2429
2450
|
body: await parseBody(output.body, context),
|
|
2430
2451
|
};
|
|
2431
2452
|
let response;
|
|
2432
|
-
|
|
2433
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2453
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2434
2454
|
switch (errorCode) {
|
|
2435
2455
|
case "ApprovalRuleTemplateDoesNotExistException":
|
|
2436
2456
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateDoesNotExistException":
|
|
@@ -2467,10 +2487,12 @@ const deserializeAws_json1_1DisassociateApprovalRuleTemplateFromRepositoryComman
|
|
|
2467
2487
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
2468
2488
|
default:
|
|
2469
2489
|
const parsedBody = parsedOutput.body;
|
|
2490
|
+
const $metadata = deserializeMetadata(output);
|
|
2491
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2470
2492
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2471
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2493
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2472
2494
|
$fault: "client",
|
|
2473
|
-
$metadata
|
|
2495
|
+
$metadata,
|
|
2474
2496
|
});
|
|
2475
2497
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2476
2498
|
}
|
|
@@ -2495,8 +2517,7 @@ const deserializeAws_json1_1EvaluatePullRequestApprovalRulesCommandError = async
|
|
|
2495
2517
|
body: await parseBody(output.body, context),
|
|
2496
2518
|
};
|
|
2497
2519
|
let response;
|
|
2498
|
-
|
|
2499
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2520
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2500
2521
|
switch (errorCode) {
|
|
2501
2522
|
case "EncryptionIntegrityChecksFailedException":
|
|
2502
2523
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -2533,10 +2554,12 @@ const deserializeAws_json1_1EvaluatePullRequestApprovalRulesCommandError = async
|
|
|
2533
2554
|
throw await deserializeAws_json1_1RevisionNotCurrentExceptionResponse(parsedOutput, context);
|
|
2534
2555
|
default:
|
|
2535
2556
|
const parsedBody = parsedOutput.body;
|
|
2557
|
+
const $metadata = deserializeMetadata(output);
|
|
2558
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2536
2559
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2537
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2560
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2538
2561
|
$fault: "client",
|
|
2539
|
-
$metadata
|
|
2562
|
+
$metadata,
|
|
2540
2563
|
});
|
|
2541
2564
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2542
2565
|
}
|
|
@@ -2561,8 +2584,7 @@ const deserializeAws_json1_1GetApprovalRuleTemplateCommandError = async (output,
|
|
|
2561
2584
|
body: await parseBody(output.body, context),
|
|
2562
2585
|
};
|
|
2563
2586
|
let response;
|
|
2564
|
-
|
|
2565
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2587
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2566
2588
|
switch (errorCode) {
|
|
2567
2589
|
case "ApprovalRuleTemplateDoesNotExistException":
|
|
2568
2590
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateDoesNotExistException":
|
|
@@ -2575,10 +2597,12 @@ const deserializeAws_json1_1GetApprovalRuleTemplateCommandError = async (output,
|
|
|
2575
2597
|
throw await deserializeAws_json1_1InvalidApprovalRuleTemplateNameExceptionResponse(parsedOutput, context);
|
|
2576
2598
|
default:
|
|
2577
2599
|
const parsedBody = parsedOutput.body;
|
|
2600
|
+
const $metadata = deserializeMetadata(output);
|
|
2601
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2578
2602
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2579
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2603
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2580
2604
|
$fault: "client",
|
|
2581
|
-
$metadata
|
|
2605
|
+
$metadata,
|
|
2582
2606
|
});
|
|
2583
2607
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2584
2608
|
}
|
|
@@ -2603,8 +2627,7 @@ const deserializeAws_json1_1GetBlobCommandError = async (output, context) => {
|
|
|
2603
2627
|
body: await parseBody(output.body, context),
|
|
2604
2628
|
};
|
|
2605
2629
|
let response;
|
|
2606
|
-
|
|
2607
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2630
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2608
2631
|
switch (errorCode) {
|
|
2609
2632
|
case "BlobIdDoesNotExistException":
|
|
2610
2633
|
case "com.amazonaws.codecommit#BlobIdDoesNotExistException":
|
|
@@ -2644,10 +2667,12 @@ const deserializeAws_json1_1GetBlobCommandError = async (output, context) => {
|
|
|
2644
2667
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
2645
2668
|
default:
|
|
2646
2669
|
const parsedBody = parsedOutput.body;
|
|
2670
|
+
const $metadata = deserializeMetadata(output);
|
|
2671
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2647
2672
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2673
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2649
2674
|
$fault: "client",
|
|
2650
|
-
$metadata
|
|
2675
|
+
$metadata,
|
|
2651
2676
|
});
|
|
2652
2677
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2653
2678
|
}
|
|
@@ -2672,8 +2697,7 @@ const deserializeAws_json1_1GetBranchCommandError = async (output, context) => {
|
|
|
2672
2697
|
body: await parseBody(output.body, context),
|
|
2673
2698
|
};
|
|
2674
2699
|
let response;
|
|
2675
|
-
|
|
2676
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2700
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2677
2701
|
switch (errorCode) {
|
|
2678
2702
|
case "BranchDoesNotExistException":
|
|
2679
2703
|
case "com.amazonaws.codecommit#BranchDoesNotExistException":
|
|
@@ -2710,10 +2734,12 @@ const deserializeAws_json1_1GetBranchCommandError = async (output, context) => {
|
|
|
2710
2734
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
2711
2735
|
default:
|
|
2712
2736
|
const parsedBody = parsedOutput.body;
|
|
2737
|
+
const $metadata = deserializeMetadata(output);
|
|
2738
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2713
2739
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2714
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2740
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2715
2741
|
$fault: "client",
|
|
2716
|
-
$metadata
|
|
2742
|
+
$metadata,
|
|
2717
2743
|
});
|
|
2718
2744
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2719
2745
|
}
|
|
@@ -2738,8 +2764,7 @@ const deserializeAws_json1_1GetCommentCommandError = async (output, context) =>
|
|
|
2738
2764
|
body: await parseBody(output.body, context),
|
|
2739
2765
|
};
|
|
2740
2766
|
let response;
|
|
2741
|
-
|
|
2742
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2767
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2743
2768
|
switch (errorCode) {
|
|
2744
2769
|
case "CommentDeletedException":
|
|
2745
2770
|
case "com.amazonaws.codecommit#CommentDeletedException":
|
|
@@ -2770,10 +2795,12 @@ const deserializeAws_json1_1GetCommentCommandError = async (output, context) =>
|
|
|
2770
2795
|
throw await deserializeAws_json1_1InvalidCommentIdExceptionResponse(parsedOutput, context);
|
|
2771
2796
|
default:
|
|
2772
2797
|
const parsedBody = parsedOutput.body;
|
|
2798
|
+
const $metadata = deserializeMetadata(output);
|
|
2799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2773
2800
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2774
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2775
2802
|
$fault: "client",
|
|
2776
|
-
$metadata
|
|
2803
|
+
$metadata,
|
|
2777
2804
|
});
|
|
2778
2805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2779
2806
|
}
|
|
@@ -2798,8 +2825,7 @@ const deserializeAws_json1_1GetCommentReactionsCommandError = async (output, con
|
|
|
2798
2825
|
body: await parseBody(output.body, context),
|
|
2799
2826
|
};
|
|
2800
2827
|
let response;
|
|
2801
|
-
|
|
2802
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
2829
|
switch (errorCode) {
|
|
2804
2830
|
case "CommentDeletedException":
|
|
2805
2831
|
case "com.amazonaws.codecommit#CommentDeletedException":
|
|
@@ -2824,10 +2850,12 @@ const deserializeAws_json1_1GetCommentReactionsCommandError = async (output, con
|
|
|
2824
2850
|
throw await deserializeAws_json1_1InvalidReactionUserArnExceptionResponse(parsedOutput, context);
|
|
2825
2851
|
default:
|
|
2826
2852
|
const parsedBody = parsedOutput.body;
|
|
2853
|
+
const $metadata = deserializeMetadata(output);
|
|
2854
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2827
2855
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2828
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2856
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2829
2857
|
$fault: "client",
|
|
2830
|
-
$metadata
|
|
2858
|
+
$metadata,
|
|
2831
2859
|
});
|
|
2832
2860
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2833
2861
|
}
|
|
@@ -2852,8 +2880,7 @@ const deserializeAws_json1_1GetCommentsForComparedCommitCommandError = async (ou
|
|
|
2852
2880
|
body: await parseBody(output.body, context),
|
|
2853
2881
|
};
|
|
2854
2882
|
let response;
|
|
2855
|
-
|
|
2856
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2883
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2857
2884
|
switch (errorCode) {
|
|
2858
2885
|
case "CommitDoesNotExistException":
|
|
2859
2886
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -2896,10 +2923,12 @@ const deserializeAws_json1_1GetCommentsForComparedCommitCommandError = async (ou
|
|
|
2896
2923
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
2897
2924
|
default:
|
|
2898
2925
|
const parsedBody = parsedOutput.body;
|
|
2926
|
+
const $metadata = deserializeMetadata(output);
|
|
2927
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2899
2928
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2900
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2929
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2901
2930
|
$fault: "client",
|
|
2902
|
-
$metadata
|
|
2931
|
+
$metadata,
|
|
2903
2932
|
});
|
|
2904
2933
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2905
2934
|
}
|
|
@@ -2924,8 +2953,7 @@ const deserializeAws_json1_1GetCommentsForPullRequestCommandError = async (outpu
|
|
|
2924
2953
|
body: await parseBody(output.body, context),
|
|
2925
2954
|
};
|
|
2926
2955
|
let response;
|
|
2927
|
-
|
|
2928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2956
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2929
2957
|
switch (errorCode) {
|
|
2930
2958
|
case "CommitDoesNotExistException":
|
|
2931
2959
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -2980,10 +3008,12 @@ const deserializeAws_json1_1GetCommentsForPullRequestCommandError = async (outpu
|
|
|
2980
3008
|
throw await deserializeAws_json1_1RepositoryNotAssociatedWithPullRequestExceptionResponse(parsedOutput, context);
|
|
2981
3009
|
default:
|
|
2982
3010
|
const parsedBody = parsedOutput.body;
|
|
3011
|
+
const $metadata = deserializeMetadata(output);
|
|
3012
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2983
3013
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
2984
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2985
3015
|
$fault: "client",
|
|
2986
|
-
$metadata
|
|
3016
|
+
$metadata,
|
|
2987
3017
|
});
|
|
2988
3018
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2989
3019
|
}
|
|
@@ -3008,8 +3038,7 @@ const deserializeAws_json1_1GetCommitCommandError = async (output, context) => {
|
|
|
3008
3038
|
body: await parseBody(output.body, context),
|
|
3009
3039
|
};
|
|
3010
3040
|
let response;
|
|
3011
|
-
|
|
3012
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3013
3042
|
switch (errorCode) {
|
|
3014
3043
|
case "CommitIdDoesNotExistException":
|
|
3015
3044
|
case "com.amazonaws.codecommit#CommitIdDoesNotExistException":
|
|
@@ -3046,10 +3075,12 @@ const deserializeAws_json1_1GetCommitCommandError = async (output, context) => {
|
|
|
3046
3075
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
3047
3076
|
default:
|
|
3048
3077
|
const parsedBody = parsedOutput.body;
|
|
3078
|
+
const $metadata = deserializeMetadata(output);
|
|
3079
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3049
3080
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3050
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3081
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3051
3082
|
$fault: "client",
|
|
3052
|
-
$metadata
|
|
3083
|
+
$metadata,
|
|
3053
3084
|
});
|
|
3054
3085
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3055
3086
|
}
|
|
@@ -3074,8 +3105,7 @@ const deserializeAws_json1_1GetDifferencesCommandError = async (output, context)
|
|
|
3074
3105
|
body: await parseBody(output.body, context),
|
|
3075
3106
|
};
|
|
3076
3107
|
let response;
|
|
3077
|
-
|
|
3078
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3108
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3079
3109
|
switch (errorCode) {
|
|
3080
3110
|
case "CommitDoesNotExistException":
|
|
3081
3111
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -3127,10 +3157,12 @@ const deserializeAws_json1_1GetDifferencesCommandError = async (output, context)
|
|
|
3127
3157
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
3128
3158
|
default:
|
|
3129
3159
|
const parsedBody = parsedOutput.body;
|
|
3160
|
+
const $metadata = deserializeMetadata(output);
|
|
3161
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3130
3162
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3131
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3163
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3132
3164
|
$fault: "client",
|
|
3133
|
-
$metadata
|
|
3165
|
+
$metadata,
|
|
3134
3166
|
});
|
|
3135
3167
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3136
3168
|
}
|
|
@@ -3155,8 +3187,7 @@ const deserializeAws_json1_1GetFileCommandError = async (output, context) => {
|
|
|
3155
3187
|
body: await parseBody(output.body, context),
|
|
3156
3188
|
};
|
|
3157
3189
|
let response;
|
|
3158
|
-
|
|
3159
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3160
3191
|
switch (errorCode) {
|
|
3161
3192
|
case "CommitDoesNotExistException":
|
|
3162
3193
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -3202,10 +3233,12 @@ const deserializeAws_json1_1GetFileCommandError = async (output, context) => {
|
|
|
3202
3233
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
3203
3234
|
default:
|
|
3204
3235
|
const parsedBody = parsedOutput.body;
|
|
3236
|
+
const $metadata = deserializeMetadata(output);
|
|
3237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3205
3238
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3206
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3207
3240
|
$fault: "client",
|
|
3208
|
-
$metadata
|
|
3241
|
+
$metadata,
|
|
3209
3242
|
});
|
|
3210
3243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3211
3244
|
}
|
|
@@ -3230,8 +3263,7 @@ const deserializeAws_json1_1GetFolderCommandError = async (output, context) => {
|
|
|
3230
3263
|
body: await parseBody(output.body, context),
|
|
3231
3264
|
};
|
|
3232
3265
|
let response;
|
|
3233
|
-
|
|
3234
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3266
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3235
3267
|
switch (errorCode) {
|
|
3236
3268
|
case "CommitDoesNotExistException":
|
|
3237
3269
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -3274,10 +3306,12 @@ const deserializeAws_json1_1GetFolderCommandError = async (output, context) => {
|
|
|
3274
3306
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
3275
3307
|
default:
|
|
3276
3308
|
const parsedBody = parsedOutput.body;
|
|
3309
|
+
const $metadata = deserializeMetadata(output);
|
|
3310
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3277
3311
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3312
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3279
3313
|
$fault: "client",
|
|
3280
|
-
$metadata
|
|
3314
|
+
$metadata,
|
|
3281
3315
|
});
|
|
3282
3316
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3283
3317
|
}
|
|
@@ -3302,8 +3336,7 @@ const deserializeAws_json1_1GetMergeCommitCommandError = async (output, context)
|
|
|
3302
3336
|
body: await parseBody(output.body, context),
|
|
3303
3337
|
};
|
|
3304
3338
|
let response;
|
|
3305
|
-
|
|
3306
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3339
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3307
3340
|
switch (errorCode) {
|
|
3308
3341
|
case "CommitDoesNotExistException":
|
|
3309
3342
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -3346,10 +3379,12 @@ const deserializeAws_json1_1GetMergeCommitCommandError = async (output, context)
|
|
|
3346
3379
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
3347
3380
|
default:
|
|
3348
3381
|
const parsedBody = parsedOutput.body;
|
|
3382
|
+
const $metadata = deserializeMetadata(output);
|
|
3383
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3349
3384
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3350
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3385
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3351
3386
|
$fault: "client",
|
|
3352
|
-
$metadata
|
|
3387
|
+
$metadata,
|
|
3353
3388
|
});
|
|
3354
3389
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3355
3390
|
}
|
|
@@ -3374,8 +3409,7 @@ const deserializeAws_json1_1GetMergeConflictsCommandError = async (output, conte
|
|
|
3374
3409
|
body: await parseBody(output.body, context),
|
|
3375
3410
|
};
|
|
3376
3411
|
let response;
|
|
3377
|
-
|
|
3378
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3412
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3379
3413
|
switch (errorCode) {
|
|
3380
3414
|
case "CommitDoesNotExistException":
|
|
3381
3415
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -3445,10 +3479,12 @@ const deserializeAws_json1_1GetMergeConflictsCommandError = async (output, conte
|
|
|
3445
3479
|
throw await deserializeAws_json1_1TipsDivergenceExceededExceptionResponse(parsedOutput, context);
|
|
3446
3480
|
default:
|
|
3447
3481
|
const parsedBody = parsedOutput.body;
|
|
3482
|
+
const $metadata = deserializeMetadata(output);
|
|
3483
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3448
3484
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3449
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3485
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3450
3486
|
$fault: "client",
|
|
3451
|
-
$metadata
|
|
3487
|
+
$metadata,
|
|
3452
3488
|
});
|
|
3453
3489
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3454
3490
|
}
|
|
@@ -3473,8 +3509,7 @@ const deserializeAws_json1_1GetMergeOptionsCommandError = async (output, context
|
|
|
3473
3509
|
body: await parseBody(output.body, context),
|
|
3474
3510
|
};
|
|
3475
3511
|
let response;
|
|
3476
|
-
|
|
3477
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3478
3513
|
switch (errorCode) {
|
|
3479
3514
|
case "CommitDoesNotExistException":
|
|
3480
3515
|
case "com.amazonaws.codecommit#CommitDoesNotExistException":
|
|
@@ -3526,10 +3561,12 @@ const deserializeAws_json1_1GetMergeOptionsCommandError = async (output, context
|
|
|
3526
3561
|
throw await deserializeAws_json1_1TipsDivergenceExceededExceptionResponse(parsedOutput, context);
|
|
3527
3562
|
default:
|
|
3528
3563
|
const parsedBody = parsedOutput.body;
|
|
3564
|
+
const $metadata = deserializeMetadata(output);
|
|
3565
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3529
3566
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3530
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3567
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3531
3568
|
$fault: "client",
|
|
3532
|
-
$metadata
|
|
3569
|
+
$metadata,
|
|
3533
3570
|
});
|
|
3534
3571
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3535
3572
|
}
|
|
@@ -3554,8 +3591,7 @@ const deserializeAws_json1_1GetPullRequestCommandError = async (output, context)
|
|
|
3554
3591
|
body: await parseBody(output.body, context),
|
|
3555
3592
|
};
|
|
3556
3593
|
let response;
|
|
3557
|
-
|
|
3558
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3594
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3559
3595
|
switch (errorCode) {
|
|
3560
3596
|
case "EncryptionIntegrityChecksFailedException":
|
|
3561
3597
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -3583,10 +3619,12 @@ const deserializeAws_json1_1GetPullRequestCommandError = async (output, context)
|
|
|
3583
3619
|
throw await deserializeAws_json1_1PullRequestIdRequiredExceptionResponse(parsedOutput, context);
|
|
3584
3620
|
default:
|
|
3585
3621
|
const parsedBody = parsedOutput.body;
|
|
3622
|
+
const $metadata = deserializeMetadata(output);
|
|
3623
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3586
3624
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3587
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3625
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3588
3626
|
$fault: "client",
|
|
3589
|
-
$metadata
|
|
3627
|
+
$metadata,
|
|
3590
3628
|
});
|
|
3591
3629
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3592
3630
|
}
|
|
@@ -3611,8 +3649,7 @@ const deserializeAws_json1_1GetPullRequestApprovalStatesCommandError = async (ou
|
|
|
3611
3649
|
body: await parseBody(output.body, context),
|
|
3612
3650
|
};
|
|
3613
3651
|
let response;
|
|
3614
|
-
|
|
3615
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3652
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3616
3653
|
switch (errorCode) {
|
|
3617
3654
|
case "EncryptionIntegrityChecksFailedException":
|
|
3618
3655
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -3646,10 +3683,12 @@ const deserializeAws_json1_1GetPullRequestApprovalStatesCommandError = async (ou
|
|
|
3646
3683
|
throw await deserializeAws_json1_1RevisionIdRequiredExceptionResponse(parsedOutput, context);
|
|
3647
3684
|
default:
|
|
3648
3685
|
const parsedBody = parsedOutput.body;
|
|
3686
|
+
const $metadata = deserializeMetadata(output);
|
|
3687
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3649
3688
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3650
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3689
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3651
3690
|
$fault: "client",
|
|
3652
|
-
$metadata
|
|
3691
|
+
$metadata,
|
|
3653
3692
|
});
|
|
3654
3693
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3655
3694
|
}
|
|
@@ -3674,8 +3713,7 @@ const deserializeAws_json1_1GetPullRequestOverrideStateCommandError = async (out
|
|
|
3674
3713
|
body: await parseBody(output.body, context),
|
|
3675
3714
|
};
|
|
3676
3715
|
let response;
|
|
3677
|
-
|
|
3678
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3679
3717
|
switch (errorCode) {
|
|
3680
3718
|
case "EncryptionIntegrityChecksFailedException":
|
|
3681
3719
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -3709,10 +3747,12 @@ const deserializeAws_json1_1GetPullRequestOverrideStateCommandError = async (out
|
|
|
3709
3747
|
throw await deserializeAws_json1_1RevisionIdRequiredExceptionResponse(parsedOutput, context);
|
|
3710
3748
|
default:
|
|
3711
3749
|
const parsedBody = parsedOutput.body;
|
|
3750
|
+
const $metadata = deserializeMetadata(output);
|
|
3751
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3712
3752
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3713
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3753
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3714
3754
|
$fault: "client",
|
|
3715
|
-
$metadata
|
|
3755
|
+
$metadata,
|
|
3716
3756
|
});
|
|
3717
3757
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3718
3758
|
}
|
|
@@ -3737,8 +3777,7 @@ const deserializeAws_json1_1GetRepositoryCommandError = async (output, context)
|
|
|
3737
3777
|
body: await parseBody(output.body, context),
|
|
3738
3778
|
};
|
|
3739
3779
|
let response;
|
|
3740
|
-
|
|
3741
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3780
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3742
3781
|
switch (errorCode) {
|
|
3743
3782
|
case "EncryptionIntegrityChecksFailedException":
|
|
3744
3783
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -3766,10 +3805,12 @@ const deserializeAws_json1_1GetRepositoryCommandError = async (output, context)
|
|
|
3766
3805
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
3767
3806
|
default:
|
|
3768
3807
|
const parsedBody = parsedOutput.body;
|
|
3808
|
+
const $metadata = deserializeMetadata(output);
|
|
3809
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3769
3810
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3770
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3811
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3771
3812
|
$fault: "client",
|
|
3772
|
-
$metadata
|
|
3813
|
+
$metadata,
|
|
3773
3814
|
});
|
|
3774
3815
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3775
3816
|
}
|
|
@@ -3794,8 +3835,7 @@ const deserializeAws_json1_1GetRepositoryTriggersCommandError = async (output, c
|
|
|
3794
3835
|
body: await parseBody(output.body, context),
|
|
3795
3836
|
};
|
|
3796
3837
|
let response;
|
|
3797
|
-
|
|
3798
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3838
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3799
3839
|
switch (errorCode) {
|
|
3800
3840
|
case "EncryptionIntegrityChecksFailedException":
|
|
3801
3841
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -3823,10 +3863,12 @@ const deserializeAws_json1_1GetRepositoryTriggersCommandError = async (output, c
|
|
|
3823
3863
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
3824
3864
|
default:
|
|
3825
3865
|
const parsedBody = parsedOutput.body;
|
|
3866
|
+
const $metadata = deserializeMetadata(output);
|
|
3867
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3826
3868
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3827
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3869
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3828
3870
|
$fault: "client",
|
|
3829
|
-
$metadata
|
|
3871
|
+
$metadata,
|
|
3830
3872
|
});
|
|
3831
3873
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3832
3874
|
}
|
|
@@ -3851,8 +3893,7 @@ const deserializeAws_json1_1ListApprovalRuleTemplatesCommandError = async (outpu
|
|
|
3851
3893
|
body: await parseBody(output.body, context),
|
|
3852
3894
|
};
|
|
3853
3895
|
let response;
|
|
3854
|
-
|
|
3855
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3856
3897
|
switch (errorCode) {
|
|
3857
3898
|
case "InvalidContinuationTokenException":
|
|
3858
3899
|
case "com.amazonaws.codecommit#InvalidContinuationTokenException":
|
|
@@ -3862,10 +3903,12 @@ const deserializeAws_json1_1ListApprovalRuleTemplatesCommandError = async (outpu
|
|
|
3862
3903
|
throw await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context);
|
|
3863
3904
|
default:
|
|
3864
3905
|
const parsedBody = parsedOutput.body;
|
|
3906
|
+
const $metadata = deserializeMetadata(output);
|
|
3907
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3865
3908
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3866
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3909
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3867
3910
|
$fault: "client",
|
|
3868
|
-
$metadata
|
|
3911
|
+
$metadata,
|
|
3869
3912
|
});
|
|
3870
3913
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3871
3914
|
}
|
|
@@ -3890,8 +3933,7 @@ const deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryComm
|
|
|
3890
3933
|
body: await parseBody(output.body, context),
|
|
3891
3934
|
};
|
|
3892
3935
|
let response;
|
|
3893
|
-
|
|
3894
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3936
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3895
3937
|
switch (errorCode) {
|
|
3896
3938
|
case "EncryptionIntegrityChecksFailedException":
|
|
3897
3939
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -3925,10 +3967,12 @@ const deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryComm
|
|
|
3925
3967
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
3926
3968
|
default:
|
|
3927
3969
|
const parsedBody = parsedOutput.body;
|
|
3970
|
+
const $metadata = deserializeMetadata(output);
|
|
3971
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3928
3972
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3929
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3973
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3930
3974
|
$fault: "client",
|
|
3931
|
-
$metadata
|
|
3975
|
+
$metadata,
|
|
3932
3976
|
});
|
|
3933
3977
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3934
3978
|
}
|
|
@@ -3953,8 +3997,7 @@ const deserializeAws_json1_1ListBranchesCommandError = async (output, context) =
|
|
|
3953
3997
|
body: await parseBody(output.body, context),
|
|
3954
3998
|
};
|
|
3955
3999
|
let response;
|
|
3956
|
-
|
|
3957
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4000
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3958
4001
|
switch (errorCode) {
|
|
3959
4002
|
case "EncryptionIntegrityChecksFailedException":
|
|
3960
4003
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -3985,10 +4028,12 @@ const deserializeAws_json1_1ListBranchesCommandError = async (output, context) =
|
|
|
3985
4028
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
3986
4029
|
default:
|
|
3987
4030
|
const parsedBody = parsedOutput.body;
|
|
4031
|
+
const $metadata = deserializeMetadata(output);
|
|
4032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3988
4033
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
3989
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3990
4035
|
$fault: "client",
|
|
3991
|
-
$metadata
|
|
4036
|
+
$metadata,
|
|
3992
4037
|
});
|
|
3993
4038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3994
4039
|
}
|
|
@@ -4013,8 +4058,7 @@ const deserializeAws_json1_1ListPullRequestsCommandError = async (output, contex
|
|
|
4013
4058
|
body: await parseBody(output.body, context),
|
|
4014
4059
|
};
|
|
4015
4060
|
let response;
|
|
4016
|
-
|
|
4017
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4018
4062
|
switch (errorCode) {
|
|
4019
4063
|
case "AuthorDoesNotExistException":
|
|
4020
4064
|
case "com.amazonaws.codecommit#AuthorDoesNotExistException":
|
|
@@ -4057,10 +4101,12 @@ const deserializeAws_json1_1ListPullRequestsCommandError = async (output, contex
|
|
|
4057
4101
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
4058
4102
|
default:
|
|
4059
4103
|
const parsedBody = parsedOutput.body;
|
|
4104
|
+
const $metadata = deserializeMetadata(output);
|
|
4105
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4060
4106
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
4061
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4107
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4062
4108
|
$fault: "client",
|
|
4063
|
-
$metadata
|
|
4109
|
+
$metadata,
|
|
4064
4110
|
});
|
|
4065
4111
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4066
4112
|
}
|
|
@@ -4085,8 +4131,7 @@ const deserializeAws_json1_1ListRepositoriesCommandError = async (output, contex
|
|
|
4085
4131
|
body: await parseBody(output.body, context),
|
|
4086
4132
|
};
|
|
4087
4133
|
let response;
|
|
4088
|
-
|
|
4089
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4134
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4090
4135
|
switch (errorCode) {
|
|
4091
4136
|
case "InvalidContinuationTokenException":
|
|
4092
4137
|
case "com.amazonaws.codecommit#InvalidContinuationTokenException":
|
|
@@ -4099,10 +4144,12 @@ const deserializeAws_json1_1ListRepositoriesCommandError = async (output, contex
|
|
|
4099
4144
|
throw await deserializeAws_json1_1InvalidSortByExceptionResponse(parsedOutput, context);
|
|
4100
4145
|
default:
|
|
4101
4146
|
const parsedBody = parsedOutput.body;
|
|
4147
|
+
const $metadata = deserializeMetadata(output);
|
|
4148
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4102
4149
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
4103
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4150
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4104
4151
|
$fault: "client",
|
|
4105
|
-
$metadata
|
|
4152
|
+
$metadata,
|
|
4106
4153
|
});
|
|
4107
4154
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4108
4155
|
}
|
|
@@ -4127,8 +4174,7 @@ const deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateCommandError
|
|
|
4127
4174
|
body: await parseBody(output.body, context),
|
|
4128
4175
|
};
|
|
4129
4176
|
let response;
|
|
4130
|
-
|
|
4131
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4177
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4132
4178
|
switch (errorCode) {
|
|
4133
4179
|
case "ApprovalRuleTemplateDoesNotExistException":
|
|
4134
4180
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateDoesNotExistException":
|
|
@@ -4162,10 +4208,12 @@ const deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateCommandError
|
|
|
4162
4208
|
throw await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context);
|
|
4163
4209
|
default:
|
|
4164
4210
|
const parsedBody = parsedOutput.body;
|
|
4211
|
+
const $metadata = deserializeMetadata(output);
|
|
4212
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4165
4213
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
4166
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4214
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4167
4215
|
$fault: "client",
|
|
4168
|
-
$metadata
|
|
4216
|
+
$metadata,
|
|
4169
4217
|
});
|
|
4170
4218
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4171
4219
|
}
|
|
@@ -4190,8 +4238,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
4190
4238
|
body: await parseBody(output.body, context),
|
|
4191
4239
|
};
|
|
4192
4240
|
let response;
|
|
4193
|
-
|
|
4194
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4241
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4195
4242
|
switch (errorCode) {
|
|
4196
4243
|
case "InvalidRepositoryNameException":
|
|
4197
4244
|
case "com.amazonaws.codecommit#InvalidRepositoryNameException":
|
|
@@ -4207,10 +4254,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
4207
4254
|
throw await deserializeAws_json1_1ResourceArnRequiredExceptionResponse(parsedOutput, context);
|
|
4208
4255
|
default:
|
|
4209
4256
|
const parsedBody = parsedOutput.body;
|
|
4257
|
+
const $metadata = deserializeMetadata(output);
|
|
4258
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4210
4259
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
4211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4260
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4212
4261
|
$fault: "client",
|
|
4213
|
-
$metadata
|
|
4262
|
+
$metadata,
|
|
4214
4263
|
});
|
|
4215
4264
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4216
4265
|
}
|
|
@@ -4235,8 +4284,7 @@ const deserializeAws_json1_1MergeBranchesByFastForwardCommandError = async (outp
|
|
|
4235
4284
|
body: await parseBody(output.body, context),
|
|
4236
4285
|
};
|
|
4237
4286
|
let response;
|
|
4238
|
-
|
|
4239
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4287
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4240
4288
|
switch (errorCode) {
|
|
4241
4289
|
case "BranchDoesNotExistException":
|
|
4242
4290
|
case "com.amazonaws.codecommit#BranchDoesNotExistException":
|
|
@@ -4297,10 +4345,12 @@ const deserializeAws_json1_1MergeBranchesByFastForwardCommandError = async (outp
|
|
|
4297
4345
|
throw await deserializeAws_json1_1TipsDivergenceExceededExceptionResponse(parsedOutput, context);
|
|
4298
4346
|
default:
|
|
4299
4347
|
const parsedBody = parsedOutput.body;
|
|
4348
|
+
const $metadata = deserializeMetadata(output);
|
|
4349
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4300
4350
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
4301
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4302
4352
|
$fault: "client",
|
|
4303
|
-
$metadata
|
|
4353
|
+
$metadata,
|
|
4304
4354
|
});
|
|
4305
4355
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4306
4356
|
}
|
|
@@ -4325,8 +4375,7 @@ const deserializeAws_json1_1MergeBranchesBySquashCommandError = async (output, c
|
|
|
4325
4375
|
body: await parseBody(output.body, context),
|
|
4326
4376
|
};
|
|
4327
4377
|
let response;
|
|
4328
|
-
|
|
4329
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4330
4379
|
switch (errorCode) {
|
|
4331
4380
|
case "BranchDoesNotExistException":
|
|
4332
4381
|
case "com.amazonaws.codecommit#BranchDoesNotExistException":
|
|
@@ -4447,10 +4496,12 @@ const deserializeAws_json1_1MergeBranchesBySquashCommandError = async (output, c
|
|
|
4447
4496
|
throw await deserializeAws_json1_1TipsDivergenceExceededExceptionResponse(parsedOutput, context);
|
|
4448
4497
|
default:
|
|
4449
4498
|
const parsedBody = parsedOutput.body;
|
|
4499
|
+
const $metadata = deserializeMetadata(output);
|
|
4500
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4450
4501
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
4451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4502
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4452
4503
|
$fault: "client",
|
|
4453
|
-
$metadata
|
|
4504
|
+
$metadata,
|
|
4454
4505
|
});
|
|
4455
4506
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4456
4507
|
}
|
|
@@ -4475,8 +4526,7 @@ const deserializeAws_json1_1MergeBranchesByThreeWayCommandError = async (output,
|
|
|
4475
4526
|
body: await parseBody(output.body, context),
|
|
4476
4527
|
};
|
|
4477
4528
|
let response;
|
|
4478
|
-
|
|
4479
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4529
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4480
4530
|
switch (errorCode) {
|
|
4481
4531
|
case "BranchDoesNotExistException":
|
|
4482
4532
|
case "com.amazonaws.codecommit#BranchDoesNotExistException":
|
|
@@ -4597,10 +4647,12 @@ const deserializeAws_json1_1MergeBranchesByThreeWayCommandError = async (output,
|
|
|
4597
4647
|
throw await deserializeAws_json1_1TipsDivergenceExceededExceptionResponse(parsedOutput, context);
|
|
4598
4648
|
default:
|
|
4599
4649
|
const parsedBody = parsedOutput.body;
|
|
4650
|
+
const $metadata = deserializeMetadata(output);
|
|
4651
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4600
4652
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
4601
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4653
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4602
4654
|
$fault: "client",
|
|
4603
|
-
$metadata
|
|
4655
|
+
$metadata,
|
|
4604
4656
|
});
|
|
4605
4657
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4606
4658
|
}
|
|
@@ -4625,8 +4677,7 @@ const deserializeAws_json1_1MergePullRequestByFastForwardCommandError = async (o
|
|
|
4625
4677
|
body: await parseBody(output.body, context),
|
|
4626
4678
|
};
|
|
4627
4679
|
let response;
|
|
4628
|
-
|
|
4629
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4630
4681
|
switch (errorCode) {
|
|
4631
4682
|
case "ConcurrentReferenceUpdateException":
|
|
4632
4683
|
case "com.amazonaws.codecommit#ConcurrentReferenceUpdateException":
|
|
@@ -4687,10 +4738,12 @@ const deserializeAws_json1_1MergePullRequestByFastForwardCommandError = async (o
|
|
|
4687
4738
|
throw await deserializeAws_json1_1TipOfSourceReferenceIsDifferentExceptionResponse(parsedOutput, context);
|
|
4688
4739
|
default:
|
|
4689
4740
|
const parsedBody = parsedOutput.body;
|
|
4741
|
+
const $metadata = deserializeMetadata(output);
|
|
4742
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4690
4743
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
4691
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4744
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4692
4745
|
$fault: "client",
|
|
4693
|
-
$metadata
|
|
4746
|
+
$metadata,
|
|
4694
4747
|
});
|
|
4695
4748
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4696
4749
|
}
|
|
@@ -4715,8 +4768,7 @@ const deserializeAws_json1_1MergePullRequestBySquashCommandError = async (output
|
|
|
4715
4768
|
body: await parseBody(output.body, context),
|
|
4716
4769
|
};
|
|
4717
4770
|
let response;
|
|
4718
|
-
|
|
4719
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4771
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4720
4772
|
switch (errorCode) {
|
|
4721
4773
|
case "CommitMessageLengthExceededException":
|
|
4722
4774
|
case "com.amazonaws.codecommit#CommitMessageLengthExceededException":
|
|
@@ -4834,10 +4886,12 @@ const deserializeAws_json1_1MergePullRequestBySquashCommandError = async (output
|
|
|
4834
4886
|
throw await deserializeAws_json1_1TipsDivergenceExceededExceptionResponse(parsedOutput, context);
|
|
4835
4887
|
default:
|
|
4836
4888
|
const parsedBody = parsedOutput.body;
|
|
4889
|
+
const $metadata = deserializeMetadata(output);
|
|
4890
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4837
4891
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
4838
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4892
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4839
4893
|
$fault: "client",
|
|
4840
|
-
$metadata
|
|
4894
|
+
$metadata,
|
|
4841
4895
|
});
|
|
4842
4896
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4843
4897
|
}
|
|
@@ -4862,8 +4916,7 @@ const deserializeAws_json1_1MergePullRequestByThreeWayCommandError = async (outp
|
|
|
4862
4916
|
body: await parseBody(output.body, context),
|
|
4863
4917
|
};
|
|
4864
4918
|
let response;
|
|
4865
|
-
|
|
4866
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4919
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4867
4920
|
switch (errorCode) {
|
|
4868
4921
|
case "CommitMessageLengthExceededException":
|
|
4869
4922
|
case "com.amazonaws.codecommit#CommitMessageLengthExceededException":
|
|
@@ -4981,10 +5034,12 @@ const deserializeAws_json1_1MergePullRequestByThreeWayCommandError = async (outp
|
|
|
4981
5034
|
throw await deserializeAws_json1_1TipsDivergenceExceededExceptionResponse(parsedOutput, context);
|
|
4982
5035
|
default:
|
|
4983
5036
|
const parsedBody = parsedOutput.body;
|
|
5037
|
+
const $metadata = deserializeMetadata(output);
|
|
5038
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4984
5039
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
4985
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5040
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4986
5041
|
$fault: "client",
|
|
4987
|
-
$metadata
|
|
5042
|
+
$metadata,
|
|
4988
5043
|
});
|
|
4989
5044
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4990
5045
|
}
|
|
@@ -5006,8 +5061,7 @@ const deserializeAws_json1_1OverridePullRequestApprovalRulesCommandError = async
|
|
|
5006
5061
|
body: await parseBody(output.body, context),
|
|
5007
5062
|
};
|
|
5008
5063
|
let response;
|
|
5009
|
-
|
|
5010
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5064
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5011
5065
|
switch (errorCode) {
|
|
5012
5066
|
case "EncryptionIntegrityChecksFailedException":
|
|
5013
5067
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -5056,10 +5110,12 @@ const deserializeAws_json1_1OverridePullRequestApprovalRulesCommandError = async
|
|
|
5056
5110
|
throw await deserializeAws_json1_1RevisionNotCurrentExceptionResponse(parsedOutput, context);
|
|
5057
5111
|
default:
|
|
5058
5112
|
const parsedBody = parsedOutput.body;
|
|
5113
|
+
const $metadata = deserializeMetadata(output);
|
|
5114
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5059
5115
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5060
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5116
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5061
5117
|
$fault: "client",
|
|
5062
|
-
$metadata
|
|
5118
|
+
$metadata,
|
|
5063
5119
|
});
|
|
5064
5120
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5065
5121
|
}
|
|
@@ -5084,8 +5140,7 @@ const deserializeAws_json1_1PostCommentForComparedCommitCommandError = async (ou
|
|
|
5084
5140
|
body: await parseBody(output.body, context),
|
|
5085
5141
|
};
|
|
5086
5142
|
let response;
|
|
5087
|
-
|
|
5088
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5143
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5089
5144
|
switch (errorCode) {
|
|
5090
5145
|
case "BeforeCommitIdAndAfterCommitIdAreSameException":
|
|
5091
5146
|
case "com.amazonaws.codecommit#BeforeCommitIdAndAfterCommitIdAreSameException":
|
|
@@ -5158,10 +5213,12 @@ const deserializeAws_json1_1PostCommentForComparedCommitCommandError = async (ou
|
|
|
5158
5213
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
5159
5214
|
default:
|
|
5160
5215
|
const parsedBody = parsedOutput.body;
|
|
5216
|
+
const $metadata = deserializeMetadata(output);
|
|
5217
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5161
5218
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5162
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5219
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5163
5220
|
$fault: "client",
|
|
5164
|
-
$metadata
|
|
5221
|
+
$metadata,
|
|
5165
5222
|
});
|
|
5166
5223
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5167
5224
|
}
|
|
@@ -5186,8 +5243,7 @@ const deserializeAws_json1_1PostCommentForPullRequestCommandError = async (outpu
|
|
|
5186
5243
|
body: await parseBody(output.body, context),
|
|
5187
5244
|
};
|
|
5188
5245
|
let response;
|
|
5189
|
-
|
|
5190
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5246
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5191
5247
|
switch (errorCode) {
|
|
5192
5248
|
case "BeforeCommitIdAndAfterCommitIdAreSameException":
|
|
5193
5249
|
case "com.amazonaws.codecommit#BeforeCommitIdAndAfterCommitIdAreSameException":
|
|
@@ -5272,10 +5328,12 @@ const deserializeAws_json1_1PostCommentForPullRequestCommandError = async (outpu
|
|
|
5272
5328
|
throw await deserializeAws_json1_1RepositoryNotAssociatedWithPullRequestExceptionResponse(parsedOutput, context);
|
|
5273
5329
|
default:
|
|
5274
5330
|
const parsedBody = parsedOutput.body;
|
|
5331
|
+
const $metadata = deserializeMetadata(output);
|
|
5332
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5275
5333
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5276
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5334
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5277
5335
|
$fault: "client",
|
|
5278
|
-
$metadata
|
|
5336
|
+
$metadata,
|
|
5279
5337
|
});
|
|
5280
5338
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5281
5339
|
}
|
|
@@ -5300,8 +5358,7 @@ const deserializeAws_json1_1PostCommentReplyCommandError = async (output, contex
|
|
|
5300
5358
|
body: await parseBody(output.body, context),
|
|
5301
5359
|
};
|
|
5302
5360
|
let response;
|
|
5303
|
-
|
|
5304
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5361
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5305
5362
|
switch (errorCode) {
|
|
5306
5363
|
case "ClientRequestTokenRequiredException":
|
|
5307
5364
|
case "com.amazonaws.codecommit#ClientRequestTokenRequiredException":
|
|
@@ -5329,10 +5386,12 @@ const deserializeAws_json1_1PostCommentReplyCommandError = async (output, contex
|
|
|
5329
5386
|
throw await deserializeAws_json1_1InvalidCommentIdExceptionResponse(parsedOutput, context);
|
|
5330
5387
|
default:
|
|
5331
5388
|
const parsedBody = parsedOutput.body;
|
|
5389
|
+
const $metadata = deserializeMetadata(output);
|
|
5390
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5332
5391
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5333
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5392
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5334
5393
|
$fault: "client",
|
|
5335
|
-
$metadata
|
|
5394
|
+
$metadata,
|
|
5336
5395
|
});
|
|
5337
5396
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5338
5397
|
}
|
|
@@ -5354,8 +5413,7 @@ const deserializeAws_json1_1PutCommentReactionCommandError = async (output, cont
|
|
|
5354
5413
|
body: await parseBody(output.body, context),
|
|
5355
5414
|
};
|
|
5356
5415
|
let response;
|
|
5357
|
-
|
|
5358
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5359
5417
|
switch (errorCode) {
|
|
5360
5418
|
case "CommentDeletedException":
|
|
5361
5419
|
case "com.amazonaws.codecommit#CommentDeletedException":
|
|
@@ -5380,10 +5438,12 @@ const deserializeAws_json1_1PutCommentReactionCommandError = async (output, cont
|
|
|
5380
5438
|
throw await deserializeAws_json1_1ReactionValueRequiredExceptionResponse(parsedOutput, context);
|
|
5381
5439
|
default:
|
|
5382
5440
|
const parsedBody = parsedOutput.body;
|
|
5441
|
+
const $metadata = deserializeMetadata(output);
|
|
5442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5383
5443
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5384
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5385
5445
|
$fault: "client",
|
|
5386
|
-
$metadata
|
|
5446
|
+
$metadata,
|
|
5387
5447
|
});
|
|
5388
5448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5389
5449
|
}
|
|
@@ -5408,8 +5468,7 @@ const deserializeAws_json1_1PutFileCommandError = async (output, context) => {
|
|
|
5408
5468
|
body: await parseBody(output.body, context),
|
|
5409
5469
|
};
|
|
5410
5470
|
let response;
|
|
5411
|
-
|
|
5412
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5471
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5413
5472
|
switch (errorCode) {
|
|
5414
5473
|
case "BranchDoesNotExistException":
|
|
5415
5474
|
case "com.amazonaws.codecommit#BranchDoesNotExistException":
|
|
@@ -5503,10 +5562,12 @@ const deserializeAws_json1_1PutFileCommandError = async (output, context) => {
|
|
|
5503
5562
|
throw await deserializeAws_json1_1SameFileContentExceptionResponse(parsedOutput, context);
|
|
5504
5563
|
default:
|
|
5505
5564
|
const parsedBody = parsedOutput.body;
|
|
5565
|
+
const $metadata = deserializeMetadata(output);
|
|
5566
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5506
5567
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5507
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5568
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5508
5569
|
$fault: "client",
|
|
5509
|
-
$metadata
|
|
5570
|
+
$metadata,
|
|
5510
5571
|
});
|
|
5511
5572
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5512
5573
|
}
|
|
@@ -5531,8 +5592,7 @@ const deserializeAws_json1_1PutRepositoryTriggersCommandError = async (output, c
|
|
|
5531
5592
|
body: await parseBody(output.body, context),
|
|
5532
5593
|
};
|
|
5533
5594
|
let response;
|
|
5534
|
-
|
|
5535
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5536
5596
|
switch (errorCode) {
|
|
5537
5597
|
case "EncryptionIntegrityChecksFailedException":
|
|
5538
5598
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -5599,10 +5659,12 @@ const deserializeAws_json1_1PutRepositoryTriggersCommandError = async (output, c
|
|
|
5599
5659
|
throw await deserializeAws_json1_1RepositoryTriggersListRequiredExceptionResponse(parsedOutput, context);
|
|
5600
5660
|
default:
|
|
5601
5661
|
const parsedBody = parsedOutput.body;
|
|
5662
|
+
const $metadata = deserializeMetadata(output);
|
|
5663
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5602
5664
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5603
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5665
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5604
5666
|
$fault: "client",
|
|
5605
|
-
$metadata
|
|
5667
|
+
$metadata,
|
|
5606
5668
|
});
|
|
5607
5669
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5608
5670
|
}
|
|
@@ -5624,8 +5686,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
5624
5686
|
body: await parseBody(output.body, context),
|
|
5625
5687
|
};
|
|
5626
5688
|
let response;
|
|
5627
|
-
|
|
5628
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5689
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5629
5690
|
switch (errorCode) {
|
|
5630
5691
|
case "InvalidRepositoryNameException":
|
|
5631
5692
|
case "com.amazonaws.codecommit#InvalidRepositoryNameException":
|
|
@@ -5656,10 +5717,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
5656
5717
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
5657
5718
|
default:
|
|
5658
5719
|
const parsedBody = parsedOutput.body;
|
|
5720
|
+
const $metadata = deserializeMetadata(output);
|
|
5721
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5659
5722
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5660
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5723
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5661
5724
|
$fault: "client",
|
|
5662
|
-
$metadata
|
|
5725
|
+
$metadata,
|
|
5663
5726
|
});
|
|
5664
5727
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5665
5728
|
}
|
|
@@ -5684,8 +5747,7 @@ const deserializeAws_json1_1TestRepositoryTriggersCommandError = async (output,
|
|
|
5684
5747
|
body: await parseBody(output.body, context),
|
|
5685
5748
|
};
|
|
5686
5749
|
let response;
|
|
5687
|
-
|
|
5688
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5750
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5689
5751
|
switch (errorCode) {
|
|
5690
5752
|
case "EncryptionIntegrityChecksFailedException":
|
|
5691
5753
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -5752,10 +5814,12 @@ const deserializeAws_json1_1TestRepositoryTriggersCommandError = async (output,
|
|
|
5752
5814
|
throw await deserializeAws_json1_1RepositoryTriggersListRequiredExceptionResponse(parsedOutput, context);
|
|
5753
5815
|
default:
|
|
5754
5816
|
const parsedBody = parsedOutput.body;
|
|
5817
|
+
const $metadata = deserializeMetadata(output);
|
|
5818
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5755
5819
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5756
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5820
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5757
5821
|
$fault: "client",
|
|
5758
|
-
$metadata
|
|
5822
|
+
$metadata,
|
|
5759
5823
|
});
|
|
5760
5824
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5761
5825
|
}
|
|
@@ -5777,8 +5841,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
5777
5841
|
body: await parseBody(output.body, context),
|
|
5778
5842
|
};
|
|
5779
5843
|
let response;
|
|
5780
|
-
|
|
5781
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5844
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5782
5845
|
switch (errorCode) {
|
|
5783
5846
|
case "InvalidRepositoryNameException":
|
|
5784
5847
|
case "com.amazonaws.codecommit#InvalidRepositoryNameException":
|
|
@@ -5809,10 +5872,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
5809
5872
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
5810
5873
|
default:
|
|
5811
5874
|
const parsedBody = parsedOutput.body;
|
|
5875
|
+
const $metadata = deserializeMetadata(output);
|
|
5876
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5812
5877
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5813
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5878
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5814
5879
|
$fault: "client",
|
|
5815
|
-
$metadata
|
|
5880
|
+
$metadata,
|
|
5816
5881
|
});
|
|
5817
5882
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5818
5883
|
}
|
|
@@ -5837,8 +5902,7 @@ const deserializeAws_json1_1UpdateApprovalRuleTemplateContentCommandError = asyn
|
|
|
5837
5902
|
body: await parseBody(output.body, context),
|
|
5838
5903
|
};
|
|
5839
5904
|
let response;
|
|
5840
|
-
|
|
5841
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5905
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5842
5906
|
switch (errorCode) {
|
|
5843
5907
|
case "ApprovalRuleTemplateContentRequiredException":
|
|
5844
5908
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateContentRequiredException":
|
|
@@ -5860,10 +5924,12 @@ const deserializeAws_json1_1UpdateApprovalRuleTemplateContentCommandError = asyn
|
|
|
5860
5924
|
throw await deserializeAws_json1_1InvalidRuleContentSha256ExceptionResponse(parsedOutput, context);
|
|
5861
5925
|
default:
|
|
5862
5926
|
const parsedBody = parsedOutput.body;
|
|
5927
|
+
const $metadata = deserializeMetadata(output);
|
|
5928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5863
5929
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5864
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5865
5931
|
$fault: "client",
|
|
5866
|
-
$metadata
|
|
5932
|
+
$metadata,
|
|
5867
5933
|
});
|
|
5868
5934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5869
5935
|
}
|
|
@@ -5888,8 +5954,7 @@ const deserializeAws_json1_1UpdateApprovalRuleTemplateDescriptionCommandError =
|
|
|
5888
5954
|
body: await parseBody(output.body, context),
|
|
5889
5955
|
};
|
|
5890
5956
|
let response;
|
|
5891
|
-
|
|
5892
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5893
5958
|
switch (errorCode) {
|
|
5894
5959
|
case "ApprovalRuleTemplateDoesNotExistException":
|
|
5895
5960
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateDoesNotExistException":
|
|
@@ -5905,10 +5970,12 @@ const deserializeAws_json1_1UpdateApprovalRuleTemplateDescriptionCommandError =
|
|
|
5905
5970
|
throw await deserializeAws_json1_1InvalidApprovalRuleTemplateNameExceptionResponse(parsedOutput, context);
|
|
5906
5971
|
default:
|
|
5907
5972
|
const parsedBody = parsedOutput.body;
|
|
5973
|
+
const $metadata = deserializeMetadata(output);
|
|
5974
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5908
5975
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5909
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5976
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5910
5977
|
$fault: "client",
|
|
5911
|
-
$metadata
|
|
5978
|
+
$metadata,
|
|
5912
5979
|
});
|
|
5913
5980
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5914
5981
|
}
|
|
@@ -5933,8 +6000,7 @@ const deserializeAws_json1_1UpdateApprovalRuleTemplateNameCommandError = async (
|
|
|
5933
6000
|
body: await parseBody(output.body, context),
|
|
5934
6001
|
};
|
|
5935
6002
|
let response;
|
|
5936
|
-
|
|
5937
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5938
6004
|
switch (errorCode) {
|
|
5939
6005
|
case "ApprovalRuleTemplateDoesNotExistException":
|
|
5940
6006
|
case "com.amazonaws.codecommit#ApprovalRuleTemplateDoesNotExistException":
|
|
@@ -5950,10 +6016,12 @@ const deserializeAws_json1_1UpdateApprovalRuleTemplateNameCommandError = async (
|
|
|
5950
6016
|
throw await deserializeAws_json1_1InvalidApprovalRuleTemplateNameExceptionResponse(parsedOutput, context);
|
|
5951
6017
|
default:
|
|
5952
6018
|
const parsedBody = parsedOutput.body;
|
|
6019
|
+
const $metadata = deserializeMetadata(output);
|
|
6020
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5953
6021
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
5954
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6022
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5955
6023
|
$fault: "client",
|
|
5956
|
-
$metadata
|
|
6024
|
+
$metadata,
|
|
5957
6025
|
});
|
|
5958
6026
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5959
6027
|
}
|
|
@@ -5978,8 +6046,7 @@ const deserializeAws_json1_1UpdateCommentCommandError = async (output, context)
|
|
|
5978
6046
|
body: await parseBody(output.body, context),
|
|
5979
6047
|
};
|
|
5980
6048
|
let response;
|
|
5981
|
-
|
|
5982
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6049
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5983
6050
|
switch (errorCode) {
|
|
5984
6051
|
case "CommentContentRequiredException":
|
|
5985
6052
|
case "com.amazonaws.codecommit#CommentContentRequiredException":
|
|
@@ -6004,10 +6071,12 @@ const deserializeAws_json1_1UpdateCommentCommandError = async (output, context)
|
|
|
6004
6071
|
throw await deserializeAws_json1_1InvalidCommentIdExceptionResponse(parsedOutput, context);
|
|
6005
6072
|
default:
|
|
6006
6073
|
const parsedBody = parsedOutput.body;
|
|
6074
|
+
const $metadata = deserializeMetadata(output);
|
|
6075
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6007
6076
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
6008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6077
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6009
6078
|
$fault: "client",
|
|
6010
|
-
$metadata
|
|
6079
|
+
$metadata,
|
|
6011
6080
|
});
|
|
6012
6081
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6013
6082
|
}
|
|
@@ -6029,8 +6098,7 @@ const deserializeAws_json1_1UpdateDefaultBranchCommandError = async (output, con
|
|
|
6029
6098
|
body: await parseBody(output.body, context),
|
|
6030
6099
|
};
|
|
6031
6100
|
let response;
|
|
6032
|
-
|
|
6033
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6101
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6034
6102
|
switch (errorCode) {
|
|
6035
6103
|
case "BranchDoesNotExistException":
|
|
6036
6104
|
case "com.amazonaws.codecommit#BranchDoesNotExistException":
|
|
@@ -6067,10 +6135,12 @@ const deserializeAws_json1_1UpdateDefaultBranchCommandError = async (output, con
|
|
|
6067
6135
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
6068
6136
|
default:
|
|
6069
6137
|
const parsedBody = parsedOutput.body;
|
|
6138
|
+
const $metadata = deserializeMetadata(output);
|
|
6139
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6070
6140
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
6071
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6141
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6072
6142
|
$fault: "client",
|
|
6073
|
-
$metadata
|
|
6143
|
+
$metadata,
|
|
6074
6144
|
});
|
|
6075
6145
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6076
6146
|
}
|
|
@@ -6095,8 +6165,7 @@ const deserializeAws_json1_1UpdatePullRequestApprovalRuleContentCommandError = a
|
|
|
6095
6165
|
body: await parseBody(output.body, context),
|
|
6096
6166
|
};
|
|
6097
6167
|
let response;
|
|
6098
|
-
|
|
6099
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6168
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6100
6169
|
switch (errorCode) {
|
|
6101
6170
|
case "ApprovalRuleContentRequiredException":
|
|
6102
6171
|
case "com.amazonaws.codecommit#ApprovalRuleContentRequiredException":
|
|
@@ -6148,10 +6217,12 @@ const deserializeAws_json1_1UpdatePullRequestApprovalRuleContentCommandError = a
|
|
|
6148
6217
|
throw await deserializeAws_json1_1PullRequestIdRequiredExceptionResponse(parsedOutput, context);
|
|
6149
6218
|
default:
|
|
6150
6219
|
const parsedBody = parsedOutput.body;
|
|
6220
|
+
const $metadata = deserializeMetadata(output);
|
|
6221
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6151
6222
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
6152
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6223
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6153
6224
|
$fault: "client",
|
|
6154
|
-
$metadata
|
|
6225
|
+
$metadata,
|
|
6155
6226
|
});
|
|
6156
6227
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6157
6228
|
}
|
|
@@ -6173,8 +6244,7 @@ const deserializeAws_json1_1UpdatePullRequestApprovalStateCommandError = async (
|
|
|
6173
6244
|
body: await parseBody(output.body, context),
|
|
6174
6245
|
};
|
|
6175
6246
|
let response;
|
|
6176
|
-
|
|
6177
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6247
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6178
6248
|
switch (errorCode) {
|
|
6179
6249
|
case "ApprovalStateRequiredException":
|
|
6180
6250
|
case "com.amazonaws.codecommit#ApprovalStateRequiredException":
|
|
@@ -6226,10 +6296,12 @@ const deserializeAws_json1_1UpdatePullRequestApprovalStateCommandError = async (
|
|
|
6226
6296
|
throw await deserializeAws_json1_1RevisionNotCurrentExceptionResponse(parsedOutput, context);
|
|
6227
6297
|
default:
|
|
6228
6298
|
const parsedBody = parsedOutput.body;
|
|
6299
|
+
const $metadata = deserializeMetadata(output);
|
|
6300
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6229
6301
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
6230
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6302
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6231
6303
|
$fault: "client",
|
|
6232
|
-
$metadata
|
|
6304
|
+
$metadata,
|
|
6233
6305
|
});
|
|
6234
6306
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6235
6307
|
}
|
|
@@ -6254,8 +6326,7 @@ const deserializeAws_json1_1UpdatePullRequestDescriptionCommandError = async (ou
|
|
|
6254
6326
|
body: await parseBody(output.body, context),
|
|
6255
6327
|
};
|
|
6256
6328
|
let response;
|
|
6257
|
-
|
|
6258
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6329
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6259
6330
|
switch (errorCode) {
|
|
6260
6331
|
case "InvalidDescriptionException":
|
|
6261
6332
|
case "com.amazonaws.codecommit#InvalidDescriptionException":
|
|
@@ -6274,10 +6345,12 @@ const deserializeAws_json1_1UpdatePullRequestDescriptionCommandError = async (ou
|
|
|
6274
6345
|
throw await deserializeAws_json1_1PullRequestIdRequiredExceptionResponse(parsedOutput, context);
|
|
6275
6346
|
default:
|
|
6276
6347
|
const parsedBody = parsedOutput.body;
|
|
6348
|
+
const $metadata = deserializeMetadata(output);
|
|
6349
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6277
6350
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
6278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6279
6352
|
$fault: "client",
|
|
6280
|
-
$metadata
|
|
6353
|
+
$metadata,
|
|
6281
6354
|
});
|
|
6282
6355
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6283
6356
|
}
|
|
@@ -6302,8 +6375,7 @@ const deserializeAws_json1_1UpdatePullRequestStatusCommandError = async (output,
|
|
|
6302
6375
|
body: await parseBody(output.body, context),
|
|
6303
6376
|
};
|
|
6304
6377
|
let response;
|
|
6305
|
-
|
|
6306
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6307
6379
|
switch (errorCode) {
|
|
6308
6380
|
case "EncryptionIntegrityChecksFailedException":
|
|
6309
6381
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -6340,10 +6412,12 @@ const deserializeAws_json1_1UpdatePullRequestStatusCommandError = async (output,
|
|
|
6340
6412
|
throw await deserializeAws_json1_1PullRequestStatusRequiredExceptionResponse(parsedOutput, context);
|
|
6341
6413
|
default:
|
|
6342
6414
|
const parsedBody = parsedOutput.body;
|
|
6415
|
+
const $metadata = deserializeMetadata(output);
|
|
6416
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6343
6417
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
6344
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6418
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6345
6419
|
$fault: "client",
|
|
6346
|
-
$metadata
|
|
6420
|
+
$metadata,
|
|
6347
6421
|
});
|
|
6348
6422
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6349
6423
|
}
|
|
@@ -6368,8 +6442,7 @@ const deserializeAws_json1_1UpdatePullRequestTitleCommandError = async (output,
|
|
|
6368
6442
|
body: await parseBody(output.body, context),
|
|
6369
6443
|
};
|
|
6370
6444
|
let response;
|
|
6371
|
-
|
|
6372
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6445
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6373
6446
|
switch (errorCode) {
|
|
6374
6447
|
case "InvalidPullRequestIdException":
|
|
6375
6448
|
case "com.amazonaws.codecommit#InvalidPullRequestIdException":
|
|
@@ -6391,10 +6464,12 @@ const deserializeAws_json1_1UpdatePullRequestTitleCommandError = async (output,
|
|
|
6391
6464
|
throw await deserializeAws_json1_1TitleRequiredExceptionResponse(parsedOutput, context);
|
|
6392
6465
|
default:
|
|
6393
6466
|
const parsedBody = parsedOutput.body;
|
|
6467
|
+
const $metadata = deserializeMetadata(output);
|
|
6468
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6394
6469
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
6395
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6470
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6396
6471
|
$fault: "client",
|
|
6397
|
-
$metadata
|
|
6472
|
+
$metadata,
|
|
6398
6473
|
});
|
|
6399
6474
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6400
6475
|
}
|
|
@@ -6416,8 +6491,7 @@ const deserializeAws_json1_1UpdateRepositoryDescriptionCommandError = async (out
|
|
|
6416
6491
|
body: await parseBody(output.body, context),
|
|
6417
6492
|
};
|
|
6418
6493
|
let response;
|
|
6419
|
-
|
|
6420
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6421
6495
|
switch (errorCode) {
|
|
6422
6496
|
case "EncryptionIntegrityChecksFailedException":
|
|
6423
6497
|
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
@@ -6448,10 +6522,12 @@ const deserializeAws_json1_1UpdateRepositoryDescriptionCommandError = async (out
|
|
|
6448
6522
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
6449
6523
|
default:
|
|
6450
6524
|
const parsedBody = parsedOutput.body;
|
|
6525
|
+
const $metadata = deserializeMetadata(output);
|
|
6526
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6451
6527
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
6452
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6528
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6453
6529
|
$fault: "client",
|
|
6454
|
-
$metadata
|
|
6530
|
+
$metadata,
|
|
6455
6531
|
});
|
|
6456
6532
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6457
6533
|
}
|
|
@@ -6473,8 +6549,7 @@ const deserializeAws_json1_1UpdateRepositoryNameCommandError = async (output, co
|
|
|
6473
6549
|
body: await parseBody(output.body, context),
|
|
6474
6550
|
};
|
|
6475
6551
|
let response;
|
|
6476
|
-
|
|
6477
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6552
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6478
6553
|
switch (errorCode) {
|
|
6479
6554
|
case "InvalidRepositoryNameException":
|
|
6480
6555
|
case "com.amazonaws.codecommit#InvalidRepositoryNameException":
|
|
@@ -6490,10 +6565,12 @@ const deserializeAws_json1_1UpdateRepositoryNameCommandError = async (output, co
|
|
|
6490
6565
|
throw await deserializeAws_json1_1RepositoryNameRequiredExceptionResponse(parsedOutput, context);
|
|
6491
6566
|
default:
|
|
6492
6567
|
const parsedBody = parsedOutput.body;
|
|
6568
|
+
const $metadata = deserializeMetadata(output);
|
|
6569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6493
6570
|
response = new CodeCommitServiceException_1.CodeCommitServiceException({
|
|
6494
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6495
6572
|
$fault: "client",
|
|
6496
|
-
$metadata
|
|
6573
|
+
$metadata,
|
|
6497
6574
|
});
|
|
6498
6575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
6499
6576
|
}
|
|
@@ -8165,65 +8242,49 @@ const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput,
|
|
|
8165
8242
|
};
|
|
8166
8243
|
const serializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryInput = (input, context) => {
|
|
8167
8244
|
return {
|
|
8168
|
-
...(input.approvalRuleTemplateName
|
|
8169
|
-
|
|
8170
|
-
...(input.repositoryName !== undefined &&
|
|
8171
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8245
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8246
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8172
8247
|
};
|
|
8173
8248
|
};
|
|
8174
8249
|
const serializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesInput = (input, context) => {
|
|
8175
8250
|
return {
|
|
8176
|
-
...(input.approvalRuleTemplateName
|
|
8177
|
-
|
|
8178
|
-
...(input.repositoryNames !== undefined &&
|
|
8179
|
-
input.repositoryNames !== null && {
|
|
8251
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8252
|
+
...(input.repositoryNames != null && {
|
|
8180
8253
|
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
8181
8254
|
}),
|
|
8182
8255
|
};
|
|
8183
8256
|
};
|
|
8184
8257
|
const serializeAws_json1_1BatchDescribeMergeConflictsInput = (input, context) => {
|
|
8185
8258
|
return {
|
|
8186
|
-
...(input.conflictDetailLevel
|
|
8187
|
-
|
|
8188
|
-
...(input.
|
|
8189
|
-
|
|
8190
|
-
...(input.
|
|
8191
|
-
|
|
8192
|
-
...(input.
|
|
8193
|
-
|
|
8194
|
-
...(input.
|
|
8195
|
-
|
|
8196
|
-
...(input.maxMergeHunks !== undefined && input.maxMergeHunks !== null && { maxMergeHunks: input.maxMergeHunks }),
|
|
8197
|
-
...(input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption }),
|
|
8198
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
8199
|
-
...(input.repositoryName !== undefined &&
|
|
8200
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8201
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8202
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8259
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8260
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8261
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8262
|
+
...(input.filePaths != null && { filePaths: serializeAws_json1_1FilePaths(input.filePaths, context) }),
|
|
8263
|
+
...(input.maxConflictFiles != null && { maxConflictFiles: input.maxConflictFiles }),
|
|
8264
|
+
...(input.maxMergeHunks != null && { maxMergeHunks: input.maxMergeHunks }),
|
|
8265
|
+
...(input.mergeOption != null && { mergeOption: input.mergeOption }),
|
|
8266
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8267
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8268
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8203
8269
|
};
|
|
8204
8270
|
};
|
|
8205
8271
|
const serializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesInput = (input, context) => {
|
|
8206
8272
|
return {
|
|
8207
|
-
...(input.approvalRuleTemplateName
|
|
8208
|
-
|
|
8209
|
-
...(input.repositoryNames !== undefined &&
|
|
8210
|
-
input.repositoryNames !== null && {
|
|
8273
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8274
|
+
...(input.repositoryNames != null && {
|
|
8211
8275
|
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
8212
8276
|
}),
|
|
8213
8277
|
};
|
|
8214
8278
|
};
|
|
8215
8279
|
const serializeAws_json1_1BatchGetCommitsInput = (input, context) => {
|
|
8216
8280
|
return {
|
|
8217
|
-
...(input.commitIds
|
|
8218
|
-
|
|
8219
|
-
...(input.repositoryName !== undefined &&
|
|
8220
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8281
|
+
...(input.commitIds != null && { commitIds: serializeAws_json1_1CommitIdsInputList(input.commitIds, context) }),
|
|
8282
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8221
8283
|
};
|
|
8222
8284
|
};
|
|
8223
8285
|
const serializeAws_json1_1BatchGetRepositoriesInput = (input, context) => {
|
|
8224
8286
|
return {
|
|
8225
|
-
...(input.repositoryNames
|
|
8226
|
-
input.repositoryNames !== null && {
|
|
8287
|
+
...(input.repositoryNames != null && {
|
|
8227
8288
|
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
8228
8289
|
}),
|
|
8229
8290
|
};
|
|
@@ -8250,128 +8311,107 @@ const serializeAws_json1_1CommitIdsInputList = (input, context) => {
|
|
|
8250
8311
|
};
|
|
8251
8312
|
const serializeAws_json1_1ConflictResolution = (input, context) => {
|
|
8252
8313
|
return {
|
|
8253
|
-
...(input.deleteFiles
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8314
|
+
...(input.deleteFiles != null && {
|
|
8315
|
+
deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context),
|
|
8316
|
+
}),
|
|
8317
|
+
...(input.replaceContents != null && {
|
|
8257
8318
|
replaceContents: serializeAws_json1_1ReplaceContentEntries(input.replaceContents, context),
|
|
8258
8319
|
}),
|
|
8259
|
-
...(input.setFileModes
|
|
8260
|
-
input.setFileModes !== null && {
|
|
8320
|
+
...(input.setFileModes != null && {
|
|
8261
8321
|
setFileModes: serializeAws_json1_1SetFileModeEntries(input.setFileModes, context),
|
|
8262
8322
|
}),
|
|
8263
8323
|
};
|
|
8264
8324
|
};
|
|
8265
8325
|
const serializeAws_json1_1CreateApprovalRuleTemplateInput = (input, context) => {
|
|
8266
8326
|
return {
|
|
8267
|
-
...(input.approvalRuleTemplateContent
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8327
|
+
...(input.approvalRuleTemplateContent != null && {
|
|
8328
|
+
approvalRuleTemplateContent: input.approvalRuleTemplateContent,
|
|
8329
|
+
}),
|
|
8330
|
+
...(input.approvalRuleTemplateDescription != null && {
|
|
8271
8331
|
approvalRuleTemplateDescription: input.approvalRuleTemplateDescription,
|
|
8272
8332
|
}),
|
|
8273
|
-
...(input.approvalRuleTemplateName
|
|
8274
|
-
input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8333
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8275
8334
|
};
|
|
8276
8335
|
};
|
|
8277
8336
|
const serializeAws_json1_1CreateBranchInput = (input, context) => {
|
|
8278
8337
|
return {
|
|
8279
|
-
...(input.branchName
|
|
8280
|
-
...(input.commitId
|
|
8281
|
-
...(input.repositoryName
|
|
8282
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8338
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8339
|
+
...(input.commitId != null && { commitId: input.commitId }),
|
|
8340
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8283
8341
|
};
|
|
8284
8342
|
};
|
|
8285
8343
|
const serializeAws_json1_1CreateCommitInput = (input, context) => {
|
|
8286
8344
|
return {
|
|
8287
|
-
...(input.authorName
|
|
8288
|
-
...(input.branchName
|
|
8289
|
-
...(input.commitMessage
|
|
8290
|
-
...(input.deleteFiles
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
...(input.
|
|
8294
|
-
|
|
8295
|
-
...(input.parentCommitId
|
|
8296
|
-
|
|
8297
|
-
...(input.
|
|
8298
|
-
|
|
8299
|
-
...(input.repositoryName !== undefined &&
|
|
8300
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8301
|
-
...(input.setFileModes !== undefined &&
|
|
8302
|
-
input.setFileModes !== null && {
|
|
8345
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8346
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8347
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8348
|
+
...(input.deleteFiles != null && {
|
|
8349
|
+
deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context),
|
|
8350
|
+
}),
|
|
8351
|
+
...(input.email != null && { email: input.email }),
|
|
8352
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8353
|
+
...(input.parentCommitId != null && { parentCommitId: input.parentCommitId }),
|
|
8354
|
+
...(input.putFiles != null && { putFiles: serializeAws_json1_1PutFileEntries(input.putFiles, context) }),
|
|
8355
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8356
|
+
...(input.setFileModes != null && {
|
|
8303
8357
|
setFileModes: serializeAws_json1_1SetFileModeEntries(input.setFileModes, context),
|
|
8304
8358
|
}),
|
|
8305
8359
|
};
|
|
8306
8360
|
};
|
|
8307
8361
|
const serializeAws_json1_1CreatePullRequestApprovalRuleInput = (input, context) => {
|
|
8308
8362
|
return {
|
|
8309
|
-
...(input.approvalRuleContent
|
|
8310
|
-
|
|
8311
|
-
...(input.
|
|
8312
|
-
input.approvalRuleName !== null && { approvalRuleName: input.approvalRuleName }),
|
|
8313
|
-
...(input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }),
|
|
8363
|
+
...(input.approvalRuleContent != null && { approvalRuleContent: input.approvalRuleContent }),
|
|
8364
|
+
...(input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName }),
|
|
8365
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8314
8366
|
};
|
|
8315
8367
|
};
|
|
8316
8368
|
const serializeAws_json1_1CreatePullRequestInput = (input, context) => {
|
|
8317
8369
|
var _a;
|
|
8318
8370
|
return {
|
|
8319
8371
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
8320
|
-
...(input.description
|
|
8321
|
-
...(input.targets
|
|
8322
|
-
|
|
8323
|
-
...(input.title !== undefined && input.title !== null && { title: input.title }),
|
|
8372
|
+
...(input.description != null && { description: input.description }),
|
|
8373
|
+
...(input.targets != null && { targets: serializeAws_json1_1TargetList(input.targets, context) }),
|
|
8374
|
+
...(input.title != null && { title: input.title }),
|
|
8324
8375
|
};
|
|
8325
8376
|
};
|
|
8326
8377
|
const serializeAws_json1_1CreateRepositoryInput = (input, context) => {
|
|
8327
8378
|
return {
|
|
8328
|
-
...(input.repositoryDescription
|
|
8329
|
-
|
|
8330
|
-
...(input.
|
|
8331
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8332
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }),
|
|
8379
|
+
...(input.repositoryDescription != null && { repositoryDescription: input.repositoryDescription }),
|
|
8380
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8381
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }),
|
|
8333
8382
|
};
|
|
8334
8383
|
};
|
|
8335
8384
|
const serializeAws_json1_1CreateUnreferencedMergeCommitInput = (input, context) => {
|
|
8336
8385
|
return {
|
|
8337
|
-
...(input.authorName
|
|
8338
|
-
...(input.commitMessage
|
|
8339
|
-
...(input.conflictDetailLevel
|
|
8340
|
-
|
|
8341
|
-
...(input.conflictResolution !== undefined &&
|
|
8342
|
-
input.conflictResolution !== null && {
|
|
8386
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8387
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8388
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8389
|
+
...(input.conflictResolution != null && {
|
|
8343
8390
|
conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
|
|
8344
8391
|
}),
|
|
8345
|
-
...(input.conflictResolutionStrategy
|
|
8346
|
-
|
|
8347
|
-
...(input.
|
|
8348
|
-
|
|
8349
|
-
...(input.
|
|
8350
|
-
...(input.
|
|
8351
|
-
|
|
8352
|
-
...(input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption }),
|
|
8353
|
-
...(input.repositoryName !== undefined &&
|
|
8354
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8355
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8356
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8392
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8393
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8394
|
+
...(input.email != null && { email: input.email }),
|
|
8395
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8396
|
+
...(input.mergeOption != null && { mergeOption: input.mergeOption }),
|
|
8397
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8398
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8357
8399
|
};
|
|
8358
8400
|
};
|
|
8359
8401
|
const serializeAws_json1_1DeleteApprovalRuleTemplateInput = (input, context) => {
|
|
8360
8402
|
return {
|
|
8361
|
-
...(input.approvalRuleTemplateName
|
|
8362
|
-
input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8403
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8363
8404
|
};
|
|
8364
8405
|
};
|
|
8365
8406
|
const serializeAws_json1_1DeleteBranchInput = (input, context) => {
|
|
8366
8407
|
return {
|
|
8367
|
-
...(input.branchName
|
|
8368
|
-
...(input.repositoryName
|
|
8369
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8408
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8409
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8370
8410
|
};
|
|
8371
8411
|
};
|
|
8372
8412
|
const serializeAws_json1_1DeleteCommentContentInput = (input, context) => {
|
|
8373
8413
|
return {
|
|
8374
|
-
...(input.commentId
|
|
8414
|
+
...(input.commentId != null && { commentId: input.commentId }),
|
|
8375
8415
|
};
|
|
8376
8416
|
};
|
|
8377
8417
|
const serializeAws_json1_1DeleteFileEntries = (input, context) => {
|
|
@@ -8386,77 +8426,64 @@ const serializeAws_json1_1DeleteFileEntries = (input, context) => {
|
|
|
8386
8426
|
};
|
|
8387
8427
|
const serializeAws_json1_1DeleteFileEntry = (input, context) => {
|
|
8388
8428
|
return {
|
|
8389
|
-
...(input.filePath
|
|
8429
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8390
8430
|
};
|
|
8391
8431
|
};
|
|
8392
8432
|
const serializeAws_json1_1DeleteFileInput = (input, context) => {
|
|
8393
8433
|
return {
|
|
8394
|
-
...(input.branchName
|
|
8395
|
-
...(input.commitMessage
|
|
8396
|
-
...(input.email
|
|
8397
|
-
...(input.filePath
|
|
8398
|
-
...(input.keepEmptyFolders
|
|
8399
|
-
|
|
8400
|
-
...(input.
|
|
8401
|
-
...(input.
|
|
8402
|
-
input.parentCommitId !== null && { parentCommitId: input.parentCommitId }),
|
|
8403
|
-
...(input.repositoryName !== undefined &&
|
|
8404
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8434
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8435
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8436
|
+
...(input.email != null && { email: input.email }),
|
|
8437
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8438
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8439
|
+
...(input.name != null && { name: input.name }),
|
|
8440
|
+
...(input.parentCommitId != null && { parentCommitId: input.parentCommitId }),
|
|
8441
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8405
8442
|
};
|
|
8406
8443
|
};
|
|
8407
8444
|
const serializeAws_json1_1DeletePullRequestApprovalRuleInput = (input, context) => {
|
|
8408
8445
|
return {
|
|
8409
|
-
...(input.approvalRuleName
|
|
8410
|
-
|
|
8411
|
-
...(input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }),
|
|
8446
|
+
...(input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName }),
|
|
8447
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8412
8448
|
};
|
|
8413
8449
|
};
|
|
8414
8450
|
const serializeAws_json1_1DeleteRepositoryInput = (input, context) => {
|
|
8415
8451
|
return {
|
|
8416
|
-
...(input.repositoryName
|
|
8417
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8452
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8418
8453
|
};
|
|
8419
8454
|
};
|
|
8420
8455
|
const serializeAws_json1_1DescribeMergeConflictsInput = (input, context) => {
|
|
8421
8456
|
return {
|
|
8422
|
-
...(input.conflictDetailLevel
|
|
8423
|
-
|
|
8424
|
-
...(input.
|
|
8425
|
-
|
|
8426
|
-
...(input.
|
|
8427
|
-
|
|
8428
|
-
...(input.
|
|
8429
|
-
...(input.
|
|
8430
|
-
...(input.
|
|
8431
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
8432
|
-
...(input.repositoryName !== undefined &&
|
|
8433
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8434
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8435
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8457
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8458
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8459
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8460
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8461
|
+
...(input.maxMergeHunks != null && { maxMergeHunks: input.maxMergeHunks }),
|
|
8462
|
+
...(input.mergeOption != null && { mergeOption: input.mergeOption }),
|
|
8463
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8464
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8465
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8436
8466
|
};
|
|
8437
8467
|
};
|
|
8438
8468
|
const serializeAws_json1_1DescribePullRequestEventsInput = (input, context) => {
|
|
8439
8469
|
return {
|
|
8440
|
-
...(input.actorArn
|
|
8441
|
-
...(input.maxResults
|
|
8442
|
-
...(input.nextToken
|
|
8443
|
-
...(input.pullRequestEventType
|
|
8444
|
-
|
|
8445
|
-
...(input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }),
|
|
8470
|
+
...(input.actorArn != null && { actorArn: input.actorArn }),
|
|
8471
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8472
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8473
|
+
...(input.pullRequestEventType != null && { pullRequestEventType: input.pullRequestEventType }),
|
|
8474
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8446
8475
|
};
|
|
8447
8476
|
};
|
|
8448
8477
|
const serializeAws_json1_1DisassociateApprovalRuleTemplateFromRepositoryInput = (input, context) => {
|
|
8449
8478
|
return {
|
|
8450
|
-
...(input.approvalRuleTemplateName
|
|
8451
|
-
|
|
8452
|
-
...(input.repositoryName !== undefined &&
|
|
8453
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8479
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8480
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8454
8481
|
};
|
|
8455
8482
|
};
|
|
8456
8483
|
const serializeAws_json1_1EvaluatePullRequestApprovalRulesInput = (input, context) => {
|
|
8457
8484
|
return {
|
|
8458
|
-
...(input.pullRequestId
|
|
8459
|
-
...(input.revisionId
|
|
8485
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8486
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
8460
8487
|
};
|
|
8461
8488
|
};
|
|
8462
8489
|
const serializeAws_json1_1FilePaths = (input, context) => {
|
|
@@ -8471,397 +8498,319 @@ const serializeAws_json1_1FilePaths = (input, context) => {
|
|
|
8471
8498
|
};
|
|
8472
8499
|
const serializeAws_json1_1GetApprovalRuleTemplateInput = (input, context) => {
|
|
8473
8500
|
return {
|
|
8474
|
-
...(input.approvalRuleTemplateName
|
|
8475
|
-
input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8501
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8476
8502
|
};
|
|
8477
8503
|
};
|
|
8478
8504
|
const serializeAws_json1_1GetBlobInput = (input, context) => {
|
|
8479
8505
|
return {
|
|
8480
|
-
...(input.blobId
|
|
8481
|
-
...(input.repositoryName
|
|
8482
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8506
|
+
...(input.blobId != null && { blobId: input.blobId }),
|
|
8507
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8483
8508
|
};
|
|
8484
8509
|
};
|
|
8485
8510
|
const serializeAws_json1_1GetBranchInput = (input, context) => {
|
|
8486
8511
|
return {
|
|
8487
|
-
...(input.branchName
|
|
8488
|
-
...(input.repositoryName
|
|
8489
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8512
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8513
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8490
8514
|
};
|
|
8491
8515
|
};
|
|
8492
8516
|
const serializeAws_json1_1GetCommentInput = (input, context) => {
|
|
8493
8517
|
return {
|
|
8494
|
-
...(input.commentId
|
|
8518
|
+
...(input.commentId != null && { commentId: input.commentId }),
|
|
8495
8519
|
};
|
|
8496
8520
|
};
|
|
8497
8521
|
const serializeAws_json1_1GetCommentReactionsInput = (input, context) => {
|
|
8498
8522
|
return {
|
|
8499
|
-
...(input.commentId
|
|
8500
|
-
...(input.maxResults
|
|
8501
|
-
...(input.nextToken
|
|
8502
|
-
...(input.reactionUserArn
|
|
8503
|
-
input.reactionUserArn !== null && { reactionUserArn: input.reactionUserArn }),
|
|
8523
|
+
...(input.commentId != null && { commentId: input.commentId }),
|
|
8524
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8525
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8526
|
+
...(input.reactionUserArn != null && { reactionUserArn: input.reactionUserArn }),
|
|
8504
8527
|
};
|
|
8505
8528
|
};
|
|
8506
8529
|
const serializeAws_json1_1GetCommentsForComparedCommitInput = (input, context) => {
|
|
8507
8530
|
return {
|
|
8508
|
-
...(input.afterCommitId
|
|
8509
|
-
...(input.beforeCommitId
|
|
8510
|
-
|
|
8511
|
-
...(input.
|
|
8512
|
-
...(input.
|
|
8513
|
-
...(input.repositoryName !== undefined &&
|
|
8514
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8531
|
+
...(input.afterCommitId != null && { afterCommitId: input.afterCommitId }),
|
|
8532
|
+
...(input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId }),
|
|
8533
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8534
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8535
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8515
8536
|
};
|
|
8516
8537
|
};
|
|
8517
8538
|
const serializeAws_json1_1GetCommentsForPullRequestInput = (input, context) => {
|
|
8518
8539
|
return {
|
|
8519
|
-
...(input.afterCommitId
|
|
8520
|
-
...(input.beforeCommitId
|
|
8521
|
-
|
|
8522
|
-
...(input.
|
|
8523
|
-
...(input.
|
|
8524
|
-
...(input.
|
|
8525
|
-
...(input.repositoryName !== undefined &&
|
|
8526
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8540
|
+
...(input.afterCommitId != null && { afterCommitId: input.afterCommitId }),
|
|
8541
|
+
...(input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId }),
|
|
8542
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8543
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8544
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8545
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8527
8546
|
};
|
|
8528
8547
|
};
|
|
8529
8548
|
const serializeAws_json1_1GetCommitInput = (input, context) => {
|
|
8530
8549
|
return {
|
|
8531
|
-
...(input.commitId
|
|
8532
|
-
...(input.repositoryName
|
|
8533
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8550
|
+
...(input.commitId != null && { commitId: input.commitId }),
|
|
8551
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8534
8552
|
};
|
|
8535
8553
|
};
|
|
8536
8554
|
const serializeAws_json1_1GetDifferencesInput = (input, context) => {
|
|
8537
8555
|
return {
|
|
8538
|
-
...(input.MaxResults
|
|
8539
|
-
...(input.NextToken
|
|
8540
|
-
...(input.afterCommitSpecifier
|
|
8541
|
-
|
|
8542
|
-
...(input.
|
|
8543
|
-
...(input.
|
|
8544
|
-
|
|
8545
|
-
...(input.beforePath !== undefined && input.beforePath !== null && { beforePath: input.beforePath }),
|
|
8546
|
-
...(input.repositoryName !== undefined &&
|
|
8547
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8556
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
8557
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
8558
|
+
...(input.afterCommitSpecifier != null && { afterCommitSpecifier: input.afterCommitSpecifier }),
|
|
8559
|
+
...(input.afterPath != null && { afterPath: input.afterPath }),
|
|
8560
|
+
...(input.beforeCommitSpecifier != null && { beforeCommitSpecifier: input.beforeCommitSpecifier }),
|
|
8561
|
+
...(input.beforePath != null && { beforePath: input.beforePath }),
|
|
8562
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8548
8563
|
};
|
|
8549
8564
|
};
|
|
8550
8565
|
const serializeAws_json1_1GetFileInput = (input, context) => {
|
|
8551
8566
|
return {
|
|
8552
|
-
...(input.commitSpecifier
|
|
8553
|
-
|
|
8554
|
-
...(input.
|
|
8555
|
-
...(input.repositoryName !== undefined &&
|
|
8556
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8567
|
+
...(input.commitSpecifier != null && { commitSpecifier: input.commitSpecifier }),
|
|
8568
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8569
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8557
8570
|
};
|
|
8558
8571
|
};
|
|
8559
8572
|
const serializeAws_json1_1GetFolderInput = (input, context) => {
|
|
8560
8573
|
return {
|
|
8561
|
-
...(input.commitSpecifier
|
|
8562
|
-
|
|
8563
|
-
...(input.
|
|
8564
|
-
...(input.repositoryName !== undefined &&
|
|
8565
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8574
|
+
...(input.commitSpecifier != null && { commitSpecifier: input.commitSpecifier }),
|
|
8575
|
+
...(input.folderPath != null && { folderPath: input.folderPath }),
|
|
8576
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8566
8577
|
};
|
|
8567
8578
|
};
|
|
8568
8579
|
const serializeAws_json1_1GetMergeCommitInput = (input, context) => {
|
|
8569
8580
|
return {
|
|
8570
|
-
...(input.conflictDetailLevel
|
|
8571
|
-
|
|
8572
|
-
...(input.
|
|
8573
|
-
|
|
8574
|
-
...(input.
|
|
8575
|
-
input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8576
|
-
...(input.repositoryName !== undefined &&
|
|
8577
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8578
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8579
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8581
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8582
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8583
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8584
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8585
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8580
8586
|
};
|
|
8581
8587
|
};
|
|
8582
8588
|
const serializeAws_json1_1GetMergeConflictsInput = (input, context) => {
|
|
8583
8589
|
return {
|
|
8584
|
-
...(input.conflictDetailLevel
|
|
8585
|
-
|
|
8586
|
-
...(input.
|
|
8587
|
-
|
|
8588
|
-
...(input.
|
|
8589
|
-
|
|
8590
|
-
...(input.
|
|
8591
|
-
|
|
8592
|
-
...(input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption }),
|
|
8593
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
8594
|
-
...(input.repositoryName !== undefined &&
|
|
8595
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8596
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8597
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8590
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8591
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8592
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8593
|
+
...(input.maxConflictFiles != null && { maxConflictFiles: input.maxConflictFiles }),
|
|
8594
|
+
...(input.mergeOption != null && { mergeOption: input.mergeOption }),
|
|
8595
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8596
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8597
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8598
8598
|
};
|
|
8599
8599
|
};
|
|
8600
8600
|
const serializeAws_json1_1GetMergeOptionsInput = (input, context) => {
|
|
8601
8601
|
return {
|
|
8602
|
-
...(input.conflictDetailLevel
|
|
8603
|
-
|
|
8604
|
-
...(input.
|
|
8605
|
-
|
|
8606
|
-
...(input.
|
|
8607
|
-
input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8608
|
-
...(input.repositoryName !== undefined &&
|
|
8609
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8610
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8611
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8602
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8603
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8604
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8605
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8606
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8612
8607
|
};
|
|
8613
8608
|
};
|
|
8614
8609
|
const serializeAws_json1_1GetPullRequestApprovalStatesInput = (input, context) => {
|
|
8615
8610
|
return {
|
|
8616
|
-
...(input.pullRequestId
|
|
8617
|
-
...(input.revisionId
|
|
8611
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8612
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
8618
8613
|
};
|
|
8619
8614
|
};
|
|
8620
8615
|
const serializeAws_json1_1GetPullRequestInput = (input, context) => {
|
|
8621
8616
|
return {
|
|
8622
|
-
...(input.pullRequestId
|
|
8617
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8623
8618
|
};
|
|
8624
8619
|
};
|
|
8625
8620
|
const serializeAws_json1_1GetPullRequestOverrideStateInput = (input, context) => {
|
|
8626
8621
|
return {
|
|
8627
|
-
...(input.pullRequestId
|
|
8628
|
-
...(input.revisionId
|
|
8622
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8623
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
8629
8624
|
};
|
|
8630
8625
|
};
|
|
8631
8626
|
const serializeAws_json1_1GetRepositoryInput = (input, context) => {
|
|
8632
8627
|
return {
|
|
8633
|
-
...(input.repositoryName
|
|
8634
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8628
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8635
8629
|
};
|
|
8636
8630
|
};
|
|
8637
8631
|
const serializeAws_json1_1GetRepositoryTriggersInput = (input, context) => {
|
|
8638
8632
|
return {
|
|
8639
|
-
...(input.repositoryName
|
|
8640
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8633
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8641
8634
|
};
|
|
8642
8635
|
};
|
|
8643
8636
|
const serializeAws_json1_1ListApprovalRuleTemplatesInput = (input, context) => {
|
|
8644
8637
|
return {
|
|
8645
|
-
...(input.maxResults
|
|
8646
|
-
...(input.nextToken
|
|
8638
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8639
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8647
8640
|
};
|
|
8648
8641
|
};
|
|
8649
8642
|
const serializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryInput = (input, context) => {
|
|
8650
8643
|
return {
|
|
8651
|
-
...(input.maxResults
|
|
8652
|
-
...(input.nextToken
|
|
8653
|
-
...(input.repositoryName
|
|
8654
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8644
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8645
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8646
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8655
8647
|
};
|
|
8656
8648
|
};
|
|
8657
8649
|
const serializeAws_json1_1ListBranchesInput = (input, context) => {
|
|
8658
8650
|
return {
|
|
8659
|
-
...(input.nextToken
|
|
8660
|
-
...(input.repositoryName
|
|
8661
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8651
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8652
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8662
8653
|
};
|
|
8663
8654
|
};
|
|
8664
8655
|
const serializeAws_json1_1ListPullRequestsInput = (input, context) => {
|
|
8665
8656
|
return {
|
|
8666
|
-
...(input.authorArn
|
|
8667
|
-
...(input.maxResults
|
|
8668
|
-
...(input.nextToken
|
|
8669
|
-
...(input.pullRequestStatus
|
|
8670
|
-
|
|
8671
|
-
...(input.repositoryName !== undefined &&
|
|
8672
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8657
|
+
...(input.authorArn != null && { authorArn: input.authorArn }),
|
|
8658
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8659
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8660
|
+
...(input.pullRequestStatus != null && { pullRequestStatus: input.pullRequestStatus }),
|
|
8661
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8673
8662
|
};
|
|
8674
8663
|
};
|
|
8675
8664
|
const serializeAws_json1_1ListRepositoriesForApprovalRuleTemplateInput = (input, context) => {
|
|
8676
8665
|
return {
|
|
8677
|
-
...(input.approvalRuleTemplateName
|
|
8678
|
-
|
|
8679
|
-
...(input.
|
|
8680
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
8666
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8667
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8668
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8681
8669
|
};
|
|
8682
8670
|
};
|
|
8683
8671
|
const serializeAws_json1_1ListRepositoriesInput = (input, context) => {
|
|
8684
8672
|
return {
|
|
8685
|
-
...(input.nextToken
|
|
8686
|
-
...(input.order
|
|
8687
|
-
...(input.sortBy
|
|
8673
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8674
|
+
...(input.order != null && { order: input.order }),
|
|
8675
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
8688
8676
|
};
|
|
8689
8677
|
};
|
|
8690
8678
|
const serializeAws_json1_1ListTagsForResourceInput = (input, context) => {
|
|
8691
8679
|
return {
|
|
8692
|
-
...(input.nextToken
|
|
8693
|
-
...(input.resourceArn
|
|
8680
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8681
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
8694
8682
|
};
|
|
8695
8683
|
};
|
|
8696
8684
|
const serializeAws_json1_1Location = (input, context) => {
|
|
8697
8685
|
return {
|
|
8698
|
-
...(input.filePath
|
|
8699
|
-
...(input.filePosition
|
|
8700
|
-
...(input.relativeFileVersion
|
|
8701
|
-
input.relativeFileVersion !== null && { relativeFileVersion: input.relativeFileVersion }),
|
|
8686
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8687
|
+
...(input.filePosition != null && { filePosition: input.filePosition }),
|
|
8688
|
+
...(input.relativeFileVersion != null && { relativeFileVersion: input.relativeFileVersion }),
|
|
8702
8689
|
};
|
|
8703
8690
|
};
|
|
8704
8691
|
const serializeAws_json1_1MergeBranchesByFastForwardInput = (input, context) => {
|
|
8705
8692
|
return {
|
|
8706
|
-
...(input.destinationCommitSpecifier
|
|
8707
|
-
|
|
8708
|
-
...(input.
|
|
8709
|
-
|
|
8710
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8711
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8712
|
-
...(input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }),
|
|
8693
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8694
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8695
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8696
|
+
...(input.targetBranch != null && { targetBranch: input.targetBranch }),
|
|
8713
8697
|
};
|
|
8714
8698
|
};
|
|
8715
8699
|
const serializeAws_json1_1MergeBranchesBySquashInput = (input, context) => {
|
|
8716
8700
|
return {
|
|
8717
|
-
...(input.authorName
|
|
8718
|
-
...(input.commitMessage
|
|
8719
|
-
...(input.conflictDetailLevel
|
|
8720
|
-
|
|
8721
|
-
...(input.conflictResolution !== undefined &&
|
|
8722
|
-
input.conflictResolution !== null && {
|
|
8701
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8702
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8703
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8704
|
+
...(input.conflictResolution != null && {
|
|
8723
8705
|
conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
|
|
8724
8706
|
}),
|
|
8725
|
-
...(input.conflictResolutionStrategy
|
|
8726
|
-
|
|
8727
|
-
...(input.
|
|
8728
|
-
|
|
8729
|
-
...(input.
|
|
8730
|
-
...(input.
|
|
8731
|
-
|
|
8732
|
-
...(input.repositoryName !== undefined &&
|
|
8733
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8734
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8735
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8736
|
-
...(input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }),
|
|
8707
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8708
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8709
|
+
...(input.email != null && { email: input.email }),
|
|
8710
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8711
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8712
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8713
|
+
...(input.targetBranch != null && { targetBranch: input.targetBranch }),
|
|
8737
8714
|
};
|
|
8738
8715
|
};
|
|
8739
8716
|
const serializeAws_json1_1MergeBranchesByThreeWayInput = (input, context) => {
|
|
8740
8717
|
return {
|
|
8741
|
-
...(input.authorName
|
|
8742
|
-
...(input.commitMessage
|
|
8743
|
-
...(input.conflictDetailLevel
|
|
8744
|
-
|
|
8745
|
-
...(input.conflictResolution !== undefined &&
|
|
8746
|
-
input.conflictResolution !== null && {
|
|
8718
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8719
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8720
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8721
|
+
...(input.conflictResolution != null && {
|
|
8747
8722
|
conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
|
|
8748
8723
|
}),
|
|
8749
|
-
...(input.conflictResolutionStrategy
|
|
8750
|
-
|
|
8751
|
-
...(input.
|
|
8752
|
-
|
|
8753
|
-
...(input.
|
|
8754
|
-
...(input.
|
|
8755
|
-
|
|
8756
|
-
...(input.repositoryName !== undefined &&
|
|
8757
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8758
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8759
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8760
|
-
...(input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }),
|
|
8724
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8725
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8726
|
+
...(input.email != null && { email: input.email }),
|
|
8727
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8728
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8729
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8730
|
+
...(input.targetBranch != null && { targetBranch: input.targetBranch }),
|
|
8761
8731
|
};
|
|
8762
8732
|
};
|
|
8763
8733
|
const serializeAws_json1_1MergePullRequestByFastForwardInput = (input, context) => {
|
|
8764
8734
|
return {
|
|
8765
|
-
...(input.pullRequestId
|
|
8766
|
-
...(input.repositoryName
|
|
8767
|
-
|
|
8768
|
-
...(input.sourceCommitId !== undefined &&
|
|
8769
|
-
input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }),
|
|
8735
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8736
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8737
|
+
...(input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }),
|
|
8770
8738
|
};
|
|
8771
8739
|
};
|
|
8772
8740
|
const serializeAws_json1_1MergePullRequestBySquashInput = (input, context) => {
|
|
8773
8741
|
return {
|
|
8774
|
-
...(input.authorName
|
|
8775
|
-
...(input.commitMessage
|
|
8776
|
-
...(input.conflictDetailLevel
|
|
8777
|
-
|
|
8778
|
-
...(input.conflictResolution !== undefined &&
|
|
8779
|
-
input.conflictResolution !== null && {
|
|
8742
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8743
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8744
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8745
|
+
...(input.conflictResolution != null && {
|
|
8780
8746
|
conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
|
|
8781
8747
|
}),
|
|
8782
|
-
...(input.conflictResolutionStrategy
|
|
8783
|
-
|
|
8784
|
-
...(input.
|
|
8785
|
-
...(input.
|
|
8786
|
-
|
|
8787
|
-
...(input.
|
|
8788
|
-
...(input.repositoryName !== undefined &&
|
|
8789
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8790
|
-
...(input.sourceCommitId !== undefined &&
|
|
8791
|
-
input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }),
|
|
8748
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8749
|
+
...(input.email != null && { email: input.email }),
|
|
8750
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8751
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8752
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8753
|
+
...(input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }),
|
|
8792
8754
|
};
|
|
8793
8755
|
};
|
|
8794
8756
|
const serializeAws_json1_1MergePullRequestByThreeWayInput = (input, context) => {
|
|
8795
8757
|
return {
|
|
8796
|
-
...(input.authorName
|
|
8797
|
-
...(input.commitMessage
|
|
8798
|
-
...(input.conflictDetailLevel
|
|
8799
|
-
|
|
8800
|
-
...(input.conflictResolution !== undefined &&
|
|
8801
|
-
input.conflictResolution !== null && {
|
|
8758
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8759
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8760
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8761
|
+
...(input.conflictResolution != null && {
|
|
8802
8762
|
conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
|
|
8803
8763
|
}),
|
|
8804
|
-
...(input.conflictResolutionStrategy
|
|
8805
|
-
|
|
8806
|
-
...(input.
|
|
8807
|
-
...(input.
|
|
8808
|
-
|
|
8809
|
-
...(input.
|
|
8810
|
-
...(input.repositoryName !== undefined &&
|
|
8811
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8812
|
-
...(input.sourceCommitId !== undefined &&
|
|
8813
|
-
input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }),
|
|
8764
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8765
|
+
...(input.email != null && { email: input.email }),
|
|
8766
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8767
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8768
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8769
|
+
...(input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }),
|
|
8814
8770
|
};
|
|
8815
8771
|
};
|
|
8816
8772
|
const serializeAws_json1_1OverridePullRequestApprovalRulesInput = (input, context) => {
|
|
8817
8773
|
return {
|
|
8818
|
-
...(input.overrideStatus
|
|
8819
|
-
|
|
8820
|
-
...(input.
|
|
8821
|
-
...(input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }),
|
|
8774
|
+
...(input.overrideStatus != null && { overrideStatus: input.overrideStatus }),
|
|
8775
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8776
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
8822
8777
|
};
|
|
8823
8778
|
};
|
|
8824
8779
|
const serializeAws_json1_1PostCommentForComparedCommitInput = (input, context) => {
|
|
8825
8780
|
var _a;
|
|
8826
8781
|
return {
|
|
8827
|
-
...(input.afterCommitId
|
|
8828
|
-
...(input.beforeCommitId
|
|
8829
|
-
input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId }),
|
|
8782
|
+
...(input.afterCommitId != null && { afterCommitId: input.afterCommitId }),
|
|
8783
|
+
...(input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId }),
|
|
8830
8784
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
8831
|
-
...(input.content
|
|
8832
|
-
...(input.location
|
|
8833
|
-
|
|
8834
|
-
...(input.repositoryName !== undefined &&
|
|
8835
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8785
|
+
...(input.content != null && { content: input.content }),
|
|
8786
|
+
...(input.location != null && { location: serializeAws_json1_1Location(input.location, context) }),
|
|
8787
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8836
8788
|
};
|
|
8837
8789
|
};
|
|
8838
8790
|
const serializeAws_json1_1PostCommentForPullRequestInput = (input, context) => {
|
|
8839
8791
|
var _a;
|
|
8840
8792
|
return {
|
|
8841
|
-
...(input.afterCommitId
|
|
8842
|
-
...(input.beforeCommitId
|
|
8843
|
-
input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId }),
|
|
8793
|
+
...(input.afterCommitId != null && { afterCommitId: input.afterCommitId }),
|
|
8794
|
+
...(input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId }),
|
|
8844
8795
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
8845
|
-
...(input.content
|
|
8846
|
-
...(input.location
|
|
8847
|
-
|
|
8848
|
-
...(input.
|
|
8849
|
-
...(input.repositoryName !== undefined &&
|
|
8850
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8796
|
+
...(input.content != null && { content: input.content }),
|
|
8797
|
+
...(input.location != null && { location: serializeAws_json1_1Location(input.location, context) }),
|
|
8798
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8799
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8851
8800
|
};
|
|
8852
8801
|
};
|
|
8853
8802
|
const serializeAws_json1_1PostCommentReplyInput = (input, context) => {
|
|
8854
8803
|
var _a;
|
|
8855
8804
|
return {
|
|
8856
8805
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
8857
|
-
...(input.content
|
|
8858
|
-
...(input.inReplyTo
|
|
8806
|
+
...(input.content != null && { content: input.content }),
|
|
8807
|
+
...(input.inReplyTo != null && { inReplyTo: input.inReplyTo }),
|
|
8859
8808
|
};
|
|
8860
8809
|
};
|
|
8861
8810
|
const serializeAws_json1_1PutCommentReactionInput = (input, context) => {
|
|
8862
8811
|
return {
|
|
8863
|
-
...(input.commentId
|
|
8864
|
-
...(input.reactionValue
|
|
8812
|
+
...(input.commentId != null && { commentId: input.commentId }),
|
|
8813
|
+
...(input.reactionValue != null && { reactionValue: input.reactionValue }),
|
|
8865
8814
|
};
|
|
8866
8815
|
};
|
|
8867
8816
|
const serializeAws_json1_1PutFileEntries = (input, context) => {
|
|
@@ -8876,36 +8825,29 @@ const serializeAws_json1_1PutFileEntries = (input, context) => {
|
|
|
8876
8825
|
};
|
|
8877
8826
|
const serializeAws_json1_1PutFileEntry = (input, context) => {
|
|
8878
8827
|
return {
|
|
8879
|
-
...(input.fileContent
|
|
8880
|
-
|
|
8881
|
-
...(input.
|
|
8882
|
-
...(input.
|
|
8883
|
-
...(input.sourceFile !== undefined &&
|
|
8884
|
-
input.sourceFile !== null && { sourceFile: serializeAws_json1_1SourceFileSpecifier(input.sourceFile, context) }),
|
|
8828
|
+
...(input.fileContent != null && { fileContent: context.base64Encoder(input.fileContent) }),
|
|
8829
|
+
...(input.fileMode != null && { fileMode: input.fileMode }),
|
|
8830
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8831
|
+
...(input.sourceFile != null && { sourceFile: serializeAws_json1_1SourceFileSpecifier(input.sourceFile, context) }),
|
|
8885
8832
|
};
|
|
8886
8833
|
};
|
|
8887
8834
|
const serializeAws_json1_1PutFileInput = (input, context) => {
|
|
8888
8835
|
return {
|
|
8889
|
-
...(input.branchName
|
|
8890
|
-
...(input.commitMessage
|
|
8891
|
-
...(input.email
|
|
8892
|
-
...(input.fileContent
|
|
8893
|
-
|
|
8894
|
-
...(input.
|
|
8895
|
-
...(input.
|
|
8896
|
-
...(input.
|
|
8897
|
-
...(input.
|
|
8898
|
-
input.parentCommitId !== null && { parentCommitId: input.parentCommitId }),
|
|
8899
|
-
...(input.repositoryName !== undefined &&
|
|
8900
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8836
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8837
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8838
|
+
...(input.email != null && { email: input.email }),
|
|
8839
|
+
...(input.fileContent != null && { fileContent: context.base64Encoder(input.fileContent) }),
|
|
8840
|
+
...(input.fileMode != null && { fileMode: input.fileMode }),
|
|
8841
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8842
|
+
...(input.name != null && { name: input.name }),
|
|
8843
|
+
...(input.parentCommitId != null && { parentCommitId: input.parentCommitId }),
|
|
8844
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8901
8845
|
};
|
|
8902
8846
|
};
|
|
8903
8847
|
const serializeAws_json1_1PutRepositoryTriggersInput = (input, context) => {
|
|
8904
8848
|
return {
|
|
8905
|
-
...(input.repositoryName
|
|
8906
|
-
|
|
8907
|
-
...(input.triggers !== undefined &&
|
|
8908
|
-
input.triggers !== null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }),
|
|
8849
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8850
|
+
...(input.triggers != null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }),
|
|
8909
8851
|
};
|
|
8910
8852
|
};
|
|
8911
8853
|
const serializeAws_json1_1ReplaceContentEntries = (input, context) => {
|
|
@@ -8920,11 +8862,10 @@ const serializeAws_json1_1ReplaceContentEntries = (input, context) => {
|
|
|
8920
8862
|
};
|
|
8921
8863
|
const serializeAws_json1_1ReplaceContentEntry = (input, context) => {
|
|
8922
8864
|
return {
|
|
8923
|
-
...(input.content
|
|
8924
|
-
...(input.fileMode
|
|
8925
|
-
...(input.filePath
|
|
8926
|
-
...(input.replacementType
|
|
8927
|
-
input.replacementType !== null && { replacementType: input.replacementType }),
|
|
8865
|
+
...(input.content != null && { content: context.base64Encoder(input.content) }),
|
|
8866
|
+
...(input.fileMode != null && { fileMode: input.fileMode }),
|
|
8867
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8868
|
+
...(input.replacementType != null && { replacementType: input.replacementType }),
|
|
8928
8869
|
};
|
|
8929
8870
|
};
|
|
8930
8871
|
const serializeAws_json1_1RepositoryNameList = (input, context) => {
|
|
@@ -8939,14 +8880,11 @@ const serializeAws_json1_1RepositoryNameList = (input, context) => {
|
|
|
8939
8880
|
};
|
|
8940
8881
|
const serializeAws_json1_1RepositoryTrigger = (input, context) => {
|
|
8941
8882
|
return {
|
|
8942
|
-
...(input.branches
|
|
8943
|
-
|
|
8944
|
-
...(input.
|
|
8945
|
-
...(input.
|
|
8946
|
-
|
|
8947
|
-
...(input.events !== undefined &&
|
|
8948
|
-
input.events !== null && { events: serializeAws_json1_1RepositoryTriggerEventList(input.events, context) }),
|
|
8949
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
8883
|
+
...(input.branches != null && { branches: serializeAws_json1_1BranchNameList(input.branches, context) }),
|
|
8884
|
+
...(input.customData != null && { customData: input.customData }),
|
|
8885
|
+
...(input.destinationArn != null && { destinationArn: input.destinationArn }),
|
|
8886
|
+
...(input.events != null && { events: serializeAws_json1_1RepositoryTriggerEventList(input.events, context) }),
|
|
8887
|
+
...(input.name != null && { name: input.name }),
|
|
8950
8888
|
};
|
|
8951
8889
|
};
|
|
8952
8890
|
const serializeAws_json1_1RepositoryTriggerEventList = (input, context) => {
|
|
@@ -8981,14 +8919,14 @@ const serializeAws_json1_1SetFileModeEntries = (input, context) => {
|
|
|
8981
8919
|
};
|
|
8982
8920
|
const serializeAws_json1_1SetFileModeEntry = (input, context) => {
|
|
8983
8921
|
return {
|
|
8984
|
-
...(input.fileMode
|
|
8985
|
-
...(input.filePath
|
|
8922
|
+
...(input.fileMode != null && { fileMode: input.fileMode }),
|
|
8923
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8986
8924
|
};
|
|
8987
8925
|
};
|
|
8988
8926
|
const serializeAws_json1_1SourceFileSpecifier = (input, context) => {
|
|
8989
8927
|
return {
|
|
8990
|
-
...(input.filePath
|
|
8991
|
-
...(input.isMove
|
|
8928
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8929
|
+
...(input.isMove != null && { isMove: input.isMove }),
|
|
8992
8930
|
};
|
|
8993
8931
|
};
|
|
8994
8932
|
const serializeAws_json1_1TagKeysList = (input, context) => {
|
|
@@ -9003,8 +8941,8 @@ const serializeAws_json1_1TagKeysList = (input, context) => {
|
|
|
9003
8941
|
};
|
|
9004
8942
|
const serializeAws_json1_1TagResourceInput = (input, context) => {
|
|
9005
8943
|
return {
|
|
9006
|
-
...(input.resourceArn
|
|
9007
|
-
...(input.tags
|
|
8944
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
8945
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }),
|
|
9008
8946
|
};
|
|
9009
8947
|
};
|
|
9010
8948
|
const serializeAws_json1_1TagsMap = (input, context) => {
|
|
@@ -9020,12 +8958,9 @@ const serializeAws_json1_1TagsMap = (input, context) => {
|
|
|
9020
8958
|
};
|
|
9021
8959
|
const serializeAws_json1_1Target = (input, context) => {
|
|
9022
8960
|
return {
|
|
9023
|
-
...(input.destinationReference
|
|
9024
|
-
|
|
9025
|
-
...(input.
|
|
9026
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
9027
|
-
...(input.sourceReference !== undefined &&
|
|
9028
|
-
input.sourceReference !== null && { sourceReference: input.sourceReference }),
|
|
8961
|
+
...(input.destinationReference != null && { destinationReference: input.destinationReference }),
|
|
8962
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8963
|
+
...(input.sourceReference != null && { sourceReference: input.sourceReference }),
|
|
9029
8964
|
};
|
|
9030
8965
|
};
|
|
9031
8966
|
const serializeAws_json1_1TargetList = (input, context) => {
|
|
@@ -9040,110 +8975,96 @@ const serializeAws_json1_1TargetList = (input, context) => {
|
|
|
9040
8975
|
};
|
|
9041
8976
|
const serializeAws_json1_1TestRepositoryTriggersInput = (input, context) => {
|
|
9042
8977
|
return {
|
|
9043
|
-
...(input.repositoryName
|
|
9044
|
-
|
|
9045
|
-
...(input.triggers !== undefined &&
|
|
9046
|
-
input.triggers !== null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }),
|
|
8978
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8979
|
+
...(input.triggers != null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }),
|
|
9047
8980
|
};
|
|
9048
8981
|
};
|
|
9049
8982
|
const serializeAws_json1_1UntagResourceInput = (input, context) => {
|
|
9050
8983
|
return {
|
|
9051
|
-
...(input.resourceArn
|
|
9052
|
-
...(input.tagKeys
|
|
9053
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeysList(input.tagKeys, context) }),
|
|
8984
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
8985
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeysList(input.tagKeys, context) }),
|
|
9054
8986
|
};
|
|
9055
8987
|
};
|
|
9056
8988
|
const serializeAws_json1_1UpdateApprovalRuleTemplateContentInput = (input, context) => {
|
|
9057
8989
|
return {
|
|
9058
|
-
...(input.approvalRuleTemplateName
|
|
9059
|
-
|
|
9060
|
-
...(input.
|
|
9061
|
-
input.existingRuleContentSha256 !== null && { existingRuleContentSha256: input.existingRuleContentSha256 }),
|
|
9062
|
-
...(input.newRuleContent !== undefined &&
|
|
9063
|
-
input.newRuleContent !== null && { newRuleContent: input.newRuleContent }),
|
|
8990
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8991
|
+
...(input.existingRuleContentSha256 != null && { existingRuleContentSha256: input.existingRuleContentSha256 }),
|
|
8992
|
+
...(input.newRuleContent != null && { newRuleContent: input.newRuleContent }),
|
|
9064
8993
|
};
|
|
9065
8994
|
};
|
|
9066
8995
|
const serializeAws_json1_1UpdateApprovalRuleTemplateDescriptionInput = (input, context) => {
|
|
9067
8996
|
return {
|
|
9068
|
-
...(input.approvalRuleTemplateDescription
|
|
9069
|
-
input.approvalRuleTemplateDescription !== null && {
|
|
8997
|
+
...(input.approvalRuleTemplateDescription != null && {
|
|
9070
8998
|
approvalRuleTemplateDescription: input.approvalRuleTemplateDescription,
|
|
9071
8999
|
}),
|
|
9072
|
-
...(input.approvalRuleTemplateName
|
|
9073
|
-
input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
9000
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
9074
9001
|
};
|
|
9075
9002
|
};
|
|
9076
9003
|
const serializeAws_json1_1UpdateApprovalRuleTemplateNameInput = (input, context) => {
|
|
9077
9004
|
return {
|
|
9078
|
-
...(input.newApprovalRuleTemplateName
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9005
|
+
...(input.newApprovalRuleTemplateName != null && {
|
|
9006
|
+
newApprovalRuleTemplateName: input.newApprovalRuleTemplateName,
|
|
9007
|
+
}),
|
|
9008
|
+
...(input.oldApprovalRuleTemplateName != null && {
|
|
9009
|
+
oldApprovalRuleTemplateName: input.oldApprovalRuleTemplateName,
|
|
9010
|
+
}),
|
|
9082
9011
|
};
|
|
9083
9012
|
};
|
|
9084
9013
|
const serializeAws_json1_1UpdateCommentInput = (input, context) => {
|
|
9085
9014
|
return {
|
|
9086
|
-
...(input.commentId
|
|
9087
|
-
...(input.content
|
|
9015
|
+
...(input.commentId != null && { commentId: input.commentId }),
|
|
9016
|
+
...(input.content != null && { content: input.content }),
|
|
9088
9017
|
};
|
|
9089
9018
|
};
|
|
9090
9019
|
const serializeAws_json1_1UpdateDefaultBranchInput = (input, context) => {
|
|
9091
9020
|
return {
|
|
9092
|
-
...(input.defaultBranchName
|
|
9093
|
-
|
|
9094
|
-
...(input.repositoryName !== undefined &&
|
|
9095
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
9021
|
+
...(input.defaultBranchName != null && { defaultBranchName: input.defaultBranchName }),
|
|
9022
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
9096
9023
|
};
|
|
9097
9024
|
};
|
|
9098
9025
|
const serializeAws_json1_1UpdatePullRequestApprovalRuleContentInput = (input, context) => {
|
|
9099
9026
|
return {
|
|
9100
|
-
...(input.approvalRuleName
|
|
9101
|
-
|
|
9102
|
-
...(input.
|
|
9103
|
-
|
|
9104
|
-
...(input.newRuleContent !== undefined &&
|
|
9105
|
-
input.newRuleContent !== null && { newRuleContent: input.newRuleContent }),
|
|
9106
|
-
...(input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }),
|
|
9027
|
+
...(input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName }),
|
|
9028
|
+
...(input.existingRuleContentSha256 != null && { existingRuleContentSha256: input.existingRuleContentSha256 }),
|
|
9029
|
+
...(input.newRuleContent != null && { newRuleContent: input.newRuleContent }),
|
|
9030
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
9107
9031
|
};
|
|
9108
9032
|
};
|
|
9109
9033
|
const serializeAws_json1_1UpdatePullRequestApprovalStateInput = (input, context) => {
|
|
9110
9034
|
return {
|
|
9111
|
-
...(input.approvalState
|
|
9112
|
-
...(input.pullRequestId
|
|
9113
|
-
...(input.revisionId
|
|
9035
|
+
...(input.approvalState != null && { approvalState: input.approvalState }),
|
|
9036
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
9037
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
9114
9038
|
};
|
|
9115
9039
|
};
|
|
9116
9040
|
const serializeAws_json1_1UpdatePullRequestDescriptionInput = (input, context) => {
|
|
9117
9041
|
return {
|
|
9118
|
-
...(input.description
|
|
9119
|
-
...(input.pullRequestId
|
|
9042
|
+
...(input.description != null && { description: input.description }),
|
|
9043
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
9120
9044
|
};
|
|
9121
9045
|
};
|
|
9122
9046
|
const serializeAws_json1_1UpdatePullRequestStatusInput = (input, context) => {
|
|
9123
9047
|
return {
|
|
9124
|
-
...(input.pullRequestId
|
|
9125
|
-
...(input.pullRequestStatus
|
|
9126
|
-
input.pullRequestStatus !== null && { pullRequestStatus: input.pullRequestStatus }),
|
|
9048
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
9049
|
+
...(input.pullRequestStatus != null && { pullRequestStatus: input.pullRequestStatus }),
|
|
9127
9050
|
};
|
|
9128
9051
|
};
|
|
9129
9052
|
const serializeAws_json1_1UpdatePullRequestTitleInput = (input, context) => {
|
|
9130
9053
|
return {
|
|
9131
|
-
...(input.pullRequestId
|
|
9132
|
-
...(input.title
|
|
9054
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
9055
|
+
...(input.title != null && { title: input.title }),
|
|
9133
9056
|
};
|
|
9134
9057
|
};
|
|
9135
9058
|
const serializeAws_json1_1UpdateRepositoryDescriptionInput = (input, context) => {
|
|
9136
9059
|
return {
|
|
9137
|
-
...(input.repositoryDescription
|
|
9138
|
-
|
|
9139
|
-
...(input.repositoryName !== undefined &&
|
|
9140
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
9060
|
+
...(input.repositoryDescription != null && { repositoryDescription: input.repositoryDescription }),
|
|
9061
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
9141
9062
|
};
|
|
9142
9063
|
};
|
|
9143
9064
|
const serializeAws_json1_1UpdateRepositoryNameInput = (input, context) => {
|
|
9144
9065
|
return {
|
|
9145
|
-
...(input.newName
|
|
9146
|
-
...(input.oldName
|
|
9066
|
+
...(input.newName != null && { newName: input.newName }),
|
|
9067
|
+
...(input.oldName != null && { oldName: input.oldName }),
|
|
9147
9068
|
};
|
|
9148
9069
|
};
|
|
9149
9070
|
const deserializeAws_json1_1ActorDoesNotExistException = (output, context) => {
|
|
@@ -9173,14 +9094,14 @@ const deserializeAws_json1_1ApprovalRule = (output, context) => {
|
|
|
9173
9094
|
approvalRuleContent: (0, smithy_client_1.expectString)(output.approvalRuleContent),
|
|
9174
9095
|
approvalRuleId: (0, smithy_client_1.expectString)(output.approvalRuleId),
|
|
9175
9096
|
approvalRuleName: (0, smithy_client_1.expectString)(output.approvalRuleName),
|
|
9176
|
-
creationDate: output.creationDate
|
|
9097
|
+
creationDate: output.creationDate != null
|
|
9177
9098
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
9178
9099
|
: undefined,
|
|
9179
|
-
lastModifiedDate: output.lastModifiedDate
|
|
9100
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
9180
9101
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
|
|
9181
9102
|
: undefined,
|
|
9182
9103
|
lastModifiedUser: (0, smithy_client_1.expectString)(output.lastModifiedUser),
|
|
9183
|
-
originApprovalRuleTemplate: output.originApprovalRuleTemplate
|
|
9104
|
+
originApprovalRuleTemplate: output.originApprovalRuleTemplate != null
|
|
9184
9105
|
? deserializeAws_json1_1OriginApprovalRuleTemplate(output.originApprovalRuleTemplate, context)
|
|
9185
9106
|
: undefined,
|
|
9186
9107
|
ruleContentSha256: (0, smithy_client_1.expectString)(output.ruleContentSha256),
|
|
@@ -9258,10 +9179,10 @@ const deserializeAws_json1_1ApprovalRuleTemplate = (output, context) => {
|
|
|
9258
9179
|
approvalRuleTemplateDescription: (0, smithy_client_1.expectString)(output.approvalRuleTemplateDescription),
|
|
9259
9180
|
approvalRuleTemplateId: (0, smithy_client_1.expectString)(output.approvalRuleTemplateId),
|
|
9260
9181
|
approvalRuleTemplateName: (0, smithy_client_1.expectString)(output.approvalRuleTemplateName),
|
|
9261
|
-
creationDate: output.creationDate
|
|
9182
|
+
creationDate: output.creationDate != null
|
|
9262
9183
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
9263
9184
|
: undefined,
|
|
9264
|
-
lastModifiedDate: output.lastModifiedDate
|
|
9185
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
9265
9186
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
|
|
9266
9187
|
: undefined,
|
|
9267
9188
|
lastModifiedUser: (0, smithy_client_1.expectString)(output.lastModifiedUser),
|
|
@@ -9340,10 +9261,10 @@ const deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesEr
|
|
|
9340
9261
|
};
|
|
9341
9262
|
const deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesOutput = (output, context) => {
|
|
9342
9263
|
return {
|
|
9343
|
-
associatedRepositoryNames: output.associatedRepositoryNames
|
|
9264
|
+
associatedRepositoryNames: output.associatedRepositoryNames != null
|
|
9344
9265
|
? deserializeAws_json1_1RepositoryNameList(output.associatedRepositoryNames, context)
|
|
9345
9266
|
: undefined,
|
|
9346
|
-
errors: output.errors
|
|
9267
|
+
errors: output.errors != null
|
|
9347
9268
|
? deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesErrorsList(output.errors, context)
|
|
9348
9269
|
: undefined,
|
|
9349
9270
|
};
|
|
@@ -9369,11 +9290,9 @@ const deserializeAws_json1_1BatchDescribeMergeConflictsErrors = (output, context
|
|
|
9369
9290
|
const deserializeAws_json1_1BatchDescribeMergeConflictsOutput = (output, context) => {
|
|
9370
9291
|
return {
|
|
9371
9292
|
baseCommitId: (0, smithy_client_1.expectString)(output.baseCommitId),
|
|
9372
|
-
conflicts: output.conflicts
|
|
9373
|
-
? deserializeAws_json1_1Conflicts(output.conflicts, context)
|
|
9374
|
-
: undefined,
|
|
9293
|
+
conflicts: output.conflicts != null ? deserializeAws_json1_1Conflicts(output.conflicts, context) : undefined,
|
|
9375
9294
|
destinationCommitId: (0, smithy_client_1.expectString)(output.destinationCommitId),
|
|
9376
|
-
errors: output.errors
|
|
9295
|
+
errors: output.errors != null
|
|
9377
9296
|
? deserializeAws_json1_1BatchDescribeMergeConflictsErrors(output.errors, context)
|
|
9378
9297
|
: undefined,
|
|
9379
9298
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -9400,10 +9319,10 @@ const deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositorie
|
|
|
9400
9319
|
};
|
|
9401
9320
|
const deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput = (output, context) => {
|
|
9402
9321
|
return {
|
|
9403
|
-
disassociatedRepositoryNames: output.disassociatedRepositoryNames
|
|
9322
|
+
disassociatedRepositoryNames: output.disassociatedRepositoryNames != null
|
|
9404
9323
|
? deserializeAws_json1_1RepositoryNameList(output.disassociatedRepositoryNames, context)
|
|
9405
9324
|
: undefined,
|
|
9406
|
-
errors: output.errors
|
|
9325
|
+
errors: output.errors != null
|
|
9407
9326
|
? deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorsList(output.errors, context)
|
|
9408
9327
|
: undefined,
|
|
9409
9328
|
};
|
|
@@ -9428,20 +9347,16 @@ const deserializeAws_json1_1BatchGetCommitsErrorsList = (output, context) => {
|
|
|
9428
9347
|
};
|
|
9429
9348
|
const deserializeAws_json1_1BatchGetCommitsOutput = (output, context) => {
|
|
9430
9349
|
return {
|
|
9431
|
-
commits: output.commits
|
|
9432
|
-
|
|
9433
|
-
: undefined,
|
|
9434
|
-
errors: output.errors !== undefined && output.errors !== null
|
|
9435
|
-
? deserializeAws_json1_1BatchGetCommitsErrorsList(output.errors, context)
|
|
9436
|
-
: undefined,
|
|
9350
|
+
commits: output.commits != null ? deserializeAws_json1_1CommitObjectsList(output.commits, context) : undefined,
|
|
9351
|
+
errors: output.errors != null ? deserializeAws_json1_1BatchGetCommitsErrorsList(output.errors, context) : undefined,
|
|
9437
9352
|
};
|
|
9438
9353
|
};
|
|
9439
9354
|
const deserializeAws_json1_1BatchGetRepositoriesOutput = (output, context) => {
|
|
9440
9355
|
return {
|
|
9441
|
-
repositories: output.repositories
|
|
9356
|
+
repositories: output.repositories != null
|
|
9442
9357
|
? deserializeAws_json1_1RepositoryMetadataList(output.repositories, context)
|
|
9443
9358
|
: undefined,
|
|
9444
|
-
repositoriesNotFound: output.repositoriesNotFound
|
|
9359
|
+
repositoriesNotFound: output.repositoriesNotFound != null
|
|
9445
9360
|
? deserializeAws_json1_1RepositoryNotFoundList(output.repositoriesNotFound, context)
|
|
9446
9361
|
: undefined,
|
|
9447
9362
|
};
|
|
@@ -9534,21 +9449,21 @@ const deserializeAws_json1_1ClientRequestTokenRequiredException = (output, conte
|
|
|
9534
9449
|
const deserializeAws_json1_1Comment = (output, context) => {
|
|
9535
9450
|
return {
|
|
9536
9451
|
authorArn: (0, smithy_client_1.expectString)(output.authorArn),
|
|
9537
|
-
callerReactions: output.callerReactions
|
|
9452
|
+
callerReactions: output.callerReactions != null
|
|
9538
9453
|
? deserializeAws_json1_1CallerReactions(output.callerReactions, context)
|
|
9539
9454
|
: undefined,
|
|
9540
9455
|
clientRequestToken: (0, smithy_client_1.expectString)(output.clientRequestToken),
|
|
9541
9456
|
commentId: (0, smithy_client_1.expectString)(output.commentId),
|
|
9542
9457
|
content: (0, smithy_client_1.expectString)(output.content),
|
|
9543
|
-
creationDate: output.creationDate
|
|
9458
|
+
creationDate: output.creationDate != null
|
|
9544
9459
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
9545
9460
|
: undefined,
|
|
9546
9461
|
deleted: (0, smithy_client_1.expectBoolean)(output.deleted),
|
|
9547
9462
|
inReplyTo: (0, smithy_client_1.expectString)(output.inReplyTo),
|
|
9548
|
-
lastModifiedDate: output.lastModifiedDate
|
|
9463
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
9549
9464
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
|
|
9550
9465
|
: undefined,
|
|
9551
|
-
reactionCounts: output.reactionCounts
|
|
9466
|
+
reactionCounts: output.reactionCounts != null
|
|
9552
9467
|
? deserializeAws_json1_1ReactionCountsMap(output.reactionCounts, context)
|
|
9553
9468
|
: undefined,
|
|
9554
9469
|
};
|
|
@@ -9600,12 +9515,8 @@ const deserializeAws_json1_1CommentsForComparedCommit = (output, context) => {
|
|
|
9600
9515
|
afterCommitId: (0, smithy_client_1.expectString)(output.afterCommitId),
|
|
9601
9516
|
beforeBlobId: (0, smithy_client_1.expectString)(output.beforeBlobId),
|
|
9602
9517
|
beforeCommitId: (0, smithy_client_1.expectString)(output.beforeCommitId),
|
|
9603
|
-
comments: output.comments
|
|
9604
|
-
|
|
9605
|
-
: undefined,
|
|
9606
|
-
location: output.location !== undefined && output.location !== null
|
|
9607
|
-
? deserializeAws_json1_1Location(output.location, context)
|
|
9608
|
-
: undefined,
|
|
9518
|
+
comments: output.comments != null ? deserializeAws_json1_1Comments(output.comments, context) : undefined,
|
|
9519
|
+
location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
|
|
9609
9520
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
9610
9521
|
};
|
|
9611
9522
|
};
|
|
@@ -9626,12 +9537,8 @@ const deserializeAws_json1_1CommentsForPullRequest = (output, context) => {
|
|
|
9626
9537
|
afterCommitId: (0, smithy_client_1.expectString)(output.afterCommitId),
|
|
9627
9538
|
beforeBlobId: (0, smithy_client_1.expectString)(output.beforeBlobId),
|
|
9628
9539
|
beforeCommitId: (0, smithy_client_1.expectString)(output.beforeCommitId),
|
|
9629
|
-
comments: output.comments
|
|
9630
|
-
|
|
9631
|
-
: undefined,
|
|
9632
|
-
location: output.location !== undefined && output.location !== null
|
|
9633
|
-
? deserializeAws_json1_1Location(output.location, context)
|
|
9634
|
-
: undefined,
|
|
9540
|
+
comments: output.comments != null ? deserializeAws_json1_1Comments(output.comments, context) : undefined,
|
|
9541
|
+
location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
|
|
9635
9542
|
pullRequestId: (0, smithy_client_1.expectString)(output.pullRequestId),
|
|
9636
9543
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
9637
9544
|
};
|
|
@@ -9650,17 +9557,11 @@ const deserializeAws_json1_1CommentsForPullRequestData = (output, context) => {
|
|
|
9650
9557
|
const deserializeAws_json1_1Commit = (output, context) => {
|
|
9651
9558
|
return {
|
|
9652
9559
|
additionalData: (0, smithy_client_1.expectString)(output.additionalData),
|
|
9653
|
-
author: output.author
|
|
9654
|
-
? deserializeAws_json1_1UserInfo(output.author, context)
|
|
9655
|
-
: undefined,
|
|
9560
|
+
author: output.author != null ? deserializeAws_json1_1UserInfo(output.author, context) : undefined,
|
|
9656
9561
|
commitId: (0, smithy_client_1.expectString)(output.commitId),
|
|
9657
|
-
committer: output.committer
|
|
9658
|
-
? deserializeAws_json1_1UserInfo(output.committer, context)
|
|
9659
|
-
: undefined,
|
|
9562
|
+
committer: output.committer != null ? deserializeAws_json1_1UserInfo(output.committer, context) : undefined,
|
|
9660
9563
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
9661
|
-
parents: output.parents
|
|
9662
|
-
? deserializeAws_json1_1ParentList(output.parents, context)
|
|
9663
|
-
: undefined,
|
|
9564
|
+
parents: output.parents != null ? deserializeAws_json1_1ParentList(output.parents, context) : undefined,
|
|
9664
9565
|
treeId: (0, smithy_client_1.expectString)(output.treeId),
|
|
9665
9566
|
};
|
|
9666
9567
|
};
|
|
@@ -9717,36 +9618,26 @@ const deserializeAws_json1_1ConcurrentReferenceUpdateException = (output, contex
|
|
|
9717
9618
|
};
|
|
9718
9619
|
const deserializeAws_json1_1Conflict = (output, context) => {
|
|
9719
9620
|
return {
|
|
9720
|
-
conflictMetadata: output.conflictMetadata
|
|
9621
|
+
conflictMetadata: output.conflictMetadata != null
|
|
9721
9622
|
? deserializeAws_json1_1ConflictMetadata(output.conflictMetadata, context)
|
|
9722
9623
|
: undefined,
|
|
9723
|
-
mergeHunks: output.mergeHunks
|
|
9724
|
-
? deserializeAws_json1_1MergeHunks(output.mergeHunks, context)
|
|
9725
|
-
: undefined,
|
|
9624
|
+
mergeHunks: output.mergeHunks != null ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context) : undefined,
|
|
9726
9625
|
};
|
|
9727
9626
|
};
|
|
9728
9627
|
const deserializeAws_json1_1ConflictMetadata = (output, context) => {
|
|
9729
9628
|
return {
|
|
9730
9629
|
contentConflict: (0, smithy_client_1.expectBoolean)(output.contentConflict),
|
|
9731
9630
|
fileModeConflict: (0, smithy_client_1.expectBoolean)(output.fileModeConflict),
|
|
9732
|
-
fileModes: output.fileModes
|
|
9733
|
-
? deserializeAws_json1_1FileModes(output.fileModes, context)
|
|
9734
|
-
: undefined,
|
|
9631
|
+
fileModes: output.fileModes != null ? deserializeAws_json1_1FileModes(output.fileModes, context) : undefined,
|
|
9735
9632
|
filePath: (0, smithy_client_1.expectString)(output.filePath),
|
|
9736
|
-
fileSizes: output.fileSizes
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
isBinaryFile: output.isBinaryFile !== undefined && output.isBinaryFile !== null
|
|
9740
|
-
? deserializeAws_json1_1IsBinaryFile(output.isBinaryFile, context)
|
|
9741
|
-
: undefined,
|
|
9742
|
-
mergeOperations: output.mergeOperations !== undefined && output.mergeOperations !== null
|
|
9633
|
+
fileSizes: output.fileSizes != null ? deserializeAws_json1_1FileSizes(output.fileSizes, context) : undefined,
|
|
9634
|
+
isBinaryFile: output.isBinaryFile != null ? deserializeAws_json1_1IsBinaryFile(output.isBinaryFile, context) : undefined,
|
|
9635
|
+
mergeOperations: output.mergeOperations != null
|
|
9743
9636
|
? deserializeAws_json1_1MergeOperations(output.mergeOperations, context)
|
|
9744
9637
|
: undefined,
|
|
9745
9638
|
numberOfConflicts: (0, smithy_client_1.expectInt32)(output.numberOfConflicts),
|
|
9746
9639
|
objectTypeConflict: (0, smithy_client_1.expectBoolean)(output.objectTypeConflict),
|
|
9747
|
-
objectTypes: output.objectTypes
|
|
9748
|
-
? deserializeAws_json1_1ObjectTypes(output.objectTypes, context)
|
|
9749
|
-
: undefined,
|
|
9640
|
+
objectTypes: output.objectTypes != null ? deserializeAws_json1_1ObjectTypes(output.objectTypes, context) : undefined,
|
|
9750
9641
|
};
|
|
9751
9642
|
};
|
|
9752
9643
|
const deserializeAws_json1_1ConflictMetadataList = (output, context) => {
|
|
@@ -9773,7 +9664,7 @@ const deserializeAws_json1_1Conflicts = (output, context) => {
|
|
|
9773
9664
|
};
|
|
9774
9665
|
const deserializeAws_json1_1CreateApprovalRuleTemplateOutput = (output, context) => {
|
|
9775
9666
|
return {
|
|
9776
|
-
approvalRuleTemplate: output.approvalRuleTemplate
|
|
9667
|
+
approvalRuleTemplate: output.approvalRuleTemplate != null
|
|
9777
9668
|
? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
|
|
9778
9669
|
: undefined,
|
|
9779
9670
|
};
|
|
@@ -9781,35 +9672,25 @@ const deserializeAws_json1_1CreateApprovalRuleTemplateOutput = (output, context)
|
|
|
9781
9672
|
const deserializeAws_json1_1CreateCommitOutput = (output, context) => {
|
|
9782
9673
|
return {
|
|
9783
9674
|
commitId: (0, smithy_client_1.expectString)(output.commitId),
|
|
9784
|
-
filesAdded: output.filesAdded
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
filesDeleted: output.filesDeleted !== undefined && output.filesDeleted !== null
|
|
9788
|
-
? deserializeAws_json1_1FilesMetadata(output.filesDeleted, context)
|
|
9789
|
-
: undefined,
|
|
9790
|
-
filesUpdated: output.filesUpdated !== undefined && output.filesUpdated !== null
|
|
9791
|
-
? deserializeAws_json1_1FilesMetadata(output.filesUpdated, context)
|
|
9792
|
-
: undefined,
|
|
9675
|
+
filesAdded: output.filesAdded != null ? deserializeAws_json1_1FilesMetadata(output.filesAdded, context) : undefined,
|
|
9676
|
+
filesDeleted: output.filesDeleted != null ? deserializeAws_json1_1FilesMetadata(output.filesDeleted, context) : undefined,
|
|
9677
|
+
filesUpdated: output.filesUpdated != null ? deserializeAws_json1_1FilesMetadata(output.filesUpdated, context) : undefined,
|
|
9793
9678
|
treeId: (0, smithy_client_1.expectString)(output.treeId),
|
|
9794
9679
|
};
|
|
9795
9680
|
};
|
|
9796
9681
|
const deserializeAws_json1_1CreatePullRequestApprovalRuleOutput = (output, context) => {
|
|
9797
9682
|
return {
|
|
9798
|
-
approvalRule: output.approvalRule
|
|
9799
|
-
? deserializeAws_json1_1ApprovalRule(output.approvalRule, context)
|
|
9800
|
-
: undefined,
|
|
9683
|
+
approvalRule: output.approvalRule != null ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context) : undefined,
|
|
9801
9684
|
};
|
|
9802
9685
|
};
|
|
9803
9686
|
const deserializeAws_json1_1CreatePullRequestOutput = (output, context) => {
|
|
9804
9687
|
return {
|
|
9805
|
-
pullRequest: output.pullRequest
|
|
9806
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
9807
|
-
: undefined,
|
|
9688
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
9808
9689
|
};
|
|
9809
9690
|
};
|
|
9810
9691
|
const deserializeAws_json1_1CreateRepositoryOutput = (output, context) => {
|
|
9811
9692
|
return {
|
|
9812
|
-
repositoryMetadata: output.repositoryMetadata
|
|
9693
|
+
repositoryMetadata: output.repositoryMetadata != null
|
|
9813
9694
|
? deserializeAws_json1_1RepositoryMetadata(output.repositoryMetadata, context)
|
|
9814
9695
|
: undefined,
|
|
9815
9696
|
};
|
|
@@ -9832,16 +9713,12 @@ const deserializeAws_json1_1DeleteApprovalRuleTemplateOutput = (output, context)
|
|
|
9832
9713
|
};
|
|
9833
9714
|
const deserializeAws_json1_1DeleteBranchOutput = (output, context) => {
|
|
9834
9715
|
return {
|
|
9835
|
-
deletedBranch: output.deletedBranch
|
|
9836
|
-
? deserializeAws_json1_1BranchInfo(output.deletedBranch, context)
|
|
9837
|
-
: undefined,
|
|
9716
|
+
deletedBranch: output.deletedBranch != null ? deserializeAws_json1_1BranchInfo(output.deletedBranch, context) : undefined,
|
|
9838
9717
|
};
|
|
9839
9718
|
};
|
|
9840
9719
|
const deserializeAws_json1_1DeleteCommentContentOutput = (output, context) => {
|
|
9841
9720
|
return {
|
|
9842
|
-
comment: output.comment
|
|
9843
|
-
? deserializeAws_json1_1Comment(output.comment, context)
|
|
9844
|
-
: undefined,
|
|
9721
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
9845
9722
|
};
|
|
9846
9723
|
};
|
|
9847
9724
|
const deserializeAws_json1_1DeleteFileOutput = (output, context) => {
|
|
@@ -9865,13 +9742,11 @@ const deserializeAws_json1_1DeleteRepositoryOutput = (output, context) => {
|
|
|
9865
9742
|
const deserializeAws_json1_1DescribeMergeConflictsOutput = (output, context) => {
|
|
9866
9743
|
return {
|
|
9867
9744
|
baseCommitId: (0, smithy_client_1.expectString)(output.baseCommitId),
|
|
9868
|
-
conflictMetadata: output.conflictMetadata
|
|
9745
|
+
conflictMetadata: output.conflictMetadata != null
|
|
9869
9746
|
? deserializeAws_json1_1ConflictMetadata(output.conflictMetadata, context)
|
|
9870
9747
|
: undefined,
|
|
9871
9748
|
destinationCommitId: (0, smithy_client_1.expectString)(output.destinationCommitId),
|
|
9872
|
-
mergeHunks: output.mergeHunks
|
|
9873
|
-
? deserializeAws_json1_1MergeHunks(output.mergeHunks, context)
|
|
9874
|
-
: undefined,
|
|
9749
|
+
mergeHunks: output.mergeHunks != null ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context) : undefined,
|
|
9875
9750
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
9876
9751
|
sourceCommitId: (0, smithy_client_1.expectString)(output.sourceCommitId),
|
|
9877
9752
|
};
|
|
@@ -9879,19 +9754,15 @@ const deserializeAws_json1_1DescribeMergeConflictsOutput = (output, context) =>
|
|
|
9879
9754
|
const deserializeAws_json1_1DescribePullRequestEventsOutput = (output, context) => {
|
|
9880
9755
|
return {
|
|
9881
9756
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
9882
|
-
pullRequestEvents: output.pullRequestEvents
|
|
9757
|
+
pullRequestEvents: output.pullRequestEvents != null
|
|
9883
9758
|
? deserializeAws_json1_1PullRequestEventList(output.pullRequestEvents, context)
|
|
9884
9759
|
: undefined,
|
|
9885
9760
|
};
|
|
9886
9761
|
};
|
|
9887
9762
|
const deserializeAws_json1_1Difference = (output, context) => {
|
|
9888
9763
|
return {
|
|
9889
|
-
afterBlob: output.afterBlob
|
|
9890
|
-
|
|
9891
|
-
: undefined,
|
|
9892
|
-
beforeBlob: output.beforeBlob !== undefined && output.beforeBlob !== null
|
|
9893
|
-
? deserializeAws_json1_1BlobMetadata(output.beforeBlob, context)
|
|
9894
|
-
: undefined,
|
|
9764
|
+
afterBlob: output.afterBlob != null ? deserializeAws_json1_1BlobMetadata(output.afterBlob, context) : undefined,
|
|
9765
|
+
beforeBlob: output.beforeBlob != null ? deserializeAws_json1_1BlobMetadata(output.beforeBlob, context) : undefined,
|
|
9895
9766
|
changeType: (0, smithy_client_1.expectString)(output.changeType),
|
|
9896
9767
|
};
|
|
9897
9768
|
};
|
|
@@ -9938,17 +9809,15 @@ const deserializeAws_json1_1EncryptionKeyUnavailableException = (output, context
|
|
|
9938
9809
|
};
|
|
9939
9810
|
const deserializeAws_json1_1EvaluatePullRequestApprovalRulesOutput = (output, context) => {
|
|
9940
9811
|
return {
|
|
9941
|
-
evaluation: output.evaluation
|
|
9942
|
-
? deserializeAws_json1_1Evaluation(output.evaluation, context)
|
|
9943
|
-
: undefined,
|
|
9812
|
+
evaluation: output.evaluation != null ? deserializeAws_json1_1Evaluation(output.evaluation, context) : undefined,
|
|
9944
9813
|
};
|
|
9945
9814
|
};
|
|
9946
9815
|
const deserializeAws_json1_1Evaluation = (output, context) => {
|
|
9947
9816
|
return {
|
|
9948
|
-
approvalRulesNotSatisfied: output.approvalRulesNotSatisfied
|
|
9817
|
+
approvalRulesNotSatisfied: output.approvalRulesNotSatisfied != null
|
|
9949
9818
|
? deserializeAws_json1_1ApprovalRulesNotSatisfiedList(output.approvalRulesNotSatisfied, context)
|
|
9950
9819
|
: undefined,
|
|
9951
|
-
approvalRulesSatisfied: output.approvalRulesSatisfied
|
|
9820
|
+
approvalRulesSatisfied: output.approvalRulesSatisfied != null
|
|
9952
9821
|
? deserializeAws_json1_1ApprovalRulesSatisfiedList(output.approvalRulesSatisfied, context)
|
|
9953
9822
|
: undefined,
|
|
9954
9823
|
approved: (0, smithy_client_1.expectBoolean)(output.approved),
|
|
@@ -10081,41 +9950,37 @@ const deserializeAws_json1_1FolderList = (output, context) => {
|
|
|
10081
9950
|
};
|
|
10082
9951
|
const deserializeAws_json1_1GetApprovalRuleTemplateOutput = (output, context) => {
|
|
10083
9952
|
return {
|
|
10084
|
-
approvalRuleTemplate: output.approvalRuleTemplate
|
|
9953
|
+
approvalRuleTemplate: output.approvalRuleTemplate != null
|
|
10085
9954
|
? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
|
|
10086
9955
|
: undefined,
|
|
10087
9956
|
};
|
|
10088
9957
|
};
|
|
10089
9958
|
const deserializeAws_json1_1GetBlobOutput = (output, context) => {
|
|
10090
9959
|
return {
|
|
10091
|
-
content: output.content
|
|
9960
|
+
content: output.content != null ? context.base64Decoder(output.content) : undefined,
|
|
10092
9961
|
};
|
|
10093
9962
|
};
|
|
10094
9963
|
const deserializeAws_json1_1GetBranchOutput = (output, context) => {
|
|
10095
9964
|
return {
|
|
10096
|
-
branch: output.branch
|
|
10097
|
-
? deserializeAws_json1_1BranchInfo(output.branch, context)
|
|
10098
|
-
: undefined,
|
|
9965
|
+
branch: output.branch != null ? deserializeAws_json1_1BranchInfo(output.branch, context) : undefined,
|
|
10099
9966
|
};
|
|
10100
9967
|
};
|
|
10101
9968
|
const deserializeAws_json1_1GetCommentOutput = (output, context) => {
|
|
10102
9969
|
return {
|
|
10103
|
-
comment: output.comment
|
|
10104
|
-
? deserializeAws_json1_1Comment(output.comment, context)
|
|
10105
|
-
: undefined,
|
|
9970
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
10106
9971
|
};
|
|
10107
9972
|
};
|
|
10108
9973
|
const deserializeAws_json1_1GetCommentReactionsOutput = (output, context) => {
|
|
10109
9974
|
return {
|
|
10110
9975
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10111
|
-
reactionsForComment: output.reactionsForComment
|
|
9976
|
+
reactionsForComment: output.reactionsForComment != null
|
|
10112
9977
|
? deserializeAws_json1_1ReactionsForCommentList(output.reactionsForComment, context)
|
|
10113
9978
|
: undefined,
|
|
10114
9979
|
};
|
|
10115
9980
|
};
|
|
10116
9981
|
const deserializeAws_json1_1GetCommentsForComparedCommitOutput = (output, context) => {
|
|
10117
9982
|
return {
|
|
10118
|
-
commentsForComparedCommitData: output.commentsForComparedCommitData
|
|
9983
|
+
commentsForComparedCommitData: output.commentsForComparedCommitData != null
|
|
10119
9984
|
? deserializeAws_json1_1CommentsForComparedCommitData(output.commentsForComparedCommitData, context)
|
|
10120
9985
|
: undefined,
|
|
10121
9986
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -10123,7 +9988,7 @@ const deserializeAws_json1_1GetCommentsForComparedCommitOutput = (output, contex
|
|
|
10123
9988
|
};
|
|
10124
9989
|
const deserializeAws_json1_1GetCommentsForPullRequestOutput = (output, context) => {
|
|
10125
9990
|
return {
|
|
10126
|
-
commentsForPullRequestData: output.commentsForPullRequestData
|
|
9991
|
+
commentsForPullRequestData: output.commentsForPullRequestData != null
|
|
10127
9992
|
? deserializeAws_json1_1CommentsForPullRequestData(output.commentsForPullRequestData, context)
|
|
10128
9993
|
: undefined,
|
|
10129
9994
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -10131,26 +9996,20 @@ const deserializeAws_json1_1GetCommentsForPullRequestOutput = (output, context)
|
|
|
10131
9996
|
};
|
|
10132
9997
|
const deserializeAws_json1_1GetCommitOutput = (output, context) => {
|
|
10133
9998
|
return {
|
|
10134
|
-
commit: output.commit
|
|
10135
|
-
? deserializeAws_json1_1Commit(output.commit, context)
|
|
10136
|
-
: undefined,
|
|
9999
|
+
commit: output.commit != null ? deserializeAws_json1_1Commit(output.commit, context) : undefined,
|
|
10137
10000
|
};
|
|
10138
10001
|
};
|
|
10139
10002
|
const deserializeAws_json1_1GetDifferencesOutput = (output, context) => {
|
|
10140
10003
|
return {
|
|
10141
10004
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
10142
|
-
differences: output.differences
|
|
10143
|
-
? deserializeAws_json1_1DifferenceList(output.differences, context)
|
|
10144
|
-
: undefined,
|
|
10005
|
+
differences: output.differences != null ? deserializeAws_json1_1DifferenceList(output.differences, context) : undefined,
|
|
10145
10006
|
};
|
|
10146
10007
|
};
|
|
10147
10008
|
const deserializeAws_json1_1GetFileOutput = (output, context) => {
|
|
10148
10009
|
return {
|
|
10149
10010
|
blobId: (0, smithy_client_1.expectString)(output.blobId),
|
|
10150
10011
|
commitId: (0, smithy_client_1.expectString)(output.commitId),
|
|
10151
|
-
fileContent: output.fileContent
|
|
10152
|
-
? context.base64Decoder(output.fileContent)
|
|
10153
|
-
: undefined,
|
|
10012
|
+
fileContent: output.fileContent != null ? context.base64Decoder(output.fileContent) : undefined,
|
|
10154
10013
|
fileMode: (0, smithy_client_1.expectString)(output.fileMode),
|
|
10155
10014
|
filePath: (0, smithy_client_1.expectString)(output.filePath),
|
|
10156
10015
|
fileSize: (0, smithy_client_1.expectLong)(output.fileSize),
|
|
@@ -10159,19 +10018,11 @@ const deserializeAws_json1_1GetFileOutput = (output, context) => {
|
|
|
10159
10018
|
const deserializeAws_json1_1GetFolderOutput = (output, context) => {
|
|
10160
10019
|
return {
|
|
10161
10020
|
commitId: (0, smithy_client_1.expectString)(output.commitId),
|
|
10162
|
-
files: output.files
|
|
10163
|
-
? deserializeAws_json1_1FileList(output.files, context)
|
|
10164
|
-
: undefined,
|
|
10021
|
+
files: output.files != null ? deserializeAws_json1_1FileList(output.files, context) : undefined,
|
|
10165
10022
|
folderPath: (0, smithy_client_1.expectString)(output.folderPath),
|
|
10166
|
-
subFolders: output.subFolders
|
|
10167
|
-
|
|
10168
|
-
|
|
10169
|
-
subModules: output.subModules !== undefined && output.subModules !== null
|
|
10170
|
-
? deserializeAws_json1_1SubModuleList(output.subModules, context)
|
|
10171
|
-
: undefined,
|
|
10172
|
-
symbolicLinks: output.symbolicLinks !== undefined && output.symbolicLinks !== null
|
|
10173
|
-
? deserializeAws_json1_1SymbolicLinkList(output.symbolicLinks, context)
|
|
10174
|
-
: undefined,
|
|
10023
|
+
subFolders: output.subFolders != null ? deserializeAws_json1_1FolderList(output.subFolders, context) : undefined,
|
|
10024
|
+
subModules: output.subModules != null ? deserializeAws_json1_1SubModuleList(output.subModules, context) : undefined,
|
|
10025
|
+
symbolicLinks: output.symbolicLinks != null ? deserializeAws_json1_1SymbolicLinkList(output.symbolicLinks, context) : undefined,
|
|
10175
10026
|
treeId: (0, smithy_client_1.expectString)(output.treeId),
|
|
10176
10027
|
};
|
|
10177
10028
|
};
|
|
@@ -10186,7 +10037,7 @@ const deserializeAws_json1_1GetMergeCommitOutput = (output, context) => {
|
|
|
10186
10037
|
const deserializeAws_json1_1GetMergeConflictsOutput = (output, context) => {
|
|
10187
10038
|
return {
|
|
10188
10039
|
baseCommitId: (0, smithy_client_1.expectString)(output.baseCommitId),
|
|
10189
|
-
conflictMetadataList: output.conflictMetadataList
|
|
10040
|
+
conflictMetadataList: output.conflictMetadataList != null
|
|
10190
10041
|
? deserializeAws_json1_1ConflictMetadataList(output.conflictMetadataList, context)
|
|
10191
10042
|
: undefined,
|
|
10192
10043
|
destinationCommitId: (0, smithy_client_1.expectString)(output.destinationCommitId),
|
|
@@ -10199,24 +10050,18 @@ const deserializeAws_json1_1GetMergeOptionsOutput = (output, context) => {
|
|
|
10199
10050
|
return {
|
|
10200
10051
|
baseCommitId: (0, smithy_client_1.expectString)(output.baseCommitId),
|
|
10201
10052
|
destinationCommitId: (0, smithy_client_1.expectString)(output.destinationCommitId),
|
|
10202
|
-
mergeOptions: output.mergeOptions
|
|
10203
|
-
? deserializeAws_json1_1MergeOptions(output.mergeOptions, context)
|
|
10204
|
-
: undefined,
|
|
10053
|
+
mergeOptions: output.mergeOptions != null ? deserializeAws_json1_1MergeOptions(output.mergeOptions, context) : undefined,
|
|
10205
10054
|
sourceCommitId: (0, smithy_client_1.expectString)(output.sourceCommitId),
|
|
10206
10055
|
};
|
|
10207
10056
|
};
|
|
10208
10057
|
const deserializeAws_json1_1GetPullRequestApprovalStatesOutput = (output, context) => {
|
|
10209
10058
|
return {
|
|
10210
|
-
approvals: output.approvals
|
|
10211
|
-
? deserializeAws_json1_1ApprovalList(output.approvals, context)
|
|
10212
|
-
: undefined,
|
|
10059
|
+
approvals: output.approvals != null ? deserializeAws_json1_1ApprovalList(output.approvals, context) : undefined,
|
|
10213
10060
|
};
|
|
10214
10061
|
};
|
|
10215
10062
|
const deserializeAws_json1_1GetPullRequestOutput = (output, context) => {
|
|
10216
10063
|
return {
|
|
10217
|
-
pullRequest: output.pullRequest
|
|
10218
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
10219
|
-
: undefined,
|
|
10064
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
10220
10065
|
};
|
|
10221
10066
|
};
|
|
10222
10067
|
const deserializeAws_json1_1GetPullRequestOverrideStateOutput = (output, context) => {
|
|
@@ -10227,7 +10072,7 @@ const deserializeAws_json1_1GetPullRequestOverrideStateOutput = (output, context
|
|
|
10227
10072
|
};
|
|
10228
10073
|
const deserializeAws_json1_1GetRepositoryOutput = (output, context) => {
|
|
10229
10074
|
return {
|
|
10230
|
-
repositoryMetadata: output.repositoryMetadata
|
|
10075
|
+
repositoryMetadata: output.repositoryMetadata != null
|
|
10231
10076
|
? deserializeAws_json1_1RepositoryMetadata(output.repositoryMetadata, context)
|
|
10232
10077
|
: undefined,
|
|
10233
10078
|
};
|
|
@@ -10235,9 +10080,7 @@ const deserializeAws_json1_1GetRepositoryOutput = (output, context) => {
|
|
|
10235
10080
|
const deserializeAws_json1_1GetRepositoryTriggersOutput = (output, context) => {
|
|
10236
10081
|
return {
|
|
10237
10082
|
configurationId: (0, smithy_client_1.expectString)(output.configurationId),
|
|
10238
|
-
triggers: output.triggers
|
|
10239
|
-
? deserializeAws_json1_1RepositoryTriggersList(output.triggers, context)
|
|
10240
|
-
: undefined,
|
|
10083
|
+
triggers: output.triggers != null ? deserializeAws_json1_1RepositoryTriggersList(output.triggers, context) : undefined,
|
|
10241
10084
|
};
|
|
10242
10085
|
};
|
|
10243
10086
|
const deserializeAws_json1_1IdempotencyParameterMismatchException = (output, context) => {
|
|
@@ -10569,7 +10412,7 @@ const deserializeAws_json1_1IsBinaryFile = (output, context) => {
|
|
|
10569
10412
|
};
|
|
10570
10413
|
const deserializeAws_json1_1ListApprovalRuleTemplatesOutput = (output, context) => {
|
|
10571
10414
|
return {
|
|
10572
|
-
approvalRuleTemplateNames: output.approvalRuleTemplateNames
|
|
10415
|
+
approvalRuleTemplateNames: output.approvalRuleTemplateNames != null
|
|
10573
10416
|
? deserializeAws_json1_1ApprovalRuleTemplateNameList(output.approvalRuleTemplateNames, context)
|
|
10574
10417
|
: undefined,
|
|
10575
10418
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -10577,7 +10420,7 @@ const deserializeAws_json1_1ListApprovalRuleTemplatesOutput = (output, context)
|
|
|
10577
10420
|
};
|
|
10578
10421
|
const deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryOutput = (output, context) => {
|
|
10579
10422
|
return {
|
|
10580
|
-
approvalRuleTemplateNames: output.approvalRuleTemplateNames
|
|
10423
|
+
approvalRuleTemplateNames: output.approvalRuleTemplateNames != null
|
|
10581
10424
|
? deserializeAws_json1_1ApprovalRuleTemplateNameList(output.approvalRuleTemplateNames, context)
|
|
10582
10425
|
: undefined,
|
|
10583
10426
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -10585,16 +10428,14 @@ const deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryOutp
|
|
|
10585
10428
|
};
|
|
10586
10429
|
const deserializeAws_json1_1ListBranchesOutput = (output, context) => {
|
|
10587
10430
|
return {
|
|
10588
|
-
branches: output.branches
|
|
10589
|
-
? deserializeAws_json1_1BranchNameList(output.branches, context)
|
|
10590
|
-
: undefined,
|
|
10431
|
+
branches: output.branches != null ? deserializeAws_json1_1BranchNameList(output.branches, context) : undefined,
|
|
10591
10432
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10592
10433
|
};
|
|
10593
10434
|
};
|
|
10594
10435
|
const deserializeAws_json1_1ListPullRequestsOutput = (output, context) => {
|
|
10595
10436
|
return {
|
|
10596
10437
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10597
|
-
pullRequestIds: output.pullRequestIds
|
|
10438
|
+
pullRequestIds: output.pullRequestIds != null
|
|
10598
10439
|
? deserializeAws_json1_1PullRequestIdList(output.pullRequestIds, context)
|
|
10599
10440
|
: undefined,
|
|
10600
10441
|
};
|
|
@@ -10602,7 +10443,7 @@ const deserializeAws_json1_1ListPullRequestsOutput = (output, context) => {
|
|
|
10602
10443
|
const deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateOutput = (output, context) => {
|
|
10603
10444
|
return {
|
|
10604
10445
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10605
|
-
repositoryNames: output.repositoryNames
|
|
10446
|
+
repositoryNames: output.repositoryNames != null
|
|
10606
10447
|
? deserializeAws_json1_1RepositoryNameList(output.repositoryNames, context)
|
|
10607
10448
|
: undefined,
|
|
10608
10449
|
};
|
|
@@ -10610,7 +10451,7 @@ const deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateOutput = (out
|
|
|
10610
10451
|
const deserializeAws_json1_1ListRepositoriesOutput = (output, context) => {
|
|
10611
10452
|
return {
|
|
10612
10453
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10613
|
-
repositories: output.repositories
|
|
10454
|
+
repositories: output.repositories != null
|
|
10614
10455
|
? deserializeAws_json1_1RepositoryNameIdPairList(output.repositories, context)
|
|
10615
10456
|
: undefined,
|
|
10616
10457
|
};
|
|
@@ -10618,9 +10459,7 @@ const deserializeAws_json1_1ListRepositoriesOutput = (output, context) => {
|
|
|
10618
10459
|
const deserializeAws_json1_1ListTagsForResourceOutput = (output, context) => {
|
|
10619
10460
|
return {
|
|
10620
10461
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10621
|
-
tags: output.tags
|
|
10622
|
-
? deserializeAws_json1_1TagsMap(output.tags, context)
|
|
10623
|
-
: undefined,
|
|
10462
|
+
tags: output.tags != null ? deserializeAws_json1_1TagsMap(output.tags, context) : undefined,
|
|
10624
10463
|
};
|
|
10625
10464
|
};
|
|
10626
10465
|
const deserializeAws_json1_1Location = (output, context) => {
|
|
@@ -10705,16 +10544,10 @@ const deserializeAws_json1_1MergeBranchesByThreeWayOutput = (output, context) =>
|
|
|
10705
10544
|
};
|
|
10706
10545
|
const deserializeAws_json1_1MergeHunk = (output, context) => {
|
|
10707
10546
|
return {
|
|
10708
|
-
base: output.base
|
|
10709
|
-
|
|
10710
|
-
: undefined,
|
|
10711
|
-
destination: output.destination !== undefined && output.destination !== null
|
|
10712
|
-
? deserializeAws_json1_1MergeHunkDetail(output.destination, context)
|
|
10713
|
-
: undefined,
|
|
10547
|
+
base: output.base != null ? deserializeAws_json1_1MergeHunkDetail(output.base, context) : undefined,
|
|
10548
|
+
destination: output.destination != null ? deserializeAws_json1_1MergeHunkDetail(output.destination, context) : undefined,
|
|
10714
10549
|
isConflict: (0, smithy_client_1.expectBoolean)(output.isConflict),
|
|
10715
|
-
source: output.source
|
|
10716
|
-
? deserializeAws_json1_1MergeHunkDetail(output.source, context)
|
|
10717
|
-
: undefined,
|
|
10550
|
+
source: output.source != null ? deserializeAws_json1_1MergeHunkDetail(output.source, context) : undefined,
|
|
10718
10551
|
};
|
|
10719
10552
|
};
|
|
10720
10553
|
const deserializeAws_json1_1MergeHunkDetail = (output, context) => {
|
|
@@ -10767,23 +10600,17 @@ const deserializeAws_json1_1MergeOptions = (output, context) => {
|
|
|
10767
10600
|
};
|
|
10768
10601
|
const deserializeAws_json1_1MergePullRequestByFastForwardOutput = (output, context) => {
|
|
10769
10602
|
return {
|
|
10770
|
-
pullRequest: output.pullRequest
|
|
10771
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
10772
|
-
: undefined,
|
|
10603
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
10773
10604
|
};
|
|
10774
10605
|
};
|
|
10775
10606
|
const deserializeAws_json1_1MergePullRequestBySquashOutput = (output, context) => {
|
|
10776
10607
|
return {
|
|
10777
|
-
pullRequest: output.pullRequest
|
|
10778
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
10779
|
-
: undefined,
|
|
10608
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
10780
10609
|
};
|
|
10781
10610
|
};
|
|
10782
10611
|
const deserializeAws_json1_1MergePullRequestByThreeWayOutput = (output, context) => {
|
|
10783
10612
|
return {
|
|
10784
|
-
pullRequest: output.pullRequest
|
|
10785
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
10786
|
-
: undefined,
|
|
10613
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
10787
10614
|
};
|
|
10788
10615
|
};
|
|
10789
10616
|
const deserializeAws_json1_1MultipleConflictResolutionEntriesException = (output, context) => {
|
|
@@ -10881,12 +10708,8 @@ const deserializeAws_json1_1PostCommentForComparedCommitOutput = (output, contex
|
|
|
10881
10708
|
afterCommitId: (0, smithy_client_1.expectString)(output.afterCommitId),
|
|
10882
10709
|
beforeBlobId: (0, smithy_client_1.expectString)(output.beforeBlobId),
|
|
10883
10710
|
beforeCommitId: (0, smithy_client_1.expectString)(output.beforeCommitId),
|
|
10884
|
-
comment: output.comment
|
|
10885
|
-
|
|
10886
|
-
: undefined,
|
|
10887
|
-
location: output.location !== undefined && output.location !== null
|
|
10888
|
-
? deserializeAws_json1_1Location(output.location, context)
|
|
10889
|
-
: undefined,
|
|
10711
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
10712
|
+
location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
|
|
10890
10713
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
10891
10714
|
};
|
|
10892
10715
|
};
|
|
@@ -10896,40 +10719,32 @@ const deserializeAws_json1_1PostCommentForPullRequestOutput = (output, context)
|
|
|
10896
10719
|
afterCommitId: (0, smithy_client_1.expectString)(output.afterCommitId),
|
|
10897
10720
|
beforeBlobId: (0, smithy_client_1.expectString)(output.beforeBlobId),
|
|
10898
10721
|
beforeCommitId: (0, smithy_client_1.expectString)(output.beforeCommitId),
|
|
10899
|
-
comment: output.comment
|
|
10900
|
-
|
|
10901
|
-
: undefined,
|
|
10902
|
-
location: output.location !== undefined && output.location !== null
|
|
10903
|
-
? deserializeAws_json1_1Location(output.location, context)
|
|
10904
|
-
: undefined,
|
|
10722
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
10723
|
+
location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
|
|
10905
10724
|
pullRequestId: (0, smithy_client_1.expectString)(output.pullRequestId),
|
|
10906
10725
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
10907
10726
|
};
|
|
10908
10727
|
};
|
|
10909
10728
|
const deserializeAws_json1_1PostCommentReplyOutput = (output, context) => {
|
|
10910
10729
|
return {
|
|
10911
|
-
comment: output.comment
|
|
10912
|
-
? deserializeAws_json1_1Comment(output.comment, context)
|
|
10913
|
-
: undefined,
|
|
10730
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
10914
10731
|
};
|
|
10915
10732
|
};
|
|
10916
10733
|
const deserializeAws_json1_1PullRequest = (output, context) => {
|
|
10917
10734
|
return {
|
|
10918
|
-
approvalRules: output.approvalRules
|
|
10919
|
-
? deserializeAws_json1_1ApprovalRulesList(output.approvalRules, context)
|
|
10920
|
-
: undefined,
|
|
10735
|
+
approvalRules: output.approvalRules != null ? deserializeAws_json1_1ApprovalRulesList(output.approvalRules, context) : undefined,
|
|
10921
10736
|
authorArn: (0, smithy_client_1.expectString)(output.authorArn),
|
|
10922
10737
|
clientRequestToken: (0, smithy_client_1.expectString)(output.clientRequestToken),
|
|
10923
|
-
creationDate: output.creationDate
|
|
10738
|
+
creationDate: output.creationDate != null
|
|
10924
10739
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
10925
10740
|
: undefined,
|
|
10926
10741
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
10927
|
-
lastActivityDate: output.lastActivityDate
|
|
10742
|
+
lastActivityDate: output.lastActivityDate != null
|
|
10928
10743
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastActivityDate)))
|
|
10929
10744
|
: undefined,
|
|
10930
10745
|
pullRequestId: (0, smithy_client_1.expectString)(output.pullRequestId),
|
|
10931
10746
|
pullRequestStatus: (0, smithy_client_1.expectString)(output.pullRequestStatus),
|
|
10932
|
-
pullRequestTargets: output.pullRequestTargets
|
|
10747
|
+
pullRequestTargets: output.pullRequestTargets != null
|
|
10933
10748
|
? deserializeAws_json1_1PullRequestTargetList(output.pullRequestTargets, context)
|
|
10934
10749
|
: undefined,
|
|
10935
10750
|
revisionId: (0, smithy_client_1.expectString)(output.revisionId),
|
|
@@ -10967,33 +10782,28 @@ const deserializeAws_json1_1PullRequestDoesNotExistException = (output, context)
|
|
|
10967
10782
|
const deserializeAws_json1_1PullRequestEvent = (output, context) => {
|
|
10968
10783
|
return {
|
|
10969
10784
|
actorArn: (0, smithy_client_1.expectString)(output.actorArn),
|
|
10970
|
-
approvalRuleEventMetadata: output.approvalRuleEventMetadata
|
|
10785
|
+
approvalRuleEventMetadata: output.approvalRuleEventMetadata != null
|
|
10971
10786
|
? deserializeAws_json1_1ApprovalRuleEventMetadata(output.approvalRuleEventMetadata, context)
|
|
10972
10787
|
: undefined,
|
|
10973
|
-
approvalRuleOverriddenEventMetadata: output.approvalRuleOverriddenEventMetadata
|
|
10788
|
+
approvalRuleOverriddenEventMetadata: output.approvalRuleOverriddenEventMetadata != null
|
|
10974
10789
|
? deserializeAws_json1_1ApprovalRuleOverriddenEventMetadata(output.approvalRuleOverriddenEventMetadata, context)
|
|
10975
10790
|
: undefined,
|
|
10976
|
-
approvalStateChangedEventMetadata: output.approvalStateChangedEventMetadata
|
|
10791
|
+
approvalStateChangedEventMetadata: output.approvalStateChangedEventMetadata != null
|
|
10977
10792
|
? deserializeAws_json1_1ApprovalStateChangedEventMetadata(output.approvalStateChangedEventMetadata, context)
|
|
10978
10793
|
: undefined,
|
|
10979
|
-
eventDate: output.eventDate
|
|
10980
|
-
|
|
10981
|
-
: undefined,
|
|
10982
|
-
pullRequestCreatedEventMetadata: output.pullRequestCreatedEventMetadata !== undefined && output.pullRequestCreatedEventMetadata !== null
|
|
10794
|
+
eventDate: output.eventDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventDate))) : undefined,
|
|
10795
|
+
pullRequestCreatedEventMetadata: output.pullRequestCreatedEventMetadata != null
|
|
10983
10796
|
? deserializeAws_json1_1PullRequestCreatedEventMetadata(output.pullRequestCreatedEventMetadata, context)
|
|
10984
10797
|
: undefined,
|
|
10985
10798
|
pullRequestEventType: (0, smithy_client_1.expectString)(output.pullRequestEventType),
|
|
10986
10799
|
pullRequestId: (0, smithy_client_1.expectString)(output.pullRequestId),
|
|
10987
|
-
pullRequestMergedStateChangedEventMetadata: output.pullRequestMergedStateChangedEventMetadata
|
|
10988
|
-
output.pullRequestMergedStateChangedEventMetadata !== null
|
|
10800
|
+
pullRequestMergedStateChangedEventMetadata: output.pullRequestMergedStateChangedEventMetadata != null
|
|
10989
10801
|
? deserializeAws_json1_1PullRequestMergedStateChangedEventMetadata(output.pullRequestMergedStateChangedEventMetadata, context)
|
|
10990
10802
|
: undefined,
|
|
10991
|
-
pullRequestSourceReferenceUpdatedEventMetadata: output.pullRequestSourceReferenceUpdatedEventMetadata
|
|
10992
|
-
output.pullRequestSourceReferenceUpdatedEventMetadata !== null
|
|
10803
|
+
pullRequestSourceReferenceUpdatedEventMetadata: output.pullRequestSourceReferenceUpdatedEventMetadata != null
|
|
10993
10804
|
? deserializeAws_json1_1PullRequestSourceReferenceUpdatedEventMetadata(output.pullRequestSourceReferenceUpdatedEventMetadata, context)
|
|
10994
10805
|
: undefined,
|
|
10995
|
-
pullRequestStatusChangedEventMetadata: output.pullRequestStatusChangedEventMetadata
|
|
10996
|
-
output.pullRequestStatusChangedEventMetadata !== null
|
|
10806
|
+
pullRequestStatusChangedEventMetadata: output.pullRequestStatusChangedEventMetadata != null
|
|
10997
10807
|
? deserializeAws_json1_1PullRequestStatusChangedEventMetadata(output.pullRequestStatusChangedEventMetadata, context)
|
|
10998
10808
|
: undefined,
|
|
10999
10809
|
};
|
|
@@ -11028,9 +10838,7 @@ const deserializeAws_json1_1PullRequestIdRequiredException = (output, context) =
|
|
|
11028
10838
|
const deserializeAws_json1_1PullRequestMergedStateChangedEventMetadata = (output, context) => {
|
|
11029
10839
|
return {
|
|
11030
10840
|
destinationReference: (0, smithy_client_1.expectString)(output.destinationReference),
|
|
11031
|
-
mergeMetadata: output.mergeMetadata
|
|
11032
|
-
? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context)
|
|
11033
|
-
: undefined,
|
|
10841
|
+
mergeMetadata: output.mergeMetadata != null ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context) : undefined,
|
|
11034
10842
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
11035
10843
|
};
|
|
11036
10844
|
};
|
|
@@ -11057,9 +10865,7 @@ const deserializeAws_json1_1PullRequestTarget = (output, context) => {
|
|
|
11057
10865
|
destinationCommit: (0, smithy_client_1.expectString)(output.destinationCommit),
|
|
11058
10866
|
destinationReference: (0, smithy_client_1.expectString)(output.destinationReference),
|
|
11059
10867
|
mergeBase: (0, smithy_client_1.expectString)(output.mergeBase),
|
|
11060
|
-
mergeMetadata: output.mergeMetadata
|
|
11061
|
-
? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context)
|
|
11062
|
-
: undefined,
|
|
10868
|
+
mergeMetadata: output.mergeMetadata != null ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context) : undefined,
|
|
11063
10869
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
11064
10870
|
sourceCommit: (0, smithy_client_1.expectString)(output.sourceCommit),
|
|
11065
10871
|
sourceReference: (0, smithy_client_1.expectString)(output.sourceReference),
|
|
@@ -11106,12 +10912,8 @@ const deserializeAws_json1_1ReactionCountsMap = (output, context) => {
|
|
|
11106
10912
|
};
|
|
11107
10913
|
const deserializeAws_json1_1ReactionForComment = (output, context) => {
|
|
11108
10914
|
return {
|
|
11109
|
-
reaction: output.reaction
|
|
11110
|
-
|
|
11111
|
-
: undefined,
|
|
11112
|
-
reactionUsers: output.reactionUsers !== undefined && output.reactionUsers !== null
|
|
11113
|
-
? deserializeAws_json1_1ReactionUsersList(output.reactionUsers, context)
|
|
11114
|
-
: undefined,
|
|
10915
|
+
reaction: output.reaction != null ? deserializeAws_json1_1ReactionValueFormats(output.reaction, context) : undefined,
|
|
10916
|
+
reactionUsers: output.reactionUsers != null ? deserializeAws_json1_1ReactionUsersList(output.reactionUsers, context) : undefined,
|
|
11115
10917
|
reactionsFromDeletedUsersCount: (0, smithy_client_1.expectInt32)(output.reactionsFromDeletedUsersCount),
|
|
11116
10918
|
};
|
|
11117
10919
|
};
|
|
@@ -11195,11 +10997,11 @@ const deserializeAws_json1_1RepositoryMetadata = (output, context) => {
|
|
|
11195
10997
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
11196
10998
|
cloneUrlHttp: (0, smithy_client_1.expectString)(output.cloneUrlHttp),
|
|
11197
10999
|
cloneUrlSsh: (0, smithy_client_1.expectString)(output.cloneUrlSsh),
|
|
11198
|
-
creationDate: output.creationDate
|
|
11000
|
+
creationDate: output.creationDate != null
|
|
11199
11001
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
11200
11002
|
: undefined,
|
|
11201
11003
|
defaultBranch: (0, smithy_client_1.expectString)(output.defaultBranch),
|
|
11202
|
-
lastModifiedDate: output.lastModifiedDate
|
|
11004
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
11203
11005
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
|
|
11204
11006
|
: undefined,
|
|
11205
11007
|
repositoryDescription: (0, smithy_client_1.expectString)(output.repositoryDescription),
|
|
@@ -11279,14 +11081,10 @@ const deserializeAws_json1_1RepositoryNotFoundList = (output, context) => {
|
|
|
11279
11081
|
};
|
|
11280
11082
|
const deserializeAws_json1_1RepositoryTrigger = (output, context) => {
|
|
11281
11083
|
return {
|
|
11282
|
-
branches: output.branches
|
|
11283
|
-
? deserializeAws_json1_1BranchNameList(output.branches, context)
|
|
11284
|
-
: undefined,
|
|
11084
|
+
branches: output.branches != null ? deserializeAws_json1_1BranchNameList(output.branches, context) : undefined,
|
|
11285
11085
|
customData: (0, smithy_client_1.expectString)(output.customData),
|
|
11286
11086
|
destinationArn: (0, smithy_client_1.expectString)(output.destinationArn),
|
|
11287
|
-
events: output.events
|
|
11288
|
-
? deserializeAws_json1_1RepositoryTriggerEventList(output.events, context)
|
|
11289
|
-
: undefined,
|
|
11087
|
+
events: output.events != null ? deserializeAws_json1_1RepositoryTriggerEventList(output.events, context) : undefined,
|
|
11290
11088
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
11291
11089
|
};
|
|
11292
11090
|
};
|
|
@@ -11480,10 +11278,10 @@ const deserializeAws_json1_1TargetsRequiredException = (output, context) => {
|
|
|
11480
11278
|
};
|
|
11481
11279
|
const deserializeAws_json1_1TestRepositoryTriggersOutput = (output, context) => {
|
|
11482
11280
|
return {
|
|
11483
|
-
failedExecutions: output.failedExecutions
|
|
11281
|
+
failedExecutions: output.failedExecutions != null
|
|
11484
11282
|
? deserializeAws_json1_1RepositoryTriggerExecutionFailureList(output.failedExecutions, context)
|
|
11485
11283
|
: undefined,
|
|
11486
|
-
successfulExecutions: output.successfulExecutions
|
|
11284
|
+
successfulExecutions: output.successfulExecutions != null
|
|
11487
11285
|
? deserializeAws_json1_1RepositoryTriggerNameList(output.successfulExecutions, context)
|
|
11488
11286
|
: undefined,
|
|
11489
11287
|
};
|
|
@@ -11510,58 +11308,48 @@ const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
|
11510
11308
|
};
|
|
11511
11309
|
const deserializeAws_json1_1UpdateApprovalRuleTemplateContentOutput = (output, context) => {
|
|
11512
11310
|
return {
|
|
11513
|
-
approvalRuleTemplate: output.approvalRuleTemplate
|
|
11311
|
+
approvalRuleTemplate: output.approvalRuleTemplate != null
|
|
11514
11312
|
? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
|
|
11515
11313
|
: undefined,
|
|
11516
11314
|
};
|
|
11517
11315
|
};
|
|
11518
11316
|
const deserializeAws_json1_1UpdateApprovalRuleTemplateDescriptionOutput = (output, context) => {
|
|
11519
11317
|
return {
|
|
11520
|
-
approvalRuleTemplate: output.approvalRuleTemplate
|
|
11318
|
+
approvalRuleTemplate: output.approvalRuleTemplate != null
|
|
11521
11319
|
? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
|
|
11522
11320
|
: undefined,
|
|
11523
11321
|
};
|
|
11524
11322
|
};
|
|
11525
11323
|
const deserializeAws_json1_1UpdateApprovalRuleTemplateNameOutput = (output, context) => {
|
|
11526
11324
|
return {
|
|
11527
|
-
approvalRuleTemplate: output.approvalRuleTemplate
|
|
11325
|
+
approvalRuleTemplate: output.approvalRuleTemplate != null
|
|
11528
11326
|
? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
|
|
11529
11327
|
: undefined,
|
|
11530
11328
|
};
|
|
11531
11329
|
};
|
|
11532
11330
|
const deserializeAws_json1_1UpdateCommentOutput = (output, context) => {
|
|
11533
11331
|
return {
|
|
11534
|
-
comment: output.comment
|
|
11535
|
-
? deserializeAws_json1_1Comment(output.comment, context)
|
|
11536
|
-
: undefined,
|
|
11332
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
11537
11333
|
};
|
|
11538
11334
|
};
|
|
11539
11335
|
const deserializeAws_json1_1UpdatePullRequestApprovalRuleContentOutput = (output, context) => {
|
|
11540
11336
|
return {
|
|
11541
|
-
approvalRule: output.approvalRule
|
|
11542
|
-
? deserializeAws_json1_1ApprovalRule(output.approvalRule, context)
|
|
11543
|
-
: undefined,
|
|
11337
|
+
approvalRule: output.approvalRule != null ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context) : undefined,
|
|
11544
11338
|
};
|
|
11545
11339
|
};
|
|
11546
11340
|
const deserializeAws_json1_1UpdatePullRequestDescriptionOutput = (output, context) => {
|
|
11547
11341
|
return {
|
|
11548
|
-
pullRequest: output.pullRequest
|
|
11549
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
11550
|
-
: undefined,
|
|
11342
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
11551
11343
|
};
|
|
11552
11344
|
};
|
|
11553
11345
|
const deserializeAws_json1_1UpdatePullRequestStatusOutput = (output, context) => {
|
|
11554
11346
|
return {
|
|
11555
|
-
pullRequest: output.pullRequest
|
|
11556
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
11557
|
-
: undefined,
|
|
11347
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
11558
11348
|
};
|
|
11559
11349
|
};
|
|
11560
11350
|
const deserializeAws_json1_1UpdatePullRequestTitleOutput = (output, context) => {
|
|
11561
11351
|
return {
|
|
11562
|
-
pullRequest: output.pullRequest
|
|
11563
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
11564
|
-
: undefined,
|
|
11352
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
11565
11353
|
};
|
|
11566
11354
|
};
|
|
11567
11355
|
const deserializeAws_json1_1UserInfo = (output, context) => {
|
|
@@ -11633,5 +11421,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
11633
11421
|
if (data["__type"] !== undefined) {
|
|
11634
11422
|
return sanitizeErrorCode(data["__type"]);
|
|
11635
11423
|
}
|
|
11636
|
-
return "";
|
|
11637
11424
|
};
|