@aws-sdk/client-codecommit 3.118.0 → 3.127.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.
@@ -871,7 +871,7 @@ export var deserializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryComm
871
871
  });
872
872
  }); };
873
873
  var deserializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
874
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
874
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
875
875
  var _c;
876
876
  return __generator(this, function (_d) {
877
877
  switch (_d.label) {
@@ -881,7 +881,6 @@ var deserializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryCommandErro
881
881
  return [4, parseBody(output.body, context)];
882
882
  case 1:
883
883
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
884
- errorCode = "UnknownError";
885
884
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
886
885
  _b = errorCode;
887
886
  switch (_b) {
@@ -937,10 +936,12 @@ var deserializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryCommandErro
937
936
  case 25: throw _d.sent();
938
937
  case 26:
939
938
  parsedBody = parsedOutput.body;
939
+ $metadata = deserializeMetadata(output);
940
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
940
941
  response = new __BaseException({
941
- name: parsedBody.code || parsedBody.Code || errorCode,
942
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
942
943
  $fault: "client",
943
- $metadata: deserializeMetadata(output),
944
+ $metadata: $metadata,
944
945
  });
945
946
  throw __decorateServiceException(response, parsedBody);
946
947
  }
@@ -965,7 +966,7 @@ export var deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositor
965
966
  });
966
967
  }); };
967
968
  var deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
968
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
969
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
969
970
  var _c;
970
971
  return __generator(this, function (_d) {
971
972
  switch (_d.label) {
@@ -975,7 +976,6 @@ var deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesComm
975
976
  return [4, parseBody(output.body, context)];
976
977
  case 1:
977
978
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
978
- errorCode = "UnknownError";
979
979
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
980
980
  _b = errorCode;
981
981
  switch (_b) {
@@ -1023,10 +1023,12 @@ var deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesComm
1023
1023
  case 21: throw _d.sent();
1024
1024
  case 22:
1025
1025
  parsedBody = parsedOutput.body;
1026
+ $metadata = deserializeMetadata(output);
1027
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1026
1028
  response = new __BaseException({
1027
- name: parsedBody.code || parsedBody.Code || errorCode,
1029
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1028
1030
  $fault: "client",
1029
- $metadata: deserializeMetadata(output),
1031
+ $metadata: $metadata,
1030
1032
  });
1031
1033
  throw __decorateServiceException(response, parsedBody);
1032
1034
  }
@@ -1051,7 +1053,7 @@ export var deserializeAws_json1_1BatchDescribeMergeConflictsCommand = function (
1051
1053
  });
1052
1054
  }); };
1053
1055
  var deserializeAws_json1_1BatchDescribeMergeConflictsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1054
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1056
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1055
1057
  var _c;
1056
1058
  return __generator(this, function (_d) {
1057
1059
  switch (_d.label) {
@@ -1061,7 +1063,6 @@ var deserializeAws_json1_1BatchDescribeMergeConflictsCommandError = function (ou
1061
1063
  return [4, parseBody(output.body, context)];
1062
1064
  case 1:
1063
1065
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1064
- errorCode = "UnknownError";
1065
1066
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1066
1067
  _b = errorCode;
1067
1068
  switch (_b) {
@@ -1153,10 +1154,12 @@ var deserializeAws_json1_1BatchDescribeMergeConflictsCommandError = function (ou
1153
1154
  case 43: throw _d.sent();
1154
1155
  case 44:
1155
1156
  parsedBody = parsedOutput.body;
1157
+ $metadata = deserializeMetadata(output);
1158
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1156
1159
  response = new __BaseException({
1157
- name: parsedBody.code || parsedBody.Code || errorCode,
1160
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1158
1161
  $fault: "client",
1159
- $metadata: deserializeMetadata(output),
1162
+ $metadata: $metadata,
1160
1163
  });
1161
1164
  throw __decorateServiceException(response, parsedBody);
1162
1165
  }
@@ -1181,7 +1184,7 @@ export var deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromReposi
1181
1184
  });
1182
1185
  }); };
1183
1186
  var deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1184
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1187
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1185
1188
  var _c;
1186
1189
  return __generator(this, function (_d) {
1187
1190
  switch (_d.label) {
@@ -1191,7 +1194,6 @@ var deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesC
1191
1194
  return [4, parseBody(output.body, context)];
1192
1195
  case 1:
1193
1196
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1194
- errorCode = "UnknownError";
1195
1197
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1196
1198
  _b = errorCode;
1197
1199
  switch (_b) {
@@ -1239,10 +1241,12 @@ var deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesC
1239
1241
  case 21: throw _d.sent();
1240
1242
  case 22:
1241
1243
  parsedBody = parsedOutput.body;
1244
+ $metadata = deserializeMetadata(output);
1245
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1242
1246
  response = new __BaseException({
1243
- name: parsedBody.code || parsedBody.Code || errorCode,
1247
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1244
1248
  $fault: "client",
1245
- $metadata: deserializeMetadata(output),
1249
+ $metadata: $metadata,
1246
1250
  });
1247
1251
  throw __decorateServiceException(response, parsedBody);
1248
1252
  }
@@ -1267,7 +1271,7 @@ export var deserializeAws_json1_1BatchGetCommitsCommand = function (output, cont
1267
1271
  });
1268
1272
  }); };
1269
1273
  var deserializeAws_json1_1BatchGetCommitsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1270
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1274
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1271
1275
  var _c;
