@aws-sdk/client-storage-gateway 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +846 -918
- package/dist-es/protocols/Aws_json1_1.js +635 -707
- package/package.json +26 -26
|
@@ -1012,7 +1012,7 @@ export var deserializeAws_json1_1ActivateGatewayCommand = function (output, cont
|
|
|
1012
1012
|
});
|
|
1013
1013
|
}); };
|
|
1014
1014
|
var deserializeAws_json1_1ActivateGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1015
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1015
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1016
1016
|
var _c;
|
|
1017
1017
|
return __generator(this, function (_d) {
|
|
1018
1018
|
switch (_d.label) {
|
|
@@ -1022,7 +1022,6 @@ var deserializeAws_json1_1ActivateGatewayCommandError = function (output, contex
|
|
|
1022
1022
|
return [4, parseBody(output.body, context)];
|
|
1023
1023
|
case 1:
|
|
1024
1024
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1025
|
-
errorCode = "UnknownError";
|
|
1026
1025
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
1026
|
_b = errorCode;
|
|
1028
1027
|
switch (_b) {
|
|
@@ -1038,10 +1037,12 @@ var deserializeAws_json1_1ActivateGatewayCommandError = function (output, contex
|
|
|
1038
1037
|
case 5: throw _d.sent();
|
|
1039
1038
|
case 6:
|
|
1040
1039
|
parsedBody = parsedOutput.body;
|
|
1040
|
+
$metadata = deserializeMetadata(output);
|
|
1041
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1041
1042
|
response = new __BaseException({
|
|
1042
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1043
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1043
1044
|
$fault: "client",
|
|
1044
|
-
$metadata:
|
|
1045
|
+
$metadata: $metadata,
|
|
1045
1046
|
});
|
|
1046
1047
|
throw __decorateServiceException(response, parsedBody);
|
|
1047
1048
|
}
|
|
@@ -1066,7 +1067,7 @@ export var deserializeAws_json1_1AddCacheCommand = function (output, context) {
|
|
|
1066
1067
|
});
|
|
1067
1068
|
}); };
|
|
1068
1069
|
var deserializeAws_json1_1AddCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1069
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1070
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1070
1071
|
var _c;
|
|
1071
1072
|
return __generator(this, function (_d) {
|
|
1072
1073
|
switch (_d.label) {
|
|
@@ -1076,7 +1077,6 @@ var deserializeAws_json1_1AddCacheCommandError = function (output, context) { re
|
|
|
1076
1077
|
return [4, parseBody(output.body, context)];
|
|
1077
1078
|
case 1:
|
|
1078
1079
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1079
|
-
errorCode = "UnknownError";
|
|
1080
1080
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
1081
|
_b = errorCode;
|
|
1082
1082
|
switch (_b) {
|
|
@@ -1092,10 +1092,12 @@ var deserializeAws_json1_1AddCacheCommandError = function (output, context) { re
|
|
|
1092
1092
|
case 5: throw _d.sent();
|
|
1093
1093
|
case 6:
|
|
1094
1094
|
parsedBody = parsedOutput.body;
|
|
1095
|
+
$metadata = deserializeMetadata(output);
|
|
1096
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1095
1097
|
response = new __BaseException({
|
|
1096
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1098
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1097
1099
|
$fault: "client",
|
|
1098
|
-
$metadata:
|
|
1100
|
+
$metadata: $metadata,
|
|
1099
1101
|
});
|
|
1100
1102
|
throw __decorateServiceException(response, parsedBody);
|
|
1101
1103
|
}
|
|
@@ -1120,7 +1122,7 @@ export var deserializeAws_json1_1AddTagsToResourceCommand = function (output, co
|
|
|
1120
1122
|
});
|
|
1121
1123
|
}); };
|
|
1122
1124
|
var deserializeAws_json1_1AddTagsToResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1123
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1125
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1124
1126
|
var _c;
|
|
1125
1127
|
return __generator(this, function (_d) {
|
|
1126
1128
|
switch (_d.label) {
|
|
@@ -1130,7 +1132,6 @@ var deserializeAws_json1_1AddTagsToResourceCommandError = function (output, cont
|
|
|
1130
1132
|
return [4, parseBody(output.body, context)];
|
|
1131
1133
|
case 1:
|
|
1132
1134
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1133
|
-
errorCode = "UnknownError";
|
|
1134
1135
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
1136
|
_b = errorCode;
|
|
1136
1137
|
switch (_b) {
|
|
@@ -1146,10 +1147,12 @@ var deserializeAws_json1_1AddTagsToResourceCommandError = function (output, cont
|
|
|
1146
1147
|
case 5: throw _d.sent();
|
|
1147
1148
|
case 6:
|
|
1148
1149
|
parsedBody = parsedOutput.body;
|
|
1150
|
+
$metadata = deserializeMetadata(output);
|
|
1151
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1149
1152
|
response = new __BaseException({
|
|
1150
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1153
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1151
1154
|
$fault: "client",
|
|
1152
|
-
$metadata:
|
|
1155
|
+
$metadata: $metadata,
|
|
1153
1156
|
});
|
|
1154
1157
|
throw __decorateServiceException(response, parsedBody);
|
|
1155
1158
|
}
|
|
@@ -1174,7 +1177,7 @@ export var deserializeAws_json1_1AddUploadBufferCommand = function (output, cont
|
|
|
1174
1177
|
});
|
|
1175
1178
|
}); };
|
|
1176
1179
|
var deserializeAws_json1_1AddUploadBufferCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1177
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1180
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1178
1181
|
var _c;
|
|
1179
1182
|
return __generator(this, function (_d) {
|
|
1180
1183
|
switch (_d.label) {
|
|
@@ -1184,7 +1187,6 @@ var deserializeAws_json1_1AddUploadBufferCommandError = function (output, contex
|
|
|
1184
1187
|
return [4, parseBody(output.body, context)];
|
|
1185
1188
|
case 1:
|
|
1186
1189
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1187
|
-
errorCode = "UnknownError";
|
|
1188
1190
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1189
1191
|
_b = errorCode;
|
|
1190
1192
|
switch (_b) {
|
|
@@ -1200,10 +1202,12 @@ var deserializeAws_json1_1AddUploadBufferCommandError = function (output, contex
|
|
|
1200
1202
|
case 5: throw _d.sent();
|
|
1201
1203
|
case 6:
|
|
1202
1204
|
parsedBody = parsedOutput.body;
|
|
1205
|
+
$metadata = deserializeMetadata(output);
|
|
1206
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1203
1207
|
response = new __BaseException({
|
|
1204
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1208
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1205
1209
|
$fault: "client",
|
|
1206
|
-
$metadata:
|
|
1210
|
+
$metadata: $metadata,
|
|
1207
1211
|
});
|
|
1208
1212
|
throw __decorateServiceException(response, parsedBody);
|
|
1209
1213
|
}
|
|
@@ -1228,7 +1232,7 @@ export var deserializeAws_json1_1AddWorkingStorageCommand = function (output, co
|
|
|
1228
1232
|
});
|
|
1229
1233
|
}); };
|
|
1230
1234
|
var deserializeAws_json1_1AddWorkingStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1231
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1235
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1232
1236
|
var _c;
|
|
1233
1237
|
return __generator(this, function (_d) {
|
|
1234
1238
|
switch (_d.label) {
|
|
@@ -1238,7 +1242,6 @@ var deserializeAws_json1_1AddWorkingStorageCommandError = function (output, cont
|
|
|
1238
1242
|
return [4, parseBody(output.body, context)];
|
|
1239
1243
|
case 1:
|
|
1240
1244
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1241
|
-
errorCode = "UnknownError";
|
|
1242
1245
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
1246
|
_b = errorCode;
|
|
1244
1247
|
switch (_b) {
|
|
@@ -1254,10 +1257,12 @@ var deserializeAws_json1_1AddWorkingStorageCommandError = function (output, cont
|
|
|
1254
1257
|
case 5: throw _d.sent();
|
|
1255
1258
|
case 6:
|
|
1256
1259
|
parsedBody = parsedOutput.body;
|
|
1260
|
+
$metadata = deserializeMetadata(output);
|
|
1261
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1257
1262
|
response = new __BaseException({
|
|
1258
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1263
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1259
1264
|
$fault: "client",
|
|
1260
|
-
$metadata:
|
|
1265
|
+
$metadata: $metadata,
|
|
1261
1266
|
});
|
|
1262
1267
|
throw __decorateServiceException(response, parsedBody);
|
|
1263
1268
|
}
|
|
@@ -1282,7 +1287,7 @@ export var deserializeAws_json1_1AssignTapePoolCommand = function (output, conte
|
|
|
1282
1287
|
});
|
|
1283
1288
|
}); };
|
|
1284
1289
|
var deserializeAws_json1_1AssignTapePoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1285
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1290
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1286
1291
|
var _c;
|
|
1287
1292
|
return __generator(this, function (_d) {
|
|
1288
1293
|
switch (_d.label) {
|
|
@@ -1292,7 +1297,6 @@ var deserializeAws_json1_1AssignTapePoolCommandError = function (output, context
|
|
|
1292
1297
|
return [4, parseBody(output.body, context)];
|
|
1293
1298
|
case 1:
|
|
1294
1299
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1295
|
-
errorCode = "UnknownError";
|
|
1296
1300
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
1301
|
_b = errorCode;
|
|
1298
1302
|
switch (_b) {
|
|
@@ -1308,10 +1312,12 @@ var deserializeAws_json1_1AssignTapePoolCommandError = function (output, context
|
|
|
1308
1312
|
case 5: throw _d.sent();
|
|
1309
1313
|
case 6:
|
|
1310
1314
|
parsedBody = parsedOutput.body;
|
|
1315
|
+
$metadata = deserializeMetadata(output);
|
|
1316
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1311
1317
|
response = new __BaseException({
|
|
1312
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1318
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1313
1319
|
$fault: "client",
|
|
1314
|
-
$metadata:
|
|
1320
|
+
$metadata: $metadata,
|
|
1315
1321
|
});
|
|
1316
1322
|
throw __decorateServiceException(response, parsedBody);
|
|
1317
1323
|
}
|
|
@@ -1336,7 +1342,7 @@ export var deserializeAws_json1_1AssociateFileSystemCommand = function (output,
|
|
|
1336
1342
|
});
|
|
1337
1343
|
}); };
|
|
1338
1344
|
var deserializeAws_json1_1AssociateFileSystemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1339
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1345
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1340
1346
|
var _c;
|
|
1341
1347
|
return __generator(this, function (_d) {
|
|
1342
1348
|
switch (_d.label) {
|
|
@@ -1346,7 +1352,6 @@ var deserializeAws_json1_1AssociateFileSystemCommandError = function (output, co
|
|
|
1346
1352
|
return [4, parseBody(output.body, context)];
|
|
1347
1353
|
case 1:
|
|
1348
1354
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1349
|
-
errorCode = "UnknownError";
|
|
1350
1355
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1351
1356
|
_b = errorCode;
|
|
1352
1357
|
switch (_b) {
|
|
@@ -1362,10 +1367,12 @@ var deserializeAws_json1_1AssociateFileSystemCommandError = function (output, co
|
|
|
1362
1367
|
case 5: throw _d.sent();
|
|
1363
1368
|
case 6:
|
|
1364
1369
|
parsedBody = parsedOutput.body;
|
|
1370
|
+
$metadata = deserializeMetadata(output);
|
|
1371
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1365
1372
|
response = new __BaseException({
|
|
1366
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1373
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1367
1374
|
$fault: "client",
|
|
1368
|
-
$metadata:
|
|
1375
|
+
$metadata: $metadata,
|
|
1369
1376
|
});
|
|
1370
1377
|
throw __decorateServiceException(response, parsedBody);
|
|
1371
1378
|
}
|
|
@@ -1390,7 +1397,7 @@ export var deserializeAws_json1_1AttachVolumeCommand = function (output, context
|
|
|
1390
1397
|
});
|
|
1391
1398
|
}); };
|
|
1392
1399
|
var deserializeAws_json1_1AttachVolumeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1393
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1400
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1394
1401
|
var _c;
|
|
1395
1402
|
return __generator(this, function (_d) {
|
|
1396
1403
|
switch (_d.label) {
|
|
@@ -1400,7 +1407,6 @@ var deserializeAws_json1_1AttachVolumeCommandError = function (output, context)
|
|
|
1400
1407
|
return [4, parseBody(output.body, context)];
|
|
1401
1408
|
case 1:
|
|
1402
1409
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1403
|
-
errorCode = "UnknownError";
|
|
1404
1410
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
1411
|
_b = errorCode;
|
|
1406
1412
|
switch (_b) {
|
|
@@ -1416,10 +1422,12 @@ var deserializeAws_json1_1AttachVolumeCommandError = function (output, context)
|
|
|
1416
1422
|
case 5: throw _d.sent();
|
|
1417
1423
|
case 6:
|
|
1418
1424
|
parsedBody = parsedOutput.body;
|
|
1425
|
+
$metadata = deserializeMetadata(output);
|
|
1426
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1419
1427
|
response = new __BaseException({
|
|
1420
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1428
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1421
1429
|
$fault: "client",
|
|
1422
|
-
$metadata:
|
|
1430
|
+
$metadata: $metadata,
|
|
1423
1431
|
});
|
|
1424
1432
|
throw __decorateServiceException(response, parsedBody);
|
|
1425
1433
|
}
|
|
@@ -1444,7 +1452,7 @@ export var deserializeAws_json1_1CancelArchivalCommand = function (output, conte
|
|
|
1444
1452
|
});
|
|
1445
1453
|
}); };
|
|
1446
1454
|
var deserializeAws_json1_1CancelArchivalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1447
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1455
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1448
1456
|
var _c;
|
|
1449
1457
|
return __generator(this, function (_d) {
|
|
1450
1458
|
switch (_d.label) {
|
|
@@ -1454,7 +1462,6 @@ var deserializeAws_json1_1CancelArchivalCommandError = function (output, context
|
|
|
1454
1462
|
return [4, parseBody(output.body, context)];
|
|
1455
1463
|
case 1:
|
|
1456
1464
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1457
|
-
errorCode = "UnknownError";
|
|
1458
1465
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
1466
|
_b = errorCode;
|
|
1460
1467
|
switch (_b) {
|
|
@@ -1470,10 +1477,12 @@ var deserializeAws_json1_1CancelArchivalCommandError = function (output, context
|
|
|
1470
1477
|
case 5: throw _d.sent();
|
|
1471
1478
|
case 6:
|
|
1472
1479
|
parsedBody = parsedOutput.body;
|
|
1480
|
+
$metadata = deserializeMetadata(output);
|
|
1481
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1473
1482
|
response = new __BaseException({
|
|
1474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1475
1484
|
$fault: "client",
|
|
1476
|
-
$metadata:
|
|
1485
|
+
$metadata: $metadata,
|
|
1477
1486
|
});
|
|
1478
1487
|
throw __decorateServiceException(response, parsedBody);
|
|
1479
1488
|
}
|
|
@@ -1498,7 +1507,7 @@ export var deserializeAws_json1_1CancelRetrievalCommand = function (output, cont
|
|
|
1498
1507
|
});
|
|
1499
1508
|
}); };
|
|
1500
1509
|
var deserializeAws_json1_1CancelRetrievalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1501
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1510
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1502
1511
|
var _c;
|
|
1503
1512
|
return __generator(this, function (_d) {
|
|
1504
1513
|
switch (_d.label) {
|
|
@@ -1508,7 +1517,6 @@ var deserializeAws_json1_1CancelRetrievalCommandError = function (output, contex
|
|
|
1508
1517
|
return [4, parseBody(output.body, context)];
|
|
1509
1518
|
case 1:
|
|
1510
1519
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1511
|
-
errorCode = "UnknownError";
|
|
1512
1520
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
1521
|
_b = errorCode;
|
|
1514
1522
|
switch (_b) {
|
|
@@ -1524,10 +1532,12 @@ var deserializeAws_json1_1CancelRetrievalCommandError = function (output, contex
|
|
|
1524
1532
|
case 5: throw _d.sent();
|
|
1525
1533
|
case 6:
|
|
1526
1534
|
parsedBody = parsedOutput.body;
|
|
1535
|
+
$metadata = deserializeMetadata(output);
|
|
1536
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1527
1537
|
response = new __BaseException({
|
|
1528
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1538
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1529
1539
|
$fault: "client",
|
|
1530
|
-
$metadata:
|
|
1540
|
+
$metadata: $metadata,
|
|
1531
1541
|
});
|
|
1532
1542
|
throw __decorateServiceException(response, parsedBody);
|
|
1533
1543
|
}
|
|
@@ -1552,7 +1562,7 @@ export var deserializeAws_json1_1CreateCachediSCSIVolumeCommand = function (outp
|
|
|
1552
1562
|
});
|
|
1553
1563
|
}); };
|
|
1554
1564
|
var deserializeAws_json1_1CreateCachediSCSIVolumeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1555
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1565
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1556
1566
|
var _c;
|
|
1557
1567
|
return __generator(this, function (_d) {
|
|
1558
1568
|
switch (_d.label) {
|
|
@@ -1562,7 +1572,6 @@ var deserializeAws_json1_1CreateCachediSCSIVolumeCommandError = function (output
|
|
|
1562
1572
|
return [4, parseBody(output.body, context)];
|
|
1563
1573
|
case 1:
|
|
1564
1574
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1565
|
-
errorCode = "UnknownError";
|
|
1566
1575
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
1576
|
_b = errorCode;
|
|
1568
1577
|
switch (_b) {
|
|
@@ -1578,10 +1587,12 @@ var deserializeAws_json1_1CreateCachediSCSIVolumeCommandError = function (output
|
|
|
1578
1587
|
case 5: throw _d.sent();
|
|
1579
1588
|
case 6:
|
|
1580
1589
|
parsedBody = parsedOutput.body;
|
|
1590
|
+
$metadata = deserializeMetadata(output);
|
|
1591
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1581
1592
|
response = new __BaseException({
|
|
1582
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1593
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1583
1594
|
$fault: "client",
|
|
1584
|
-
$metadata:
|
|
1595
|
+
$metadata: $metadata,
|
|
1585
1596
|
});
|
|
1586
1597
|
throw __decorateServiceException(response, parsedBody);
|
|
1587
1598
|
}
|
|
@@ -1606,7 +1617,7 @@ export var deserializeAws_json1_1CreateNFSFileShareCommand = function (output, c
|
|
|
1606
1617
|
});
|
|
1607
1618
|
}); };
|
|
1608
1619
|
var deserializeAws_json1_1CreateNFSFileShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1609
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1620
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1610
1621
|
var _c;
|
|
1611
1622
|
return __generator(this, function (_d) {
|
|
1612
1623
|
switch (_d.label) {
|
|
@@ -1616,7 +1627,6 @@ var deserializeAws_json1_1CreateNFSFileShareCommandError = function (output, con
|
|
|
1616
1627
|
return [4, parseBody(output.body, context)];
|
|
1617
1628
|
case 1:
|
|
1618
1629
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1619
|
-
errorCode = "UnknownError";
|
|
1620
1630
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
1631
|
_b = errorCode;
|
|
1622
1632
|
switch (_b) {
|
|
@@ -1632,10 +1642,12 @@ var deserializeAws_json1_1CreateNFSFileShareCommandError = function (output, con
|
|
|
1632
1642
|
case 5: throw _d.sent();
|
|
1633
1643
|
case 6:
|
|
1634
1644
|
parsedBody = parsedOutput.body;
|
|
1645
|
+
$metadata = deserializeMetadata(output);
|
|
1646
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1635
1647
|
response = new __BaseException({
|
|
1636
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1637
1649
|
$fault: "client",
|
|
1638
|
-
$metadata:
|
|
1650
|
+
$metadata: $metadata,
|
|
1639
1651
|
});
|
|
1640
1652
|
throw __decorateServiceException(response, parsedBody);
|
|
1641
1653
|
}
|
|
@@ -1660,7 +1672,7 @@ export var deserializeAws_json1_1CreateSMBFileShareCommand = function (output, c
|
|
|
1660
1672
|
});
|
|
1661
1673
|
}); };
|
|
1662
1674
|
var deserializeAws_json1_1CreateSMBFileShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1663
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1675
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1664
1676
|
var _c;
|
|
1665
1677
|
return __generator(this, function (_d) {
|
|
1666
1678
|
switch (_d.label) {
|
|
@@ -1670,7 +1682,6 @@ var deserializeAws_json1_1CreateSMBFileShareCommandError = function (output, con
|
|
|
1670
1682
|
return [4, parseBody(output.body, context)];
|
|
1671
1683
|
case 1:
|
|
1672
1684
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1673
|
-
errorCode = "UnknownError";
|
|
1674
1685
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
1686
|
_b = errorCode;
|
|
1676
1687
|
switch (_b) {
|
|
@@ -1686,10 +1697,12 @@ var deserializeAws_json1_1CreateSMBFileShareCommandError = function (output, con
|
|
|
1686
1697
|
case 5: throw _d.sent();
|
|
1687
1698
|
case 6:
|
|
1688
1699
|
parsedBody = parsedOutput.body;
|
|
1700
|
+
$metadata = deserializeMetadata(output);
|
|
1701
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1689
1702
|
response = new __BaseException({
|
|
1690
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1703
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1691
1704
|
$fault: "client",
|
|
1692
|
-
$metadata:
|
|
1705
|
+
$metadata: $metadata,
|
|
1693
1706
|
});
|
|
1694
1707
|
throw __decorateServiceException(response, parsedBody);
|
|
1695
1708
|
}
|
|
@@ -1714,7 +1727,7 @@ export var deserializeAws_json1_1CreateSnapshotCommand = function (output, conte
|
|
|
1714
1727
|
});
|
|
1715
1728
|
}); };
|
|
1716
1729
|
var deserializeAws_json1_1CreateSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1717
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1730
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1718
1731
|
var _c;
|
|
1719
1732
|
return __generator(this, function (_d) {
|
|
1720
1733
|
switch (_d.label) {
|
|
@@ -1724,7 +1737,6 @@ var deserializeAws_json1_1CreateSnapshotCommandError = function (output, context
|
|
|
1724
1737
|
return [4, parseBody(output.body, context)];
|
|
1725
1738
|
case 1:
|
|
1726
1739
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1727
|
-
errorCode = "UnknownError";
|
|
1728
1740
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1729
1741
|
_b = errorCode;
|
|
1730
1742
|
switch (_b) {
|
|
@@ -1744,10 +1756,12 @@ var deserializeAws_json1_1CreateSnapshotCommandError = function (output, context
|
|
|
1744
1756
|
case 7: throw _d.sent();
|
|
1745
1757
|
case 8:
|
|
1746
1758
|
parsedBody = parsedOutput.body;
|
|
1759
|
+
$metadata = deserializeMetadata(output);
|
|
1760
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1747
1761
|
response = new __BaseException({
|
|
1748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1762
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1749
1763
|
$fault: "client",
|
|
1750
|
-
$metadata:
|
|
1764
|
+
$metadata: $metadata,
|
|
1751
1765
|
});
|
|
1752
1766
|
throw __decorateServiceException(response, parsedBody);
|
|
1753
1767
|
}
|
|
@@ -1772,7 +1786,7 @@ export var deserializeAws_json1_1CreateSnapshotFromVolumeRecoveryPointCommand =
|
|
|
1772
1786
|
});
|
|
1773
1787
|
}); };
|
|
1774
1788
|
var deserializeAws_json1_1CreateSnapshotFromVolumeRecoveryPointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1775
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1789
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1776
1790
|
var _c;
|
|
1777
1791
|
return __generator(this, function (_d) {
|
|
1778
1792
|
switch (_d.label) {
|
|
@@ -1782,7 +1796,6 @@ var deserializeAws_json1_1CreateSnapshotFromVolumeRecoveryPointCommandError = fu
|
|
|
1782
1796
|
return [4, parseBody(output.body, context)];
|
|
1783
1797
|
case 1:
|
|
1784
1798
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1785
|
-
errorCode = "UnknownError";
|
|
1786
1799
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
1800
|
_b = errorCode;
|
|
1788
1801
|
switch (_b) {
|
|
@@ -1802,10 +1815,12 @@ var deserializeAws_json1_1CreateSnapshotFromVolumeRecoveryPointCommandError = fu
|
|
|
1802
1815
|
case 7: throw _d.sent();
|
|
1803
1816
|
case 8:
|
|
1804
1817
|
parsedBody = parsedOutput.body;
|
|
1818
|
+
$metadata = deserializeMetadata(output);
|
|
1819
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1805
1820
|
response = new __BaseException({
|
|
1806
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1807
1822
|
$fault: "client",
|
|
1808
|
-
$metadata:
|
|
1823
|
+
$metadata: $metadata,
|
|
1809
1824
|
});
|
|
1810
1825
|
throw __decorateServiceException(response, parsedBody);
|
|
1811
1826
|
}
|
|
@@ -1830,7 +1845,7 @@ export var deserializeAws_json1_1CreateStorediSCSIVolumeCommand = function (outp
|
|
|
1830
1845
|
});
|
|
1831
1846
|
}); };
|
|
1832
1847
|
var deserializeAws_json1_1CreateStorediSCSIVolumeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1833
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1848
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1834
1849
|
var _c;
|
|
1835
1850
|
return __generator(this, function (_d) {
|
|
1836
1851
|
switch (_d.label) {
|
|
@@ -1840,7 +1855,6 @@ var deserializeAws_json1_1CreateStorediSCSIVolumeCommandError = function (output
|
|
|
1840
1855
|
return [4, parseBody(output.body, context)];
|
|
1841
1856
|
case 1:
|
|
1842
1857
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1843
|
-
errorCode = "UnknownError";
|
|
1844
1858
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1845
1859
|
_b = errorCode;
|
|
1846
1860
|
switch (_b) {
|
|
@@ -1856,10 +1870,12 @@ var deserializeAws_json1_1CreateStorediSCSIVolumeCommandError = function (output
|
|
|
1856
1870
|
case 5: throw _d.sent();
|
|
1857
1871
|
case 6:
|
|
1858
1872
|
parsedBody = parsedOutput.body;
|
|
1873
|
+
$metadata = deserializeMetadata(output);
|
|
1874
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1859
1875
|
response = new __BaseException({
|
|
1860
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1876
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1861
1877
|
$fault: "client",
|
|
1862
|
-
$metadata:
|
|
1878
|
+
$metadata: $metadata,
|
|
1863
1879
|
});
|
|
1864
1880
|
throw __decorateServiceException(response, parsedBody);
|
|
1865
1881
|
}
|
|
@@ -1884,7 +1900,7 @@ export var deserializeAws_json1_1CreateTapePoolCommand = function (output, conte
|
|
|
1884
1900
|
});
|
|
1885
1901
|
}); };
|
|
1886
1902
|
var deserializeAws_json1_1CreateTapePoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1887
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1903
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1888
1904
|
var _c;
|
|
1889
1905
|
return __generator(this, function (_d) {
|
|
1890
1906
|
switch (_d.label) {
|
|
@@ -1894,7 +1910,6 @@ var deserializeAws_json1_1CreateTapePoolCommandError = function (output, context
|
|
|
1894
1910
|
return [4, parseBody(output.body, context)];
|
|
1895
1911
|
case 1:
|
|
1896
1912
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1897
|
-
errorCode = "UnknownError";
|
|
1898
1913
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1899
1914
|
_b = errorCode;
|
|
1900
1915
|
switch (_b) {
|
|
@@ -1910,10 +1925,12 @@ var deserializeAws_json1_1CreateTapePoolCommandError = function (output, context
|
|
|
1910
1925
|
case 5: throw _d.sent();
|
|
1911
1926
|
case 6:
|
|
1912
1927
|
parsedBody = parsedOutput.body;
|
|
1928
|
+
$metadata = deserializeMetadata(output);
|
|
1929
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1913
1930
|
response = new __BaseException({
|
|
1914
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1931
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1915
1932
|
$fault: "client",
|
|
1916
|
-
$metadata:
|
|
1933
|
+
$metadata: $metadata,
|
|
1917
1934
|
});
|
|
1918
1935
|
throw __decorateServiceException(response, parsedBody);
|
|
1919
1936
|
}
|
|
@@ -1938,7 +1955,7 @@ export var deserializeAws_json1_1CreateTapesCommand = function (output, context)
|
|
|
1938
1955
|
});
|
|
1939
1956
|
}); };
|
|
1940
1957
|
var deserializeAws_json1_1CreateTapesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1941
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1958
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1942
1959
|
var _c;
|
|
1943
1960
|
return __generator(this, function (_d) {
|
|
1944
1961
|
switch (_d.label) {
|
|
@@ -1948,7 +1965,6 @@ var deserializeAws_json1_1CreateTapesCommandError = function (output, context) {
|
|
|
1948
1965
|
return [4, parseBody(output.body, context)];
|
|
1949
1966
|
case 1:
|
|
1950
1967
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1951
|
-
errorCode = "UnknownError";
|
|
1952
1968
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
1969
|
_b = errorCode;
|
|
1954
1970
|
switch (_b) {
|
|
@@ -1964,10 +1980,12 @@ var deserializeAws_json1_1CreateTapesCommandError = function (output, context) {
|
|
|
1964
1980
|
case 5: throw _d.sent();
|
|
1965
1981
|
case 6:
|
|
1966
1982
|
parsedBody = parsedOutput.body;
|
|
1983
|
+
$metadata = deserializeMetadata(output);
|
|
1984
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1967
1985
|
response = new __BaseException({
|
|
1968
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1986
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1969
1987
|
$fault: "client",
|
|
1970
|
-
$metadata:
|
|
1988
|
+
$metadata: $metadata,
|
|
1971
1989
|
});
|
|
1972
1990
|
throw __decorateServiceException(response, parsedBody);
|
|
1973
1991
|
}
|
|
@@ -1992,7 +2010,7 @@ export var deserializeAws_json1_1CreateTapeWithBarcodeCommand = function (output
|
|
|
1992
2010
|
});
|
|
1993
2011
|
}); };
|
|
1994
2012
|
var deserializeAws_json1_1CreateTapeWithBarcodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1995
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2013
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1996
2014
|
var _c;
|
|
1997
2015
|
return __generator(this, function (_d) {
|
|
1998
2016
|
switch (_d.label) {
|
|
@@ -2002,7 +2020,6 @@ var deserializeAws_json1_1CreateTapeWithBarcodeCommandError = function (output,
|
|
|
2002
2020
|
return [4, parseBody(output.body, context)];
|
|
2003
2021
|
case 1:
|
|
2004
2022
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2005
|
-
errorCode = "UnknownError";
|
|
2006
2023
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
2024
|
_b = errorCode;
|
|
2008
2025
|
switch (_b) {
|
|
@@ -2018,10 +2035,12 @@ var deserializeAws_json1_1CreateTapeWithBarcodeCommandError = function (output,
|
|
|
2018
2035
|
case 5: throw _d.sent();
|
|
2019
2036
|
case 6:
|
|
2020
2037
|
parsedBody = parsedOutput.body;
|
|
2038
|
+
$metadata = deserializeMetadata(output);
|
|
2039
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2021
2040
|
response = new __BaseException({
|
|
2022
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2041
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2023
2042
|
$fault: "client",
|
|
2024
|
-
$metadata:
|
|
2043
|
+
$metadata: $metadata,
|
|
2025
2044
|
});
|
|
2026
2045
|
throw __decorateServiceException(response, parsedBody);
|
|
2027
2046
|
}
|
|
@@ -2046,7 +2065,7 @@ export var deserializeAws_json1_1DeleteAutomaticTapeCreationPolicyCommand = func
|
|
|
2046
2065
|
});
|
|
2047
2066
|
}); };
|
|
2048
2067
|
var deserializeAws_json1_1DeleteAutomaticTapeCreationPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2049
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2068
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2050
2069
|
var _c;
|
|
2051
2070
|
return __generator(this, function (_d) {
|
|
2052
2071
|
switch (_d.label) {
|
|
@@ -2056,7 +2075,6 @@ var deserializeAws_json1_1DeleteAutomaticTapeCreationPolicyCommandError = functi
|
|
|
2056
2075
|
return [4, parseBody(output.body, context)];
|
|
2057
2076
|
case 1:
|
|
2058
2077
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2059
|
-
errorCode = "UnknownError";
|
|
2060
2078
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2061
2079
|
_b = errorCode;
|
|
2062
2080
|
switch (_b) {
|
|
@@ -2072,10 +2090,12 @@ var deserializeAws_json1_1DeleteAutomaticTapeCreationPolicyCommandError = functi
|
|
|
2072
2090
|
case 5: throw _d.sent();
|
|
2073
2091
|
case 6:
|
|
2074
2092
|
parsedBody = parsedOutput.body;
|
|
2093
|
+
$metadata = deserializeMetadata(output);
|
|
2094
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2075
2095
|
response = new __BaseException({
|
|
2076
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2077
2097
|
$fault: "client",
|
|
2078
|
-
$metadata:
|
|
2098
|
+
$metadata: $metadata,
|
|
2079
2099
|
});
|
|
2080
2100
|
throw __decorateServiceException(response, parsedBody);
|
|
2081
2101
|
}
|
|
@@ -2100,7 +2120,7 @@ export var deserializeAws_json1_1DeleteBandwidthRateLimitCommand = function (out
|
|
|
2100
2120
|
});
|
|
2101
2121
|
}); };
|
|
2102
2122
|
var deserializeAws_json1_1DeleteBandwidthRateLimitCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2103
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2123
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2104
2124
|
var _c;
|
|
2105
2125
|
return __generator(this, function (_d) {
|
|
2106
2126
|
switch (_d.label) {
|
|
@@ -2110,7 +2130,6 @@ var deserializeAws_json1_1DeleteBandwidthRateLimitCommandError = function (outpu
|
|
|
2110
2130
|
return [4, parseBody(output.body, context)];
|
|
2111
2131
|
case 1:
|
|
2112
2132
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2113
|
-
errorCode = "UnknownError";
|
|
2114
2133
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2115
2134
|
_b = errorCode;
|
|
2116
2135
|
switch (_b) {
|
|
@@ -2126,10 +2145,12 @@ var deserializeAws_json1_1DeleteBandwidthRateLimitCommandError = function (outpu
|
|
|
2126
2145
|
case 5: throw _d.sent();
|
|
2127
2146
|
case 6:
|
|
2128
2147
|
parsedBody = parsedOutput.body;
|
|
2148
|
+
$metadata = deserializeMetadata(output);
|
|
2149
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2129
2150
|
response = new __BaseException({
|
|
2130
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2151
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2131
2152
|
$fault: "client",
|
|
2132
|
-
$metadata:
|
|
2153
|
+
$metadata: $metadata,
|
|
2133
2154
|
});
|
|
2134
2155
|
throw __decorateServiceException(response, parsedBody);
|
|
2135
2156
|
}
|
|
@@ -2154,7 +2175,7 @@ export var deserializeAws_json1_1DeleteChapCredentialsCommand = function (output
|
|
|
2154
2175
|
});
|
|
2155
2176
|
}); };
|
|
2156
2177
|
var deserializeAws_json1_1DeleteChapCredentialsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2157
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2178
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2158
2179
|
var _c;
|
|
2159
2180
|
return __generator(this, function (_d) {
|
|
2160
2181
|
switch (_d.label) {
|
|
@@ -2164,7 +2185,6 @@ var deserializeAws_json1_1DeleteChapCredentialsCommandError = function (output,
|
|
|
2164
2185
|
return [4, parseBody(output.body, context)];
|
|
2165
2186
|
case 1:
|
|
2166
2187
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2167
|
-
errorCode = "UnknownError";
|
|
2168
2188
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2169
2189
|
_b = errorCode;
|
|
2170
2190
|
switch (_b) {
|
|
@@ -2180,10 +2200,12 @@ var deserializeAws_json1_1DeleteChapCredentialsCommandError = function (output,
|
|
|
2180
2200
|
case 5: throw _d.sent();
|
|
2181
2201
|
case 6:
|
|
2182
2202
|
parsedBody = parsedOutput.body;
|
|
2203
|
+
$metadata = deserializeMetadata(output);
|
|
2204
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2183
2205
|
response = new __BaseException({
|
|
2184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2206
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2185
2207
|
$fault: "client",
|
|
2186
|
-
$metadata:
|
|
2208
|
+
$metadata: $metadata,
|
|
2187
2209
|
});
|
|
2188
2210
|
throw __decorateServiceException(response, parsedBody);
|
|
2189
2211
|
}
|
|
@@ -2208,7 +2230,7 @@ export var deserializeAws_json1_1DeleteFileShareCommand = function (output, cont
|
|
|
2208
2230
|
});
|
|
2209
2231
|
}); };
|
|
2210
2232
|
var deserializeAws_json1_1DeleteFileShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2211
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2233
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2212
2234
|
var _c;
|
|
2213
2235
|
return __generator(this, function (_d) {
|
|
2214
2236
|
switch (_d.label) {
|
|
@@ -2218,7 +2240,6 @@ var deserializeAws_json1_1DeleteFileShareCommandError = function (output, contex
|
|
|
2218
2240
|
return [4, parseBody(output.body, context)];
|
|
2219
2241
|
case 1:
|
|
2220
2242
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2221
|
-
errorCode = "UnknownError";
|
|
2222
2243
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
2244
|
_b = errorCode;
|
|
2224
2245
|
switch (_b) {
|
|
@@ -2234,10 +2255,12 @@ var deserializeAws_json1_1DeleteFileShareCommandError = function (output, contex
|
|
|
2234
2255
|
case 5: throw _d.sent();
|
|
2235
2256
|
case 6:
|
|
2236
2257
|
parsedBody = parsedOutput.body;
|
|
2258
|
+
$metadata = deserializeMetadata(output);
|
|
2259
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2237
2260
|
response = new __BaseException({
|
|
2238
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2261
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2239
2262
|
$fault: "client",
|
|
2240
|
-
$metadata:
|
|
2263
|
+
$metadata: $metadata,
|
|
2241
2264
|
});
|
|
2242
2265
|
throw __decorateServiceException(response, parsedBody);
|
|
2243
2266
|
}
|
|
@@ -2262,7 +2285,7 @@ export var deserializeAws_json1_1DeleteGatewayCommand = function (output, contex
|
|
|
2262
2285
|
});
|
|
2263
2286
|
}); };
|
|
2264
2287
|
var deserializeAws_json1_1DeleteGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2265
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2288
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2266
2289
|
var _c;
|
|
2267
2290
|
return __generator(this, function (_d) {
|
|
2268
2291
|
switch (_d.label) {
|
|
@@ -2272,7 +2295,6 @@ var deserializeAws_json1_1DeleteGatewayCommandError = function (output, context)
|
|
|
2272
2295
|
return [4, parseBody(output.body, context)];
|
|
2273
2296
|
case 1:
|
|
2274
2297
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2275
|
-
errorCode = "UnknownError";
|
|
2276
2298
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
2299
|
_b = errorCode;
|
|
2278
2300
|
switch (_b) {
|
|
@@ -2288,10 +2310,12 @@ var deserializeAws_json1_1DeleteGatewayCommandError = function (output, context)
|
|
|
2288
2310
|
case 5: throw _d.sent();
|
|
2289
2311
|
case 6:
|
|
2290
2312
|
parsedBody = parsedOutput.body;
|
|
2313
|
+
$metadata = deserializeMetadata(output);
|
|
2314
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2291
2315
|
response = new __BaseException({
|
|
2292
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2316
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2293
2317
|
$fault: "client",
|
|
2294
|
-
$metadata:
|
|
2318
|
+
$metadata: $metadata,
|
|
2295
2319
|
});
|
|
2296
2320
|
throw __decorateServiceException(response, parsedBody);
|
|
2297
2321
|
}
|
|
@@ -2316,7 +2340,7 @@ export var deserializeAws_json1_1DeleteSnapshotScheduleCommand = function (outpu
|
|
|
2316
2340
|
});
|
|
2317
2341
|
}); };
|
|
2318
2342
|
var deserializeAws_json1_1DeleteSnapshotScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2319
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2343
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2320
2344
|
var _c;
|
|
2321
2345
|
return __generator(this, function (_d) {
|
|
2322
2346
|
switch (_d.label) {
|
|
@@ -2326,7 +2350,6 @@ var deserializeAws_json1_1DeleteSnapshotScheduleCommandError = function (output,
|
|
|
2326
2350
|
return [4, parseBody(output.body, context)];
|
|
2327
2351
|
case 1:
|
|
2328
2352
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2329
|
-
errorCode = "UnknownError";
|
|
2330
2353
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2331
2354
|
_b = errorCode;
|
|
2332
2355
|
switch (_b) {
|
|
@@ -2342,10 +2365,12 @@ var deserializeAws_json1_1DeleteSnapshotScheduleCommandError = function (output,
|
|
|
2342
2365
|
case 5: throw _d.sent();
|
|
2343
2366
|
case 6:
|
|
2344
2367
|
parsedBody = parsedOutput.body;
|
|
2368
|
+
$metadata = deserializeMetadata(output);
|
|
2369
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2345
2370
|
response = new __BaseException({
|
|
2346
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2347
2372
|
$fault: "client",
|
|
2348
|
-
$metadata:
|
|
2373
|
+
$metadata: $metadata,
|
|
2349
2374
|
});
|
|
2350
2375
|
throw __decorateServiceException(response, parsedBody);
|
|
2351
2376
|
}
|
|
@@ -2370,7 +2395,7 @@ export var deserializeAws_json1_1DeleteTapeCommand = function (output, context)
|
|
|
2370
2395
|
});
|
|
2371
2396
|
}); };
|
|
2372
2397
|
var deserializeAws_json1_1DeleteTapeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2373
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2398
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2374
2399
|
var _c;
|
|
2375
2400
|
return __generator(this, function (_d) {
|
|
2376
2401
|
switch (_d.label) {
|
|
@@ -2380,7 +2405,6 @@ var deserializeAws_json1_1DeleteTapeCommandError = function (output, context) {
|
|
|
2380
2405
|
return [4, parseBody(output.body, context)];
|
|
2381
2406
|
case 1:
|
|
2382
2407
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2383
|
-
errorCode = "UnknownError";
|
|
2384
2408
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2385
2409
|
_b = errorCode;
|
|
2386
2410
|
switch (_b) {
|
|
@@ -2396,10 +2420,12 @@ var deserializeAws_json1_1DeleteTapeCommandError = function (output, context) {
|
|
|
2396
2420
|
case 5: throw _d.sent();
|
|
2397
2421
|
case 6:
|
|
2398
2422
|
parsedBody = parsedOutput.body;
|
|
2423
|
+
$metadata = deserializeMetadata(output);
|
|
2424
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2399
2425
|
response = new __BaseException({
|
|
2400
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2426
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2401
2427
|
$fault: "client",
|
|
2402
|
-
$metadata:
|
|
2428
|
+
$metadata: $metadata,
|
|
2403
2429
|
});
|
|
2404
2430
|
throw __decorateServiceException(response, parsedBody);
|
|
2405
2431
|
}
|
|
@@ -2424,7 +2450,7 @@ export var deserializeAws_json1_1DeleteTapeArchiveCommand = function (output, co
|
|
|
2424
2450
|
});
|
|
2425
2451
|
}); };
|
|
2426
2452
|
var deserializeAws_json1_1DeleteTapeArchiveCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2427
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2453
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2428
2454
|
var _c;
|
|
2429
2455
|
return __generator(this, function (_d) {
|
|
2430
2456
|
switch (_d.label) {
|
|
@@ -2434,7 +2460,6 @@ var deserializeAws_json1_1DeleteTapeArchiveCommandError = function (output, cont
|
|
|
2434
2460
|
return [4, parseBody(output.body, context)];
|
|
2435
2461
|
case 1:
|
|
2436
2462
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2437
|
-
errorCode = "UnknownError";
|
|
2438
2463
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2439
2464
|
_b = errorCode;
|
|
2440
2465
|
switch (_b) {
|
|
@@ -2450,10 +2475,12 @@ var deserializeAws_json1_1DeleteTapeArchiveCommandError = function (output, cont
|
|
|
2450
2475
|
case 5: throw _d.sent();
|
|
2451
2476
|
case 6:
|
|
2452
2477
|
parsedBody = parsedOutput.body;
|
|
2478
|
+
$metadata = deserializeMetadata(output);
|
|
2479
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2453
2480
|
response = new __BaseException({
|
|
2454
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2481
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2455
2482
|
$fault: "client",
|
|
2456
|
-
$metadata:
|
|
2483
|
+
$metadata: $metadata,
|
|
2457
2484
|
});
|
|
2458
2485
|
throw __decorateServiceException(response, parsedBody);
|
|
2459
2486
|
}
|
|
@@ -2478,7 +2505,7 @@ export var deserializeAws_json1_1DeleteTapePoolCommand = function (output, conte
|
|
|
2478
2505
|
});
|
|
2479
2506
|
}); };
|
|
2480
2507
|
var deserializeAws_json1_1DeleteTapePoolCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2481
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2508
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2482
2509
|
var _c;
|
|
2483
2510
|
return __generator(this, function (_d) {
|
|
2484
2511
|
switch (_d.label) {
|
|
@@ -2488,7 +2515,6 @@ var deserializeAws_json1_1DeleteTapePoolCommandError = function (output, context
|
|
|
2488
2515
|
return [4, parseBody(output.body, context)];
|
|
2489
2516
|
case 1:
|
|
2490
2517
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2491
|
-
errorCode = "UnknownError";
|
|
2492
2518
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2493
2519
|
_b = errorCode;
|
|
2494
2520
|
switch (_b) {
|
|
@@ -2504,10 +2530,12 @@ var deserializeAws_json1_1DeleteTapePoolCommandError = function (output, context
|
|
|
2504
2530
|
case 5: throw _d.sent();
|
|
2505
2531
|
case 6:
|
|
2506
2532
|
parsedBody = parsedOutput.body;
|
|
2533
|
+
$metadata = deserializeMetadata(output);
|
|
2534
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2507
2535
|
response = new __BaseException({
|
|
2508
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2536
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2509
2537
|
$fault: "client",
|
|
2510
|
-
$metadata:
|
|
2538
|
+
$metadata: $metadata,
|
|
2511
2539
|
});
|
|
2512
2540
|
throw __decorateServiceException(response, parsedBody);
|
|
2513
2541
|
}
|
|
@@ -2532,7 +2560,7 @@ export var deserializeAws_json1_1DeleteVolumeCommand = function (output, context
|
|
|
2532
2560
|
});
|
|
2533
2561
|
}); };
|
|
2534
2562
|
var deserializeAws_json1_1DeleteVolumeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2535
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2563
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2536
2564
|
var _c;
|
|
2537
2565
|
return __generator(this, function (_d) {
|
|
2538
2566
|
switch (_d.label) {
|
|
@@ -2542,7 +2570,6 @@ var deserializeAws_json1_1DeleteVolumeCommandError = function (output, context)
|
|
|
2542
2570
|
return [4, parseBody(output.body, context)];
|
|
2543
2571
|
case 1:
|
|
2544
2572
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2545
|
-
errorCode = "UnknownError";
|
|
2546
2573
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2547
2574
|
_b = errorCode;
|
|
2548
2575
|
switch (_b) {
|
|
@@ -2558,10 +2585,12 @@ var deserializeAws_json1_1DeleteVolumeCommandError = function (output, context)
|
|
|
2558
2585
|
case 5: throw _d.sent();
|
|
2559
2586
|
case 6:
|
|
2560
2587
|
parsedBody = parsedOutput.body;
|
|
2588
|
+
$metadata = deserializeMetadata(output);
|
|
2589
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2561
2590
|
response = new __BaseException({
|
|
2562
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2591
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2563
2592
|
$fault: "client",
|
|
2564
|
-
$metadata:
|
|
2593
|
+
$metadata: $metadata,
|
|
2565
2594
|
});
|
|
2566
2595
|
throw __decorateServiceException(response, parsedBody);
|
|
2567
2596
|
}
|
|
@@ -2586,7 +2615,7 @@ export var deserializeAws_json1_1DescribeAvailabilityMonitorTestCommand = functi
|
|
|
2586
2615
|
});
|
|
2587
2616
|
}); };
|
|
2588
2617
|
var deserializeAws_json1_1DescribeAvailabilityMonitorTestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2589
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2618
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2590
2619
|
var _c;
|
|
2591
2620
|
return __generator(this, function (_d) {
|
|
2592
2621
|
switch (_d.label) {
|
|
@@ -2596,7 +2625,6 @@ var deserializeAws_json1_1DescribeAvailabilityMonitorTestCommandError = function
|
|
|
2596
2625
|
return [4, parseBody(output.body, context)];
|
|
2597
2626
|
case 1:
|
|
2598
2627
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2599
|
-
errorCode = "UnknownError";
|
|
2600
2628
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2601
2629
|
_b = errorCode;
|
|
2602
2630
|
switch (_b) {
|
|
@@ -2612,10 +2640,12 @@ var deserializeAws_json1_1DescribeAvailabilityMonitorTestCommandError = function
|
|
|
2612
2640
|
case 5: throw _d.sent();
|
|
2613
2641
|
case 6:
|
|
2614
2642
|
parsedBody = parsedOutput.body;
|
|
2643
|
+
$metadata = deserializeMetadata(output);
|
|
2644
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2615
2645
|
response = new __BaseException({
|
|
2616
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2617
2647
|
$fault: "client",
|
|
2618
|
-
$metadata:
|
|
2648
|
+
$metadata: $metadata,
|
|
2619
2649
|
});
|
|
2620
2650
|
throw __decorateServiceException(response, parsedBody);
|
|
2621
2651
|
}
|
|
@@ -2640,7 +2670,7 @@ export var deserializeAws_json1_1DescribeBandwidthRateLimitCommand = function (o
|
|
|
2640
2670
|
});
|
|
2641
2671
|
}); };
|
|
2642
2672
|
var deserializeAws_json1_1DescribeBandwidthRateLimitCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2643
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2673
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2644
2674
|
var _c;
|
|
2645
2675
|
return __generator(this, function (_d) {
|
|
2646
2676
|
switch (_d.label) {
|
|
@@ -2650,7 +2680,6 @@ var deserializeAws_json1_1DescribeBandwidthRateLimitCommandError = function (out
|
|
|
2650
2680
|
return [4, parseBody(output.body, context)];
|
|
2651
2681
|
case 1:
|
|
2652
2682
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2653
|
-
errorCode = "UnknownError";
|
|
2654
2683
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2655
2684
|
_b = errorCode;
|
|
2656
2685
|
switch (_b) {
|
|
@@ -2666,10 +2695,12 @@ var deserializeAws_json1_1DescribeBandwidthRateLimitCommandError = function (out
|
|
|
2666
2695
|
case 5: throw _d.sent();
|
|
2667
2696
|
case 6:
|
|
2668
2697
|
parsedBody = parsedOutput.body;
|
|
2698
|
+
$metadata = deserializeMetadata(output);
|
|
2699
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2669
2700
|
response = new __BaseException({
|
|
2670
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2701
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2671
2702
|
$fault: "client",
|
|
2672
|
-
$metadata:
|
|
2703
|
+
$metadata: $metadata,
|
|
2673
2704
|
});
|
|
2674
2705
|
throw __decorateServiceException(response, parsedBody);
|
|
2675
2706
|
}
|
|
@@ -2694,7 +2725,7 @@ export var deserializeAws_json1_1DescribeBandwidthRateLimitScheduleCommand = fun
|
|
|
2694
2725
|
});
|
|
2695
2726
|
}); };
|
|
2696
2727
|
var deserializeAws_json1_1DescribeBandwidthRateLimitScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2697
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2728
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2698
2729
|
var _c;
|
|
2699
2730
|
return __generator(this, function (_d) {
|
|
2700
2731
|
switch (_d.label) {
|
|
@@ -2704,7 +2735,6 @@ var deserializeAws_json1_1DescribeBandwidthRateLimitScheduleCommandError = funct
|
|
|
2704
2735
|
return [4, parseBody(output.body, context)];
|
|
2705
2736
|
case 1:
|
|
2706
2737
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2707
|
-
errorCode = "UnknownError";
|
|
2708
2738
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2709
2739
|
_b = errorCode;
|
|
2710
2740
|
switch (_b) {
|
|
@@ -2720,10 +2750,12 @@ var deserializeAws_json1_1DescribeBandwidthRateLimitScheduleCommandError = funct
|
|
|
2720
2750
|
case 5: throw _d.sent();
|
|
2721
2751
|
case 6:
|
|
2722
2752
|
parsedBody = parsedOutput.body;
|
|
2753
|
+
$metadata = deserializeMetadata(output);
|
|
2754
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2723
2755
|
response = new __BaseException({
|
|
2724
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2756
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2725
2757
|
$fault: "client",
|
|
2726
|
-
$metadata:
|
|
2758
|
+
$metadata: $metadata,
|
|
2727
2759
|
});
|
|
2728
2760
|
throw __decorateServiceException(response, parsedBody);
|
|
2729
2761
|
}
|
|
@@ -2748,7 +2780,7 @@ export var deserializeAws_json1_1DescribeCacheCommand = function (output, contex
|
|
|
2748
2780
|
});
|
|
2749
2781
|
}); };
|
|
2750
2782
|
var deserializeAws_json1_1DescribeCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2751
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2783
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2752
2784
|
var _c;
|
|
2753
2785
|
return __generator(this, function (_d) {
|
|
2754
2786
|
switch (_d.label) {
|
|
@@ -2758,7 +2790,6 @@ var deserializeAws_json1_1DescribeCacheCommandError = function (output, context)
|
|
|
2758
2790
|
return [4, parseBody(output.body, context)];
|
|
2759
2791
|
case 1:
|
|
2760
2792
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2761
|
-
errorCode = "UnknownError";
|
|
2762
2793
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2763
2794
|
_b = errorCode;
|
|
2764
2795
|
switch (_b) {
|
|
@@ -2774,10 +2805,12 @@ var deserializeAws_json1_1DescribeCacheCommandError = function (output, context)
|
|
|
2774
2805
|
case 5: throw _d.sent();
|
|
2775
2806
|
case 6:
|
|
2776
2807
|
parsedBody = parsedOutput.body;
|
|
2808
|
+
$metadata = deserializeMetadata(output);
|
|
2809
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2777
2810
|
response = new __BaseException({
|
|
2778
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2811
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2779
2812
|
$fault: "client",
|
|
2780
|
-
$metadata:
|
|
2813
|
+
$metadata: $metadata,
|
|
2781
2814
|
});
|
|
2782
2815
|
throw __decorateServiceException(response, parsedBody);
|
|
2783
2816
|
}
|
|
@@ -2802,7 +2835,7 @@ export var deserializeAws_json1_1DescribeCachediSCSIVolumesCommand = function (o
|
|
|
2802
2835
|
});
|
|
2803
2836
|
}); };
|
|
2804
2837
|
var deserializeAws_json1_1DescribeCachediSCSIVolumesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2805
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2838
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2806
2839
|
var _c;
|
|
2807
2840
|
return __generator(this, function (_d) {
|
|
2808
2841
|
switch (_d.label) {
|
|
@@ -2812,7 +2845,6 @@ var deserializeAws_json1_1DescribeCachediSCSIVolumesCommandError = function (out
|
|
|
2812
2845
|
return [4, parseBody(output.body, context)];
|
|
2813
2846
|
case 1:
|
|
2814
2847
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2815
|
-
errorCode = "UnknownError";
|
|
2816
2848
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2817
2849
|
_b = errorCode;
|
|
2818
2850
|
switch (_b) {
|
|
@@ -2828,10 +2860,12 @@ var deserializeAws_json1_1DescribeCachediSCSIVolumesCommandError = function (out
|
|
|
2828
2860
|
case 5: throw _d.sent();
|
|
2829
2861
|
case 6:
|
|
2830
2862
|
parsedBody = parsedOutput.body;
|
|
2863
|
+
$metadata = deserializeMetadata(output);
|
|
2864
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2831
2865
|
response = new __BaseException({
|
|
2832
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2866
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2833
2867
|
$fault: "client",
|
|
2834
|
-
$metadata:
|
|
2868
|
+
$metadata: $metadata,
|
|
2835
2869
|
});
|
|
2836
2870
|
throw __decorateServiceException(response, parsedBody);
|
|
2837
2871
|
}
|
|
@@ -2856,7 +2890,7 @@ export var deserializeAws_json1_1DescribeChapCredentialsCommand = function (outp
|
|
|
2856
2890
|
});
|
|
2857
2891
|
}); };
|
|
2858
2892
|
var deserializeAws_json1_1DescribeChapCredentialsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2859
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2893
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2860
2894
|
var _c;
|
|
2861
2895
|
return __generator(this, function (_d) {
|
|
2862
2896
|
switch (_d.label) {
|
|
@@ -2866,7 +2900,6 @@ var deserializeAws_json1_1DescribeChapCredentialsCommandError = function (output
|
|
|
2866
2900
|
return [4, parseBody(output.body, context)];
|
|
2867
2901
|
case 1:
|
|
2868
2902
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2869
|
-
errorCode = "UnknownError";
|
|
2870
2903
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2871
2904
|
_b = errorCode;
|
|
2872
2905
|
switch (_b) {
|
|
@@ -2882,10 +2915,12 @@ var deserializeAws_json1_1DescribeChapCredentialsCommandError = function (output
|
|
|
2882
2915
|
case 5: throw _d.sent();
|
|
2883
2916
|
case 6:
|
|
2884
2917
|
parsedBody = parsedOutput.body;
|
|
2918
|
+
$metadata = deserializeMetadata(output);
|
|
2919
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2885
2920
|
response = new __BaseException({
|
|
2886
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2921
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2887
2922
|
$fault: "client",
|
|
2888
|
-
$metadata:
|
|
2923
|
+
$metadata: $metadata,
|
|
2889
2924
|
});
|
|
2890
2925
|
throw __decorateServiceException(response, parsedBody);
|
|
2891
2926
|
}
|
|
@@ -2910,7 +2945,7 @@ export var deserializeAws_json1_1DescribeFileSystemAssociationsCommand = functio
|
|
|
2910
2945
|
});
|
|
2911
2946
|
}); };
|
|
2912
2947
|
var deserializeAws_json1_1DescribeFileSystemAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2913
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2948
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2914
2949
|
var _c;
|
|
2915
2950
|
return __generator(this, function (_d) {
|
|
2916
2951
|
switch (_d.label) {
|
|
@@ -2920,7 +2955,6 @@ var deserializeAws_json1_1DescribeFileSystemAssociationsCommandError = function
|
|
|
2920
2955
|
return [4, parseBody(output.body, context)];
|
|
2921
2956
|
case 1:
|
|
2922
2957
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2923
|
-
errorCode = "UnknownError";
|
|
2924
2958
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
2959
|
_b = errorCode;
|
|
2926
2960
|
switch (_b) {
|
|
@@ -2936,10 +2970,12 @@ var deserializeAws_json1_1DescribeFileSystemAssociationsCommandError = function
|
|
|
2936
2970
|
case 5: throw _d.sent();
|
|
2937
2971
|
case 6:
|
|
2938
2972
|
parsedBody = parsedOutput.body;
|
|
2973
|
+
$metadata = deserializeMetadata(output);
|
|
2974
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2939
2975
|
response = new __BaseException({
|
|
2940
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2976
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2941
2977
|
$fault: "client",
|
|
2942
|
-
$metadata:
|
|
2978
|
+
$metadata: $metadata,
|
|
2943
2979
|
});
|
|
2944
2980
|
throw __decorateServiceException(response, parsedBody);
|
|
2945
2981
|
}
|
|
@@ -2964,7 +3000,7 @@ export var deserializeAws_json1_1DescribeGatewayInformationCommand = function (o
|
|
|
2964
3000
|
});
|
|
2965
3001
|
}); };
|
|
2966
3002
|
var deserializeAws_json1_1DescribeGatewayInformationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2967
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3003
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2968
3004
|
var _c;
|
|
2969
3005
|
return __generator(this, function (_d) {
|
|
2970
3006
|
switch (_d.label) {
|
|
@@ -2974,7 +3010,6 @@ var deserializeAws_json1_1DescribeGatewayInformationCommandError = function (out
|
|
|
2974
3010
|
return [4, parseBody(output.body, context)];
|
|
2975
3011
|
case 1:
|
|
2976
3012
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2977
|
-
errorCode = "UnknownError";
|
|
2978
3013
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2979
3014
|
_b = errorCode;
|
|
2980
3015
|
switch (_b) {
|
|
@@ -2990,10 +3025,12 @@ var deserializeAws_json1_1DescribeGatewayInformationCommandError = function (out
|
|
|
2990
3025
|
case 5: throw _d.sent();
|
|
2991
3026
|
case 6:
|
|
2992
3027
|
parsedBody = parsedOutput.body;
|
|
3028
|
+
$metadata = deserializeMetadata(output);
|
|
3029
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2993
3030
|
response = new __BaseException({
|
|
2994
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3031
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2995
3032
|
$fault: "client",
|
|
2996
|
-
$metadata:
|
|
3033
|
+
$metadata: $metadata,
|
|
2997
3034
|
});
|
|
2998
3035
|
throw __decorateServiceException(response, parsedBody);
|
|
2999
3036
|
}
|
|
@@ -3018,7 +3055,7 @@ export var deserializeAws_json1_1DescribeMaintenanceStartTimeCommand = function
|
|
|
3018
3055
|
});
|
|
3019
3056
|
}); };
|
|
3020
3057
|
var deserializeAws_json1_1DescribeMaintenanceStartTimeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3021
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3058
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3022
3059
|
var _c;
|
|
3023
3060
|
return __generator(this, function (_d) {
|
|
3024
3061
|
switch (_d.label) {
|
|
@@ -3028,7 +3065,6 @@ var deserializeAws_json1_1DescribeMaintenanceStartTimeCommandError = function (o
|
|
|
3028
3065
|
return [4, parseBody(output.body, context)];
|
|
3029
3066
|
case 1:
|
|
3030
3067
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3031
|
-
errorCode = "UnknownError";
|
|
3032
3068
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3033
3069
|
_b = errorCode;
|
|
3034
3070
|
switch (_b) {
|
|
@@ -3044,10 +3080,12 @@ var deserializeAws_json1_1DescribeMaintenanceStartTimeCommandError = function (o
|
|
|
3044
3080
|
case 5: throw _d.sent();
|
|
3045
3081
|
case 6:
|
|
3046
3082
|
parsedBody = parsedOutput.body;
|
|
3083
|
+
$metadata = deserializeMetadata(output);
|
|
3084
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3047
3085
|
response = new __BaseException({
|
|
3048
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3086
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3049
3087
|
$fault: "client",
|
|
3050
|
-
$metadata:
|
|
3088
|
+
$metadata: $metadata,
|
|
3051
3089
|
});
|
|
3052
3090
|
throw __decorateServiceException(response, parsedBody);
|
|
3053
3091
|
}
|
|
@@ -3072,7 +3110,7 @@ export var deserializeAws_json1_1DescribeNFSFileSharesCommand = function (output
|
|
|
3072
3110
|
});
|
|
3073
3111
|
}); };
|
|
3074
3112
|
var deserializeAws_json1_1DescribeNFSFileSharesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3075
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3113
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3076
3114
|
var _c;
|
|
3077
3115
|
return __generator(this, function (_d) {
|
|
3078
3116
|
switch (_d.label) {
|
|
@@ -3082,7 +3120,6 @@ var deserializeAws_json1_1DescribeNFSFileSharesCommandError = function (output,
|
|
|
3082
3120
|
return [4, parseBody(output.body, context)];
|
|
3083
3121
|
case 1:
|
|
3084
3122
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3085
|
-
errorCode = "UnknownError";
|
|
3086
3123
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3087
3124
|
_b = errorCode;
|
|
3088
3125
|
switch (_b) {
|
|
@@ -3098,10 +3135,12 @@ var deserializeAws_json1_1DescribeNFSFileSharesCommandError = function (output,
|
|
|
3098
3135
|
case 5: throw _d.sent();
|
|
3099
3136
|
case 6:
|
|
3100
3137
|
parsedBody = parsedOutput.body;
|
|
3138
|
+
$metadata = deserializeMetadata(output);
|
|
3139
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3101
3140
|
response = new __BaseException({
|
|
3102
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3141
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3103
3142
|
$fault: "client",
|
|
3104
|
-
$metadata:
|
|
3143
|
+
$metadata: $metadata,
|
|
3105
3144
|
});
|
|
3106
3145
|
throw __decorateServiceException(response, parsedBody);
|
|
3107
3146
|
}
|
|
@@ -3126,7 +3165,7 @@ export var deserializeAws_json1_1DescribeSMBFileSharesCommand = function (output
|
|
|
3126
3165
|
});
|
|
3127
3166
|
}); };
|
|
3128
3167
|
var deserializeAws_json1_1DescribeSMBFileSharesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3129
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3168
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3130
3169
|
var _c;
|
|
3131
3170
|
return __generator(this, function (_d) {
|
|
3132
3171
|
switch (_d.label) {
|
|
@@ -3136,7 +3175,6 @@ var deserializeAws_json1_1DescribeSMBFileSharesCommandError = function (output,
|
|
|
3136
3175
|
return [4, parseBody(output.body, context)];
|
|
3137
3176
|
case 1:
|
|
3138
3177
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3139
|
-
errorCode = "UnknownError";
|
|
3140
3178
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3141
3179
|
_b = errorCode;
|
|
3142
3180
|
switch (_b) {
|
|
@@ -3152,10 +3190,12 @@ var deserializeAws_json1_1DescribeSMBFileSharesCommandError = function (output,
|
|
|
3152
3190
|
case 5: throw _d.sent();
|
|
3153
3191
|
case 6:
|
|
3154
3192
|
parsedBody = parsedOutput.body;
|
|
3193
|
+
$metadata = deserializeMetadata(output);
|
|
3194
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3155
3195
|
response = new __BaseException({
|
|
3156
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3196
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3157
3197
|
$fault: "client",
|
|
3158
|
-
$metadata:
|
|
3198
|
+
$metadata: $metadata,
|
|
3159
3199
|
});
|
|
3160
3200
|
throw __decorateServiceException(response, parsedBody);
|
|
3161
3201
|
}
|
|
@@ -3180,7 +3220,7 @@ export var deserializeAws_json1_1DescribeSMBSettingsCommand = function (output,
|
|
|
3180
3220
|
});
|
|
3181
3221
|
}); };
|
|
3182
3222
|
var deserializeAws_json1_1DescribeSMBSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3183
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3223
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3184
3224
|
var _c;
|
|
3185
3225
|
return __generator(this, function (_d) {
|
|
3186
3226
|
switch (_d.label) {
|
|
@@ -3190,7 +3230,6 @@ var deserializeAws_json1_1DescribeSMBSettingsCommandError = function (output, co
|
|
|
3190
3230
|
return [4, parseBody(output.body, context)];
|
|
3191
3231
|
case 1:
|
|
3192
3232
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3193
|
-
errorCode = "UnknownError";
|
|
3194
3233
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3195
3234
|
_b = errorCode;
|
|
3196
3235
|
switch (_b) {
|
|
@@ -3206,10 +3245,12 @@ var deserializeAws_json1_1DescribeSMBSettingsCommandError = function (output, co
|
|
|
3206
3245
|
case 5: throw _d.sent();
|
|
3207
3246
|
case 6:
|
|
3208
3247
|
parsedBody = parsedOutput.body;
|
|
3248
|
+
$metadata = deserializeMetadata(output);
|
|
3249
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3209
3250
|
response = new __BaseException({
|
|
3210
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3251
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3211
3252
|
$fault: "client",
|
|
3212
|
-
$metadata:
|
|
3253
|
+
$metadata: $metadata,
|
|
3213
3254
|
});
|
|
3214
3255
|
throw __decorateServiceException(response, parsedBody);
|
|
3215
3256
|
}
|
|
@@ -3234,7 +3275,7 @@ export var deserializeAws_json1_1DescribeSnapshotScheduleCommand = function (out
|
|
|
3234
3275
|
});
|
|
3235
3276
|
}); };
|
|
3236
3277
|
var deserializeAws_json1_1DescribeSnapshotScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3237
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3278
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3238
3279
|
var _c;
|
|
3239
3280
|
return __generator(this, function (_d) {
|
|
3240
3281
|
switch (_d.label) {
|
|
@@ -3244,7 +3285,6 @@ var deserializeAws_json1_1DescribeSnapshotScheduleCommandError = function (outpu
|
|
|
3244
3285
|
return [4, parseBody(output.body, context)];
|
|
3245
3286
|
case 1:
|
|
3246
3287
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3247
|
-
errorCode = "UnknownError";
|
|
3248
3288
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3249
3289
|
_b = errorCode;
|
|
3250
3290
|
switch (_b) {
|
|
@@ -3260,10 +3300,12 @@ var deserializeAws_json1_1DescribeSnapshotScheduleCommandError = function (outpu
|
|
|
3260
3300
|
case 5: throw _d.sent();
|
|
3261
3301
|
case 6:
|
|
3262
3302
|
parsedBody = parsedOutput.body;
|
|
3303
|
+
$metadata = deserializeMetadata(output);
|
|
3304
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3263
3305
|
response = new __BaseException({
|
|
3264
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3306
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3265
3307
|
$fault: "client",
|
|
3266
|
-
$metadata:
|
|
3308
|
+
$metadata: $metadata,
|
|
3267
3309
|
});
|
|
3268
3310
|
throw __decorateServiceException(response, parsedBody);
|
|
3269
3311
|
}
|
|
@@ -3288,7 +3330,7 @@ export var deserializeAws_json1_1DescribeStorediSCSIVolumesCommand = function (o
|
|
|
3288
3330
|
});
|
|
3289
3331
|
}); };
|
|
3290
3332
|
var deserializeAws_json1_1DescribeStorediSCSIVolumesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3291
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3333
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3292
3334
|
var _c;
|
|
3293
3335
|
return __generator(this, function (_d) {
|
|
3294
3336
|
switch (_d.label) {
|
|
@@ -3298,7 +3340,6 @@ var deserializeAws_json1_1DescribeStorediSCSIVolumesCommandError = function (out
|
|
|
3298
3340
|
return [4, parseBody(output.body, context)];
|
|
3299
3341
|
case 1:
|
|
3300
3342
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3301
|
-
errorCode = "UnknownError";
|
|
3302
3343
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3303
3344
|
_b = errorCode;
|
|
3304
3345
|
switch (_b) {
|
|
@@ -3314,10 +3355,12 @@ var deserializeAws_json1_1DescribeStorediSCSIVolumesCommandError = function (out
|
|
|
3314
3355
|
case 5: throw _d.sent();
|
|
3315
3356
|
case 6:
|
|
3316
3357
|
parsedBody = parsedOutput.body;
|
|
3358
|
+
$metadata = deserializeMetadata(output);
|
|
3359
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3317
3360
|
response = new __BaseException({
|
|
3318
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3361
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3319
3362
|
$fault: "client",
|
|
3320
|
-
$metadata:
|
|
3363
|
+
$metadata: $metadata,
|
|
3321
3364
|
});
|
|
3322
3365
|
throw __decorateServiceException(response, parsedBody);
|
|
3323
3366
|
}
|
|
@@ -3342,7 +3385,7 @@ export var deserializeAws_json1_1DescribeTapeArchivesCommand = function (output,
|
|
|
3342
3385
|
});
|
|
3343
3386
|
}); };
|
|
3344
3387
|
var deserializeAws_json1_1DescribeTapeArchivesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3345
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3388
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3346
3389
|
var _c;
|
|
3347
3390
|
return __generator(this, function (_d) {
|
|
3348
3391
|
switch (_d.label) {
|
|
@@ -3352,7 +3395,6 @@ var deserializeAws_json1_1DescribeTapeArchivesCommandError = function (output, c
|
|
|
3352
3395
|
return [4, parseBody(output.body, context)];
|
|
3353
3396
|
case 1:
|
|
3354
3397
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3355
|
-
errorCode = "UnknownError";
|
|
3356
3398
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3357
3399
|
_b = errorCode;
|
|
3358
3400
|
switch (_b) {
|
|
@@ -3368,10 +3410,12 @@ var deserializeAws_json1_1DescribeTapeArchivesCommandError = function (output, c
|
|
|
3368
3410
|
case 5: throw _d.sent();
|
|
3369
3411
|
case 6:
|
|
3370
3412
|
parsedBody = parsedOutput.body;
|
|
3413
|
+
$metadata = deserializeMetadata(output);
|
|
3414
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3371
3415
|
response = new __BaseException({
|
|
3372
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3416
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3373
3417
|
$fault: "client",
|
|
3374
|
-
$metadata:
|
|
3418
|
+
$metadata: $metadata,
|
|
3375
3419
|
});
|
|
3376
3420
|
throw __decorateServiceException(response, parsedBody);
|
|
3377
3421
|
}
|
|
@@ -3396,7 +3440,7 @@ export var deserializeAws_json1_1DescribeTapeRecoveryPointsCommand = function (o
|
|
|
3396
3440
|
});
|
|
3397
3441
|
}); };
|
|
3398
3442
|
var deserializeAws_json1_1DescribeTapeRecoveryPointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3399
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3443
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3400
3444
|
var _c;
|
|
3401
3445
|
return __generator(this, function (_d) {
|
|
3402
3446
|
switch (_d.label) {
|
|
@@ -3406,7 +3450,6 @@ var deserializeAws_json1_1DescribeTapeRecoveryPointsCommandError = function (out
|
|
|
3406
3450
|
return [4, parseBody(output.body, context)];
|
|
3407
3451
|
case 1:
|
|
3408
3452
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3409
|
-
errorCode = "UnknownError";
|
|
3410
3453
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3411
3454
|
_b = errorCode;
|
|
3412
3455
|
switch (_b) {
|
|
@@ -3422,10 +3465,12 @@ var deserializeAws_json1_1DescribeTapeRecoveryPointsCommandError = function (out
|
|
|
3422
3465
|
case 5: throw _d.sent();
|
|
3423
3466
|
case 6:
|
|
3424
3467
|
parsedBody = parsedOutput.body;
|
|
3468
|
+
$metadata = deserializeMetadata(output);
|
|
3469
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3425
3470
|
response = new __BaseException({
|
|
3426
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3471
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3427
3472
|
$fault: "client",
|
|
3428
|
-
$metadata:
|
|
3473
|
+
$metadata: $metadata,
|
|
3429
3474
|
});
|
|
3430
3475
|
throw __decorateServiceException(response, parsedBody);
|
|
3431
3476
|
}
|
|
@@ -3450,7 +3495,7 @@ export var deserializeAws_json1_1DescribeTapesCommand = function (output, contex
|
|
|
3450
3495
|
});
|
|
3451
3496
|
}); };
|
|
3452
3497
|
var deserializeAws_json1_1DescribeTapesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3453
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3498
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3454
3499
|
var _c;
|
|
3455
3500
|
return __generator(this, function (_d) {
|
|
3456
3501
|
switch (_d.label) {
|
|
@@ -3460,7 +3505,6 @@ var deserializeAws_json1_1DescribeTapesCommandError = function (output, context)
|
|
|
3460
3505
|
return [4, parseBody(output.body, context)];
|
|
3461
3506
|
case 1:
|
|
3462
3507
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3463
|
-
errorCode = "UnknownError";
|
|
3464
3508
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3465
3509
|
_b = errorCode;
|
|
3466
3510
|
switch (_b) {
|
|
@@ -3476,10 +3520,12 @@ var deserializeAws_json1_1DescribeTapesCommandError = function (output, context)
|
|
|
3476
3520
|
case 5: throw _d.sent();
|
|
3477
3521
|
case 6:
|
|
3478
3522
|
parsedBody = parsedOutput.body;
|
|
3523
|
+
$metadata = deserializeMetadata(output);
|
|
3524
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3479
3525
|
response = new __BaseException({
|
|
3480
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3526
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3481
3527
|
$fault: "client",
|
|
3482
|
-
$metadata:
|
|
3528
|
+
$metadata: $metadata,
|
|
3483
3529
|
});
|
|
3484
3530
|
throw __decorateServiceException(response, parsedBody);
|
|
3485
3531
|
}
|
|
@@ -3504,7 +3550,7 @@ export var deserializeAws_json1_1DescribeUploadBufferCommand = function (output,
|
|
|
3504
3550
|
});
|
|
3505
3551
|
}); };
|
|
3506
3552
|
var deserializeAws_json1_1DescribeUploadBufferCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3507
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3553
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3508
3554
|
var _c;
|
|
3509
3555
|
return __generator(this, function (_d) {
|
|
3510
3556
|
switch (_d.label) {
|
|
@@ -3514,7 +3560,6 @@ var deserializeAws_json1_1DescribeUploadBufferCommandError = function (output, c
|
|
|
3514
3560
|
return [4, parseBody(output.body, context)];
|
|
3515
3561
|
case 1:
|
|
3516
3562
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3517
|
-
errorCode = "UnknownError";
|
|
3518
3563
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3519
3564
|
_b = errorCode;
|
|
3520
3565
|
switch (_b) {
|
|
@@ -3530,10 +3575,12 @@ var deserializeAws_json1_1DescribeUploadBufferCommandError = function (output, c
|
|
|
3530
3575
|
case 5: throw _d.sent();
|
|
3531
3576
|
case 6:
|
|
3532
3577
|
parsedBody = parsedOutput.body;
|
|
3578
|
+
$metadata = deserializeMetadata(output);
|
|
3579
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3533
3580
|
response = new __BaseException({
|
|
3534
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3581
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3535
3582
|
$fault: "client",
|
|
3536
|
-
$metadata:
|
|
3583
|
+
$metadata: $metadata,
|
|
3537
3584
|
});
|
|
3538
3585
|
throw __decorateServiceException(response, parsedBody);
|
|
3539
3586
|
}
|
|
@@ -3558,7 +3605,7 @@ export var deserializeAws_json1_1DescribeVTLDevicesCommand = function (output, c
|
|
|
3558
3605
|
});
|
|
3559
3606
|
}); };
|
|
3560
3607
|
var deserializeAws_json1_1DescribeVTLDevicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3561
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3608
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3562
3609
|
var _c;
|
|
3563
3610
|
return __generator(this, function (_d) {
|
|
3564
3611
|
switch (_d.label) {
|
|
@@ -3568,7 +3615,6 @@ var deserializeAws_json1_1DescribeVTLDevicesCommandError = function (output, con
|
|
|
3568
3615
|
return [4, parseBody(output.body, context)];
|
|
3569
3616
|
case 1:
|
|
3570
3617
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3571
|
-
errorCode = "UnknownError";
|
|
3572
3618
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3573
3619
|
_b = errorCode;
|
|
3574
3620
|
switch (_b) {
|
|
@@ -3584,10 +3630,12 @@ var deserializeAws_json1_1DescribeVTLDevicesCommandError = function (output, con
|
|
|
3584
3630
|
case 5: throw _d.sent();
|
|
3585
3631
|
case 6:
|
|
3586
3632
|
parsedBody = parsedOutput.body;
|
|
3633
|
+
$metadata = deserializeMetadata(output);
|
|
3634
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3587
3635
|
response = new __BaseException({
|
|
3588
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3636
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3589
3637
|
$fault: "client",
|
|
3590
|
-
$metadata:
|
|
3638
|
+
$metadata: $metadata,
|
|
3591
3639
|
});
|
|
3592
3640
|
throw __decorateServiceException(response, parsedBody);
|
|
3593
3641
|
}
|
|
@@ -3612,7 +3660,7 @@ export var deserializeAws_json1_1DescribeWorkingStorageCommand = function (outpu
|
|
|
3612
3660
|
});
|
|
3613
3661
|
}); };
|
|
3614
3662
|
var deserializeAws_json1_1DescribeWorkingStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3615
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3663
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3616
3664
|
var _c;
|
|
3617
3665
|
return __generator(this, function (_d) {
|
|
3618
3666
|
switch (_d.label) {
|
|
@@ -3622,7 +3670,6 @@ var deserializeAws_json1_1DescribeWorkingStorageCommandError = function (output,
|
|
|
3622
3670
|
return [4, parseBody(output.body, context)];
|
|
3623
3671
|
case 1:
|
|
3624
3672
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3625
|
-
errorCode = "UnknownError";
|
|
3626
3673
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3627
3674
|
_b = errorCode;
|
|
3628
3675
|
switch (_b) {
|
|
@@ -3638,10 +3685,12 @@ var deserializeAws_json1_1DescribeWorkingStorageCommandError = function (output,
|
|
|
3638
3685
|
case 5: throw _d.sent();
|
|
3639
3686
|
case 6:
|
|
3640
3687
|
parsedBody = parsedOutput.body;
|
|
3688
|
+
$metadata = deserializeMetadata(output);
|
|
3689
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3641
3690
|
response = new __BaseException({
|
|
3642
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3691
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3643
3692
|
$fault: "client",
|
|
3644
|
-
$metadata:
|
|
3693
|
+
$metadata: $metadata,
|
|
3645
3694
|
});
|
|
3646
3695
|
throw __decorateServiceException(response, parsedBody);
|
|
3647
3696
|
}
|
|
@@ -3666,7 +3715,7 @@ export var deserializeAws_json1_1DetachVolumeCommand = function (output, context
|
|
|
3666
3715
|
});
|
|
3667
3716
|
}); };
|
|
3668
3717
|
var deserializeAws_json1_1DetachVolumeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3669
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3718
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3670
3719
|
var _c;
|
|
3671
3720
|
return __generator(this, function (_d) {
|
|
3672
3721
|
switch (_d.label) {
|
|
@@ -3676,7 +3725,6 @@ var deserializeAws_json1_1DetachVolumeCommandError = function (output, context)
|
|
|
3676
3725
|
return [4, parseBody(output.body, context)];
|
|
3677
3726
|
case 1:
|
|
3678
3727
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3679
|
-
errorCode = "UnknownError";
|
|
3680
3728
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3681
3729
|
_b = errorCode;
|
|
3682
3730
|
switch (_b) {
|
|
@@ -3692,10 +3740,12 @@ var deserializeAws_json1_1DetachVolumeCommandError = function (output, context)
|
|
|
3692
3740
|
case 5: throw _d.sent();
|
|
3693
3741
|
case 6:
|
|
3694
3742
|
parsedBody = parsedOutput.body;
|
|
3743
|
+
$metadata = deserializeMetadata(output);
|
|
3744
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3695
3745
|
response = new __BaseException({
|
|
3696
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3746
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3697
3747
|
$fault: "client",
|
|
3698
|
-
$metadata:
|
|
3748
|
+
$metadata: $metadata,
|
|
3699
3749
|
});
|
|
3700
3750
|
throw __decorateServiceException(response, parsedBody);
|
|
3701
3751
|
}
|
|
@@ -3720,7 +3770,7 @@ export var deserializeAws_json1_1DisableGatewayCommand = function (output, conte
|
|
|
3720
3770
|
});
|
|
3721
3771
|
}); };
|
|
3722
3772
|
var deserializeAws_json1_1DisableGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3723
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3773
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3724
3774
|
var _c;
|
|
3725
3775
|
return __generator(this, function (_d) {
|
|
3726
3776
|
switch (_d.label) {
|
|
@@ -3730,7 +3780,6 @@ var deserializeAws_json1_1DisableGatewayCommandError = function (output, context
|
|
|
3730
3780
|
return [4, parseBody(output.body, context)];
|
|
3731
3781
|
case 1:
|
|
3732
3782
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3733
|
-
errorCode = "UnknownError";
|
|
3734
3783
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3735
3784
|
_b = errorCode;
|
|
3736
3785
|
switch (_b) {
|
|
@@ -3746,10 +3795,12 @@ var deserializeAws_json1_1DisableGatewayCommandError = function (output, context
|
|
|
3746
3795
|
case 5: throw _d.sent();
|
|
3747
3796
|
case 6:
|
|
3748
3797
|
parsedBody = parsedOutput.body;
|
|
3798
|
+
$metadata = deserializeMetadata(output);
|
|
3799
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3749
3800
|
response = new __BaseException({
|
|
3750
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3751
3802
|
$fault: "client",
|
|
3752
|
-
$metadata:
|
|
3803
|
+
$metadata: $metadata,
|
|
3753
3804
|
});
|
|
3754
3805
|
throw __decorateServiceException(response, parsedBody);
|
|
3755
3806
|
}
|
|
@@ -3774,7 +3825,7 @@ export var deserializeAws_json1_1DisassociateFileSystemCommand = function (outpu
|
|
|
3774
3825
|
});
|
|
3775
3826
|
}); };
|
|
3776
3827
|
var deserializeAws_json1_1DisassociateFileSystemCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3777
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3828
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3778
3829
|
var _c;
|
|
3779
3830
|
return __generator(this, function (_d) {
|
|
3780
3831
|
switch (_d.label) {
|
|
@@ -3784,7 +3835,6 @@ var deserializeAws_json1_1DisassociateFileSystemCommandError = function (output,
|
|
|
3784
3835
|
return [4, parseBody(output.body, context)];
|
|
3785
3836
|
case 1:
|
|
3786
3837
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3787
|
-
errorCode = "UnknownError";
|
|
3788
3838
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3789
3839
|
_b = errorCode;
|
|
3790
3840
|
switch (_b) {
|
|
@@ -3800,10 +3850,12 @@ var deserializeAws_json1_1DisassociateFileSystemCommandError = function (output,
|
|
|
3800
3850
|
case 5: throw _d.sent();
|
|
3801
3851
|
case 6:
|
|
3802
3852
|
parsedBody = parsedOutput.body;
|
|
3853
|
+
$metadata = deserializeMetadata(output);
|
|
3854
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3803
3855
|
response = new __BaseException({
|
|
3804
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3856
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3805
3857
|
$fault: "client",
|
|
3806
|
-
$metadata:
|
|
3858
|
+
$metadata: $metadata,
|
|
3807
3859
|
});
|
|
3808
3860
|
throw __decorateServiceException(response, parsedBody);
|
|
3809
3861
|
}
|
|
@@ -3828,7 +3880,7 @@ export var deserializeAws_json1_1JoinDomainCommand = function (output, context)
|
|
|
3828
3880
|
});
|
|
3829
3881
|
}); };
|
|
3830
3882
|
var deserializeAws_json1_1JoinDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3831
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3883
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3832
3884
|
var _c;
|
|
3833
3885
|
return __generator(this, function (_d) {
|
|
3834
3886
|
switch (_d.label) {
|
|
@@ -3838,7 +3890,6 @@ var deserializeAws_json1_1JoinDomainCommandError = function (output, context) {
|
|
|
3838
3890
|
return [4, parseBody(output.body, context)];
|
|
3839
3891
|
case 1:
|
|
3840
3892
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3841
|
-
errorCode = "UnknownError";
|
|
3842
3893
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3843
3894
|
_b = errorCode;
|
|
3844
3895
|
switch (_b) {
|
|
@@ -3854,10 +3905,12 @@ var deserializeAws_json1_1JoinDomainCommandError = function (output, context) {
|
|
|
3854
3905
|
case 5: throw _d.sent();
|
|
3855
3906
|
case 6:
|
|
3856
3907
|
parsedBody = parsedOutput.body;
|
|
3908
|
+
$metadata = deserializeMetadata(output);
|
|
3909
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3857
3910
|
response = new __BaseException({
|
|
3858
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3911
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3859
3912
|
$fault: "client",
|
|
3860
|
-
$metadata:
|
|
3913
|
+
$metadata: $metadata,
|
|
3861
3914
|
});
|
|
3862
3915
|
throw __decorateServiceException(response, parsedBody);
|
|
3863
3916
|
}
|
|
@@ -3882,7 +3935,7 @@ export var deserializeAws_json1_1ListAutomaticTapeCreationPoliciesCommand = func
|
|
|
3882
3935
|
});
|
|
3883
3936
|
}); };
|
|
3884
3937
|
var deserializeAws_json1_1ListAutomaticTapeCreationPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3885
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3938
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3886
3939
|
var _c;
|
|
3887
3940
|
return __generator(this, function (_d) {
|
|
3888
3941
|
switch (_d.label) {
|
|
@@ -3892,7 +3945,6 @@ var deserializeAws_json1_1ListAutomaticTapeCreationPoliciesCommandError = functi
|
|
|
3892
3945
|
return [4, parseBody(output.body, context)];
|
|
3893
3946
|
case 1:
|
|
3894
3947
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3895
|
-
errorCode = "UnknownError";
|
|
3896
3948
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3897
3949
|
_b = errorCode;
|
|
3898
3950
|
switch (_b) {
|
|
@@ -3908,10 +3960,12 @@ var deserializeAws_json1_1ListAutomaticTapeCreationPoliciesCommandError = functi
|
|
|
3908
3960
|
case 5: throw _d.sent();
|
|
3909
3961
|
case 6:
|
|
3910
3962
|
parsedBody = parsedOutput.body;
|
|
3963
|
+
$metadata = deserializeMetadata(output);
|
|
3964
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3911
3965
|
response = new __BaseException({
|
|
3912
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3913
3967
|
$fault: "client",
|
|
3914
|
-
$metadata:
|
|
3968
|
+
$metadata: $metadata,
|
|
3915
3969
|
});
|
|
3916
3970
|
throw __decorateServiceException(response, parsedBody);
|
|
3917
3971
|
}
|
|
@@ -3936,7 +3990,7 @@ export var deserializeAws_json1_1ListFileSharesCommand = function (output, conte
|
|
|
3936
3990
|
});
|
|
3937
3991
|
}); };
|
|
3938
3992
|
var deserializeAws_json1_1ListFileSharesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3939
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3993
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3940
3994
|
var _c;
|
|
3941
3995
|
return __generator(this, function (_d) {
|
|
3942
3996
|
switch (_d.label) {
|
|
@@ -3946,7 +4000,6 @@ var deserializeAws_json1_1ListFileSharesCommandError = function (output, context
|
|
|
3946
4000
|
return [4, parseBody(output.body, context)];
|
|
3947
4001
|
case 1:
|
|
3948
4002
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3949
|
-
errorCode = "UnknownError";
|
|
3950
4003
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3951
4004
|
_b = errorCode;
|
|
3952
4005
|
switch (_b) {
|
|
@@ -3962,10 +4015,12 @@ var deserializeAws_json1_1ListFileSharesCommandError = function (output, context
|
|
|
3962
4015
|
case 5: throw _d.sent();
|
|
3963
4016
|
case 6:
|
|
3964
4017
|
parsedBody = parsedOutput.body;
|
|
4018
|
+
$metadata = deserializeMetadata(output);
|
|
4019
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3965
4020
|
response = new __BaseException({
|
|
3966
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4021
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3967
4022
|
$fault: "client",
|
|
3968
|
-
$metadata:
|
|
4023
|
+
$metadata: $metadata,
|
|
3969
4024
|
});
|
|
3970
4025
|
throw __decorateServiceException(response, parsedBody);
|
|
3971
4026
|
}
|
|
@@ -3990,7 +4045,7 @@ export var deserializeAws_json1_1ListFileSystemAssociationsCommand = function (o
|
|
|
3990
4045
|
});
|
|
3991
4046
|
}); };
|
|
3992
4047
|
var deserializeAws_json1_1ListFileSystemAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3993
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4048
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3994
4049
|
var _c;
|
|
3995
4050
|
return __generator(this, function (_d) {
|
|
3996
4051
|
switch (_d.label) {
|
|
@@ -4000,7 +4055,6 @@ var deserializeAws_json1_1ListFileSystemAssociationsCommandError = function (out
|
|
|
4000
4055
|
return [4, parseBody(output.body, context)];
|
|
4001
4056
|
case 1:
|
|
4002
4057
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4003
|
-
errorCode = "UnknownError";
|
|
4004
4058
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4005
4059
|
_b = errorCode;
|
|
4006
4060
|
switch (_b) {
|
|
@@ -4016,10 +4070,12 @@ var deserializeAws_json1_1ListFileSystemAssociationsCommandError = function (out
|
|
|
4016
4070
|
case 5: throw _d.sent();
|
|
4017
4071
|
case 6:
|
|
4018
4072
|
parsedBody = parsedOutput.body;
|
|
4073
|
+
$metadata = deserializeMetadata(output);
|
|
4074
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4019
4075
|
response = new __BaseException({
|
|
4020
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4076
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4021
4077
|
$fault: "client",
|
|
4022
|
-
$metadata:
|
|
4078
|
+
$metadata: $metadata,
|
|
4023
4079
|
});
|
|
4024
4080
|
throw __decorateServiceException(response, parsedBody);
|
|
4025
4081
|
}
|
|
@@ -4044,7 +4100,7 @@ export var deserializeAws_json1_1ListGatewaysCommand = function (output, context
|
|
|
4044
4100
|
});
|
|
4045
4101
|
}); };
|
|
4046
4102
|
var deserializeAws_json1_1ListGatewaysCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4047
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4103
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4048
4104
|
var _c;
|
|
4049
4105
|
return __generator(this, function (_d) {
|
|
4050
4106
|
switch (_d.label) {
|
|
@@ -4054,7 +4110,6 @@ var deserializeAws_json1_1ListGatewaysCommandError = function (output, context)
|
|
|
4054
4110
|
return [4, parseBody(output.body, context)];
|
|
4055
4111
|
case 1:
|
|
4056
4112
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4057
|
-
errorCode = "UnknownError";
|
|
4058
4113
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4059
4114
|
_b = errorCode;
|
|
4060
4115
|
switch (_b) {
|
|
@@ -4070,10 +4125,12 @@ var deserializeAws_json1_1ListGatewaysCommandError = function (output, context)
|
|
|
4070
4125
|
case 5: throw _d.sent();
|
|
4071
4126
|
case 6:
|
|
4072
4127
|
parsedBody = parsedOutput.body;
|
|
4128
|
+
$metadata = deserializeMetadata(output);
|
|
4129
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4073
4130
|
response = new __BaseException({
|
|
4074
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4131
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4075
4132
|
$fault: "client",
|
|
4076
|
-
$metadata:
|
|
4133
|
+
$metadata: $metadata,
|
|
4077
4134
|
});
|
|
4078
4135
|
throw __decorateServiceException(response, parsedBody);
|
|
4079
4136
|
}
|
|
@@ -4098,7 +4155,7 @@ export var deserializeAws_json1_1ListLocalDisksCommand = function (output, conte
|
|
|
4098
4155
|
});
|
|
4099
4156
|
}); };
|
|
4100
4157
|
var deserializeAws_json1_1ListLocalDisksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4101
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4158
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4102
4159
|
var _c;
|
|
4103
4160
|
return __generator(this, function (_d) {
|
|
4104
4161
|
switch (_d.label) {
|
|
@@ -4108,7 +4165,6 @@ var deserializeAws_json1_1ListLocalDisksCommandError = function (output, context
|
|
|
4108
4165
|
return [4, parseBody(output.body, context)];
|
|
4109
4166
|
case 1:
|
|
4110
4167
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4111
|
-
errorCode = "UnknownError";
|
|
4112
4168
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4113
4169
|
_b = errorCode;
|
|
4114
4170
|
switch (_b) {
|
|
@@ -4124,10 +4180,12 @@ var deserializeAws_json1_1ListLocalDisksCommandError = function (output, context
|
|
|
4124
4180
|
case 5: throw _d.sent();
|
|
4125
4181
|
case 6:
|
|
4126
4182
|
parsedBody = parsedOutput.body;
|
|
4183
|
+
$metadata = deserializeMetadata(output);
|
|
4184
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4127
4185
|
response = new __BaseException({
|
|
4128
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4186
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4129
4187
|
$fault: "client",
|
|
4130
|
-
$metadata:
|
|
4188
|
+
$metadata: $metadata,
|
|
4131
4189
|
});
|
|
4132
4190
|
throw __decorateServiceException(response, parsedBody);
|
|
4133
4191
|
}
|
|
@@ -4152,7 +4210,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
4152
4210
|
});
|
|
4153
4211
|
}); };
|
|
4154
4212
|
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4155
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4213
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4156
4214
|
var _c;
|
|
4157
4215
|
return __generator(this, function (_d) {
|
|
4158
4216
|
switch (_d.label) {
|
|
@@ -4162,7 +4220,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
4162
4220
|
return [4, parseBody(output.body, context)];
|
|
4163
4221
|
case 1:
|
|
4164
4222
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4165
|
-
errorCode = "UnknownError";
|
|
4166
4223
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4167
4224
|
_b = errorCode;
|
|
4168
4225
|
switch (_b) {
|
|
@@ -4178,10 +4235,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
4178
4235
|
case 5: throw _d.sent();
|
|
4179
4236
|
case 6:
|
|
4180
4237
|
parsedBody = parsedOutput.body;
|
|
4238
|
+
$metadata = deserializeMetadata(output);
|
|
4239
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4181
4240
|
response = new __BaseException({
|
|
4182
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4241
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4183
4242
|
$fault: "client",
|
|
4184
|
-
$metadata:
|
|
4243
|
+
$metadata: $metadata,
|
|
4185
4244
|
});
|
|
4186
4245
|
throw __decorateServiceException(response, parsedBody);
|
|
4187
4246
|
}
|
|
@@ -4206,7 +4265,7 @@ export var deserializeAws_json1_1ListTapePoolsCommand = function (output, contex
|
|
|
4206
4265
|
});
|
|
4207
4266
|
}); };
|
|
4208
4267
|
var deserializeAws_json1_1ListTapePoolsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4209
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4268
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4210
4269
|
var _c;
|
|
4211
4270
|
return __generator(this, function (_d) {
|
|
4212
4271
|
switch (_d.label) {
|
|
@@ -4216,7 +4275,6 @@ var deserializeAws_json1_1ListTapePoolsCommandError = function (output, context)
|
|
|
4216
4275
|
return [4, parseBody(output.body, context)];
|
|
4217
4276
|
case 1:
|
|
4218
4277
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4219
|
-
errorCode = "UnknownError";
|
|
4220
4278
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4221
4279
|
_b = errorCode;
|
|
4222
4280
|
switch (_b) {
|
|
@@ -4232,10 +4290,12 @@ var deserializeAws_json1_1ListTapePoolsCommandError = function (output, context)
|
|
|
4232
4290
|
case 5: throw _d.sent();
|
|
4233
4291
|
case 6:
|
|
4234
4292
|
parsedBody = parsedOutput.body;
|
|
4293
|
+
$metadata = deserializeMetadata(output);
|
|
4294
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4235
4295
|
response = new __BaseException({
|
|
4236
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4296
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4237
4297
|
$fault: "client",
|
|
4238
|
-
$metadata:
|
|
4298
|
+
$metadata: $metadata,
|
|
4239
4299
|
});
|
|
4240
4300
|
throw __decorateServiceException(response, parsedBody);
|
|
4241
4301
|
}
|
|
@@ -4260,7 +4320,7 @@ export var deserializeAws_json1_1ListTapesCommand = function (output, context) {
|
|
|
4260
4320
|
});
|
|
4261
4321
|
}); };
|
|
4262
4322
|
var deserializeAws_json1_1ListTapesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4263
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4323
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4264
4324
|
var _c;
|
|
4265
4325
|
return __generator(this, function (_d) {
|
|
4266
4326
|
switch (_d.label) {
|
|
@@ -4270,7 +4330,6 @@ var deserializeAws_json1_1ListTapesCommandError = function (output, context) { r
|
|
|
4270
4330
|
return [4, parseBody(output.body, context)];
|
|
4271
4331
|
case 1:
|
|
4272
4332
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4273
|
-
errorCode = "UnknownError";
|
|
4274
4333
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4275
4334
|
_b = errorCode;
|
|
4276
4335
|
switch (_b) {
|
|
@@ -4286,10 +4345,12 @@ var deserializeAws_json1_1ListTapesCommandError = function (output, context) { r
|
|
|
4286
4345
|
case 5: throw _d.sent();
|
|
4287
4346
|
case 6:
|
|
4288
4347
|
parsedBody = parsedOutput.body;
|
|
4348
|
+
$metadata = deserializeMetadata(output);
|
|
4349
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4289
4350
|
response = new __BaseException({
|
|
4290
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4291
4352
|
$fault: "client",
|
|
4292
|
-
$metadata:
|
|
4353
|
+
$metadata: $metadata,
|
|
4293
4354
|
});
|
|
4294
4355
|
throw __decorateServiceException(response, parsedBody);
|
|
4295
4356
|
}
|
|
@@ -4314,7 +4375,7 @@ export var deserializeAws_json1_1ListVolumeInitiatorsCommand = function (output,
|
|
|
4314
4375
|
});
|
|
4315
4376
|
}); };
|
|
4316
4377
|
var deserializeAws_json1_1ListVolumeInitiatorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4317
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4378
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4318
4379
|
var _c;
|
|
4319
4380
|
return __generator(this, function (_d) {
|
|
4320
4381
|
switch (_d.label) {
|
|
@@ -4324,7 +4385,6 @@ var deserializeAws_json1_1ListVolumeInitiatorsCommandError = function (output, c
|
|
|
4324
4385
|
return [4, parseBody(output.body, context)];
|
|
4325
4386
|
case 1:
|
|
4326
4387
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4327
|
-
errorCode = "UnknownError";
|
|
4328
4388
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4329
4389
|
_b = errorCode;
|
|
4330
4390
|
switch (_b) {
|
|
@@ -4340,10 +4400,12 @@ var deserializeAws_json1_1ListVolumeInitiatorsCommandError = function (output, c
|
|
|
4340
4400
|
case 5: throw _d.sent();
|
|
4341
4401
|
case 6:
|
|
4342
4402
|
parsedBody = parsedOutput.body;
|
|
4403
|
+
$metadata = deserializeMetadata(output);
|
|
4404
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4343
4405
|
response = new __BaseException({
|
|
4344
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4406
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4345
4407
|
$fault: "client",
|
|
4346
|
-
$metadata:
|
|
4408
|
+
$metadata: $metadata,
|
|
4347
4409
|
});
|
|
4348
4410
|
throw __decorateServiceException(response, parsedBody);
|
|
4349
4411
|
}
|
|
@@ -4368,7 +4430,7 @@ export var deserializeAws_json1_1ListVolumeRecoveryPointsCommand = function (out
|
|
|
4368
4430
|
});
|
|
4369
4431
|
}); };
|
|
4370
4432
|
var deserializeAws_json1_1ListVolumeRecoveryPointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4371
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4433
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4372
4434
|
var _c;
|
|
4373
4435
|
return __generator(this, function (_d) {
|
|
4374
4436
|
switch (_d.label) {
|
|
@@ -4378,7 +4440,6 @@ var deserializeAws_json1_1ListVolumeRecoveryPointsCommandError = function (outpu
|
|
|
4378
4440
|
return [4, parseBody(output.body, context)];
|
|
4379
4441
|
case 1:
|
|
4380
4442
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4381
|
-
errorCode = "UnknownError";
|
|
4382
4443
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4383
4444
|
_b = errorCode;
|
|
4384
4445
|
switch (_b) {
|
|
@@ -4394,10 +4455,12 @@ var deserializeAws_json1_1ListVolumeRecoveryPointsCommandError = function (outpu
|
|
|
4394
4455
|
case 5: throw _d.sent();
|
|
4395
4456
|
case 6:
|
|
4396
4457
|
parsedBody = parsedOutput.body;
|
|
4458
|
+
$metadata = deserializeMetadata(output);
|
|
4459
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4397
4460
|
response = new __BaseException({
|
|
4398
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4461
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4399
4462
|
$fault: "client",
|
|
4400
|
-
$metadata:
|
|
4463
|
+
$metadata: $metadata,
|
|
4401
4464
|
});
|
|
4402
4465
|
throw __decorateServiceException(response, parsedBody);
|
|
4403
4466
|
}
|
|
@@ -4422,7 +4485,7 @@ export var deserializeAws_json1_1ListVolumesCommand = function (output, context)
|
|
|
4422
4485
|
});
|
|
4423
4486
|
}); };
|
|
4424
4487
|
var deserializeAws_json1_1ListVolumesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4425
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4488
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4426
4489
|
var _c;
|
|
4427
4490
|
return __generator(this, function (_d) {
|
|
4428
4491
|
switch (_d.label) {
|
|
@@ -4432,7 +4495,6 @@ var deserializeAws_json1_1ListVolumesCommandError = function (output, context) {
|
|
|
4432
4495
|
return [4, parseBody(output.body, context)];
|
|
4433
4496
|
case 1:
|
|
4434
4497
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4435
|
-
errorCode = "UnknownError";
|
|
4436
4498
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4437
4499
|
_b = errorCode;
|
|
4438
4500
|
switch (_b) {
|
|
@@ -4448,10 +4510,12 @@ var deserializeAws_json1_1ListVolumesCommandError = function (output, context) {
|
|
|
4448
4510
|
case 5: throw _d.sent();
|
|
4449
4511
|
case 6:
|
|
4450
4512
|
parsedBody = parsedOutput.body;
|
|
4513
|
+
$metadata = deserializeMetadata(output);
|
|
4514
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4451
4515
|
response = new __BaseException({
|
|
4452
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4516
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4453
4517
|
$fault: "client",
|
|
4454
|
-
$metadata:
|
|
4518
|
+
$metadata: $metadata,
|
|
4455
4519
|
});
|
|
4456
4520
|
throw __decorateServiceException(response, parsedBody);
|
|
4457
4521
|
}
|
|
@@ -4476,7 +4540,7 @@ export var deserializeAws_json1_1NotifyWhenUploadedCommand = function (output, c
|
|
|
4476
4540
|
});
|
|
4477
4541
|
}); };
|
|
4478
4542
|
var deserializeAws_json1_1NotifyWhenUploadedCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4479
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4543
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4480
4544
|
var _c;
|
|
4481
4545
|
return __generator(this, function (_d) {
|
|
4482
4546
|
switch (_d.label) {
|
|
@@ -4486,7 +4550,6 @@ var deserializeAws_json1_1NotifyWhenUploadedCommandError = function (output, con
|
|
|
4486
4550
|
return [4, parseBody(output.body, context)];
|
|
4487
4551
|
case 1:
|
|
4488
4552
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4489
|
-
errorCode = "UnknownError";
|
|
4490
4553
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4491
4554
|
_b = errorCode;
|
|
4492
4555
|
switch (_b) {
|
|
@@ -4502,10 +4565,12 @@ var deserializeAws_json1_1NotifyWhenUploadedCommandError = function (output, con
|
|
|
4502
4565
|
case 5: throw _d.sent();
|
|
4503
4566
|
case 6:
|
|
4504
4567
|
parsedBody = parsedOutput.body;
|
|
4568
|
+
$metadata = deserializeMetadata(output);
|
|
4569
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4505
4570
|
response = new __BaseException({
|
|
4506
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4507
4572
|
$fault: "client",
|
|
4508
|
-
$metadata:
|
|
4573
|
+
$metadata: $metadata,
|
|
4509
4574
|
});
|
|
4510
4575
|
throw __decorateServiceException(response, parsedBody);
|
|
4511
4576
|
}
|
|
@@ -4530,7 +4595,7 @@ export var deserializeAws_json1_1RefreshCacheCommand = function (output, context
|
|
|
4530
4595
|
});
|
|
4531
4596
|
}); };
|
|
4532
4597
|
var deserializeAws_json1_1RefreshCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4533
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4598
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4534
4599
|
var _c;
|
|
4535
4600
|
return __generator(this, function (_d) {
|
|
4536
4601
|
switch (_d.label) {
|
|
@@ -4540,7 +4605,6 @@ var deserializeAws_json1_1RefreshCacheCommandError = function (output, context)
|
|
|
4540
4605
|
return [4, parseBody(output.body, context)];
|
|
4541
4606
|
case 1:
|
|
4542
4607
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4543
|
-
errorCode = "UnknownError";
|
|
4544
4608
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4545
4609
|
_b = errorCode;
|
|
4546
4610
|
switch (_b) {
|
|
@@ -4556,10 +4620,12 @@ var deserializeAws_json1_1RefreshCacheCommandError = function (output, context)
|
|
|
4556
4620
|
case 5: throw _d.sent();
|
|
4557
4621
|
case 6:
|
|
4558
4622
|
parsedBody = parsedOutput.body;
|
|
4623
|
+
$metadata = deserializeMetadata(output);
|
|
4624
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4559
4625
|
response = new __BaseException({
|
|
4560
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4626
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4561
4627
|
$fault: "client",
|
|
4562
|
-
$metadata:
|
|
4628
|
+
$metadata: $metadata,
|
|
4563
4629
|
});
|
|
4564
4630
|
throw __decorateServiceException(response, parsedBody);
|
|
4565
4631
|
}
|
|
@@ -4584,7 +4650,7 @@ export var deserializeAws_json1_1RemoveTagsFromResourceCommand = function (outpu
|
|
|
4584
4650
|
});
|
|
4585
4651
|
}); };
|
|
4586
4652
|
var deserializeAws_json1_1RemoveTagsFromResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4587
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4653
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4588
4654
|
var _c;
|
|
4589
4655
|
return __generator(this, function (_d) {
|
|
4590
4656
|
switch (_d.label) {
|
|
@@ -4594,7 +4660,6 @@ var deserializeAws_json1_1RemoveTagsFromResourceCommandError = function (output,
|
|
|
4594
4660
|
return [4, parseBody(output.body, context)];
|
|
4595
4661
|
case 1:
|
|
4596
4662
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4597
|
-
errorCode = "UnknownError";
|
|
4598
4663
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4599
4664
|
_b = errorCode;
|
|
4600
4665
|
switch (_b) {
|
|
@@ -4610,10 +4675,12 @@ var deserializeAws_json1_1RemoveTagsFromResourceCommandError = function (output,
|
|
|
4610
4675
|
case 5: throw _d.sent();
|
|
4611
4676
|
case 6:
|
|
4612
4677
|
parsedBody = parsedOutput.body;
|
|
4678
|
+
$metadata = deserializeMetadata(output);
|
|
4679
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4613
4680
|
response = new __BaseException({
|
|
4614
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4681
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4615
4682
|
$fault: "client",
|
|
4616
|
-
$metadata:
|
|
4683
|
+
$metadata: $metadata,
|
|
4617
4684
|
});
|
|
4618
4685
|
throw __decorateServiceException(response, parsedBody);
|
|
4619
4686
|
}
|
|
@@ -4638,7 +4705,7 @@ export var deserializeAws_json1_1ResetCacheCommand = function (output, context)
|
|
|
4638
4705
|
});
|
|
4639
4706
|
}); };
|
|
4640
4707
|
var deserializeAws_json1_1ResetCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4641
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4708
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4642
4709
|
var _c;
|
|
4643
4710
|
return __generator(this, function (_d) {
|
|
4644
4711
|
switch (_d.label) {
|
|
@@ -4648,7 +4715,6 @@ var deserializeAws_json1_1ResetCacheCommandError = function (output, context) {
|
|
|
4648
4715
|
return [4, parseBody(output.body, context)];
|
|
4649
4716
|
case 1:
|
|
4650
4717
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4651
|
-
errorCode = "UnknownError";
|
|
4652
4718
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4653
4719
|
_b = errorCode;
|
|
4654
4720
|
switch (_b) {
|
|
@@ -4664,10 +4730,12 @@ var deserializeAws_json1_1ResetCacheCommandError = function (output, context) {
|
|
|
4664
4730
|
case 5: throw _d.sent();
|
|
4665
4731
|
case 6:
|
|
4666
4732
|
parsedBody = parsedOutput.body;
|
|
4733
|
+
$metadata = deserializeMetadata(output);
|
|
4734
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4667
4735
|
response = new __BaseException({
|
|
4668
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4736
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4669
4737
|
$fault: "client",
|
|
4670
|
-
$metadata:
|
|
4738
|
+
$metadata: $metadata,
|
|
4671
4739
|
});
|
|
4672
4740
|
throw __decorateServiceException(response, parsedBody);
|
|
4673
4741
|
}
|
|
@@ -4692,7 +4760,7 @@ export var deserializeAws_json1_1RetrieveTapeArchiveCommand = function (output,
|
|
|
4692
4760
|
});
|
|
4693
4761
|
}); };
|
|
4694
4762
|
var deserializeAws_json1_1RetrieveTapeArchiveCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4695
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4763
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4696
4764
|
var _c;
|
|
4697
4765
|
return __generator(this, function (_d) {
|
|
4698
4766
|
switch (_d.label) {
|
|
@@ -4702,7 +4770,6 @@ var deserializeAws_json1_1RetrieveTapeArchiveCommandError = function (output, co
|
|
|
4702
4770
|
return [4, parseBody(output.body, context)];
|
|
4703
4771
|
case 1:
|
|
4704
4772
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4705
|
-
errorCode = "UnknownError";
|
|
4706
4773
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4707
4774
|
_b = errorCode;
|
|
4708
4775
|
switch (_b) {
|
|
@@ -4718,10 +4785,12 @@ var deserializeAws_json1_1RetrieveTapeArchiveCommandError = function (output, co
|
|
|
4718
4785
|
case 5: throw _d.sent();
|
|
4719
4786
|
case 6:
|
|
4720
4787
|
parsedBody = parsedOutput.body;
|
|
4788
|
+
$metadata = deserializeMetadata(output);
|
|
4789
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4721
4790
|
response = new __BaseException({
|
|
4722
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4791
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4723
4792
|
$fault: "client",
|
|
4724
|
-
$metadata:
|
|
4793
|
+
$metadata: $metadata,
|
|
4725
4794
|
});
|
|
4726
4795
|
throw __decorateServiceException(response, parsedBody);
|
|
4727
4796
|
}
|
|
@@ -4746,7 +4815,7 @@ export var deserializeAws_json1_1RetrieveTapeRecoveryPointCommand = function (ou
|
|
|
4746
4815
|
});
|
|
4747
4816
|
}); };
|
|
4748
4817
|
var deserializeAws_json1_1RetrieveTapeRecoveryPointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4749
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4818
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4750
4819
|
var _c;
|
|
4751
4820
|
return __generator(this, function (_d) {
|
|
4752
4821
|
switch (_d.label) {
|
|
@@ -4756,7 +4825,6 @@ var deserializeAws_json1_1RetrieveTapeRecoveryPointCommandError = function (outp
|
|
|
4756
4825
|
return [4, parseBody(output.body, context)];
|
|
4757
4826
|
case 1:
|
|
4758
4827
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4759
|
-
errorCode = "UnknownError";
|
|
4760
4828
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4761
4829
|
_b = errorCode;
|
|
4762
4830
|
switch (_b) {
|
|
@@ -4772,10 +4840,12 @@ var deserializeAws_json1_1RetrieveTapeRecoveryPointCommandError = function (outp
|
|
|
4772
4840
|
case 5: throw _d.sent();
|
|
4773
4841
|
case 6:
|
|
4774
4842
|
parsedBody = parsedOutput.body;
|
|
4843
|
+
$metadata = deserializeMetadata(output);
|
|
4844
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4775
4845
|
response = new __BaseException({
|
|
4776
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4846
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4777
4847
|
$fault: "client",
|
|
4778
|
-
$metadata:
|
|
4848
|
+
$metadata: $metadata,
|
|
4779
4849
|
});
|
|
4780
4850
|
throw __decorateServiceException(response, parsedBody);
|
|
4781
4851
|
}
|
|
@@ -4800,7 +4870,7 @@ export var deserializeAws_json1_1SetLocalConsolePasswordCommand = function (outp
|
|
|
4800
4870
|
});
|
|
4801
4871
|
}); };
|
|
4802
4872
|
var deserializeAws_json1_1SetLocalConsolePasswordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4803
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4873
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4804
4874
|
var _c;
|
|
4805
4875
|
return __generator(this, function (_d) {
|
|
4806
4876
|
switch (_d.label) {
|
|
@@ -4810,7 +4880,6 @@ var deserializeAws_json1_1SetLocalConsolePasswordCommandError = function (output
|
|
|
4810
4880
|
return [4, parseBody(output.body, context)];
|
|
4811
4881
|
case 1:
|
|
4812
4882
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4813
|
-
errorCode = "UnknownError";
|
|
4814
4883
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4815
4884
|
_b = errorCode;
|
|
4816
4885
|
switch (_b) {
|
|
@@ -4826,10 +4895,12 @@ var deserializeAws_json1_1SetLocalConsolePasswordCommandError = function (output
|
|
|
4826
4895
|
case 5: throw _d.sent();
|
|
4827
4896
|
case 6:
|
|
4828
4897
|
parsedBody = parsedOutput.body;
|
|
4898
|
+
$metadata = deserializeMetadata(output);
|
|
4899
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4829
4900
|
response = new __BaseException({
|
|
4830
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4901
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4831
4902
|
$fault: "client",
|
|
4832
|
-
$metadata:
|
|
4903
|
+
$metadata: $metadata,
|
|
4833
4904
|
});
|
|
4834
4905
|
throw __decorateServiceException(response, parsedBody);
|
|
4835
4906
|
}
|
|
@@ -4854,7 +4925,7 @@ export var deserializeAws_json1_1SetSMBGuestPasswordCommand = function (output,
|
|
|
4854
4925
|
});
|
|
4855
4926
|
}); };
|
|
4856
4927
|
var deserializeAws_json1_1SetSMBGuestPasswordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4857
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4928
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4858
4929
|
var _c;
|
|
4859
4930
|
return __generator(this, function (_d) {
|
|
4860
4931
|
switch (_d.label) {
|
|
@@ -4864,7 +4935,6 @@ var deserializeAws_json1_1SetSMBGuestPasswordCommandError = function (output, co
|
|
|
4864
4935
|
return [4, parseBody(output.body, context)];
|
|
4865
4936
|
case 1:
|
|
4866
4937
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4867
|
-
errorCode = "UnknownError";
|
|
4868
4938
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4869
4939
|
_b = errorCode;
|
|
4870
4940
|
switch (_b) {
|
|
@@ -4880,10 +4950,12 @@ var deserializeAws_json1_1SetSMBGuestPasswordCommandError = function (output, co
|
|
|
4880
4950
|
case 5: throw _d.sent();
|
|
4881
4951
|
case 6:
|
|
4882
4952
|
parsedBody = parsedOutput.body;
|
|
4953
|
+
$metadata = deserializeMetadata(output);
|
|
4954
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4883
4955
|
response = new __BaseException({
|
|
4884
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4956
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4885
4957
|
$fault: "client",
|
|
4886
|
-
$metadata:
|
|
4958
|
+
$metadata: $metadata,
|
|
4887
4959
|
});
|
|
4888
4960
|
throw __decorateServiceException(response, parsedBody);
|
|
4889
4961
|
}
|
|
@@ -4908,7 +4980,7 @@ export var deserializeAws_json1_1ShutdownGatewayCommand = function (output, cont
|
|
|
4908
4980
|
});
|
|
4909
4981
|
}); };
|
|
4910
4982
|
var deserializeAws_json1_1ShutdownGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4911
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4983
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4912
4984
|
var _c;
|
|
4913
4985
|
return __generator(this, function (_d) {
|
|
4914
4986
|
switch (_d.label) {
|
|
@@ -4918,7 +4990,6 @@ var deserializeAws_json1_1ShutdownGatewayCommandError = function (output, contex
|
|
|
4918
4990
|
return [4, parseBody(output.body, context)];
|
|
4919
4991
|
case 1:
|
|
4920
4992
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4921
|
-
errorCode = "UnknownError";
|
|
4922
4993
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4923
4994
|
_b = errorCode;
|
|
4924
4995
|
switch (_b) {
|
|
@@ -4934,10 +5005,12 @@ var deserializeAws_json1_1ShutdownGatewayCommandError = function (output, contex
|
|
|
4934
5005
|
case 5: throw _d.sent();
|
|
4935
5006
|
case 6:
|
|
4936
5007
|
parsedBody = parsedOutput.body;
|
|
5008
|
+
$metadata = deserializeMetadata(output);
|
|
5009
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4937
5010
|
response = new __BaseException({
|
|
4938
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5011
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4939
5012
|
$fault: "client",
|
|
4940
|
-
$metadata:
|
|
5013
|
+
$metadata: $metadata,
|
|
4941
5014
|
});
|
|
4942
5015
|
throw __decorateServiceException(response, parsedBody);
|
|
4943
5016
|
}
|
|
@@ -4962,7 +5035,7 @@ export var deserializeAws_json1_1StartAvailabilityMonitorTestCommand = function
|
|
|
4962
5035
|
});
|
|
4963
5036
|
}); };
|
|
4964
5037
|
var deserializeAws_json1_1StartAvailabilityMonitorTestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4965
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5038
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4966
5039
|
var _c;
|
|
4967
5040
|
return __generator(this, function (_d) {
|
|
4968
5041
|
switch (_d.label) {
|
|
@@ -4972,7 +5045,6 @@ var deserializeAws_json1_1StartAvailabilityMonitorTestCommandError = function (o
|
|
|
4972
5045
|
return [4, parseBody(output.body, context)];
|
|
4973
5046
|
case 1:
|
|
4974
5047
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4975
|
-
errorCode = "UnknownError";
|
|
4976
5048
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4977
5049
|
_b = errorCode;
|
|
4978
5050
|
switch (_b) {
|
|
@@ -4988,10 +5060,12 @@ var deserializeAws_json1_1StartAvailabilityMonitorTestCommandError = function (o
|
|
|
4988
5060
|
case 5: throw _d.sent();
|
|
4989
5061
|
case 6:
|
|
4990
5062
|
parsedBody = parsedOutput.body;
|
|
5063
|
+
$metadata = deserializeMetadata(output);
|
|
5064
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4991
5065
|
response = new __BaseException({
|
|
4992
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5066
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4993
5067
|
$fault: "client",
|
|
4994
|
-
$metadata:
|
|
5068
|
+
$metadata: $metadata,
|
|
4995
5069
|
});
|
|
4996
5070
|
throw __decorateServiceException(response, parsedBody);
|
|
4997
5071
|
}
|
|
@@ -5016,7 +5090,7 @@ export var deserializeAws_json1_1StartGatewayCommand = function (output, context
|
|
|
5016
5090
|
});
|
|
5017
5091
|
}); };
|
|
5018
5092
|
var deserializeAws_json1_1StartGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5019
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5093
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5020
5094
|
var _c;
|
|
5021
5095
|
return __generator(this, function (_d) {
|
|
5022
5096
|
switch (_d.label) {
|
|
@@ -5026,7 +5100,6 @@ var deserializeAws_json1_1StartGatewayCommandError = function (output, context)
|
|
|
5026
5100
|
return [4, parseBody(output.body, context)];
|
|
5027
5101
|
case 1:
|
|
5028
5102
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5029
|
-
errorCode = "UnknownError";
|
|
5030
5103
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5031
5104
|
_b = errorCode;
|
|
5032
5105
|
switch (_b) {
|
|
@@ -5042,10 +5115,12 @@ var deserializeAws_json1_1StartGatewayCommandError = function (output, context)
|
|
|
5042
5115
|
case 5: throw _d.sent();
|
|
5043
5116
|
case 6:
|
|
5044
5117
|
parsedBody = parsedOutput.body;
|
|
5118
|
+
$metadata = deserializeMetadata(output);
|
|
5119
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5045
5120
|
response = new __BaseException({
|
|
5046
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5121
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5047
5122
|
$fault: "client",
|
|
5048
|
-
$metadata:
|
|
5123
|
+
$metadata: $metadata,
|
|
5049
5124
|
});
|
|
5050
5125
|
throw __decorateServiceException(response, parsedBody);
|
|
5051
5126
|
}
|
|
@@ -5070,7 +5145,7 @@ export var deserializeAws_json1_1UpdateAutomaticTapeCreationPolicyCommand = func
|
|
|
5070
5145
|
});
|
|
5071
5146
|
}); };
|
|
5072
5147
|
var deserializeAws_json1_1UpdateAutomaticTapeCreationPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5073
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5148
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5074
5149
|
var _c;
|
|
5075
5150
|
return __generator(this, function (_d) {
|
|
5076
5151
|
switch (_d.label) {
|
|
@@ -5080,7 +5155,6 @@ var deserializeAws_json1_1UpdateAutomaticTapeCreationPolicyCommandError = functi
|
|
|
5080
5155
|
return [4, parseBody(output.body, context)];
|
|
5081
5156
|
case 1:
|
|
5082
5157
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5083
|
-
errorCode = "UnknownError";
|
|
5084
5158
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5085
5159
|
_b = errorCode;
|
|
5086
5160
|
switch (_b) {
|
|
@@ -5096,10 +5170,12 @@ var deserializeAws_json1_1UpdateAutomaticTapeCreationPolicyCommandError = functi
|
|
|
5096
5170
|
case 5: throw _d.sent();
|
|
5097
5171
|
case 6:
|
|
5098
5172
|
parsedBody = parsedOutput.body;
|
|
5173
|
+
$metadata = deserializeMetadata(output);
|
|
5174
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5099
5175
|
response = new __BaseException({
|
|
5100
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5101
5177
|
$fault: "client",
|
|
5102
|
-
$metadata:
|
|
5178
|
+
$metadata: $metadata,
|
|
5103
5179
|
});
|
|
5104
5180
|
throw __decorateServiceException(response, parsedBody);
|
|
5105
5181
|
}
|
|
@@ -5124,7 +5200,7 @@ export var deserializeAws_json1_1UpdateBandwidthRateLimitCommand = function (out
|
|
|
5124
5200
|
});
|
|
5125
5201
|
}); };
|
|
5126
5202
|
var deserializeAws_json1_1UpdateBandwidthRateLimitCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5127
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5203
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5128
5204
|
var _c;
|
|
5129
5205
|
return __generator(this, function (_d) {
|
|
5130
5206
|
switch (_d.label) {
|
|
@@ -5134,7 +5210,6 @@ var deserializeAws_json1_1UpdateBandwidthRateLimitCommandError = function (outpu
|
|
|
5134
5210
|
return [4, parseBody(output.body, context)];
|
|
5135
5211
|
case 1:
|
|
5136
5212
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5137
|
-
errorCode = "UnknownError";
|
|
5138
5213
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5139
5214
|
_b = errorCode;
|
|
5140
5215
|
switch (_b) {
|
|
@@ -5150,10 +5225,12 @@ var deserializeAws_json1_1UpdateBandwidthRateLimitCommandError = function (outpu
|
|
|
5150
5225
|
case 5: throw _d.sent();
|
|
5151
5226
|
case 6:
|
|
5152
5227
|
parsedBody = parsedOutput.body;
|
|
5228
|
+
$metadata = deserializeMetadata(output);
|
|
5229
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5153
5230
|
response = new __BaseException({
|
|
5154
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5231
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5155
5232
|
$fault: "client",
|
|
5156
|
-
$metadata:
|
|
5233
|
+
$metadata: $metadata,
|
|
5157
5234
|
});
|
|
5158
5235
|
throw __decorateServiceException(response, parsedBody);
|
|
5159
5236
|
}
|
|
@@ -5178,7 +5255,7 @@ export var deserializeAws_json1_1UpdateBandwidthRateLimitScheduleCommand = funct
|
|
|
5178
5255
|
});
|
|
5179
5256
|
}); };
|
|
5180
5257
|
var deserializeAws_json1_1UpdateBandwidthRateLimitScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5181
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5258
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5182
5259
|
var _c;
|
|
5183
5260
|
return __generator(this, function (_d) {
|
|
5184
5261
|
switch (_d.label) {
|
|
@@ -5188,7 +5265,6 @@ var deserializeAws_json1_1UpdateBandwidthRateLimitScheduleCommandError = functio
|
|
|
5188
5265
|
return [4, parseBody(output.body, context)];
|
|
5189
5266
|
case 1:
|
|
5190
5267
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5191
|
-
errorCode = "UnknownError";
|
|
5192
5268
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5193
5269
|
_b = errorCode;
|
|
5194
5270
|
switch (_b) {
|
|
@@ -5204,10 +5280,12 @@ var deserializeAws_json1_1UpdateBandwidthRateLimitScheduleCommandError = functio
|
|
|
5204
5280
|
case 5: throw _d.sent();
|
|
5205
5281
|
case 6:
|
|
5206
5282
|
parsedBody = parsedOutput.body;
|
|
5283
|
+
$metadata = deserializeMetadata(output);
|
|
5284
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5207
5285
|
response = new __BaseException({
|
|
5208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5286
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5209
5287
|
$fault: "client",
|
|
5210
|
-
$metadata:
|
|
5288
|
+
$metadata: $metadata,
|
|
5211
5289
|
});
|
|
5212
5290
|
throw __decorateServiceException(response, parsedBody);
|
|
5213
5291
|
}
|
|
@@ -5232,7 +5310,7 @@ export var deserializeAws_json1_1UpdateChapCredentialsCommand = function (output
|
|
|
5232
5310
|
});
|
|
5233
5311
|
}); };
|
|
5234
5312
|
var deserializeAws_json1_1UpdateChapCredentialsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5235
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5313
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5236
5314
|
var _c;
|
|
5237
5315
|
return __generator(this, function (_d) {
|
|
5238
5316
|
switch (_d.label) {
|
|
@@ -5242,7 +5320,6 @@ var deserializeAws_json1_1UpdateChapCredentialsCommandError = function (output,
|
|
|
5242
5320
|
return [4, parseBody(output.body, context)];
|
|
5243
5321
|
case 1:
|
|
5244
5322
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5245
|
-
errorCode = "UnknownError";
|
|
5246
5323
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5247
5324
|
_b = errorCode;
|
|
5248
5325
|
switch (_b) {
|
|
@@ -5258,10 +5335,12 @@ var deserializeAws_json1_1UpdateChapCredentialsCommandError = function (output,
|
|
|
5258
5335
|
case 5: throw _d.sent();
|
|
5259
5336
|
case 6:
|
|
5260
5337
|
parsedBody = parsedOutput.body;
|
|
5338
|
+
$metadata = deserializeMetadata(output);
|
|
5339
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5261
5340
|
response = new __BaseException({
|
|
5262
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5341
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5263
5342
|
$fault: "client",
|
|
5264
|
-
$metadata:
|
|
5343
|
+
$metadata: $metadata,
|
|
5265
5344
|
});
|
|
5266
5345
|
throw __decorateServiceException(response, parsedBody);
|
|
5267
5346
|
}
|
|
@@ -5286,7 +5365,7 @@ export var deserializeAws_json1_1UpdateFileSystemAssociationCommand = function (
|
|
|
5286
5365
|
});
|
|
5287
5366
|
}); };
|
|
5288
5367
|
var deserializeAws_json1_1UpdateFileSystemAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5289
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5368
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5290
5369
|
var _c;
|
|
5291
5370
|
return __generator(this, function (_d) {
|
|
5292
5371
|
switch (_d.label) {
|
|
@@ -5296,7 +5375,6 @@ var deserializeAws_json1_1UpdateFileSystemAssociationCommandError = function (ou
|
|
|
5296
5375
|
return [4, parseBody(output.body, context)];
|
|
5297
5376
|
case 1:
|
|
5298
5377
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5299
|
-
errorCode = "UnknownError";
|
|
5300
5378
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5301
5379
|
_b = errorCode;
|
|
5302
5380
|
switch (_b) {
|
|
@@ -5312,10 +5390,12 @@ var deserializeAws_json1_1UpdateFileSystemAssociationCommandError = function (ou
|
|
|
5312
5390
|
case 5: throw _d.sent();
|
|
5313
5391
|
case 6:
|
|
5314
5392
|
parsedBody = parsedOutput.body;
|
|
5393
|
+
$metadata = deserializeMetadata(output);
|
|
5394
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5315
5395
|
response = new __BaseException({
|
|
5316
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5396
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5317
5397
|
$fault: "client",
|
|
5318
|
-
$metadata:
|
|
5398
|
+
$metadata: $metadata,
|
|
5319
5399
|
});
|
|
5320
5400
|
throw __decorateServiceException(response, parsedBody);
|
|
5321
5401
|
}
|
|
@@ -5340,7 +5420,7 @@ export var deserializeAws_json1_1UpdateGatewayInformationCommand = function (out
|
|
|
5340
5420
|
});
|
|
5341
5421
|
}); };
|
|
5342
5422
|
var deserializeAws_json1_1UpdateGatewayInformationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5343
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5423
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5344
5424
|
var _c;
|
|
5345
5425
|
return __generator(this, function (_d) {
|
|
5346
5426
|
switch (_d.label) {
|
|
@@ -5350,7 +5430,6 @@ var deserializeAws_json1_1UpdateGatewayInformationCommandError = function (outpu
|
|
|
5350
5430
|
return [4, parseBody(output.body, context)];
|
|
5351
5431
|
case 1:
|
|
5352
5432
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5353
|
-
errorCode = "UnknownError";
|
|
5354
5433
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5355
5434
|
_b = errorCode;
|
|
5356
5435
|
switch (_b) {
|
|
@@ -5366,10 +5445,12 @@ var deserializeAws_json1_1UpdateGatewayInformationCommandError = function (outpu
|
|
|
5366
5445
|
case 5: throw _d.sent();
|
|
5367
5446
|
case 6:
|
|
5368
5447
|
parsedBody = parsedOutput.body;
|
|
5448
|
+
$metadata = deserializeMetadata(output);
|
|
5449
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5369
5450
|
response = new __BaseException({
|
|
5370
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5451
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5371
5452
|
$fault: "client",
|
|
5372
|
-
$metadata:
|
|
5453
|
+
$metadata: $metadata,
|
|
5373
5454
|
});
|
|
5374
5455
|
throw __decorateServiceException(response, parsedBody);
|
|
5375
5456
|
}
|
|
@@ -5394,7 +5475,7 @@ export var deserializeAws_json1_1UpdateGatewaySoftwareNowCommand = function (out
|
|
|
5394
5475
|
});
|
|
5395
5476
|
}); };
|
|
5396
5477
|
var deserializeAws_json1_1UpdateGatewaySoftwareNowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5397
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5478
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5398
5479
|
var _c;
|
|
5399
5480
|
return __generator(this, function (_d) {
|
|
5400
5481
|
switch (_d.label) {
|
|
@@ -5404,7 +5485,6 @@ var deserializeAws_json1_1UpdateGatewaySoftwareNowCommandError = function (outpu
|
|
|
5404
5485
|
return [4, parseBody(output.body, context)];
|
|
5405
5486
|
case 1:
|
|
5406
5487
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5407
|
-
errorCode = "UnknownError";
|
|
5408
5488
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5409
5489
|
_b = errorCode;
|
|
5410
5490
|
switch (_b) {
|
|
@@ -5420,10 +5500,12 @@ var deserializeAws_json1_1UpdateGatewaySoftwareNowCommandError = function (outpu
|
|
|
5420
5500
|
case 5: throw _d.sent();
|
|
5421
5501
|
case 6:
|
|
5422
5502
|
parsedBody = parsedOutput.body;
|
|
5503
|
+
$metadata = deserializeMetadata(output);
|
|
5504
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5423
5505
|
response = new __BaseException({
|
|
5424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5506
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5425
5507
|
$fault: "client",
|
|
5426
|
-
$metadata:
|
|
5508
|
+
$metadata: $metadata,
|
|
5427
5509
|
});
|
|
5428
5510
|
throw __decorateServiceException(response, parsedBody);
|
|
5429
5511
|
}
|
|
@@ -5448,7 +5530,7 @@ export var deserializeAws_json1_1UpdateMaintenanceStartTimeCommand = function (o
|
|
|
5448
5530
|
});
|
|
5449
5531
|
}); };
|
|
5450
5532
|
var deserializeAws_json1_1UpdateMaintenanceStartTimeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5451
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5533
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5452
5534
|
var _c;
|
|
5453
5535
|
return __generator(this, function (_d) {
|
|
5454
5536
|
switch (_d.label) {
|
|
@@ -5458,7 +5540,6 @@ var deserializeAws_json1_1UpdateMaintenanceStartTimeCommandError = function (out
|
|
|
5458
5540
|
return [4, parseBody(output.body, context)];
|
|
5459
5541
|
case 1:
|
|
5460
5542
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5461
|
-
errorCode = "UnknownError";
|
|
5462
5543
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5463
5544
|
_b = errorCode;
|
|
5464
5545
|
switch (_b) {
|
|
@@ -5474,10 +5555,12 @@ var deserializeAws_json1_1UpdateMaintenanceStartTimeCommandError = function (out
|
|
|
5474
5555
|
case 5: throw _d.sent();
|
|
5475
5556
|
case 6:
|
|
5476
5557
|
parsedBody = parsedOutput.body;
|
|
5558
|
+
$metadata = deserializeMetadata(output);
|
|
5559
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5477
5560
|
response = new __BaseException({
|
|
5478
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5561
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5479
5562
|
$fault: "client",
|
|
5480
|
-
$metadata:
|
|
5563
|
+
$metadata: $metadata,
|
|
5481
5564
|
});
|
|
5482
5565
|
throw __decorateServiceException(response, parsedBody);
|
|
5483
5566
|
}
|
|
@@ -5502,7 +5585,7 @@ export var deserializeAws_json1_1UpdateNFSFileShareCommand = function (output, c
|
|
|
5502
5585
|
});
|
|
5503
5586
|
}); };
|
|
5504
5587
|
var deserializeAws_json1_1UpdateNFSFileShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5505
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5588
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5506
5589
|
var _c;
|
|
5507
5590
|
return __generator(this, function (_d) {
|
|
5508
5591
|
switch (_d.label) {
|
|
@@ -5512,7 +5595,6 @@ var deserializeAws_json1_1UpdateNFSFileShareCommandError = function (output, con
|
|
|
5512
5595
|
return [4, parseBody(output.body, context)];
|
|
5513
5596
|
case 1:
|
|
5514
5597
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5515
|
-
errorCode = "UnknownError";
|
|
5516
5598
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5517
5599
|
_b = errorCode;
|
|
5518
5600
|
switch (_b) {
|
|
@@ -5528,10 +5610,12 @@ var deserializeAws_json1_1UpdateNFSFileShareCommandError = function (output, con
|
|
|
5528
5610
|
case 5: throw _d.sent();
|
|
5529
5611
|
case 6:
|
|
5530
5612
|
parsedBody = parsedOutput.body;
|
|
5613
|
+
$metadata = deserializeMetadata(output);
|
|
5614
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5531
5615
|
response = new __BaseException({
|
|
5532
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5616
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5533
5617
|
$fault: "client",
|
|
5534
|
-
$metadata:
|
|
5618
|
+
$metadata: $metadata,
|
|
5535
5619
|
});
|
|
5536
5620
|
throw __decorateServiceException(response, parsedBody);
|
|
5537
5621
|
}
|
|
@@ -5556,7 +5640,7 @@ export var deserializeAws_json1_1UpdateSMBFileShareCommand = function (output, c
|
|
|
5556
5640
|
});
|
|
5557
5641
|
}); };
|
|
5558
5642
|
var deserializeAws_json1_1UpdateSMBFileShareCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5559
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5643
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5560
5644
|
var _c;
|
|
5561
5645
|
return __generator(this, function (_d) {
|
|
5562
5646
|
switch (_d.label) {
|
|
@@ -5566,7 +5650,6 @@ var deserializeAws_json1_1UpdateSMBFileShareCommandError = function (output, con
|
|
|
5566
5650
|
return [4, parseBody(output.body, context)];
|
|
5567
5651
|
case 1:
|
|
5568
5652
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5569
|
-
errorCode = "UnknownError";
|
|
5570
5653
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5571
5654
|
_b = errorCode;
|
|
5572
5655
|
switch (_b) {
|
|
@@ -5582,10 +5665,12 @@ var deserializeAws_json1_1UpdateSMBFileShareCommandError = function (output, con
|
|
|
5582
5665
|
case 5: throw _d.sent();
|
|
5583
5666
|
case 6:
|
|
5584
5667
|
parsedBody = parsedOutput.body;
|
|
5668
|
+
$metadata = deserializeMetadata(output);
|
|
5669
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5585
5670
|
response = new __BaseException({
|
|
5586
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5671
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5587
5672
|
$fault: "client",
|
|
5588
|
-
$metadata:
|
|
5673
|
+
$metadata: $metadata,
|
|
5589
5674
|
});
|
|
5590
5675
|
throw __decorateServiceException(response, parsedBody);
|
|
5591
5676
|
}
|
|
@@ -5610,7 +5695,7 @@ export var deserializeAws_json1_1UpdateSMBFileShareVisibilityCommand = function
|
|
|
5610
5695
|
});
|
|
5611
5696
|
}); };
|
|
5612
5697
|
var deserializeAws_json1_1UpdateSMBFileShareVisibilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5613
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5698
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5614
5699
|
var _c;
|
|
5615
5700
|
return __generator(this, function (_d) {
|
|
5616
5701
|
switch (_d.label) {
|
|
@@ -5620,7 +5705,6 @@ var deserializeAws_json1_1UpdateSMBFileShareVisibilityCommandError = function (o
|
|
|
5620
5705
|
return [4, parseBody(output.body, context)];
|
|
5621
5706
|
case 1:
|
|
5622
5707
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5623
|
-
errorCode = "UnknownError";
|
|
5624
5708
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5625
5709
|
_b = errorCode;
|
|
5626
5710
|
switch (_b) {
|
|
@@ -5636,10 +5720,12 @@ var deserializeAws_json1_1UpdateSMBFileShareVisibilityCommandError = function (o
|
|
|
5636
5720
|
case 5: throw _d.sent();
|
|
5637
5721
|
case 6:
|
|
5638
5722
|
parsedBody = parsedOutput.body;
|
|
5723
|
+
$metadata = deserializeMetadata(output);
|
|
5724
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5639
5725
|
response = new __BaseException({
|
|
5640
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5726
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5641
5727
|
$fault: "client",
|
|
5642
|
-
$metadata:
|
|
5728
|
+
$metadata: $metadata,
|
|
5643
5729
|
});
|
|
5644
5730
|
throw __decorateServiceException(response, parsedBody);
|
|
5645
5731
|
}
|
|
@@ -5664,7 +5750,7 @@ export var deserializeAws_json1_1UpdateSMBLocalGroupsCommand = function (output,
|
|
|
5664
5750
|
});
|
|
5665
5751
|
}); };
|
|
5666
5752
|
var deserializeAws_json1_1UpdateSMBLocalGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5667
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5753
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5668
5754
|
var _c;
|
|
5669
5755
|
return __generator(this, function (_d) {
|
|
5670
5756
|
switch (_d.label) {
|
|
@@ -5674,7 +5760,6 @@ var deserializeAws_json1_1UpdateSMBLocalGroupsCommandError = function (output, c
|
|
|
5674
5760
|
return [4, parseBody(output.body, context)];
|
|
5675
5761
|
case 1:
|
|
5676
5762
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5677
|
-
errorCode = "UnknownError";
|
|
5678
5763
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5679
5764
|
_b = errorCode;
|
|
5680
5765
|
switch (_b) {
|
|
@@ -5690,10 +5775,12 @@ var deserializeAws_json1_1UpdateSMBLocalGroupsCommandError = function (output, c
|
|
|
5690
5775
|
case 5: throw _d.sent();
|
|
5691
5776
|
case 6:
|
|
5692
5777
|
parsedBody = parsedOutput.body;
|
|
5778
|
+
$metadata = deserializeMetadata(output);
|
|
5779
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5693
5780
|
response = new __BaseException({
|
|
5694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5781
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5695
5782
|
$fault: "client",
|
|
5696
|
-
$metadata:
|
|
5783
|
+
$metadata: $metadata,
|
|
5697
5784
|
});
|
|
5698
5785
|
throw __decorateServiceException(response, parsedBody);
|
|
5699
5786
|
}
|
|
@@ -5718,7 +5805,7 @@ export var deserializeAws_json1_1UpdateSMBSecurityStrategyCommand = function (ou
|
|
|
5718
5805
|
});
|
|
5719
5806
|
}); };
|
|
5720
5807
|
var deserializeAws_json1_1UpdateSMBSecurityStrategyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5721
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5808
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5722
5809
|
var _c;
|
|
5723
5810
|
return __generator(this, function (_d) {
|
|
5724
5811
|
switch (_d.label) {
|
|
@@ -5728,7 +5815,6 @@ var deserializeAws_json1_1UpdateSMBSecurityStrategyCommandError = function (outp
|
|
|
5728
5815
|
return [4, parseBody(output.body, context)];
|
|
5729
5816
|
case 1:
|
|
5730
5817
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5731
|
-
errorCode = "UnknownError";
|
|
5732
5818
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5733
5819
|
_b = errorCode;
|
|
5734
5820
|
switch (_b) {
|
|
@@ -5744,10 +5830,12 @@ var deserializeAws_json1_1UpdateSMBSecurityStrategyCommandError = function (outp
|
|
|
5744
5830
|
case 5: throw _d.sent();
|
|
5745
5831
|
case 6:
|
|
5746
5832
|
parsedBody = parsedOutput.body;
|
|
5833
|
+
$metadata = deserializeMetadata(output);
|
|
5834
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5747
5835
|
response = new __BaseException({
|
|
5748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5836
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5749
5837
|
$fault: "client",
|
|
5750
|
-
$metadata:
|
|
5838
|
+
$metadata: $metadata,
|
|
5751
5839
|
});
|
|
5752
5840
|
throw __decorateServiceException(response, parsedBody);
|
|
5753
5841
|
}
|
|
@@ -5772,7 +5860,7 @@ export var deserializeAws_json1_1UpdateSnapshotScheduleCommand = function (outpu
|
|
|
5772
5860
|
});
|
|
5773
5861
|
}); };
|
|
5774
5862
|
var deserializeAws_json1_1UpdateSnapshotScheduleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5775
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5863
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5776
5864
|
var _c;
|
|
5777
5865
|
return __generator(this, function (_d) {
|
|
5778
5866
|
switch (_d.label) {
|
|
@@ -5782,7 +5870,6 @@ var deserializeAws_json1_1UpdateSnapshotScheduleCommandError = function (output,
|
|
|
5782
5870
|
return [4, parseBody(output.body, context)];
|
|
5783
5871
|
case 1:
|
|
5784
5872
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5785
|
-
errorCode = "UnknownError";
|
|
5786
5873
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5787
5874
|
_b = errorCode;
|
|
5788
5875
|
switch (_b) {
|
|
@@ -5798,10 +5885,12 @@ var deserializeAws_json1_1UpdateSnapshotScheduleCommandError = function (output,
|
|
|
5798
5885
|
case 5: throw _d.sent();
|
|
5799
5886
|
case 6:
|
|
5800
5887
|
parsedBody = parsedOutput.body;
|
|
5888
|
+
$metadata = deserializeMetadata(output);
|
|
5889
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5801
5890
|
response = new __BaseException({
|
|
5802
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5891
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5803
5892
|
$fault: "client",
|
|
5804
|
-
$metadata:
|
|
5893
|
+
$metadata: $metadata,
|
|
5805
5894
|
});
|
|
5806
5895
|
throw __decorateServiceException(response, parsedBody);
|
|
5807
5896
|
}
|
|
@@ -5826,7 +5915,7 @@ export var deserializeAws_json1_1UpdateVTLDeviceTypeCommand = function (output,
|
|
|
5826
5915
|
});
|
|
5827
5916
|
}); };
|
|
5828
5917
|
var deserializeAws_json1_1UpdateVTLDeviceTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5829
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
5918
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
5830
5919
|
var _c;
|
|
5831
5920
|
return __generator(this, function (_d) {
|
|
5832
5921
|
switch (_d.label) {
|
|
@@ -5836,7 +5925,6 @@ var deserializeAws_json1_1UpdateVTLDeviceTypeCommandError = function (output, co
|
|
|
5836
5925
|
return [4, parseBody(output.body, context)];
|
|
5837
5926
|
case 1:
|
|
5838
5927
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5839
|
-
errorCode = "UnknownError";
|
|
5840
5928
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5841
5929
|
_b = errorCode;
|
|
5842
5930
|
switch (_b) {
|
|
@@ -5852,10 +5940,12 @@ var deserializeAws_json1_1UpdateVTLDeviceTypeCommandError = function (output, co
|
|
|
5852
5940
|
case 5: throw _d.sent();
|
|
5853
5941
|
case 6:
|
|
5854
5942
|
parsedBody = parsedOutput.body;
|
|
5943
|
+
$metadata = deserializeMetadata(output);
|
|
5944
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5855
5945
|
response = new __BaseException({
|
|
5856
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5946
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5857
5947
|
$fault: "client",
|
|
5858
|
-
$metadata:
|
|
5948
|
+
$metadata: $metadata,
|
|
5859
5949
|
});
|
|
5860
5950
|
throw __decorateServiceException(response, parsedBody);
|
|
5861
5951
|
}
|
|
@@ -5889,48 +5979,35 @@ var deserializeAws_json1_1ServiceUnavailableErrorResponse = function (parsedOutp
|
|
|
5889
5979
|
});
|
|
5890
5980
|
}); };
|
|
5891
5981
|
var serializeAws_json1_1ActivateGatewayInput = function (input, context) {
|
|
5892
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ActivationKey
|
|
5893
|
-
input.GatewayTimezone !== null && { GatewayTimezone: input.GatewayTimezone })), (input.GatewayType !== undefined && input.GatewayType !== null && { GatewayType: input.GatewayType })), (input.MediumChangerType !== undefined &&
|
|
5894
|
-
input.MediumChangerType !== null && { MediumChangerType: input.MediumChangerType })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.TapeDriveType !== undefined && input.TapeDriveType !== null && { TapeDriveType: input.TapeDriveType }));
|
|
5982
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ActivationKey != null && { ActivationKey: input.ActivationKey })), (input.GatewayName != null && { GatewayName: input.GatewayName })), (input.GatewayRegion != null && { GatewayRegion: input.GatewayRegion })), (input.GatewayTimezone != null && { GatewayTimezone: input.GatewayTimezone })), (input.GatewayType != null && { GatewayType: input.GatewayType })), (input.MediumChangerType != null && { MediumChangerType: input.MediumChangerType })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.TapeDriveType != null && { TapeDriveType: input.TapeDriveType }));
|
|
5895
5983
|
};
|
|
5896
5984
|
var serializeAws_json1_1AddCacheInput = function (input, context) {
|
|
5897
|
-
return __assign(__assign({}, (input.DiskIds
|
|
5898
|
-
input.DiskIds !== null && { DiskIds: serializeAws_json1_1DiskIds(input.DiskIds, context) })), (input.GatewayARN !== undefined && input.GatewayARN !== null && { GatewayARN: input.GatewayARN }));
|
|
5985
|
+
return __assign(__assign({}, (input.DiskIds != null && { DiskIds: serializeAws_json1_1DiskIds(input.DiskIds, context) })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
5899
5986
|
};
|
|
5900
5987
|
var serializeAws_json1_1AddTagsToResourceInput = function (input, context) {
|
|
5901
|
-
return __assign(__assign({}, (input.ResourceARN
|
|
5988
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
5902
5989
|
};
|
|
5903
5990
|
var serializeAws_json1_1AddUploadBufferInput = function (input, context) {
|
|
5904
|
-
return __assign(__assign({}, (input.DiskIds
|
|
5905
|
-
input.DiskIds !== null && { DiskIds: serializeAws_json1_1DiskIds(input.DiskIds, context) })), (input.GatewayARN !== undefined && input.GatewayARN !== null && { GatewayARN: input.GatewayARN }));
|
|
5991
|
+
return __assign(__assign({}, (input.DiskIds != null && { DiskIds: serializeAws_json1_1DiskIds(input.DiskIds, context) })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
5906
5992
|
};
|
|
5907
5993
|
var serializeAws_json1_1AddWorkingStorageInput = function (input, context) {
|
|
5908
|
-
return __assign(__assign({}, (input.DiskIds
|
|
5909
|
-
input.DiskIds !== null && { DiskIds: serializeAws_json1_1DiskIds(input.DiskIds, context) })), (input.GatewayARN !== undefined && input.GatewayARN !== null && { GatewayARN: input.GatewayARN }));
|
|
5994
|
+
return __assign(__assign({}, (input.DiskIds != null && { DiskIds: serializeAws_json1_1DiskIds(input.DiskIds, context) })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
5910
5995
|
};
|
|
5911
5996
|
var serializeAws_json1_1AssignTapePoolInput = function (input, context) {
|
|
5912
|
-
return __assign(__assign(__assign({}, (input.BypassGovernanceRetention
|
|
5913
|
-
input.BypassGovernanceRetention !== null && { BypassGovernanceRetention: input.BypassGovernanceRetention })), (input.PoolId !== undefined && input.PoolId !== null && { PoolId: input.PoolId })), (input.TapeARN !== undefined && input.TapeARN !== null && { TapeARN: input.TapeARN }));
|
|
5997
|
+
return __assign(__assign(__assign({}, (input.BypassGovernanceRetention != null && { BypassGovernanceRetention: input.BypassGovernanceRetention })), (input.PoolId != null && { PoolId: input.PoolId })), (input.TapeARN != null && { TapeARN: input.TapeARN }));
|
|
5914
5998
|
};
|
|
5915
5999
|
var serializeAws_json1_1AssociateFileSystemInput = function (input, context) {
|
|
5916
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuditDestinationARN
|
|
5917
|
-
input.AuditDestinationARN !== null && { AuditDestinationARN: input.AuditDestinationARN })), (input.CacheAttributes !== undefined &&
|
|
5918
|
-
input.CacheAttributes !== null && {
|
|
6000
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuditDestinationARN != null && { AuditDestinationARN: input.AuditDestinationARN })), (input.CacheAttributes != null && {
|
|
5919
6001
|
CacheAttributes: serializeAws_json1_1CacheAttributes(input.CacheAttributes, context),
|
|
5920
|
-
})), (input.ClientToken
|
|
5921
|
-
input.EndpointNetworkConfiguration !== null && {
|
|
6002
|
+
})), (input.ClientToken != null && { ClientToken: input.ClientToken })), (input.EndpointNetworkConfiguration != null && {
|
|
5922
6003
|
EndpointNetworkConfiguration: serializeAws_json1_1EndpointNetworkConfiguration(input.EndpointNetworkConfiguration, context),
|
|
5923
|
-
})), (input.GatewayARN
|
|
6004
|
+
})), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.LocationARN != null && { LocationARN: input.LocationARN })), (input.Password != null && { Password: input.Password })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.UserName != null && { UserName: input.UserName }));
|
|
5924
6005
|
};
|
|
5925
6006
|
var serializeAws_json1_1AttachVolumeInput = function (input, context) {
|
|
5926
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.DiskId
|
|
5927
|
-
input.NetworkInterfaceId !== null && { NetworkInterfaceId: input.NetworkInterfaceId })), (input.TargetName !== undefined && input.TargetName !== null && { TargetName: input.TargetName })), (input.VolumeARN !== undefined && input.VolumeARN !== null && { VolumeARN: input.VolumeARN }));
|
|
6007
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DiskId != null && { DiskId: input.DiskId })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.NetworkInterfaceId != null && { NetworkInterfaceId: input.NetworkInterfaceId })), (input.TargetName != null && { TargetName: input.TargetName })), (input.VolumeARN != null && { VolumeARN: input.VolumeARN }));
|
|
5928
6008
|
};
|
|
5929
6009
|
var serializeAws_json1_1AutomaticTapeCreationRule = function (input, context) {
|
|
5930
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.MinimumNumTapes
|
|
5931
|
-
input.MinimumNumTapes !== null && { MinimumNumTapes: input.MinimumNumTapes })), (input.PoolId !== undefined && input.PoolId !== null && { PoolId: input.PoolId })), (input.TapeBarcodePrefix !== undefined &&
|
|
5932
|
-
input.TapeBarcodePrefix !== null && { TapeBarcodePrefix: input.TapeBarcodePrefix })), (input.TapeSizeInBytes !== undefined &&
|
|
5933
|
-
input.TapeSizeInBytes !== null && { TapeSizeInBytes: input.TapeSizeInBytes })), (input.Worm !== undefined && input.Worm !== null && { Worm: input.Worm }));
|
|
6010
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.MinimumNumTapes != null && { MinimumNumTapes: input.MinimumNumTapes })), (input.PoolId != null && { PoolId: input.PoolId })), (input.TapeBarcodePrefix != null && { TapeBarcodePrefix: input.TapeBarcodePrefix })), (input.TapeSizeInBytes != null && { TapeSizeInBytes: input.TapeSizeInBytes })), (input.Worm != null && { Worm: input.Worm }));
|
|
5934
6011
|
};
|
|
5935
6012
|
var serializeAws_json1_1AutomaticTapeCreationRules = function (input, context) {
|
|
5936
6013
|
return input
|
|
@@ -5943,17 +6020,11 @@ var serializeAws_json1_1AutomaticTapeCreationRules = function (input, context) {
|
|
|
5943
6020
|
});
|
|
5944
6021
|
};
|
|
5945
6022
|
var serializeAws_json1_1BandwidthRateLimitInterval = function (input, context) {
|
|
5946
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AverageDownloadRateLimitInBitsPerSec
|
|
5947
|
-
input.AverageDownloadRateLimitInBitsPerSec !== null && {
|
|
6023
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AverageDownloadRateLimitInBitsPerSec != null && {
|
|
5948
6024
|
AverageDownloadRateLimitInBitsPerSec: input.AverageDownloadRateLimitInBitsPerSec,
|
|
5949
|
-
})), (input.AverageUploadRateLimitInBitsPerSec
|
|
5950
|
-
input.AverageUploadRateLimitInBitsPerSec !== null && {
|
|
6025
|
+
})), (input.AverageUploadRateLimitInBitsPerSec != null && {
|
|
5951
6026
|
AverageUploadRateLimitInBitsPerSec: input.AverageUploadRateLimitInBitsPerSec,
|
|
5952
|
-
})), (input.DaysOfWeek
|
|
5953
|
-
input.DaysOfWeek !== null && { DaysOfWeek: serializeAws_json1_1DaysOfWeek(input.DaysOfWeek, context) })), (input.EndHourOfDay !== undefined && input.EndHourOfDay !== null && { EndHourOfDay: input.EndHourOfDay })), (input.EndMinuteOfHour !== undefined &&
|
|
5954
|
-
input.EndMinuteOfHour !== null && { EndMinuteOfHour: input.EndMinuteOfHour })), (input.StartHourOfDay !== undefined &&
|
|
5955
|
-
input.StartHourOfDay !== null && { StartHourOfDay: input.StartHourOfDay })), (input.StartMinuteOfHour !== undefined &&
|
|
5956
|
-
input.StartMinuteOfHour !== null && { StartMinuteOfHour: input.StartMinuteOfHour }));
|
|
6027
|
+
})), (input.DaysOfWeek != null && { DaysOfWeek: serializeAws_json1_1DaysOfWeek(input.DaysOfWeek, context) })), (input.EndHourOfDay != null && { EndHourOfDay: input.EndHourOfDay })), (input.EndMinuteOfHour != null && { EndMinuteOfHour: input.EndMinuteOfHour })), (input.StartHourOfDay != null && { StartHourOfDay: input.StartHourOfDay })), (input.StartMinuteOfHour != null && { StartMinuteOfHour: input.StartMinuteOfHour }));
|
|
5957
6028
|
};
|
|
5958
6029
|
var serializeAws_json1_1BandwidthRateLimitIntervals = function (input, context) {
|
|
5959
6030
|
return input
|
|
@@ -5966,83 +6037,48 @@ var serializeAws_json1_1BandwidthRateLimitIntervals = function (input, context)
|
|
|
5966
6037
|
});
|
|
5967
6038
|
};
|
|
5968
6039
|
var serializeAws_json1_1CacheAttributes = function (input, context) {
|
|
5969
|
-
return __assign({}, (input.CacheStaleTimeoutInSeconds
|
|
5970
|
-
input.CacheStaleTimeoutInSeconds !== null && { CacheStaleTimeoutInSeconds: input.CacheStaleTimeoutInSeconds }));
|
|
6040
|
+
return __assign({}, (input.CacheStaleTimeoutInSeconds != null && { CacheStaleTimeoutInSeconds: input.CacheStaleTimeoutInSeconds }));
|
|
5971
6041
|
};
|
|
5972
6042
|
var serializeAws_json1_1CancelArchivalInput = function (input, context) {
|
|
5973
|
-
return __assign(__assign({}, (input.GatewayARN
|
|
6043
|
+
return __assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.TapeARN != null && { TapeARN: input.TapeARN }));
|
|
5974
6044
|
};
|
|
5975
6045
|
var serializeAws_json1_1CancelRetrievalInput = function (input, context) {
|
|
5976
|
-
return __assign(__assign({}, (input.GatewayARN
|
|
6046
|
+
return __assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.TapeARN != null && { TapeARN: input.TapeARN }));
|
|
5977
6047
|
};
|
|
5978
6048
|
var serializeAws_json1_1CreateCachediSCSIVolumeInput = function (input, context) {
|
|
5979
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientToken
|
|
5980
|
-
input.NetworkInterfaceId !== null && { NetworkInterfaceId: input.NetworkInterfaceId })), (input.SnapshotId !== undefined && input.SnapshotId !== null && { SnapshotId: input.SnapshotId })), (input.SourceVolumeARN !== undefined &&
|
|
5981
|
-
input.SourceVolumeARN !== null && { SourceVolumeARN: input.SourceVolumeARN })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.TargetName !== undefined && input.TargetName !== null && { TargetName: input.TargetName })), (input.VolumeSizeInBytes !== undefined &&
|
|
5982
|
-
input.VolumeSizeInBytes !== null && { VolumeSizeInBytes: input.VolumeSizeInBytes }));
|
|
6049
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientToken != null && { ClientToken: input.ClientToken })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.KMSEncrypted != null && { KMSEncrypted: input.KMSEncrypted })), (input.KMSKey != null && { KMSKey: input.KMSKey })), (input.NetworkInterfaceId != null && { NetworkInterfaceId: input.NetworkInterfaceId })), (input.SnapshotId != null && { SnapshotId: input.SnapshotId })), (input.SourceVolumeARN != null && { SourceVolumeARN: input.SourceVolumeARN })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.TargetName != null && { TargetName: input.TargetName })), (input.VolumeSizeInBytes != null && { VolumeSizeInBytes: input.VolumeSizeInBytes }));
|
|
5983
6050
|
};
|
|
5984
6051
|
var serializeAws_json1_1CreateNFSFileShareInput = function (input, context) {
|
|
5985
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuditDestinationARN
|
|
5986
|
-
input.AuditDestinationARN !== null && { AuditDestinationARN: input.AuditDestinationARN })), (input.BucketRegion !== undefined && input.BucketRegion !== null && { BucketRegion: input.BucketRegion })), (input.CacheAttributes !== undefined &&
|
|
5987
|
-
input.CacheAttributes !== null && {
|
|
6052
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuditDestinationARN != null && { AuditDestinationARN: input.AuditDestinationARN })), (input.BucketRegion != null && { BucketRegion: input.BucketRegion })), (input.CacheAttributes != null && {
|
|
5988
6053
|
CacheAttributes: serializeAws_json1_1CacheAttributes(input.CacheAttributes, context),
|
|
5989
|
-
})), (input.ClientList
|
|
5990
|
-
input.ClientList !== null && { ClientList: serializeAws_json1_1FileShareClientList(input.ClientList, context) })), (input.ClientToken !== undefined && input.ClientToken !== null && { ClientToken: input.ClientToken })), (input.DefaultStorageClass !== undefined &&
|
|
5991
|
-
input.DefaultStorageClass !== null && { DefaultStorageClass: input.DefaultStorageClass })), (input.FileShareName !== undefined && input.FileShareName !== null && { FileShareName: input.FileShareName })), (input.GatewayARN !== undefined && input.GatewayARN !== null && { GatewayARN: input.GatewayARN })), (input.GuessMIMETypeEnabled !== undefined &&
|
|
5992
|
-
input.GuessMIMETypeEnabled !== null && { GuessMIMETypeEnabled: input.GuessMIMETypeEnabled })), (input.KMSEncrypted !== undefined && input.KMSEncrypted !== null && { KMSEncrypted: input.KMSEncrypted })), (input.KMSKey !== undefined && input.KMSKey !== null && { KMSKey: input.KMSKey })), (input.LocationARN !== undefined && input.LocationARN !== null && { LocationARN: input.LocationARN })), (input.NFSFileShareDefaults !== undefined &&
|
|
5993
|
-
input.NFSFileShareDefaults !== null && {
|
|
6054
|
+
})), (input.ClientList != null && { ClientList: serializeAws_json1_1FileShareClientList(input.ClientList, context) })), (input.ClientToken != null && { ClientToken: input.ClientToken })), (input.DefaultStorageClass != null && { DefaultStorageClass: input.DefaultStorageClass })), (input.FileShareName != null && { FileShareName: input.FileShareName })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.GuessMIMETypeEnabled != null && { GuessMIMETypeEnabled: input.GuessMIMETypeEnabled })), (input.KMSEncrypted != null && { KMSEncrypted: input.KMSEncrypted })), (input.KMSKey != null && { KMSKey: input.KMSKey })), (input.LocationARN != null && { LocationARN: input.LocationARN })), (input.NFSFileShareDefaults != null && {
|
|
5994
6055
|
NFSFileShareDefaults: serializeAws_json1_1NFSFileShareDefaults(input.NFSFileShareDefaults, context),
|
|
5995
|
-
})), (input.NotificationPolicy
|
|
5996
|
-
input.NotificationPolicy !== null && { NotificationPolicy: input.NotificationPolicy })), (input.ObjectACL !== undefined && input.ObjectACL !== null && { ObjectACL: input.ObjectACL })), (input.ReadOnly !== undefined && input.ReadOnly !== null && { ReadOnly: input.ReadOnly })), (input.RequesterPays !== undefined && input.RequesterPays !== null && { RequesterPays: input.RequesterPays })), (input.Role !== undefined && input.Role !== null && { Role: input.Role })), (input.Squash !== undefined && input.Squash !== null && { Squash: input.Squash })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VPCEndpointDNSName !== undefined &&
|
|
5997
|
-
input.VPCEndpointDNSName !== null && { VPCEndpointDNSName: input.VPCEndpointDNSName }));
|
|
6056
|
+
})), (input.NotificationPolicy != null && { NotificationPolicy: input.NotificationPolicy })), (input.ObjectACL != null && { ObjectACL: input.ObjectACL })), (input.ReadOnly != null && { ReadOnly: input.ReadOnly })), (input.RequesterPays != null && { RequesterPays: input.RequesterPays })), (input.Role != null && { Role: input.Role })), (input.Squash != null && { Squash: input.Squash })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VPCEndpointDNSName != null && { VPCEndpointDNSName: input.VPCEndpointDNSName }));
|
|
5998
6057
|
};
|
|
5999
6058
|
var serializeAws_json1_1CreateSMBFileShareInput = function (input, context) {
|
|
6000
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessBasedEnumeration
|
|
6001
|
-
input.AccessBasedEnumeration !== null && { AccessBasedEnumeration: input.AccessBasedEnumeration })), (input.AdminUserList !== undefined &&
|
|
6002
|
-
input.AdminUserList !== null && { AdminUserList: serializeAws_json1_1UserList(input.AdminUserList, context) })), (input.AuditDestinationARN !== undefined &&
|
|
6003
|
-
input.AuditDestinationARN !== null && { AuditDestinationARN: input.AuditDestinationARN })), (input.Authentication !== undefined &&
|
|
6004
|
-
input.Authentication !== null && { Authentication: input.Authentication })), (input.BucketRegion !== undefined && input.BucketRegion !== null && { BucketRegion: input.BucketRegion })), (input.CacheAttributes !== undefined &&
|
|
6005
|
-
input.CacheAttributes !== null && {
|
|
6059
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessBasedEnumeration != null && { AccessBasedEnumeration: input.AccessBasedEnumeration })), (input.AdminUserList != null && { AdminUserList: serializeAws_json1_1UserList(input.AdminUserList, context) })), (input.AuditDestinationARN != null && { AuditDestinationARN: input.AuditDestinationARN })), (input.Authentication != null && { Authentication: input.Authentication })), (input.BucketRegion != null && { BucketRegion: input.BucketRegion })), (input.CacheAttributes != null && {
|
|
6006
6060
|
CacheAttributes: serializeAws_json1_1CacheAttributes(input.CacheAttributes, context),
|
|
6007
|
-
})), (input.CaseSensitivity
|
|
6008
|
-
input.CaseSensitivity !== null && { CaseSensitivity: input.CaseSensitivity })), (input.ClientToken !== undefined && input.ClientToken !== null && { ClientToken: input.ClientToken })), (input.DefaultStorageClass !== undefined &&
|
|
6009
|
-
input.DefaultStorageClass !== null && { DefaultStorageClass: input.DefaultStorageClass })), (input.FileShareName !== undefined && input.FileShareName !== null && { FileShareName: input.FileShareName })), (input.GatewayARN !== undefined && input.GatewayARN !== null && { GatewayARN: input.GatewayARN })), (input.GuessMIMETypeEnabled !== undefined &&
|
|
6010
|
-
input.GuessMIMETypeEnabled !== null && { GuessMIMETypeEnabled: input.GuessMIMETypeEnabled })), (input.InvalidUserList !== undefined &&
|
|
6011
|
-
input.InvalidUserList !== null && {
|
|
6061
|
+
})), (input.CaseSensitivity != null && { CaseSensitivity: input.CaseSensitivity })), (input.ClientToken != null && { ClientToken: input.ClientToken })), (input.DefaultStorageClass != null && { DefaultStorageClass: input.DefaultStorageClass })), (input.FileShareName != null && { FileShareName: input.FileShareName })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.GuessMIMETypeEnabled != null && { GuessMIMETypeEnabled: input.GuessMIMETypeEnabled })), (input.InvalidUserList != null && {
|
|
6012
6062
|
InvalidUserList: serializeAws_json1_1UserList(input.InvalidUserList, context),
|
|
6013
|
-
})), (input.KMSEncrypted
|
|
6014
|
-
input.NotificationPolicy !== null && { NotificationPolicy: input.NotificationPolicy })), (input.ObjectACL !== undefined && input.ObjectACL !== null && { ObjectACL: input.ObjectACL })), (input.OplocksEnabled !== undefined &&
|
|
6015
|
-
input.OplocksEnabled !== null && { OplocksEnabled: input.OplocksEnabled })), (input.ReadOnly !== undefined && input.ReadOnly !== null && { ReadOnly: input.ReadOnly })), (input.RequesterPays !== undefined && input.RequesterPays !== null && { RequesterPays: input.RequesterPays })), (input.Role !== undefined && input.Role !== null && { Role: input.Role })), (input.SMBACLEnabled !== undefined && input.SMBACLEnabled !== null && { SMBACLEnabled: input.SMBACLEnabled })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VPCEndpointDNSName !== undefined &&
|
|
6016
|
-
input.VPCEndpointDNSName !== null && { VPCEndpointDNSName: input.VPCEndpointDNSName })), (input.ValidUserList !== undefined &&
|
|
6017
|
-
input.ValidUserList !== null && { ValidUserList: serializeAws_json1_1UserList(input.ValidUserList, context) }));
|
|
6063
|
+
})), (input.KMSEncrypted != null && { KMSEncrypted: input.KMSEncrypted })), (input.KMSKey != null && { KMSKey: input.KMSKey })), (input.LocationARN != null && { LocationARN: input.LocationARN })), (input.NotificationPolicy != null && { NotificationPolicy: input.NotificationPolicy })), (input.ObjectACL != null && { ObjectACL: input.ObjectACL })), (input.OplocksEnabled != null && { OplocksEnabled: input.OplocksEnabled })), (input.ReadOnly != null && { ReadOnly: input.ReadOnly })), (input.RequesterPays != null && { RequesterPays: input.RequesterPays })), (input.Role != null && { Role: input.Role })), (input.SMBACLEnabled != null && { SMBACLEnabled: input.SMBACLEnabled })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VPCEndpointDNSName != null && { VPCEndpointDNSName: input.VPCEndpointDNSName })), (input.ValidUserList != null && { ValidUserList: serializeAws_json1_1UserList(input.ValidUserList, context) }));
|
|
6018
6064
|
};
|
|
6019
6065
|
var serializeAws_json1_1CreateSnapshotFromVolumeRecoveryPointInput = function (input, context) {
|
|
6020
|
-
return __assign(__assign(__assign({}, (input.SnapshotDescription
|
|
6021
|
-
input.SnapshotDescription !== null && { SnapshotDescription: input.SnapshotDescription })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VolumeARN !== undefined && input.VolumeARN !== null && { VolumeARN: input.VolumeARN }));
|
|
6066
|
+
return __assign(__assign(__assign({}, (input.SnapshotDescription != null && { SnapshotDescription: input.SnapshotDescription })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VolumeARN != null && { VolumeARN: input.VolumeARN }));
|
|
6022
6067
|
};
|
|
6023
6068
|
var serializeAws_json1_1CreateSnapshotInput = function (input, context) {
|
|
6024
|
-
return __assign(__assign(__assign({}, (input.SnapshotDescription
|
|
6025
|
-
input.SnapshotDescription !== null && { SnapshotDescription: input.SnapshotDescription })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VolumeARN !== undefined && input.VolumeARN !== null && { VolumeARN: input.VolumeARN }));
|
|
6069
|
+
return __assign(__assign(__assign({}, (input.SnapshotDescription != null && { SnapshotDescription: input.SnapshotDescription })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VolumeARN != null && { VolumeARN: input.VolumeARN }));
|
|
6026
6070
|
};
|
|
6027
6071
|
var serializeAws_json1_1CreateStorediSCSIVolumeInput = function (input, context) {
|
|
6028
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DiskId
|
|
6029
|
-
input.NetworkInterfaceId !== null && { NetworkInterfaceId: input.NetworkInterfaceId })), (input.PreserveExistingData !== undefined &&
|
|
6030
|
-
input.PreserveExistingData !== null && { PreserveExistingData: input.PreserveExistingData })), (input.SnapshotId !== undefined && input.SnapshotId !== null && { SnapshotId: input.SnapshotId })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.TargetName !== undefined && input.TargetName !== null && { TargetName: input.TargetName }));
|
|
6072
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DiskId != null && { DiskId: input.DiskId })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.KMSEncrypted != null && { KMSEncrypted: input.KMSEncrypted })), (input.KMSKey != null && { KMSKey: input.KMSKey })), (input.NetworkInterfaceId != null && { NetworkInterfaceId: input.NetworkInterfaceId })), (input.PreserveExistingData != null && { PreserveExistingData: input.PreserveExistingData })), (input.SnapshotId != null && { SnapshotId: input.SnapshotId })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.TargetName != null && { TargetName: input.TargetName }));
|
|
6031
6073
|
};
|
|
6032
6074
|
var serializeAws_json1_1CreateTapePoolInput = function (input, context) {
|
|
6033
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.PoolName
|
|
6034
|
-
input.RetentionLockTimeInDays !== null && { RetentionLockTimeInDays: input.RetentionLockTimeInDays })), (input.RetentionLockType !== undefined &&
|
|
6035
|
-
input.RetentionLockType !== null && { RetentionLockType: input.RetentionLockType })), (input.StorageClass !== undefined && input.StorageClass !== null && { StorageClass: input.StorageClass })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
6075
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.PoolName != null && { PoolName: input.PoolName })), (input.RetentionLockTimeInDays != null && { RetentionLockTimeInDays: input.RetentionLockTimeInDays })), (input.RetentionLockType != null && { RetentionLockType: input.RetentionLockType })), (input.StorageClass != null && { StorageClass: input.StorageClass })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
6036
6076
|
};
|
|
6037
6077
|
var serializeAws_json1_1CreateTapesInput = function (input, context) {
|
|
6038
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientToken
|
|
6039
|
-
input.NumTapesToCreate !== null && { NumTapesToCreate: input.NumTapesToCreate })), (input.PoolId !== undefined && input.PoolId !== null && { PoolId: input.PoolId })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.TapeBarcodePrefix !== undefined &&
|
|
6040
|
-
input.TapeBarcodePrefix !== null && { TapeBarcodePrefix: input.TapeBarcodePrefix })), (input.TapeSizeInBytes !== undefined &&
|
|
6041
|
-
input.TapeSizeInBytes !== null && { TapeSizeInBytes: input.TapeSizeInBytes })), (input.Worm !== undefined && input.Worm !== null && { Worm: input.Worm }));
|
|
6078
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientToken != null && { ClientToken: input.ClientToken })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.KMSEncrypted != null && { KMSEncrypted: input.KMSEncrypted })), (input.KMSKey != null && { KMSKey: input.KMSKey })), (input.NumTapesToCreate != null && { NumTapesToCreate: input.NumTapesToCreate })), (input.PoolId != null && { PoolId: input.PoolId })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.TapeBarcodePrefix != null && { TapeBarcodePrefix: input.TapeBarcodePrefix })), (input.TapeSizeInBytes != null && { TapeSizeInBytes: input.TapeSizeInBytes })), (input.Worm != null && { Worm: input.Worm }));
|
|
6042
6079
|
};
|
|
6043
6080
|
var serializeAws_json1_1CreateTapeWithBarcodeInput = function (input, context) {
|
|
6044
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.GatewayARN
|
|
6045
|
-
input.TapeSizeInBytes !== null && { TapeSizeInBytes: input.TapeSizeInBytes })), (input.Worm !== undefined && input.Worm !== null && { Worm: input.Worm }));
|
|
6081
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.KMSEncrypted != null && { KMSEncrypted: input.KMSEncrypted })), (input.KMSKey != null && { KMSKey: input.KMSKey })), (input.PoolId != null && { PoolId: input.PoolId })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.TapeBarcode != null && { TapeBarcode: input.TapeBarcode })), (input.TapeSizeInBytes != null && { TapeSizeInBytes: input.TapeSizeInBytes })), (input.Worm != null && { Worm: input.Worm }));
|
|
6046
6082
|
};
|
|
6047
6083
|
var serializeAws_json1_1DaysOfWeek = function (input, context) {
|
|
6048
6084
|
return input
|
|
@@ -6055,122 +6091,111 @@ var serializeAws_json1_1DaysOfWeek = function (input, context) {
|
|
|
6055
6091
|
});
|
|
6056
6092
|
};
|
|
6057
6093
|
var serializeAws_json1_1DeleteAutomaticTapeCreationPolicyInput = function (input, context) {
|
|
6058
|
-
return __assign({}, (input.GatewayARN
|
|
6094
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6059
6095
|
};
|
|
6060
6096
|
var serializeAws_json1_1DeleteBandwidthRateLimitInput = function (input, context) {
|
|
6061
|
-
return __assign(__assign({}, (input.BandwidthType
|
|
6097
|
+
return __assign(__assign({}, (input.BandwidthType != null && { BandwidthType: input.BandwidthType })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6062
6098
|
};
|
|
6063
6099
|
var serializeAws_json1_1DeleteChapCredentialsInput = function (input, context) {
|
|
6064
|
-
return __assign(__assign({}, (input.InitiatorName
|
|
6100
|
+
return __assign(__assign({}, (input.InitiatorName != null && { InitiatorName: input.InitiatorName })), (input.TargetARN != null && { TargetARN: input.TargetARN }));
|
|
6065
6101
|
};
|
|
6066
6102
|
var serializeAws_json1_1DeleteFileShareInput = function (input, context) {
|
|
6067
|
-
return __assign(__assign({}, (input.FileShareARN
|
|
6103
|
+
return __assign(__assign({}, (input.FileShareARN != null && { FileShareARN: input.FileShareARN })), (input.ForceDelete != null && { ForceDelete: input.ForceDelete }));
|
|
6068
6104
|
};
|
|
6069
6105
|
var serializeAws_json1_1DeleteGatewayInput = function (input, context) {
|
|
6070
|
-
return __assign({}, (input.GatewayARN
|
|
6106
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6071
6107
|
};
|
|
6072
6108
|
var serializeAws_json1_1DeleteSnapshotScheduleInput = function (input, context) {
|
|
6073
|
-
return __assign({}, (input.VolumeARN
|
|
6109
|
+
return __assign({}, (input.VolumeARN != null && { VolumeARN: input.VolumeARN }));
|
|
6074
6110
|
};
|
|
6075
6111
|
var serializeAws_json1_1DeleteTapeArchiveInput = function (input, context) {
|
|
6076
|
-
return __assign(__assign({}, (input.BypassGovernanceRetention
|
|
6077
|
-
input.BypassGovernanceRetention !== null && { BypassGovernanceRetention: input.BypassGovernanceRetention })), (input.TapeARN !== undefined && input.TapeARN !== null && { TapeARN: input.TapeARN }));
|
|
6112
|
+
return __assign(__assign({}, (input.BypassGovernanceRetention != null && { BypassGovernanceRetention: input.BypassGovernanceRetention })), (input.TapeARN != null && { TapeARN: input.TapeARN }));
|
|
6078
6113
|
};
|
|
6079
6114
|
var serializeAws_json1_1DeleteTapeInput = function (input, context) {
|
|
6080
|
-
return __assign(__assign(__assign({}, (input.BypassGovernanceRetention
|
|
6081
|
-
input.BypassGovernanceRetention !== null && { BypassGovernanceRetention: input.BypassGovernanceRetention })), (input.GatewayARN !== undefined && input.GatewayARN !== null && { GatewayARN: input.GatewayARN })), (input.TapeARN !== undefined && input.TapeARN !== null && { TapeARN: input.TapeARN }));
|
|
6115
|
+
return __assign(__assign(__assign({}, (input.BypassGovernanceRetention != null && { BypassGovernanceRetention: input.BypassGovernanceRetention })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.TapeARN != null && { TapeARN: input.TapeARN }));
|
|
6082
6116
|
};
|
|
6083
6117
|
var serializeAws_json1_1DeleteTapePoolInput = function (input, context) {
|
|
6084
|
-
return __assign({}, (input.PoolARN
|
|
6118
|
+
return __assign({}, (input.PoolARN != null && { PoolARN: input.PoolARN }));
|
|
6085
6119
|
};
|
|
6086
6120
|
var serializeAws_json1_1DeleteVolumeInput = function (input, context) {
|
|
6087
|
-
return __assign({}, (input.VolumeARN
|
|
6121
|
+
return __assign({}, (input.VolumeARN != null && { VolumeARN: input.VolumeARN }));
|
|
6088
6122
|
};
|
|
6089
6123
|
var serializeAws_json1_1DescribeAvailabilityMonitorTestInput = function (input, context) {
|
|
6090
|
-
return __assign({}, (input.GatewayARN
|
|
6124
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6091
6125
|
};
|
|
6092
6126
|
var serializeAws_json1_1DescribeBandwidthRateLimitInput = function (input, context) {
|
|
6093
|
-
return __assign({}, (input.GatewayARN
|
|
6127
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6094
6128
|
};
|
|
6095
6129
|
var serializeAws_json1_1DescribeBandwidthRateLimitScheduleInput = function (input, context) {
|
|
6096
|
-
return __assign({}, (input.GatewayARN
|
|
6130
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6097
6131
|
};
|
|
6098
6132
|
var serializeAws_json1_1DescribeCachediSCSIVolumesInput = function (input, context) {
|
|
6099
|
-
return __assign({}, (input.VolumeARNs
|
|
6100
|
-
input.VolumeARNs !== null && { VolumeARNs: serializeAws_json1_1VolumeARNs(input.VolumeARNs, context) }));
|
|
6133
|
+
return __assign({}, (input.VolumeARNs != null && { VolumeARNs: serializeAws_json1_1VolumeARNs(input.VolumeARNs, context) }));
|
|
6101
6134
|
};
|
|
6102
6135
|
var serializeAws_json1_1DescribeCacheInput = function (input, context) {
|
|
6103
|
-
return __assign({}, (input.GatewayARN
|
|
6136
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6104
6137
|
};
|
|
6105
6138
|
var serializeAws_json1_1DescribeChapCredentialsInput = function (input, context) {
|
|
6106
|
-
return __assign({}, (input.TargetARN
|
|
6139
|
+
return __assign({}, (input.TargetARN != null && { TargetARN: input.TargetARN }));
|
|
6107
6140
|
};
|
|
6108
6141
|
var serializeAws_json1_1DescribeFileSystemAssociationsInput = function (input, context) {
|
|
6109
|
-
return __assign({}, (input.FileSystemAssociationARNList
|
|
6110
|
-
input.FileSystemAssociationARNList !== null && {
|
|
6142
|
+
return __assign({}, (input.FileSystemAssociationARNList != null && {
|
|
6111
6143
|
FileSystemAssociationARNList: serializeAws_json1_1FileSystemAssociationARNList(input.FileSystemAssociationARNList, context),
|
|
6112
6144
|
}));
|
|
6113
6145
|
};
|
|
6114
6146
|
var serializeAws_json1_1DescribeGatewayInformationInput = function (input, context) {
|
|
6115
|
-
return __assign({}, (input.GatewayARN
|
|
6147
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6116
6148
|
};
|
|
6117
6149
|
var serializeAws_json1_1DescribeMaintenanceStartTimeInput = function (input, context) {
|
|
6118
|
-
return __assign({}, (input.GatewayARN
|
|
6150
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6119
6151
|
};
|
|
6120
6152
|
var serializeAws_json1_1DescribeNFSFileSharesInput = function (input, context) {
|
|
6121
|
-
return __assign({}, (input.FileShareARNList
|
|
6122
|
-
input.FileShareARNList !== null && {
|
|
6153
|
+
return __assign({}, (input.FileShareARNList != null && {
|
|
6123
6154
|
FileShareARNList: serializeAws_json1_1FileShareARNList(input.FileShareARNList, context),
|
|
6124
6155
|
}));
|
|
6125
6156
|
};
|
|
6126
6157
|
var serializeAws_json1_1DescribeSMBFileSharesInput = function (input, context) {
|
|
6127
|
-
return __assign({}, (input.FileShareARNList
|
|
6128
|
-
input.FileShareARNList !== null && {
|
|
6158
|
+
return __assign({}, (input.FileShareARNList != null && {
|
|
6129
6159
|
FileShareARNList: serializeAws_json1_1FileShareARNList(input.FileShareARNList, context),
|
|
6130
6160
|
}));
|
|
6131
6161
|
};
|
|
6132
6162
|
var serializeAws_json1_1DescribeSMBSettingsInput = function (input, context) {
|
|
6133
|
-
return __assign({}, (input.GatewayARN
|
|
6163
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6134
6164
|
};
|
|
6135
6165
|
var serializeAws_json1_1DescribeSnapshotScheduleInput = function (input, context) {
|
|
6136
|
-
return __assign({}, (input.VolumeARN
|
|
6166
|
+
return __assign({}, (input.VolumeARN != null && { VolumeARN: input.VolumeARN }));
|
|
6137
6167
|
};
|
|
6138
6168
|
var serializeAws_json1_1DescribeStorediSCSIVolumesInput = function (input, context) {
|
|
6139
|
-
return __assign({}, (input.VolumeARNs
|
|
6140
|
-
input.VolumeARNs !== null && { VolumeARNs: serializeAws_json1_1VolumeARNs(input.VolumeARNs, context) }));
|
|
6169
|
+
return __assign({}, (input.VolumeARNs != null && { VolumeARNs: serializeAws_json1_1VolumeARNs(input.VolumeARNs, context) }));
|
|
6141
6170
|
};
|
|
6142
6171
|
var serializeAws_json1_1DescribeTapeArchivesInput = function (input, context) {
|
|
6143
|
-
return __assign(__assign(__assign({}, (input.Limit
|
|
6144
|
-
input.TapeARNs !== null && { TapeARNs: serializeAws_json1_1TapeARNs(input.TapeARNs, context) }));
|
|
6172
|
+
return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker })), (input.TapeARNs != null && { TapeARNs: serializeAws_json1_1TapeARNs(input.TapeARNs, context) }));
|
|
6145
6173
|
};
|
|
6146
6174
|
var serializeAws_json1_1DescribeTapeRecoveryPointsInput = function (input, context) {
|
|
6147
|
-
return __assign(__assign(__assign({}, (input.GatewayARN
|
|
6175
|
+
return __assign(__assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
6148
6176
|
};
|
|
6149
6177
|
var serializeAws_json1_1DescribeTapesInput = function (input, context) {
|
|
6150
|
-
return __assign(__assign(__assign(__assign({}, (input.GatewayARN
|
|
6151
|
-
input.TapeARNs !== null && { TapeARNs: serializeAws_json1_1TapeARNs(input.TapeARNs, context) }));
|
|
6178
|
+
return __assign(__assign(__assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker })), (input.TapeARNs != null && { TapeARNs: serializeAws_json1_1TapeARNs(input.TapeARNs, context) }));
|
|
6152
6179
|
};
|
|
6153
6180
|
var serializeAws_json1_1DescribeUploadBufferInput = function (input, context) {
|
|
6154
|
-
return __assign({}, (input.GatewayARN
|
|
6181
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6155
6182
|
};
|
|
6156
6183
|
var serializeAws_json1_1DescribeVTLDevicesInput = function (input, context) {
|
|
6157
|
-
return __assign(__assign(__assign(__assign({}, (input.GatewayARN
|
|
6158
|
-
input.VTLDeviceARNs !== null && {
|
|
6184
|
+
return __assign(__assign(__assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker })), (input.VTLDeviceARNs != null && {
|
|
6159
6185
|
VTLDeviceARNs: serializeAws_json1_1VTLDeviceARNs(input.VTLDeviceARNs, context),
|
|
6160
6186
|
}));
|
|
6161
6187
|
};
|
|
6162
6188
|
var serializeAws_json1_1DescribeWorkingStorageInput = function (input, context) {
|
|
6163
|
-
return __assign({}, (input.GatewayARN
|
|
6189
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6164
6190
|
};
|
|
6165
6191
|
var serializeAws_json1_1DetachVolumeInput = function (input, context) {
|
|
6166
|
-
return __assign(__assign({}, (input.ForceDetach
|
|
6192
|
+
return __assign(__assign({}, (input.ForceDetach != null && { ForceDetach: input.ForceDetach })), (input.VolumeARN != null && { VolumeARN: input.VolumeARN }));
|
|
6167
6193
|
};
|
|
6168
6194
|
var serializeAws_json1_1DisableGatewayInput = function (input, context) {
|
|
6169
|
-
return __assign({}, (input.GatewayARN
|
|
6195
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6170
6196
|
};
|
|
6171
6197
|
var serializeAws_json1_1DisassociateFileSystemInput = function (input, context) {
|
|
6172
|
-
return __assign(__assign({}, (input.FileSystemAssociationARN
|
|
6173
|
-
input.FileSystemAssociationARN !== null && { FileSystemAssociationARN: input.FileSystemAssociationARN })), (input.ForceDelete !== undefined && input.ForceDelete !== null && { ForceDelete: input.ForceDelete }));
|
|
6198
|
+
return __assign(__assign({}, (input.FileSystemAssociationARN != null && { FileSystemAssociationARN: input.FileSystemAssociationARN })), (input.ForceDelete != null && { ForceDelete: input.ForceDelete }));
|
|
6174
6199
|
};
|
|
6175
6200
|
var serializeAws_json1_1DiskIds = function (input, context) {
|
|
6176
6201
|
return input
|
|
@@ -6183,8 +6208,7 @@ var serializeAws_json1_1DiskIds = function (input, context) {
|
|
|
6183
6208
|
});
|
|
6184
6209
|
};
|
|
6185
6210
|
var serializeAws_json1_1EndpointNetworkConfiguration = function (input, context) {
|
|
6186
|
-
return __assign({}, (input.IpAddresses
|
|
6187
|
-
input.IpAddresses !== null && { IpAddresses: serializeAws_json1_1IpAddressList(input.IpAddresses, context) }));
|
|
6211
|
+
return __assign({}, (input.IpAddresses != null && { IpAddresses: serializeAws_json1_1IpAddressList(input.IpAddresses, context) }));
|
|
6188
6212
|
};
|
|
6189
6213
|
var serializeAws_json1_1FileShareARNList = function (input, context) {
|
|
6190
6214
|
return input
|
|
@@ -6247,53 +6271,48 @@ var serializeAws_json1_1IpAddressList = function (input, context) {
|
|
|
6247
6271
|
});
|
|
6248
6272
|
};
|
|
6249
6273
|
var serializeAws_json1_1JoinDomainInput = function (input, context) {
|
|
6250
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DomainControllers
|
|
6251
|
-
input.DomainControllers !== null && {
|
|
6274
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DomainControllers != null && {
|
|
6252
6275
|
DomainControllers: serializeAws_json1_1Hosts(input.DomainControllers, context),
|
|
6253
|
-
})), (input.DomainName
|
|
6254
|
-
input.OrganizationalUnit !== null && { OrganizationalUnit: input.OrganizationalUnit })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.TimeoutInSeconds !== undefined &&
|
|
6255
|
-
input.TimeoutInSeconds !== null && { TimeoutInSeconds: input.TimeoutInSeconds })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
|
|
6276
|
+
})), (input.DomainName != null && { DomainName: input.DomainName })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.OrganizationalUnit != null && { OrganizationalUnit: input.OrganizationalUnit })), (input.Password != null && { Password: input.Password })), (input.TimeoutInSeconds != null && { TimeoutInSeconds: input.TimeoutInSeconds })), (input.UserName != null && { UserName: input.UserName }));
|
|
6256
6277
|
};
|
|
6257
6278
|
var serializeAws_json1_1ListAutomaticTapeCreationPoliciesInput = function (input, context) {
|
|
6258
|
-
return __assign({}, (input.GatewayARN
|
|
6279
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6259
6280
|
};
|
|
6260
6281
|
var serializeAws_json1_1ListFileSharesInput = function (input, context) {
|
|
6261
|
-
return __assign(__assign(__assign({}, (input.GatewayARN
|
|
6282
|
+
return __assign(__assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
6262
6283
|
};
|
|
6263
6284
|
var serializeAws_json1_1ListFileSystemAssociationsInput = function (input, context) {
|
|
6264
|
-
return __assign(__assign(__assign({}, (input.GatewayARN
|
|
6285
|
+
return __assign(__assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
6265
6286
|
};
|
|
6266
6287
|
var serializeAws_json1_1ListGatewaysInput = function (input, context) {
|
|
6267
|
-
return __assign(__assign({}, (input.Limit
|
|
6288
|
+
return __assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
6268
6289
|
};
|
|
6269
6290
|
var serializeAws_json1_1ListLocalDisksInput = function (input, context) {
|
|
6270
|
-
return __assign({}, (input.GatewayARN
|
|
6291
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6271
6292
|
};
|
|
6272
6293
|
var serializeAws_json1_1ListTagsForResourceInput = function (input, context) {
|
|
6273
|
-
return __assign(__assign(__assign({}, (input.Limit
|
|
6294
|
+
return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker })), (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
|
|
6274
6295
|
};
|
|
6275
6296
|
var serializeAws_json1_1ListTapePoolsInput = function (input, context) {
|
|
6276
|
-
return __assign(__assign(__assign({}, (input.Limit
|
|
6277
|
-
input.PoolARNs !== null && { PoolARNs: serializeAws_json1_1PoolARNs(input.PoolARNs, context) }));
|
|
6297
|
+
return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker })), (input.PoolARNs != null && { PoolARNs: serializeAws_json1_1PoolARNs(input.PoolARNs, context) }));
|
|
6278
6298
|
};
|
|
6279
6299
|
var serializeAws_json1_1ListTapesInput = function (input, context) {
|
|
6280
|
-
return __assign(__assign(__assign({}, (input.Limit
|
|
6281
|
-
input.TapeARNs !== null && { TapeARNs: serializeAws_json1_1TapeARNs(input.TapeARNs, context) }));
|
|
6300
|
+
return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker })), (input.TapeARNs != null && { TapeARNs: serializeAws_json1_1TapeARNs(input.TapeARNs, context) }));
|
|
6282
6301
|
};
|
|
6283
6302
|
var serializeAws_json1_1ListVolumeInitiatorsInput = function (input, context) {
|
|
6284
|
-
return __assign({}, (input.VolumeARN
|
|
6303
|
+
return __assign({}, (input.VolumeARN != null && { VolumeARN: input.VolumeARN }));
|
|
6285
6304
|
};
|
|
6286
6305
|
var serializeAws_json1_1ListVolumeRecoveryPointsInput = function (input, context) {
|
|
6287
|
-
return __assign({}, (input.GatewayARN
|
|
6306
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6288
6307
|
};
|
|
6289
6308
|
var serializeAws_json1_1ListVolumesInput = function (input, context) {
|
|
6290
|
-
return __assign(__assign(__assign({}, (input.GatewayARN
|
|
6309
|
+
return __assign(__assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.Limit != null && { Limit: input.Limit })), (input.Marker != null && { Marker: input.Marker }));
|
|
6291
6310
|
};
|
|
6292
6311
|
var serializeAws_json1_1NFSFileShareDefaults = function (input, context) {
|
|
6293
|
-
return __assign(__assign(__assign(__assign({}, (input.DirectoryMode
|
|
6312
|
+
return __assign(__assign(__assign(__assign({}, (input.DirectoryMode != null && { DirectoryMode: input.DirectoryMode })), (input.FileMode != null && { FileMode: input.FileMode })), (input.GroupId != null && { GroupId: input.GroupId })), (input.OwnerId != null && { OwnerId: input.OwnerId }));
|
|
6294
6313
|
};
|
|
6295
6314
|
var serializeAws_json1_1NotifyWhenUploadedInput = function (input, context) {
|
|
6296
|
-
return __assign({}, (input.FileShareARN
|
|
6315
|
+
return __assign({}, (input.FileShareARN != null && { FileShareARN: input.FileShareARN }));
|
|
6297
6316
|
};
|
|
6298
6317
|
var serializeAws_json1_1PoolARNs = function (input, context) {
|
|
6299
6318
|
return input
|
|
@@ -6306,44 +6325,40 @@ var serializeAws_json1_1PoolARNs = function (input, context) {
|
|
|
6306
6325
|
});
|
|
6307
6326
|
};
|
|
6308
6327
|
var serializeAws_json1_1RefreshCacheInput = function (input, context) {
|
|
6309
|
-
return __assign(__assign(__assign({}, (input.FileShareARN
|
|
6310
|
-
input.FolderList !== null && { FolderList: serializeAws_json1_1FolderList(input.FolderList, context) })), (input.Recursive !== undefined && input.Recursive !== null && { Recursive: input.Recursive }));
|
|
6328
|
+
return __assign(__assign(__assign({}, (input.FileShareARN != null && { FileShareARN: input.FileShareARN })), (input.FolderList != null && { FolderList: serializeAws_json1_1FolderList(input.FolderList, context) })), (input.Recursive != null && { Recursive: input.Recursive }));
|
|
6311
6329
|
};
|
|
6312
6330
|
var serializeAws_json1_1RemoveTagsFromResourceInput = function (input, context) {
|
|
6313
|
-
return __assign(__assign({}, (input.ResourceARN
|
|
6314
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }));
|
|
6331
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }));
|
|
6315
6332
|
};
|
|
6316
6333
|
var serializeAws_json1_1ResetCacheInput = function (input, context) {
|
|
6317
|
-
return __assign({}, (input.GatewayARN
|
|
6334
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6318
6335
|
};
|
|
6319
6336
|
var serializeAws_json1_1RetrieveTapeArchiveInput = function (input, context) {
|
|
6320
|
-
return __assign(__assign({}, (input.GatewayARN
|
|
6337
|
+
return __assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.TapeARN != null && { TapeARN: input.TapeARN }));
|
|
6321
6338
|
};
|
|
6322
6339
|
var serializeAws_json1_1RetrieveTapeRecoveryPointInput = function (input, context) {
|
|
6323
|
-
return __assign(__assign({}, (input.GatewayARN
|
|
6340
|
+
return __assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.TapeARN != null && { TapeARN: input.TapeARN }));
|
|
6324
6341
|
};
|
|
6325
6342
|
var serializeAws_json1_1SetLocalConsolePasswordInput = function (input, context) {
|
|
6326
|
-
return __assign(__assign({}, (input.GatewayARN
|
|
6327
|
-
input.LocalConsolePassword !== null && { LocalConsolePassword: input.LocalConsolePassword }));
|
|
6343
|
+
return __assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.LocalConsolePassword != null && { LocalConsolePassword: input.LocalConsolePassword }));
|
|
6328
6344
|
};
|
|
6329
6345
|
var serializeAws_json1_1SetSMBGuestPasswordInput = function (input, context) {
|
|
6330
|
-
return __assign(__assign({}, (input.GatewayARN
|
|
6346
|
+
return __assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.Password != null && { Password: input.Password }));
|
|
6331
6347
|
};
|
|
6332
6348
|
var serializeAws_json1_1ShutdownGatewayInput = function (input, context) {
|
|
6333
|
-
return __assign({}, (input.GatewayARN
|
|
6349
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6334
6350
|
};
|
|
6335
6351
|
var serializeAws_json1_1SMBLocalGroups = function (input, context) {
|
|
6336
|
-
return __assign({}, (input.GatewayAdmins
|
|
6337
|
-
input.GatewayAdmins !== null && { GatewayAdmins: serializeAws_json1_1UserList(input.GatewayAdmins, context) }));
|
|
6352
|
+
return __assign({}, (input.GatewayAdmins != null && { GatewayAdmins: serializeAws_json1_1UserList(input.GatewayAdmins, context) }));
|
|
6338
6353
|
};
|
|
6339
6354
|
var serializeAws_json1_1StartAvailabilityMonitorTestInput = function (input, context) {
|
|
6340
|
-
return __assign({}, (input.GatewayARN
|
|
6355
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6341
6356
|
};
|
|
6342
6357
|
var serializeAws_json1_1StartGatewayInput = function (input, context) {
|
|
6343
|
-
return __assign({}, (input.GatewayARN
|
|
6358
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6344
6359
|
};
|
|
6345
6360
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
6346
|
-
return __assign(__assign({}, (input.Key
|
|
6361
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
6347
6362
|
};
|
|
6348
6363
|
var serializeAws_json1_1TagKeys = function (input, context) {
|
|
6349
6364
|
return input
|
|
@@ -6376,105 +6391,71 @@ var serializeAws_json1_1TapeARNs = function (input, context) {
|
|
|
6376
6391
|
});
|
|
6377
6392
|
};
|
|
6378
6393
|
var serializeAws_json1_1UpdateAutomaticTapeCreationPolicyInput = function (input, context) {
|
|
6379
|
-
return __assign(__assign({}, (input.AutomaticTapeCreationRules
|
|
6380
|
-
input.AutomaticTapeCreationRules !== null && {
|
|
6394
|
+
return __assign(__assign({}, (input.AutomaticTapeCreationRules != null && {
|
|
6381
6395
|
AutomaticTapeCreationRules: serializeAws_json1_1AutomaticTapeCreationRules(input.AutomaticTapeCreationRules, context),
|
|
6382
|
-
})), (input.GatewayARN
|
|
6396
|
+
})), (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6383
6397
|
};
|
|
6384
6398
|
var serializeAws_json1_1UpdateBandwidthRateLimitInput = function (input, context) {
|
|
6385
|
-
return __assign(__assign(__assign({}, (input.AverageDownloadRateLimitInBitsPerSec
|
|
6386
|
-
input.AverageDownloadRateLimitInBitsPerSec !== null && {
|
|
6399
|
+
return __assign(__assign(__assign({}, (input.AverageDownloadRateLimitInBitsPerSec != null && {
|
|
6387
6400
|
AverageDownloadRateLimitInBitsPerSec: input.AverageDownloadRateLimitInBitsPerSec,
|
|
6388
|
-
})), (input.AverageUploadRateLimitInBitsPerSec
|
|
6389
|
-
input.AverageUploadRateLimitInBitsPerSec !== null && {
|
|
6401
|
+
})), (input.AverageUploadRateLimitInBitsPerSec != null && {
|
|
6390
6402
|
AverageUploadRateLimitInBitsPerSec: input.AverageUploadRateLimitInBitsPerSec,
|
|
6391
|
-
})), (input.GatewayARN
|
|
6403
|
+
})), (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6392
6404
|
};
|
|
6393
6405
|
var serializeAws_json1_1UpdateBandwidthRateLimitScheduleInput = function (input, context) {
|
|
6394
|
-
return __assign(__assign({}, (input.BandwidthRateLimitIntervals
|
|
6395
|
-
input.BandwidthRateLimitIntervals !== null && {
|
|
6406
|
+
return __assign(__assign({}, (input.BandwidthRateLimitIntervals != null && {
|
|
6396
6407
|
BandwidthRateLimitIntervals: serializeAws_json1_1BandwidthRateLimitIntervals(input.BandwidthRateLimitIntervals, context),
|
|
6397
|
-
})), (input.GatewayARN
|
|
6408
|
+
})), (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6398
6409
|
};
|
|
6399
6410
|
var serializeAws_json1_1UpdateChapCredentialsInput = function (input, context) {
|
|
6400
|
-
return __assign(__assign(__assign(__assign({}, (input.InitiatorName
|
|
6401
|
-
input.SecretToAuthenticateInitiator !== null && {
|
|
6411
|
+
return __assign(__assign(__assign(__assign({}, (input.InitiatorName != null && { InitiatorName: input.InitiatorName })), (input.SecretToAuthenticateInitiator != null && {
|
|
6402
6412
|
SecretToAuthenticateInitiator: input.SecretToAuthenticateInitiator,
|
|
6403
|
-
})), (input.SecretToAuthenticateTarget
|
|
6404
|
-
input.SecretToAuthenticateTarget !== null && { SecretToAuthenticateTarget: input.SecretToAuthenticateTarget })), (input.TargetARN !== undefined && input.TargetARN !== null && { TargetARN: input.TargetARN }));
|
|
6413
|
+
})), (input.SecretToAuthenticateTarget != null && { SecretToAuthenticateTarget: input.SecretToAuthenticateTarget })), (input.TargetARN != null && { TargetARN: input.TargetARN }));
|
|
6405
6414
|
};
|
|
6406
6415
|
var serializeAws_json1_1UpdateFileSystemAssociationInput = function (input, context) {
|
|
6407
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AuditDestinationARN
|
|
6408
|
-
input.AuditDestinationARN !== null && { AuditDestinationARN: input.AuditDestinationARN })), (input.CacheAttributes !== undefined &&
|
|
6409
|
-
input.CacheAttributes !== null && {
|
|
6416
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AuditDestinationARN != null && { AuditDestinationARN: input.AuditDestinationARN })), (input.CacheAttributes != null && {
|
|
6410
6417
|
CacheAttributes: serializeAws_json1_1CacheAttributes(input.CacheAttributes, context),
|
|
6411
|
-
})), (input.FileSystemAssociationARN
|
|
6412
|
-
input.FileSystemAssociationARN !== null && { FileSystemAssociationARN: input.FileSystemAssociationARN })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.UserName !== undefined && input.UserName !== null && { UserName: input.UserName }));
|
|
6418
|
+
})), (input.FileSystemAssociationARN != null && { FileSystemAssociationARN: input.FileSystemAssociationARN })), (input.Password != null && { Password: input.Password })), (input.UserName != null && { UserName: input.UserName }));
|
|
6413
6419
|
};
|
|
6414
6420
|
var serializeAws_json1_1UpdateGatewayInformationInput = function (input, context) {
|
|
6415
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogGroupARN
|
|
6416
|
-
input.CloudWatchLogGroupARN !== null && { CloudWatchLogGroupARN: input.CloudWatchLogGroupARN })), (input.GatewayARN !== undefined && input.GatewayARN !== null && { GatewayARN: input.GatewayARN })), (input.GatewayCapacity !== undefined &&
|
|
6417
|
-
input.GatewayCapacity !== null && { GatewayCapacity: input.GatewayCapacity })), (input.GatewayName !== undefined && input.GatewayName !== null && { GatewayName: input.GatewayName })), (input.GatewayTimezone !== undefined &&
|
|
6418
|
-
input.GatewayTimezone !== null && { GatewayTimezone: input.GatewayTimezone }));
|
|
6421
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.CloudWatchLogGroupARN != null && { CloudWatchLogGroupARN: input.CloudWatchLogGroupARN })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.GatewayCapacity != null && { GatewayCapacity: input.GatewayCapacity })), (input.GatewayName != null && { GatewayName: input.GatewayName })), (input.GatewayTimezone != null && { GatewayTimezone: input.GatewayTimezone }));
|
|
6419
6422
|
};
|
|
6420
6423
|
var serializeAws_json1_1UpdateGatewaySoftwareNowInput = function (input, context) {
|
|
6421
|
-
return __assign({}, (input.GatewayARN
|
|
6424
|
+
return __assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6422
6425
|
};
|
|
6423
6426
|
var serializeAws_json1_1UpdateMaintenanceStartTimeInput = function (input, context) {
|
|
6424
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.DayOfMonth
|
|
6427
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DayOfMonth != null && { DayOfMonth: input.DayOfMonth })), (input.DayOfWeek != null && { DayOfWeek: input.DayOfWeek })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.HourOfDay != null && { HourOfDay: input.HourOfDay })), (input.MinuteOfHour != null && { MinuteOfHour: input.MinuteOfHour }));
|
|
6425
6428
|
};
|
|
6426
6429
|
var serializeAws_json1_1UpdateNFSFileShareInput = function (input, context) {
|
|
6427
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuditDestinationARN
|
|
6428
|
-
input.AuditDestinationARN !== null && { AuditDestinationARN: input.AuditDestinationARN })), (input.CacheAttributes !== undefined &&
|
|
6429
|
-
input.CacheAttributes !== null && {
|
|
6430
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AuditDestinationARN != null && { AuditDestinationARN: input.AuditDestinationARN })), (input.CacheAttributes != null && {
|
|
6430
6431
|
CacheAttributes: serializeAws_json1_1CacheAttributes(input.CacheAttributes, context),
|
|
6431
|
-
})), (input.ClientList
|
|
6432
|
-
input.ClientList !== null && { ClientList: serializeAws_json1_1FileShareClientList(input.ClientList, context) })), (input.DefaultStorageClass !== undefined &&
|
|
6433
|
-
input.DefaultStorageClass !== null && { DefaultStorageClass: input.DefaultStorageClass })), (input.FileShareARN !== undefined && input.FileShareARN !== null && { FileShareARN: input.FileShareARN })), (input.FileShareName !== undefined && input.FileShareName !== null && { FileShareName: input.FileShareName })), (input.GuessMIMETypeEnabled !== undefined &&
|
|
6434
|
-
input.GuessMIMETypeEnabled !== null && { GuessMIMETypeEnabled: input.GuessMIMETypeEnabled })), (input.KMSEncrypted !== undefined && input.KMSEncrypted !== null && { KMSEncrypted: input.KMSEncrypted })), (input.KMSKey !== undefined && input.KMSKey !== null && { KMSKey: input.KMSKey })), (input.NFSFileShareDefaults !== undefined &&
|
|
6435
|
-
input.NFSFileShareDefaults !== null && {
|
|
6432
|
+
})), (input.ClientList != null && { ClientList: serializeAws_json1_1FileShareClientList(input.ClientList, context) })), (input.DefaultStorageClass != null && { DefaultStorageClass: input.DefaultStorageClass })), (input.FileShareARN != null && { FileShareARN: input.FileShareARN })), (input.FileShareName != null && { FileShareName: input.FileShareName })), (input.GuessMIMETypeEnabled != null && { GuessMIMETypeEnabled: input.GuessMIMETypeEnabled })), (input.KMSEncrypted != null && { KMSEncrypted: input.KMSEncrypted })), (input.KMSKey != null && { KMSKey: input.KMSKey })), (input.NFSFileShareDefaults != null && {
|
|
6436
6433
|
NFSFileShareDefaults: serializeAws_json1_1NFSFileShareDefaults(input.NFSFileShareDefaults, context),
|
|
6437
|
-
})), (input.NotificationPolicy
|
|
6438
|
-
input.NotificationPolicy !== null && { NotificationPolicy: input.NotificationPolicy })), (input.ObjectACL !== undefined && input.ObjectACL !== null && { ObjectACL: input.ObjectACL })), (input.ReadOnly !== undefined && input.ReadOnly !== null && { ReadOnly: input.ReadOnly })), (input.RequesterPays !== undefined && input.RequesterPays !== null && { RequesterPays: input.RequesterPays })), (input.Squash !== undefined && input.Squash !== null && { Squash: input.Squash }));
|
|
6434
|
+
})), (input.NotificationPolicy != null && { NotificationPolicy: input.NotificationPolicy })), (input.ObjectACL != null && { ObjectACL: input.ObjectACL })), (input.ReadOnly != null && { ReadOnly: input.ReadOnly })), (input.RequesterPays != null && { RequesterPays: input.RequesterPays })), (input.Squash != null && { Squash: input.Squash }));
|
|
6439
6435
|
};
|
|
6440
6436
|
var serializeAws_json1_1UpdateSMBFileShareInput = function (input, context) {
|
|
6441
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessBasedEnumeration
|
|
6442
|
-
input.AccessBasedEnumeration !== null && { AccessBasedEnumeration: input.AccessBasedEnumeration })), (input.AdminUserList !== undefined &&
|
|
6443
|
-
input.AdminUserList !== null && { AdminUserList: serializeAws_json1_1UserList(input.AdminUserList, context) })), (input.AuditDestinationARN !== undefined &&
|
|
6444
|
-
input.AuditDestinationARN !== null && { AuditDestinationARN: input.AuditDestinationARN })), (input.CacheAttributes !== undefined &&
|
|
6445
|
-
input.CacheAttributes !== null && {
|
|
6437
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessBasedEnumeration != null && { AccessBasedEnumeration: input.AccessBasedEnumeration })), (input.AdminUserList != null && { AdminUserList: serializeAws_json1_1UserList(input.AdminUserList, context) })), (input.AuditDestinationARN != null && { AuditDestinationARN: input.AuditDestinationARN })), (input.CacheAttributes != null && {
|
|
6446
6438
|
CacheAttributes: serializeAws_json1_1CacheAttributes(input.CacheAttributes, context),
|
|
6447
|
-
})), (input.CaseSensitivity
|
|
6448
|
-
input.CaseSensitivity !== null && { CaseSensitivity: input.CaseSensitivity })), (input.DefaultStorageClass !== undefined &&
|
|
6449
|
-
input.DefaultStorageClass !== null && { DefaultStorageClass: input.DefaultStorageClass })), (input.FileShareARN !== undefined && input.FileShareARN !== null && { FileShareARN: input.FileShareARN })), (input.FileShareName !== undefined && input.FileShareName !== null && { FileShareName: input.FileShareName })), (input.GuessMIMETypeEnabled !== undefined &&
|
|
6450
|
-
input.GuessMIMETypeEnabled !== null && { GuessMIMETypeEnabled: input.GuessMIMETypeEnabled })), (input.InvalidUserList !== undefined &&
|
|
6451
|
-
input.InvalidUserList !== null && {
|
|
6439
|
+
})), (input.CaseSensitivity != null && { CaseSensitivity: input.CaseSensitivity })), (input.DefaultStorageClass != null && { DefaultStorageClass: input.DefaultStorageClass })), (input.FileShareARN != null && { FileShareARN: input.FileShareARN })), (input.FileShareName != null && { FileShareName: input.FileShareName })), (input.GuessMIMETypeEnabled != null && { GuessMIMETypeEnabled: input.GuessMIMETypeEnabled })), (input.InvalidUserList != null && {
|
|
6452
6440
|
InvalidUserList: serializeAws_json1_1UserList(input.InvalidUserList, context),
|
|
6453
|
-
})), (input.KMSEncrypted
|
|
6454
|
-
input.NotificationPolicy !== null && { NotificationPolicy: input.NotificationPolicy })), (input.ObjectACL !== undefined && input.ObjectACL !== null && { ObjectACL: input.ObjectACL })), (input.OplocksEnabled !== undefined &&
|
|
6455
|
-
input.OplocksEnabled !== null && { OplocksEnabled: input.OplocksEnabled })), (input.ReadOnly !== undefined && input.ReadOnly !== null && { ReadOnly: input.ReadOnly })), (input.RequesterPays !== undefined && input.RequesterPays !== null && { RequesterPays: input.RequesterPays })), (input.SMBACLEnabled !== undefined && input.SMBACLEnabled !== null && { SMBACLEnabled: input.SMBACLEnabled })), (input.ValidUserList !== undefined &&
|
|
6456
|
-
input.ValidUserList !== null && { ValidUserList: serializeAws_json1_1UserList(input.ValidUserList, context) }));
|
|
6441
|
+
})), (input.KMSEncrypted != null && { KMSEncrypted: input.KMSEncrypted })), (input.KMSKey != null && { KMSKey: input.KMSKey })), (input.NotificationPolicy != null && { NotificationPolicy: input.NotificationPolicy })), (input.ObjectACL != null && { ObjectACL: input.ObjectACL })), (input.OplocksEnabled != null && { OplocksEnabled: input.OplocksEnabled })), (input.ReadOnly != null && { ReadOnly: input.ReadOnly })), (input.RequesterPays != null && { RequesterPays: input.RequesterPays })), (input.SMBACLEnabled != null && { SMBACLEnabled: input.SMBACLEnabled })), (input.ValidUserList != null && { ValidUserList: serializeAws_json1_1UserList(input.ValidUserList, context) }));
|
|
6457
6442
|
};
|
|
6458
6443
|
var serializeAws_json1_1UpdateSMBFileShareVisibilityInput = function (input, context) {
|
|
6459
|
-
return __assign(__assign({}, (input.FileSharesVisible
|
|
6460
|
-
input.FileSharesVisible !== null && { FileSharesVisible: input.FileSharesVisible })), (input.GatewayARN !== undefined && input.GatewayARN !== null && { GatewayARN: input.GatewayARN }));
|
|
6444
|
+
return __assign(__assign({}, (input.FileSharesVisible != null && { FileSharesVisible: input.FileSharesVisible })), (input.GatewayARN != null && { GatewayARN: input.GatewayARN }));
|
|
6461
6445
|
};
|
|
6462
6446
|
var serializeAws_json1_1UpdateSMBLocalGroupsInput = function (input, context) {
|
|
6463
|
-
return __assign(__assign({}, (input.GatewayARN
|
|
6464
|
-
input.SMBLocalGroups !== null && {
|
|
6447
|
+
return __assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.SMBLocalGroups != null && {
|
|
6465
6448
|
SMBLocalGroups: serializeAws_json1_1SMBLocalGroups(input.SMBLocalGroups, context),
|
|
6466
6449
|
}));
|
|
6467
6450
|
};
|
|
6468
6451
|
var serializeAws_json1_1UpdateSMBSecurityStrategyInput = function (input, context) {
|
|
6469
|
-
return __assign(__assign({}, (input.GatewayARN
|
|
6470
|
-
input.SMBSecurityStrategy !== null && { SMBSecurityStrategy: input.SMBSecurityStrategy }));
|
|
6452
|
+
return __assign(__assign({}, (input.GatewayARN != null && { GatewayARN: input.GatewayARN })), (input.SMBSecurityStrategy != null && { SMBSecurityStrategy: input.SMBSecurityStrategy }));
|
|
6471
6453
|
};
|
|
6472
6454
|
var serializeAws_json1_1UpdateSnapshotScheduleInput = function (input, context) {
|
|
6473
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
6474
|
-
input.RecurrenceInHours !== null && { RecurrenceInHours: input.RecurrenceInHours })), (input.StartAt !== undefined && input.StartAt !== null && { StartAt: input.StartAt })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VolumeARN !== undefined && input.VolumeARN !== null && { VolumeARN: input.VolumeARN }));
|
|
6455
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.RecurrenceInHours != null && { RecurrenceInHours: input.RecurrenceInHours })), (input.StartAt != null && { StartAt: input.StartAt })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.VolumeARN != null && { VolumeARN: input.VolumeARN }));
|
|
6475
6456
|
};
|
|
6476
6457
|
var serializeAws_json1_1UpdateVTLDeviceTypeInput = function (input, context) {
|
|
6477
|
-
return __assign(__assign({}, (input.DeviceType
|
|
6458
|
+
return __assign(__assign({}, (input.DeviceType != null && { DeviceType: input.DeviceType })), (input.VTLDeviceARN != null && { VTLDeviceARN: input.VTLDeviceARN }));
|
|
6478
6459
|
};
|
|
6479
6460
|
var serializeAws_json1_1UserList = function (input, context) {
|
|
6480
6461
|
return input
|
|
@@ -6549,7 +6530,7 @@ var deserializeAws_json1_1AttachVolumeOutput = function (output, context) {
|
|
|
6549
6530
|
};
|
|
6550
6531
|
var deserializeAws_json1_1AutomaticTapeCreationPolicyInfo = function (output, context) {
|
|
6551
6532
|
return {
|
|
6552
|
-
AutomaticTapeCreationRules: output.AutomaticTapeCreationRules
|
|
6533
|
+
AutomaticTapeCreationRules: output.AutomaticTapeCreationRules != null
|
|
6553
6534
|
? deserializeAws_json1_1AutomaticTapeCreationRules(output.AutomaticTapeCreationRules, context)
|
|
6554
6535
|
: undefined,
|
|
6555
6536
|
GatewayARN: __expectString(output.GatewayARN),
|
|
@@ -6590,9 +6571,7 @@ var deserializeAws_json1_1BandwidthRateLimitInterval = function (output, context
|
|
|
6590
6571
|
return {
|
|
6591
6572
|
AverageDownloadRateLimitInBitsPerSec: __expectLong(output.AverageDownloadRateLimitInBitsPerSec),
|
|
6592
6573
|
AverageUploadRateLimitInBitsPerSec: __expectLong(output.AverageUploadRateLimitInBitsPerSec),
|
|
6593
|
-
DaysOfWeek: output.DaysOfWeek
|
|
6594
|
-
? deserializeAws_json1_1DaysOfWeek(output.DaysOfWeek, context)
|
|
6595
|
-
: undefined,
|
|
6574
|
+
DaysOfWeek: output.DaysOfWeek != null ? deserializeAws_json1_1DaysOfWeek(output.DaysOfWeek, context) : undefined,
|
|
6596
6575
|
EndHourOfDay: __expectInt32(output.EndHourOfDay),
|
|
6597
6576
|
EndMinuteOfHour: __expectInt32(output.EndMinuteOfHour),
|
|
6598
6577
|
StartHourOfDay: __expectInt32(output.StartHourOfDay),
|
|
@@ -6617,7 +6596,7 @@ var deserializeAws_json1_1CacheAttributes = function (output, context) {
|
|
|
6617
6596
|
};
|
|
6618
6597
|
var deserializeAws_json1_1CachediSCSIVolume = function (output, context) {
|
|
6619
6598
|
return {
|
|
6620
|
-
CreatedDate: output.CreatedDate
|
|
6599
|
+
CreatedDate: output.CreatedDate != null
|
|
6621
6600
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
|
|
6622
6601
|
: undefined,
|
|
6623
6602
|
KMSKey: __expectString(output.KMSKey),
|
|
@@ -6631,7 +6610,7 @@ var deserializeAws_json1_1CachediSCSIVolume = function (output, context) {
|
|
|
6631
6610
|
VolumeStatus: __expectString(output.VolumeStatus),
|
|
6632
6611
|
VolumeType: __expectString(output.VolumeType),
|
|
6633
6612
|
VolumeUsedInBytes: __expectLong(output.VolumeUsedInBytes),
|
|
6634
|
-
VolumeiSCSIAttributes: output.VolumeiSCSIAttributes
|
|
6613
|
+
VolumeiSCSIAttributes: output.VolumeiSCSIAttributes != null
|
|
6635
6614
|
? deserializeAws_json1_1VolumeiSCSIAttributes(output.VolumeiSCSIAttributes, context)
|
|
6636
6615
|
: undefined,
|
|
6637
6616
|
};
|
|
@@ -6719,9 +6698,7 @@ var deserializeAws_json1_1CreateTapePoolOutput = function (output, context) {
|
|
|
6719
6698
|
};
|
|
6720
6699
|
var deserializeAws_json1_1CreateTapesOutput = function (output, context) {
|
|
6721
6700
|
return {
|
|
6722
|
-
TapeARNs: output.TapeARNs
|
|
6723
|
-
? deserializeAws_json1_1TapeARNs(output.TapeARNs, context)
|
|
6724
|
-
: undefined,
|
|
6701
|
+
TapeARNs: output.TapeARNs != null ? deserializeAws_json1_1TapeARNs(output.TapeARNs, context) : undefined,
|
|
6725
6702
|
};
|
|
6726
6703
|
};
|
|
6727
6704
|
var deserializeAws_json1_1CreateTapeWithBarcodeOutput = function (output, context) {
|
|
@@ -6794,9 +6771,7 @@ var deserializeAws_json1_1DeleteVolumeOutput = function (output, context) {
|
|
|
6794
6771
|
var deserializeAws_json1_1DescribeAvailabilityMonitorTestOutput = function (output, context) {
|
|
6795
6772
|
return {
|
|
6796
6773
|
GatewayARN: __expectString(output.GatewayARN),
|
|
6797
|
-
StartTime: output.StartTime
|
|
6798
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
6799
|
-
: undefined,
|
|
6774
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
6800
6775
|
Status: __expectString(output.Status),
|
|
6801
6776
|
};
|
|
6802
6777
|
};
|
|
@@ -6809,7 +6784,7 @@ var deserializeAws_json1_1DescribeBandwidthRateLimitOutput = function (output, c
|
|
|
6809
6784
|
};
|
|
6810
6785
|
var deserializeAws_json1_1DescribeBandwidthRateLimitScheduleOutput = function (output, context) {
|
|
6811
6786
|
return {
|
|
6812
|
-
BandwidthRateLimitIntervals: output.BandwidthRateLimitIntervals
|
|
6787
|
+
BandwidthRateLimitIntervals: output.BandwidthRateLimitIntervals != null
|
|
6813
6788
|
? deserializeAws_json1_1BandwidthRateLimitIntervals(output.BandwidthRateLimitIntervals, context)
|
|
6814
6789
|
: undefined,
|
|
6815
6790
|
GatewayARN: __expectString(output.GatewayARN),
|
|
@@ -6817,7 +6792,7 @@ var deserializeAws_json1_1DescribeBandwidthRateLimitScheduleOutput = function (o
|
|
|
6817
6792
|
};
|
|
6818
6793
|
var deserializeAws_json1_1DescribeCachediSCSIVolumesOutput = function (output, context) {
|
|
6819
6794
|
return {
|
|
6820
|
-
CachediSCSIVolumes: output.CachediSCSIVolumes
|
|
6795
|
+
CachediSCSIVolumes: output.CachediSCSIVolumes != null
|
|
6821
6796
|
? deserializeAws_json1_1CachediSCSIVolumes(output.CachediSCSIVolumes, context)
|
|
6822
6797
|
: undefined,
|
|
6823
6798
|
};
|
|
@@ -6829,22 +6804,20 @@ var deserializeAws_json1_1DescribeCacheOutput = function (output, context) {
|
|
|
6829
6804
|
CacheHitPercentage: __limitedParseDouble(output.CacheHitPercentage),
|
|
6830
6805
|
CacheMissPercentage: __limitedParseDouble(output.CacheMissPercentage),
|
|
6831
6806
|
CacheUsedPercentage: __limitedParseDouble(output.CacheUsedPercentage),
|
|
6832
|
-
DiskIds: output.DiskIds
|
|
6833
|
-
? deserializeAws_json1_1DiskIds(output.DiskIds, context)
|
|
6834
|
-
: undefined,
|
|
6807
|
+
DiskIds: output.DiskIds != null ? deserializeAws_json1_1DiskIds(output.DiskIds, context) : undefined,
|
|
6835
6808
|
GatewayARN: __expectString(output.GatewayARN),
|
|
6836
6809
|
};
|
|
6837
6810
|
};
|
|
6838
6811
|
var deserializeAws_json1_1DescribeChapCredentialsOutput = function (output, context) {
|
|
6839
6812
|
return {
|
|
6840
|
-
ChapCredentials: output.ChapCredentials
|
|
6813
|
+
ChapCredentials: output.ChapCredentials != null
|
|
6841
6814
|
? deserializeAws_json1_1ChapCredentials(output.ChapCredentials, context)
|
|
6842
6815
|
: undefined,
|
|
6843
6816
|
};
|
|
6844
6817
|
};
|
|
6845
6818
|
var deserializeAws_json1_1DescribeFileSystemAssociationsOutput = function (output, context) {
|
|
6846
6819
|
return {
|
|
6847
|
-
FileSystemAssociationInfoList: output.FileSystemAssociationInfoList
|
|
6820
|
+
FileSystemAssociationInfoList: output.FileSystemAssociationInfoList != null
|
|
6848
6821
|
? deserializeAws_json1_1FileSystemAssociationInfoList(output.FileSystemAssociationInfoList, context)
|
|
6849
6822
|
: undefined,
|
|
6850
6823
|
};
|
|
@@ -6860,7 +6833,7 @@ var deserializeAws_json1_1DescribeGatewayInformationOutput = function (output, c
|
|
|
6860
6833
|
GatewayCapacity: __expectString(output.GatewayCapacity),
|
|
6861
6834
|
GatewayId: __expectString(output.GatewayId),
|
|
6862
6835
|
GatewayName: __expectString(output.GatewayName),
|
|
6863
|
-
GatewayNetworkInterfaces: output.GatewayNetworkInterfaces
|
|
6836
|
+
GatewayNetworkInterfaces: output.GatewayNetworkInterfaces != null
|
|
6864
6837
|
? deserializeAws_json1_1GatewayNetworkInterfaces(output.GatewayNetworkInterfaces, context)
|
|
6865
6838
|
: undefined,
|
|
6866
6839
|
GatewayState: __expectString(output.GatewayState),
|
|
@@ -6871,10 +6844,10 @@ var deserializeAws_json1_1DescribeGatewayInformationOutput = function (output, c
|
|
|
6871
6844
|
LastSoftwareUpdate: __expectString(output.LastSoftwareUpdate),
|
|
6872
6845
|
NextUpdateAvailabilityDate: __expectString(output.NextUpdateAvailabilityDate),
|
|
6873
6846
|
SoftwareUpdatesEndDate: __expectString(output.SoftwareUpdatesEndDate),
|
|
6874
|
-
SupportedGatewayCapacities: output.SupportedGatewayCapacities
|
|
6847
|
+
SupportedGatewayCapacities: output.SupportedGatewayCapacities != null
|
|
6875
6848
|
? deserializeAws_json1_1SupportedGatewayCapacities(output.SupportedGatewayCapacities, context)
|
|
6876
6849
|
: undefined,
|
|
6877
|
-
Tags: output.Tags
|
|
6850
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
6878
6851
|
VPCEndpoint: __expectString(output.VPCEndpoint),
|
|
6879
6852
|
};
|
|
6880
6853
|
};
|
|
@@ -6890,14 +6863,14 @@ var deserializeAws_json1_1DescribeMaintenanceStartTimeOutput = function (output,
|
|
|
6890
6863
|
};
|
|
6891
6864
|
var deserializeAws_json1_1DescribeNFSFileSharesOutput = function (output, context) {
|
|
6892
6865
|
return {
|
|
6893
|
-
NFSFileShareInfoList: output.NFSFileShareInfoList
|
|
6866
|
+
NFSFileShareInfoList: output.NFSFileShareInfoList != null
|
|
6894
6867
|
? deserializeAws_json1_1NFSFileShareInfoList(output.NFSFileShareInfoList, context)
|
|
6895
6868
|
: undefined,
|
|
6896
6869
|
};
|
|
6897
6870
|
};
|
|
6898
6871
|
var deserializeAws_json1_1DescribeSMBFileSharesOutput = function (output, context) {
|
|
6899
6872
|
return {
|
|
6900
|
-
SMBFileShareInfoList: output.SMBFileShareInfoList
|
|
6873
|
+
SMBFileShareInfoList: output.SMBFileShareInfoList != null
|
|
6901
6874
|
? deserializeAws_json1_1SMBFileShareInfoList(output.SMBFileShareInfoList, context)
|
|
6902
6875
|
: undefined,
|
|
6903
6876
|
};
|
|
@@ -6909,9 +6882,7 @@ var deserializeAws_json1_1DescribeSMBSettingsOutput = function (output, context)
|
|
|
6909
6882
|
FileSharesVisible: __expectBoolean(output.FileSharesVisible),
|
|
6910
6883
|
GatewayARN: __expectString(output.GatewayARN),
|
|
6911
6884
|
SMBGuestPasswordSet: __expectBoolean(output.SMBGuestPasswordSet),
|
|
6912
|
-
SMBLocalGroups: output.SMBLocalGroups
|
|
6913
|
-
? deserializeAws_json1_1SMBLocalGroups(output.SMBLocalGroups, context)
|
|
6914
|
-
: undefined,
|
|
6885
|
+
SMBLocalGroups: output.SMBLocalGroups != null ? deserializeAws_json1_1SMBLocalGroups(output.SMBLocalGroups, context) : undefined,
|
|
6915
6886
|
SMBSecurityStrategy: __expectString(output.SMBSecurityStrategy),
|
|
6916
6887
|
};
|
|
6917
6888
|
};
|
|
@@ -6920,14 +6891,14 @@ var deserializeAws_json1_1DescribeSnapshotScheduleOutput = function (output, con
|
|
|
6920
6891
|
Description: __expectString(output.Description),
|
|
6921
6892
|
RecurrenceInHours: __expectInt32(output.RecurrenceInHours),
|
|
6922
6893
|
StartAt: __expectInt32(output.StartAt),
|
|
6923
|
-
Tags: output.Tags
|
|
6894
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
6924
6895
|
Timezone: __expectString(output.Timezone),
|
|
6925
6896
|
VolumeARN: __expectString(output.VolumeARN),
|
|
6926
6897
|
};
|
|
6927
6898
|
};
|
|
6928
6899
|
var deserializeAws_json1_1DescribeStorediSCSIVolumesOutput = function (output, context) {
|
|
6929
6900
|
return {
|
|
6930
|
-
StorediSCSIVolumes: output.StorediSCSIVolumes
|
|
6901
|
+
StorediSCSIVolumes: output.StorediSCSIVolumes != null
|
|
6931
6902
|
? deserializeAws_json1_1StorediSCSIVolumes(output.StorediSCSIVolumes, context)
|
|
6932
6903
|
: undefined,
|
|
6933
6904
|
};
|
|
@@ -6935,16 +6906,14 @@ var deserializeAws_json1_1DescribeStorediSCSIVolumesOutput = function (output, c
|
|
|
6935
6906
|
var deserializeAws_json1_1DescribeTapeArchivesOutput = function (output, context) {
|
|
6936
6907
|
return {
|
|
6937
6908
|
Marker: __expectString(output.Marker),
|
|
6938
|
-
TapeArchives: output.TapeArchives
|
|
6939
|
-
? deserializeAws_json1_1TapeArchives(output.TapeArchives, context)
|
|
6940
|
-
: undefined,
|
|
6909
|
+
TapeArchives: output.TapeArchives != null ? deserializeAws_json1_1TapeArchives(output.TapeArchives, context) : undefined,
|
|
6941
6910
|
};
|
|
6942
6911
|
};
|
|
6943
6912
|
var deserializeAws_json1_1DescribeTapeRecoveryPointsOutput = function (output, context) {
|
|
6944
6913
|
return {
|
|
6945
6914
|
GatewayARN: __expectString(output.GatewayARN),
|
|
6946
6915
|
Marker: __expectString(output.Marker),
|
|
6947
|
-
TapeRecoveryPointInfos: output.TapeRecoveryPointInfos
|
|
6916
|
+
TapeRecoveryPointInfos: output.TapeRecoveryPointInfos != null
|
|
6948
6917
|
? deserializeAws_json1_1TapeRecoveryPointInfos(output.TapeRecoveryPointInfos, context)
|
|
6949
6918
|
: undefined,
|
|
6950
6919
|
};
|
|
@@ -6952,16 +6921,12 @@ var deserializeAws_json1_1DescribeTapeRecoveryPointsOutput = function (output, c
|
|
|
6952
6921
|
var deserializeAws_json1_1DescribeTapesOutput = function (output, context) {
|
|
6953
6922
|
return {
|
|
6954
6923
|
Marker: __expectString(output.Marker),
|
|
6955
|
-
Tapes: output.Tapes
|
|
6956
|
-
? deserializeAws_json1_1Tapes(output.Tapes, context)
|
|
6957
|
-
: undefined,
|
|
6924
|
+
Tapes: output.Tapes != null ? deserializeAws_json1_1Tapes(output.Tapes, context) : undefined,
|
|
6958
6925
|
};
|
|
6959
6926
|
};
|
|
6960
6927
|
var deserializeAws_json1_1DescribeUploadBufferOutput = function (output, context) {
|
|
6961
6928
|
return {
|
|
6962
|
-
DiskIds: output.DiskIds
|
|
6963
|
-
? deserializeAws_json1_1DiskIds(output.DiskIds, context)
|
|
6964
|
-
: undefined,
|
|
6929
|
+
DiskIds: output.DiskIds != null ? deserializeAws_json1_1DiskIds(output.DiskIds, context) : undefined,
|
|
6965
6930
|
GatewayARN: __expectString(output.GatewayARN),
|
|
6966
6931
|
UploadBufferAllocatedInBytes: __expectLong(output.UploadBufferAllocatedInBytes),
|
|
6967
6932
|
UploadBufferUsedInBytes: __expectLong(output.UploadBufferUsedInBytes),
|
|
@@ -6971,16 +6936,12 @@ var deserializeAws_json1_1DescribeVTLDevicesOutput = function (output, context)
|
|
|
6971
6936
|
return {
|
|
6972
6937
|
GatewayARN: __expectString(output.GatewayARN),
|
|
6973
6938
|
Marker: __expectString(output.Marker),
|
|
6974
|
-
VTLDevices: output.VTLDevices
|
|
6975
|
-
? deserializeAws_json1_1VTLDevices(output.VTLDevices, context)
|
|
6976
|
-
: undefined,
|
|
6939
|
+
VTLDevices: output.VTLDevices != null ? deserializeAws_json1_1VTLDevices(output.VTLDevices, context) : undefined,
|
|
6977
6940
|
};
|
|
6978
6941
|
};
|
|
6979
6942
|
var deserializeAws_json1_1DescribeWorkingStorageOutput = function (output, context) {
|
|
6980
6943
|
return {
|
|
6981
|
-
DiskIds: output.DiskIds
|
|
6982
|
-
? deserializeAws_json1_1DiskIds(output.DiskIds, context)
|
|
6983
|
-
: undefined,
|
|
6944
|
+
DiskIds: output.DiskIds != null ? deserializeAws_json1_1DiskIds(output.DiskIds, context) : undefined,
|
|
6984
6945
|
GatewayARN: __expectString(output.GatewayARN),
|
|
6985
6946
|
WorkingStorageAllocatedInBytes: __expectLong(output.WorkingStorageAllocatedInBytes),
|
|
6986
6947
|
WorkingStorageUsedInBytes: __expectLong(output.WorkingStorageUsedInBytes),
|
|
@@ -7013,7 +6974,7 @@ var deserializeAws_json1_1Disk = function (output, context) {
|
|
|
7013
6974
|
return {
|
|
7014
6975
|
DiskAllocationResource: __expectString(output.DiskAllocationResource),
|
|
7015
6976
|
DiskAllocationType: __expectString(output.DiskAllocationType),
|
|
7016
|
-
DiskAttributeList: output.DiskAttributeList
|
|
6977
|
+
DiskAttributeList: output.DiskAttributeList != null
|
|
7017
6978
|
? deserializeAws_json1_1DiskAttributeList(output.DiskAttributeList, context)
|
|
7018
6979
|
: undefined,
|
|
7019
6980
|
DiskId: __expectString(output.DiskId),
|
|
@@ -7058,9 +7019,7 @@ var deserializeAws_json1_1Disks = function (output, context) {
|
|
|
7058
7019
|
};
|
|
7059
7020
|
var deserializeAws_json1_1EndpointNetworkConfiguration = function (output, context) {
|
|
7060
7021
|
return {
|
|
7061
|
-
IpAddresses: output.IpAddresses
|
|
7062
|
-
? deserializeAws_json1_1IpAddressList(output.IpAddresses, context)
|
|
7063
|
-
: undefined,
|
|
7022
|
+
IpAddresses: output.IpAddresses != null ? deserializeAws_json1_1IpAddressList(output.IpAddresses, context) : undefined,
|
|
7064
7023
|
};
|
|
7065
7024
|
};
|
|
7066
7025
|
var deserializeAws_json1_1errorDetails = function (output, context) {
|
|
@@ -7107,20 +7066,20 @@ var deserializeAws_json1_1FileShareInfoList = function (output, context) {
|
|
|
7107
7066
|
var deserializeAws_json1_1FileSystemAssociationInfo = function (output, context) {
|
|
7108
7067
|
return {
|
|
7109
7068
|
AuditDestinationARN: __expectString(output.AuditDestinationARN),
|
|
7110
|
-
CacheAttributes: output.CacheAttributes
|
|
7069
|
+
CacheAttributes: output.CacheAttributes != null
|
|
7111
7070
|
? deserializeAws_json1_1CacheAttributes(output.CacheAttributes, context)
|
|
7112
7071
|
: undefined,
|
|
7113
|
-
EndpointNetworkConfiguration: output.EndpointNetworkConfiguration
|
|
7072
|
+
EndpointNetworkConfiguration: output.EndpointNetworkConfiguration != null
|
|
7114
7073
|
? deserializeAws_json1_1EndpointNetworkConfiguration(output.EndpointNetworkConfiguration, context)
|
|
7115
7074
|
: undefined,
|
|
7116
7075
|
FileSystemAssociationARN: __expectString(output.FileSystemAssociationARN),
|
|
7117
7076
|
FileSystemAssociationStatus: __expectString(output.FileSystemAssociationStatus),
|
|
7118
|
-
FileSystemAssociationStatusDetails: output.FileSystemAssociationStatusDetails
|
|
7077
|
+
FileSystemAssociationStatusDetails: output.FileSystemAssociationStatusDetails != null
|
|
7119
7078
|
? deserializeAws_json1_1FileSystemAssociationStatusDetails(output.FileSystemAssociationStatusDetails, context)
|
|
7120
7079
|
: undefined,
|
|
7121
7080
|
GatewayARN: __expectString(output.GatewayARN),
|
|
7122
7081
|
LocationARN: __expectString(output.LocationARN),
|
|
7123
|
-
Tags: output.Tags
|
|
7082
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
7124
7083
|
};
|
|
7125
7084
|
};
|
|
7126
7085
|
var deserializeAws_json1_1FileSystemAssociationInfoList = function (output, context) {
|
|
@@ -7217,17 +7176,13 @@ var deserializeAws_json1_1Initiators = function (output, context) {
|
|
|
7217
7176
|
};
|
|
7218
7177
|
var deserializeAws_json1_1InternalServerError = function (output, context) {
|
|
7219
7178
|
return {
|
|
7220
|
-
error: output.error
|
|
7221
|
-
? deserializeAws_json1_1StorageGatewayError(output.error, context)
|
|
7222
|
-
: undefined,
|
|
7179
|
+
error: output.error != null ? deserializeAws_json1_1StorageGatewayError(output.error, context) : undefined,
|
|
7223
7180
|
message: __expectString(output.message),
|
|
7224
7181
|
};
|
|
7225
7182
|
};
|
|
7226
7183
|
var deserializeAws_json1_1InvalidGatewayRequestException = function (output, context) {
|
|
7227
7184
|
return {
|
|
7228
|
-
error: output.error
|
|
7229
|
-
? deserializeAws_json1_1StorageGatewayError(output.error, context)
|
|
7230
|
-
: undefined,
|
|
7185
|
+
error: output.error != null ? deserializeAws_json1_1StorageGatewayError(output.error, context) : undefined,
|
|
7231
7186
|
message: __expectString(output.message),
|
|
7232
7187
|
};
|
|
7233
7188
|
};
|
|
@@ -7250,14 +7205,14 @@ var deserializeAws_json1_1JoinDomainOutput = function (output, context) {
|
|
|
7250
7205
|
};
|
|
7251
7206
|
var deserializeAws_json1_1ListAutomaticTapeCreationPoliciesOutput = function (output, context) {
|
|
7252
7207
|
return {
|
|
7253
|
-
AutomaticTapeCreationPolicyInfos: output.AutomaticTapeCreationPolicyInfos
|
|
7208
|
+
AutomaticTapeCreationPolicyInfos: output.AutomaticTapeCreationPolicyInfos != null
|
|
7254
7209
|
? deserializeAws_json1_1AutomaticTapeCreationPolicyInfos(output.AutomaticTapeCreationPolicyInfos, context)
|
|
7255
7210
|
: undefined,
|
|
7256
7211
|
};
|
|
7257
7212
|
};
|
|
7258
7213
|
var deserializeAws_json1_1ListFileSharesOutput = function (output, context) {
|
|
7259
7214
|
return {
|
|
7260
|
-
FileShareInfoList: output.FileShareInfoList
|
|
7215
|
+
FileShareInfoList: output.FileShareInfoList != null
|
|
7261
7216
|
? deserializeAws_json1_1FileShareInfoList(output.FileShareInfoList, context)
|
|
7262
7217
|
: undefined,
|
|
7263
7218
|
Marker: __expectString(output.Marker),
|
|
@@ -7266,7 +7221,7 @@ var deserializeAws_json1_1ListFileSharesOutput = function (output, context) {
|
|
|
7266
7221
|
};
|
|
7267
7222
|
var deserializeAws_json1_1ListFileSystemAssociationsOutput = function (output, context) {
|
|
7268
7223
|
return {
|
|
7269
|
-
FileSystemAssociationSummaryList: output.FileSystemAssociationSummaryList
|
|
7224
|
+
FileSystemAssociationSummaryList: output.FileSystemAssociationSummaryList != null
|
|
7270
7225
|
? deserializeAws_json1_1FileSystemAssociationSummaryList(output.FileSystemAssociationSummaryList, context)
|
|
7271
7226
|
: undefined,
|
|
7272
7227
|
Marker: __expectString(output.Marker),
|
|
@@ -7275,17 +7230,13 @@ var deserializeAws_json1_1ListFileSystemAssociationsOutput = function (output, c
|
|
|
7275
7230
|
};
|
|
7276
7231
|
var deserializeAws_json1_1ListGatewaysOutput = function (output, context) {
|
|
7277
7232
|
return {
|
|
7278
|
-
Gateways: output.Gateways
|
|
7279
|
-
? deserializeAws_json1_1Gateways(output.Gateways, context)
|
|
7280
|
-
: undefined,
|
|
7233
|
+
Gateways: output.Gateways != null ? deserializeAws_json1_1Gateways(output.Gateways, context) : undefined,
|
|
7281
7234
|
Marker: __expectString(output.Marker),
|
|
7282
7235
|
};
|
|
7283
7236
|
};
|
|
7284
7237
|
var deserializeAws_json1_1ListLocalDisksOutput = function (output, context) {
|
|
7285
7238
|
return {
|
|
7286
|
-
Disks: output.Disks
|
|
7287
|
-
? deserializeAws_json1_1Disks(output.Disks, context)
|
|
7288
|
-
: undefined,
|
|
7239
|
+
Disks: output.Disks != null ? deserializeAws_json1_1Disks(output.Disks, context) : undefined,
|
|
7289
7240
|
GatewayARN: __expectString(output.GatewayARN),
|
|
7290
7241
|
};
|
|
7291
7242
|
};
|
|
@@ -7293,36 +7244,30 @@ var deserializeAws_json1_1ListTagsForResourceOutput = function (output, context)
|
|
|
7293
7244
|
return {
|
|
7294
7245
|
Marker: __expectString(output.Marker),
|
|
7295
7246
|
ResourceARN: __expectString(output.ResourceARN),
|
|
7296
|
-
Tags: output.Tags
|
|
7247
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
7297
7248
|
};
|
|
7298
7249
|
};
|
|
7299
7250
|
var deserializeAws_json1_1ListTapePoolsOutput = function (output, context) {
|
|
7300
7251
|
return {
|
|
7301
7252
|
Marker: __expectString(output.Marker),
|
|
7302
|
-
PoolInfos: output.PoolInfos
|
|
7303
|
-
? deserializeAws_json1_1PoolInfos(output.PoolInfos, context)
|
|
7304
|
-
: undefined,
|
|
7253
|
+
PoolInfos: output.PoolInfos != null ? deserializeAws_json1_1PoolInfos(output.PoolInfos, context) : undefined,
|
|
7305
7254
|
};
|
|
7306
7255
|
};
|
|
7307
7256
|
var deserializeAws_json1_1ListTapesOutput = function (output, context) {
|
|
7308
7257
|
return {
|
|
7309
7258
|
Marker: __expectString(output.Marker),
|
|
7310
|
-
TapeInfos: output.TapeInfos
|
|
7311
|
-
? deserializeAws_json1_1TapeInfos(output.TapeInfos, context)
|
|
7312
|
-
: undefined,
|
|
7259
|
+
TapeInfos: output.TapeInfos != null ? deserializeAws_json1_1TapeInfos(output.TapeInfos, context) : undefined,
|
|
7313
7260
|
};
|
|
7314
7261
|
};
|
|
7315
7262
|
var deserializeAws_json1_1ListVolumeInitiatorsOutput = function (output, context) {
|
|
7316
7263
|
return {
|
|
7317
|
-
Initiators: output.Initiators
|
|
7318
|
-
? deserializeAws_json1_1Initiators(output.Initiators, context)
|
|
7319
|
-
: undefined,
|
|
7264
|
+
Initiators: output.Initiators != null ? deserializeAws_json1_1Initiators(output.Initiators, context) : undefined,
|
|
7320
7265
|
};
|
|
7321
7266
|
};
|
|
7322
7267
|
var deserializeAws_json1_1ListVolumeRecoveryPointsOutput = function (output, context) {
|
|
7323
7268
|
return {
|
|
7324
7269
|
GatewayARN: __expectString(output.GatewayARN),
|
|
7325
|
-
VolumeRecoveryPointInfos: output.VolumeRecoveryPointInfos
|
|
7270
|
+
VolumeRecoveryPointInfos: output.VolumeRecoveryPointInfos != null
|
|
7326
7271
|
? deserializeAws_json1_1VolumeRecoveryPointInfos(output.VolumeRecoveryPointInfos, context)
|
|
7327
7272
|
: undefined,
|
|
7328
7273
|
};
|
|
@@ -7331,9 +7276,7 @@ var deserializeAws_json1_1ListVolumesOutput = function (output, context) {
|
|
|
7331
7276
|
return {
|
|
7332
7277
|
GatewayARN: __expectString(output.GatewayARN),
|
|
7333
7278
|
Marker: __expectString(output.Marker),
|
|
7334
|
-
VolumeInfos: output.VolumeInfos
|
|
7335
|
-
? deserializeAws_json1_1VolumeInfos(output.VolumeInfos, context)
|
|
7336
|
-
: undefined,
|
|
7279
|
+
VolumeInfos: output.VolumeInfos != null ? deserializeAws_json1_1VolumeInfos(output.VolumeInfos, context) : undefined,
|
|
7337
7280
|
};
|
|
7338
7281
|
};
|
|
7339
7282
|
var deserializeAws_json1_1NetworkInterface = function (output, context) {
|
|
@@ -7355,12 +7298,10 @@ var deserializeAws_json1_1NFSFileShareInfo = function (output, context) {
|
|
|
7355
7298
|
return {
|
|
7356
7299
|
AuditDestinationARN: __expectString(output.AuditDestinationARN),
|
|
7357
7300
|
BucketRegion: __expectString(output.BucketRegion),
|
|
7358
|
-
CacheAttributes: output.CacheAttributes
|
|
7301
|
+
CacheAttributes: output.CacheAttributes != null
|
|
7359
7302
|
? deserializeAws_json1_1CacheAttributes(output.CacheAttributes, context)
|
|
7360
7303
|
: undefined,
|
|
7361
|
-
ClientList: output.ClientList
|
|
7362
|
-
? deserializeAws_json1_1FileShareClientList(output.ClientList, context)
|
|
7363
|
-
: undefined,
|
|
7304
|
+
ClientList: output.ClientList != null ? deserializeAws_json1_1FileShareClientList(output.ClientList, context) : undefined,
|
|
7364
7305
|
DefaultStorageClass: __expectString(output.DefaultStorageClass),
|
|
7365
7306
|
FileShareARN: __expectString(output.FileShareARN),
|
|
7366
7307
|
FileShareId: __expectString(output.FileShareId),
|
|
@@ -7371,7 +7312,7 @@ var deserializeAws_json1_1NFSFileShareInfo = function (output, context) {
|
|
|
7371
7312
|
KMSEncrypted: __expectBoolean(output.KMSEncrypted),
|
|
7372
7313
|
KMSKey: __expectString(output.KMSKey),
|
|
7373
7314
|
LocationARN: __expectString(output.LocationARN),
|
|
7374
|
-
NFSFileShareDefaults: output.NFSFileShareDefaults
|
|
7315
|
+
NFSFileShareDefaults: output.NFSFileShareDefaults != null
|
|
7375
7316
|
? deserializeAws_json1_1NFSFileShareDefaults(output.NFSFileShareDefaults, context)
|
|
7376
7317
|
: undefined,
|
|
7377
7318
|
NotificationPolicy: __expectString(output.NotificationPolicy),
|
|
@@ -7381,7 +7322,7 @@ var deserializeAws_json1_1NFSFileShareInfo = function (output, context) {
|
|
|
7381
7322
|
RequesterPays: __expectBoolean(output.RequesterPays),
|
|
7382
7323
|
Role: __expectString(output.Role),
|
|
7383
7324
|
Squash: __expectString(output.Squash),
|
|
7384
|
-
Tags: output.Tags
|
|
7325
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
7385
7326
|
VPCEndpointDNSName: __expectString(output.VPCEndpointDNSName),
|
|
7386
7327
|
};
|
|
7387
7328
|
};
|
|
@@ -7451,9 +7392,7 @@ var deserializeAws_json1_1RetrieveTapeRecoveryPointOutput = function (output, co
|
|
|
7451
7392
|
};
|
|
7452
7393
|
var deserializeAws_json1_1ServiceUnavailableError = function (output, context) {
|
|
7453
7394
|
return {
|
|
7454
|
-
error: output.error
|
|
7455
|
-
? deserializeAws_json1_1StorageGatewayError(output.error, context)
|
|
7456
|
-
: undefined,
|
|
7395
|
+
error: output.error != null ? deserializeAws_json1_1StorageGatewayError(output.error, context) : undefined,
|
|
7457
7396
|
message: __expectString(output.message),
|
|
7458
7397
|
};
|
|
7459
7398
|
};
|
|
@@ -7475,13 +7414,11 @@ var deserializeAws_json1_1ShutdownGatewayOutput = function (output, context) {
|
|
|
7475
7414
|
var deserializeAws_json1_1SMBFileShareInfo = function (output, context) {
|
|
7476
7415
|
return {
|
|
7477
7416
|
AccessBasedEnumeration: __expectBoolean(output.AccessBasedEnumeration),
|
|
7478
|
-
AdminUserList: output.AdminUserList
|
|
7479
|
-
? deserializeAws_json1_1UserList(output.AdminUserList, context)
|
|
7480
|
-
: undefined,
|
|
7417
|
+
AdminUserList: output.AdminUserList != null ? deserializeAws_json1_1UserList(output.AdminUserList, context) : undefined,
|
|
7481
7418
|
AuditDestinationARN: __expectString(output.AuditDestinationARN),
|
|
7482
7419
|
Authentication: __expectString(output.Authentication),
|
|
7483
7420
|
BucketRegion: __expectString(output.BucketRegion),
|
|
7484
|
-
CacheAttributes: output.CacheAttributes
|
|
7421
|
+
CacheAttributes: output.CacheAttributes != null
|
|
7485
7422
|
? deserializeAws_json1_1CacheAttributes(output.CacheAttributes, context)
|
|
7486
7423
|
: undefined,
|
|
7487
7424
|
CaseSensitivity: __expectString(output.CaseSensitivity),
|
|
@@ -7492,9 +7429,7 @@ var deserializeAws_json1_1SMBFileShareInfo = function (output, context) {
|
|
|
7492
7429
|
FileShareStatus: __expectString(output.FileShareStatus),
|
|
7493
7430
|
GatewayARN: __expectString(output.GatewayARN),
|
|
7494
7431
|
GuessMIMETypeEnabled: __expectBoolean(output.GuessMIMETypeEnabled),
|
|
7495
|
-
InvalidUserList: output.InvalidUserList
|
|
7496
|
-
? deserializeAws_json1_1UserList(output.InvalidUserList, context)
|
|
7497
|
-
: undefined,
|
|
7432
|
+
InvalidUserList: output.InvalidUserList != null ? deserializeAws_json1_1UserList(output.InvalidUserList, context) : undefined,
|
|
7498
7433
|
KMSEncrypted: __expectBoolean(output.KMSEncrypted),
|
|
7499
7434
|
KMSKey: __expectString(output.KMSKey),
|
|
7500
7435
|
LocationARN: __expectString(output.LocationARN),
|
|
@@ -7506,11 +7441,9 @@ var deserializeAws_json1_1SMBFileShareInfo = function (output, context) {
|
|
|
7506
7441
|
RequesterPays: __expectBoolean(output.RequesterPays),
|
|
7507
7442
|
Role: __expectString(output.Role),
|
|
7508
7443
|
SMBACLEnabled: __expectBoolean(output.SMBACLEnabled),
|
|
7509
|
-
Tags: output.Tags
|
|
7444
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
7510
7445
|
VPCEndpointDNSName: __expectString(output.VPCEndpointDNSName),
|
|
7511
|
-
ValidUserList: output.ValidUserList
|
|
7512
|
-
? deserializeAws_json1_1UserList(output.ValidUserList, context)
|
|
7513
|
-
: undefined,
|
|
7446
|
+
ValidUserList: output.ValidUserList != null ? deserializeAws_json1_1UserList(output.ValidUserList, context) : undefined,
|
|
7514
7447
|
};
|
|
7515
7448
|
};
|
|
7516
7449
|
var deserializeAws_json1_1SMBFileShareInfoList = function (output, context) {
|
|
@@ -7526,9 +7459,7 @@ var deserializeAws_json1_1SMBFileShareInfoList = function (output, context) {
|
|
|
7526
7459
|
};
|
|
7527
7460
|
var deserializeAws_json1_1SMBLocalGroups = function (output, context) {
|
|
7528
7461
|
return {
|
|
7529
|
-
GatewayAdmins: output.GatewayAdmins
|
|
7530
|
-
? deserializeAws_json1_1UserList(output.GatewayAdmins, context)
|
|
7531
|
-
: undefined,
|
|
7462
|
+
GatewayAdmins: output.GatewayAdmins != null ? deserializeAws_json1_1UserList(output.GatewayAdmins, context) : undefined,
|
|
7532
7463
|
};
|
|
7533
7464
|
};
|
|
7534
7465
|
var deserializeAws_json1_1StartAvailabilityMonitorTestOutput = function (output, context) {
|
|
@@ -7544,14 +7475,12 @@ var deserializeAws_json1_1StartGatewayOutput = function (output, context) {
|
|
|
7544
7475
|
var deserializeAws_json1_1StorageGatewayError = function (output, context) {
|
|
7545
7476
|
return {
|
|
7546
7477
|
errorCode: __expectString(output.errorCode),
|
|
7547
|
-
errorDetails: output.errorDetails
|
|
7548
|
-
? deserializeAws_json1_1errorDetails(output.errorDetails, context)
|
|
7549
|
-
: undefined,
|
|
7478
|
+
errorDetails: output.errorDetails != null ? deserializeAws_json1_1errorDetails(output.errorDetails, context) : undefined,
|
|
7550
7479
|
};
|
|
7551
7480
|
};
|
|
7552
7481
|
var deserializeAws_json1_1StorediSCSIVolume = function (output, context) {
|
|
7553
7482
|
return {
|
|
7554
|
-
CreatedDate: output.CreatedDate
|
|
7483
|
+
CreatedDate: output.CreatedDate != null
|
|
7555
7484
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
|
|
7556
7485
|
: undefined,
|
|
7557
7486
|
KMSKey: __expectString(output.KMSKey),
|
|
@@ -7567,7 +7496,7 @@ var deserializeAws_json1_1StorediSCSIVolume = function (output, context) {
|
|
|
7567
7496
|
VolumeStatus: __expectString(output.VolumeStatus),
|
|
7568
7497
|
VolumeType: __expectString(output.VolumeType),
|
|
7569
7498
|
VolumeUsedInBytes: __expectLong(output.VolumeUsedInBytes),
|
|
7570
|
-
VolumeiSCSIAttributes: output.VolumeiSCSIAttributes
|
|
7499
|
+
VolumeiSCSIAttributes: output.VolumeiSCSIAttributes != null
|
|
7571
7500
|
? deserializeAws_json1_1VolumeiSCSIAttributes(output.VolumeiSCSIAttributes, context)
|
|
7572
7501
|
: undefined,
|
|
7573
7502
|
};
|
|
@@ -7614,17 +7543,17 @@ var deserializeAws_json1_1Tags = function (output, context) {
|
|
|
7614
7543
|
var deserializeAws_json1_1Tape = function (output, context) {
|
|
7615
7544
|
return {
|
|
7616
7545
|
KMSKey: __expectString(output.KMSKey),
|
|
7617
|
-
PoolEntryDate: output.PoolEntryDate
|
|
7546
|
+
PoolEntryDate: output.PoolEntryDate != null
|
|
7618
7547
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.PoolEntryDate)))
|
|
7619
7548
|
: undefined,
|
|
7620
7549
|
PoolId: __expectString(output.PoolId),
|
|
7621
7550
|
Progress: __limitedParseDouble(output.Progress),
|
|
7622
|
-
RetentionStartDate: output.RetentionStartDate
|
|
7551
|
+
RetentionStartDate: output.RetentionStartDate != null
|
|
7623
7552
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RetentionStartDate)))
|
|
7624
7553
|
: undefined,
|
|
7625
7554
|
TapeARN: __expectString(output.TapeARN),
|
|
7626
7555
|
TapeBarcode: __expectString(output.TapeBarcode),
|
|
7627
|
-
TapeCreatedDate: output.TapeCreatedDate
|
|
7556
|
+
TapeCreatedDate: output.TapeCreatedDate != null
|
|
7628
7557
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TapeCreatedDate)))
|
|
7629
7558
|
: undefined,
|
|
7630
7559
|
TapeSizeInBytes: __expectLong(output.TapeSizeInBytes),
|
|
@@ -7636,21 +7565,21 @@ var deserializeAws_json1_1Tape = function (output, context) {
|
|
|
7636
7565
|
};
|
|
7637
7566
|
var deserializeAws_json1_1TapeArchive = function (output, context) {
|
|
7638
7567
|
return {
|
|
7639
|
-
CompletionTime: output.CompletionTime
|
|
7568
|
+
CompletionTime: output.CompletionTime != null
|
|
7640
7569
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
|
|
7641
7570
|
: undefined,
|
|
7642
7571
|
KMSKey: __expectString(output.KMSKey),
|
|
7643
|
-
PoolEntryDate: output.PoolEntryDate
|
|
7572
|
+
PoolEntryDate: output.PoolEntryDate != null
|
|
7644
7573
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.PoolEntryDate)))
|
|
7645
7574
|
: undefined,
|
|
7646
7575
|
PoolId: __expectString(output.PoolId),
|
|
7647
|
-
RetentionStartDate: output.RetentionStartDate
|
|
7576
|
+
RetentionStartDate: output.RetentionStartDate != null
|
|
7648
7577
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RetentionStartDate)))
|
|
7649
7578
|
: undefined,
|
|
7650
7579
|
RetrievedTo: __expectString(output.RetrievedTo),
|
|
7651
7580
|
TapeARN: __expectString(output.TapeARN),
|
|
7652
7581
|
TapeBarcode: __expectString(output.TapeBarcode),
|
|
7653
|
-
TapeCreatedDate: output.TapeCreatedDate
|
|
7582
|
+
TapeCreatedDate: output.TapeCreatedDate != null
|
|
7654
7583
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TapeCreatedDate)))
|
|
7655
7584
|
: undefined,
|
|
7656
7585
|
TapeSizeInBytes: __expectLong(output.TapeSizeInBytes),
|
|
@@ -7684,11 +7613,11 @@ var deserializeAws_json1_1TapeARNs = function (output, context) {
|
|
|
7684
7613
|
var deserializeAws_json1_1TapeInfo = function (output, context) {
|
|
7685
7614
|
return {
|
|
7686
7615
|
GatewayARN: __expectString(output.GatewayARN),
|
|
7687
|
-
PoolEntryDate: output.PoolEntryDate
|
|
7616
|
+
PoolEntryDate: output.PoolEntryDate != null
|
|
7688
7617
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.PoolEntryDate)))
|
|
7689
7618
|
: undefined,
|
|
7690
7619
|
PoolId: __expectString(output.PoolId),
|
|
7691
|
-
RetentionStartDate: output.RetentionStartDate
|
|
7620
|
+
RetentionStartDate: output.RetentionStartDate != null
|
|
7692
7621
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RetentionStartDate)))
|
|
7693
7622
|
: undefined,
|
|
7694
7623
|
TapeARN: __expectString(output.TapeARN),
|
|
@@ -7711,7 +7640,7 @@ var deserializeAws_json1_1TapeInfos = function (output, context) {
|
|
|
7711
7640
|
var deserializeAws_json1_1TapeRecoveryPointInfo = function (output, context) {
|
|
7712
7641
|
return {
|
|
7713
7642
|
TapeARN: __expectString(output.TapeARN),
|
|
7714
|
-
TapeRecoveryPointTime: output.TapeRecoveryPointTime
|
|
7643
|
+
TapeRecoveryPointTime: output.TapeRecoveryPointTime != null
|
|
7715
7644
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.TapeRecoveryPointTime)))
|
|
7716
7645
|
: undefined,
|
|
7717
7646
|
TapeSizeInBytes: __expectLong(output.TapeSizeInBytes),
|
|
@@ -7880,7 +7809,7 @@ var deserializeAws_json1_1VolumeRecoveryPointInfos = function (output, context)
|
|
|
7880
7809
|
};
|
|
7881
7810
|
var deserializeAws_json1_1VTLDevice = function (output, context) {
|
|
7882
7811
|
return {
|
|
7883
|
-
DeviceiSCSIAttributes: output.DeviceiSCSIAttributes
|
|
7812
|
+
DeviceiSCSIAttributes: output.DeviceiSCSIAttributes != null
|
|
7884
7813
|
? deserializeAws_json1_1DeviceiSCSIAttributes(output.DeviceiSCSIAttributes, context)
|
|
7885
7814
|
: undefined,
|
|
7886
7815
|
VTLDeviceARN: __expectString(output.VTLDeviceARN),
|
|
@@ -7974,5 +7903,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
7974
7903
|
if (data["__type"] !== undefined) {
|
|
7975
7904
|
return sanitizeErrorCode(data["__type"]);
|
|
7976
7905
|
}
|
|
7977
|
-
return "";
|
|
7978
7906
|
};
|