@aws-sdk/client-storage-gateway 3.141.0 → 3.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +450 -771
- package/dist-es/protocols/Aws_json1_1.js +721 -772
- package/package.json +11 -6
|
@@ -927,7 +927,6 @@ const deserializeAws_json1_1ActivateGatewayCommandError = async (output, context
|
|
|
927
927
|
...output,
|
|
928
928
|
body: await parseBody(output.body, context),
|
|
929
929
|
};
|
|
930
|
-
let response;
|
|
931
930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
931
|
switch (errorCode) {
|
|
933
932
|
case "InternalServerError":
|
|
@@ -938,14 +937,12 @@ const deserializeAws_json1_1ActivateGatewayCommandError = async (output, context
|
|
|
938
937
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
939
938
|
default:
|
|
940
939
|
const parsedBody = parsedOutput.body;
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
$metadata,
|
|
940
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
941
|
+
output,
|
|
942
|
+
parsedBody,
|
|
943
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
944
|
+
errorCode,
|
|
947
945
|
});
|
|
948
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
949
946
|
}
|
|
950
947
|
};
|
|
951
948
|
const deserializeAws_json1_1AddCacheCommand = async (output, context) => {
|
|
@@ -967,7 +964,6 @@ const deserializeAws_json1_1AddCacheCommandError = async (output, context) => {
|
|
|
967
964
|
...output,
|
|
968
965
|
body: await parseBody(output.body, context),
|
|
969
966
|
};
|
|
970
|
-
let response;
|
|
971
967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
972
968
|
switch (errorCode) {
|
|
973
969
|
case "InternalServerError":
|
|
@@ -978,14 +974,12 @@ const deserializeAws_json1_1AddCacheCommandError = async (output, context) => {
|
|
|
978
974
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
979
975
|
default:
|
|
980
976
|
const parsedBody = parsedOutput.body;
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
$metadata,
|
|
977
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
978
|
+
output,
|
|
979
|
+
parsedBody,
|
|
980
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
981
|
+
errorCode,
|
|
987
982
|
});
|
|
988
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
989
983
|
}
|
|
990
984
|
};
|
|
991
985
|
const deserializeAws_json1_1AddTagsToResourceCommand = async (output, context) => {
|
|
@@ -1007,7 +1001,6 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
1007
1001
|
...output,
|
|
1008
1002
|
body: await parseBody(output.body, context),
|
|
1009
1003
|
};
|
|
1010
|
-
let response;
|
|
1011
1004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
1005
|
switch (errorCode) {
|
|
1013
1006
|
case "InternalServerError":
|
|
@@ -1018,14 +1011,12 @@ const deserializeAws_json1_1AddTagsToResourceCommandError = async (output, conte
|
|
|
1018
1011
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1019
1012
|
default:
|
|
1020
1013
|
const parsedBody = parsedOutput.body;
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
$metadata,
|
|
1014
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1015
|
+
output,
|
|
1016
|
+
parsedBody,
|
|
1017
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1018
|
+
errorCode,
|
|
1027
1019
|
});
|
|
1028
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1029
1020
|
}
|
|
1030
1021
|
};
|
|
1031
1022
|
const deserializeAws_json1_1AddUploadBufferCommand = async (output, context) => {
|
|
@@ -1047,7 +1038,6 @@ const deserializeAws_json1_1AddUploadBufferCommandError = async (output, context
|
|
|
1047
1038
|
...output,
|
|
1048
1039
|
body: await parseBody(output.body, context),
|
|
1049
1040
|
};
|
|
1050
|
-
let response;
|
|
1051
1041
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
1042
|
switch (errorCode) {
|
|
1053
1043
|
case "InternalServerError":
|
|
@@ -1058,14 +1048,12 @@ const deserializeAws_json1_1AddUploadBufferCommandError = async (output, context
|
|
|
1058
1048
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1059
1049
|
default:
|
|
1060
1050
|
const parsedBody = parsedOutput.body;
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
$metadata,
|
|
1051
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1052
|
+
output,
|
|
1053
|
+
parsedBody,
|
|
1054
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1055
|
+
errorCode,
|
|
1067
1056
|
});
|
|
1068
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1069
1057
|
}
|
|
1070
1058
|
};
|
|
1071
1059
|
const deserializeAws_json1_1AddWorkingStorageCommand = async (output, context) => {
|
|
@@ -1087,7 +1075,6 @@ const deserializeAws_json1_1AddWorkingStorageCommandError = async (output, conte
|
|
|
1087
1075
|
...output,
|
|
1088
1076
|
body: await parseBody(output.body, context),
|
|
1089
1077
|
};
|
|
1090
|
-
let response;
|
|
1091
1078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
1079
|
switch (errorCode) {
|
|
1093
1080
|
case "InternalServerError":
|
|
@@ -1098,14 +1085,12 @@ const deserializeAws_json1_1AddWorkingStorageCommandError = async (output, conte
|
|
|
1098
1085
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1099
1086
|
default:
|
|
1100
1087
|
const parsedBody = parsedOutput.body;
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
$metadata,
|
|
1088
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1089
|
+
output,
|
|
1090
|
+
parsedBody,
|
|
1091
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1092
|
+
errorCode,
|
|
1107
1093
|
});
|
|
1108
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1109
1094
|
}
|
|
1110
1095
|
};
|
|
1111
1096
|
const deserializeAws_json1_1AssignTapePoolCommand = async (output, context) => {
|
|
@@ -1127,7 +1112,6 @@ const deserializeAws_json1_1AssignTapePoolCommandError = async (output, context)
|
|
|
1127
1112
|
...output,
|
|
1128
1113
|
body: await parseBody(output.body, context),
|
|
1129
1114
|
};
|
|
1130
|
-
let response;
|
|
1131
1115
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1132
1116
|
switch (errorCode) {
|
|
1133
1117
|
case "InternalServerError":
|
|
@@ -1138,14 +1122,12 @@ const deserializeAws_json1_1AssignTapePoolCommandError = async (output, context)
|
|
|
1138
1122
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1139
1123
|
default:
|
|
1140
1124
|
const parsedBody = parsedOutput.body;
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
$metadata,
|
|
1125
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1126
|
+
output,
|
|
1127
|
+
parsedBody,
|
|
1128
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1129
|
+
errorCode,
|
|
1147
1130
|
});
|
|
1148
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1149
1131
|
}
|
|
1150
1132
|
};
|
|
1151
1133
|
const deserializeAws_json1_1AssociateFileSystemCommand = async (output, context) => {
|
|
@@ -1167,7 +1149,6 @@ const deserializeAws_json1_1AssociateFileSystemCommandError = async (output, con
|
|
|
1167
1149
|
...output,
|
|
1168
1150
|
body: await parseBody(output.body, context),
|
|
1169
1151
|
};
|
|
1170
|
-
let response;
|
|
1171
1152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
1153
|
switch (errorCode) {
|
|
1173
1154
|
case "InternalServerError":
|
|
@@ -1178,14 +1159,12 @@ const deserializeAws_json1_1AssociateFileSystemCommandError = async (output, con
|
|
|
1178
1159
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1179
1160
|
default:
|
|
1180
1161
|
const parsedBody = parsedOutput.body;
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
$metadata,
|
|
1162
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1163
|
+
output,
|
|
1164
|
+
parsedBody,
|
|
1165
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1166
|
+
errorCode,
|
|
1187
1167
|
});
|
|
1188
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1189
1168
|
}
|
|
1190
1169
|
};
|
|
1191
1170
|
const deserializeAws_json1_1AttachVolumeCommand = async (output, context) => {
|
|
@@ -1207,7 +1186,6 @@ const deserializeAws_json1_1AttachVolumeCommandError = async (output, context) =
|
|
|
1207
1186
|
...output,
|
|
1208
1187
|
body: await parseBody(output.body, context),
|
|
1209
1188
|
};
|
|
1210
|
-
let response;
|
|
1211
1189
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
1190
|
switch (errorCode) {
|
|
1213
1191
|
case "InternalServerError":
|
|
@@ -1218,14 +1196,12 @@ const deserializeAws_json1_1AttachVolumeCommandError = async (output, context) =
|
|
|
1218
1196
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1219
1197
|
default:
|
|
1220
1198
|
const parsedBody = parsedOutput.body;
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
$metadata,
|
|
1199
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1200
|
+
output,
|
|
1201
|
+
parsedBody,
|
|
1202
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1203
|
+
errorCode,
|
|
1227
1204
|
});
|
|
1228
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1229
1205
|
}
|
|
1230
1206
|
};
|
|
1231
1207
|
const deserializeAws_json1_1CancelArchivalCommand = async (output, context) => {
|
|
@@ -1247,7 +1223,6 @@ const deserializeAws_json1_1CancelArchivalCommandError = async (output, context)
|
|
|
1247
1223
|
...output,
|
|
1248
1224
|
body: await parseBody(output.body, context),
|
|
1249
1225
|
};
|
|
1250
|
-
let response;
|
|
1251
1226
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
1227
|
switch (errorCode) {
|
|
1253
1228
|
case "InternalServerError":
|
|
@@ -1258,14 +1233,12 @@ const deserializeAws_json1_1CancelArchivalCommandError = async (output, context)
|
|
|
1258
1233
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1259
1234
|
default:
|
|
1260
1235
|
const parsedBody = parsedOutput.body;
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
$metadata,
|
|
1236
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1237
|
+
output,
|
|
1238
|
+
parsedBody,
|
|
1239
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1240
|
+
errorCode,
|
|
1267
1241
|
});
|
|
1268
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1269
1242
|
}
|
|
1270
1243
|
};
|
|
1271
1244
|
const deserializeAws_json1_1CancelRetrievalCommand = async (output, context) => {
|
|
@@ -1287,7 +1260,6 @@ const deserializeAws_json1_1CancelRetrievalCommandError = async (output, context
|
|
|
1287
1260
|
...output,
|
|
1288
1261
|
body: await parseBody(output.body, context),
|
|
1289
1262
|
};
|
|
1290
|
-
let response;
|
|
1291
1263
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
1264
|
switch (errorCode) {
|
|
1293
1265
|
case "InternalServerError":
|
|
@@ -1298,14 +1270,12 @@ const deserializeAws_json1_1CancelRetrievalCommandError = async (output, context
|
|
|
1298
1270
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1299
1271
|
default:
|
|
1300
1272
|
const parsedBody = parsedOutput.body;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
$metadata,
|
|
1273
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1274
|
+
output,
|
|
1275
|
+
parsedBody,
|
|
1276
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1277
|
+
errorCode,
|
|
1307
1278
|
});
|
|
1308
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1309
1279
|
}
|
|
1310
1280
|
};
|
|
1311
1281
|
const deserializeAws_json1_1CreateCachediSCSIVolumeCommand = async (output, context) => {
|
|
@@ -1327,7 +1297,6 @@ const deserializeAws_json1_1CreateCachediSCSIVolumeCommandError = async (output,
|
|
|
1327
1297
|
...output,
|
|
1328
1298
|
body: await parseBody(output.body, context),
|
|
1329
1299
|
};
|
|
1330
|
-
let response;
|
|
1331
1300
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1301
|
switch (errorCode) {
|
|
1333
1302
|
case "InternalServerError":
|
|
@@ -1338,14 +1307,12 @@ const deserializeAws_json1_1CreateCachediSCSIVolumeCommandError = async (output,
|
|
|
1338
1307
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1339
1308
|
default:
|
|
1340
1309
|
const parsedBody = parsedOutput.body;
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
$metadata,
|
|
1310
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1311
|
+
output,
|
|
1312
|
+
parsedBody,
|
|
1313
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1314
|
+
errorCode,
|
|
1347
1315
|
});
|
|
1348
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1349
1316
|
}
|
|
1350
1317
|
};
|
|
1351
1318
|
const deserializeAws_json1_1CreateNFSFileShareCommand = async (output, context) => {
|
|
@@ -1367,7 +1334,6 @@ const deserializeAws_json1_1CreateNFSFileShareCommandError = async (output, cont
|
|
|
1367
1334
|
...output,
|
|
1368
1335
|
body: await parseBody(output.body, context),
|
|
1369
1336
|
};
|
|
1370
|
-
let response;
|
|
1371
1337
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
1338
|
switch (errorCode) {
|
|
1373
1339
|
case "InternalServerError":
|
|
@@ -1378,14 +1344,12 @@ const deserializeAws_json1_1CreateNFSFileShareCommandError = async (output, cont
|
|
|
1378
1344
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1379
1345
|
default:
|
|
1380
1346
|
const parsedBody = parsedOutput.body;
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
$metadata,
|
|
1347
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1348
|
+
output,
|
|
1349
|
+
parsedBody,
|
|
1350
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1351
|
+
errorCode,
|
|
1387
1352
|
});
|
|
1388
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1389
1353
|
}
|
|
1390
1354
|
};
|
|
1391
1355
|
const deserializeAws_json1_1CreateSMBFileShareCommand = async (output, context) => {
|
|
@@ -1407,7 +1371,6 @@ const deserializeAws_json1_1CreateSMBFileShareCommandError = async (output, cont
|
|
|
1407
1371
|
...output,
|
|
1408
1372
|
body: await parseBody(output.body, context),
|
|
1409
1373
|
};
|
|
1410
|
-
let response;
|
|
1411
1374
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
1375
|
switch (errorCode) {
|
|
1413
1376
|
case "InternalServerError":
|
|
@@ -1418,14 +1381,12 @@ const deserializeAws_json1_1CreateSMBFileShareCommandError = async (output, cont
|
|
|
1418
1381
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1419
1382
|
default:
|
|
1420
1383
|
const parsedBody = parsedOutput.body;
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
$metadata,
|
|
1384
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1385
|
+
output,
|
|
1386
|
+
parsedBody,
|
|
1387
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1388
|
+
errorCode,
|
|
1427
1389
|
});
|
|
1428
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1429
1390
|
}
|
|
1430
1391
|
};
|
|
1431
1392
|
const deserializeAws_json1_1CreateSnapshotCommand = async (output, context) => {
|
|
@@ -1447,7 +1408,6 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
1447
1408
|
...output,
|
|
1448
1409
|
body: await parseBody(output.body, context),
|
|
1449
1410
|
};
|
|
1450
|
-
let response;
|
|
1451
1411
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
1412
|
switch (errorCode) {
|
|
1453
1413
|
case "InternalServerError":
|
|
@@ -1461,14 +1421,12 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
1461
1421
|
throw await deserializeAws_json1_1ServiceUnavailableErrorResponse(parsedOutput, context);
|
|
1462
1422
|
default:
|
|
1463
1423
|
const parsedBody = parsedOutput.body;
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
$metadata,
|
|
1424
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1425
|
+
output,
|
|
1426
|
+
parsedBody,
|
|
1427
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1428
|
+
errorCode,
|
|
1470
1429
|
});
|
|
1471
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1472
1430
|
}
|
|
1473
1431
|
};
|
|
1474
1432
|
const deserializeAws_json1_1CreateSnapshotFromVolumeRecoveryPointCommand = async (output, context) => {
|
|
@@ -1490,7 +1448,6 @@ const deserializeAws_json1_1CreateSnapshotFromVolumeRecoveryPointCommandError =
|
|
|
1490
1448
|
...output,
|
|
1491
1449
|
body: await parseBody(output.body, context),
|
|
1492
1450
|
};
|
|
1493
|
-
let response;
|
|
1494
1451
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
1452
|
switch (errorCode) {
|
|
1496
1453
|
case "InternalServerError":
|
|
@@ -1504,14 +1461,12 @@ const deserializeAws_json1_1CreateSnapshotFromVolumeRecoveryPointCommandError =
|
|
|
1504
1461
|
throw await deserializeAws_json1_1ServiceUnavailableErrorResponse(parsedOutput, context);
|
|
1505
1462
|
default:
|
|
1506
1463
|
const parsedBody = parsedOutput.body;
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
$metadata,
|
|
1464
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1465
|
+
output,
|
|
1466
|
+
parsedBody,
|
|
1467
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1468
|
+
errorCode,
|
|
1513
1469
|
});
|
|
1514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1515
1470
|
}
|
|
1516
1471
|
};
|
|
1517
1472
|
const deserializeAws_json1_1CreateStorediSCSIVolumeCommand = async (output, context) => {
|
|
@@ -1533,7 +1488,6 @@ const deserializeAws_json1_1CreateStorediSCSIVolumeCommandError = async (output,
|
|
|
1533
1488
|
...output,
|
|
1534
1489
|
body: await parseBody(output.body, context),
|
|
1535
1490
|
};
|
|
1536
|
-
let response;
|
|
1537
1491
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1538
1492
|
switch (errorCode) {
|
|
1539
1493
|
case "InternalServerError":
|
|
@@ -1544,14 +1498,12 @@ const deserializeAws_json1_1CreateStorediSCSIVolumeCommandError = async (output,
|
|
|
1544
1498
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1545
1499
|
default:
|
|
1546
1500
|
const parsedBody = parsedOutput.body;
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
$metadata,
|
|
1501
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1502
|
+
output,
|
|
1503
|
+
parsedBody,
|
|
1504
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1505
|
+
errorCode,
|
|
1553
1506
|
});
|
|
1554
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1555
1507
|
}
|
|
1556
1508
|
};
|
|
1557
1509
|
const deserializeAws_json1_1CreateTapePoolCommand = async (output, context) => {
|
|
@@ -1573,7 +1525,6 @@ const deserializeAws_json1_1CreateTapePoolCommandError = async (output, context)
|
|
|
1573
1525
|
...output,
|
|
1574
1526
|
body: await parseBody(output.body, context),
|
|
1575
1527
|
};
|
|
1576
|
-
let response;
|
|
1577
1528
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
1529
|
switch (errorCode) {
|
|
1579
1530
|
case "InternalServerError":
|
|
@@ -1584,14 +1535,12 @@ const deserializeAws_json1_1CreateTapePoolCommandError = async (output, context)
|
|
|
1584
1535
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1585
1536
|
default:
|
|
1586
1537
|
const parsedBody = parsedOutput.body;
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
$metadata,
|
|
1538
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1539
|
+
output,
|
|
1540
|
+
parsedBody,
|
|
1541
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1542
|
+
errorCode,
|
|
1593
1543
|
});
|
|
1594
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1595
1544
|
}
|
|
1596
1545
|
};
|
|
1597
1546
|
const deserializeAws_json1_1CreateTapesCommand = async (output, context) => {
|
|
@@ -1613,7 +1562,6 @@ const deserializeAws_json1_1CreateTapesCommandError = async (output, context) =>
|
|
|
1613
1562
|
...output,
|
|
1614
1563
|
body: await parseBody(output.body, context),
|
|
1615
1564
|
};
|
|
1616
|
-
let response;
|
|
1617
1565
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
1566
|
switch (errorCode) {
|
|
1619
1567
|
case "InternalServerError":
|
|
@@ -1624,14 +1572,12 @@ const deserializeAws_json1_1CreateTapesCommandError = async (output, context) =>
|
|
|
1624
1572
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1625
1573
|
default:
|
|
1626
1574
|
const parsedBody = parsedOutput.body;
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
$metadata,
|
|
1575
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1576
|
+
output,
|
|
1577
|
+
parsedBody,
|
|
1578
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1579
|
+
errorCode,
|
|
1633
1580
|
});
|
|
1634
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1635
1581
|
}
|
|
1636
1582
|
};
|
|
1637
1583
|
const deserializeAws_json1_1CreateTapeWithBarcodeCommand = async (output, context) => {
|
|
@@ -1653,7 +1599,6 @@ const deserializeAws_json1_1CreateTapeWithBarcodeCommandError = async (output, c
|
|
|
1653
1599
|
...output,
|
|
1654
1600
|
body: await parseBody(output.body, context),
|
|
1655
1601
|
};
|
|
1656
|
-
let response;
|
|
1657
1602
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1658
1603
|
switch (errorCode) {
|
|
1659
1604
|
case "InternalServerError":
|
|
@@ -1664,14 +1609,12 @@ const deserializeAws_json1_1CreateTapeWithBarcodeCommandError = async (output, c
|
|
|
1664
1609
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1665
1610
|
default:
|
|
1666
1611
|
const parsedBody = parsedOutput.body;
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
$metadata,
|
|
1612
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1613
|
+
output,
|
|
1614
|
+
parsedBody,
|
|
1615
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1616
|
+
errorCode,
|
|
1673
1617
|
});
|
|
1674
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1675
1618
|
}
|
|
1676
1619
|
};
|
|
1677
1620
|
const deserializeAws_json1_1DeleteAutomaticTapeCreationPolicyCommand = async (output, context) => {
|
|
@@ -1693,7 +1636,6 @@ const deserializeAws_json1_1DeleteAutomaticTapeCreationPolicyCommandError = asyn
|
|
|
1693
1636
|
...output,
|
|
1694
1637
|
body: await parseBody(output.body, context),
|
|
1695
1638
|
};
|
|
1696
|
-
let response;
|
|
1697
1639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1698
1640
|
switch (errorCode) {
|
|
1699
1641
|
case "InternalServerError":
|
|
@@ -1704,14 +1646,12 @@ const deserializeAws_json1_1DeleteAutomaticTapeCreationPolicyCommandError = asyn
|
|
|
1704
1646
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1705
1647
|
default:
|
|
1706
1648
|
const parsedBody = parsedOutput.body;
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
$metadata,
|
|
1649
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1650
|
+
output,
|
|
1651
|
+
parsedBody,
|
|
1652
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1653
|
+
errorCode,
|
|
1713
1654
|
});
|
|
1714
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1715
1655
|
}
|
|
1716
1656
|
};
|
|
1717
1657
|
const deserializeAws_json1_1DeleteBandwidthRateLimitCommand = async (output, context) => {
|
|
@@ -1733,7 +1673,6 @@ const deserializeAws_json1_1DeleteBandwidthRateLimitCommandError = async (output
|
|
|
1733
1673
|
...output,
|
|
1734
1674
|
body: await parseBody(output.body, context),
|
|
1735
1675
|
};
|
|
1736
|
-
let response;
|
|
1737
1676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1738
1677
|
switch (errorCode) {
|
|
1739
1678
|
case "InternalServerError":
|
|
@@ -1744,14 +1683,12 @@ const deserializeAws_json1_1DeleteBandwidthRateLimitCommandError = async (output
|
|
|
1744
1683
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1745
1684
|
default:
|
|
1746
1685
|
const parsedBody = parsedOutput.body;
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
$metadata,
|
|
1686
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1687
|
+
output,
|
|
1688
|
+
parsedBody,
|
|
1689
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1690
|
+
errorCode,
|
|
1753
1691
|
});
|
|
1754
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1755
1692
|
}
|
|
1756
1693
|
};
|
|
1757
1694
|
const deserializeAws_json1_1DeleteChapCredentialsCommand = async (output, context) => {
|
|
@@ -1773,7 +1710,6 @@ const deserializeAws_json1_1DeleteChapCredentialsCommandError = async (output, c
|
|
|
1773
1710
|
...output,
|
|
1774
1711
|
body: await parseBody(output.body, context),
|
|
1775
1712
|
};
|
|
1776
|
-
let response;
|
|
1777
1713
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
1714
|
switch (errorCode) {
|
|
1779
1715
|
case "InternalServerError":
|
|
@@ -1784,14 +1720,12 @@ const deserializeAws_json1_1DeleteChapCredentialsCommandError = async (output, c
|
|
|
1784
1720
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1785
1721
|
default:
|
|
1786
1722
|
const parsedBody = parsedOutput.body;
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
$metadata,
|
|
1723
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1724
|
+
output,
|
|
1725
|
+
parsedBody,
|
|
1726
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1727
|
+
errorCode,
|
|
1793
1728
|
});
|
|
1794
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1795
1729
|
}
|
|
1796
1730
|
};
|
|
1797
1731
|
const deserializeAws_json1_1DeleteFileShareCommand = async (output, context) => {
|
|
@@ -1813,7 +1747,6 @@ const deserializeAws_json1_1DeleteFileShareCommandError = async (output, context
|
|
|
1813
1747
|
...output,
|
|
1814
1748
|
body: await parseBody(output.body, context),
|
|
1815
1749
|
};
|
|
1816
|
-
let response;
|
|
1817
1750
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
1751
|
switch (errorCode) {
|
|
1819
1752
|
case "InternalServerError":
|
|
@@ -1824,14 +1757,12 @@ const deserializeAws_json1_1DeleteFileShareCommandError = async (output, context
|
|
|
1824
1757
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1825
1758
|
default:
|
|
1826
1759
|
const parsedBody = parsedOutput.body;
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
$metadata,
|
|
1760
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1761
|
+
output,
|
|
1762
|
+
parsedBody,
|
|
1763
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1764
|
+
errorCode,
|
|
1833
1765
|
});
|
|
1834
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1835
1766
|
}
|
|
1836
1767
|
};
|
|
1837
1768
|
const deserializeAws_json1_1DeleteGatewayCommand = async (output, context) => {
|
|
@@ -1853,7 +1784,6 @@ const deserializeAws_json1_1DeleteGatewayCommandError = async (output, context)
|
|
|
1853
1784
|
...output,
|
|
1854
1785
|
body: await parseBody(output.body, context),
|
|
1855
1786
|
};
|
|
1856
|
-
let response;
|
|
1857
1787
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
1788
|
switch (errorCode) {
|
|
1859
1789
|
case "InternalServerError":
|
|
@@ -1864,14 +1794,12 @@ const deserializeAws_json1_1DeleteGatewayCommandError = async (output, context)
|
|
|
1864
1794
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1865
1795
|
default:
|
|
1866
1796
|
const parsedBody = parsedOutput.body;
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
$metadata,
|
|
1797
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1798
|
+
output,
|
|
1799
|
+
parsedBody,
|
|
1800
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1801
|
+
errorCode,
|
|
1873
1802
|
});
|
|
1874
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1875
1803
|
}
|
|
1876
1804
|
};
|
|
1877
1805
|
const deserializeAws_json1_1DeleteSnapshotScheduleCommand = async (output, context) => {
|
|
@@ -1893,7 +1821,6 @@ const deserializeAws_json1_1DeleteSnapshotScheduleCommandError = async (output,
|
|
|
1893
1821
|
...output,
|
|
1894
1822
|
body: await parseBody(output.body, context),
|
|
1895
1823
|
};
|
|
1896
|
-
let response;
|
|
1897
1824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1898
1825
|
switch (errorCode) {
|
|
1899
1826
|
case "InternalServerError":
|
|
@@ -1904,14 +1831,12 @@ const deserializeAws_json1_1DeleteSnapshotScheduleCommandError = async (output,
|
|
|
1904
1831
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1905
1832
|
default:
|
|
1906
1833
|
const parsedBody = parsedOutput.body;
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
$metadata,
|
|
1834
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1835
|
+
output,
|
|
1836
|
+
parsedBody,
|
|
1837
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1838
|
+
errorCode,
|
|
1913
1839
|
});
|
|
1914
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1915
1840
|
}
|
|
1916
1841
|
};
|
|
1917
1842
|
const deserializeAws_json1_1DeleteTapeCommand = async (output, context) => {
|
|
@@ -1933,7 +1858,6 @@ const deserializeAws_json1_1DeleteTapeCommandError = async (output, context) =>
|
|
|
1933
1858
|
...output,
|
|
1934
1859
|
body: await parseBody(output.body, context),
|
|
1935
1860
|
};
|
|
1936
|
-
let response;
|
|
1937
1861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
1862
|
switch (errorCode) {
|
|
1939
1863
|
case "InternalServerError":
|
|
@@ -1944,14 +1868,12 @@ const deserializeAws_json1_1DeleteTapeCommandError = async (output, context) =>
|
|
|
1944
1868
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1945
1869
|
default:
|
|
1946
1870
|
const parsedBody = parsedOutput.body;
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
$metadata,
|
|
1871
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1872
|
+
output,
|
|
1873
|
+
parsedBody,
|
|
1874
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1875
|
+
errorCode,
|
|
1953
1876
|
});
|
|
1954
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1955
1877
|
}
|
|
1956
1878
|
};
|
|
1957
1879
|
const deserializeAws_json1_1DeleteTapeArchiveCommand = async (output, context) => {
|
|
@@ -1973,7 +1895,6 @@ const deserializeAws_json1_1DeleteTapeArchiveCommandError = async (output, conte
|
|
|
1973
1895
|
...output,
|
|
1974
1896
|
body: await parseBody(output.body, context),
|
|
1975
1897
|
};
|
|
1976
|
-
let response;
|
|
1977
1898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1978
1899
|
switch (errorCode) {
|
|
1979
1900
|
case "InternalServerError":
|
|
@@ -1984,14 +1905,12 @@ const deserializeAws_json1_1DeleteTapeArchiveCommandError = async (output, conte
|
|
|
1984
1905
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
1985
1906
|
default:
|
|
1986
1907
|
const parsedBody = parsedOutput.body;
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
$metadata,
|
|
1908
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1909
|
+
output,
|
|
1910
|
+
parsedBody,
|
|
1911
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1912
|
+
errorCode,
|
|
1993
1913
|
});
|
|
1994
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1995
1914
|
}
|
|
1996
1915
|
};
|
|
1997
1916
|
const deserializeAws_json1_1DeleteTapePoolCommand = async (output, context) => {
|
|
@@ -2013,7 +1932,6 @@ const deserializeAws_json1_1DeleteTapePoolCommandError = async (output, context)
|
|
|
2013
1932
|
...output,
|
|
2014
1933
|
body: await parseBody(output.body, context),
|
|
2015
1934
|
};
|
|
2016
|
-
let response;
|
|
2017
1935
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
1936
|
switch (errorCode) {
|
|
2019
1937
|
case "InternalServerError":
|
|
@@ -2024,14 +1942,12 @@ const deserializeAws_json1_1DeleteTapePoolCommandError = async (output, context)
|
|
|
2024
1942
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2025
1943
|
default:
|
|
2026
1944
|
const parsedBody = parsedOutput.body;
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
$metadata,
|
|
1945
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1946
|
+
output,
|
|
1947
|
+
parsedBody,
|
|
1948
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1949
|
+
errorCode,
|
|
2033
1950
|
});
|
|
2034
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2035
1951
|
}
|
|
2036
1952
|
};
|
|
2037
1953
|
const deserializeAws_json1_1DeleteVolumeCommand = async (output, context) => {
|
|
@@ -2053,7 +1969,6 @@ const deserializeAws_json1_1DeleteVolumeCommandError = async (output, context) =
|
|
|
2053
1969
|
...output,
|
|
2054
1970
|
body: await parseBody(output.body, context),
|
|
2055
1971
|
};
|
|
2056
|
-
let response;
|
|
2057
1972
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2058
1973
|
switch (errorCode) {
|
|
2059
1974
|
case "InternalServerError":
|
|
@@ -2064,14 +1979,12 @@ const deserializeAws_json1_1DeleteVolumeCommandError = async (output, context) =
|
|
|
2064
1979
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2065
1980
|
default:
|
|
2066
1981
|
const parsedBody = parsedOutput.body;
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
$metadata,
|
|
1982
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1983
|
+
output,
|
|
1984
|
+
parsedBody,
|
|
1985
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
1986
|
+
errorCode,
|
|
2073
1987
|
});
|
|
2074
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2075
1988
|
}
|
|
2076
1989
|
};
|
|
2077
1990
|
const deserializeAws_json1_1DescribeAvailabilityMonitorTestCommand = async (output, context) => {
|
|
@@ -2093,7 +2006,6 @@ const deserializeAws_json1_1DescribeAvailabilityMonitorTestCommandError = async
|
|
|
2093
2006
|
...output,
|
|
2094
2007
|
body: await parseBody(output.body, context),
|
|
2095
2008
|
};
|
|
2096
|
-
let response;
|
|
2097
2009
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
2010
|
switch (errorCode) {
|
|
2099
2011
|
case "InternalServerError":
|
|
@@ -2104,14 +2016,12 @@ const deserializeAws_json1_1DescribeAvailabilityMonitorTestCommandError = async
|
|
|
2104
2016
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2105
2017
|
default:
|
|
2106
2018
|
const parsedBody = parsedOutput.body;
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
$metadata,
|
|
2019
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2020
|
+
output,
|
|
2021
|
+
parsedBody,
|
|
2022
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2023
|
+
errorCode,
|
|
2113
2024
|
});
|
|
2114
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2115
2025
|
}
|
|
2116
2026
|
};
|
|
2117
2027
|
const deserializeAws_json1_1DescribeBandwidthRateLimitCommand = async (output, context) => {
|
|
@@ -2133,7 +2043,6 @@ const deserializeAws_json1_1DescribeBandwidthRateLimitCommandError = async (outp
|
|
|
2133
2043
|
...output,
|
|
2134
2044
|
body: await parseBody(output.body, context),
|
|
2135
2045
|
};
|
|
2136
|
-
let response;
|
|
2137
2046
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2138
2047
|
switch (errorCode) {
|
|
2139
2048
|
case "InternalServerError":
|
|
@@ -2144,14 +2053,12 @@ const deserializeAws_json1_1DescribeBandwidthRateLimitCommandError = async (outp
|
|
|
2144
2053
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2145
2054
|
default:
|
|
2146
2055
|
const parsedBody = parsedOutput.body;
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
$metadata,
|
|
2056
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2057
|
+
output,
|
|
2058
|
+
parsedBody,
|
|
2059
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2060
|
+
errorCode,
|
|
2153
2061
|
});
|
|
2154
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2155
2062
|
}
|
|
2156
2063
|
};
|
|
2157
2064
|
const deserializeAws_json1_1DescribeBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
@@ -2173,7 +2080,6 @@ const deserializeAws_json1_1DescribeBandwidthRateLimitScheduleCommandError = asy
|
|
|
2173
2080
|
...output,
|
|
2174
2081
|
body: await parseBody(output.body, context),
|
|
2175
2082
|
};
|
|
2176
|
-
let response;
|
|
2177
2083
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2178
2084
|
switch (errorCode) {
|
|
2179
2085
|
case "InternalServerError":
|
|
@@ -2184,14 +2090,12 @@ const deserializeAws_json1_1DescribeBandwidthRateLimitScheduleCommandError = asy
|
|
|
2184
2090
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2185
2091
|
default:
|
|
2186
2092
|
const parsedBody = parsedOutput.body;
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
$metadata,
|
|
2093
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2094
|
+
output,
|
|
2095
|
+
parsedBody,
|
|
2096
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2097
|
+
errorCode,
|
|
2193
2098
|
});
|
|
2194
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2195
2099
|
}
|
|
2196
2100
|
};
|
|
2197
2101
|
const deserializeAws_json1_1DescribeCacheCommand = async (output, context) => {
|
|
@@ -2213,7 +2117,6 @@ const deserializeAws_json1_1DescribeCacheCommandError = async (output, context)
|
|
|
2213
2117
|
...output,
|
|
2214
2118
|
body: await parseBody(output.body, context),
|
|
2215
2119
|
};
|
|
2216
|
-
let response;
|
|
2217
2120
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2218
2121
|
switch (errorCode) {
|
|
2219
2122
|
case "InternalServerError":
|
|
@@ -2224,14 +2127,12 @@ const deserializeAws_json1_1DescribeCacheCommandError = async (output, context)
|
|
|
2224
2127
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2225
2128
|
default:
|
|
2226
2129
|
const parsedBody = parsedOutput.body;
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
$metadata,
|
|
2130
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2131
|
+
output,
|
|
2132
|
+
parsedBody,
|
|
2133
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2134
|
+
errorCode,
|
|
2233
2135
|
});
|
|
2234
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2235
2136
|
}
|
|
2236
2137
|
};
|
|
2237
2138
|
const deserializeAws_json1_1DescribeCachediSCSIVolumesCommand = async (output, context) => {
|
|
@@ -2253,7 +2154,6 @@ const deserializeAws_json1_1DescribeCachediSCSIVolumesCommandError = async (outp
|
|
|
2253
2154
|
...output,
|
|
2254
2155
|
body: await parseBody(output.body, context),
|
|
2255
2156
|
};
|
|
2256
|
-
let response;
|
|
2257
2157
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2258
2158
|
switch (errorCode) {
|
|
2259
2159
|
case "InternalServerError":
|
|
@@ -2264,14 +2164,12 @@ const deserializeAws_json1_1DescribeCachediSCSIVolumesCommandError = async (outp
|
|
|
2264
2164
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2265
2165
|
default:
|
|
2266
2166
|
const parsedBody = parsedOutput.body;
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
$metadata,
|
|
2167
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2168
|
+
output,
|
|
2169
|
+
parsedBody,
|
|
2170
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2171
|
+
errorCode,
|
|
2273
2172
|
});
|
|
2274
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2275
2173
|
}
|
|
2276
2174
|
};
|
|
2277
2175
|
const deserializeAws_json1_1DescribeChapCredentialsCommand = async (output, context) => {
|
|
@@ -2293,7 +2191,6 @@ const deserializeAws_json1_1DescribeChapCredentialsCommandError = async (output,
|
|
|
2293
2191
|
...output,
|
|
2294
2192
|
body: await parseBody(output.body, context),
|
|
2295
2193
|
};
|
|
2296
|
-
let response;
|
|
2297
2194
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2298
2195
|
switch (errorCode) {
|
|
2299
2196
|
case "InternalServerError":
|
|
@@ -2304,14 +2201,12 @@ const deserializeAws_json1_1DescribeChapCredentialsCommandError = async (output,
|
|
|
2304
2201
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2305
2202
|
default:
|
|
2306
2203
|
const parsedBody = parsedOutput.body;
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
$metadata,
|
|
2204
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2205
|
+
output,
|
|
2206
|
+
parsedBody,
|
|
2207
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2208
|
+
errorCode,
|
|
2313
2209
|
});
|
|
2314
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2315
2210
|
}
|
|
2316
2211
|
};
|
|
2317
2212
|
const deserializeAws_json1_1DescribeFileSystemAssociationsCommand = async (output, context) => {
|
|
@@ -2333,7 +2228,6 @@ const deserializeAws_json1_1DescribeFileSystemAssociationsCommandError = async (
|
|
|
2333
2228
|
...output,
|
|
2334
2229
|
body: await parseBody(output.body, context),
|
|
2335
2230
|
};
|
|
2336
|
-
let response;
|
|
2337
2231
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2338
2232
|
switch (errorCode) {
|
|
2339
2233
|
case "InternalServerError":
|
|
@@ -2344,14 +2238,12 @@ const deserializeAws_json1_1DescribeFileSystemAssociationsCommandError = async (
|
|
|
2344
2238
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2345
2239
|
default:
|
|
2346
2240
|
const parsedBody = parsedOutput.body;
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
$metadata,
|
|
2241
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2242
|
+
output,
|
|
2243
|
+
parsedBody,
|
|
2244
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2245
|
+
errorCode,
|
|
2353
2246
|
});
|
|
2354
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2355
2247
|
}
|
|
2356
2248
|
};
|
|
2357
2249
|
const deserializeAws_json1_1DescribeGatewayInformationCommand = async (output, context) => {
|
|
@@ -2373,7 +2265,6 @@ const deserializeAws_json1_1DescribeGatewayInformationCommandError = async (outp
|
|
|
2373
2265
|
...output,
|
|
2374
2266
|
body: await parseBody(output.body, context),
|
|
2375
2267
|
};
|
|
2376
|
-
let response;
|
|
2377
2268
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2378
2269
|
switch (errorCode) {
|
|
2379
2270
|
case "InternalServerError":
|
|
@@ -2384,14 +2275,12 @@ const deserializeAws_json1_1DescribeGatewayInformationCommandError = async (outp
|
|
|
2384
2275
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2385
2276
|
default:
|
|
2386
2277
|
const parsedBody = parsedOutput.body;
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
$metadata,
|
|
2278
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2279
|
+
output,
|
|
2280
|
+
parsedBody,
|
|
2281
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2282
|
+
errorCode,
|
|
2393
2283
|
});
|
|
2394
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2395
2284
|
}
|
|
2396
2285
|
};
|
|
2397
2286
|
const deserializeAws_json1_1DescribeMaintenanceStartTimeCommand = async (output, context) => {
|
|
@@ -2413,7 +2302,6 @@ const deserializeAws_json1_1DescribeMaintenanceStartTimeCommandError = async (ou
|
|
|
2413
2302
|
...output,
|
|
2414
2303
|
body: await parseBody(output.body, context),
|
|
2415
2304
|
};
|
|
2416
|
-
let response;
|
|
2417
2305
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2418
2306
|
switch (errorCode) {
|
|
2419
2307
|
case "InternalServerError":
|
|
@@ -2424,14 +2312,12 @@ const deserializeAws_json1_1DescribeMaintenanceStartTimeCommandError = async (ou
|
|
|
2424
2312
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2425
2313
|
default:
|
|
2426
2314
|
const parsedBody = parsedOutput.body;
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
$metadata,
|
|
2315
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2316
|
+
output,
|
|
2317
|
+
parsedBody,
|
|
2318
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2319
|
+
errorCode,
|
|
2433
2320
|
});
|
|
2434
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2435
2321
|
}
|
|
2436
2322
|
};
|
|
2437
2323
|
const deserializeAws_json1_1DescribeNFSFileSharesCommand = async (output, context) => {
|
|
@@ -2453,7 +2339,6 @@ const deserializeAws_json1_1DescribeNFSFileSharesCommandError = async (output, c
|
|
|
2453
2339
|
...output,
|
|
2454
2340
|
body: await parseBody(output.body, context),
|
|
2455
2341
|
};
|
|
2456
|
-
let response;
|
|
2457
2342
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2458
2343
|
switch (errorCode) {
|
|
2459
2344
|
case "InternalServerError":
|
|
@@ -2464,14 +2349,12 @@ const deserializeAws_json1_1DescribeNFSFileSharesCommandError = async (output, c
|
|
|
2464
2349
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2465
2350
|
default:
|
|
2466
2351
|
const parsedBody = parsedOutput.body;
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
$metadata,
|
|
2352
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2353
|
+
output,
|
|
2354
|
+
parsedBody,
|
|
2355
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2356
|
+
errorCode,
|
|
2473
2357
|
});
|
|
2474
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2475
2358
|
}
|
|
2476
2359
|
};
|
|
2477
2360
|
const deserializeAws_json1_1DescribeSMBFileSharesCommand = async (output, context) => {
|
|
@@ -2493,7 +2376,6 @@ const deserializeAws_json1_1DescribeSMBFileSharesCommandError = async (output, c
|
|
|
2493
2376
|
...output,
|
|
2494
2377
|
body: await parseBody(output.body, context),
|
|
2495
2378
|
};
|
|
2496
|
-
let response;
|
|
2497
2379
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2498
2380
|
switch (errorCode) {
|
|
2499
2381
|
case "InternalServerError":
|
|
@@ -2504,14 +2386,12 @@ const deserializeAws_json1_1DescribeSMBFileSharesCommandError = async (output, c
|
|
|
2504
2386
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2505
2387
|
default:
|
|
2506
2388
|
const parsedBody = parsedOutput.body;
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
$metadata,
|
|
2389
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2390
|
+
output,
|
|
2391
|
+
parsedBody,
|
|
2392
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2393
|
+
errorCode,
|
|
2513
2394
|
});
|
|
2514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2515
2395
|
}
|
|
2516
2396
|
};
|
|
2517
2397
|
const deserializeAws_json1_1DescribeSMBSettingsCommand = async (output, context) => {
|
|
@@ -2533,7 +2413,6 @@ const deserializeAws_json1_1DescribeSMBSettingsCommandError = async (output, con
|
|
|
2533
2413
|
...output,
|
|
2534
2414
|
body: await parseBody(output.body, context),
|
|
2535
2415
|
};
|
|
2536
|
-
let response;
|
|
2537
2416
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2538
2417
|
switch (errorCode) {
|
|
2539
2418
|
case "InternalServerError":
|
|
@@ -2544,14 +2423,12 @@ const deserializeAws_json1_1DescribeSMBSettingsCommandError = async (output, con
|
|
|
2544
2423
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2545
2424
|
default:
|
|
2546
2425
|
const parsedBody = parsedOutput.body;
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
$metadata,
|
|
2426
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2427
|
+
output,
|
|
2428
|
+
parsedBody,
|
|
2429
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2430
|
+
errorCode,
|
|
2553
2431
|
});
|
|
2554
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2555
2432
|
}
|
|
2556
2433
|
};
|
|
2557
2434
|
const deserializeAws_json1_1DescribeSnapshotScheduleCommand = async (output, context) => {
|
|
@@ -2573,7 +2450,6 @@ const deserializeAws_json1_1DescribeSnapshotScheduleCommandError = async (output
|
|
|
2573
2450
|
...output,
|
|
2574
2451
|
body: await parseBody(output.body, context),
|
|
2575
2452
|
};
|
|
2576
|
-
let response;
|
|
2577
2453
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2578
2454
|
switch (errorCode) {
|
|
2579
2455
|
case "InternalServerError":
|
|
@@ -2584,14 +2460,12 @@ const deserializeAws_json1_1DescribeSnapshotScheduleCommandError = async (output
|
|
|
2584
2460
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2585
2461
|
default:
|
|
2586
2462
|
const parsedBody = parsedOutput.body;
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
$metadata,
|
|
2463
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2464
|
+
output,
|
|
2465
|
+
parsedBody,
|
|
2466
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2467
|
+
errorCode,
|
|
2593
2468
|
});
|
|
2594
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2595
2469
|
}
|
|
2596
2470
|
};
|
|
2597
2471
|
const deserializeAws_json1_1DescribeStorediSCSIVolumesCommand = async (output, context) => {
|
|
@@ -2613,7 +2487,6 @@ const deserializeAws_json1_1DescribeStorediSCSIVolumesCommandError = async (outp
|
|
|
2613
2487
|
...output,
|
|
2614
2488
|
body: await parseBody(output.body, context),
|
|
2615
2489
|
};
|
|
2616
|
-
let response;
|
|
2617
2490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2618
2491
|
switch (errorCode) {
|
|
2619
2492
|
case "InternalServerError":
|
|
@@ -2624,14 +2497,12 @@ const deserializeAws_json1_1DescribeStorediSCSIVolumesCommandError = async (outp
|
|
|
2624
2497
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2625
2498
|
default:
|
|
2626
2499
|
const parsedBody = parsedOutput.body;
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
$metadata,
|
|
2500
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2501
|
+
output,
|
|
2502
|
+
parsedBody,
|
|
2503
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2504
|
+
errorCode,
|
|
2633
2505
|
});
|
|
2634
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2635
2506
|
}
|
|
2636
2507
|
};
|
|
2637
2508
|
const deserializeAws_json1_1DescribeTapeArchivesCommand = async (output, context) => {
|
|
@@ -2653,7 +2524,6 @@ const deserializeAws_json1_1DescribeTapeArchivesCommandError = async (output, co
|
|
|
2653
2524
|
...output,
|
|
2654
2525
|
body: await parseBody(output.body, context),
|
|
2655
2526
|
};
|
|
2656
|
-
let response;
|
|
2657
2527
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2658
2528
|
switch (errorCode) {
|
|
2659
2529
|
case "InternalServerError":
|
|
@@ -2664,14 +2534,12 @@ const deserializeAws_json1_1DescribeTapeArchivesCommandError = async (output, co
|
|
|
2664
2534
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2665
2535
|
default:
|
|
2666
2536
|
const parsedBody = parsedOutput.body;
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
$metadata,
|
|
2537
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2538
|
+
output,
|
|
2539
|
+
parsedBody,
|
|
2540
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2541
|
+
errorCode,
|
|
2673
2542
|
});
|
|
2674
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2675
2543
|
}
|
|
2676
2544
|
};
|
|
2677
2545
|
const deserializeAws_json1_1DescribeTapeRecoveryPointsCommand = async (output, context) => {
|
|
@@ -2693,7 +2561,6 @@ const deserializeAws_json1_1DescribeTapeRecoveryPointsCommandError = async (outp
|
|
|
2693
2561
|
...output,
|
|
2694
2562
|
body: await parseBody(output.body, context),
|
|
2695
2563
|
};
|
|
2696
|
-
let response;
|
|
2697
2564
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2698
2565
|
switch (errorCode) {
|
|
2699
2566
|
case "InternalServerError":
|
|
@@ -2704,14 +2571,12 @@ const deserializeAws_json1_1DescribeTapeRecoveryPointsCommandError = async (outp
|
|
|
2704
2571
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2705
2572
|
default:
|
|
2706
2573
|
const parsedBody = parsedOutput.body;
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
$metadata,
|
|
2574
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2575
|
+
output,
|
|
2576
|
+
parsedBody,
|
|
2577
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2578
|
+
errorCode,
|
|
2713
2579
|
});
|
|
2714
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2715
2580
|
}
|
|
2716
2581
|
};
|
|
2717
2582
|
const deserializeAws_json1_1DescribeTapesCommand = async (output, context) => {
|
|
@@ -2733,7 +2598,6 @@ const deserializeAws_json1_1DescribeTapesCommandError = async (output, context)
|
|
|
2733
2598
|
...output,
|
|
2734
2599
|
body: await parseBody(output.body, context),
|
|
2735
2600
|
};
|
|
2736
|
-
let response;
|
|
2737
2601
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2738
2602
|
switch (errorCode) {
|
|
2739
2603
|
case "InternalServerError":
|
|
@@ -2744,14 +2608,12 @@ const deserializeAws_json1_1DescribeTapesCommandError = async (output, context)
|
|
|
2744
2608
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2745
2609
|
default:
|
|
2746
2610
|
const parsedBody = parsedOutput.body;
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
$metadata,
|
|
2611
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2612
|
+
output,
|
|
2613
|
+
parsedBody,
|
|
2614
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2615
|
+
errorCode,
|
|
2753
2616
|
});
|
|
2754
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2755
2617
|
}
|
|
2756
2618
|
};
|
|
2757
2619
|
const deserializeAws_json1_1DescribeUploadBufferCommand = async (output, context) => {
|
|
@@ -2773,7 +2635,6 @@ const deserializeAws_json1_1DescribeUploadBufferCommandError = async (output, co
|
|
|
2773
2635
|
...output,
|
|
2774
2636
|
body: await parseBody(output.body, context),
|
|
2775
2637
|
};
|
|
2776
|
-
let response;
|
|
2777
2638
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2778
2639
|
switch (errorCode) {
|
|
2779
2640
|
case "InternalServerError":
|
|
@@ -2784,14 +2645,12 @@ const deserializeAws_json1_1DescribeUploadBufferCommandError = async (output, co
|
|
|
2784
2645
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2785
2646
|
default:
|
|
2786
2647
|
const parsedBody = parsedOutput.body;
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
$metadata,
|
|
2648
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2649
|
+
output,
|
|
2650
|
+
parsedBody,
|
|
2651
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2652
|
+
errorCode,
|
|
2793
2653
|
});
|
|
2794
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2795
2654
|
}
|
|
2796
2655
|
};
|
|
2797
2656
|
const deserializeAws_json1_1DescribeVTLDevicesCommand = async (output, context) => {
|
|
@@ -2813,7 +2672,6 @@ const deserializeAws_json1_1DescribeVTLDevicesCommandError = async (output, cont
|
|
|
2813
2672
|
...output,
|
|
2814
2673
|
body: await parseBody(output.body, context),
|
|
2815
2674
|
};
|
|
2816
|
-
let response;
|
|
2817
2675
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2818
2676
|
switch (errorCode) {
|
|
2819
2677
|
case "InternalServerError":
|
|
@@ -2824,14 +2682,12 @@ const deserializeAws_json1_1DescribeVTLDevicesCommandError = async (output, cont
|
|
|
2824
2682
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2825
2683
|
default:
|
|
2826
2684
|
const parsedBody = parsedOutput.body;
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
$metadata,
|
|
2685
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2686
|
+
output,
|
|
2687
|
+
parsedBody,
|
|
2688
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2689
|
+
errorCode,
|
|
2833
2690
|
});
|
|
2834
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2835
2691
|
}
|
|
2836
2692
|
};
|
|
2837
2693
|
const deserializeAws_json1_1DescribeWorkingStorageCommand = async (output, context) => {
|
|
@@ -2853,7 +2709,6 @@ const deserializeAws_json1_1DescribeWorkingStorageCommandError = async (output,
|
|
|
2853
2709
|
...output,
|
|
2854
2710
|
body: await parseBody(output.body, context),
|
|
2855
2711
|
};
|
|
2856
|
-
let response;
|
|
2857
2712
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2858
2713
|
switch (errorCode) {
|
|
2859
2714
|
case "InternalServerError":
|
|
@@ -2864,14 +2719,12 @@ const deserializeAws_json1_1DescribeWorkingStorageCommandError = async (output,
|
|
|
2864
2719
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2865
2720
|
default:
|
|
2866
2721
|
const parsedBody = parsedOutput.body;
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
$metadata,
|
|
2722
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2723
|
+
output,
|
|
2724
|
+
parsedBody,
|
|
2725
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2726
|
+
errorCode,
|
|
2873
2727
|
});
|
|
2874
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2875
2728
|
}
|
|
2876
2729
|
};
|
|
2877
2730
|
const deserializeAws_json1_1DetachVolumeCommand = async (output, context) => {
|
|
@@ -2893,7 +2746,6 @@ const deserializeAws_json1_1DetachVolumeCommandError = async (output, context) =
|
|
|
2893
2746
|
...output,
|
|
2894
2747
|
body: await parseBody(output.body, context),
|
|
2895
2748
|
};
|
|
2896
|
-
let response;
|
|
2897
2749
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2898
2750
|
switch (errorCode) {
|
|
2899
2751
|
case "InternalServerError":
|
|
@@ -2904,14 +2756,12 @@ const deserializeAws_json1_1DetachVolumeCommandError = async (output, context) =
|
|
|
2904
2756
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2905
2757
|
default:
|
|
2906
2758
|
const parsedBody = parsedOutput.body;
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
$metadata,
|
|
2759
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2760
|
+
output,
|
|
2761
|
+
parsedBody,
|
|
2762
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2763
|
+
errorCode,
|
|
2913
2764
|
});
|
|
2914
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2915
2765
|
}
|
|
2916
2766
|
};
|
|
2917
2767
|
const deserializeAws_json1_1DisableGatewayCommand = async (output, context) => {
|
|
@@ -2933,7 +2783,6 @@ const deserializeAws_json1_1DisableGatewayCommandError = async (output, context)
|
|
|
2933
2783
|
...output,
|
|
2934
2784
|
body: await parseBody(output.body, context),
|
|
2935
2785
|
};
|
|
2936
|
-
let response;
|
|
2937
2786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2938
2787
|
switch (errorCode) {
|
|
2939
2788
|
case "InternalServerError":
|
|
@@ -2944,14 +2793,12 @@ const deserializeAws_json1_1DisableGatewayCommandError = async (output, context)
|
|
|
2944
2793
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2945
2794
|
default:
|
|
2946
2795
|
const parsedBody = parsedOutput.body;
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
$metadata,
|
|
2796
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2797
|
+
output,
|
|
2798
|
+
parsedBody,
|
|
2799
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2800
|
+
errorCode,
|
|
2953
2801
|
});
|
|
2954
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2955
2802
|
}
|
|
2956
2803
|
};
|
|
2957
2804
|
const deserializeAws_json1_1DisassociateFileSystemCommand = async (output, context) => {
|
|
@@ -2973,7 +2820,6 @@ const deserializeAws_json1_1DisassociateFileSystemCommandError = async (output,
|
|
|
2973
2820
|
...output,
|
|
2974
2821
|
body: await parseBody(output.body, context),
|
|
2975
2822
|
};
|
|
2976
|
-
let response;
|
|
2977
2823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2978
2824
|
switch (errorCode) {
|
|
2979
2825
|
case "InternalServerError":
|
|
@@ -2984,14 +2830,12 @@ const deserializeAws_json1_1DisassociateFileSystemCommandError = async (output,
|
|
|
2984
2830
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
2985
2831
|
default:
|
|
2986
2832
|
const parsedBody = parsedOutput.body;
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
$metadata,
|
|
2833
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2834
|
+
output,
|
|
2835
|
+
parsedBody,
|
|
2836
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2837
|
+
errorCode,
|
|
2993
2838
|
});
|
|
2994
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2995
2839
|
}
|
|
2996
2840
|
};
|
|
2997
2841
|
const deserializeAws_json1_1JoinDomainCommand = async (output, context) => {
|
|
@@ -3013,7 +2857,6 @@ const deserializeAws_json1_1JoinDomainCommandError = async (output, context) =>
|
|
|
3013
2857
|
...output,
|
|
3014
2858
|
body: await parseBody(output.body, context),
|
|
3015
2859
|
};
|
|
3016
|
-
let response;
|
|
3017
2860
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3018
2861
|
switch (errorCode) {
|
|
3019
2862
|
case "InternalServerError":
|
|
@@ -3024,14 +2867,12 @@ const deserializeAws_json1_1JoinDomainCommandError = async (output, context) =>
|
|
|
3024
2867
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3025
2868
|
default:
|
|
3026
2869
|
const parsedBody = parsedOutput.body;
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
$metadata,
|
|
2870
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2871
|
+
output,
|
|
2872
|
+
parsedBody,
|
|
2873
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2874
|
+
errorCode,
|
|
3033
2875
|
});
|
|
3034
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3035
2876
|
}
|
|
3036
2877
|
};
|
|
3037
2878
|
const deserializeAws_json1_1ListAutomaticTapeCreationPoliciesCommand = async (output, context) => {
|
|
@@ -3053,7 +2894,6 @@ const deserializeAws_json1_1ListAutomaticTapeCreationPoliciesCommandError = asyn
|
|
|
3053
2894
|
...output,
|
|
3054
2895
|
body: await parseBody(output.body, context),
|
|
3055
2896
|
};
|
|
3056
|
-
let response;
|
|
3057
2897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3058
2898
|
switch (errorCode) {
|
|
3059
2899
|
case "InternalServerError":
|
|
@@ -3064,14 +2904,12 @@ const deserializeAws_json1_1ListAutomaticTapeCreationPoliciesCommandError = asyn
|
|
|
3064
2904
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3065
2905
|
default:
|
|
3066
2906
|
const parsedBody = parsedOutput.body;
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
$metadata,
|
|
2907
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2908
|
+
output,
|
|
2909
|
+
parsedBody,
|
|
2910
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2911
|
+
errorCode,
|
|
3073
2912
|
});
|
|
3074
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3075
2913
|
}
|
|
3076
2914
|
};
|
|
3077
2915
|
const deserializeAws_json1_1ListFileSharesCommand = async (output, context) => {
|
|
@@ -3093,7 +2931,6 @@ const deserializeAws_json1_1ListFileSharesCommandError = async (output, context)
|
|
|
3093
2931
|
...output,
|
|
3094
2932
|
body: await parseBody(output.body, context),
|
|
3095
2933
|
};
|
|
3096
|
-
let response;
|
|
3097
2934
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3098
2935
|
switch (errorCode) {
|
|
3099
2936
|
case "InternalServerError":
|
|
@@ -3104,14 +2941,12 @@ const deserializeAws_json1_1ListFileSharesCommandError = async (output, context)
|
|
|
3104
2941
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3105
2942
|
default:
|
|
3106
2943
|
const parsedBody = parsedOutput.body;
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
$metadata,
|
|
2944
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2945
|
+
output,
|
|
2946
|
+
parsedBody,
|
|
2947
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2948
|
+
errorCode,
|
|
3113
2949
|
});
|
|
3114
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3115
2950
|
}
|
|
3116
2951
|
};
|
|
3117
2952
|
const deserializeAws_json1_1ListFileSystemAssociationsCommand = async (output, context) => {
|
|
@@ -3133,7 +2968,6 @@ const deserializeAws_json1_1ListFileSystemAssociationsCommandError = async (outp
|
|
|
3133
2968
|
...output,
|
|
3134
2969
|
body: await parseBody(output.body, context),
|
|
3135
2970
|
};
|
|
3136
|
-
let response;
|
|
3137
2971
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3138
2972
|
switch (errorCode) {
|
|
3139
2973
|
case "InternalServerError":
|
|
@@ -3144,14 +2978,12 @@ const deserializeAws_json1_1ListFileSystemAssociationsCommandError = async (outp
|
|
|
3144
2978
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3145
2979
|
default:
|
|
3146
2980
|
const parsedBody = parsedOutput.body;
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
$metadata,
|
|
2981
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2982
|
+
output,
|
|
2983
|
+
parsedBody,
|
|
2984
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
2985
|
+
errorCode,
|
|
3153
2986
|
});
|
|
3154
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3155
2987
|
}
|
|
3156
2988
|
};
|
|
3157
2989
|
const deserializeAws_json1_1ListGatewaysCommand = async (output, context) => {
|
|
@@ -3173,7 +3005,6 @@ const deserializeAws_json1_1ListGatewaysCommandError = async (output, context) =
|
|
|
3173
3005
|
...output,
|
|
3174
3006
|
body: await parseBody(output.body, context),
|
|
3175
3007
|
};
|
|
3176
|
-
let response;
|
|
3177
3008
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3178
3009
|
switch (errorCode) {
|
|
3179
3010
|
case "InternalServerError":
|
|
@@ -3184,14 +3015,12 @@ const deserializeAws_json1_1ListGatewaysCommandError = async (output, context) =
|
|
|
3184
3015
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3185
3016
|
default:
|
|
3186
3017
|
const parsedBody = parsedOutput.body;
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
$metadata,
|
|
3018
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3019
|
+
output,
|
|
3020
|
+
parsedBody,
|
|
3021
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3022
|
+
errorCode,
|
|
3193
3023
|
});
|
|
3194
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3195
3024
|
}
|
|
3196
3025
|
};
|
|
3197
3026
|
const deserializeAws_json1_1ListLocalDisksCommand = async (output, context) => {
|
|
@@ -3213,7 +3042,6 @@ const deserializeAws_json1_1ListLocalDisksCommandError = async (output, context)
|
|
|
3213
3042
|
...output,
|
|
3214
3043
|
body: await parseBody(output.body, context),
|
|
3215
3044
|
};
|
|
3216
|
-
let response;
|
|
3217
3045
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3218
3046
|
switch (errorCode) {
|
|
3219
3047
|
case "InternalServerError":
|
|
@@ -3224,14 +3052,12 @@ const deserializeAws_json1_1ListLocalDisksCommandError = async (output, context)
|
|
|
3224
3052
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3225
3053
|
default:
|
|
3226
3054
|
const parsedBody = parsedOutput.body;
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
$metadata,
|
|
3055
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3056
|
+
output,
|
|
3057
|
+
parsedBody,
|
|
3058
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3059
|
+
errorCode,
|
|
3233
3060
|
});
|
|
3234
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3235
3061
|
}
|
|
3236
3062
|
};
|
|
3237
3063
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -3253,7 +3079,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3253
3079
|
...output,
|
|
3254
3080
|
body: await parseBody(output.body, context),
|
|
3255
3081
|
};
|
|
3256
|
-
let response;
|
|
3257
3082
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3258
3083
|
switch (errorCode) {
|
|
3259
3084
|
case "InternalServerError":
|
|
@@ -3264,14 +3089,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3264
3089
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3265
3090
|
default:
|
|
3266
3091
|
const parsedBody = parsedOutput.body;
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
$metadata,
|
|
3092
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3093
|
+
output,
|
|
3094
|
+
parsedBody,
|
|
3095
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3096
|
+
errorCode,
|
|
3273
3097
|
});
|
|
3274
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3275
3098
|
}
|
|
3276
3099
|
};
|
|
3277
3100
|
const deserializeAws_json1_1ListTapePoolsCommand = async (output, context) => {
|
|
@@ -3293,7 +3116,6 @@ const deserializeAws_json1_1ListTapePoolsCommandError = async (output, context)
|
|
|
3293
3116
|
...output,
|
|
3294
3117
|
body: await parseBody(output.body, context),
|
|
3295
3118
|
};
|
|
3296
|
-
let response;
|
|
3297
3119
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3298
3120
|
switch (errorCode) {
|
|
3299
3121
|
case "InternalServerError":
|
|
@@ -3304,14 +3126,12 @@ const deserializeAws_json1_1ListTapePoolsCommandError = async (output, context)
|
|
|
3304
3126
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3305
3127
|
default:
|
|
3306
3128
|
const parsedBody = parsedOutput.body;
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
$metadata,
|
|
3129
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3130
|
+
output,
|
|
3131
|
+
parsedBody,
|
|
3132
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3133
|
+
errorCode,
|
|
3313
3134
|
});
|
|
3314
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3315
3135
|
}
|
|
3316
3136
|
};
|
|
3317
3137
|
const deserializeAws_json1_1ListTapesCommand = async (output, context) => {
|
|
@@ -3333,7 +3153,6 @@ const deserializeAws_json1_1ListTapesCommandError = async (output, context) => {
|
|
|
3333
3153
|
...output,
|
|
3334
3154
|
body: await parseBody(output.body, context),
|
|
3335
3155
|
};
|
|
3336
|
-
let response;
|
|
3337
3156
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3338
3157
|
switch (errorCode) {
|
|
3339
3158
|
case "InternalServerError":
|
|
@@ -3344,14 +3163,12 @@ const deserializeAws_json1_1ListTapesCommandError = async (output, context) => {
|
|
|
3344
3163
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3345
3164
|
default:
|
|
3346
3165
|
const parsedBody = parsedOutput.body;
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
$metadata,
|
|
3166
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3167
|
+
output,
|
|
3168
|
+
parsedBody,
|
|
3169
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3170
|
+
errorCode,
|
|
3353
3171
|
});
|
|
3354
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3355
3172
|
}
|
|
3356
3173
|
};
|
|
3357
3174
|
const deserializeAws_json1_1ListVolumeInitiatorsCommand = async (output, context) => {
|
|
@@ -3373,7 +3190,6 @@ const deserializeAws_json1_1ListVolumeInitiatorsCommandError = async (output, co
|
|
|
3373
3190
|
...output,
|
|
3374
3191
|
body: await parseBody(output.body, context),
|
|
3375
3192
|
};
|
|
3376
|
-
let response;
|
|
3377
3193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3378
3194
|
switch (errorCode) {
|
|
3379
3195
|
case "InternalServerError":
|
|
@@ -3384,14 +3200,12 @@ const deserializeAws_json1_1ListVolumeInitiatorsCommandError = async (output, co
|
|
|
3384
3200
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3385
3201
|
default:
|
|
3386
3202
|
const parsedBody = parsedOutput.body;
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
$metadata,
|
|
3203
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3204
|
+
output,
|
|
3205
|
+
parsedBody,
|
|
3206
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3207
|
+
errorCode,
|
|
3393
3208
|
});
|
|
3394
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3395
3209
|
}
|
|
3396
3210
|
};
|
|
3397
3211
|
const deserializeAws_json1_1ListVolumeRecoveryPointsCommand = async (output, context) => {
|
|
@@ -3413,7 +3227,6 @@ const deserializeAws_json1_1ListVolumeRecoveryPointsCommandError = async (output
|
|
|
3413
3227
|
...output,
|
|
3414
3228
|
body: await parseBody(output.body, context),
|
|
3415
3229
|
};
|
|
3416
|
-
let response;
|
|
3417
3230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3418
3231
|
switch (errorCode) {
|
|
3419
3232
|
case "InternalServerError":
|
|
@@ -3424,14 +3237,12 @@ const deserializeAws_json1_1ListVolumeRecoveryPointsCommandError = async (output
|
|
|
3424
3237
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3425
3238
|
default:
|
|
3426
3239
|
const parsedBody = parsedOutput.body;
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
$metadata,
|
|
3240
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3241
|
+
output,
|
|
3242
|
+
parsedBody,
|
|
3243
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3244
|
+
errorCode,
|
|
3433
3245
|
});
|
|
3434
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3435
3246
|
}
|
|
3436
3247
|
};
|
|
3437
3248
|
const deserializeAws_json1_1ListVolumesCommand = async (output, context) => {
|
|
@@ -3453,7 +3264,6 @@ const deserializeAws_json1_1ListVolumesCommandError = async (output, context) =>
|
|
|
3453
3264
|
...output,
|
|
3454
3265
|
body: await parseBody(output.body, context),
|
|
3455
3266
|
};
|
|
3456
|
-
let response;
|
|
3457
3267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3458
3268
|
switch (errorCode) {
|
|
3459
3269
|
case "InternalServerError":
|
|
@@ -3464,14 +3274,12 @@ const deserializeAws_json1_1ListVolumesCommandError = async (output, context) =>
|
|
|
3464
3274
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3465
3275
|
default:
|
|
3466
3276
|
const parsedBody = parsedOutput.body;
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
$metadata,
|
|
3277
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3278
|
+
output,
|
|
3279
|
+
parsedBody,
|
|
3280
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3281
|
+
errorCode,
|
|
3473
3282
|
});
|
|
3474
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3475
3283
|
}
|
|
3476
3284
|
};
|
|
3477
3285
|
const deserializeAws_json1_1NotifyWhenUploadedCommand = async (output, context) => {
|
|
@@ -3493,7 +3301,6 @@ const deserializeAws_json1_1NotifyWhenUploadedCommandError = async (output, cont
|
|
|
3493
3301
|
...output,
|
|
3494
3302
|
body: await parseBody(output.body, context),
|
|
3495
3303
|
};
|
|
3496
|
-
let response;
|
|
3497
3304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3498
3305
|
switch (errorCode) {
|
|
3499
3306
|
case "InternalServerError":
|
|
@@ -3504,14 +3311,12 @@ const deserializeAws_json1_1NotifyWhenUploadedCommandError = async (output, cont
|
|
|
3504
3311
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3505
3312
|
default:
|
|
3506
3313
|
const parsedBody = parsedOutput.body;
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
$metadata,
|
|
3314
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3315
|
+
output,
|
|
3316
|
+
parsedBody,
|
|
3317
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3318
|
+
errorCode,
|
|
3513
3319
|
});
|
|
3514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3515
3320
|
}
|
|
3516
3321
|
};
|
|
3517
3322
|
const deserializeAws_json1_1RefreshCacheCommand = async (output, context) => {
|
|
@@ -3533,7 +3338,6 @@ const deserializeAws_json1_1RefreshCacheCommandError = async (output, context) =
|
|
|
3533
3338
|
...output,
|
|
3534
3339
|
body: await parseBody(output.body, context),
|
|
3535
3340
|
};
|
|
3536
|
-
let response;
|
|
3537
3341
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3538
3342
|
switch (errorCode) {
|
|
3539
3343
|
case "InternalServerError":
|
|
@@ -3544,14 +3348,12 @@ const deserializeAws_json1_1RefreshCacheCommandError = async (output, context) =
|
|
|
3544
3348
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3545
3349
|
default:
|
|
3546
3350
|
const parsedBody = parsedOutput.body;
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
$metadata,
|
|
3351
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3352
|
+
output,
|
|
3353
|
+
parsedBody,
|
|
3354
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3355
|
+
errorCode,
|
|
3553
3356
|
});
|
|
3554
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3555
3357
|
}
|
|
3556
3358
|
};
|
|
3557
3359
|
const deserializeAws_json1_1RemoveTagsFromResourceCommand = async (output, context) => {
|
|
@@ -3573,7 +3375,6 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
3573
3375
|
...output,
|
|
3574
3376
|
body: await parseBody(output.body, context),
|
|
3575
3377
|
};
|
|
3576
|
-
let response;
|
|
3577
3378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3578
3379
|
switch (errorCode) {
|
|
3579
3380
|
case "InternalServerError":
|
|
@@ -3584,14 +3385,12 @@ const deserializeAws_json1_1RemoveTagsFromResourceCommandError = async (output,
|
|
|
3584
3385
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3585
3386
|
default:
|
|
3586
3387
|
const parsedBody = parsedOutput.body;
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
$metadata,
|
|
3388
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3389
|
+
output,
|
|
3390
|
+
parsedBody,
|
|
3391
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3392
|
+
errorCode,
|
|
3593
3393
|
});
|
|
3594
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3595
3394
|
}
|
|
3596
3395
|
};
|
|
3597
3396
|
const deserializeAws_json1_1ResetCacheCommand = async (output, context) => {
|
|
@@ -3613,7 +3412,6 @@ const deserializeAws_json1_1ResetCacheCommandError = async (output, context) =>
|
|
|
3613
3412
|
...output,
|
|
3614
3413
|
body: await parseBody(output.body, context),
|
|
3615
3414
|
};
|
|
3616
|
-
let response;
|
|
3617
3415
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3618
3416
|
switch (errorCode) {
|
|
3619
3417
|
case "InternalServerError":
|
|
@@ -3624,14 +3422,12 @@ const deserializeAws_json1_1ResetCacheCommandError = async (output, context) =>
|
|
|
3624
3422
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3625
3423
|
default:
|
|
3626
3424
|
const parsedBody = parsedOutput.body;
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
$metadata,
|
|
3425
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3426
|
+
output,
|
|
3427
|
+
parsedBody,
|
|
3428
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3429
|
+
errorCode,
|
|
3633
3430
|
});
|
|
3634
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3635
3431
|
}
|
|
3636
3432
|
};
|
|
3637
3433
|
const deserializeAws_json1_1RetrieveTapeArchiveCommand = async (output, context) => {
|
|
@@ -3653,7 +3449,6 @@ const deserializeAws_json1_1RetrieveTapeArchiveCommandError = async (output, con
|
|
|
3653
3449
|
...output,
|
|
3654
3450
|
body: await parseBody(output.body, context),
|
|
3655
3451
|
};
|
|
3656
|
-
let response;
|
|
3657
3452
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3658
3453
|
switch (errorCode) {
|
|
3659
3454
|
case "InternalServerError":
|
|
@@ -3664,14 +3459,12 @@ const deserializeAws_json1_1RetrieveTapeArchiveCommandError = async (output, con
|
|
|
3664
3459
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3665
3460
|
default:
|
|
3666
3461
|
const parsedBody = parsedOutput.body;
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
$metadata,
|
|
3462
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3463
|
+
output,
|
|
3464
|
+
parsedBody,
|
|
3465
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3466
|
+
errorCode,
|
|
3673
3467
|
});
|
|
3674
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3675
3468
|
}
|
|
3676
3469
|
};
|
|
3677
3470
|
const deserializeAws_json1_1RetrieveTapeRecoveryPointCommand = async (output, context) => {
|
|
@@ -3693,7 +3486,6 @@ const deserializeAws_json1_1RetrieveTapeRecoveryPointCommandError = async (outpu
|
|
|
3693
3486
|
...output,
|
|
3694
3487
|
body: await parseBody(output.body, context),
|
|
3695
3488
|
};
|
|
3696
|
-
let response;
|
|
3697
3489
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3698
3490
|
switch (errorCode) {
|
|
3699
3491
|
case "InternalServerError":
|
|
@@ -3704,14 +3496,12 @@ const deserializeAws_json1_1RetrieveTapeRecoveryPointCommandError = async (outpu
|
|
|
3704
3496
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3705
3497
|
default:
|
|
3706
3498
|
const parsedBody = parsedOutput.body;
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
$metadata,
|
|
3499
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3500
|
+
output,
|
|
3501
|
+
parsedBody,
|
|
3502
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3503
|
+
errorCode,
|
|
3713
3504
|
});
|
|
3714
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3715
3505
|
}
|
|
3716
3506
|
};
|
|
3717
3507
|
const deserializeAws_json1_1SetLocalConsolePasswordCommand = async (output, context) => {
|
|
@@ -3733,7 +3523,6 @@ const deserializeAws_json1_1SetLocalConsolePasswordCommandError = async (output,
|
|
|
3733
3523
|
...output,
|
|
3734
3524
|
body: await parseBody(output.body, context),
|
|
3735
3525
|
};
|
|
3736
|
-
let response;
|
|
3737
3526
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3738
3527
|
switch (errorCode) {
|
|
3739
3528
|
case "InternalServerError":
|
|
@@ -3744,14 +3533,12 @@ const deserializeAws_json1_1SetLocalConsolePasswordCommandError = async (output,
|
|
|
3744
3533
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3745
3534
|
default:
|
|
3746
3535
|
const parsedBody = parsedOutput.body;
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
$metadata,
|
|
3536
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3537
|
+
output,
|
|
3538
|
+
parsedBody,
|
|
3539
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3540
|
+
errorCode,
|
|
3753
3541
|
});
|
|
3754
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3755
3542
|
}
|
|
3756
3543
|
};
|
|
3757
3544
|
const deserializeAws_json1_1SetSMBGuestPasswordCommand = async (output, context) => {
|
|
@@ -3773,7 +3560,6 @@ const deserializeAws_json1_1SetSMBGuestPasswordCommandError = async (output, con
|
|
|
3773
3560
|
...output,
|
|
3774
3561
|
body: await parseBody(output.body, context),
|
|
3775
3562
|
};
|
|
3776
|
-
let response;
|
|
3777
3563
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3778
3564
|
switch (errorCode) {
|
|
3779
3565
|
case "InternalServerError":
|
|
@@ -3784,14 +3570,12 @@ const deserializeAws_json1_1SetSMBGuestPasswordCommandError = async (output, con
|
|
|
3784
3570
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3785
3571
|
default:
|
|
3786
3572
|
const parsedBody = parsedOutput.body;
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
$metadata,
|
|
3573
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3574
|
+
output,
|
|
3575
|
+
parsedBody,
|
|
3576
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3577
|
+
errorCode,
|
|
3793
3578
|
});
|
|
3794
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3795
3579
|
}
|
|
3796
3580
|
};
|
|
3797
3581
|
const deserializeAws_json1_1ShutdownGatewayCommand = async (output, context) => {
|
|
@@ -3813,7 +3597,6 @@ const deserializeAws_json1_1ShutdownGatewayCommandError = async (output, context
|
|
|
3813
3597
|
...output,
|
|
3814
3598
|
body: await parseBody(output.body, context),
|
|
3815
3599
|
};
|
|
3816
|
-
let response;
|
|
3817
3600
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3818
3601
|
switch (errorCode) {
|
|
3819
3602
|
case "InternalServerError":
|
|
@@ -3824,14 +3607,12 @@ const deserializeAws_json1_1ShutdownGatewayCommandError = async (output, context
|
|
|
3824
3607
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3825
3608
|
default:
|
|
3826
3609
|
const parsedBody = parsedOutput.body;
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
$metadata,
|
|
3610
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3611
|
+
output,
|
|
3612
|
+
parsedBody,
|
|
3613
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3614
|
+
errorCode,
|
|
3833
3615
|
});
|
|
3834
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3835
3616
|
}
|
|
3836
3617
|
};
|
|
3837
3618
|
const deserializeAws_json1_1StartAvailabilityMonitorTestCommand = async (output, context) => {
|
|
@@ -3853,7 +3634,6 @@ const deserializeAws_json1_1StartAvailabilityMonitorTestCommandError = async (ou
|
|
|
3853
3634
|
...output,
|
|
3854
3635
|
body: await parseBody(output.body, context),
|
|
3855
3636
|
};
|
|
3856
|
-
let response;
|
|
3857
3637
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3858
3638
|
switch (errorCode) {
|
|
3859
3639
|
case "InternalServerError":
|
|
@@ -3864,14 +3644,12 @@ const deserializeAws_json1_1StartAvailabilityMonitorTestCommandError = async (ou
|
|
|
3864
3644
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3865
3645
|
default:
|
|
3866
3646
|
const parsedBody = parsedOutput.body;
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
$metadata,
|
|
3647
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3648
|
+
output,
|
|
3649
|
+
parsedBody,
|
|
3650
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3651
|
+
errorCode,
|
|
3873
3652
|
});
|
|
3874
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3875
3653
|
}
|
|
3876
3654
|
};
|
|
3877
3655
|
const deserializeAws_json1_1StartGatewayCommand = async (output, context) => {
|
|
@@ -3893,7 +3671,6 @@ const deserializeAws_json1_1StartGatewayCommandError = async (output, context) =
|
|
|
3893
3671
|
...output,
|
|
3894
3672
|
body: await parseBody(output.body, context),
|
|
3895
3673
|
};
|
|
3896
|
-
let response;
|
|
3897
3674
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3898
3675
|
switch (errorCode) {
|
|
3899
3676
|
case "InternalServerError":
|
|
@@ -3904,14 +3681,12 @@ const deserializeAws_json1_1StartGatewayCommandError = async (output, context) =
|
|
|
3904
3681
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3905
3682
|
default:
|
|
3906
3683
|
const parsedBody = parsedOutput.body;
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
$metadata,
|
|
3684
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3685
|
+
output,
|
|
3686
|
+
parsedBody,
|
|
3687
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3688
|
+
errorCode,
|
|
3913
3689
|
});
|
|
3914
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3915
3690
|
}
|
|
3916
3691
|
};
|
|
3917
3692
|
const deserializeAws_json1_1UpdateAutomaticTapeCreationPolicyCommand = async (output, context) => {
|
|
@@ -3933,7 +3708,6 @@ const deserializeAws_json1_1UpdateAutomaticTapeCreationPolicyCommandError = asyn
|
|
|
3933
3708
|
...output,
|
|
3934
3709
|
body: await parseBody(output.body, context),
|
|
3935
3710
|
};
|
|
3936
|
-
let response;
|
|
3937
3711
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3938
3712
|
switch (errorCode) {
|
|
3939
3713
|
case "InternalServerError":
|
|
@@ -3944,14 +3718,12 @@ const deserializeAws_json1_1UpdateAutomaticTapeCreationPolicyCommandError = asyn
|
|
|
3944
3718
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3945
3719
|
default:
|
|
3946
3720
|
const parsedBody = parsedOutput.body;
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
$metadata,
|
|
3721
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3722
|
+
output,
|
|
3723
|
+
parsedBody,
|
|
3724
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3725
|
+
errorCode,
|
|
3953
3726
|
});
|
|
3954
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3955
3727
|
}
|
|
3956
3728
|
};
|
|
3957
3729
|
const deserializeAws_json1_1UpdateBandwidthRateLimitCommand = async (output, context) => {
|
|
@@ -3973,7 +3745,6 @@ const deserializeAws_json1_1UpdateBandwidthRateLimitCommandError = async (output
|
|
|
3973
3745
|
...output,
|
|
3974
3746
|
body: await parseBody(output.body, context),
|
|
3975
3747
|
};
|
|
3976
|
-
let response;
|
|
3977
3748
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3978
3749
|
switch (errorCode) {
|
|
3979
3750
|
case "InternalServerError":
|
|
@@ -3984,14 +3755,12 @@ const deserializeAws_json1_1UpdateBandwidthRateLimitCommandError = async (output
|
|
|
3984
3755
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
3985
3756
|
default:
|
|
3986
3757
|
const parsedBody = parsedOutput.body;
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
$metadata,
|
|
3758
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3759
|
+
output,
|
|
3760
|
+
parsedBody,
|
|
3761
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3762
|
+
errorCode,
|
|
3993
3763
|
});
|
|
3994
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3995
3764
|
}
|
|
3996
3765
|
};
|
|
3997
3766
|
const deserializeAws_json1_1UpdateBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
@@ -4013,7 +3782,6 @@ const deserializeAws_json1_1UpdateBandwidthRateLimitScheduleCommandError = async
|
|
|
4013
3782
|
...output,
|
|
4014
3783
|
body: await parseBody(output.body, context),
|
|
4015
3784
|
};
|
|
4016
|
-
let response;
|
|
4017
3785
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4018
3786
|
switch (errorCode) {
|
|
4019
3787
|
case "InternalServerError":
|
|
@@ -4024,14 +3792,12 @@ const deserializeAws_json1_1UpdateBandwidthRateLimitScheduleCommandError = async
|
|
|
4024
3792
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4025
3793
|
default:
|
|
4026
3794
|
const parsedBody = parsedOutput.body;
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
$metadata,
|
|
3795
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3796
|
+
output,
|
|
3797
|
+
parsedBody,
|
|
3798
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3799
|
+
errorCode,
|
|
4033
3800
|
});
|
|
4034
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4035
3801
|
}
|
|
4036
3802
|
};
|
|
4037
3803
|
const deserializeAws_json1_1UpdateChapCredentialsCommand = async (output, context) => {
|
|
@@ -4053,7 +3819,6 @@ const deserializeAws_json1_1UpdateChapCredentialsCommandError = async (output, c
|
|
|
4053
3819
|
...output,
|
|
4054
3820
|
body: await parseBody(output.body, context),
|
|
4055
3821
|
};
|
|
4056
|
-
let response;
|
|
4057
3822
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4058
3823
|
switch (errorCode) {
|
|
4059
3824
|
case "InternalServerError":
|
|
@@ -4064,14 +3829,12 @@ const deserializeAws_json1_1UpdateChapCredentialsCommandError = async (output, c
|
|
|
4064
3829
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4065
3830
|
default:
|
|
4066
3831
|
const parsedBody = parsedOutput.body;
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
$metadata,
|
|
3832
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3833
|
+
output,
|
|
3834
|
+
parsedBody,
|
|
3835
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3836
|
+
errorCode,
|
|
4073
3837
|
});
|
|
4074
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4075
3838
|
}
|
|
4076
3839
|
};
|
|
4077
3840
|
const deserializeAws_json1_1UpdateFileSystemAssociationCommand = async (output, context) => {
|
|
@@ -4093,7 +3856,6 @@ const deserializeAws_json1_1UpdateFileSystemAssociationCommandError = async (out
|
|
|
4093
3856
|
...output,
|
|
4094
3857
|
body: await parseBody(output.body, context),
|
|
4095
3858
|
};
|
|
4096
|
-
let response;
|
|
4097
3859
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4098
3860
|
switch (errorCode) {
|
|
4099
3861
|
case "InternalServerError":
|
|
@@ -4104,14 +3866,12 @@ const deserializeAws_json1_1UpdateFileSystemAssociationCommandError = async (out
|
|
|
4104
3866
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4105
3867
|
default:
|
|
4106
3868
|
const parsedBody = parsedOutput.body;
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
$metadata,
|
|
3869
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3870
|
+
output,
|
|
3871
|
+
parsedBody,
|
|
3872
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3873
|
+
errorCode,
|
|
4113
3874
|
});
|
|
4114
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4115
3875
|
}
|
|
4116
3876
|
};
|
|
4117
3877
|
const deserializeAws_json1_1UpdateGatewayInformationCommand = async (output, context) => {
|
|
@@ -4133,7 +3893,6 @@ const deserializeAws_json1_1UpdateGatewayInformationCommandError = async (output
|
|
|
4133
3893
|
...output,
|
|
4134
3894
|
body: await parseBody(output.body, context),
|
|
4135
3895
|
};
|
|
4136
|
-
let response;
|
|
4137
3896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4138
3897
|
switch (errorCode) {
|
|
4139
3898
|
case "InternalServerError":
|
|
@@ -4144,14 +3903,12 @@ const deserializeAws_json1_1UpdateGatewayInformationCommandError = async (output
|
|
|
4144
3903
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4145
3904
|
default:
|
|
4146
3905
|
const parsedBody = parsedOutput.body;
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
$metadata,
|
|
3906
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3907
|
+
output,
|
|
3908
|
+
parsedBody,
|
|
3909
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3910
|
+
errorCode,
|
|
4153
3911
|
});
|
|
4154
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4155
3912
|
}
|
|
4156
3913
|
};
|
|
4157
3914
|
const deserializeAws_json1_1UpdateGatewaySoftwareNowCommand = async (output, context) => {
|
|
@@ -4173,7 +3930,6 @@ const deserializeAws_json1_1UpdateGatewaySoftwareNowCommandError = async (output
|
|
|
4173
3930
|
...output,
|
|
4174
3931
|
body: await parseBody(output.body, context),
|
|
4175
3932
|
};
|
|
4176
|
-
let response;
|
|
4177
3933
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4178
3934
|
switch (errorCode) {
|
|
4179
3935
|
case "InternalServerError":
|
|
@@ -4184,14 +3940,12 @@ const deserializeAws_json1_1UpdateGatewaySoftwareNowCommandError = async (output
|
|
|
4184
3940
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4185
3941
|
default:
|
|
4186
3942
|
const parsedBody = parsedOutput.body;
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
$metadata,
|
|
3943
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3944
|
+
output,
|
|
3945
|
+
parsedBody,
|
|
3946
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3947
|
+
errorCode,
|
|
4193
3948
|
});
|
|
4194
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4195
3949
|
}
|
|
4196
3950
|
};
|
|
4197
3951
|
const deserializeAws_json1_1UpdateMaintenanceStartTimeCommand = async (output, context) => {
|
|
@@ -4213,7 +3967,6 @@ const deserializeAws_json1_1UpdateMaintenanceStartTimeCommandError = async (outp
|
|
|
4213
3967
|
...output,
|
|
4214
3968
|
body: await parseBody(output.body, context),
|
|
4215
3969
|
};
|
|
4216
|
-
let response;
|
|
4217
3970
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4218
3971
|
switch (errorCode) {
|
|
4219
3972
|
case "InternalServerError":
|
|
@@ -4224,14 +3977,12 @@ const deserializeAws_json1_1UpdateMaintenanceStartTimeCommandError = async (outp
|
|
|
4224
3977
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4225
3978
|
default:
|
|
4226
3979
|
const parsedBody = parsedOutput.body;
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
$metadata,
|
|
3980
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3981
|
+
output,
|
|
3982
|
+
parsedBody,
|
|
3983
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
3984
|
+
errorCode,
|
|
4233
3985
|
});
|
|
4234
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4235
3986
|
}
|
|
4236
3987
|
};
|
|
4237
3988
|
const deserializeAws_json1_1UpdateNFSFileShareCommand = async (output, context) => {
|
|
@@ -4253,7 +4004,6 @@ const deserializeAws_json1_1UpdateNFSFileShareCommandError = async (output, cont
|
|
|
4253
4004
|
...output,
|
|
4254
4005
|
body: await parseBody(output.body, context),
|
|
4255
4006
|
};
|
|
4256
|
-
let response;
|
|
4257
4007
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4258
4008
|
switch (errorCode) {
|
|
4259
4009
|
case "InternalServerError":
|
|
@@ -4264,14 +4014,12 @@ const deserializeAws_json1_1UpdateNFSFileShareCommandError = async (output, cont
|
|
|
4264
4014
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4265
4015
|
default:
|
|
4266
4016
|
const parsedBody = parsedOutput.body;
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
$metadata,
|
|
4017
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4018
|
+
output,
|
|
4019
|
+
parsedBody,
|
|
4020
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
4021
|
+
errorCode,
|
|
4273
4022
|
});
|
|
4274
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4275
4023
|
}
|
|
4276
4024
|
};
|
|
4277
4025
|
const deserializeAws_json1_1UpdateSMBFileShareCommand = async (output, context) => {
|
|
@@ -4293,7 +4041,6 @@ const deserializeAws_json1_1UpdateSMBFileShareCommandError = async (output, cont
|
|
|
4293
4041
|
...output,
|
|
4294
4042
|
body: await parseBody(output.body, context),
|
|
4295
4043
|
};
|
|
4296
|
-
let response;
|
|
4297
4044
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4298
4045
|
switch (errorCode) {
|
|
4299
4046
|
case "InternalServerError":
|
|
@@ -4304,14 +4051,12 @@ const deserializeAws_json1_1UpdateSMBFileShareCommandError = async (output, cont
|
|
|
4304
4051
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4305
4052
|
default:
|
|
4306
4053
|
const parsedBody = parsedOutput.body;
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
$metadata,
|
|
4054
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4055
|
+
output,
|
|
4056
|
+
parsedBody,
|
|
4057
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
4058
|
+
errorCode,
|
|
4313
4059
|
});
|
|
4314
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4315
4060
|
}
|
|
4316
4061
|
};
|
|
4317
4062
|
const deserializeAws_json1_1UpdateSMBFileShareVisibilityCommand = async (output, context) => {
|
|
@@ -4333,7 +4078,6 @@ const deserializeAws_json1_1UpdateSMBFileShareVisibilityCommandError = async (ou
|
|
|
4333
4078
|
...output,
|
|
4334
4079
|
body: await parseBody(output.body, context),
|
|
4335
4080
|
};
|
|
4336
|
-
let response;
|
|
4337
4081
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4338
4082
|
switch (errorCode) {
|
|
4339
4083
|
case "InternalServerError":
|
|
@@ -4344,14 +4088,12 @@ const deserializeAws_json1_1UpdateSMBFileShareVisibilityCommandError = async (ou
|
|
|
4344
4088
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4345
4089
|
default:
|
|
4346
4090
|
const parsedBody = parsedOutput.body;
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
$metadata,
|
|
4091
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4092
|
+
output,
|
|
4093
|
+
parsedBody,
|
|
4094
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
4095
|
+
errorCode,
|
|
4353
4096
|
});
|
|
4354
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4355
4097
|
}
|
|
4356
4098
|
};
|
|
4357
4099
|
const deserializeAws_json1_1UpdateSMBLocalGroupsCommand = async (output, context) => {
|
|
@@ -4373,7 +4115,6 @@ const deserializeAws_json1_1UpdateSMBLocalGroupsCommandError = async (output, co
|
|
|
4373
4115
|
...output,
|
|
4374
4116
|
body: await parseBody(output.body, context),
|
|
4375
4117
|
};
|
|
4376
|
-
let response;
|
|
4377
4118
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4378
4119
|
switch (errorCode) {
|
|
4379
4120
|
case "InternalServerError":
|
|
@@ -4384,14 +4125,12 @@ const deserializeAws_json1_1UpdateSMBLocalGroupsCommandError = async (output, co
|
|
|
4384
4125
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4385
4126
|
default:
|
|
4386
4127
|
const parsedBody = parsedOutput.body;
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
$metadata,
|
|
4128
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4129
|
+
output,
|
|
4130
|
+
parsedBody,
|
|
4131
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
4132
|
+
errorCode,
|
|
4393
4133
|
});
|
|
4394
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4395
4134
|
}
|
|
4396
4135
|
};
|
|
4397
4136
|
const deserializeAws_json1_1UpdateSMBSecurityStrategyCommand = async (output, context) => {
|
|
@@ -4413,7 +4152,6 @@ const deserializeAws_json1_1UpdateSMBSecurityStrategyCommandError = async (outpu
|
|
|
4413
4152
|
...output,
|
|
4414
4153
|
body: await parseBody(output.body, context),
|
|
4415
4154
|
};
|
|
4416
|
-
let response;
|
|
4417
4155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4418
4156
|
switch (errorCode) {
|
|
4419
4157
|
case "InternalServerError":
|
|
@@ -4424,14 +4162,12 @@ const deserializeAws_json1_1UpdateSMBSecurityStrategyCommandError = async (outpu
|
|
|
4424
4162
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4425
4163
|
default:
|
|
4426
4164
|
const parsedBody = parsedOutput.body;
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
$metadata,
|
|
4165
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4166
|
+
output,
|
|
4167
|
+
parsedBody,
|
|
4168
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
4169
|
+
errorCode,
|
|
4433
4170
|
});
|
|
4434
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4435
4171
|
}
|
|
4436
4172
|
};
|
|
4437
4173
|
const deserializeAws_json1_1UpdateSnapshotScheduleCommand = async (output, context) => {
|
|
@@ -4453,7 +4189,6 @@ const deserializeAws_json1_1UpdateSnapshotScheduleCommandError = async (output,
|
|
|
4453
4189
|
...output,
|
|
4454
4190
|
body: await parseBody(output.body, context),
|
|
4455
4191
|
};
|
|
4456
|
-
let response;
|
|
4457
4192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4458
4193
|
switch (errorCode) {
|
|
4459
4194
|
case "InternalServerError":
|
|
@@ -4464,14 +4199,12 @@ const deserializeAws_json1_1UpdateSnapshotScheduleCommandError = async (output,
|
|
|
4464
4199
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4465
4200
|
default:
|
|
4466
4201
|
const parsedBody = parsedOutput.body;
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
$metadata,
|
|
4202
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4203
|
+
output,
|
|
4204
|
+
parsedBody,
|
|
4205
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
4206
|
+
errorCode,
|
|
4473
4207
|
});
|
|
4474
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4475
4208
|
}
|
|
4476
4209
|
};
|
|
4477
4210
|
const deserializeAws_json1_1UpdateVTLDeviceTypeCommand = async (output, context) => {
|
|
@@ -4493,7 +4226,6 @@ const deserializeAws_json1_1UpdateVTLDeviceTypeCommandError = async (output, con
|
|
|
4493
4226
|
...output,
|
|
4494
4227
|
body: await parseBody(output.body, context),
|
|
4495
4228
|
};
|
|
4496
|
-
let response;
|
|
4497
4229
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4498
4230
|
switch (errorCode) {
|
|
4499
4231
|
case "InternalServerError":
|
|
@@ -4504,14 +4236,12 @@ const deserializeAws_json1_1UpdateVTLDeviceTypeCommandError = async (output, con
|
|
|
4504
4236
|
throw await deserializeAws_json1_1InvalidGatewayRequestExceptionResponse(parsedOutput, context);
|
|
4505
4237
|
default:
|
|
4506
4238
|
const parsedBody = parsedOutput.body;
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
$metadata,
|
|
4239
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4240
|
+
output,
|
|
4241
|
+
parsedBody,
|
|
4242
|
+
exceptionCtor: StorageGatewayServiceException_1.StorageGatewayServiceException,
|
|
4243
|
+
errorCode,
|
|
4513
4244
|
});
|
|
4514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4515
4245
|
}
|
|
4516
4246
|
};
|
|
4517
4247
|
const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
|
|
@@ -4623,9 +4353,6 @@ const serializeAws_json1_1AutomaticTapeCreationRules = (input, context) => {
|
|
|
4623
4353
|
return input
|
|
4624
4354
|
.filter((e) => e != null)
|
|
4625
4355
|
.map((entry) => {
|
|
4626
|
-
if (entry === null) {
|
|
4627
|
-
return null;
|
|
4628
|
-
}
|
|
4629
4356
|
return serializeAws_json1_1AutomaticTapeCreationRule(entry, context);
|
|
4630
4357
|
});
|
|
4631
4358
|
};
|
|
@@ -4648,9 +4375,6 @@ const serializeAws_json1_1BandwidthRateLimitIntervals = (input, context) => {
|
|
|
4648
4375
|
return input
|
|
4649
4376
|
.filter((e) => e != null)
|
|
4650
4377
|
.map((entry) => {
|
|
4651
|
-
if (entry === null) {
|
|
4652
|
-
return null;
|
|
4653
|
-
}
|
|
4654
4378
|
return serializeAws_json1_1BandwidthRateLimitInterval(entry, context);
|
|
4655
4379
|
});
|
|
4656
4380
|
};
|
|
@@ -4814,9 +4538,6 @@ const serializeAws_json1_1DaysOfWeek = (input, context) => {
|
|
|
4814
4538
|
return input
|
|
4815
4539
|
.filter((e) => e != null)
|
|
4816
4540
|
.map((entry) => {
|
|
4817
|
-
if (entry === null) {
|
|
4818
|
-
return null;
|
|
4819
|
-
}
|
|
4820
4541
|
return entry;
|
|
4821
4542
|
});
|
|
4822
4543
|
};
|
|
@@ -5015,9 +4736,6 @@ const serializeAws_json1_1DiskIds = (input, context) => {
|
|
|
5015
4736
|
return input
|
|
5016
4737
|
.filter((e) => e != null)
|
|
5017
4738
|
.map((entry) => {
|
|
5018
|
-
if (entry === null) {
|
|
5019
|
-
return null;
|
|
5020
|
-
}
|
|
5021
4739
|
return entry;
|
|
5022
4740
|
});
|
|
5023
4741
|
};
|
|
@@ -5030,9 +4748,6 @@ const serializeAws_json1_1FileShareARNList = (input, context) => {
|
|
|
5030
4748
|
return input
|
|
5031
4749
|
.filter((e) => e != null)
|
|
5032
4750
|
.map((entry) => {
|
|
5033
|
-
if (entry === null) {
|
|
5034
|
-
return null;
|
|
5035
|
-
}
|
|
5036
4751
|
return entry;
|
|
5037
4752
|
});
|
|
5038
4753
|
};
|
|
@@ -5040,9 +4755,6 @@ const serializeAws_json1_1FileShareClientList = (input, context) => {
|
|
|
5040
4755
|
return input
|
|
5041
4756
|
.filter((e) => e != null)
|
|
5042
4757
|
.map((entry) => {
|
|
5043
|
-
if (entry === null) {
|
|
5044
|
-
return null;
|
|
5045
|
-
}
|
|
5046
4758
|
return entry;
|
|
5047
4759
|
});
|
|
5048
4760
|
};
|
|
@@ -5050,9 +4762,6 @@ const serializeAws_json1_1FileSystemAssociationARNList = (input, context) => {
|
|
|
5050
4762
|
return input
|
|
5051
4763
|
.filter((e) => e != null)
|
|
5052
4764
|
.map((entry) => {
|
|
5053
|
-
if (entry === null) {
|
|
5054
|
-
return null;
|
|
5055
|
-
}
|
|
5056
4765
|
return entry;
|
|
5057
4766
|
});
|
|
5058
4767
|
};
|
|
@@ -5060,9 +4769,6 @@ const serializeAws_json1_1FolderList = (input, context) => {
|
|
|
5060
4769
|
return input
|
|
5061
4770
|
.filter((e) => e != null)
|
|
5062
4771
|
.map((entry) => {
|
|
5063
|
-
if (entry === null) {
|
|
5064
|
-
return null;
|
|
5065
|
-
}
|
|
5066
4772
|
return entry;
|
|
5067
4773
|
});
|
|
5068
4774
|
};
|
|
@@ -5070,9 +4776,6 @@ const serializeAws_json1_1Hosts = (input, context) => {
|
|
|
5070
4776
|
return input
|
|
5071
4777
|
.filter((e) => e != null)
|
|
5072
4778
|
.map((entry) => {
|
|
5073
|
-
if (entry === null) {
|
|
5074
|
-
return null;
|
|
5075
|
-
}
|
|
5076
4779
|
return entry;
|
|
5077
4780
|
});
|
|
5078
4781
|
};
|
|
@@ -5080,9 +4783,6 @@ const serializeAws_json1_1IpAddressList = (input, context) => {
|
|
|
5080
4783
|
return input
|
|
5081
4784
|
.filter((e) => e != null)
|
|
5082
4785
|
.map((entry) => {
|
|
5083
|
-
if (entry === null) {
|
|
5084
|
-
return null;
|
|
5085
|
-
}
|
|
5086
4786
|
return entry;
|
|
5087
4787
|
});
|
|
5088
4788
|
};
|
|
@@ -5184,9 +4884,6 @@ const serializeAws_json1_1PoolARNs = (input, context) => {
|
|
|
5184
4884
|
return input
|
|
5185
4885
|
.filter((e) => e != null)
|
|
5186
4886
|
.map((entry) => {
|
|
5187
|
-
if (entry === null) {
|
|
5188
|
-
return null;
|
|
5189
|
-
}
|
|
5190
4887
|
return entry;
|
|
5191
4888
|
});
|
|
5192
4889
|
};
|
|
@@ -5262,9 +4959,6 @@ const serializeAws_json1_1TagKeys = (input, context) => {
|
|
|
5262
4959
|
return input
|
|
5263
4960
|
.filter((e) => e != null)
|
|
5264
4961
|
.map((entry) => {
|
|
5265
|
-
if (entry === null) {
|
|
5266
|
-
return null;
|
|
5267
|
-
}
|
|
5268
4962
|
return entry;
|
|
5269
4963
|
});
|
|
5270
4964
|
};
|
|
@@ -5272,9 +4966,6 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
5272
4966
|
return input
|
|
5273
4967
|
.filter((e) => e != null)
|
|
5274
4968
|
.map((entry) => {
|
|
5275
|
-
if (entry === null) {
|
|
5276
|
-
return null;
|
|
5277
|
-
}
|
|
5278
4969
|
return serializeAws_json1_1Tag(entry, context);
|
|
5279
4970
|
});
|
|
5280
4971
|
};
|
|
@@ -5282,9 +4973,6 @@ const serializeAws_json1_1TapeARNs = (input, context) => {
|
|
|
5282
4973
|
return input
|
|
5283
4974
|
.filter((e) => e != null)
|
|
5284
4975
|
.map((entry) => {
|
|
5285
|
-
if (entry === null) {
|
|
5286
|
-
return null;
|
|
5287
|
-
}
|
|
5288
4976
|
return entry;
|
|
5289
4977
|
});
|
|
5290
4978
|
};
|
|
@@ -5448,9 +5136,6 @@ const serializeAws_json1_1UserList = (input, context) => {
|
|
|
5448
5136
|
return input
|
|
5449
5137
|
.filter((e) => e != null)
|
|
5450
5138
|
.map((entry) => {
|
|
5451
|
-
if (entry === null) {
|
|
5452
|
-
return null;
|
|
5453
|
-
}
|
|
5454
5139
|
return entry;
|
|
5455
5140
|
});
|
|
5456
5141
|
};
|
|
@@ -5458,9 +5143,6 @@ const serializeAws_json1_1VolumeARNs = (input, context) => {
|
|
|
5458
5143
|
return input
|
|
5459
5144
|
.filter((e) => e != null)
|
|
5460
5145
|
.map((entry) => {
|
|
5461
|
-
if (entry === null) {
|
|
5462
|
-
return null;
|
|
5463
|
-
}
|
|
5464
5146
|
return entry;
|
|
5465
5147
|
});
|
|
5466
5148
|
};
|
|
@@ -5468,9 +5150,6 @@ const serializeAws_json1_1VTLDeviceARNs = (input, context) => {
|
|
|
5468
5150
|
return input
|
|
5469
5151
|
.filter((e) => e != null)
|
|
5470
5152
|
.map((entry) => {
|
|
5471
|
-
if (entry === null) {
|
|
5472
|
-
return null;
|
|
5473
|
-
}
|
|
5474
5153
|
return entry;
|
|
5475
5154
|
});
|
|
5476
5155
|
};
|