1272
1276
  return __generator(this, function (_d) {
1273
1277
  switch (_d.label) {
@@ -1277,7 +1281,6 @@ var deserializeAws_json1_1BatchGetCommitsCommandError = function (output, contex
1277
1281
  return [4, parseBody(output.body, context)];
1278
1282
  case 1:
1279
1283
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1280
- errorCode = "UnknownError";
1281
1284
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1282
1285
  _b = errorCode;
1283
1286
  switch (_b) {
@@ -1325,10 +1328,12 @@ var deserializeAws_json1_1BatchGetCommitsCommandError = function (output, contex
1325
1328
  case 21: throw _d.sent();
1326
1329
  case 22:
1327
1330
  parsedBody = parsedOutput.body;
1331
+ $metadata = deserializeMetadata(output);
1332
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1328
1333
  response = new __BaseException({
1329
- name: parsedBody.code || parsedBody.Code || errorCode,
1334
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1330
1335
  $fault: "client",
1331
- $metadata: deserializeMetadata(output),
1336
+ $metadata: $metadata,
1332
1337
  });
1333
1338
  throw __decorateServiceException(response, parsedBody);
1334
1339
  }
@@ -1353,7 +1358,7 @@ export var deserializeAws_json1_1BatchGetRepositoriesCommand = function (output,
1353
1358
  });
1354
1359
  }); };
1355
1360
  var deserializeAws_json1_1BatchGetRepositoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1356
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1361
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1357
1362
  var _c;
1358
1363
  return __generator(this, function (_d) {
1359
1364
  switch (_d.label) {
@@ -1363,7 +1368,6 @@ var deserializeAws_json1_1BatchGetRepositoriesCommandError = function (output, c
1363
1368
  return [4, parseBody(output.body, context)];
1364
1369
  case 1:
1365
1370
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1366
- errorCode = "UnknownError";
1367
1371
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1368
1372
  _b = errorCode;
1369
1373
  switch (_b) {
@@ -1403,10 +1407,12 @@ var deserializeAws_json1_1BatchGetRepositoriesCommandError = function (output, c
1403
1407
  case 17: throw _d.sent();
1404
1408
  case 18:
1405
1409
  parsedBody = parsedOutput.body;
1410
+ $metadata = deserializeMetadata(output);
1411
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1406
1412
  response = new __BaseException({
1407
- name: parsedBody.code || parsedBody.Code || errorCode,
1413
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1408
1414
  $fault: "client",
1409
- $metadata: deserializeMetadata(output),
1415
+ $metadata: $metadata,
1410
1416
  });
1411
1417
  throw __decorateServiceException(response, parsedBody);
1412
1418
  }
@@ -1431,7 +1437,7 @@ export var deserializeAws_json1_1CreateApprovalRuleTemplateCommand = function (o
1431
1437
  });
1432
1438
  }); };
1433
1439
  var deserializeAws_json1_1CreateApprovalRuleTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1434
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1440
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1435
1441
  var _c;
1436
1442
  return __generator(this, function (_d) {
1437
1443
  switch (_d.label) {
@@ -1441,7 +1447,6 @@ var deserializeAws_json1_1CreateApprovalRuleTemplateCommandError = function (out
1441
1447
  return [4, parseBody(output.body, context)];
1442
1448
  case 1:
1443
1449
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1444
- errorCode = "UnknownError";
1445
1450
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1446
1451
  _b = errorCode;
1447
1452
  switch (_b) {
@@ -1477,10 +1482,12 @@ var deserializeAws_json1_1CreateApprovalRuleTemplateCommandError = function (out
1477
1482
  case 15: throw _d.sent();
1478
1483
  case 16:
1479
1484
  parsedBody = parsedOutput.body;
1485
+ $metadata = deserializeMetadata(output);
1486
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1480
1487
  response = new __BaseException({
1481
- name: parsedBody.code || parsedBody.Code || errorCode,
1488
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1482
1489
  $fault: "client",
1483
- $metadata: deserializeMetadata(output),
1490
+ $metadata: $metadata,
1484
1491
  });
1485
1492
  throw __decorateServiceException(response, parsedBody);
1486
1493
  }
@@ -1505,7 +1512,7 @@ export var deserializeAws_json1_1CreateBranchCommand = function (output, context
1505
1512
  });
1506
1513
  }); };
1507
1514
  var deserializeAws_json1_1CreateBranchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1508
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1515
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1509
1516
  var _c;
1510
1517
  return __generator(this, function (_d) {
1511
1518
  switch (_d.label) {
@@ -1515,7 +1522,6 @@ var deserializeAws_json1_1CreateBranchCommandError = function (output, context)
1515
1522
  return [4, parseBody(output.body, context)];
1516
1523
  case 1:
1517
1524
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1518
- errorCode = "UnknownError";
1519
1525
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1520
1526
  _b = errorCode;
1521
1527
  switch (_b) {
@@ -1579,10 +1585,12 @@ var deserializeAws_json1_1CreateBranchCommandError = function (output, context)
1579
1585
  case 29: throw _d.sent();
1580
1586
  case 30:
1581
1587
  parsedBody = parsedOutput.body;
1588
+ $metadata = deserializeMetadata(output);
1589
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1582
1590
  response = new __BaseException({
1583
- name: parsedBody.code || parsedBody.Code || errorCode,
1591
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1584
1592
  $fault: "client",
1585
- $metadata: deserializeMetadata(output),
1593
+ $metadata: $metadata,
1586
1594
  });
1587
1595
  throw __decorateServiceException(response, parsedBody);
1588
1596
  }
@@ -1607,7 +1615,7 @@ export var deserializeAws_json1_1CreateCommitCommand = function (output, context
1607
1615
  });
1608
1616
  }); };
1609
1617
  var deserializeAws_json1_1CreateCommitCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1610
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1618
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1611
1619
  var _c;
1612
1620
  return __generator(this, function (_d) {
1613
1621
  switch (_d.label) {
@@ -1617,7 +1625,6 @@ var deserializeAws_json1_1CreateCommitCommandError = function (output, context)
1617
1625
  return [4, parseBody(output.body, context)];
1618
1626
  case 1:
1619
1627
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1620
- errorCode = "UnknownError";
1621
1628
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1622
1629
  _b = errorCode;
1623
1630
  switch (_b) {
@@ -1777,10 +1784,12 @@ var deserializeAws_json1_1CreateCommitCommandError = function (output, context)
1777
1784
  case 77: throw _d.sent();
1778
1785
  case 78:
1779
1786
  parsedBody = parsedOutput.body;
1787
+ $metadata = deserializeMetadata(output);
1788
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1780
1789
  response = new __BaseException({
1781
- name: parsedBody.code || parsedBody.Code || errorCode,
1790
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1782
1791
  $fault: "client",
1783
- $metadata: deserializeMetadata(output),
1792
+ $metadata: $metadata,
1784
1793
  });
1785
1794
  throw __decorateServiceException(response, parsedBody);
1786
1795
  }
@@ -1805,7 +1814,7 @@ export var deserializeAws_json1_1CreatePullRequestCommand = function (output, co
1805
1814
  });
1806
1815
  }); };
1807
1816
  var deserializeAws_json1_1CreatePullRequestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1808
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1817
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1809
1818
  var _c;
1810
1819
  return __generator(this, function (_d) {
1811
1820
  switch (_d.label) {
@@ -1815,7 +1824,6 @@ var deserializeAws_json1_1CreatePullRequestCommandError = function (output, cont
1815
1824
  return [4, parseBody(output.body, context)];
1816
1825
  case 1:
1817
1826
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1818
- errorCode = "UnknownError";
1819
1827
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1820
1828
  _b = errorCode;
1821
1829
  switch (_b) {
@@ -1923,10 +1931,12 @@ var deserializeAws_json1_1CreatePullRequestCommandError = function (output, cont
1923
1931
  case 51: throw _d.sent();
1924
1932
  case 52:
1925
1933
  parsedBody = parsedOutput.body;
1934
+ $metadata = deserializeMetadata(output);
1935
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1926
1936
  response = new __BaseException({
1927
- name: parsedBody.code || parsedBody.Code || errorCode,
1937
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1928
1938
  $fault: "client",
1929
- $metadata: deserializeMetadata(output),
1939
+ $metadata: $metadata,
1930
1940
  });
1931
1941
  throw __decorateServiceException(response, parsedBody);
1932
1942
  }
@@ -1951,7 +1961,7 @@ export var deserializeAws_json1_1CreatePullRequestApprovalRuleCommand = function
1951
1961
  });
1952
1962
  }); };
1953
1963
  var deserializeAws_json1_1CreatePullRequestApprovalRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1954
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1964
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1955
1965
  var _c;
1956
1966
  return __generator(this, function (_d) {
1957
1967
  switch (_d.label) {
@@ -1961,7 +1971,6 @@ var deserializeAws_json1_1CreatePullRequestApprovalRuleCommandError = function (
1961
1971
  return [4, parseBody(output.body, context)];
1962
1972
  case 1:
1963
1973
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1964
- errorCode = "UnknownError";
1965
1974
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1966
1975
  _b = errorCode;
1967
1976
  switch (_b) {
@@ -2029,10 +2038,12 @@ var deserializeAws_json1_1CreatePullRequestApprovalRuleCommandError = function (
2029
2038
  case 31: throw _d.sent();
2030
2039
  case 32:
2031
2040
  parsedBody = parsedOutput.body;
2041
+ $metadata = deserializeMetadata(output);
2042
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2032
2043
  response = new __BaseException({
2033
- name: parsedBody.code || parsedBody.Code || errorCode,
2044
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2034
2045
  $fault: "client",
2035
- $metadata: deserializeMetadata(output),
2046
+ $metadata: $metadata,
2036
2047
  });
2037
2048
  throw __decorateServiceException(response, parsedBody);
2038
2049
  }
@@ -2057,7 +2068,7 @@ export var deserializeAws_json1_1CreateRepositoryCommand = function (output, con
2057
2068
  });
2058
2069
  }); };
2059
2070
  var deserializeAws_json1_1CreateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2060
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2071
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2061
2072
  var _c;
2062
2073
  return __generator(this, function (_d) {
2063
2074
  switch (_d.label) {
@@ -2067,7 +2078,6 @@ var deserializeAws_json1_1CreateRepositoryCommandError = function (output, conte
2067
2078
  return [4, parseBody(output.body, context)];
2068
2079
  case 1:
2069
2080
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2070
- errorCode = "UnknownError";
2071
2081
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2072
2082
  _b = errorCode;
2073
2083
  switch (_b) {
@@ -2131,10 +2141,12 @@ var deserializeAws_json1_1CreateRepositoryCommandError = function (output, conte
2131
2141
  case 29: throw _d.sent();
2132
2142
  case 30:
2133
2143
  parsedBody = parsedOutput.body;
2144
+ $metadata = deserializeMetadata(output);
2145
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2134
2146
  response = new __BaseException({
2135
- name: parsedBody.code || parsedBody.Code || errorCode,
2147
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2136
2148
  $fault: "client",
2137
- $metadata: deserializeMetadata(output),
2149
+ $metadata: $metadata,
2138
2150
  });
2139
2151
  throw __decorateServiceException(response, parsedBody);
2140
2152
  }
@@ -2159,7 +2171,7 @@ export var deserializeAws_json1_1CreateUnreferencedMergeCommitCommand = function
2159
2171
  });
2160
2172
  }); };
2161
2173
  var deserializeAws_json1_1CreateUnreferencedMergeCommitCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2162
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2174
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2163
2175
  var _c;
2164
2176
  return __generator(this, function (_d) {
2165
2177
  switch (_d.label) {
@@ -2169,7 +2181,6 @@ var deserializeAws_json1_1CreateUnreferencedMergeCommitCommandError = function (
2169
2181
  return [4, parseBody(output.body, context)];
2170
2182
  case 1:
2171
2183
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2172
- errorCode = "UnknownError";
2173
2184
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2174
2185
  _b = errorCode;
2175
2186
  switch (_b) {
@@ -2321,10 +2332,12 @@ var deserializeAws_json1_1CreateUnreferencedMergeCommitCommandError = function (
2321
2332
  case 73: throw _d.sent();
2322
2333
  case 74:
2323
2334
  parsedBody = parsedOutput.body;
2335
+ $metadata = deserializeMetadata(output);
2336
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2324
2337
  response = new __BaseException({
2325
- name: parsedBody.code || parsedBody.Code || errorCode,
2338
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2326
2339
  $fault: "client",
2327
- $metadata: deserializeMetadata(output),
2340
+ $metadata: $metadata,
2328
2341
  });
2329
2342
  throw __decorateServiceException(response, parsedBody);
2330
2343
  }
@@ -2349,7 +2362,7 @@ export var deserializeAws_json1_1DeleteApprovalRuleTemplateCommand = function (o
2349
2362
  });
2350
2363
  }); };
2351
2364
  var deserializeAws_json1_1DeleteApprovalRuleTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2352
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2365
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2353
2366
  var _c;
2354
2367
  return __generator(this, function (_d) {
2355
2368
  switch (_d.label) {
@@ -2359,7 +2372,6 @@ var deserializeAws_json1_1DeleteApprovalRuleTemplateCommandError = function (out
2359
2372
  return [4, parseBody(output.body, context)];
2360
2373
  case 1:
2361
2374
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2362
- errorCode = "UnknownError";
2363
2375
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2364
2376
  _b = errorCode;
2365
2377
  switch (_b) {
@@ -2379,10 +2391,12 @@ var deserializeAws_json1_1DeleteApprovalRuleTemplateCommandError = function (out
2379
2391
  case 7: throw _d.sent();
2380
2392
  case 8:
2381
2393
  parsedBody = parsedOutput.body;
2394
+ $metadata = deserializeMetadata(output);
2395
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2382
2396
  response = new __BaseException({
2383
- name: parsedBody.code || parsedBody.Code || errorCode,
2397
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2384
2398
  $fault: "client",
2385
- $metadata: deserializeMetadata(output),
2399
+ $metadata: $metadata,
2386
2400
  });
2387
2401
  throw __decorateServiceException(response, parsedBody);
2388
2402
  }
@@ -2407,7 +2421,7 @@ export var deserializeAws_json1_1DeleteBranchCommand = function (output, context
2407
2421
  });
2408
2422
  }); };
2409
2423
  var deserializeAws_json1_1DeleteBranchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2410
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2424
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2411
2425
  var _c;
2412
2426
  return __generator(this, function (_d) {
2413
2427
  switch (_d.label) {
@@ -2417,7 +2431,6 @@ var deserializeAws_json1_1DeleteBranchCommandError = function (output, context)
2417
2431
  return [4, parseBody(output.body, context)];
2418
2432
  case 1:
2419
2433
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2420
- errorCode = "UnknownError";
2421
2434
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2422
2435
  _b = errorCode;
2423
2436
  switch (_b) {
@@ -2469,10 +2482,12 @@ var deserializeAws_json1_1DeleteBranchCommandError = function (output, context)
2469
2482
  case 23: throw _d.sent();
2470
2483
  case 24:
2471
2484
  parsedBody = parsedOutput.body;
2485
+ $metadata = deserializeMetadata(output);
2486
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2472
2487
  response = new __BaseException({
2473
- name: parsedBody.code || parsedBody.Code || errorCode,
2488
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2474
2489
  $fault: "client",
2475
- $metadata: deserializeMetadata(output),
2490
+ $metadata: $metadata,
2476
2491
  });
2477
2492
  throw __decorateServiceException(response, parsedBody);
2478
2493
  }
@@ -2497,7 +2512,7 @@ export var deserializeAws_json1_1DeleteCommentContentCommand = function (output,
2497
2512
  });
2498
2513
  }); };
2499
2514
  var deserializeAws_json1_1DeleteCommentContentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2500
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2515
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2501
2516
  var _c;
2502
2517
  return __generator(this, function (_d) {
2503
2518
  switch (_d.label) {
@@ -2507,7 +2522,6 @@ var deserializeAws_json1_1DeleteCommentContentCommandError = function (output, c
2507
2522
  return [4, parseBody(output.body, context)];
2508
2523
  case 1:
2509
2524
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2510
- errorCode = "UnknownError";
2511
2525
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2512
2526
  _b = errorCode;
2513
2527
  switch (_b) {
@@ -2531,10 +2545,12 @@ var deserializeAws_json1_1DeleteCommentContentCommandError = function (output, c
2531
2545
  case 9: throw _d.sent();
2532
2546
  case 10:
2533
2547
  parsedBody = parsedOutput.body;
2548
+ $metadata = deserializeMetadata(output);
2549
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2534
2550
  response = new __BaseException({
2535
- name: parsedBody.code || parsedBody.Code || errorCode,
2551
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2536
2552
  $fault: "client",
2537
- $metadata: deserializeMetadata(output),
2553
+ $metadata: $metadata,
2538
2554
  });
2539
2555
  throw __decorateServiceException(response, parsedBody);
2540
2556
  }
@@ -2559,7 +2575,7 @@ export var deserializeAws_json1_1DeleteFileCommand = function (output, context)
2559
2575
  });
2560
2576
  }); };
2561
2577
  var deserializeAws_json1_1DeleteFileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2562
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2578
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2563
2579
  var _c;
2564
2580
  return __generator(this, function (_d) {
2565
2581
  switch (_d.label) {
@@ -2569,7 +2585,6 @@ var deserializeAws_json1_1DeleteFileCommandError = function (output, context) {
2569
2585
  return [4, parseBody(output.body, context)];
2570
2586
  case 1:
2571
2587
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2572
- errorCode = "UnknownError";
2573
2588
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2574
2589
  _b = errorCode;
2575
2590
  switch (_b) {
@@ -2665,10 +2680,12 @@ var deserializeAws_json1_1DeleteFileCommandError = function (output, context) {
2665
2680
  case 45: throw _d.sent();
2666
2681
  case 46:
2667
2682
  parsedBody = parsedOutput.body;
2683
+ $metadata = deserializeMetadata(output);
2684
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2668
2685
  response = new __BaseException({
2669
- name: parsedBody.code || parsedBody.Code || errorCode,
2686
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2670
2687
  $fault: "client",
2671
- $metadata: deserializeMetadata(output),
2688
+ $metadata: $metadata,
2672
2689
  });
2673
2690
  throw __decorateServiceException(response, parsedBody);
2674
2691
  }
@@ -2693,7 +2710,7 @@ export var deserializeAws_json1_1DeletePullRequestApprovalRuleCommand = function
2693
2710
  });
2694
2711
  }); };
2695
2712
  var deserializeAws_json1_1DeletePullRequestApprovalRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2696
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2713
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2697
2714
  var _c;
2698
2715
  return __generator(this, function (_d) {
2699
2716
  switch (_d.label) {
@@ -2703,7 +2720,6 @@ var deserializeAws_json1_1DeletePullRequestApprovalRuleCommandError = function (
2703
2720
  return [4, parseBody(output.body, context)];
2704
2721
  case 1:
2705
2722
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2706
- errorCode = "UnknownError";
2707
2723
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2708
2724
  _b = errorCode;
2709
2725
  switch (_b) {
@@ -2759,10 +2775,12 @@ var deserializeAws_json1_1DeletePullRequestApprovalRuleCommandError = function (
2759
2775
  case 25: throw _d.sent();
2760
2776
  case 26:
2761
2777
  parsedBody = parsedOutput.body;
2778
+ $metadata = deserializeMetadata(output);
2779
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2762
2780
  response = new __BaseException({
2763
- name: parsedBody.code || parsedBody.Code || errorCode,
2781
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2764
2782
  $fault: "client",
2765
- $metadata: deserializeMetadata(output),
2783
+ $metadata: $metadata,
2766
2784
  });
2767
2785
  throw __decorateServiceException(response, parsedBody);
2768
2786
  }
@@ -2787,7 +2805,7 @@ export var deserializeAws_json1_1DeleteRepositoryCommand = function (output, con
2787
2805
  });
2788
2806
  }); };
2789
2807
  var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2790
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2808
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2791
2809
  var _c;
2792
2810
  return __generator(this, function (_d) {
2793
2811
  switch (_d.label) {
@@ -2797,7 +2815,6 @@ var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, conte
2797
2815
  return [4, parseBody(output.body, context)];
2798
2816
  case 1:
2799
2817
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2800
- errorCode = "UnknownError";
2801
2818
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2802
2819
  _b = errorCode;
2803
2820
  switch (_b) {
@@ -2833,10 +2850,12 @@ var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, conte
2833
2850
  case 15: throw _d.sent();
2834
2851
  case 16:
2835
2852
  parsedBody = parsedOutput.body;
2853
+ $metadata = deserializeMetadata(output);
2854
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2836
2855
  response = new __BaseException({
2837
- name: parsedBody.code || parsedBody.Code || errorCode,
2856
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2838
2857
  $fault: "client",
2839
- $metadata: deserializeMetadata(output),
2858
+ $metadata: $metadata,
2840
2859
  });
2841
2860
  throw __decorateServiceException(response, parsedBody);
2842
2861
  }
@@ -2861,7 +2880,7 @@ export var deserializeAws_json1_1DescribeMergeConflictsCommand = function (outpu
2861
2880
  });
2862
2881
  }); };
2863
2882
  var deserializeAws_json1_1DescribeMergeConflictsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2864
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2883
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2865
2884
  var _c;
2866
2885
  return __generator(this, function (_d) {
2867
2886
  switch (_d.label) {
@@ -2871,7 +2890,6 @@ var deserializeAws_json1_1DescribeMergeConflictsCommandError = function (output,
2871
2890
  return [4, parseBody(output.body, context)];
2872
2891
  case 1:
2873
2892
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2874
- errorCode = "UnknownError";
2875
2893
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2876
2894
  _b = errorCode;
2877
2895
  switch (_b) {
@@ -2971,10 +2989,12 @@ var deserializeAws_json1_1DescribeMergeConflictsCommandError = function (output,
2971
2989
  case 47: throw _d.sent();
2972
2990
  case 48:
2973
2991
  parsedBody = parsedOutput.body;
2992
+ $metadata = deserializeMetadata(output);
2993
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2974
2994
  response = new __BaseException({
2975
- name: parsedBody.code || parsedBody.Code || errorCode,
2995
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2976
2996
  $fault: "client",
2977
- $metadata: deserializeMetadata(output),
2997
+ $metadata: $metadata,
2978
2998
  });
2979
2999
  throw __decorateServiceException(response, parsedBody);
2980
3000
  }
@@ -2999,7 +3019,7 @@ export var deserializeAws_json1_1DescribePullRequestEventsCommand = function (ou
2999
3019
  });
3000
3020
  }); };
3001
3021
  var deserializeAws_json1_1DescribePullRequestEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3002
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3022
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3003
3023
  var _c;
3004
3024
  return __generator(this, function (_d) {
3005
3025
  switch (_d.label) {
@@ -3009,7 +3029,6 @@ var deserializeAws_json1_1DescribePullRequestEventsCommandError = function (outp
3009
3029
  return [4, parseBody(output.body, context)];
3010
3030
  case 1:
3011
3031
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3012
- errorCode = "UnknownError";
3013
3032
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3014
3033
  _b = errorCode;
3015
3034
  switch (_b) {
@@ -3069,10 +3088,12 @@ var deserializeAws_json1_1DescribePullRequestEventsCommandError = function (outp
3069
3088
  case 27: throw _d.sent();
3070
3089
  case 28:
3071
3090
  parsedBody = parsedOutput.body;
3091
+ $metadata = deserializeMetadata(output);
3092
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3072
3093
  response = new __BaseException({
3073
- name: parsedBody.code || parsedBody.Code || errorCode,
3094
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3074
3095
  $fault: "client",
3075
- $metadata: deserializeMetadata(output),
3096
+ $metadata: $metadata,
3076
3097
  });
3077
3098
  throw __decorateServiceException(response, parsedBody);
3078
3099
  }
@@ -3097,7 +3118,7 @@ export var deserializeAws_json1_1DisassociateApprovalRuleTemplateFromRepositoryC
3097
3118
  });
3098
3119
  }); };
3099
3120
  var deserializeAws_json1_1DisassociateApprovalRuleTemplateFromRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3100
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3121
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3101
3122
  var _c;
3102
3123
  return __generator(this, function (_d) {
3103
3124
  switch (_d.label) {
@@ -3107,7 +3128,6 @@ var deserializeAws_json1_1DisassociateApprovalRuleTemplateFromRepositoryCommandE
3107
3128
  return [4, parseBody(output.body, context)];
3108
3129
  case 1:
3109
3130
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3110
- errorCode = "UnknownError";
3111
3131
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3112
3132
  _b = errorCode;
3113
3133
  switch (_b) {
@@ -3159,10 +3179,12 @@ var deserializeAws_json1_1DisassociateApprovalRuleTemplateFromRepositoryCommandE
3159
3179
  case 23: throw _d.sent();
3160
3180
  case 24:
3161
3181
  parsedBody = parsedOutput.body;
3182
+ $metadata = deserializeMetadata(output);
3183
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3162
3184
  response = new __BaseException({
3163
- name: parsedBody.code || parsedBody.Code || errorCode,
3185
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3164
3186
  $fault: "client",
3165
- $metadata: deserializeMetadata(output),
3187
+ $metadata: $metadata,
3166
3188
  });
3167
3189
  throw __decorateServiceException(response, parsedBody);
3168
3190
  }
@@ -3187,7 +3209,7 @@ export var deserializeAws_json1_1EvaluatePullRequestApprovalRulesCommand = funct
3187
3209
  });
3188
3210
  }); };
3189
3211
  var deserializeAws_json1_1EvaluatePullRequestApprovalRulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3190
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3212
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3191
3213
  var _c;
3192
3214
  return __generator(this, function (_d) {
3193
3215
  switch (_d.label) {
@@ -3197,7 +3219,6 @@ var deserializeAws_json1_1EvaluatePullRequestApprovalRulesCommandError = functio
3197
3219
  return [4, parseBody(output.body, context)];
3198
3220
  case 1:
3199
3221
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3200
- errorCode = "UnknownError";
3201
3222
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3202
3223
  _b = errorCode;
3203
3224
  switch (_b) {
@@ -3249,10 +3270,12 @@ var deserializeAws_json1_1EvaluatePullRequestApprovalRulesCommandError = functio
3249
3270
  case 23: throw _d.sent();
3250
3271
  case 24:
3251
3272
  parsedBody = parsedOutput.body;
3273
+ $metadata = deserializeMetadata(output);
3274
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3252
3275
  response = new __BaseException({
3253
- name: parsedBody.code || parsedBody.Code || errorCode,
3276
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3254
3277
  $fault: "client",
3255
- $metadata: deserializeMetadata(output),
3278
+ $metadata: $metadata,
3256
3279
  });
3257
3280
  throw __decorateServiceException(response, parsedBody);
3258
3281
  }
@@ -3277,7 +3300,7 @@ export var deserializeAws_json1_1GetApprovalRuleTemplateCommand = function (outp
3277
3300
  });
3278
3301
  }); };
3279
3302
  var deserializeAws_json1_1GetApprovalRuleTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3280
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3303
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3281
3304
  var _c;
3282
3305
  return __generator(this, function (_d) {
3283
3306
  switch (_d.label) {
@@ -3287,7 +3310,6 @@ var deserializeAws_json1_1GetApprovalRuleTemplateCommandError = function (output
3287
3310
  return [4, parseBody(output.body, context)];
3288
3311
  case 1:
3289
3312
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3290
- errorCode = "UnknownError";
3291
3313
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3292
3314
  _b = errorCode;
3293
3315
  switch (_b) {
@@ -3307,10 +3329,12 @@ var deserializeAws_json1_1GetApprovalRuleTemplateCommandError = function (output
3307
3329
  case 7: throw _d.sent();
3308
3330
  case 8:
3309
3331
  parsedBody = parsedOutput.body;
3332
+ $metadata = deserializeMetadata(output);
3333
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3310
3334
  response = new __BaseException({
3311
- name: parsedBody.code || parsedBody.Code || errorCode,
3335
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3312
3336
  $fault: "client",
3313
- $metadata: deserializeMetadata(output),
3337
+ $metadata: $metadata,
3314
3338
  });
3315
3339
  throw __decorateServiceException(response, parsedBody);
3316
3340
  }
@@ -3335,7 +3359,7 @@ export var deserializeAws_json1_1GetBlobCommand = function (output, context) { r
3335
3359
  });
3336
3360
  }); };
3337
3361
  var deserializeAws_json1_1GetBlobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3338
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3362
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3339
3363
  var _c;
3340
3364
  return __generator(this, function (_d) {
3341
3365
  switch (_d.label) {
@@ -3345,7 +3369,6 @@ var deserializeAws_json1_1GetBlobCommandError = function (output, context) { ret
3345
3369
  return [4, parseBody(output.body, context)];
3346
3370
  case 1:
3347
3371
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3348
- errorCode = "UnknownError";
3349
3372
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3350
3373
  _b = errorCode;
3351
3374
  switch (_b) {
@@ -3401,10 +3424,12 @@ var deserializeAws_json1_1GetBlobCommandError = function (output, context) { ret
3401
3424
  case 25: throw _d.sent();
3402
3425
  case 26:
3403
3426
  parsedBody = parsedOutput.body;
3427
+ $metadata = deserializeMetadata(output);
3428
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3404
3429
  response = new __BaseException({
3405
- name: parsedBody.code || parsedBody.Code || errorCode,
3430
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3406
3431
  $fault: "client",
3407
- $metadata: deserializeMetadata(output),
3432
+ $metadata: $metadata,
3408
3433
  });
3409
3434
  throw __decorateServiceException(response, parsedBody);
3410
3435
  }
@@ -3429,7 +3454,7 @@ export var deserializeAws_json1_1GetBranchCommand = function (output, context) {
3429
3454
  });
3430
3455
  }); };
3431
3456
  var deserializeAws_json1_1GetBranchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3432
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3457
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3433
3458
  var _c;
3434
3459
  return __generator(this, function (_d) {
3435
3460
  switch (_d.label) {
@@ -3439,7 +3464,6 @@ var deserializeAws_json1_1GetBranchCommandError = function (output, context) { r
3439
3464
  return [4, parseBody(output.body, context)];
3440
3465
  case 1:
3441
3466
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3442
- errorCode = "UnknownError";
3443
3467
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3444
3468
  _b = errorCode;
3445
3469
  switch (_b) {
@@ -3491,10 +3515,12 @@ var deserializeAws_json1_1GetBranchCommandError = function (output, context) { r
3491
3515
  case 23: throw _d.sent();
3492
3516
  case 24:
3493
3517
  parsedBody = parsedOutput.body;
3518
+ $metadata = deserializeMetadata(output);
3519
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3494
3520
  response = new __BaseException({
3495
- name: parsedBody.code || parsedBody.Code || errorCode,
3521
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3496
3522
  $fault: "client",
3497
- $metadata: deserializeMetadata(output),
3523
+ $metadata: $metadata,
3498
3524
  });
3499
3525
  throw __decorateServiceException(response, parsedBody);
3500
3526
  }
@@ -3519,7 +3545,7 @@ export var deserializeAws_json1_1GetCommentCommand = function (output, context)
3519
3545
  });
3520
3546
  }); };
3521
3547
  var deserializeAws_json1_1GetCommentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3522
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3548
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3523
3549
  var _c;
3524
3550
  return __generator(this, function (_d) {
3525
3551
  switch (_d.label) {
@@ -3529,7 +3555,6 @@ var deserializeAws_json1_1GetCommentCommandError = function (output, context) {
3529
3555
  return [4, parseBody(output.body, context)];
3530
3556
  case 1:
3531
3557
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3532
- errorCode = "UnknownError";
3533
3558
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3534
3559
  _b = errorCode;
3535
3560
  switch (_b) {
@@ -3573,10 +3598,12 @@ var deserializeAws_json1_1GetCommentCommandError = function (output, context) {
3573
3598
  case 19: throw _d.sent();
3574
3599
  case 20:
3575
3600
  parsedBody = parsedOutput.body;
3601
+ $metadata = deserializeMetadata(output);
3602
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3576
3603
  response = new __BaseException({
3577
- name: parsedBody.code || parsedBody.Code || errorCode,
3604
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3578
3605
  $fault: "client",
3579
- $metadata: deserializeMetadata(output),
3606
+ $metadata: $metadata,
3580
3607
  });
3581
3608
  throw __decorateServiceException(response, parsedBody);
3582
3609
  }
@@ -3601,7 +3628,7 @@ export var deserializeAws_json1_1GetCommentReactionsCommand = function (output,
3601
3628
  });
3602
3629
  }); };
3603
3630
  var deserializeAws_json1_1GetCommentReactionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3604
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3631
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3605
3632
  var _c;
3606
3633
  return __generator(this, function (_d) {
3607
3634
  switch (_d.label) {
@@ -3611,7 +3638,6 @@ var deserializeAws_json1_1GetCommentReactionsCommandError = function (output, co
3611
3638
  return [4, parseBody(output.body, context)];
3612
3639
  case 1:
3613
3640
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3614
- errorCode = "UnknownError";
3615
3641
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3616
3642
  _b = errorCode;
3617
3643
  switch (_b) {
@@ -3647,10 +3673,12 @@ var deserializeAws_json1_1GetCommentReactionsCommandError = function (output, co
3647
3673
  case 15: throw _d.sent();
3648
3674
  case 16:
3649
3675
  parsedBody = parsedOutput.body;
3676
+ $metadata = deserializeMetadata(output);
3677
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3650
3678
  response = new __BaseException({
3651
- name: parsedBody.code || parsedBody.Code || errorCode,
3679
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3652
3680
  $fault: "client",
3653
- $metadata: deserializeMetadata(output),
3681
+ $metadata: $metadata,
3654
3682
  });
3655
3683
  throw __decorateServiceException(response, parsedBody);
3656
3684
  }
@@ -3675,7 +3703,7 @@ export var deserializeAws_json1_1GetCommentsForComparedCommitCommand = function
3675
3703
  });
3676
3704
  }); };
3677
3705
  var deserializeAws_json1_1GetCommentsForComparedCommitCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3678
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3706
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3679
3707
  var _c;
3680
3708
  return __generator(this, function (_d) {
3681
3709
  switch (_d.label) {
@@ -3685,7 +3713,6 @@ var deserializeAws_json1_1GetCommentsForComparedCommitCommandError = function (o
3685
3713
  return [4, parseBody(output.body, context)];
3686
3714
  case 1:
3687
3715
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3688
- errorCode = "UnknownError";
3689
3716
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3690
3717
  _b = errorCode;
3691
3718
  switch (_b) {
@@ -3745,10 +3772,12 @@ var deserializeAws_json1_1GetCommentsForComparedCommitCommandError = function (o
3745
3772
  case 27: throw _d.sent();
3746
3773
  case 28:
3747
3774
  parsedBody = parsedOutput.body;
3775
+ $metadata = deserializeMetadata(output);
3776
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3748
3777
  response = new __BaseException({
3749
- name: parsedBody.code || parsedBody.Code || errorCode,
3778
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3750
3779
  $fault: "client",
3751
- $metadata: deserializeMetadata(output),
3780
+ $metadata: $metadata,
3752
3781
  });
3753
3782
  throw __decorateServiceException(response, parsedBody);
3754
3783
  }
@@ -3773,7 +3802,7 @@ export var deserializeAws_json1_1GetCommentsForPullRequestCommand = function (ou
3773
3802
  });
3774
3803
  }); };
3775
3804
  var deserializeAws_json1_1GetCommentsForPullRequestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3776
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3805
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3777
3806
  var _c;
3778
3807
  return __generator(this, function (_d) {
3779
3808
  switch (_d.label) {
@@ -3783,7 +3812,6 @@ var deserializeAws_json1_1GetCommentsForPullRequestCommandError = function (outp
3783
3812
  return [4, parseBody(output.body, context)];
3784
3813
  case 1:
3785
3814
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3786
- errorCode = "UnknownError";
3787
3815
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3788
3816
  _b = errorCode;
3789
3817
  switch (_b) {
@@ -3859,10 +3887,12 @@ var deserializeAws_json1_1GetCommentsForPullRequestCommandError = function (outp
3859
3887
  case 35: throw _d.sent();
3860
3888
  case 36:
3861
3889
  parsedBody = parsedOutput.body;
3890
+ $metadata = deserializeMetadata(output);
3891
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3862
3892
  response = new __BaseException({
3863
- name: parsedBody.code || parsedBody.Code || errorCode,
3893
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3864
3894
  $fault: "client",
3865
- $metadata: deserializeMetadata(output),
3895
+ $metadata: $metadata,
3866
3896
  });
3867
3897
  throw __decorateServiceException(response, parsedBody);
3868
3898
  }
@@ -3887,7 +3917,7 @@ export var deserializeAws_json1_1GetCommitCommand = function (output, context) {
3887
3917
  });
3888
3918
  }); };
3889
3919
  var deserializeAws_json1_1GetCommitCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3890
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3920
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3891
3921
  var _c;
3892
3922
  return __generator(this, function (_d) {
3893
3923
  switch (_d.label) {
@@ -3897,7 +3927,6 @@ var deserializeAws_json1_1GetCommitCommandError = function (output, context) { r
3897
3927
  return [4, parseBody(output.body, context)];
3898
3928
  case 1:
3899
3929
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3900
- errorCode = "UnknownError";
3901
3930
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3902
3931
  _b = errorCode;
3903
3932
  switch (_b) {
@@ -3949,10 +3978,12 @@ var deserializeAws_json1_1GetCommitCommandError = function (output, context) { r
3949
3978
  case 23: throw _d.sent();
3950
3979
  case 24:
3951
3980
  parsedBody = parsedOutput.body;
3981
+ $metadata = deserializeMetadata(output);
3982
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3952
3983
  response = new __BaseException({
3953
- name: parsedBody.code || parsedBody.Code || errorCode,
3984
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3954
3985
  $fault: "client",
3955
- $metadata: deserializeMetadata(output),
3986
+ $metadata: $metadata,
3956
3987
  });
3957
3988
  throw __decorateServiceException(response, parsedBody);
3958
3989
  }
@@ -3977,7 +4008,7 @@ export var deserializeAws_json1_1GetDifferencesCommand = function (output, conte
3977
4008
  });
3978
4009
  }); };
3979
4010
  var deserializeAws_json1_1GetDifferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3980
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
4011
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3981
4012
  var _c;
3982
4013
  return __generator(this, function (_d) {
3983
4014
  switch (_d.label) {
@@ -3987,7 +4018,6 @@ var deserializeAws_json1_1GetDifferencesCommandError = function (output, context
3987
4018
  return [4, parseBody(output.body, context)];
3988
4019
  case 1:
3989
4020
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3990
- errorCode = "UnknownError";
3991
4021
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3992
4022
  _b = errorCode;
3993
4023
  switch (_b) {
@@ -4059,10 +4089,12 @@ var deserializeAws_json1_1GetDifferencesCommandError = function (output, context
4059
4089
  case 33: throw _d.sent();
4060
4090
  case 34:
4061
4091
  parsedBody = parsedOutput.body;
4092
+ $metadata = deserializeMetadata(output);
4093
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4062
4094
  response = new __BaseException({
4063
- name: parsedBody.code || parsedBody.Code || errorCode,
4095
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4064
4096
  $fault: "client",
4065
- $metadata: deserializeMetadata(output),
4097
+ $metadata: $metadata,
4066
4098
  });
4067
4099
  throw __decorateServiceException(response, parsedBody);
4068
4100
  }
@@ -4087,7 +4119,7 @@ export var deserializeAws_json1_1GetFileCommand = function (output, context) { r
4087
4119
  });
4088
4120
  }); };
4089
4121
  var deserializeAws_json1_1GetFileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4090
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
4122
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4091
4123
  var _c;
4092
4124
  return __generator(this, function (_d) {
4093
4125
  switch (_d.label) {
@@ -4097,7 +4129,6 @@ var deserializeAws_json1_1GetFileCommandError = function (output, context) { ret
4097
4129
  return [4, parseBody(output.body, context)];
4098
4130
  case 1:
4099
4131
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4100
- errorCode = "UnknownError";
4101
4132
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4102
4133
  _b = errorCode;
4103
4134
  switch (_b) {
@@ -4161,10 +4192,12 @@ var deserializeAws_json1_1GetFileCommandError = function (output, context) { ret
4161
4192
  case 29: throw _d.sent();
4162
4193
  case 30:
4163
4194
  parsedBody = parsedOutput.body;
4195
+ $metadata = deserializeMetadata(output);
4196
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4164
4197
  response = new __BaseException({
4165
- name: parsedBody.code || parsedBody.Code || errorCode,
4198
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4166
4199
  $fault: "client",
4167
- $metadata: deserializeMetadata(output),
4200
+ $metadata: $metadata,
4168
4201
  });
4169
4202
  throw __decorateServiceException(response, parsedBody);
4170
4203
  }
@@ -4189,7 +4222,7 @@ export var deserializeAws_json1_1GetFolderCommand = function (output, context) {
4189
4222
  });
4190
4223
  }); };
4191
4224
  var deserializeAws_json1_1GetFolderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4192
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
4225
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4193
4226
  var _c;
4194
4227
  return __generator(this, function (_d) {
4195
4228
  switch (_d.label) {
@@ -4199,7 +4232,6 @@ var deserializeAws_json1_1GetFolderCommandError = function (output, context) { r
4199
4232
  return [4, parseBody(output.body, context)];
4200
4233
  case 1:
4201
4234
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4202
- errorCode = "UnknownError";
4203
4235
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4204
4236
  _b = errorCode;
4205
4237
  switch (_b) {
@@ -4259,10 +4291,12 @@ var deserializeAws_json1_1GetFolderCommandError = function (output, context) { r
4259
4291
  case 27: throw _d.sent();
4260
4292
  case 28:
4261
4293
  parsedBody = parsedOutput.body;
4294
+ $metadata = deserializeMetadata(output);
4295
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4262
4296
  response = new __BaseException({
4263
- name: parsedBody.code || parsedBody.Code || errorCode,
4297
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4264
4298
  $fault: "client",
4265
- $metadata: deserializeMetadata(output),
4299
+ $metadata: $metadata,
4266
4300
  });
4267
4301
  throw __decorateServiceException(response, parsedBody);
4268
4302
  }
@@ -4287,7 +4321,7 @@ export var deserializeAws_json1_1GetMergeCommitCommand = function (output, conte
4287
4321
  });
4288
4322
  }); };
4289
4323
  var deserializeAws_json1_1GetMergeCommitCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4290
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
4324
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4291
4325
  var _c;
4292
4326
  return __generator(this, function (_d) {
4293
4327
  switch (_d.label) {
@@ -4297,7 +4331,6 @@ var deserializeAws_json1_1GetMergeCommitCommandError = function (output, context
4297
4331
  return [4, parseBody(output.body, context)];
4298
4332
  case 1:
4299
4333
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4300
- errorCode = "UnknownError";
4301
4334
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4302
4335
  _b = errorCode;
4303
4336
  switch (_b) {
@@ -4357,10 +4390,12 @@ var deserializeAws_json1_1GetMergeCommitCommandError = function (output, context
4357
4390
  case 27: throw _d.sent();
4358
4391
  case 28:
4359
4392
  parsedBody = parsedOutput.body;
4393
+ $metadata = deserializeMetadata(output);
4394
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4360
4395
  response = new __BaseException({
4361
- name: parsedBody.code || parsedBody.Code || errorCode,
4396
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4362
4397
  $fault: "client",
4363
- $metadata: deserializeMetadata(output),
4398
+ $metadata: $metadata,
4364
4399
  });
4365
4400
  throw __decorateServiceException(response, parsedBody);
4366
4401
  }
@@ -4385,7 +4420,7 @@ export var deserializeAws_json1_1GetMergeConflictsCommand = function (output, co
4385
4420
  });
4386
4421
  }); };
4387
4422
  var deserializeAws_json1_1GetMergeConflictsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4388
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
4423
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4389
4424
  var _c;
4390
4425
  return __generator(this, function (_d) {
4391
4426
  switch (_d.label) {
@@ -4395,7 +4430,6 @@ var deserializeAws_json1_1GetMergeConflictsCommandError = function (output, cont
4395
4430
  return [4, parseBody(output.body, context)];
4396
4431
  case 1:
4397
4432
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4398
- errorCode = "UnknownError";
4399
4433
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4400
4434
  _b = errorCode;
4401
4435
  switch (_b) {
@@ -4491,10 +4525,12 @@ var deserializeAws_json1_1GetMergeConflictsCommandError = function (output, cont
4491
4525
  case 45: throw _d.sent();
4492
4526
  case 46:
4493
4527
  parsedBody = parsedOutput.body;
4528
+ $metadata = deserializeMetadata(output);
4529
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4494
4530
  response = new __BaseException({
4495
- name: parsedBody.code || parsedBody.Code || errorCode,
4531
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4496
4532
  $fault: "client",
4497
- $metadata: deserializeMetadata(output),
4533
+ $metadata: $metadata,
4498
4534
  });
4499
4535
  throw __decorateServiceException(response, parsedBody);
4500
4536
  }
@@ -4519,7 +4555,7 @@ export var deserializeAws_json1_1GetMergeOptionsCommand = function (output, cont
4519
4555
  });
4520
4556
  }); };
4521
4557
  var deserializeAws_json1_1GetMergeOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4522
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
4558
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4523
4559
  var _c;
4524
4560
  return __generator(this, function (_d) {
4525
4561
  switch (_d.label) {
@@ -4529,7 +4565,6 @@ var deserializeAws_json1_1GetMergeOptionsCommandError = function (output, contex
4529
4565
  return [4, parseBody(output.body, context)];
4530
4566
  case 1:
4531
4567
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4532
- errorCode = "UnknownError";
4533
4568
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4534
4569
  _b = errorCode;
4535
4570
  switch (_b) {
@@ -4601,10 +4636,12 @@ var deserializeAws_json1_1GetMergeOptionsCommandError = function (output, contex
4601
4636
  case 33: throw _d.sent();
4602
4637
  case 34:
4603
4638
  parsedBody = parsedOutput.body;
4639
+ $metadata = deserializeMetadata(output);
4640
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4604
4641
  response = new __BaseException({
4605
- name: parsedBody.code || parsedBody.Code || errorCode,
4642
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4606
4643
  $fault: "client",
4607
- $metadata: deserializeMetadata(output),
4644
+ $metadata: $metadata,
4608
4645
  });
4609
4646
  throw __decorateServiceException(response, parsedBody);
4610
4647
  }
@@ -4629,7 +4666,7 @@ export var deserializeAws_json1_1GetPullRequestCommand = function (output, conte
4629
4666
  });
4630
4667
  }); };
4631
4668
  var deserializeAws_json1_1GetPullRequestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4632
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
4669
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4633
4670
  var _c;
4634
4671
  return __generator(this, function (_d) {
4635
4672
  switch (_d.label) {
@@ -4639,7 +4676,6 @@ var deserializeAws_json1_1GetPullRequestCommandError = function (output, context
4639
4676
  return [4, parseBody(output.body, context)];
4640
4677
  case 1:
4641
4678
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4642
- errorCode = "UnknownError";
4643
4679
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4644
4680
  _b = errorCode;
4645
4681
  switch (_b) {
@@ -4679,10 +4715,12 @@ var deserializeAws_json1_1GetPullRequestCommandError = function (output, context
4679
4715
  case 17: throw _d.sent();
4680
4716
  case 18:
4681
4717
  parsedBody = parsedOutput.body;
4718
+ $metadata = deserializeMetadata(output);
4719
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4682
4720
  response = new __BaseException({
4683
- name: parsedBody.code || parsedBody.Code || errorCode,
4721
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4684
4722
  $fault: "client",
4685
- $metadata: deserializeMetadata(output),
4723
+ $metadata: $metadata,
4686
4724
  });
4687
4725
  throw __decorateServiceException(response, parsedBody);
4688
4726
  }
@@ -4707,7 +4745,7 @@ export var deserializeAws_json1_1GetPullRequestApprovalStatesCommand = function
4707
4745
  });
4708
4746
  }); };
4709
4747
  var deserializeAws_json1_1GetPullRequestApprovalStatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4710
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
4748
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4711
4749
  var _c;
4712
4750
  return __generator(this, function (_d) {
4713
4751
  switch (_d.label) {
@@ -4717,7 +4755,6 @@ var deserializeAws_json1_1GetPullRequestApprovalStatesCommandError = function (o
4717
4755
  return [4, parseBody(output.body, context)];
4718
4756
  case 1:
4719
4757
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4720
- errorCode = "UnknownError";
4721
4758
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4722
4759
  _b = errorCode;
4723
4760
  switch (_b) {
@@ -4765,10 +4802,12 @@ var deserializeAws_json1_1GetPullRequestApprovalStatesCommandError = function (o
4765
4802
  case 21: throw _d.sent();
4766
4803
  case 22:
4767
4804
  parsedBody = parsedOutput.body;
4805
+ $metadata = deserializeMetadata(output);
4806
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4768
4807
  response = new __BaseException({
4769
- name: parsedBody.code || parsedBody.Code || errorCode,
4808
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4770
4809
  $fault: "client",
4771
- $metadata: deserializeMetadata(output),
4810
+ $metadata: $metadata,
4772
4811
  });
4773
4812
  throw __decorateServiceException(response, parsedBody);
4774
4813
  }
@@ -4793,7 +4832,7 @@ export var deserializeAws_json1_1GetPullRequestOverrideStateCommand = function (
4793
4832
  });
4794
4833
  }); };
4795
4834
  var deserializeAws_json1_1GetPullRequestOverrideStateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4796
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
4835
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4797
4836
  var _c;
4798
4837
  return __generator(this, function (_d) {
4799
4838
  switch (_d.label) {
@@ -4803,7 +4842,6 @@ var deserializeAws_json1_1GetPullRequestOverrideStateCommandError = function (ou
4803
4842
  return [4, parseBody(output.body, context)];
4804
4843
  case 1:
4805
4844
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4806
- errorCode = "UnknownError";
4807
4845
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4808
4846
  _b = errorCode;
4809
4847
  switch (_b) {
@@ -4851,10 +4889,12 @@ var deserializeAws_json1_1GetPullRequestOverrideStateCommandError = function (ou
4851
4889
  case 21: throw _d.sent();
4852
4890
  case 22:
4853
4891
  parsedBody = parsedOutput.body;
4892
+ $metadata = deserializeMetadata(output);
4893
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4854
4894
  response = new __BaseException({
4855
- name: parsedBody.code || parsedBody.Code || errorCode,
4895
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4856
4896
  $fault: "client",
4857
- $metadata: deserializeMetadata(output),
4897
+ $metadata: $metadata,
4858
4898
  });
4859
4899
  throw __decorateServiceException(response, parsedBody);
4860
4900
  }
@@ -4879,7 +4919,7 @@ export var deserializeAws_json1_1GetRepositoryCommand = function (output, contex
4879
4919
  });
4880
4920
  }); };
4881
4921
  var deserializeAws_json1_1GetRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4882
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
4922
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4883
4923
  var _c;
4884
4924
  return __generator(this, function (_d) {
4885
4925
  switch (_d.label) {
@@ -4889,7 +4929,6 @@ var deserializeAws_json1_1GetRepositoryCommandError = function (output, context)
4889
4929
  return [4, parseBody(output.body, context)];
4890
4930
  case 1:
4891
4931
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4892
- errorCode = "UnknownError";
4893
4932
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4894
4933
  _b = errorCode;
4895
4934
  switch (_b) {
@@ -4929,10 +4968,12 @@ var deserializeAws_json1_1GetRepositoryCommandError = function (output, context)
4929
4968
  case 17: throw _d.sent();
4930
4969
  case 18:
4931
4970
  parsedBody = parsedOutput.body;
4971
+ $metadata = deserializeMetadata(output);
4972
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4932
4973
  response = new __BaseException({
4933
- name: parsedBody.code || parsedBody.Code || errorCode,
4974
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4934
4975
  $fault: "client",
4935
- $metadata: deserializeMetadata(output),
4976
+ $metadata: $metadata,
4936
4977
  });
4937
4978
  throw __decorateServiceException(response, parsedBody);
4938
4979
  }
@@ -4957,7 +4998,7 @@ export var deserializeAws_json1_1GetRepositoryTriggersCommand = function (output
4957
4998
  });
4958
4999
  }); };
4959
5000
  var deserializeAws_json1_1GetRepositoryTriggersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4960
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5001
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4961
5002
  var _c;
4962
5003
  return __generator(this, function (_d) {
4963
5004
  switch (_d.label) {
@@ -4967,7 +5008,6 @@ var deserializeAws_json1_1GetRepositoryTriggersCommandError = function (output,
4967
5008
  return [4, parseBody(output.body, context)];
4968
5009
  case 1:
4969
5010
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
4970
- errorCode = "UnknownError";
4971
5011
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4972
5012
  _b = errorCode;
4973
5013
  switch (_b) {
@@ -5007,10 +5047,12 @@ var deserializeAws_json1_1GetRepositoryTriggersCommandError = function (output,
5007
5047
  case 17: throw _d.sent();
5008
5048
  case 18:
5009
5049
  parsedBody = parsedOutput.body;
5050
+ $metadata = deserializeMetadata(output);
5051
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5010
5052
  response = new __BaseException({
5011
- name: parsedBody.code || parsedBody.Code || errorCode,
5053
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5012
5054
  $fault: "client",
5013
- $metadata: deserializeMetadata(output),
5055
+ $metadata: $metadata,
5014
5056
  });
5015
5057
  throw __decorateServiceException(response, parsedBody);
5016
5058
  }
@@ -5035,7 +5077,7 @@ export var deserializeAws_json1_1ListApprovalRuleTemplatesCommand = function (ou
5035
5077
  });
5036
5078
  }); };
5037
5079
  var deserializeAws_json1_1ListApprovalRuleTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5038
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5080
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5039
5081
  var _c;
5040
5082
  return __generator(this, function (_d) {
5041
5083
  switch (_d.label) {
@@ -5045,7 +5087,6 @@ var deserializeAws_json1_1ListApprovalRuleTemplatesCommandError = function (outp
5045
5087
  return [4, parseBody(output.body, context)];
5046
5088
  case 1:
5047
5089
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5048
- errorCode = "UnknownError";
5049
5090
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5050
5091
  _b = errorCode;
5051
5092
  switch (_b) {
@@ -5061,10 +5102,12 @@ var deserializeAws_json1_1ListApprovalRuleTemplatesCommandError = function (outp
5061
5102
  case 5: throw _d.sent();
5062
5103
  case 6:
5063
5104
  parsedBody = parsedOutput.body;
5105
+ $metadata = deserializeMetadata(output);
5106
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5064
5107
  response = new __BaseException({
5065
- name: parsedBody.code || parsedBody.Code || errorCode,
5108
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5066
5109
  $fault: "client",
5067
- $metadata: deserializeMetadata(output),
5110
+ $metadata: $metadata,
5068
5111
  });
5069
5112
  throw __decorateServiceException(response, parsedBody);
5070
5113
  }
@@ -5089,7 +5132,7 @@ export var deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositor
5089
5132
  });
5090
5133
  }); };
5091
5134
  var deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5092
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5135
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5093
5136
  var _c;
5094
5137
  return __generator(this, function (_d) {
5095
5138
  switch (_d.label) {
@@ -5099,7 +5142,6 @@ var deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryComman
5099
5142
  return [4, parseBody(output.body, context)];
5100
5143
  case 1:
5101
5144
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5102
- errorCode = "UnknownError";
5103
5145
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5104
5146
  _b = errorCode;
5105
5147
  switch (_b) {
@@ -5147,10 +5189,12 @@ var deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryComman
5147
5189
  case 21: throw _d.sent();
5148
5190
  case 22:
5149
5191
  parsedBody = parsedOutput.body;
5192
+ $metadata = deserializeMetadata(output);
5193
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5150
5194
  response = new __BaseException({
5151
- name: parsedBody.code || parsedBody.Code || errorCode,
5195
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5152
5196
  $fault: "client",
5153
- $metadata: deserializeMetadata(output),
5197
+ $metadata: $metadata,
5154
5198
  });
5155
5199
  throw __decorateServiceException(response, parsedBody);
5156
5200
  }
@@ -5175,7 +5219,7 @@ export var deserializeAws_json1_1ListBranchesCommand = function (output, context
5175
5219
  });
5176
5220
  }); };
5177
5221
  var deserializeAws_json1_1ListBranchesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5178
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5222
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5179
5223
  var _c;
5180
5224
  return __generator(this, function (_d) {
5181
5225
  switch (_d.label) {
@@ -5185,7 +5229,6 @@ var deserializeAws_json1_1ListBranchesCommandError = function (output, context)
5185
5229
  return [4, parseBody(output.body, context)];
5186
5230
  case 1:
5187
5231
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5188
- errorCode = "UnknownError";
5189
5232
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5190
5233
  _b = errorCode;
5191
5234
  switch (_b) {
@@ -5229,10 +5272,12 @@ var deserializeAws_json1_1ListBranchesCommandError = function (output, context)
5229
5272
  case 19: throw _d.sent();
5230
5273
  case 20:
5231
5274
  parsedBody = parsedOutput.body;
5275
+ $metadata = deserializeMetadata(output);
5276
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5232
5277
  response = new __BaseException({
5233
- name: parsedBody.code || parsedBody.Code || errorCode,
5278
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5234
5279
  $fault: "client",
5235
- $metadata: deserializeMetadata(output),
5280
+ $metadata: $metadata,
5236
5281
  });
5237
5282
  throw __decorateServiceException(response, parsedBody);
5238
5283
  }
@@ -5257,7 +5302,7 @@ export var deserializeAws_json1_1ListPullRequestsCommand = function (output, con
5257
5302
  });
5258
5303
  }); };
5259
5304
  var deserializeAws_json1_1ListPullRequestsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5260
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5305
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5261
5306
  var _c;
5262
5307
  return __generator(this, function (_d) {
5263
5308
  switch (_d.label) {
@@ -5267,7 +5312,6 @@ var deserializeAws_json1_1ListPullRequestsCommandError = function (output, conte
5267
5312
  return [4, parseBody(output.body, context)];
5268
5313
  case 1:
5269
5314
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5270
- errorCode = "UnknownError";
5271
5315
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5272
5316
  _b = errorCode;
5273
5317
  switch (_b) {
@@ -5327,10 +5371,12 @@ var deserializeAws_json1_1ListPullRequestsCommandError = function (output, conte
5327
5371
  case 27: throw _d.sent();
5328
5372
  case 28:
5329
5373
  parsedBody = parsedOutput.body;
5374
+ $metadata = deserializeMetadata(output);
5375
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5330
5376
  response = new __BaseException({
5331
- name: parsedBody.code || parsedBody.Code || errorCode,
5377
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5332
5378
  $fault: "client",
5333
- $metadata: deserializeMetadata(output),
5379
+ $metadata: $metadata,
5334
5380
  });
5335
5381
  throw __decorateServiceException(response, parsedBody);
5336
5382
  }
@@ -5355,7 +5401,7 @@ export var deserializeAws_json1_1ListRepositoriesCommand = function (output, con
5355
5401
  });
5356
5402
  }); };
5357
5403
  var deserializeAws_json1_1ListRepositoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5358
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5404
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5359
5405
  var _c;
5360
5406
  return __generator(this, function (_d) {
5361
5407
  switch (_d.label) {
@@ -5365,7 +5411,6 @@ var deserializeAws_json1_1ListRepositoriesCommandError = function (output, conte
5365
5411
  return [4, parseBody(output.body, context)];
5366
5412
  case 1:
5367
5413
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5368
- errorCode = "UnknownError";
5369
5414
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5370
5415
  _b = errorCode;
5371
5416
  switch (_b) {
@@ -5385,10 +5430,12 @@ var deserializeAws_json1_1ListRepositoriesCommandError = function (output, conte
5385
5430
  case 7: throw _d.sent();
5386
5431
  case 8:
5387
5432
  parsedBody = parsedOutput.body;
5433
+ $metadata = deserializeMetadata(output);
5434
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5388
5435
  response = new __BaseException({
5389
- name: parsedBody.code || parsedBody.Code || errorCode,
5436
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5390
5437
  $fault: "client",
5391
- $metadata: deserializeMetadata(output),
5438
+ $metadata: $metadata,
5392
5439
  });
5393
5440
  throw __decorateServiceException(response, parsedBody);
5394
5441
  }
@@ -5413,7 +5460,7 @@ export var deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateCommand
5413
5460
  });
5414
5461
  }); };
5415
5462
  var deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5416
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5463
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5417
5464
  var _c;
5418
5465
  return __generator(this, function (_d) {
5419
5466
  switch (_d.label) {
@@ -5423,7 +5470,6 @@ var deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateCommandError =
5423
5470
  return [4, parseBody(output.body, context)];
5424
5471
  case 1:
5425
5472
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5426
- errorCode = "UnknownError";
5427
5473
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5428
5474
  _b = errorCode;
5429
5475
  switch (_b) {
@@ -5471,10 +5517,12 @@ var deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateCommandError =
5471
5517
  case 21: throw _d.sent();
5472
5518
  case 22:
5473
5519
  parsedBody = parsedOutput.body;
5520
+ $metadata = deserializeMetadata(output);
5521
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5474
5522
  response = new __BaseException({
5475
- name: parsedBody.code || parsedBody.Code || errorCode,
5523
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5476
5524
  $fault: "client",
5477
- $metadata: deserializeMetadata(output),
5525
+ $metadata: $metadata,
5478
5526
  });
5479
5527
  throw __decorateServiceException(response, parsedBody);
5480
5528
  }
@@ -5499,7 +5547,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
5499
5547
  });
5500
5548
  }); };
5501
5549
  var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5502
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5550
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5503
5551
  var _c;
5504
5552
  return __generator(this, function (_d) {
5505
5553
  switch (_d.label) {
@@ -5509,7 +5557,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
5509
5557
  return [4, parseBody(output.body, context)];
5510
5558
  case 1:
5511
5559
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5512
- errorCode = "UnknownError";
5513
5560
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5514
5561
  _b = errorCode;
5515
5562
  switch (_b) {
@@ -5533,10 +5580,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
5533
5580
  case 9: throw _d.sent();
5534
5581
  case 10:
5535
5582
  parsedBody = parsedOutput.body;
5583
+ $metadata = deserializeMetadata(output);
5584
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5536
5585
  response = new __BaseException({
5537
- name: parsedBody.code || parsedBody.Code || errorCode,
5586
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5538
5587
  $fault: "client",
5539
- $metadata: deserializeMetadata(output),
5588
+ $metadata: $metadata,
5540
5589
  });
5541
5590
  throw __decorateServiceException(response, parsedBody);
5542
5591
  }
@@ -5561,7 +5610,7 @@ export var deserializeAws_json1_1MergeBranchesByFastForwardCommand = function (o
5561
5610
  });
5562
5611
  }); };
5563
5612
  var deserializeAws_json1_1MergeBranchesByFastForwardCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5564
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5613
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5565
5614
  var _c;
5566
5615
  return __generator(this, function (_d) {
5567
5616
  switch (_d.label) {
@@ -5571,7 +5620,6 @@ var deserializeAws_json1_1MergeBranchesByFastForwardCommandError = function (out
5571
5620
  return [4, parseBody(output.body, context)];
5572
5621
  case 1:
5573
5622
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5574
- errorCode = "UnknownError";
5575
5623
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5576
5624
  _b = errorCode;
5577
5625
  switch (_b) {
@@ -5655,10 +5703,12 @@ var deserializeAws_json1_1MergeBranchesByFastForwardCommandError = function (out
5655
5703
  case 39: throw _d.sent();
5656
5704
  case 40:
5657
5705
  parsedBody = parsedOutput.body;
5706
+ $metadata = deserializeMetadata(output);
5707
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5658
5708
  response = new __BaseException({
5659
- name: parsedBody.code || parsedBody.Code || errorCode,
5709
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5660
5710
  $fault: "client",
5661
- $metadata: deserializeMetadata(output),
5711
+ $metadata: $metadata,
5662
5712
  });
5663
5713
  throw __decorateServiceException(response, parsedBody);
5664
5714
  }
@@ -5683,7 +5733,7 @@ export var deserializeAws_json1_1MergeBranchesBySquashCommand = function (output
5683
5733
  });
5684
5734
  }); };
5685
5735
  var deserializeAws_json1_1MergeBranchesBySquashCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5686
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5736
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5687
5737
  var _c;
5688
5738
  return __generator(this, function (_d) {
5689
5739
  switch (_d.label) {
@@ -5693,7 +5743,6 @@ var deserializeAws_json1_1MergeBranchesBySquashCommandError = function (output,
5693
5743
  return [4, parseBody(output.body, context)];
5694
5744
  case 1:
5695
5745
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5696
- errorCode = "UnknownError";
5697
5746
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5698
5747
  _b = errorCode;
5699
5748
  switch (_b) {
@@ -5857,10 +5906,12 @@ var deserializeAws_json1_1MergeBranchesBySquashCommandError = function (output,
5857
5906
  case 79: throw _d.sent();
5858
5907
  case 80:
5859
5908
  parsedBody = parsedOutput.body;
5909
+ $metadata = deserializeMetadata(output);
5910
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5860
5911
  response = new __BaseException({
5861
- name: parsedBody.code || parsedBody.Code || errorCode,
5912
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5862
5913
  $fault: "client",
5863
- $metadata: deserializeMetadata(output),
5914
+ $metadata: $metadata,
5864
5915
  });
5865
5916
  throw __decorateServiceException(response, parsedBody);
5866
5917
  }
@@ -5885,7 +5936,7 @@ export var deserializeAws_json1_1MergeBranchesByThreeWayCommand = function (outp
5885
5936
  });
5886
5937
  }); };
5887
5938
  var deserializeAws_json1_1MergeBranchesByThreeWayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5888
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
5939
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5889
5940
  var _c;
5890
5941
  return __generator(this, function (_d) {
5891
5942
  switch (_d.label) {
@@ -5895,7 +5946,6 @@ var deserializeAws_json1_1MergeBranchesByThreeWayCommandError = function (output
5895
5946
  return [4, parseBody(output.body, context)];
5896
5947
  case 1:
5897
5948
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5898
- errorCode = "UnknownError";
5899
5949
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5900
5950
  _b = errorCode;
5901
5951
  switch (_b) {
@@ -6059,10 +6109,12 @@ var deserializeAws_json1_1MergeBranchesByThreeWayCommandError = function (output
6059
6109
  case 79: throw _d.sent();
6060
6110
  case 80:
6061
6111
  parsedBody = parsedOutput.body;
6112
+ $metadata = deserializeMetadata(output);
6113
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
6062
6114
  response = new __BaseException({
6063
- name: parsedBody.code || parsedBody.Code || errorCode,
6115
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
6064
6116
  $fault: "client",
6065
- $metadata: deserializeMetadata(output),
6117
+ $metadata: $metadata,
6066
6118
  });
6067
6119
  throw __decorateServiceException(response, parsedBody);
6068
6120
  }
@@ -6087,7 +6139,7 @@ export var deserializeAws_json1_1MergePullRequestByFastForwardCommand = function
6087
6139
  });
6088
6140
  }); };
6089
6141
  var deserializeAws_json1_1MergePullRequestByFastForwardCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6090
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
6142
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
6091
6143
  var _c;
6092
6144
  return __generator(this, function (_d) {
6093
6145
  switch (_d.label) {
@@ -6097,7 +6149,6 @@ var deserializeAws_json1_1MergePullRequestByFastForwardCommandError = function (
6097
6149
  return [4, parseBody(output.body, context)];
6098
6150
  case 1:
6099
6151
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6100
- errorCode = "UnknownError";
6101
6152
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6102
6153
  _b = errorCode;
6103
6154
  switch (_b) {
@@ -6181,10 +6232,12 @@ var deserializeAws_json1_1MergePullRequestByFastForwardCommandError = function (
6181
6232
  case 39: throw _d.sent();
6182
6233
  case 40:
6183
6234
  parsedBody = parsedOutput.body;
6235
+ $metadata = deserializeMetadata(output);
6236
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
6184
6237
  response = new __BaseException({
6185
- name: parsedBody.code || parsedBody.Code || errorCode,
6238
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
6186
6239
  $fault: "client",
6187
- $metadata: deserializeMetadata(output),
6240
+ $metadata: $metadata,
6188
6241
  });
6189
6242
  throw __decorateServiceException(response, parsedBody);
6190
6243
  }
@@ -6209,7 +6262,7 @@ export var deserializeAws_json1_1MergePullRequestBySquashCommand = function (out
6209
6262
  });
6210
6263
  }); };
6211
6264
  var deserializeAws_json1_1MergePullRequestBySquashCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6212
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
6265
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
6213
6266
  var _c;
6214
6267
  return __generator(this, function (_d) {
6215
6268
  switch (_d.label) {
@@ -6219,7 +6272,6 @@ var deserializeAws_json1_1MergePullRequestBySquashCommandError = function (outpu
6219
6272
  return [4, parseBody(output.body, context)];
6220
6273
  case 1:
6221
6274
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6222
- errorCode = "UnknownError";
6223
6275
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6224
6276
  _b = errorCode;
6225
6277
  switch (_b) {
@@ -6379,10 +6431,12 @@ var deserializeAws_json1_1MergePullRequestBySquashCommandError = function (outpu
6379
6431
  case 77: throw _d.sent();
6380
6432
  case 78:
6381
6433
  parsedBody = parsedOutput.body;
6434
+ $metadata = deserializeMetadata(output);
6435
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
6382
6436
  response = new __BaseException({
6383
- name: parsedBody.code || parsedBody.Code || errorCode,
6437
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
6384
6438
  $fault: "client",
6385
- $metadata: deserializeMetadata(output),
6439
+ $metadata: $metadata,
6386
6440
  });
6387
6441
  throw __decorateServiceException(response, parsedBody);
6388
6442
  }
@@ -6407,7 +6461,7 @@ export var deserializeAws_json1_1MergePullRequestByThreeWayCommand = function (o
6407
6461
  });
6408
6462
  }); };
6409
6463
  var deserializeAws_json1_1MergePullRequestByThreeWayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6410
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
6464
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
6411
6465
  var _c;
6412
6466
  return __generator(this, function (_d) {
6413
6467
  switch (_d.label) {
@@ -6417,7 +6471,6 @@ var deserializeAws_json1_1MergePullRequestByThreeWayCommandError = function (out
6417
6471
  return [4, parseBody(output.body, context)];
6418
6472
  case 1:
6419
6473
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6420
- errorCode = "UnknownError";
6421
6474
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6422
6475
  _b = errorCode;
6423
6476
  switch (_b) {
@@ -6577,10 +6630,12 @@ var deserializeAws_json1_1MergePullRequestByThreeWayCommandError = function (out
6577
6630
  case 77: throw _d.sent();
6578
6631
  case 78:
6579
6632
  parsedBody = parsedOutput.body;
6633
+ $metadata = deserializeMetadata(output);
6634
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
6580
6635
  response = new __BaseException({
6581
- name: parsedBody.code || parsedBody.Code || errorCode,
6636
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
6582
6637
  $fault: "client",
6583
- $metadata: deserializeMetadata(output),
6638
+ $metadata: $metadata,
6584
6639
  });
6585
6640
  throw __decorateServiceException(response, parsedBody);
6586
6641
  }
@@ -6605,7 +6660,7 @@ export var deserializeAws_json1_1OverridePullRequestApprovalRulesCommand = funct
6605
6660
  });
6606
6661
  }); };
6607
6662
  var deserializeAws_json1_1OverridePullRequestApprovalRulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6608
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
6663
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
6609
6664
  var _c;
6610
6665
  return __generator(this, function (_d) {
6611
6666
  switch (_d.label) {
@@ -6615,7 +6670,6 @@ var deserializeAws_json1_1OverridePullRequestApprovalRulesCommandError = functio
6615
6670
  return [4, parseBody(output.body, context)];
6616
6671
  case 1:
6617
6672
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6618
- errorCode = "UnknownError";
6619
6673
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6620
6674
  _b = errorCode;
6621
6675
  switch (_b) {
@@ -6683,10 +6737,12 @@ var deserializeAws_json1_1OverridePullRequestApprovalRulesCommandError = functio
6683
6737
  case 31: throw _d.sent();
6684
6738
  case 32:
6685
6739
  parsedBody = parsedOutput.body;
6740
+ $metadata = deserializeMetadata(output);
6741
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
6686
6742
  response = new __BaseException({
6687
- name: parsedBody.code || parsedBody.Code || errorCode,
6743
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
6688
6744
  $fault: "client",
6689
- $metadata: deserializeMetadata(output),
6745
+ $metadata: $metadata,
6690
6746
  });
6691
6747
  throw __decorateServiceException(response, parsedBody);
6692
6748
  }
@@ -6711,7 +6767,7 @@ export var deserializeAws_json1_1PostCommentForComparedCommitCommand = function
6711
6767
  });
6712
6768
  }); };
6713
6769
  var deserializeAws_json1_1PostCommentForComparedCommitCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6714
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
6770
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
6715
6771
  var _c;
6716
6772
  return __generator(this, function (_d) {
6717
6773
  switch (_d.label) {
@@ -6721,7 +6777,6 @@ var deserializeAws_json1_1PostCommentForComparedCommitCommandError = function (o
6721
6777
  return [4, parseBody(output.body, context)];
6722
6778
  case 1:
6723
6779
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6724
- errorCode = "UnknownError";
6725
6780
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6726
6781
  _b = errorCode;
6727
6782
  switch (_b) {
@@ -6821,10 +6876,12 @@ var deserializeAws_json1_1PostCommentForComparedCommitCommandError = function (o
6821
6876
  case 47: throw _d.sent();
6822
6877
  case 48:
6823
6878
  parsedBody = parsedOutput.body;
6879
+ $metadata = deserializeMetadata(output);
6880
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
6824
6881
  response = new __BaseException({
6825
- name: parsedBody.code || parsedBody.Code || errorCode,
6882
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
6826
6883
  $fault: "client",
6827
- $metadata: deserializeMetadata(output),
6884
+ $metadata: $metadata,
6828
6885
  });
6829
6886
  throw __decorateServiceException(response, parsedBody);
6830
6887
  }
@@ -6849,7 +6906,7 @@ export var deserializeAws_json1_1PostCommentForPullRequestCommand = function (ou
6849
6906
  });
6850
6907
  }); };
6851
6908
  var deserializeAws_json1_1PostCommentForPullRequestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6852
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
6909
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
6853
6910
  var _c;
6854
6911
  return __generator(this, function (_d) {
6855
6912
  switch (_d.label) {
@@ -6859,7 +6916,6 @@ var deserializeAws_json1_1PostCommentForPullRequestCommandError = function (outp
6859
6916
  return [4, parseBody(output.body, context)];
6860
6917
  case 1:
6861
6918
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
6862
- errorCode = "UnknownError";
6863
6919
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6864
6920
  _b = errorCode;
6865
6921
  switch (_b) {
@@ -6975,10 +7031,12 @@ var deserializeAws_json1_1PostCommentForPullRequestCommandError = function (outp
6975
7031
  case 55: throw _d.sent();
6976
7032
  case 56:
6977
7033
  parsedBody = parsedOutput.body;
7034
+ $metadata = deserializeMetadata(output);
7035
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
6978
7036
  response = new __BaseException({
6979
- name: parsedBody.code || parsedBody.Code || errorCode,
7037
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
6980
7038
  $fault: "client",
6981
- $metadata: deserializeMetadata(output),
7039
+ $metadata: $metadata,
6982
7040
  });
6983
7041
  throw __decorateServiceException(response, parsedBody);
6984
7042
  }
@@ -7003,7 +7061,7 @@ export var deserializeAws_json1_1PostCommentReplyCommand = function (output, con
7003
7061
  });
7004
7062
  }); };
7005
7063
  var deserializeAws_json1_1PostCommentReplyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7006
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
7064
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7007
7065
  var _c;
7008
7066
  return __generator(this, function (_d) {
7009
7067
  switch (_d.label) {
@@ -7013,7 +7071,6 @@ var deserializeAws_json1_1PostCommentReplyCommandError = function (output, conte
7013
7071
  return [4, parseBody(output.body, context)];
7014
7072
  case 1:
7015
7073
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7016
- errorCode = "UnknownError";
7017
7074
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7018
7075
  _b = errorCode;
7019
7076
  switch (_b) {
@@ -7053,10 +7110,12 @@ var deserializeAws_json1_1PostCommentReplyCommandError = function (output, conte
7053
7110
  case 17: throw _d.sent();
7054
7111
  case 18:
7055
7112
  parsedBody = parsedOutput.body;
7113
+ $metadata = deserializeMetadata(output);
7114
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7056
7115
  response = new __BaseException({
7057
- name: parsedBody.code || parsedBody.Code || errorCode,
7116
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7058
7117
  $fault: "client",
7059
- $metadata: deserializeMetadata(output),
7118
+ $metadata: $metadata,
7060
7119
  });
7061
7120
  throw __decorateServiceException(response, parsedBody);
7062
7121
  }
@@ -7081,7 +7140,7 @@ export var deserializeAws_json1_1PutCommentReactionCommand = function (output, c
7081
7140
  });
7082
7141
  }); };
7083
7142
  var deserializeAws_json1_1PutCommentReactionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7084
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
7143
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7085
7144
  var _c;
7086
7145
  return __generator(this, function (_d) {
7087
7146
  switch (_d.label) {
@@ -7091,7 +7150,6 @@ var deserializeAws_json1_1PutCommentReactionCommandError = function (output, con
7091
7150
  return [4, parseBody(output.body, context)];
7092
7151
  case 1:
7093
7152
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7094
- errorCode = "UnknownError";
7095
7153
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7096
7154
  _b = errorCode;
7097
7155
  switch (_b) {
@@ -7127,10 +7185,12 @@ var deserializeAws_json1_1PutCommentReactionCommandError = function (output, con
7127
7185
  case 15: throw _d.sent();
7128
7186
  case 16:
7129
7187
  parsedBody = parsedOutput.body;
7188
+ $metadata = deserializeMetadata(output);
7189
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7130
7190
  response = new __BaseException({
7131
- name: parsedBody.code || parsedBody.Code || errorCode,
7191
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7132
7192
  $fault: "client",
7133
- $metadata: deserializeMetadata(output),
7193
+ $metadata: $metadata,
7134
7194
  });
7135
7195
  throw __decorateServiceException(response, parsedBody);
7136
7196
  }
@@ -7155,7 +7215,7 @@ export var deserializeAws_json1_1PutFileCommand = function (output, context) { r
7155
7215
  });
7156
7216
  }); };
7157
7217
  var deserializeAws_json1_1PutFileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7158
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
7218
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7159
7219
  var _c;
7160
7220
  return __generator(this, function (_d) {
7161
7221
  switch (_d.label) {
@@ -7165,7 +7225,6 @@ var deserializeAws_json1_1PutFileCommandError = function (output, context) { ret
7165
7225
  return [4, parseBody(output.body, context)];
7166
7226
  case 1:
7167
7227
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7168
- errorCode = "UnknownError";
7169
7228
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7170
7229
  _b = errorCode;
7171
7230
  switch (_b) {
@@ -7293,10 +7352,12 @@ var deserializeAws_json1_1PutFileCommandError = function (output, context) { ret
7293
7352
  case 61: throw _d.sent();
7294
7353
  case 62:
7295
7354
  parsedBody = parsedOutput.body;
7355
+ $metadata = deserializeMetadata(output);
7356
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7296
7357
  response = new __BaseException({
7297
- name: parsedBody.code || parsedBody.Code || errorCode,
7358
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7298
7359
  $fault: "client",
7299
- $metadata: deserializeMetadata(output),
7360
+ $metadata: $metadata,
7300
7361
  });
7301
7362
  throw __decorateServiceException(response, parsedBody);
7302
7363
  }
@@ -7321,7 +7382,7 @@ export var deserializeAws_json1_1PutRepositoryTriggersCommand = function (output
7321
7382
  });
7322
7383
  }); };
7323
7384
  var deserializeAws_json1_1PutRepositoryTriggersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7324
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
7385
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7325
7386
  var _c;
7326
7387
  return __generator(this, function (_d) {
7327
7388
  switch (_d.label) {
@@ -7331,7 +7392,6 @@ var deserializeAws_json1_1PutRepositoryTriggersCommandError = function (output,
7331
7392
  return [4, parseBody(output.body, context)];
7332
7393
  case 1:
7333
7394
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7334
- errorCode = "UnknownError";
7335
7395
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7336
7396
  _b = errorCode;
7337
7397
  switch (_b) {
@@ -7423,10 +7483,12 @@ var deserializeAws_json1_1PutRepositoryTriggersCommandError = function (output,
7423
7483
  case 43: throw _d.sent();
7424
7484
  case 44:
7425
7485
  parsedBody = parsedOutput.body;
7486
+ $metadata = deserializeMetadata(output);
7487
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7426
7488
  response = new __BaseException({
7427
- name: parsedBody.code || parsedBody.Code || errorCode,
7489
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7428
7490
  $fault: "client",
7429
- $metadata: deserializeMetadata(output),
7491
+ $metadata: $metadata,
7430
7492
  });
7431
7493
  throw __decorateServiceException(response, parsedBody);
7432
7494
  }
@@ -7451,7 +7513,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
7451
7513
  });
7452
7514
  }); };
7453
7515
  var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7454
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
7516
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7455
7517
  var _c;
7456
7518
  return __generator(this, function (_d) {
7457
7519
  switch (_d.label) {
@@ -7461,7 +7523,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
7461
7523
  return [4, parseBody(output.body, context)];
7462
7524
  case 1:
7463
7525
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7464
- errorCode = "UnknownError";
7465
7526
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7466
7527
  _b = errorCode;
7467
7528
  switch (_b) {
@@ -7505,10 +7566,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
7505
7566
  case 19: throw _d.sent();
7506
7567
  case 20:
7507
7568
  parsedBody = parsedOutput.body;
7569
+ $metadata = deserializeMetadata(output);
7570
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7508
7571
  response = new __BaseException({
7509
- name: parsedBody.code || parsedBody.Code || errorCode,
7572
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7510
7573
  $fault: "client",
7511
- $metadata: deserializeMetadata(output),
7574
+ $metadata: $metadata,
7512
7575
  });
7513
7576
  throw __decorateServiceException(response, parsedBody);
7514
7577
  }
@@ -7533,7 +7596,7 @@ export var deserializeAws_json1_1TestRepositoryTriggersCommand = function (outpu
7533
7596
  });
7534
7597
  }); };
7535
7598
  var deserializeAws_json1_1TestRepositoryTriggersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7536
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
7599
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7537
7600
  var _c;
7538
7601
  return __generator(this, function (_d) {
7539
7602
  switch (_d.label) {
@@ -7543,7 +7606,6 @@ var deserializeAws_json1_1TestRepositoryTriggersCommandError = function (output,
7543
7606
  return [4, parseBody(output.body, context)];
7544
7607
  case 1:
7545
7608
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7546
- errorCode = "UnknownError";
7547
7609
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7548
7610
  _b = errorCode;
7549
7611
  switch (_b) {
@@ -7635,10 +7697,12 @@ var deserializeAws_json1_1TestRepositoryTriggersCommandError = function (output,
7635
7697
  case 43: throw _d.sent();
7636
7698
  case 44:
7637
7699
  parsedBody = parsedOutput.body;
7700
+ $metadata = deserializeMetadata(output);
7701
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7638
7702
  response = new __BaseException({
7639
- name: parsedBody.code || parsedBody.Code || errorCode,
7703
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7640
7704
  $fault: "client",
7641
- $metadata: deserializeMetadata(output),
7705
+ $metadata: $metadata,
7642
7706
  });
7643
7707
  throw __decorateServiceException(response, parsedBody);
7644
7708
  }
@@ -7663,7 +7727,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
7663
7727
  });
7664
7728
  }); };
7665
7729
  var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7666
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
7730
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7667
7731
  var _c;
7668
7732
  return __generator(this, function (_d) {
7669
7733
  switch (_d.label) {
@@ -7673,7 +7737,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
7673
7737
  return [4, parseBody(output.body, context)];
7674
7738
  case 1:
7675
7739
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7676
- errorCode = "UnknownError";
7677
7740
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7678
7741
  _b = errorCode;
7679
7742
  switch (_b) {
@@ -7717,10 +7780,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
7717
7780
  case 19: throw _d.sent();
7718
7781
  case 20:
7719
7782
  parsedBody = parsedOutput.body;
7783
+ $metadata = deserializeMetadata(output);
7784
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7720
7785
  response = new __BaseException({
7721
- name: parsedBody.code || parsedBody.Code || errorCode,
7786
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7722
7787
  $fault: "client",
7723
- $metadata: deserializeMetadata(output),
7788
+ $metadata: $metadata,
7724
7789
  });
7725
7790
  throw __decorateServiceException(response, parsedBody);
7726
7791
  }
@@ -7745,7 +7810,7 @@ export var deserializeAws_json1_1UpdateApprovalRuleTemplateContentCommand = func
7745
7810
  });
7746
7811
  }); };
7747
7812
  var deserializeAws_json1_1UpdateApprovalRuleTemplateContentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7748
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
7813
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7749
7814
  var _c;
7750
7815
  return __generator(this, function (_d) {
7751
7816
  switch (_d.label) {
@@ -7755,7 +7820,6 @@ var deserializeAws_json1_1UpdateApprovalRuleTemplateContentCommandError = functi
7755
7820
  return [4, parseBody(output.body, context)];
7756
7821
  case 1:
7757
7822
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7758
- errorCode = "UnknownError";
7759
7823
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7760
7824
  _b = errorCode;
7761
7825
  switch (_b) {
@@ -7787,10 +7851,12 @@ var deserializeAws_json1_1UpdateApprovalRuleTemplateContentCommandError = functi
7787
7851
  case 13: throw _d.sent();
7788
7852
  case 14:
7789
7853
  parsedBody = parsedOutput.body;
7854
+ $metadata = deserializeMetadata(output);
7855
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7790
7856
  response = new __BaseException({
7791
- name: parsedBody.code || parsedBody.Code || errorCode,
7857
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7792
7858
  $fault: "client",
7793
- $metadata: deserializeMetadata(output),
7859
+ $metadata: $metadata,
7794
7860
  });
7795
7861
  throw __decorateServiceException(response, parsedBody);
7796
7862
  }
@@ -7815,7 +7881,7 @@ export var deserializeAws_json1_1UpdateApprovalRuleTemplateDescriptionCommand =
7815
7881
  });
7816
7882
  }); };
7817
7883
  var deserializeAws_json1_1UpdateApprovalRuleTemplateDescriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7818
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
7884
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7819
7885
  var _c;
7820
7886
  return __generator(this, function (_d) {
7821
7887
  switch (_d.label) {
@@ -7825,7 +7891,6 @@ var deserializeAws_json1_1UpdateApprovalRuleTemplateDescriptionCommandError = fu
7825
7891
  return [4, parseBody(output.body, context)];
7826
7892
  case 1:
7827
7893
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7828
- errorCode = "UnknownError";
7829
7894
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7830
7895
  _b = errorCode;
7831
7896
  switch (_b) {
@@ -7849,10 +7914,12 @@ var deserializeAws_json1_1UpdateApprovalRuleTemplateDescriptionCommandError = fu
7849
7914
  case 9: throw _d.sent();
7850
7915
  case 10:
7851
7916
  parsedBody = parsedOutput.body;
7917
+ $metadata = deserializeMetadata(output);
7918
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7852
7919
  response = new __BaseException({
7853
- name: parsedBody.code || parsedBody.Code || errorCode,
7920
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7854
7921
  $fault: "client",
7855
- $metadata: deserializeMetadata(output),
7922
+ $metadata: $metadata,
7856
7923
  });
7857
7924
  throw __decorateServiceException(response, parsedBody);
7858
7925
  }
@@ -7877,7 +7944,7 @@ export var deserializeAws_json1_1UpdateApprovalRuleTemplateNameCommand = functio
7877
7944
  });
7878
7945
  }); };
7879
7946
  var deserializeAws_json1_1UpdateApprovalRuleTemplateNameCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7880
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
7947
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7881
7948
  var _c;
7882
7949
  return __generator(this, function (_d) {
7883
7950
  switch (_d.label) {
@@ -7887,7 +7954,6 @@ var deserializeAws_json1_1UpdateApprovalRuleTemplateNameCommandError = function
7887
7954
  return [4, parseBody(output.body, context)];
7888
7955
  case 1:
7889
7956
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7890
- errorCode = "UnknownError";
7891
7957
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7892
7958
  _b = errorCode;
7893
7959
  switch (_b) {
@@ -7911,10 +7977,12 @@ var deserializeAws_json1_1UpdateApprovalRuleTemplateNameCommandError = function
7911
7977
  case 9: throw _d.sent();
7912
7978
  case 10:
7913
7979
  parsedBody = parsedOutput.body;
7980
+ $metadata = deserializeMetadata(output);
7981
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7914
7982
  response = new __BaseException({
7915
- name: parsedBody.code || parsedBody.Code || errorCode,
7983
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7916
7984
  $fault: "client",
7917
- $metadata: deserializeMetadata(output),
7985
+ $metadata: $metadata,
7918
7986
  });
7919
7987
  throw __decorateServiceException(response, parsedBody);
7920
7988
  }
@@ -7939,7 +8007,7 @@ export var deserializeAws_json1_1UpdateCommentCommand = function (output, contex
7939
8007
  });
7940
8008
  }); };
7941
8009
  var deserializeAws_json1_1UpdateCommentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7942
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
8010
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
7943
8011
  var _c;
7944
8012
  return __generator(this, function (_d) {
7945
8013
  switch (_d.label) {
@@ -7949,7 +8017,6 @@ var deserializeAws_json1_1UpdateCommentCommandError = function (output, context)
7949
8017
  return [4, parseBody(output.body, context)];
7950
8018
  case 1:
7951
8019
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
7952
- errorCode = "UnknownError";
7953
8020
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7954
8021
  _b = errorCode;
7955
8022
  switch (_b) {
@@ -7985,10 +8052,12 @@ var deserializeAws_json1_1UpdateCommentCommandError = function (output, context)
7985
8052
  case 15: throw _d.sent();
7986
8053
  case 16:
7987
8054
  parsedBody = parsedOutput.body;
8055
+ $metadata = deserializeMetadata(output);
8056
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
7988
8057
  response = new __BaseException({
7989
- name: parsedBody.code || parsedBody.Code || errorCode,
8058
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
7990
8059
  $fault: "client",
7991
- $metadata: deserializeMetadata(output),
8060
+ $metadata: $metadata,
7992
8061
  });
7993
8062
  throw __decorateServiceException(response, parsedBody);
7994
8063
  }
@@ -8013,7 +8082,7 @@ export var deserializeAws_json1_1UpdateDefaultBranchCommand = function (output,
8013
8082
  });
8014
8083
  }); };
8015
8084
  var deserializeAws_json1_1UpdateDefaultBranchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8016
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
8085
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
8017
8086
  var _c;
8018
8087
  return __generator(this, function (_d) {
8019
8088
  switch (_d.label) {
@@ -8023,7 +8092,6 @@ var deserializeAws_json1_1UpdateDefaultBranchCommandError = function (output, co
8023
8092
  return [4, parseBody(output.body, context)];
8024
8093
  case 1:
8025
8094
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8026
- errorCode = "UnknownError";
8027
8095
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8028
8096
  _b = errorCode;
8029
8097
  switch (_b) {
@@ -8075,10 +8143,12 @@ var deserializeAws_json1_1UpdateDefaultBranchCommandError = function (output, co
8075
8143
  case 23: throw _d.sent();
8076
8144
  case 24:
8077
8145
  parsedBody = parsedOutput.body;
8146
+ $metadata = deserializeMetadata(output);
8147
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
8078
8148
  response = new __BaseException({
8079
- name: parsedBody.code || parsedBody.Code || errorCode,
8149
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
8080
8150
  $fault: "client",
8081
- $metadata: deserializeMetadata(output),
8151
+ $metadata: $metadata,
8082
8152
  });
8083
8153
  throw __decorateServiceException(response, parsedBody);
8084
8154
  }
@@ -8103,7 +8173,7 @@ export var deserializeAws_json1_1UpdatePullRequestApprovalRuleContentCommand = f
8103
8173
  });
8104
8174
  }); };
8105
8175
  var deserializeAws_json1_1UpdatePullRequestApprovalRuleContentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8106
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
8176
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
8107
8177
  var _c;
8108
8178
  return __generator(this, function (_d) {
8109
8179
  switch (_d.label) {
@@ -8113,7 +8183,6 @@ var deserializeAws_json1_1UpdatePullRequestApprovalRuleContentCommandError = fun
8113
8183
  return [4, parseBody(output.body, context)];
8114
8184
  case 1:
8115
8185
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8116
- errorCode = "UnknownError";
8117
8186
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8118
8187
  _b = errorCode;
8119
8188
  switch (_b) {
@@ -8185,10 +8254,12 @@ var deserializeAws_json1_1UpdatePullRequestApprovalRuleContentCommandError = fun
8185
8254
  case 33: throw _d.sent();
8186
8255
  case 34:
8187
8256
  parsedBody = parsedOutput.body;
8257
+ $metadata = deserializeMetadata(output);
8258
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
8188
8259
  response = new __BaseException({
8189
- name: parsedBody.code || parsedBody.Code || errorCode,
8260
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
8190
8261
  $fault: "client",
8191
- $metadata: deserializeMetadata(output),
8262
+ $metadata: $metadata,
8192
8263
  });
8193
8264
  throw __decorateServiceException(response, parsedBody);
8194
8265
  }
@@ -8213,7 +8284,7 @@ export var deserializeAws_json1_1UpdatePullRequestApprovalStateCommand = functio
8213
8284
  });
8214
8285
  }); };
8215
8286
  var deserializeAws_json1_1UpdatePullRequestApprovalStateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8216
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
8287
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
8217
8288
  var _c;
8218
8289
  return __generator(this, function (_d) {
8219
8290
  switch (_d.label) {
@@ -8223,7 +8294,6 @@ var deserializeAws_json1_1UpdatePullRequestApprovalStateCommandError = function
8223
8294
  return [4, parseBody(output.body, context)];
8224
8295
  case 1:
8225
8296
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8226
- errorCode = "UnknownError";
8227
8297
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8228
8298
  _b = errorCode;
8229
8299
  switch (_b) {
@@ -8295,10 +8365,12 @@ var deserializeAws_json1_1UpdatePullRequestApprovalStateCommandError = function
8295
8365
  case 33: throw _d.sent();
8296
8366
  case 34:
8297
8367
  parsedBody = parsedOutput.body;
8368
+ $metadata = deserializeMetadata(output);
8369
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
8298
8370
  response = new __BaseException({
8299
- name: parsedBody.code || parsedBody.Code || errorCode,
8371
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
8300
8372
  $fault: "client",
8301
- $metadata: deserializeMetadata(output),
8373
+ $metadata: $metadata,
8302
8374
  });
8303
8375
  throw __decorateServiceException(response, parsedBody);
8304
8376
  }
@@ -8323,7 +8395,7 @@ export var deserializeAws_json1_1UpdatePullRequestDescriptionCommand = function
8323
8395
  });
8324
8396
  }); };
8325
8397
  var deserializeAws_json1_1UpdatePullRequestDescriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8326
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
8398
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
8327
8399
  var _c;
8328
8400
  return __generator(this, function (_d) {
8329
8401
  switch (_d.label) {
@@ -8333,7 +8405,6 @@ var deserializeAws_json1_1UpdatePullRequestDescriptionCommandError = function (o
8333
8405
  return [4, parseBody(output.body, context)];
8334
8406
  case 1:
8335
8407
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8336
- errorCode = "UnknownError";
8337
8408
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8338
8409
  _b = errorCode;
8339
8410
  switch (_b) {
@@ -8361,10 +8432,12 @@ var deserializeAws_json1_1UpdatePullRequestDescriptionCommandError = function (o
8361
8432
  case 11: throw _d.sent();
8362
8433
  case 12:
8363
8434
  parsedBody = parsedOutput.body;
8435
+ $metadata = deserializeMetadata(output);
8436
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
8364
8437
  response = new __BaseException({
8365
- name: parsedBody.code || parsedBody.Code || errorCode,
8438
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
8366
8439
  $fault: "client",
8367
- $metadata: deserializeMetadata(output),
8440
+ $metadata: $metadata,
8368
8441
  });
8369
8442
  throw __decorateServiceException(response, parsedBody);
8370
8443
  }
@@ -8389,7 +8462,7 @@ export var deserializeAws_json1_1UpdatePullRequestStatusCommand = function (outp
8389
8462
  });
8390
8463
  }); };
8391
8464
  var deserializeAws_json1_1UpdatePullRequestStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8392
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
8465
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
8393
8466
  var _c;
8394
8467
  return __generator(this, function (_d) {
8395
8468
  switch (_d.label) {
@@ -8399,7 +8472,6 @@ var deserializeAws_json1_1UpdatePullRequestStatusCommandError = function (output
8399
8472
  return [4, parseBody(output.body, context)];
8400
8473
  case 1:
8401
8474
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8402
- errorCode = "UnknownError";
8403
8475
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8404
8476
  _b = errorCode;
8405
8477
  switch (_b) {
@@ -8451,10 +8523,12 @@ var deserializeAws_json1_1UpdatePullRequestStatusCommandError = function (output
8451
8523
  case 23: throw _d.sent();
8452
8524
  case 24:
8453
8525
  parsedBody = parsedOutput.body;
8526
+ $metadata = deserializeMetadata(output);
8527
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
8454
8528
  response = new __BaseException({
8455
- name: parsedBody.code || parsedBody.Code || errorCode,
8529
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
8456
8530
  $fault: "client",
8457
- $metadata: deserializeMetadata(output),
8531
+ $metadata: $metadata,
8458
8532
  });
8459
8533
  throw __decorateServiceException(response, parsedBody);
8460
8534
  }
@@ -8479,7 +8553,7 @@ export var deserializeAws_json1_1UpdatePullRequestTitleCommand = function (outpu
8479
8553
  });
8480
8554
  }); };
8481
8555
  var deserializeAws_json1_1UpdatePullRequestTitleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8482
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
8556
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
8483
8557
  var _c;
8484
8558
  return __generator(this, function (_d) {
8485
8559
  switch (_d.label) {
@@ -8489,7 +8563,6 @@ var deserializeAws_json1_1UpdatePullRequestTitleCommandError = function (output,
8489
8563
  return [4, parseBody(output.body, context)];
8490
8564
  case 1:
8491
8565
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8492
- errorCode = "UnknownError";
8493
8566
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8494
8567
  _b = errorCode;
8495
8568
  switch (_b) {
@@ -8521,10 +8594,12 @@ var deserializeAws_json1_1UpdatePullRequestTitleCommandError = function (output,
8521
8594
  case 13: throw _d.sent();
8522
8595
  case 14:
8523
8596
  parsedBody = parsedOutput.body;
8597
+ $metadata = deserializeMetadata(output);
8598
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
8524
8599
  response = new __BaseException({
8525
- name: parsedBody.code || parsedBody.Code || errorCode,
8600
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
8526
8601
  $fault: "client",
8527
- $metadata: deserializeMetadata(output),
8602
+ $metadata: $metadata,
8528
8603
  });
8529
8604
  throw __decorateServiceException(response, parsedBody);
8530
8605
  }
@@ -8549,7 +8624,7 @@ export var deserializeAws_json1_1UpdateRepositoryDescriptionCommand = function (
8549
8624
  });
8550
8625
  }); };
8551
8626
  var deserializeAws_json1_1UpdateRepositoryDescriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8552
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
8627
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
8553
8628
  var _c;
8554
8629
  return __generator(this, function (_d) {
8555
8630
  switch (_d.label) {
@@ -8559,7 +8634,6 @@ var deserializeAws_json1_1UpdateRepositoryDescriptionCommandError = function (ou
8559
8634
  return [4, parseBody(output.body, context)];
8560
8635
  case 1:
8561
8636
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8562
- errorCode = "UnknownError";
8563
8637
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8564
8638
  _b = errorCode;
8565
8639
  switch (_b) {
@@ -8603,10 +8677,12 @@ var deserializeAws_json1_1UpdateRepositoryDescriptionCommandError = function (ou
8603
8677
  case 19: throw _d.sent();
8604
8678
  case 20:
8605
8679
  parsedBody = parsedOutput.body;
8680
+ $metadata = deserializeMetadata(output);
8681
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
8606
8682
  response = new __BaseException({
8607
- name: parsedBody.code || parsedBody.Code || errorCode,
8683
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
8608
8684
  $fault: "client",
8609
- $metadata: deserializeMetadata(output),
8685
+ $metadata: $metadata,
8610
8686
  });
8611
8687
  throw __decorateServiceException(response, parsedBody);
8612
8688
  }
@@ -8631,7 +8707,7 @@ export var deserializeAws_json1_1UpdateRepositoryNameCommand = function (output,
8631
8707
  });
8632
8708
  }); };
8633
8709
  var deserializeAws_json1_1UpdateRepositoryNameCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8634
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
8710
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
8635
8711
  var _c;
8636
8712
  return __generator(this, function (_d) {
8637
8713
  switch (_d.label) {
@@ -8641,7 +8717,6 @@ var deserializeAws_json1_1UpdateRepositoryNameCommandError = function (output, c
8641
8717
  return [4, parseBody(output.body, context)];
8642
8718
  case 1:
8643
8719
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
8644
- errorCode = "UnknownError";
8645
8720
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
8646
8721
  _b = errorCode;
8647
8722
  switch (_b) {
@@ -8665,10 +8740,12 @@ var deserializeAws_json1_1UpdateRepositoryNameCommandError = function (output, c
8665
8740
  case 9: throw _d.sent();
8666
8741
  case 10:
8667
8742
  parsedBody = parsedOutput.body;
8743
+ $metadata = deserializeMetadata(output);
8744
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
8668
8745
  response = new __BaseException({
8669
- name: parsedBody.code || parsedBody.Code || errorCode,
8746
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
8670
8747
  $fault: "client",
8671
- $metadata: deserializeMetadata(output),
8748
+ $metadata: $metadata,
8672
8749
  });
8673
8750
  throw __decorateServiceException(response, parsedBody);
8674
8751
  }
@@ -10340,42 +10417,26 @@ var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput,
10340
10417
  });
10341
10418
  }); };
10342
10419
  var serializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryInput = function (input, context) {
10343
- return __assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10344
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryName !== undefined &&
10345
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10420
+ return __assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10346
10421
  };
10347
10422
  var serializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesInput = function (input, context) {
10348
- return __assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10349
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryNames !== undefined &&
10350
- input.repositoryNames !== null && {
10423
+ return __assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryNames != null && {
10351
10424
  repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
10352
10425
  }));
10353
10426
  };
10354
10427
  var serializeAws_json1_1BatchDescribeMergeConflictsInput = function (input, context) {
10355
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel !== undefined &&
10356
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy !== undefined &&
10357
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10358
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.filePaths !== undefined &&
10359
- input.filePaths !== null && { filePaths: serializeAws_json1_1FilePaths(input.filePaths, context) })), (input.maxConflictFiles !== undefined &&
10360
- input.maxConflictFiles !== null && { maxConflictFiles: input.maxConflictFiles })), (input.maxMergeHunks !== undefined && input.maxMergeHunks !== null && { maxMergeHunks: input.maxMergeHunks })), (input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10361
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10362
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10428
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.filePaths != null && { filePaths: serializeAws_json1_1FilePaths(input.filePaths, context) })), (input.maxConflictFiles != null && { maxConflictFiles: input.maxConflictFiles })), (input.maxMergeHunks != null && { maxMergeHunks: input.maxMergeHunks })), (input.mergeOption != null && { mergeOption: input.mergeOption })), (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10363
10429
  };
10364
10430
  var serializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesInput = function (input, context) {
10365
- return __assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10366
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryNames !== undefined &&
10367
- input.repositoryNames !== null && {
10431
+ return __assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryNames != null && {
10368
10432
  repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
10369
10433
  }));
10370
10434
  };
10371
10435
  var serializeAws_json1_1BatchGetCommitsInput = function (input, context) {
10372
- return __assign(__assign({}, (input.commitIds !== undefined &&
10373
- input.commitIds !== null && { commitIds: serializeAws_json1_1CommitIdsInputList(input.commitIds, context) })), (input.repositoryName !== undefined &&
10374
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10436
+ return __assign(__assign({}, (input.commitIds != null && { commitIds: serializeAws_json1_1CommitIdsInputList(input.commitIds, context) })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10375
10437
  };
10376
10438
  var serializeAws_json1_1BatchGetRepositoriesInput = function (input, context) {
10377
- return __assign({}, (input.repositoryNames !== undefined &&
10378
- input.repositoryNames !== null && {
10439
+ return __assign({}, (input.repositoryNames != null && {
10379
10440
  repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
10380
10441
  }));
10381
10442
  };
@@ -10400,75 +10461,54 @@ var serializeAws_json1_1CommitIdsInputList = function (input, context) {
10400
10461
  });
10401
10462
  };
10402
10463
  var serializeAws_json1_1ConflictResolution = function (input, context) {
10403
- return __assign(__assign(__assign({}, (input.deleteFiles !== undefined &&
10404
- input.deleteFiles !== null && { deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context) })), (input.replaceContents !== undefined &&
10405
- input.replaceContents !== null && {
10464
+ return __assign(__assign(__assign({}, (input.deleteFiles != null && {
10465
+ deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context),
10466
+ })), (input.replaceContents != null && {
10406
10467
  replaceContents: serializeAws_json1_1ReplaceContentEntries(input.replaceContents, context),
10407
- })), (input.setFileModes !== undefined &&
10408
- input.setFileModes !== null && {
10468
+ })), (input.setFileModes != null && {
10409
10469
  setFileModes: serializeAws_json1_1SetFileModeEntries(input.setFileModes, context),
10410
10470
  }));
10411
10471
  };
10412
10472
  var serializeAws_json1_1CreateApprovalRuleTemplateInput = function (input, context) {
10413
- return __assign(__assign(__assign({}, (input.approvalRuleTemplateContent !== undefined &&
10414
- input.approvalRuleTemplateContent !== null && { approvalRuleTemplateContent: input.approvalRuleTemplateContent })), (input.approvalRuleTemplateDescription !== undefined &&
10415
- input.approvalRuleTemplateDescription !== null && {
10473
+ return __assign(__assign(__assign({}, (input.approvalRuleTemplateContent != null && {
10474
+ approvalRuleTemplateContent: input.approvalRuleTemplateContent,
10475
+ })), (input.approvalRuleTemplateDescription != null && {
10416
10476
  approvalRuleTemplateDescription: input.approvalRuleTemplateDescription,
10417
- })), (input.approvalRuleTemplateName !== undefined &&
10418
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10477
+ })), (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10419
10478
  };
10420
10479
  var serializeAws_json1_1CreateBranchInput = function (input, context) {
10421
- return __assign(__assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.commitId !== undefined && input.commitId !== null && { commitId: input.commitId })), (input.repositoryName !== undefined &&
10422
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10480
+ return __assign(__assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.commitId != null && { commitId: input.commitId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10423
10481
  };
10424
10482
  var serializeAws_json1_1CreateCommitInput = function (input, context) {
10425
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.deleteFiles !== undefined &&
10426
- input.deleteFiles !== null && { deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context) })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10427
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.parentCommitId !== undefined &&
10428
- input.parentCommitId !== null && { parentCommitId: input.parentCommitId })), (input.putFiles !== undefined &&
10429
- input.putFiles !== null && { putFiles: serializeAws_json1_1PutFileEntries(input.putFiles, context) })), (input.repositoryName !== undefined &&
10430
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.setFileModes !== undefined &&
10431
- input.setFileModes !== null && {
10483
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.branchName != null && { branchName: input.branchName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.deleteFiles != null && {
10484
+ deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context),
10485
+ })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.parentCommitId != null && { parentCommitId: input.parentCommitId })), (input.putFiles != null && { putFiles: serializeAws_json1_1PutFileEntries(input.putFiles, context) })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.setFileModes != null && {
10432
10486
  setFileModes: serializeAws_json1_1SetFileModeEntries(input.setFileModes, context),
10433
10487
  }));
10434
10488
  };
10435
10489
  var serializeAws_json1_1CreatePullRequestApprovalRuleInput = function (input, context) {
10436
- return __assign(__assign(__assign({}, (input.approvalRuleContent !== undefined &&
10437
- input.approvalRuleContent !== null && { approvalRuleContent: input.approvalRuleContent })), (input.approvalRuleName !== undefined &&
10438
- input.approvalRuleName !== null && { approvalRuleName: input.approvalRuleName })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10490
+ return __assign(__assign(__assign({}, (input.approvalRuleContent != null && { approvalRuleContent: input.approvalRuleContent })), (input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10439
10491
  };
10440
10492
  var serializeAws_json1_1CreatePullRequestInput = function (input, context) {
10441
10493
  var _a;
10442
- return __assign(__assign(__assign({ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.targets !== undefined &&
10443
- input.targets !== null && { targets: serializeAws_json1_1TargetList(input.targets, context) })), (input.title !== undefined && input.title !== null && { title: input.title }));
10494
+ return __assign(__assign(__assign({ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.targets != null && { targets: serializeAws_json1_1TargetList(input.targets, context) })), (input.title != null && { title: input.title }));
10444
10495
  };
10445
10496
  var serializeAws_json1_1CreateRepositoryInput = function (input, context) {
10446
- return __assign(__assign(__assign({}, (input.repositoryDescription !== undefined &&
10447
- input.repositoryDescription !== null && { repositoryDescription: input.repositoryDescription })), (input.repositoryName !== undefined &&
10448
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }));
10497
+ return __assign(__assign(__assign({}, (input.repositoryDescription != null && { repositoryDescription: input.repositoryDescription })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.tags != null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }));
10449
10498
  };
10450
10499
  var serializeAws_json1_1CreateUnreferencedMergeCommitInput = function (input, context) {
10451
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel !== undefined &&
10452
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution !== undefined &&
10453
- input.conflictResolution !== null && {
10500
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution != null && {
10454
10501
  conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
10455
- })), (input.conflictResolutionStrategy !== undefined &&
10456
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10457
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10458
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption })), (input.repositoryName !== undefined &&
10459
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10460
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10502
+ })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.mergeOption != null && { mergeOption: input.mergeOption })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10461
10503
  };
10462
10504
  var serializeAws_json1_1DeleteApprovalRuleTemplateInput = function (input, context) {
10463
- return __assign({}, (input.approvalRuleTemplateName !== undefined &&
10464
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10505
+ return __assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10465
10506
  };
10466
10507
  var serializeAws_json1_1DeleteBranchInput = function (input, context) {
10467
- return __assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.repositoryName !== undefined &&
10468
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10508
+ return __assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10469
10509
  };
10470
10510
  var serializeAws_json1_1DeleteCommentContentInput = function (input, context) {
10471
- return __assign({}, (input.commentId !== undefined && input.commentId !== null && { commentId: input.commentId }));
10511
+ return __assign({}, (input.commentId != null && { commentId: input.commentId }));
10472
10512
  };
10473
10513
  var serializeAws_json1_1DeleteFileEntries = function (input, context) {
10474
10514
  return input
@@ -10481,41 +10521,28 @@ var serializeAws_json1_1DeleteFileEntries = function (input, context) {
10481
10521
  });
10482
10522
  };
10483
10523
  var serializeAws_json1_1DeleteFileEntry = function (input, context) {
10484
- return __assign({}, (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath }));
10524
+ return __assign({}, (input.filePath != null && { filePath: input.filePath }));
10485
10525
  };
10486
10526
  var serializeAws_json1_1DeleteFileInput = function (input, context) {
10487
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.keepEmptyFolders !== undefined &&
10488
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.parentCommitId !== undefined &&
10489
- input.parentCommitId !== null && { parentCommitId: input.parentCommitId })), (input.repositoryName !== undefined &&
10490
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10527
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.email != null && { email: input.email })), (input.filePath != null && { filePath: input.filePath })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.name != null && { name: input.name })), (input.parentCommitId != null && { parentCommitId: input.parentCommitId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10491
10528
  };
10492
10529
  var serializeAws_json1_1DeletePullRequestApprovalRuleInput = function (input, context) {
10493
- return __assign(__assign({}, (input.approvalRuleName !== undefined &&
10494
- input.approvalRuleName !== null && { approvalRuleName: input.approvalRuleName })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10530
+ return __assign(__assign({}, (input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10495
10531
  };
10496
10532
  var serializeAws_json1_1DeleteRepositoryInput = function (input, context) {
10497
- return __assign({}, (input.repositoryName !== undefined &&
10498
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10533
+ return __assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName }));
10499
10534
  };
10500
10535
  var serializeAws_json1_1DescribeMergeConflictsInput = function (input, context) {
10501
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel !== undefined &&
10502
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy !== undefined &&
10503
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10504
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.maxMergeHunks !== undefined && input.maxMergeHunks !== null && { maxMergeHunks: input.maxMergeHunks })), (input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10505
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10506
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10536
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.filePath != null && { filePath: input.filePath })), (input.maxMergeHunks != null && { maxMergeHunks: input.maxMergeHunks })), (input.mergeOption != null && { mergeOption: input.mergeOption })), (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10507
10537
  };
10508
10538
  var serializeAws_json1_1DescribePullRequestEventsInput = function (input, context) {
10509
- return __assign(__assign(__assign(__assign(__assign({}, (input.actorArn !== undefined && input.actorArn !== null && { actorArn: input.actorArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.pullRequestEventType !== undefined &&
10510
- input.pullRequestEventType !== null && { pullRequestEventType: input.pullRequestEventType })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10539
+ return __assign(__assign(__assign(__assign(__assign({}, (input.actorArn != null && { actorArn: input.actorArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.pullRequestEventType != null && { pullRequestEventType: input.pullRequestEventType })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10511
10540
  };
10512
10541
  var serializeAws_json1_1DisassociateApprovalRuleTemplateFromRepositoryInput = function (input, context) {
10513
- return __assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10514
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryName !== undefined &&
10515
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10542
+ return __assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10516
10543
  };
10517
10544
  var serializeAws_json1_1EvaluatePullRequestApprovalRulesInput = function (input, context) {
10518
- return __assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
10545
+ return __assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.revisionId != null && { revisionId: input.revisionId }));
10519
10546
  };
10520
10547
  var serializeAws_json1_1FilePaths = function (input, context) {
10521
10548
  return input
@@ -10528,207 +10555,129 @@ var serializeAws_json1_1FilePaths = function (input, context) {
10528
10555
  });
10529
10556
  };
10530
10557
  var serializeAws_json1_1GetApprovalRuleTemplateInput = function (input, context) {
10531
- return __assign({}, (input.approvalRuleTemplateName !== undefined &&
10532
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10558
+ return __assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10533
10559
  };
10534
10560
  var serializeAws_json1_1GetBlobInput = function (input, context) {
10535
- return __assign(__assign({}, (input.blobId !== undefined && input.blobId !== null && { blobId: input.blobId })), (input.repositoryName !== undefined &&
10536
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10561
+ return __assign(__assign({}, (input.blobId != null && { blobId: input.blobId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10537
10562
  };
10538
10563
  var serializeAws_json1_1GetBranchInput = function (input, context) {
10539
- return __assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.repositoryName !== undefined &&
10540
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10564
+ return __assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10541
10565
  };
10542
10566
  var serializeAws_json1_1GetCommentInput = function (input, context) {
10543
- return __assign({}, (input.commentId !== undefined && input.commentId !== null && { commentId: input.commentId }));
10567
+ return __assign({}, (input.commentId != null && { commentId: input.commentId }));
10544
10568
  };
10545
10569
  var serializeAws_json1_1GetCommentReactionsInput = function (input, context) {
10546
- return __assign(__assign(__assign(__assign({}, (input.commentId !== undefined && input.commentId !== null && { commentId: input.commentId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.reactionUserArn !== undefined &&
10547
- input.reactionUserArn !== null && { reactionUserArn: input.reactionUserArn }));
10570
+ return __assign(__assign(__assign(__assign({}, (input.commentId != null && { commentId: input.commentId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.reactionUserArn != null && { reactionUserArn: input.reactionUserArn }));
10548
10571
  };
10549
10572
  var serializeAws_json1_1GetCommentsForComparedCommitInput = function (input, context) {
10550
- return __assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId !== undefined && input.afterCommitId !== null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId !== undefined &&
10551
- input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10552
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10573
+ return __assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId != null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10553
10574
  };
10554
10575
  var serializeAws_json1_1GetCommentsForPullRequestInput = function (input, context) {
10555
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId !== undefined && input.afterCommitId !== null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId !== undefined &&
10556
- input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.repositoryName !== undefined &&
10557
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10576
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId != null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10558
10577
  };
10559
10578
  var serializeAws_json1_1GetCommitInput = function (input, context) {
10560
- return __assign(__assign({}, (input.commitId !== undefined && input.commitId !== null && { commitId: input.commitId })), (input.repositoryName !== undefined &&
10561
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10579
+ return __assign(__assign({}, (input.commitId != null && { commitId: input.commitId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10562
10580
  };
10563
10581
  var serializeAws_json1_1GetDifferencesInput = function (input, context) {
10564
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.afterCommitSpecifier !== undefined &&
10565
- input.afterCommitSpecifier !== null && { afterCommitSpecifier: input.afterCommitSpecifier })), (input.afterPath !== undefined && input.afterPath !== null && { afterPath: input.afterPath })), (input.beforeCommitSpecifier !== undefined &&
10566
- input.beforeCommitSpecifier !== null && { beforeCommitSpecifier: input.beforeCommitSpecifier })), (input.beforePath !== undefined && input.beforePath !== null && { beforePath: input.beforePath })), (input.repositoryName !== undefined &&
10567
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10582
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.afterCommitSpecifier != null && { afterCommitSpecifier: input.afterCommitSpecifier })), (input.afterPath != null && { afterPath: input.afterPath })), (input.beforeCommitSpecifier != null && { beforeCommitSpecifier: input.beforeCommitSpecifier })), (input.beforePath != null && { beforePath: input.beforePath })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10568
10583
  };
10569
10584
  var serializeAws_json1_1GetFileInput = function (input, context) {
10570
- return __assign(__assign(__assign({}, (input.commitSpecifier !== undefined &&
10571
- input.commitSpecifier !== null && { commitSpecifier: input.commitSpecifier })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.repositoryName !== undefined &&
10572
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10585
+ return __assign(__assign(__assign({}, (input.commitSpecifier != null && { commitSpecifier: input.commitSpecifier })), (input.filePath != null && { filePath: input.filePath })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10573
10586
  };
10574
10587
  var serializeAws_json1_1GetFolderInput = function (input, context) {
10575
- return __assign(__assign(__assign({}, (input.commitSpecifier !== undefined &&
10576
- input.commitSpecifier !== null && { commitSpecifier: input.commitSpecifier })), (input.folderPath !== undefined && input.folderPath !== null && { folderPath: input.folderPath })), (input.repositoryName !== undefined &&
10577
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10588
+ return __assign(__assign(__assign({}, (input.commitSpecifier != null && { commitSpecifier: input.commitSpecifier })), (input.folderPath != null && { folderPath: input.folderPath })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10578
10589
  };
10579
10590
  var serializeAws_json1_1GetMergeCommitInput = function (input, context) {
10580
- return __assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel !== undefined &&
10581
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy !== undefined &&
10582
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10583
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName !== undefined &&
10584
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10585
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10591
+ return __assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10586
10592
  };
10587
10593
  var serializeAws_json1_1GetMergeConflictsInput = function (input, context) {
10588
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel !== undefined &&
10589
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy !== undefined &&
10590
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10591
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.maxConflictFiles !== undefined &&
10592
- input.maxConflictFiles !== null && { maxConflictFiles: input.maxConflictFiles })), (input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10593
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10594
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10594
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.maxConflictFiles != null && { maxConflictFiles: input.maxConflictFiles })), (input.mergeOption != null && { mergeOption: input.mergeOption })), (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10595
10595
  };
10596
10596
  var serializeAws_json1_1GetMergeOptionsInput = function (input, context) {
10597
- return __assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel !== undefined &&
10598
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy !== undefined &&
10599
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10600
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName !== undefined &&
10601
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10602
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10597
+ return __assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10603
10598
  };
10604
10599
  var serializeAws_json1_1GetPullRequestApprovalStatesInput = function (input, context) {
10605
- return __assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
10600
+ return __assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.revisionId != null && { revisionId: input.revisionId }));
10606
10601
  };
10607
10602
  var serializeAws_json1_1GetPullRequestInput = function (input, context) {
10608
- return __assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10603
+ return __assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10609
10604
  };
10610
10605
  var serializeAws_json1_1GetPullRequestOverrideStateInput = function (input, context) {
10611
- return __assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
10606
+ return __assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.revisionId != null && { revisionId: input.revisionId }));
10612
10607
  };
10613
10608
  var serializeAws_json1_1GetRepositoryInput = function (input, context) {
10614
- return __assign({}, (input.repositoryName !== undefined &&
10615
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10609
+ return __assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName }));
10616
10610
  };
10617
10611
  var serializeAws_json1_1GetRepositoryTriggersInput = function (input, context) {
10618
- return __assign({}, (input.repositoryName !== undefined &&
10619
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10612
+ return __assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName }));
10620
10613
  };
10621
10614
  var serializeAws_json1_1ListApprovalRuleTemplatesInput = function (input, context) {
10622
- return __assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
10615
+ return __assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
10623
10616
  };
10624
10617
  var serializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryInput = function (input, context) {
10625
- return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10626
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10618
+ return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10627
10619
  };
10628
10620
  var serializeAws_json1_1ListBranchesInput = function (input, context) {
10629
- return __assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10630
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10621
+ return __assign(__assign({}, (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10631
10622
  };
10632
10623
  var serializeAws_json1_1ListPullRequestsInput = function (input, context) {
10633
- return __assign(__assign(__assign(__assign(__assign({}, (input.authorArn !== undefined && input.authorArn !== null && { authorArn: input.authorArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.pullRequestStatus !== undefined &&
10634
- input.pullRequestStatus !== null && { pullRequestStatus: input.pullRequestStatus })), (input.repositoryName !== undefined &&
10635
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10624
+ return __assign(__assign(__assign(__assign(__assign({}, (input.authorArn != null && { authorArn: input.authorArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.pullRequestStatus != null && { pullRequestStatus: input.pullRequestStatus })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10636
10625
  };
10637
10626
  var serializeAws_json1_1ListRepositoriesForApprovalRuleTemplateInput = function (input, context) {
10638
- return __assign(__assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10639
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
10627
+ return __assign(__assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
10640
10628
  };
10641
10629
  var serializeAws_json1_1ListRepositoriesInput = function (input, context) {
10642
- return __assign(__assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.order !== undefined && input.order !== null && { order: input.order })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }));
10630
+ return __assign(__assign(__assign({}, (input.nextToken != null && { nextToken: input.nextToken })), (input.order != null && { order: input.order })), (input.sortBy != null && { sortBy: input.sortBy }));
10643
10631
  };
10644
10632
  var serializeAws_json1_1ListTagsForResourceInput = function (input, context) {
10645
- return __assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
10633
+ return __assign(__assign({}, (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceArn != null && { resourceArn: input.resourceArn }));
10646
10634
  };
10647
10635
  var serializeAws_json1_1Location = function (input, context) {
10648
- return __assign(__assign(__assign({}, (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.filePosition !== undefined && input.filePosition !== null && { filePosition: input.filePosition })), (input.relativeFileVersion !== undefined &&
10649
- input.relativeFileVersion !== null && { relativeFileVersion: input.relativeFileVersion }));
10636
+ return __assign(__assign(__assign({}, (input.filePath != null && { filePath: input.filePath })), (input.filePosition != null && { filePosition: input.filePosition })), (input.relativeFileVersion != null && { relativeFileVersion: input.relativeFileVersion }));
10650
10637
  };
10651
10638
  var serializeAws_json1_1MergeBranchesByFastForwardInput = function (input, context) {
10652
- return __assign(__assign(__assign(__assign({}, (input.destinationCommitSpecifier !== undefined &&
10653
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName !== undefined &&
10654
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10655
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }));
10639
+ return __assign(__assign(__assign(__assign({}, (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch != null && { targetBranch: input.targetBranch }));
10656
10640
  };
10657
10641
  var serializeAws_json1_1MergeBranchesBySquashInput = function (input, context) {
10658
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel !== undefined &&
10659
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution !== undefined &&
10660
- input.conflictResolution !== null && {
10642
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution != null && {
10661
10643
  conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
10662
- })), (input.conflictResolutionStrategy !== undefined &&
10663
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10664
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10665
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.repositoryName !== undefined &&
10666
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10667
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }));
10644
+ })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch != null && { targetBranch: input.targetBranch }));
10668
10645
  };
10669
10646
  var serializeAws_json1_1MergeBranchesByThreeWayInput = function (input, context) {
10670
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel !== undefined &&
10671
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution !== undefined &&
10672
- input.conflictResolution !== null && {
10647
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution != null && {
10673
10648
  conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
10674
- })), (input.conflictResolutionStrategy !== undefined &&
10675
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10676
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10677
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.repositoryName !== undefined &&
10678
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10679
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }));
10649
+ })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch != null && { targetBranch: input.targetBranch }));
10680
10650
  };
10681
10651
  var serializeAws_json1_1MergePullRequestByFastForwardInput = function (input, context) {
10682
- return __assign(__assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.repositoryName !== undefined &&
10683
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitId !== undefined &&
10684
- input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }));
10652
+ return __assign(__assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }));
10685
10653
  };
10686
10654
  var serializeAws_json1_1MergePullRequestBySquashInput = function (input, context) {
10687
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel !== undefined &&
10688
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution !== undefined &&
10689
- input.conflictResolution !== null && {
10655
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution != null && {
10690
10656
  conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
10691
- })), (input.conflictResolutionStrategy !== undefined &&
10692
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10693
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.repositoryName !== undefined &&
10694
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitId !== undefined &&
10695
- input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }));
10657
+ })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }));
10696
10658
  };
10697
10659
  var serializeAws_json1_1MergePullRequestByThreeWayInput = function (input, context) {
10698
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel !== undefined &&
10699
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution !== undefined &&
10700
- input.conflictResolution !== null && {
10660
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution != null && {
10701
10661
  conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
10702
- })), (input.conflictResolutionStrategy !== undefined &&
10703
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10704
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.repositoryName !== undefined &&
10705
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitId !== undefined &&
10706
- input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }));
10662
+ })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }));
10707
10663
  };
10708
10664
  var serializeAws_json1_1OverridePullRequestApprovalRulesInput = function (input, context) {
10709
- return __assign(__assign(__assign({}, (input.overrideStatus !== undefined &&
10710
- input.overrideStatus !== null && { overrideStatus: input.overrideStatus })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
10665
+ return __assign(__assign(__assign({}, (input.overrideStatus != null && { overrideStatus: input.overrideStatus })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.revisionId != null && { revisionId: input.revisionId }));
10711
10666
  };
10712
10667
  var serializeAws_json1_1PostCommentForComparedCommitInput = function (input, context) {
10713
10668
  var _a;
10714
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId !== undefined && input.afterCommitId !== null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId !== undefined &&
10715
- input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId })), { clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.content !== undefined && input.content !== null && { content: input.content })), (input.location !== undefined &&
10716
- input.location !== null && { location: serializeAws_json1_1Location(input.location, context) })), (input.repositoryName !== undefined &&
10717
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10669
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId != null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId })), { clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.content != null && { content: input.content })), (input.location != null && { location: serializeAws_json1_1Location(input.location, context) })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10718
10670
  };
10719
10671
  var serializeAws_json1_1PostCommentForPullRequestInput = function (input, context) {
10720
10672
  var _a;
10721
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId !== undefined && input.afterCommitId !== null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId !== undefined &&
10722
- input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId })), { clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.content !== undefined && input.content !== null && { content: input.content })), (input.location !== undefined &&
10723
- input.location !== null && { location: serializeAws_json1_1Location(input.location, context) })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.repositoryName !== undefined &&
10724
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10673
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId != null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId })), { clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.content != null && { content: input.content })), (input.location != null && { location: serializeAws_json1_1Location(input.location, context) })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10725
10674
  };
10726
10675
  var serializeAws_json1_1PostCommentReplyInput = function (input, context) {
10727
10676
  var _a;
10728
- return __assign(__assign({ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.content !== undefined && input.content !== null && { content: input.content })), (input.inReplyTo !== undefined && input.inReplyTo !== null && { inReplyTo: input.inReplyTo }));
10677
+ return __assign(__assign({ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.content != null && { content: input.content })), (input.inReplyTo != null && { inReplyTo: input.inReplyTo }));
10729
10678
  };
10730
10679
  var serializeAws_json1_1PutCommentReactionInput = function (input, context) {
10731
- return __assign(__assign({}, (input.commentId !== undefined && input.commentId !== null && { commentId: input.commentId })), (input.reactionValue !== undefined && input.reactionValue !== null && { reactionValue: input.reactionValue }));
10680
+ return __assign(__assign({}, (input.commentId != null && { commentId: input.commentId })), (input.reactionValue != null && { reactionValue: input.reactionValue }));
10732
10681
  };
10733
10682
  var serializeAws_json1_1PutFileEntries = function (input, context) {
10734
10683
  return input
@@ -10741,20 +10690,13 @@ var serializeAws_json1_1PutFileEntries = function (input, context) {
10741
10690
  });
10742
10691
  };
10743
10692
  var serializeAws_json1_1PutFileEntry = function (input, context) {
10744
- return __assign(__assign(__assign(__assign({}, (input.fileContent !== undefined &&
10745
- input.fileContent !== null && { fileContent: context.base64Encoder(input.fileContent) })), (input.fileMode !== undefined && input.fileMode !== null && { fileMode: input.fileMode })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.sourceFile !== undefined &&
10746
- input.sourceFile !== null && { sourceFile: serializeAws_json1_1SourceFileSpecifier(input.sourceFile, context) }));
10693
+ return __assign(__assign(__assign(__assign({}, (input.fileContent != null && { fileContent: context.base64Encoder(input.fileContent) })), (input.fileMode != null && { fileMode: input.fileMode })), (input.filePath != null && { filePath: input.filePath })), (input.sourceFile != null && { sourceFile: serializeAws_json1_1SourceFileSpecifier(input.sourceFile, context) }));
10747
10694
  };
10748
10695
  var serializeAws_json1_1PutFileInput = function (input, context) {
10749
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.fileContent !== undefined &&
10750
- input.fileContent !== null && { fileContent: context.base64Encoder(input.fileContent) })), (input.fileMode !== undefined && input.fileMode !== null && { fileMode: input.fileMode })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.parentCommitId !== undefined &&
10751
- input.parentCommitId !== null && { parentCommitId: input.parentCommitId })), (input.repositoryName !== undefined &&
10752
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10696
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.email != null && { email: input.email })), (input.fileContent != null && { fileContent: context.base64Encoder(input.fileContent) })), (input.fileMode != null && { fileMode: input.fileMode })), (input.filePath != null && { filePath: input.filePath })), (input.name != null && { name: input.name })), (input.parentCommitId != null && { parentCommitId: input.parentCommitId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10753
10697
  };
10754
10698
  var serializeAws_json1_1PutRepositoryTriggersInput = function (input, context) {
10755
- return __assign(__assign({}, (input.repositoryName !== undefined &&
10756
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.triggers !== undefined &&
10757
- input.triggers !== null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }));
10699
+ return __assign(__assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.triggers != null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }));
10758
10700
  };
10759
10701
  var serializeAws_json1_1ReplaceContentEntries = function (input, context) {
10760
10702
  return input
@@ -10767,8 +10709,7 @@ var serializeAws_json1_1ReplaceContentEntries = function (input, context) {
10767
10709
  });
10768
10710
  };
10769
10711
  var serializeAws_json1_1ReplaceContentEntry = function (input, context) {
10770
- return __assign(__assign(__assign(__assign({}, (input.content !== undefined && input.content !== null && { content: context.base64Encoder(input.content) })), (input.fileMode !== undefined && input.fileMode !== null && { fileMode: input.fileMode })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.replacementType !== undefined &&
10771
- input.replacementType !== null && { replacementType: input.replacementType }));
10712
+ return __assign(__assign(__assign(__assign({}, (input.content != null && { content: context.base64Encoder(input.content) })), (input.fileMode != null && { fileMode: input.fileMode })), (input.filePath != null && { filePath: input.filePath })), (input.replacementType != null && { replacementType: input.replacementType }));
10772
10713
  };
10773
10714
  var serializeAws_json1_1RepositoryNameList = function (input, context) {
10774
10715
  return input
@@ -10781,10 +10722,7 @@ var serializeAws_json1_1RepositoryNameList = function (input, context) {
10781
10722
  });
10782
10723
  };
10783
10724
  var serializeAws_json1_1RepositoryTrigger = function (input, context) {
10784
- return __assign(__assign(__assign(__assign(__assign({}, (input.branches !== undefined &&
10785
- input.branches !== null && { branches: serializeAws_json1_1BranchNameList(input.branches, context) })), (input.customData !== undefined && input.customData !== null && { customData: input.customData })), (input.destinationArn !== undefined &&
10786
- input.destinationArn !== null && { destinationArn: input.destinationArn })), (input.events !== undefined &&
10787
- input.events !== null && { events: serializeAws_json1_1RepositoryTriggerEventList(input.events, context) })), (input.name !== undefined && input.name !== null && { name: input.name }));
10725
+ return __assign(__assign(__assign(__assign(__assign({}, (input.branches != null && { branches: serializeAws_json1_1BranchNameList(input.branches, context) })), (input.customData != null && { customData: input.customData })), (input.destinationArn != null && { destinationArn: input.destinationArn })), (input.events != null && { events: serializeAws_json1_1RepositoryTriggerEventList(input.events, context) })), (input.name != null && { name: input.name }));
10788
10726
  };
10789
10727
  var serializeAws_json1_1RepositoryTriggerEventList = function (input, context) {
10790
10728
  return input
@@ -10817,10 +10755,10 @@ var serializeAws_json1_1SetFileModeEntries = function (input, context) {
10817
10755
  });
10818
10756
  };
10819
10757
  var serializeAws_json1_1SetFileModeEntry = function (input, context) {
10820
- return __assign(__assign({}, (input.fileMode !== undefined && input.fileMode !== null && { fileMode: input.fileMode })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath }));
10758
+ return __assign(__assign({}, (input.fileMode != null && { fileMode: input.fileMode })), (input.filePath != null && { filePath: input.filePath }));
10821
10759
  };
10822
10760
  var serializeAws_json1_1SourceFileSpecifier = function (input, context) {
10823
- return __assign(__assign({}, (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.isMove !== undefined && input.isMove !== null && { isMove: input.isMove }));
10761
+ return __assign(__assign({}, (input.filePath != null && { filePath: input.filePath })), (input.isMove != null && { isMove: input.isMove }));
10824
10762
  };
10825
10763
  var serializeAws_json1_1TagKeysList = function (input, context) {
10826
10764
  return input
@@ -10833,7 +10771,7 @@ var serializeAws_json1_1TagKeysList = function (input, context) {
10833
10771
  });
10834
10772
  };
10835
10773
  var serializeAws_json1_1TagResourceInput = function (input, context) {
10836
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }));
10774
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }));
10837
10775
  };
10838
10776
  var serializeAws_json1_1TagsMap = function (input, context) {
10839
10777
  return Object.entries(input).reduce(function (acc, _a) {
@@ -10846,10 +10784,7 @@ var serializeAws_json1_1TagsMap = function (input, context) {
10846
10784
  }, {});
10847
10785
  };
10848
10786
  var serializeAws_json1_1Target = function (input, context) {
10849
- return __assign(__assign(__assign({}, (input.destinationReference !== undefined &&
10850
- input.destinationReference !== null && { destinationReference: input.destinationReference })), (input.repositoryName !== undefined &&
10851
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceReference !== undefined &&
10852
- input.sourceReference !== null && { sourceReference: input.sourceReference }));
10787
+ return __assign(__assign(__assign({}, (input.destinationReference != null && { destinationReference: input.destinationReference })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceReference != null && { sourceReference: input.sourceReference }));
10853
10788
  };
10854
10789
  var serializeAws_json1_1TargetList = function (input, context) {
10855
10790
  return input
@@ -10862,66 +10797,52 @@ var serializeAws_json1_1TargetList = function (input, context) {
10862
10797
  });
10863
10798
  };
10864
10799
  var serializeAws_json1_1TestRepositoryTriggersInput = function (input, context) {
10865
- return __assign(__assign({}, (input.repositoryName !== undefined &&
10866
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.triggers !== undefined &&
10867
- input.triggers !== null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }));
10800
+ return __assign(__assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.triggers != null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }));
10868
10801
  };
10869
10802
  var serializeAws_json1_1UntagResourceInput = function (input, context) {
10870
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
10871
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeysList(input.tagKeys, context) }));
10803
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeysList(input.tagKeys, context) }));
10872
10804
  };
10873
10805
  var serializeAws_json1_1UpdateApprovalRuleTemplateContentInput = function (input, context) {
10874
- return __assign(__assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10875
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.existingRuleContentSha256 !== undefined &&
10876
- input.existingRuleContentSha256 !== null && { existingRuleContentSha256: input.existingRuleContentSha256 })), (input.newRuleContent !== undefined &&
10877
- input.newRuleContent !== null && { newRuleContent: input.newRuleContent }));
10806
+ return __assign(__assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.existingRuleContentSha256 != null && { existingRuleContentSha256: input.existingRuleContentSha256 })), (input.newRuleContent != null && { newRuleContent: input.newRuleContent }));
10878
10807
  };
10879
10808
  var serializeAws_json1_1UpdateApprovalRuleTemplateDescriptionInput = function (input, context) {
10880
- return __assign(__assign({}, (input.approvalRuleTemplateDescription !== undefined &&
10881
- input.approvalRuleTemplateDescription !== null && {
10809
+ return __assign(__assign({}, (input.approvalRuleTemplateDescription != null && {
10882
10810
  approvalRuleTemplateDescription: input.approvalRuleTemplateDescription,
10883
- })), (input.approvalRuleTemplateName !== undefined &&
10884
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10811
+ })), (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10885
10812
  };
10886
10813
  var serializeAws_json1_1UpdateApprovalRuleTemplateNameInput = function (input, context) {
10887
- return __assign(__assign({}, (input.newApprovalRuleTemplateName !== undefined &&
10888
- input.newApprovalRuleTemplateName !== null && { newApprovalRuleTemplateName: input.newApprovalRuleTemplateName })), (input.oldApprovalRuleTemplateName !== undefined &&
10889
- input.oldApprovalRuleTemplateName !== null && { oldApprovalRuleTemplateName: input.oldApprovalRuleTemplateName }));
10814
+ return __assign(__assign({}, (input.newApprovalRuleTemplateName != null && {
10815
+ newApprovalRuleTemplateName: input.newApprovalRuleTemplateName,
10816
+ })), (input.oldApprovalRuleTemplateName != null && {
10817
+ oldApprovalRuleTemplateName: input.oldApprovalRuleTemplateName,
10818
+ }));
10890
10819
  };
10891
10820
  var serializeAws_json1_1UpdateCommentInput = function (input, context) {
10892
- return __assign(__assign({}, (input.commentId !== undefined && input.commentId !== null && { commentId: input.commentId })), (input.content !== undefined && input.content !== null && { content: input.content }));
10821
+ return __assign(__assign({}, (input.commentId != null && { commentId: input.commentId })), (input.content != null && { content: input.content }));
10893
10822
  };
10894
10823
  var serializeAws_json1_1UpdateDefaultBranchInput = function (input, context) {
10895
- return __assign(__assign({}, (input.defaultBranchName !== undefined &&
10896
- input.defaultBranchName !== null && { defaultBranchName: input.defaultBranchName })), (input.repositoryName !== undefined &&
10897
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10824
+ return __assign(__assign({}, (input.defaultBranchName != null && { defaultBranchName: input.defaultBranchName })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10898
10825
  };
10899
10826
  var serializeAws_json1_1UpdatePullRequestApprovalRuleContentInput = function (input, context) {
10900
- return __assign(__assign(__assign(__assign({}, (input.approvalRuleName !== undefined &&
10901
- input.approvalRuleName !== null && { approvalRuleName: input.approvalRuleName })), (input.existingRuleContentSha256 !== undefined &&
10902
- input.existingRuleContentSha256 !== null && { existingRuleContentSha256: input.existingRuleContentSha256 })), (input.newRuleContent !== undefined &&
10903
- input.newRuleContent !== null && { newRuleContent: input.newRuleContent })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10827
+ return __assign(__assign(__assign(__assign({}, (input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName })), (input.existingRuleContentSha256 != null && { existingRuleContentSha256: input.existingRuleContentSha256 })), (input.newRuleContent != null && { newRuleContent: input.newRuleContent })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10904
10828
  };
10905
10829
  var serializeAws_json1_1UpdatePullRequestApprovalStateInput = function (input, context) {
10906
- return __assign(__assign(__assign({}, (input.approvalState !== undefined && input.approvalState !== null && { approvalState: input.approvalState })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
10830
+ return __assign(__assign(__assign({}, (input.approvalState != null && { approvalState: input.approvalState })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.revisionId != null && { revisionId: input.revisionId }));
10907
10831
  };
10908
10832
  var serializeAws_json1_1UpdatePullRequestDescriptionInput = function (input, context) {
10909
- return __assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10833
+ return __assign(__assign({}, (input.description != null && { description: input.description })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10910
10834
  };
10911
10835
  var serializeAws_json1_1UpdatePullRequestStatusInput = function (input, context) {
10912
- return __assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.pullRequestStatus !== undefined &&
10913
- input.pullRequestStatus !== null && { pullRequestStatus: input.pullRequestStatus }));
10836
+ return __assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.pullRequestStatus != null && { pullRequestStatus: input.pullRequestStatus }));
10914
10837
  };
10915
10838
  var serializeAws_json1_1UpdatePullRequestTitleInput = function (input, context) {
10916
- return __assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.title !== undefined && input.title !== null && { title: input.title }));
10839
+ return __assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.title != null && { title: input.title }));
10917
10840
  };
10918
10841
  var serializeAws_json1_1UpdateRepositoryDescriptionInput = function (input, context) {
10919
- return __assign(__assign({}, (input.repositoryDescription !== undefined &&
10920
- input.repositoryDescription !== null && { repositoryDescription: input.repositoryDescription })), (input.repositoryName !== undefined &&
10921
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10842
+ return __assign(__assign({}, (input.repositoryDescription != null && { repositoryDescription: input.repositoryDescription })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10922
10843
  };
10923
10844
  var serializeAws_json1_1UpdateRepositoryNameInput = function (input, context) {
10924
- return __assign(__assign({}, (input.newName !== undefined && input.newName !== null && { newName: input.newName })), (input.oldName !== undefined && input.oldName !== null && { oldName: input.oldName }));
10845
+ return __assign(__assign({}, (input.newName != null && { newName: input.newName })), (input.oldName != null && { oldName: input.oldName }));
10925
10846
  };
10926
10847
  var deserializeAws_json1_1ActorDoesNotExistException = function (output, context) {
10927
10848
  return {
@@ -10950,14 +10871,14 @@ var deserializeAws_json1_1ApprovalRule = function (output, context) {
10950
10871
  approvalRuleContent: __expectString(output.approvalRuleContent),
10951
10872
  approvalRuleId: __expectString(output.approvalRuleId),
10952
10873
  approvalRuleName: __expectString(output.approvalRuleName),
10953
- creationDate: output.creationDate !== undefined && output.creationDate !== null
10874
+ creationDate: output.creationDate != null
10954
10875
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
10955
10876
  : undefined,
10956
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
10877
+ lastModifiedDate: output.lastModifiedDate != null
10957
10878
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
10958
10879
  : undefined,
10959
10880
  lastModifiedUser: __expectString(output.lastModifiedUser),
10960
- originApprovalRuleTemplate: output.originApprovalRuleTemplate !== undefined && output.originApprovalRuleTemplate !== null
10881
+ originApprovalRuleTemplate: output.originApprovalRuleTemplate != null
10961
10882
  ? deserializeAws_json1_1OriginApprovalRuleTemplate(output.originApprovalRuleTemplate, context)
10962
10883
  : undefined,
10963
10884
  ruleContentSha256: __expectString(output.ruleContentSha256),
@@ -11035,10 +10956,10 @@ var deserializeAws_json1_1ApprovalRuleTemplate = function (output, context) {
11035
10956
  approvalRuleTemplateDescription: __expectString(output.approvalRuleTemplateDescription),
11036
10957
  approvalRuleTemplateId: __expectString(output.approvalRuleTemplateId),
11037
10958
  approvalRuleTemplateName: __expectString(output.approvalRuleTemplateName),
11038
- creationDate: output.creationDate !== undefined && output.creationDate !== null
10959
+ creationDate: output.creationDate != null
11039
10960
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
11040
10961
  : undefined,
11041
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
10962
+ lastModifiedDate: output.lastModifiedDate != null
11042
10963
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
11043
10964
  : undefined,
11044
10965
  lastModifiedUser: __expectString(output.lastModifiedUser),
@@ -11117,10 +11038,10 @@ var deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesErro
11117
11038
  };
11118
11039
  var deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesOutput = function (output, context) {
11119
11040
  return {
11120
- associatedRepositoryNames: output.associatedRepositoryNames !== undefined && output.associatedRepositoryNames !== null
11041
+ associatedRepositoryNames: output.associatedRepositoryNames != null
11121
11042
  ? deserializeAws_json1_1RepositoryNameList(output.associatedRepositoryNames, context)
11122
11043
  : undefined,
11123
- errors: output.errors !== undefined && output.errors !== null
11044
+ errors: output.errors != null
11124
11045
  ? deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesErrorsList(output.errors, context)
11125
11046
  : undefined,
11126
11047
  };
@@ -11146,11 +11067,9 @@ var deserializeAws_json1_1BatchDescribeMergeConflictsErrors = function (output,
11146
11067
  var deserializeAws_json1_1BatchDescribeMergeConflictsOutput = function (output, context) {
11147
11068
  return {
11148
11069
  baseCommitId: __expectString(output.baseCommitId),
11149
- conflicts: output.conflicts !== undefined && output.conflicts !== null
11150
- ? deserializeAws_json1_1Conflicts(output.conflicts, context)
11151
- : undefined,
11070
+ conflicts: output.conflicts != null ? deserializeAws_json1_1Conflicts(output.conflicts, context) : undefined,
11152
11071
  destinationCommitId: __expectString(output.destinationCommitId),
11153
- errors: output.errors !== undefined && output.errors !== null
11072
+ errors: output.errors != null
11154
11073
  ? deserializeAws_json1_1BatchDescribeMergeConflictsErrors(output.errors, context)
11155
11074
  : undefined,
11156
11075
  nextToken: __expectString(output.nextToken),
@@ -11177,10 +11096,10 @@ var deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesE
11177
11096
  };
11178
11097
  var deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput = function (output, context) {
11179
11098
  return {
11180
- disassociatedRepositoryNames: output.disassociatedRepositoryNames !== undefined && output.disassociatedRepositoryNames !== null
11099
+ disassociatedRepositoryNames: output.disassociatedRepositoryNames != null
11181
11100
  ? deserializeAws_json1_1RepositoryNameList(output.disassociatedRepositoryNames, context)
11182
11101
  : undefined,
11183
- errors: output.errors !== undefined && output.errors !== null
11102
+ errors: output.errors != null
11184
11103
  ? deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorsList(output.errors, context)
11185
11104
  : undefined,
11186
11105
  };
@@ -11205,20 +11124,16 @@ var deserializeAws_json1_1BatchGetCommitsErrorsList = function (output, context)
11205
11124
  };
11206
11125
  var deserializeAws_json1_1BatchGetCommitsOutput = function (output, context) {
11207
11126
  return {
11208
- commits: output.commits !== undefined && output.commits !== null
11209
- ? deserializeAws_json1_1CommitObjectsList(output.commits, context)
11210
- : undefined,
11211
- errors: output.errors !== undefined && output.errors !== null
11212
- ? deserializeAws_json1_1BatchGetCommitsErrorsList(output.errors, context)
11213
- : undefined,
11127
+ commits: output.commits != null ? deserializeAws_json1_1CommitObjectsList(output.commits, context) : undefined,
11128
+ errors: output.errors != null ? deserializeAws_json1_1BatchGetCommitsErrorsList(output.errors, context) : undefined,
11214
11129
  };
11215
11130
  };
11216
11131
  var deserializeAws_json1_1BatchGetRepositoriesOutput = function (output, context) {
11217
11132
  return {
11218
- repositories: output.repositories !== undefined && output.repositories !== null
11133
+ repositories: output.repositories != null
11219
11134
  ? deserializeAws_json1_1RepositoryMetadataList(output.repositories, context)
11220
11135
  : undefined,
11221
- repositoriesNotFound: output.repositoriesNotFound !== undefined && output.repositoriesNotFound !== null
11136
+ repositoriesNotFound: output.repositoriesNotFound != null
11222
11137
  ? deserializeAws_json1_1RepositoryNotFoundList(output.repositoriesNotFound, context)
11223
11138
  : undefined,
11224
11139
  };
@@ -11311,21 +11226,21 @@ var deserializeAws_json1_1ClientRequestTokenRequiredException = function (output
11311
11226
  var deserializeAws_json1_1Comment = function (output, context) {
11312
11227
  return {
11313
11228
  authorArn: __expectString(output.authorArn),
11314
- callerReactions: output.callerReactions !== undefined && output.callerReactions !== null
11229
+ callerReactions: output.callerReactions != null
11315
11230
  ? deserializeAws_json1_1CallerReactions(output.callerReactions, context)
11316
11231
  : undefined,
11317
11232
  clientRequestToken: __expectString(output.clientRequestToken),
11318
11233
  commentId: __expectString(output.commentId),
11319
11234
  content: __expectString(output.content),
11320
- creationDate: output.creationDate !== undefined && output.creationDate !== null
11235
+ creationDate: output.creationDate != null
11321
11236
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
11322
11237
  : undefined,
11323
11238
  deleted: __expectBoolean(output.deleted),
11324
11239
  inReplyTo: __expectString(output.inReplyTo),
11325
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
11240
+ lastModifiedDate: output.lastModifiedDate != null
11326
11241
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
11327
11242
  : undefined,
11328
- reactionCounts: output.reactionCounts !== undefined && output.reactionCounts !== null
11243
+ reactionCounts: output.reactionCounts != null
11329
11244
  ? deserializeAws_json1_1ReactionCountsMap(output.reactionCounts, context)
11330
11245
  : undefined,
11331
11246
  };
@@ -11377,12 +11292,8 @@ var deserializeAws_json1_1CommentsForComparedCommit = function (output, context)
11377
11292
  afterCommitId: __expectString(output.afterCommitId),
11378
11293
  beforeBlobId: __expectString(output.beforeBlobId),
11379
11294
  beforeCommitId: __expectString(output.beforeCommitId),
11380
- comments: output.comments !== undefined && output.comments !== null
11381
- ? deserializeAws_json1_1Comments(output.comments, context)
11382
- : undefined,
11383
- location: output.location !== undefined && output.location !== null
11384
- ? deserializeAws_json1_1Location(output.location, context)
11385
- : undefined,
11295
+ comments: output.comments != null ? deserializeAws_json1_1Comments(output.comments, context) : undefined,
11296
+ location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
11386
11297
  repositoryName: __expectString(output.repositoryName),
11387
11298
  };
11388
11299
  };
@@ -11403,12 +11314,8 @@ var deserializeAws_json1_1CommentsForPullRequest = function (output, context) {
11403
11314
  afterCommitId: __expectString(output.afterCommitId),
11404
11315
  beforeBlobId: __expectString(output.beforeBlobId),
11405
11316
  beforeCommitId: __expectString(output.beforeCommitId),
11406
- comments: output.comments !== undefined && output.comments !== null
11407
- ? deserializeAws_json1_1Comments(output.comments, context)
11408
- : undefined,
11409
- location: output.location !== undefined && output.location !== null
11410
- ? deserializeAws_json1_1Location(output.location, context)
11411
- : undefined,
11317
+ comments: output.comments != null ? deserializeAws_json1_1Comments(output.comments, context) : undefined,
11318
+ location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
11412
11319
  pullRequestId: __expectString(output.pullRequestId),
11413
11320
  repositoryName: __expectString(output.repositoryName),
11414
11321
  };
@@ -11427,17 +11334,11 @@ var deserializeAws_json1_1CommentsForPullRequestData = function (output, context
11427
11334
  var deserializeAws_json1_1Commit = function (output, context) {
11428
11335
  return {
11429
11336
  additionalData: __expectString(output.additionalData),
11430
- author: output.author !== undefined && output.author !== null
11431
- ? deserializeAws_json1_1UserInfo(output.author, context)
11432
- : undefined,
11337
+ author: output.author != null ? deserializeAws_json1_1UserInfo(output.author, context) : undefined,
11433
11338
  commitId: __expectString(output.commitId),
11434
- committer: output.committer !== undefined && output.committer !== null
11435
- ? deserializeAws_json1_1UserInfo(output.committer, context)
11436
- : undefined,
11339
+ committer: output.committer != null ? deserializeAws_json1_1UserInfo(output.committer, context) : undefined,
11437
11340
  message: __expectString(output.message),
11438
- parents: output.parents !== undefined && output.parents !== null
11439
- ? deserializeAws_json1_1ParentList(output.parents, context)
11440
- : undefined,
11341
+ parents: output.parents != null ? deserializeAws_json1_1ParentList(output.parents, context) : undefined,
11441
11342
  treeId: __expectString(output.treeId),
11442
11343
  };
11443
11344
  };
@@ -11494,36 +11395,26 @@ var deserializeAws_json1_1ConcurrentReferenceUpdateException = function (output,
11494
11395
  };
11495
11396
  var deserializeAws_json1_1Conflict = function (output, context) {
11496
11397
  return {
11497
- conflictMetadata: output.conflictMetadata !== undefined && output.conflictMetadata !== null
11398
+ conflictMetadata: output.conflictMetadata != null
11498
11399
  ? deserializeAws_json1_1ConflictMetadata(output.conflictMetadata, context)
11499
11400
  : undefined,
11500
- mergeHunks: output.mergeHunks !== undefined && output.mergeHunks !== null
11501
- ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context)
11502
- : undefined,
11401
+ mergeHunks: output.mergeHunks != null ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context) : undefined,
11503
11402
  };
11504
11403
  };
11505
11404
  var deserializeAws_json1_1ConflictMetadata = function (output, context) {
11506
11405
  return {
11507
11406
  contentConflict: __expectBoolean(output.contentConflict),
11508
11407
  fileModeConflict: __expectBoolean(output.fileModeConflict),
11509
- fileModes: output.fileModes !== undefined && output.fileModes !== null
11510
- ? deserializeAws_json1_1FileModes(output.fileModes, context)
11511
- : undefined,
11408
+ fileModes: output.fileModes != null ? deserializeAws_json1_1FileModes(output.fileModes, context) : undefined,
11512
11409
  filePath: __expectString(output.filePath),
11513
- fileSizes: output.fileSizes !== undefined && output.fileSizes !== null
11514
- ? deserializeAws_json1_1FileSizes(output.fileSizes, context)
11515
- : undefined,
11516
- isBinaryFile: output.isBinaryFile !== undefined && output.isBinaryFile !== null
11517
- ? deserializeAws_json1_1IsBinaryFile(output.isBinaryFile, context)
11518
- : undefined,
11519
- mergeOperations: output.mergeOperations !== undefined && output.mergeOperations !== null
11410
+ fileSizes: output.fileSizes != null ? deserializeAws_json1_1FileSizes(output.fileSizes, context) : undefined,
11411
+ isBinaryFile: output.isBinaryFile != null ? deserializeAws_json1_1IsBinaryFile(output.isBinaryFile, context) : undefined,
11412
+ mergeOperations: output.mergeOperations != null
11520
11413
  ? deserializeAws_json1_1MergeOperations(output.mergeOperations, context)
11521
11414
  : undefined,
11522
11415
  numberOfConflicts: __expectInt32(output.numberOfConflicts),
11523
11416
  objectTypeConflict: __expectBoolean(output.objectTypeConflict),
11524
- objectTypes: output.objectTypes !== undefined && output.objectTypes !== null
11525
- ? deserializeAws_json1_1ObjectTypes(output.objectTypes, context)
11526
- : undefined,
11417
+ objectTypes: output.objectTypes != null ? deserializeAws_json1_1ObjectTypes(output.objectTypes, context) : undefined,
11527
11418
  };
11528
11419
  };
11529
11420
  var deserializeAws_json1_1ConflictMetadataList = function (output, context) {
@@ -11550,7 +11441,7 @@ var deserializeAws_json1_1Conflicts = function (output, context) {
11550
11441
  };
11551
11442
  var deserializeAws_json1_1CreateApprovalRuleTemplateOutput = function (output, context) {
11552
11443
  return {
11553
- approvalRuleTemplate: output.approvalRuleTemplate !== undefined && output.approvalRuleTemplate !== null
11444
+ approvalRuleTemplate: output.approvalRuleTemplate != null
11554
11445
  ? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
11555
11446
  : undefined,
11556
11447
  };
@@ -11558,35 +11449,25 @@ var deserializeAws_json1_1CreateApprovalRuleTemplateOutput = function (output, c
11558
11449
  var deserializeAws_json1_1CreateCommitOutput = function (output, context) {
11559
11450
  return {
11560
11451
  commitId: __expectString(output.commitId),
11561
- filesAdded: output.filesAdded !== undefined && output.filesAdded !== null
11562
- ? deserializeAws_json1_1FilesMetadata(output.filesAdded, context)
11563
- : undefined,
11564
- filesDeleted: output.filesDeleted !== undefined && output.filesDeleted !== null
11565
- ? deserializeAws_json1_1FilesMetadata(output.filesDeleted, context)
11566
- : undefined,
11567
- filesUpdated: output.filesUpdated !== undefined && output.filesUpdated !== null
11568
- ? deserializeAws_json1_1FilesMetadata(output.filesUpdated, context)
11569
- : undefined,
11452
+ filesAdded: output.filesAdded != null ? deserializeAws_json1_1FilesMetadata(output.filesAdded, context) : undefined,
11453
+ filesDeleted: output.filesDeleted != null ? deserializeAws_json1_1FilesMetadata(output.filesDeleted, context) : undefined,
11454
+ filesUpdated: output.filesUpdated != null ? deserializeAws_json1_1FilesMetadata(output.filesUpdated, context) : undefined,
11570
11455
  treeId: __expectString(output.treeId),
11571
11456
  };
11572
11457
  };
11573
11458
  var deserializeAws_json1_1CreatePullRequestApprovalRuleOutput = function (output, context) {
11574
11459
  return {
11575
- approvalRule: output.approvalRule !== undefined && output.approvalRule !== null
11576
- ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context)
11577
- : undefined,
11460
+ approvalRule: output.approvalRule != null ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context) : undefined,
11578
11461
  };
11579
11462
  };
11580
11463
  var deserializeAws_json1_1CreatePullRequestOutput = function (output, context) {
11581
11464
  return {
11582
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
11583
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
11584
- : undefined,
11465
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
11585
11466
  };
11586
11467
  };
11587
11468
  var deserializeAws_json1_1CreateRepositoryOutput = function (output, context) {
11588
11469
  return {
11589
- repositoryMetadata: output.repositoryMetadata !== undefined && output.repositoryMetadata !== null
11470
+ repositoryMetadata: output.repositoryMetadata != null
11590
11471
  ? deserializeAws_json1_1RepositoryMetadata(output.repositoryMetadata, context)
11591
11472
  : undefined,
11592
11473
  };
@@ -11609,16 +11490,12 @@ var deserializeAws_json1_1DeleteApprovalRuleTemplateOutput = function (output, c
11609
11490
  };
11610
11491
  var deserializeAws_json1_1DeleteBranchOutput = function (output, context) {
11611
11492
  return {
11612
- deletedBranch: output.deletedBranch !== undefined && output.deletedBranch !== null
11613
- ? deserializeAws_json1_1BranchInfo(output.deletedBranch, context)
11614
- : undefined,
11493
+ deletedBranch: output.deletedBranch != null ? deserializeAws_json1_1BranchInfo(output.deletedBranch, context) : undefined,
11615
11494
  };
11616
11495
  };
11617
11496
  var deserializeAws_json1_1DeleteCommentContentOutput = function (output, context) {
11618
11497
  return {
11619
- comment: output.comment !== undefined && output.comment !== null
11620
- ? deserializeAws_json1_1Comment(output.comment, context)
11621
- : undefined,
11498
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
11622
11499
  };
11623
11500
  };
11624
11501
  var deserializeAws_json1_1DeleteFileOutput = function (output, context) {
@@ -11642,13 +11519,11 @@ var deserializeAws_json1_1DeleteRepositoryOutput = function (output, context) {
11642
11519
  var deserializeAws_json1_1DescribeMergeConflictsOutput = function (output, context) {
11643
11520
  return {
11644
11521
  baseCommitId: __expectString(output.baseCommitId),
11645
- conflictMetadata: output.conflictMetadata !== undefined && output.conflictMetadata !== null
11522
+ conflictMetadata: output.conflictMetadata != null
11646
11523
  ? deserializeAws_json1_1ConflictMetadata(output.conflictMetadata, context)
11647
11524
  : undefined,
11648
11525
  destinationCommitId: __expectString(output.destinationCommitId),
11649
- mergeHunks: output.mergeHunks !== undefined && output.mergeHunks !== null
11650
- ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context)
11651
- : undefined,
11526
+ mergeHunks: output.mergeHunks != null ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context) : undefined,
11652
11527
  nextToken: __expectString(output.nextToken),
11653
11528
  sourceCommitId: __expectString(output.sourceCommitId),
11654
11529
  };
@@ -11656,19 +11531,15 @@ var deserializeAws_json1_1DescribeMergeConflictsOutput = function (output, conte
11656
11531
  var deserializeAws_json1_1DescribePullRequestEventsOutput = function (output, context) {
11657
11532
  return {
11658
11533
  nextToken: __expectString(output.nextToken),
11659
- pullRequestEvents: output.pullRequestEvents !== undefined && output.pullRequestEvents !== null
11534
+ pullRequestEvents: output.pullRequestEvents != null
11660
11535
  ? deserializeAws_json1_1PullRequestEventList(output.pullRequestEvents, context)
11661
11536
  : undefined,
11662
11537
  };
11663
11538
  };
11664
11539
  var deserializeAws_json1_1Difference = function (output, context) {
11665
11540
  return {
11666
- afterBlob: output.afterBlob !== undefined && output.afterBlob !== null
11667
- ? deserializeAws_json1_1BlobMetadata(output.afterBlob, context)
11668
- : undefined,
11669
- beforeBlob: output.beforeBlob !== undefined && output.beforeBlob !== null
11670
- ? deserializeAws_json1_1BlobMetadata(output.beforeBlob, context)
11671
- : undefined,
11541
+ afterBlob: output.afterBlob != null ? deserializeAws_json1_1BlobMetadata(output.afterBlob, context) : undefined,
11542
+ beforeBlob: output.beforeBlob != null ? deserializeAws_json1_1BlobMetadata(output.beforeBlob, context) : undefined,
11672
11543
  changeType: __expectString(output.changeType),
11673
11544
  };
11674
11545
  };
@@ -11715,17 +11586,15 @@ var deserializeAws_json1_1EncryptionKeyUnavailableException = function (output,
11715
11586
  };
11716
11587
  var deserializeAws_json1_1EvaluatePullRequestApprovalRulesOutput = function (output, context) {
11717
11588
  return {
11718
- evaluation: output.evaluation !== undefined && output.evaluation !== null
11719
- ? deserializeAws_json1_1Evaluation(output.evaluation, context)
11720
- : undefined,
11589
+ evaluation: output.evaluation != null ? deserializeAws_json1_1Evaluation(output.evaluation, context) : undefined,
11721
11590
  };
11722
11591
  };
11723
11592
  var deserializeAws_json1_1Evaluation = function (output, context) {
11724
11593
  return {
11725
- approvalRulesNotSatisfied: output.approvalRulesNotSatisfied !== undefined && output.approvalRulesNotSatisfied !== null
11594
+ approvalRulesNotSatisfied: output.approvalRulesNotSatisfied != null
11726
11595
  ? deserializeAws_json1_1ApprovalRulesNotSatisfiedList(output.approvalRulesNotSatisfied, context)
11727
11596
  : undefined,
11728
- approvalRulesSatisfied: output.approvalRulesSatisfied !== undefined && output.approvalRulesSatisfied !== null
11597
+ approvalRulesSatisfied: output.approvalRulesSatisfied != null
11729
11598
  ? deserializeAws_json1_1ApprovalRulesSatisfiedList(output.approvalRulesSatisfied, context)
11730
11599
  : undefined,
11731
11600
  approved: __expectBoolean(output.approved),
@@ -11858,41 +11727,37 @@ var deserializeAws_json1_1FolderList = function (output, context) {
11858
11727
  };
11859
11728
  var deserializeAws_json1_1GetApprovalRuleTemplateOutput = function (output, context) {
11860
11729
  return {
11861
- approvalRuleTemplate: output.approvalRuleTemplate !== undefined && output.approvalRuleTemplate !== null
11730
+ approvalRuleTemplate: output.approvalRuleTemplate != null
11862
11731
  ? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
11863
11732
  : undefined,
11864
11733
  };
11865
11734
  };
11866
11735
  var deserializeAws_json1_1GetBlobOutput = function (output, context) {
11867
11736
  return {
11868
- content: output.content !== undefined && output.content !== null ? context.base64Decoder(output.content) : undefined,
11737
+ content: output.content != null ? context.base64Decoder(output.content) : undefined,
11869
11738
  };
11870
11739
  };
11871
11740
  var deserializeAws_json1_1GetBranchOutput = function (output, context) {
11872
11741
  return {
11873
- branch: output.branch !== undefined && output.branch !== null
11874
- ? deserializeAws_json1_1BranchInfo(output.branch, context)
11875
- : undefined,
11742
+ branch: output.branch != null ? deserializeAws_json1_1BranchInfo(output.branch, context) : undefined,
11876
11743
  };
11877
11744
  };
11878
11745
  var deserializeAws_json1_1GetCommentOutput = function (output, context) {
11879
11746
  return {
11880
- comment: output.comment !== undefined && output.comment !== null
11881
- ? deserializeAws_json1_1Comment(output.comment, context)
11882
- : undefined,
11747
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
11883
11748
  };
11884
11749
  };
11885
11750
  var deserializeAws_json1_1GetCommentReactionsOutput = function (output, context) {
11886
11751
  return {
11887
11752
  nextToken: __expectString(output.nextToken),
11888
- reactionsForComment: output.reactionsForComment !== undefined && output.reactionsForComment !== null
11753
+ reactionsForComment: output.reactionsForComment != null
11889
11754
  ? deserializeAws_json1_1ReactionsForCommentList(output.reactionsForComment, context)
11890
11755
  : undefined,
11891
11756
  };
11892
11757
  };
11893
11758
  var deserializeAws_json1_1GetCommentsForComparedCommitOutput = function (output, context) {
11894
11759
  return {
11895
- commentsForComparedCommitData: output.commentsForComparedCommitData !== undefined && output.commentsForComparedCommitData !== null
11760
+ commentsForComparedCommitData: output.commentsForComparedCommitData != null
11896
11761
  ? deserializeAws_json1_1CommentsForComparedCommitData(output.commentsForComparedCommitData, context)
11897
11762
  : undefined,
11898
11763
  nextToken: __expectString(output.nextToken),
@@ -11900,7 +11765,7 @@ var deserializeAws_json1_1GetCommentsForComparedCommitOutput = function (output,
11900
11765
  };
11901
11766
  var deserializeAws_json1_1GetCommentsForPullRequestOutput = function (output, context) {
11902
11767
  return {
11903
- commentsForPullRequestData: output.commentsForPullRequestData !== undefined && output.commentsForPullRequestData !== null
11768
+ commentsForPullRequestData: output.commentsForPullRequestData != null
11904
11769
  ? deserializeAws_json1_1CommentsForPullRequestData(output.commentsForPullRequestData, context)
11905
11770
  : undefined,
11906
11771
  nextToken: __expectString(output.nextToken),
@@ -11908,26 +11773,20 @@ var deserializeAws_json1_1GetCommentsForPullRequestOutput = function (output, co
11908
11773
  };
11909
11774
  var deserializeAws_json1_1GetCommitOutput = function (output, context) {
11910
11775
  return {
11911
- commit: output.commit !== undefined && output.commit !== null
11912
- ? deserializeAws_json1_1Commit(output.commit, context)
11913
- : undefined,
11776
+ commit: output.commit != null ? deserializeAws_json1_1Commit(output.commit, context) : undefined,
11914
11777
  };
11915
11778
  };
11916
11779
  var deserializeAws_json1_1GetDifferencesOutput = function (output, context) {
11917
11780
  return {
11918
11781
  NextToken: __expectString(output.NextToken),
11919
- differences: output.differences !== undefined && output.differences !== null
11920
- ? deserializeAws_json1_1DifferenceList(output.differences, context)
11921
- : undefined,
11782
+ differences: output.differences != null ? deserializeAws_json1_1DifferenceList(output.differences, context) : undefined,
11922
11783
  };
11923
11784
  };
11924
11785
  var deserializeAws_json1_1GetFileOutput = function (output, context) {
11925
11786
  return {
11926
11787
  blobId: __expectString(output.blobId),
11927
11788
  commitId: __expectString(output.commitId),
11928
- fileContent: output.fileContent !== undefined && output.fileContent !== null
11929
- ? context.base64Decoder(output.fileContent)
11930
- : undefined,
11789
+ fileContent: output.fileContent != null ? context.base64Decoder(output.fileContent) : undefined,
11931
11790
  fileMode: __expectString(output.fileMode),
11932
11791
  filePath: __expectString(output.filePath),
11933
11792
  fileSize: __expectLong(output.fileSize),
@@ -11936,19 +11795,11 @@ var deserializeAws_json1_1GetFileOutput = function (output, context) {
11936
11795
  var deserializeAws_json1_1GetFolderOutput = function (output, context) {
11937
11796
  return {
11938
11797
  commitId: __expectString(output.commitId),
11939
- files: output.files !== undefined && output.files !== null
11940
- ? deserializeAws_json1_1FileList(output.files, context)
11941
- : undefined,
11798
+ files: output.files != null ? deserializeAws_json1_1FileList(output.files, context) : undefined,
11942
11799
  folderPath: __expectString(output.folderPath),
11943
- subFolders: output.subFolders !== undefined && output.subFolders !== null
11944
- ? deserializeAws_json1_1FolderList(output.subFolders, context)
11945
- : undefined,
11946
- subModules: output.subModules !== undefined && output.subModules !== null
11947
- ? deserializeAws_json1_1SubModuleList(output.subModules, context)
11948
- : undefined,
11949
- symbolicLinks: output.symbolicLinks !== undefined && output.symbolicLinks !== null
11950
- ? deserializeAws_json1_1SymbolicLinkList(output.symbolicLinks, context)
11951
- : undefined,
11800
+ subFolders: output.subFolders != null ? deserializeAws_json1_1FolderList(output.subFolders, context) : undefined,
11801
+ subModules: output.subModules != null ? deserializeAws_json1_1SubModuleList(output.subModules, context) : undefined,
11802
+ symbolicLinks: output.symbolicLinks != null ? deserializeAws_json1_1SymbolicLinkList(output.symbolicLinks, context) : undefined,
11952
11803
  treeId: __expectString(output.treeId),
11953
11804
  };
11954
11805
  };
@@ -11963,7 +11814,7 @@ var deserializeAws_json1_1GetMergeCommitOutput = function (output, context) {
11963
11814
  var deserializeAws_json1_1GetMergeConflictsOutput = function (output, context) {
11964
11815
  return {
11965
11816
  baseCommitId: __expectString(output.baseCommitId),
11966
- conflictMetadataList: output.conflictMetadataList !== undefined && output.conflictMetadataList !== null
11817
+ conflictMetadataList: output.conflictMetadataList != null
11967
11818
  ? deserializeAws_json1_1ConflictMetadataList(output.conflictMetadataList, context)
11968
11819
  : undefined,
11969
11820
  destinationCommitId: __expectString(output.destinationCommitId),
@@ -11976,24 +11827,18 @@ var deserializeAws_json1_1GetMergeOptionsOutput = function (output, context) {
11976
11827
  return {
11977
11828
  baseCommitId: __expectString(output.baseCommitId),
11978
11829
  destinationCommitId: __expectString(output.destinationCommitId),
11979
- mergeOptions: output.mergeOptions !== undefined && output.mergeOptions !== null
11980
- ? deserializeAws_json1_1MergeOptions(output.mergeOptions, context)
11981
- : undefined,
11830
+ mergeOptions: output.mergeOptions != null ? deserializeAws_json1_1MergeOptions(output.mergeOptions, context) : undefined,
11982
11831
  sourceCommitId: __expectString(output.sourceCommitId),
11983
11832
  };
11984
11833
  };
11985
11834
  var deserializeAws_json1_1GetPullRequestApprovalStatesOutput = function (output, context) {
11986
11835
  return {
11987
- approvals: output.approvals !== undefined && output.approvals !== null
11988
- ? deserializeAws_json1_1ApprovalList(output.approvals, context)
11989
- : undefined,
11836
+ approvals: output.approvals != null ? deserializeAws_json1_1ApprovalList(output.approvals, context) : undefined,
11990
11837
  };
11991
11838
  };
11992
11839
  var deserializeAws_json1_1GetPullRequestOutput = function (output, context) {
11993
11840
  return {
11994
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
11995
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
11996
- : undefined,
11841
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
11997
11842
  };
11998
11843
  };
11999
11844
  var deserializeAws_json1_1GetPullRequestOverrideStateOutput = function (output, context) {
@@ -12004,7 +11849,7 @@ var deserializeAws_json1_1GetPullRequestOverrideStateOutput = function (output,
12004
11849
  };
12005
11850
  var deserializeAws_json1_1GetRepositoryOutput = function (output, context) {
12006
11851
  return {
12007
- repositoryMetadata: output.repositoryMetadata !== undefined && output.repositoryMetadata !== null
11852
+ repositoryMetadata: output.repositoryMetadata != null
12008
11853
  ? deserializeAws_json1_1RepositoryMetadata(output.repositoryMetadata, context)
12009
11854
  : undefined,
12010
11855
  };
@@ -12012,9 +11857,7 @@ var deserializeAws_json1_1GetRepositoryOutput = function (output, context) {
12012
11857
  var deserializeAws_json1_1GetRepositoryTriggersOutput = function (output, context) {
12013
11858
  return {
12014
11859
  configurationId: __expectString(output.configurationId),
12015
- triggers: output.triggers !== undefined && output.triggers !== null
12016
- ? deserializeAws_json1_1RepositoryTriggersList(output.triggers, context)
12017
- : undefined,
11860
+ triggers: output.triggers != null ? deserializeAws_json1_1RepositoryTriggersList(output.triggers, context) : undefined,
12018
11861
  };
12019
11862
  };
12020
11863
  var deserializeAws_json1_1IdempotencyParameterMismatchException = function (output, context) {
@@ -12346,7 +12189,7 @@ var deserializeAws_json1_1IsBinaryFile = function (output, context) {
12346
12189
  };
12347
12190
  var deserializeAws_json1_1ListApprovalRuleTemplatesOutput = function (output, context) {
12348
12191
  return {
12349
- approvalRuleTemplateNames: output.approvalRuleTemplateNames !== undefined && output.approvalRuleTemplateNames !== null
12192
+ approvalRuleTemplateNames: output.approvalRuleTemplateNames != null
12350
12193
  ? deserializeAws_json1_1ApprovalRuleTemplateNameList(output.approvalRuleTemplateNames, context)
12351
12194
  : undefined,
12352
12195
  nextToken: __expectString(output.nextToken),
@@ -12354,7 +12197,7 @@ var deserializeAws_json1_1ListApprovalRuleTemplatesOutput = function (output, co
12354
12197
  };
12355
12198
  var deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryOutput = function (output, context) {
12356
12199
  return {
12357
- approvalRuleTemplateNames: output.approvalRuleTemplateNames !== undefined && output.approvalRuleTemplateNames !== null
12200
+ approvalRuleTemplateNames: output.approvalRuleTemplateNames != null
12358
12201
  ? deserializeAws_json1_1ApprovalRuleTemplateNameList(output.approvalRuleTemplateNames, context)
12359
12202
  : undefined,
12360
12203
  nextToken: __expectString(output.nextToken),
@@ -12362,16 +12205,14 @@ var deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryOutput
12362
12205
  };
12363
12206
  var deserializeAws_json1_1ListBranchesOutput = function (output, context) {
12364
12207
  return {
12365
- branches: output.branches !== undefined && output.branches !== null
12366
- ? deserializeAws_json1_1BranchNameList(output.branches, context)
12367
- : undefined,
12208
+ branches: output.branches != null ? deserializeAws_json1_1BranchNameList(output.branches, context) : undefined,
12368
12209
  nextToken: __expectString(output.nextToken),
12369
12210
  };
12370
12211
  };
12371
12212
  var deserializeAws_json1_1ListPullRequestsOutput = function (output, context) {
12372
12213
  return {
12373
12214
  nextToken: __expectString(output.nextToken),
12374
- pullRequestIds: output.pullRequestIds !== undefined && output.pullRequestIds !== null
12215
+ pullRequestIds: output.pullRequestIds != null
12375
12216
  ? deserializeAws_json1_1PullRequestIdList(output.pullRequestIds, context)
12376
12217
  : undefined,
12377
12218
  };
@@ -12379,7 +12220,7 @@ var deserializeAws_json1_1ListPullRequestsOutput = function (output, context) {
12379
12220
  var deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateOutput = function (output, context) {
12380
12221
  return {
12381
12222
  nextToken: __expectString(output.nextToken),
12382
- repositoryNames: output.repositoryNames !== undefined && output.repositoryNames !== null
12223
+ repositoryNames: output.repositoryNames != null
12383
12224
  ? deserializeAws_json1_1RepositoryNameList(output.repositoryNames, context)
12384
12225
  : undefined,
12385
12226
  };
@@ -12387,7 +12228,7 @@ var deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateOutput = functi
12387
12228
  var deserializeAws_json1_1ListRepositoriesOutput = function (output, context) {
12388
12229
  return {
12389
12230
  nextToken: __expectString(output.nextToken),
12390
- repositories: output.repositories !== undefined && output.repositories !== null
12231
+ repositories: output.repositories != null
12391
12232
  ? deserializeAws_json1_1RepositoryNameIdPairList(output.repositories, context)
12392
12233
  : undefined,
12393
12234
  };
@@ -12395,9 +12236,7 @@ var deserializeAws_json1_1ListRepositoriesOutput = function (output, context) {
12395
12236
  var deserializeAws_json1_1ListTagsForResourceOutput = function (output, context) {
12396
12237
  return {
12397
12238
  nextToken: __expectString(output.nextToken),
12398
- tags: output.tags !== undefined && output.tags !== null
12399
- ? deserializeAws_json1_1TagsMap(output.tags, context)
12400
- : undefined,
12239
+ tags: output.tags != null ? deserializeAws_json1_1TagsMap(output.tags, context) : undefined,
12401
12240
  };
12402
12241
  };
12403
12242
  var deserializeAws_json1_1Location = function (output, context) {
@@ -12482,16 +12321,10 @@ var deserializeAws_json1_1MergeBranchesByThreeWayOutput = function (output, cont
12482
12321
  };
12483
12322
  var deserializeAws_json1_1MergeHunk = function (output, context) {
12484
12323
  return {
12485
- base: output.base !== undefined && output.base !== null
12486
- ? deserializeAws_json1_1MergeHunkDetail(output.base, context)
12487
- : undefined,
12488
- destination: output.destination !== undefined && output.destination !== null
12489
- ? deserializeAws_json1_1MergeHunkDetail(output.destination, context)
12490
- : undefined,
12324
+ base: output.base != null ? deserializeAws_json1_1MergeHunkDetail(output.base, context) : undefined,
12325
+ destination: output.destination != null ? deserializeAws_json1_1MergeHunkDetail(output.destination, context) : undefined,
12491
12326
  isConflict: __expectBoolean(output.isConflict),
12492
- source: output.source !== undefined && output.source !== null
12493
- ? deserializeAws_json1_1MergeHunkDetail(output.source, context)
12494
- : undefined,
12327
+ source: output.source != null ? deserializeAws_json1_1MergeHunkDetail(output.source, context) : undefined,
12495
12328
  };
12496
12329
  };
12497
12330
  var deserializeAws_json1_1MergeHunkDetail = function (output, context) {
@@ -12544,23 +12377,17 @@ var deserializeAws_json1_1MergeOptions = function (output, context) {
12544
12377
  };
12545
12378
  var deserializeAws_json1_1MergePullRequestByFastForwardOutput = function (output, context) {
12546
12379
  return {
12547
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
12548
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
12549
- : undefined,
12380
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
12550
12381
  };
12551
12382
  };
12552
12383
  var deserializeAws_json1_1MergePullRequestBySquashOutput = function (output, context) {
12553
12384
  return {
12554
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
12555
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
12556
- : undefined,
12385
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
12557
12386
  };
12558
12387
  };
12559
12388
  var deserializeAws_json1_1MergePullRequestByThreeWayOutput = function (output, context) {
12560
12389
  return {
12561
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
12562
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
12563
- : undefined,
12390
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
12564
12391
  };
12565
12392
  };
12566
12393
  var deserializeAws_json1_1MultipleConflictResolutionEntriesException = function (output, context) {
@@ -12658,12 +12485,8 @@ var deserializeAws_json1_1PostCommentForComparedCommitOutput = function (output,
12658
12485
  afterCommitId: __expectString(output.afterCommitId),
12659
12486
  beforeBlobId: __expectString(output.beforeBlobId),
12660
12487
  beforeCommitId: __expectString(output.beforeCommitId),
12661
- comment: output.comment !== undefined && output.comment !== null
12662
- ? deserializeAws_json1_1Comment(output.comment, context)
12663
- : undefined,
12664
- location: output.location !== undefined && output.location !== null
12665
- ? deserializeAws_json1_1Location(output.location, context)
12666
- : undefined,
12488
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
12489
+ location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
12667
12490
  repositoryName: __expectString(output.repositoryName),
12668
12491
  };
12669
12492
  };
@@ -12673,40 +12496,32 @@ var deserializeAws_json1_1PostCommentForPullRequestOutput = function (output, co
12673
12496
  afterCommitId: __expectString(output.afterCommitId),
12674
12497
  beforeBlobId: __expectString(output.beforeBlobId),
12675
12498
  beforeCommitId: __expectString(output.beforeCommitId),
12676
- comment: output.comment !== undefined && output.comment !== null
12677
- ? deserializeAws_json1_1Comment(output.comment, context)
12678
- : undefined,
12679
- location: output.location !== undefined && output.location !== null
12680
- ? deserializeAws_json1_1Location(output.location, context)
12681
- : undefined,
12499
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
12500
+ location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
12682
12501
  pullRequestId: __expectString(output.pullRequestId),
12683
12502
  repositoryName: __expectString(output.repositoryName),
12684
12503
  };
12685
12504
  };
12686
12505
  var deserializeAws_json1_1PostCommentReplyOutput = function (output, context) {
12687
12506
  return {
12688
- comment: output.comment !== undefined && output.comment !== null
12689
- ? deserializeAws_json1_1Comment(output.comment, context)
12690
- : undefined,
12507
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
12691
12508
  };
12692
12509
  };
12693
12510
  var deserializeAws_json1_1PullRequest = function (output, context) {
12694
12511
  return {
12695
- approvalRules: output.approvalRules !== undefined && output.approvalRules !== null
12696
- ? deserializeAws_json1_1ApprovalRulesList(output.approvalRules, context)
12697
- : undefined,
12512
+ approvalRules: output.approvalRules != null ? deserializeAws_json1_1ApprovalRulesList(output.approvalRules, context) : undefined,
12698
12513
  authorArn: __expectString(output.authorArn),
12699
12514
  clientRequestToken: __expectString(output.clientRequestToken),
12700
- creationDate: output.creationDate !== undefined && output.creationDate !== null
12515
+ creationDate: output.creationDate != null
12701
12516
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
12702
12517
  : undefined,
12703
12518
  description: __expectString(output.description),
12704
- lastActivityDate: output.lastActivityDate !== undefined && output.lastActivityDate !== null
12519
+ lastActivityDate: output.lastActivityDate != null
12705
12520
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastActivityDate)))
12706
12521
  : undefined,
12707
12522
  pullRequestId: __expectString(output.pullRequestId),
12708
12523
  pullRequestStatus: __expectString(output.pullRequestStatus),
12709
- pullRequestTargets: output.pullRequestTargets !== undefined && output.pullRequestTargets !== null
12524
+ pullRequestTargets: output.pullRequestTargets != null
12710
12525
  ? deserializeAws_json1_1PullRequestTargetList(output.pullRequestTargets, context)
12711
12526
  : undefined,
12712
12527
  revisionId: __expectString(output.revisionId),
@@ -12744,33 +12559,28 @@ var deserializeAws_json1_1PullRequestDoesNotExistException = function (output, c
12744
12559
  var deserializeAws_json1_1PullRequestEvent = function (output, context) {
12745
12560
  return {
12746
12561
  actorArn: __expectString(output.actorArn),
12747
- approvalRuleEventMetadata: output.approvalRuleEventMetadata !== undefined && output.approvalRuleEventMetadata !== null
12562
+ approvalRuleEventMetadata: output.approvalRuleEventMetadata != null
12748
12563
  ? deserializeAws_json1_1ApprovalRuleEventMetadata(output.approvalRuleEventMetadata, context)
12749
12564
  : undefined,
12750
- approvalRuleOverriddenEventMetadata: output.approvalRuleOverriddenEventMetadata !== undefined && output.approvalRuleOverriddenEventMetadata !== null
12565
+ approvalRuleOverriddenEventMetadata: output.approvalRuleOverriddenEventMetadata != null
12751
12566
  ? deserializeAws_json1_1ApprovalRuleOverriddenEventMetadata(output.approvalRuleOverriddenEventMetadata, context)
12752
12567
  : undefined,
12753
- approvalStateChangedEventMetadata: output.approvalStateChangedEventMetadata !== undefined && output.approvalStateChangedEventMetadata !== null
12568
+ approvalStateChangedEventMetadata: output.approvalStateChangedEventMetadata != null
12754
12569
  ? deserializeAws_json1_1ApprovalStateChangedEventMetadata(output.approvalStateChangedEventMetadata, context)
12755
12570
  : undefined,
12756
- eventDate: output.eventDate !== undefined && output.eventDate !== null
12757
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventDate)))
12758
- : undefined,
12759
- pullRequestCreatedEventMetadata: output.pullRequestCreatedEventMetadata !== undefined && output.pullRequestCreatedEventMetadata !== null
12571
+ eventDate: output.eventDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventDate))) : undefined,
12572
+ pullRequestCreatedEventMetadata: output.pullRequestCreatedEventMetadata != null
12760
12573
  ? deserializeAws_json1_1PullRequestCreatedEventMetadata(output.pullRequestCreatedEventMetadata, context)
12761
12574
  : undefined,
12762
12575
  pullRequestEventType: __expectString(output.pullRequestEventType),
12763
12576
  pullRequestId: __expectString(output.pullRequestId),
12764
- pullRequestMergedStateChangedEventMetadata: output.pullRequestMergedStateChangedEventMetadata !== undefined &&
12765
- output.pullRequestMergedStateChangedEventMetadata !== null
12577
+ pullRequestMergedStateChangedEventMetadata: output.pullRequestMergedStateChangedEventMetadata != null
12766
12578
  ? deserializeAws_json1_1PullRequestMergedStateChangedEventMetadata(output.pullRequestMergedStateChangedEventMetadata, context)
12767
12579
  : undefined,
12768
- pullRequestSourceReferenceUpdatedEventMetadata: output.pullRequestSourceReferenceUpdatedEventMetadata !== undefined &&
12769
- output.pullRequestSourceReferenceUpdatedEventMetadata !== null
12580
+ pullRequestSourceReferenceUpdatedEventMetadata: output.pullRequestSourceReferenceUpdatedEventMetadata != null
12770
12581
  ? deserializeAws_json1_1PullRequestSourceReferenceUpdatedEventMetadata(output.pullRequestSourceReferenceUpdatedEventMetadata, context)
12771
12582
  : undefined,
12772
- pullRequestStatusChangedEventMetadata: output.pullRequestStatusChangedEventMetadata !== undefined &&
12773
- output.pullRequestStatusChangedEventMetadata !== null
12583
+ pullRequestStatusChangedEventMetadata: output.pullRequestStatusChangedEventMetadata != null
12774
12584
  ? deserializeAws_json1_1PullRequestStatusChangedEventMetadata(output.pullRequestStatusChangedEventMetadata, context)
12775
12585
  : undefined,
12776
12586
  };
@@ -12805,9 +12615,7 @@ var deserializeAws_json1_1PullRequestIdRequiredException = function (output, con
12805
12615
  var deserializeAws_json1_1PullRequestMergedStateChangedEventMetadata = function (output, context) {
12806
12616
  return {
12807
12617
  destinationReference: __expectString(output.destinationReference),
12808
- mergeMetadata: output.mergeMetadata !== undefined && output.mergeMetadata !== null
12809
- ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context)
12810
- : undefined,
12618
+ mergeMetadata: output.mergeMetadata != null ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context) : undefined,
12811
12619
  repositoryName: __expectString(output.repositoryName),
12812
12620
  };
12813
12621
  };
@@ -12834,9 +12642,7 @@ var deserializeAws_json1_1PullRequestTarget = function (output, context) {
12834
12642
  destinationCommit: __expectString(output.destinationCommit),
12835
12643
  destinationReference: __expectString(output.destinationReference),
12836
12644
  mergeBase: __expectString(output.mergeBase),
12837
- mergeMetadata: output.mergeMetadata !== undefined && output.mergeMetadata !== null
12838
- ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context)
12839
- : undefined,
12645
+ mergeMetadata: output.mergeMetadata != null ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context) : undefined,
12840
12646
  repositoryName: __expectString(output.repositoryName),
12841
12647
  sourceCommit: __expectString(output.sourceCommit),
12842
12648
  sourceReference: __expectString(output.sourceReference),
@@ -12882,12 +12688,8 @@ var deserializeAws_json1_1ReactionCountsMap = function (output, context) {
12882
12688
  };
12883
12689
  var deserializeAws_json1_1ReactionForComment = function (output, context) {
12884
12690
  return {
12885
- reaction: output.reaction !== undefined && output.reaction !== null
12886
- ? deserializeAws_json1_1ReactionValueFormats(output.reaction, context)
12887
- : undefined,
12888
- reactionUsers: output.reactionUsers !== undefined && output.reactionUsers !== null
12889
- ? deserializeAws_json1_1ReactionUsersList(output.reactionUsers, context)
12890
- : undefined,
12691
+ reaction: output.reaction != null ? deserializeAws_json1_1ReactionValueFormats(output.reaction, context) : undefined,
12692
+ reactionUsers: output.reactionUsers != null ? deserializeAws_json1_1ReactionUsersList(output.reactionUsers, context) : undefined,
12891
12693
  reactionsFromDeletedUsersCount: __expectInt32(output.reactionsFromDeletedUsersCount),
12892
12694
  };
12893
12695
  };
@@ -12971,11 +12773,11 @@ var deserializeAws_json1_1RepositoryMetadata = function (output, context) {
12971
12773
  accountId: __expectString(output.accountId),
12972
12774
  cloneUrlHttp: __expectString(output.cloneUrlHttp),
12973
12775
  cloneUrlSsh: __expectString(output.cloneUrlSsh),
12974
- creationDate: output.creationDate !== undefined && output.creationDate !== null
12776
+ creationDate: output.creationDate != null
12975
12777
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
12976
12778
  : undefined,
12977
12779
  defaultBranch: __expectString(output.defaultBranch),
12978
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
12780
+ lastModifiedDate: output.lastModifiedDate != null
12979
12781
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
12980
12782
  : undefined,
12981
12783
  repositoryDescription: __expectString(output.repositoryDescription),
@@ -13055,14 +12857,10 @@ var deserializeAws_json1_1RepositoryNotFoundList = function (output, context) {
13055
12857
  };
13056
12858
  var deserializeAws_json1_1RepositoryTrigger = function (output, context) {
13057
12859
  return {
13058
- branches: output.branches !== undefined && output.branches !== null
13059
- ? deserializeAws_json1_1BranchNameList(output.branches, context)
13060
- : undefined,
12860
+ branches: output.branches != null ? deserializeAws_json1_1BranchNameList(output.branches, context) : undefined,
13061
12861
  customData: __expectString(output.customData),
13062
12862
  destinationArn: __expectString(output.destinationArn),
13063
- events: output.events !== undefined && output.events !== null
13064
- ? deserializeAws_json1_1RepositoryTriggerEventList(output.events, context)
13065
- : undefined,
12863
+ events: output.events != null ? deserializeAws_json1_1RepositoryTriggerEventList(output.events, context) : undefined,
13066
12864
  name: __expectString(output.name),
13067
12865
  };
13068
12866
  };
@@ -13255,10 +13053,10 @@ var deserializeAws_json1_1TargetsRequiredException = function (output, context)
13255
13053
  };
13256
13054
  var deserializeAws_json1_1TestRepositoryTriggersOutput = function (output, context) {
13257
13055
  return {
13258
- failedExecutions: output.failedExecutions !== undefined && output.failedExecutions !== null
13056
+ failedExecutions: output.failedExecutions != null
13259
13057
  ? deserializeAws_json1_1RepositoryTriggerExecutionFailureList(output.failedExecutions, context)
13260
13058
  : undefined,
13261
- successfulExecutions: output.successfulExecutions !== undefined && output.successfulExecutions !== null
13059
+ successfulExecutions: output.successfulExecutions != null
13262
13060
  ? deserializeAws_json1_1RepositoryTriggerNameList(output.successfulExecutions, context)
13263
13061
  : undefined,
13264
13062
  };
@@ -13285,58 +13083,48 @@ var deserializeAws_json1_1TooManyTagsException = function (output, context) {
13285
13083
  };
13286
13084
  var deserializeAws_json1_1UpdateApprovalRuleTemplateContentOutput = function (output, context) {
13287
13085
  return {
13288
- approvalRuleTemplate: output.approvalRuleTemplate !== undefined && output.approvalRuleTemplate !== null
13086
+ approvalRuleTemplate: output.approvalRuleTemplate != null
13289
13087
  ? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
13290
13088
  : undefined,
13291
13089
  };
13292
13090
  };
13293
13091
  var deserializeAws_json1_1UpdateApprovalRuleTemplateDescriptionOutput = function (output, context) {
13294
13092
  return {
13295
- approvalRuleTemplate: output.approvalRuleTemplate !== undefined && output.approvalRuleTemplate !== null
13093
+ approvalRuleTemplate: output.approvalRuleTemplate != null
13296
13094
  ? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
13297
13095
  : undefined,
13298
13096
  };
13299
13097
  };
13300
13098
  var deserializeAws_json1_1UpdateApprovalRuleTemplateNameOutput = function (output, context) {
13301
13099
  return {
13302
- approvalRuleTemplate: output.approvalRuleTemplate !== undefined && output.approvalRuleTemplate !== null
13100
+ approvalRuleTemplate: output.approvalRuleTemplate != null
13303
13101
  ? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
13304
13102
  : undefined,
13305
13103
  };
13306
13104
  };
13307
13105
  var deserializeAws_json1_1UpdateCommentOutput = function (output, context) {
13308
13106
  return {
13309
- comment: output.comment !== undefined && output.comment !== null
13310
- ? deserializeAws_json1_1Comment(output.comment, context)
13311
- : undefined,
13107
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
13312
13108
  };
13313
13109
  };
13314
13110
  var deserializeAws_json1_1UpdatePullRequestApprovalRuleContentOutput = function (output, context) {
13315
13111
  return {
13316
- approvalRule: output.approvalRule !== undefined && output.approvalRule !== null
13317
- ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context)
13318
- : undefined,
13112
+ approvalRule: output.approvalRule != null ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context) : undefined,
13319
13113
  };
13320
13114
  };
13321
13115
  var deserializeAws_json1_1UpdatePullRequestDescriptionOutput = function (output, context) {
13322
13116
  return {
13323
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
13324
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
13325
- : undefined,
13117
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
13326
13118
  };
13327
13119
  };
13328
13120
  var deserializeAws_json1_1UpdatePullRequestStatusOutput = function (output, context) {
13329
13121
  return {
13330
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
13331
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
13332
- : undefined,
13122
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
13333
13123
  };
13334
13124
  };
13335
13125
  var deserializeAws_json1_1UpdatePullRequestTitleOutput = function (output, context) {
13336
13126
  return {
13337
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
13338
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
13339
- : undefined,
13127
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
13340
13128
  };
13341
13129
  };
13342
13130
  var deserializeAws_json1_1UserInfo = function (output, context) {
@@ -13420,5 +13208,4 @@ var loadRestJsonErrorCode = function (output, data) {
13420
13208
  if (data["__type"] !== undefined) {
13421
13209
  return sanitizeErrorCode(data["__type"]);
13422
13210
  }
13423
- return "";
13424
13211
  };