@aws-sdk/client-fsx 3.180.0 → 3.181.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 +17 -0
- package/dist-cjs/FSx.js +60 -0
- package/dist-cjs/commands/CreateFileCacheCommand.js +36 -0
- package/dist-cjs/commands/DeleteFileCacheCommand.js +36 -0
- package/dist-cjs/commands/DescribeFileCachesCommand.js +36 -0
- package/dist-cjs/commands/UpdateFileCacheCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +154 -27
- package/dist-cjs/pagination/DescribeFileCachesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +587 -39
- package/dist-es/FSx.js +60 -0
- package/dist-es/commands/CreateFileCacheCommand.js +39 -0
- package/dist-es/commands/DeleteFileCacheCommand.js +39 -0
- package/dist-es/commands/DescribeFileCachesCommand.js +39 -0
- package/dist-es/commands/UpdateFileCacheCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +96 -26
- package/dist-es/pagination/DescribeFileCachesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +644 -41
- package/dist-types/FSx.d.ts +118 -26
- package/dist-types/FSxClient.d.ts +6 -2
- package/dist-types/commands/CreateDataRepositoryAssociationCommand.d.ts +6 -0
- package/dist-types/commands/CreateFileCacheCommand.d.ts +58 -0
- package/dist-types/commands/CreateFileSystemCommand.d.ts +0 -10
- package/dist-types/commands/DeleteFileCacheCommand.d.ts +48 -0
- package/dist-types/commands/DescribeDataRepositoryAssociationsCommand.d.ts +13 -11
- package/dist-types/commands/DescribeDataRepositoryTasksCommand.d.ts +4 -4
- package/dist-types/commands/DescribeFileCachesCommand.d.ts +65 -0
- package/dist-types/commands/DescribeFileSystemsCommand.d.ts +0 -1
- package/dist-types/commands/UpdateFileCacheCommand.d.ts +36 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +964 -125
- package/dist-types/pagination/DescribeFileCachesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/FSx.d.ts +68 -0
- package/dist-types/ts3.4/FSxClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateFileCacheCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteFileCacheCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DescribeFileCachesCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateFileCacheCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +239 -25
- package/dist-types/ts3.4/pagination/DescribeFileCachesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +48 -0
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { FSxServiceException as __BaseException } from "../models/FSxServiceException";
|
|
6
|
-
import { ActiveDirectoryError, BackupBeingCopied, BackupInProgress, BackupNotFound, BackupRestoring, BadRequest, DataRepositoryAssociationNotFound, DataRepositoryTaskEnded, DataRepositoryTaskExecuting, DataRepositoryTaskNotFound, FileSystemNotFound, IncompatibleParameterError, IncompatibleRegionForMultiAZ, InternalServerError, InvalidDataRepositoryType, InvalidDestinationKmsKey, InvalidExportPath, InvalidImportPath, InvalidNetworkSettings, InvalidPerUnitStorageThroughput, InvalidRegion, InvalidSourceKmsKey, MissingFileSystemConfiguration, MissingVolumeConfiguration, NotServiceResourceError, ResourceDoesNotSupportTagging, ResourceNotFound, ServiceLimitExceeded, SnapshotNotFound, SourceBackupUnavailable, StorageVirtualMachineNotFound, UnsupportedOperation, VolumeNotFound, } from "../models/models_0";
|
|
6
|
+
import { ActiveDirectoryError, BackupBeingCopied, BackupInProgress, BackupNotFound, BackupRestoring, BadRequest, DataRepositoryAssociationNotFound, DataRepositoryTaskEnded, DataRepositoryTaskExecuting, DataRepositoryTaskNotFound, FileCacheNotFound, FileSystemNotFound, IncompatibleParameterError, IncompatibleRegionForMultiAZ, InternalServerError, InvalidDataRepositoryType, InvalidDestinationKmsKey, InvalidExportPath, InvalidImportPath, InvalidNetworkSettings, InvalidPerUnitStorageThroughput, InvalidRegion, InvalidSourceKmsKey, MissingFileCacheConfiguration, MissingFileSystemConfiguration, MissingVolumeConfiguration, NotServiceResourceError, ResourceDoesNotSupportTagging, ResourceNotFound, ServiceLimitExceeded, SnapshotNotFound, SourceBackupUnavailable, StorageVirtualMachineNotFound, UnsupportedOperation, VolumeNotFound, } from "../models/models_0";
|
|
7
7
|
export var serializeAws_json1_1AssociateFileSystemAliasesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
8
|
var headers, body;
|
|
9
9
|
return __generator(this, function (_a) {
|
|
@@ -70,6 +70,17 @@ export var serializeAws_json1_1CreateDataRepositoryTaskCommand = function (input
|
|
|
70
70
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
71
71
|
});
|
|
72
72
|
}); };
|
|
73
|
+
export var serializeAws_json1_1CreateFileCacheCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
74
|
+
var headers, body;
|
|
75
|
+
return __generator(this, function (_a) {
|
|
76
|
+
headers = {
|
|
77
|
+
"content-type": "application/x-amz-json-1.1",
|
|
78
|
+
"x-amz-target": "AWSSimbaAPIService_v20180301.CreateFileCache",
|
|
79
|
+
};
|
|
80
|
+
body = JSON.stringify(serializeAws_json1_1CreateFileCacheRequest(input, context));
|
|
81
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
82
|
+
});
|
|
83
|
+
}); };
|
|
73
84
|
export var serializeAws_json1_1CreateFileSystemCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
74
85
|
var headers, body;
|
|
75
86
|
return __generator(this, function (_a) {
|
|
@@ -158,6 +169,17 @@ export var serializeAws_json1_1DeleteDataRepositoryAssociationCommand = function
|
|
|
158
169
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
159
170
|
});
|
|
160
171
|
}); };
|
|
172
|
+
export var serializeAws_json1_1DeleteFileCacheCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
173
|
+
var headers, body;
|
|
174
|
+
return __generator(this, function (_a) {
|
|
175
|
+
headers = {
|
|
176
|
+
"content-type": "application/x-amz-json-1.1",
|
|
177
|
+
"x-amz-target": "AWSSimbaAPIService_v20180301.DeleteFileCache",
|
|
178
|
+
};
|
|
179
|
+
body = JSON.stringify(serializeAws_json1_1DeleteFileCacheRequest(input, context));
|
|
180
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
181
|
+
});
|
|
182
|
+
}); };
|
|
161
183
|
export var serializeAws_json1_1DeleteFileSystemCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
162
184
|
var headers, body;
|
|
163
185
|
return __generator(this, function (_a) {
|
|
@@ -235,6 +257,17 @@ export var serializeAws_json1_1DescribeDataRepositoryTasksCommand = function (in
|
|
|
235
257
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
236
258
|
});
|
|
237
259
|
}); };
|
|
260
|
+
export var serializeAws_json1_1DescribeFileCachesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
261
|
+
var headers, body;
|
|
262
|
+
return __generator(this, function (_a) {
|
|
263
|
+
headers = {
|
|
264
|
+
"content-type": "application/x-amz-json-1.1",
|
|
265
|
+
"x-amz-target": "AWSSimbaAPIService_v20180301.DescribeFileCaches",
|
|
266
|
+
};
|
|
267
|
+
body = JSON.stringify(serializeAws_json1_1DescribeFileCachesRequest(input, context));
|
|
268
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
269
|
+
});
|
|
270
|
+
}); };
|
|
238
271
|
export var serializeAws_json1_1DescribeFileSystemAliasesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
239
272
|
var headers, body;
|
|
240
273
|
return __generator(this, function (_a) {
|
|
@@ -367,6 +400,17 @@ export var serializeAws_json1_1UpdateDataRepositoryAssociationCommand = function
|
|
|
367
400
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
368
401
|
});
|
|
369
402
|
}); };
|
|
403
|
+
export var serializeAws_json1_1UpdateFileCacheCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
404
|
+
var headers, body;
|
|
405
|
+
return __generator(this, function (_a) {
|
|
406
|
+
headers = {
|
|
407
|
+
"content-type": "application/x-amz-json-1.1",
|
|
408
|
+
"x-amz-target": "AWSSimbaAPIService_v20180301.UpdateFileCache",
|
|
409
|
+
};
|
|
410
|
+
body = JSON.stringify(serializeAws_json1_1UpdateFileCacheRequest(input, context));
|
|
411
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
412
|
+
});
|
|
413
|
+
}); };
|
|
370
414
|
export var serializeAws_json1_1UpdateFileSystemCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
371
415
|
var headers, body;
|
|
372
416
|
return __generator(this, function (_a) {
|
|
@@ -437,7 +481,7 @@ var deserializeAws_json1_1AssociateFileSystemAliasesCommandError = function (out
|
|
|
437
481
|
case 0:
|
|
438
482
|
_a = [__assign({}, output)];
|
|
439
483
|
_c = {};
|
|
440
|
-
return [4,
|
|
484
|
+
return [4, parseErrorBody(output.body, context)];
|
|
441
485
|
case 1:
|
|
442
486
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
443
487
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -496,7 +540,7 @@ var deserializeAws_json1_1CancelDataRepositoryTaskCommandError = function (outpu
|
|
|
496
540
|
case 0:
|
|
497
541
|
_a = [__assign({}, output)];
|
|
498
542
|
_c = {};
|
|
499
|
-
return [4,
|
|
543
|
+
return [4, parseErrorBody(output.body, context)];
|
|
500
544
|
case 1:
|
|
501
545
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
502
546
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -563,7 +607,7 @@ var deserializeAws_json1_1CopyBackupCommandError = function (output, context) {
|
|
|
563
607
|
case 0:
|
|
564
608
|
_a = [__assign({}, output)];
|
|
565
609
|
_c = {};
|
|
566
|
-
return [4,
|
|
610
|
+
return [4, parseErrorBody(output.body, context)];
|
|
567
611
|
case 1:
|
|
568
612
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
569
613
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -654,7 +698,7 @@ var deserializeAws_json1_1CreateBackupCommandError = function (output, context)
|
|
|
654
698
|
case 0:
|
|
655
699
|
_a = [__assign({}, output)];
|
|
656
700
|
_c = {};
|
|
657
|
-
return [4,
|
|
701
|
+
return [4, parseErrorBody(output.body, context)];
|
|
658
702
|
case 1:
|
|
659
703
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
660
704
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -733,7 +777,7 @@ var deserializeAws_json1_1CreateDataRepositoryAssociationCommandError = function
|
|
|
733
777
|
case 0:
|
|
734
778
|
_a = [__assign({}, output)];
|
|
735
779
|
_c = {};
|
|
736
|
-
return [4,
|
|
780
|
+
return [4, parseErrorBody(output.body, context)];
|
|
737
781
|
case 1:
|
|
738
782
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
739
783
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -804,7 +848,7 @@ var deserializeAws_json1_1CreateDataRepositoryTaskCommandError = function (outpu
|
|
|
804
848
|
case 0:
|
|
805
849
|
_a = [__assign({}, output)];
|
|
806
850
|
_c = {};
|
|
807
|
-
return [4,
|
|
851
|
+
return [4, parseErrorBody(output.body, context)];
|
|
808
852
|
case 1:
|
|
809
853
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
810
854
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -853,6 +897,81 @@ var deserializeAws_json1_1CreateDataRepositoryTaskCommandError = function (outpu
|
|
|
853
897
|
}
|
|
854
898
|
});
|
|
855
899
|
}); };
|
|
900
|
+
export var deserializeAws_json1_1CreateFileCacheCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
901
|
+
var data, contents, response;
|
|
902
|
+
return __generator(this, function (_a) {
|
|
903
|
+
switch (_a.label) {
|
|
904
|
+
case 0:
|
|
905
|
+
if (output.statusCode >= 300) {
|
|
906
|
+
return [2, deserializeAws_json1_1CreateFileCacheCommandError(output, context)];
|
|
907
|
+
}
|
|
908
|
+
return [4, parseBody(output.body, context)];
|
|
909
|
+
case 1:
|
|
910
|
+
data = _a.sent();
|
|
911
|
+
contents = {};
|
|
912
|
+
contents = deserializeAws_json1_1CreateFileCacheResponse(data, context);
|
|
913
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
914
|
+
return [2, Promise.resolve(response)];
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
}); };
|
|
918
|
+
var deserializeAws_json1_1CreateFileCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
919
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
920
|
+
var _c;
|
|
921
|
+
return __generator(this, function (_d) {
|
|
922
|
+
switch (_d.label) {
|
|
923
|
+
case 0:
|
|
924
|
+
_a = [__assign({}, output)];
|
|
925
|
+
_c = {};
|
|
926
|
+
return [4, parseErrorBody(output.body, context)];
|
|
927
|
+
case 1:
|
|
928
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
929
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
+
_b = errorCode;
|
|
931
|
+
switch (_b) {
|
|
932
|
+
case "BadRequest": return [3, 2];
|
|
933
|
+
case "com.amazonaws.fsx#BadRequest": return [3, 2];
|
|
934
|
+
case "IncompatibleParameterError": return [3, 4];
|
|
935
|
+
case "com.amazonaws.fsx#IncompatibleParameterError": return [3, 4];
|
|
936
|
+
case "InternalServerError": return [3, 6];
|
|
937
|
+
case "com.amazonaws.fsx#InternalServerError": return [3, 6];
|
|
938
|
+
case "InvalidNetworkSettings": return [3, 8];
|
|
939
|
+
case "com.amazonaws.fsx#InvalidNetworkSettings": return [3, 8];
|
|
940
|
+
case "InvalidPerUnitStorageThroughput": return [3, 10];
|
|
941
|
+
case "com.amazonaws.fsx#InvalidPerUnitStorageThroughput": return [3, 10];
|
|
942
|
+
case "MissingFileCacheConfiguration": return [3, 12];
|
|
943
|
+
case "com.amazonaws.fsx#MissingFileCacheConfiguration": return [3, 12];
|
|
944
|
+
case "ServiceLimitExceeded": return [3, 14];
|
|
945
|
+
case "com.amazonaws.fsx#ServiceLimitExceeded": return [3, 14];
|
|
946
|
+
}
|
|
947
|
+
return [3, 16];
|
|
948
|
+
case 2: return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
|
|
949
|
+
case 3: throw _d.sent();
|
|
950
|
+
case 4: return [4, deserializeAws_json1_1IncompatibleParameterErrorResponse(parsedOutput, context)];
|
|
951
|
+
case 5: throw _d.sent();
|
|
952
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
953
|
+
case 7: throw _d.sent();
|
|
954
|
+
case 8: return [4, deserializeAws_json1_1InvalidNetworkSettingsResponse(parsedOutput, context)];
|
|
955
|
+
case 9: throw _d.sent();
|
|
956
|
+
case 10: return [4, deserializeAws_json1_1InvalidPerUnitStorageThroughputResponse(parsedOutput, context)];
|
|
957
|
+
case 11: throw _d.sent();
|
|
958
|
+
case 12: return [4, deserializeAws_json1_1MissingFileCacheConfigurationResponse(parsedOutput, context)];
|
|
959
|
+
case 13: throw _d.sent();
|
|
960
|
+
case 14: return [4, deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context)];
|
|
961
|
+
case 15: throw _d.sent();
|
|
962
|
+
case 16:
|
|
963
|
+
parsedBody = parsedOutput.body;
|
|
964
|
+
throwDefaultError({
|
|
965
|
+
output: output,
|
|
966
|
+
parsedBody: parsedBody,
|
|
967
|
+
exceptionCtor: __BaseException,
|
|
968
|
+
errorCode: errorCode,
|
|
969
|
+
});
|
|
970
|
+
_d.label = 17;
|
|
971
|
+
case 17: return [2];
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
}); };
|
|
856
975
|
export var deserializeAws_json1_1CreateFileSystemCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
857
976
|
var data, contents, response;
|
|
858
977
|
return __generator(this, function (_a) {
|
|
@@ -879,7 +998,7 @@ var deserializeAws_json1_1CreateFileSystemCommandError = function (output, conte
|
|
|
879
998
|
case 0:
|
|
880
999
|
_a = [__assign({}, output)];
|
|
881
1000
|
_c = {};
|
|
882
|
-
return [4,
|
|
1001
|
+
return [4, parseErrorBody(output.body, context)];
|
|
883
1002
|
case 1:
|
|
884
1003
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
885
1004
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -966,7 +1085,7 @@ var deserializeAws_json1_1CreateFileSystemFromBackupCommandError = function (out
|
|
|
966
1085
|
case 0:
|
|
967
1086
|
_a = [__assign({}, output)];
|
|
968
1087
|
_c = {};
|
|
969
|
-
return [4,
|
|
1088
|
+
return [4, parseErrorBody(output.body, context)];
|
|
970
1089
|
case 1:
|
|
971
1090
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
972
1091
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1049,7 +1168,7 @@ var deserializeAws_json1_1CreateSnapshotCommandError = function (output, context
|
|
|
1049
1168
|
case 0:
|
|
1050
1169
|
_a = [__assign({}, output)];
|
|
1051
1170
|
_c = {};
|
|
1052
|
-
return [4,
|
|
1171
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1053
1172
|
case 1:
|
|
1054
1173
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1055
1174
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1112,7 +1231,7 @@ var deserializeAws_json1_1CreateStorageVirtualMachineCommandError = function (ou
|
|
|
1112
1231
|
case 0:
|
|
1113
1232
|
_a = [__assign({}, output)];
|
|
1114
1233
|
_c = {};
|
|
1115
|
-
return [4,
|
|
1234
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1116
1235
|
case 1:
|
|
1117
1236
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1118
1237
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1187,7 +1306,7 @@ var deserializeAws_json1_1CreateVolumeCommandError = function (output, context)
|
|
|
1187
1306
|
case 0:
|
|
1188
1307
|
_a = [__assign({}, output)];
|
|
1189
1308
|
_c = {};
|
|
1190
|
-
return [4,
|
|
1309
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1191
1310
|
case 1:
|
|
1192
1311
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1193
1312
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1266,7 +1385,7 @@ var deserializeAws_json1_1CreateVolumeFromBackupCommandError = function (output,
|
|
|
1266
1385
|
case 0:
|
|
1267
1386
|
_a = [__assign({}, output)];
|
|
1268
1387
|
_c = {};
|
|
1269
|
-
return [4,
|
|
1388
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1270
1389
|
case 1:
|
|
1271
1390
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1272
1391
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1345,7 +1464,7 @@ var deserializeAws_json1_1DeleteBackupCommandError = function (output, context)
|
|
|
1345
1464
|
case 0:
|
|
1346
1465
|
_a = [__assign({}, output)];
|
|
1347
1466
|
_c = {};
|
|
1348
|
-
return [4,
|
|
1467
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1349
1468
|
case 1:
|
|
1350
1469
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1351
1470
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1420,7 +1539,7 @@ var deserializeAws_json1_1DeleteDataRepositoryAssociationCommandError = function
|
|
|
1420
1539
|
case 0:
|
|
1421
1540
|
_a = [__assign({}, output)];
|
|
1422
1541
|
_c = {};
|
|
1423
|
-
return [4,
|
|
1542
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1424
1543
|
case 1:
|
|
1425
1544
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1426
1545
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1461,6 +1580,73 @@ var deserializeAws_json1_1DeleteDataRepositoryAssociationCommandError = function
|
|
|
1461
1580
|
}
|
|
1462
1581
|
});
|
|
1463
1582
|
}); };
|
|
1583
|
+
export var deserializeAws_json1_1DeleteFileCacheCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1584
|
+
var data, contents, response;
|
|
1585
|
+
return __generator(this, function (_a) {
|
|
1586
|
+
switch (_a.label) {
|
|
1587
|
+
case 0:
|
|
1588
|
+
if (output.statusCode >= 300) {
|
|
1589
|
+
return [2, deserializeAws_json1_1DeleteFileCacheCommandError(output, context)];
|
|
1590
|
+
}
|
|
1591
|
+
return [4, parseBody(output.body, context)];
|
|
1592
|
+
case 1:
|
|
1593
|
+
data = _a.sent();
|
|
1594
|
+
contents = {};
|
|
1595
|
+
contents = deserializeAws_json1_1DeleteFileCacheResponse(data, context);
|
|
1596
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1597
|
+
return [2, Promise.resolve(response)];
|
|
1598
|
+
}
|
|
1599
|
+
});
|
|
1600
|
+
}); };
|
|
1601
|
+
var deserializeAws_json1_1DeleteFileCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1602
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1603
|
+
var _c;
|
|
1604
|
+
return __generator(this, function (_d) {
|
|
1605
|
+
switch (_d.label) {
|
|
1606
|
+
case 0:
|
|
1607
|
+
_a = [__assign({}, output)];
|
|
1608
|
+
_c = {};
|
|
1609
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1610
|
+
case 1:
|
|
1611
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1612
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
|
+
_b = errorCode;
|
|
1614
|
+
switch (_b) {
|
|
1615
|
+
case "BadRequest": return [3, 2];
|
|
1616
|
+
case "com.amazonaws.fsx#BadRequest": return [3, 2];
|
|
1617
|
+
case "FileCacheNotFound": return [3, 4];
|
|
1618
|
+
case "com.amazonaws.fsx#FileCacheNotFound": return [3, 4];
|
|
1619
|
+
case "IncompatibleParameterError": return [3, 6];
|
|
1620
|
+
case "com.amazonaws.fsx#IncompatibleParameterError": return [3, 6];
|
|
1621
|
+
case "InternalServerError": return [3, 8];
|
|
1622
|
+
case "com.amazonaws.fsx#InternalServerError": return [3, 8];
|
|
1623
|
+
case "ServiceLimitExceeded": return [3, 10];
|
|
1624
|
+
case "com.amazonaws.fsx#ServiceLimitExceeded": return [3, 10];
|
|
1625
|
+
}
|
|
1626
|
+
return [3, 12];
|
|
1627
|
+
case 2: return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
|
|
1628
|
+
case 3: throw _d.sent();
|
|
1629
|
+
case 4: return [4, deserializeAws_json1_1FileCacheNotFoundResponse(parsedOutput, context)];
|
|
1630
|
+
case 5: throw _d.sent();
|
|
1631
|
+
case 6: return [4, deserializeAws_json1_1IncompatibleParameterErrorResponse(parsedOutput, context)];
|
|
1632
|
+
case 7: throw _d.sent();
|
|
1633
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1634
|
+
case 9: throw _d.sent();
|
|
1635
|
+
case 10: return [4, deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context)];
|
|
1636
|
+
case 11: throw _d.sent();
|
|
1637
|
+
case 12:
|
|
1638
|
+
parsedBody = parsedOutput.body;
|
|
1639
|
+
throwDefaultError({
|
|
1640
|
+
output: output,
|
|
1641
|
+
parsedBody: parsedBody,
|
|
1642
|
+
exceptionCtor: __BaseException,
|
|
1643
|
+
errorCode: errorCode,
|
|
1644
|
+
});
|
|
1645
|
+
_d.label = 13;
|
|
1646
|
+
case 13: return [2];
|
|
1647
|
+
}
|
|
1648
|
+
});
|
|
1649
|
+
}); };
|
|
1464
1650
|
export var deserializeAws_json1_1DeleteFileSystemCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1465
1651
|
var data, contents, response;
|
|
1466
1652
|
return __generator(this, function (_a) {
|
|
@@ -1487,7 +1673,7 @@ var deserializeAws_json1_1DeleteFileSystemCommandError = function (output, conte
|
|
|
1487
1673
|
case 0:
|
|
1488
1674
|
_a = [__assign({}, output)];
|
|
1489
1675
|
_c = {};
|
|
1490
|
-
return [4,
|
|
1676
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1491
1677
|
case 1:
|
|
1492
1678
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1493
1679
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1554,7 +1740,7 @@ var deserializeAws_json1_1DeleteSnapshotCommandError = function (output, context
|
|
|
1554
1740
|
case 0:
|
|
1555
1741
|
_a = [__assign({}, output)];
|
|
1556
1742
|
_c = {};
|
|
1557
|
-
return [4,
|
|
1743
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1558
1744
|
case 1:
|
|
1559
1745
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1560
1746
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1613,7 +1799,7 @@ var deserializeAws_json1_1DeleteStorageVirtualMachineCommandError = function (ou
|
|
|
1613
1799
|
case 0:
|
|
1614
1800
|
_a = [__assign({}, output)];
|
|
1615
1801
|
_c = {};
|
|
1616
|
-
return [4,
|
|
1802
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1617
1803
|
case 1:
|
|
1618
1804
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1619
1805
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1676,7 +1862,7 @@ var deserializeAws_json1_1DeleteVolumeCommandError = function (output, context)
|
|
|
1676
1862
|
case 0:
|
|
1677
1863
|
_a = [__assign({}, output)];
|
|
1678
1864
|
_c = {};
|
|
1679
|
-
return [4,
|
|
1865
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1680
1866
|
case 1:
|
|
1681
1867
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1682
1868
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1739,7 +1925,7 @@ var deserializeAws_json1_1DescribeBackupsCommandError = function (output, contex
|
|
|
1739
1925
|
case 0:
|
|
1740
1926
|
_a = [__assign({}, output)];
|
|
1741
1927
|
_c = {};
|
|
1742
|
-
return [4,
|
|
1928
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1743
1929
|
case 1:
|
|
1744
1930
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1745
1931
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1806,7 +1992,7 @@ var deserializeAws_json1_1DescribeDataRepositoryAssociationsCommandError = funct
|
|
|
1806
1992
|
case 0:
|
|
1807
1993
|
_a = [__assign({}, output)];
|
|
1808
1994
|
_c = {};
|
|
1809
|
-
return [4,
|
|
1995
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1810
1996
|
case 1:
|
|
1811
1997
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1812
1998
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1873,7 +2059,7 @@ var deserializeAws_json1_1DescribeDataRepositoryTasksCommandError = function (ou
|
|
|
1873
2059
|
case 0:
|
|
1874
2060
|
_a = [__assign({}, output)];
|
|
1875
2061
|
_c = {};
|
|
1876
|
-
return [4,
|
|
2062
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1877
2063
|
case 1:
|
|
1878
2064
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1879
2065
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1910,6 +2096,65 @@ var deserializeAws_json1_1DescribeDataRepositoryTasksCommandError = function (ou
|
|
|
1910
2096
|
}
|
|
1911
2097
|
});
|
|
1912
2098
|
}); };
|
|
2099
|
+
export var deserializeAws_json1_1DescribeFileCachesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2100
|
+
var data, contents, response;
|
|
2101
|
+
return __generator(this, function (_a) {
|
|
2102
|
+
switch (_a.label) {
|
|
2103
|
+
case 0:
|
|
2104
|
+
if (output.statusCode >= 300) {
|
|
2105
|
+
return [2, deserializeAws_json1_1DescribeFileCachesCommandError(output, context)];
|
|
2106
|
+
}
|
|
2107
|
+
return [4, parseBody(output.body, context)];
|
|
2108
|
+
case 1:
|
|
2109
|
+
data = _a.sent();
|
|
2110
|
+
contents = {};
|
|
2111
|
+
contents = deserializeAws_json1_1DescribeFileCachesResponse(data, context);
|
|
2112
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2113
|
+
return [2, Promise.resolve(response)];
|
|
2114
|
+
}
|
|
2115
|
+
});
|
|
2116
|
+
}); };
|
|
2117
|
+
var deserializeAws_json1_1DescribeFileCachesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2118
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2119
|
+
var _c;
|
|
2120
|
+
return __generator(this, function (_d) {
|
|
2121
|
+
switch (_d.label) {
|
|
2122
|
+
case 0:
|
|
2123
|
+
_a = [__assign({}, output)];
|
|
2124
|
+
_c = {};
|
|
2125
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2126
|
+
case 1:
|
|
2127
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2128
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2129
|
+
_b = errorCode;
|
|
2130
|
+
switch (_b) {
|
|
2131
|
+
case "BadRequest": return [3, 2];
|
|
2132
|
+
case "com.amazonaws.fsx#BadRequest": return [3, 2];
|
|
2133
|
+
case "FileCacheNotFound": return [3, 4];
|
|
2134
|
+
case "com.amazonaws.fsx#FileCacheNotFound": return [3, 4];
|
|
2135
|
+
case "InternalServerError": return [3, 6];
|
|
2136
|
+
case "com.amazonaws.fsx#InternalServerError": return [3, 6];
|
|
2137
|
+
}
|
|
2138
|
+
return [3, 8];
|
|
2139
|
+
case 2: return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
|
|
2140
|
+
case 3: throw _d.sent();
|
|
2141
|
+
case 4: return [4, deserializeAws_json1_1FileCacheNotFoundResponse(parsedOutput, context)];
|
|
2142
|
+
case 5: throw _d.sent();
|
|
2143
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
2144
|
+
case 7: throw _d.sent();
|
|
2145
|
+
case 8:
|
|
2146
|
+
parsedBody = parsedOutput.body;
|
|
2147
|
+
throwDefaultError({
|
|
2148
|
+
output: output,
|
|
2149
|
+
parsedBody: parsedBody,
|
|
2150
|
+
exceptionCtor: __BaseException,
|
|
2151
|
+
errorCode: errorCode,
|
|
2152
|
+
});
|
|
2153
|
+
_d.label = 9;
|
|
2154
|
+
case 9: return [2];
|
|
2155
|
+
}
|
|
2156
|
+
});
|
|
2157
|
+
}); };
|
|
1913
2158
|
export var deserializeAws_json1_1DescribeFileSystemAliasesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1914
2159
|
var data, contents, response;
|
|
1915
2160
|
return __generator(this, function (_a) {
|
|
@@ -1936,7 +2181,7 @@ var deserializeAws_json1_1DescribeFileSystemAliasesCommandError = function (outp
|
|
|
1936
2181
|
case 0:
|
|
1937
2182
|
_a = [__assign({}, output)];
|
|
1938
2183
|
_c = {};
|
|
1939
|
-
return [4,
|
|
2184
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1940
2185
|
case 1:
|
|
1941
2186
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1942
2187
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1995,7 +2240,7 @@ var deserializeAws_json1_1DescribeFileSystemsCommandError = function (output, co
|
|
|
1995
2240
|
case 0:
|
|
1996
2241
|
_a = [__assign({}, output)];
|
|
1997
2242
|
_c = {};
|
|
1998
|
-
return [4,
|
|
2243
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1999
2244
|
case 1:
|
|
2000
2245
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2001
2246
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2054,7 +2299,7 @@ var deserializeAws_json1_1DescribeSnapshotsCommandError = function (output, cont
|
|
|
2054
2299
|
case 0:
|
|
2055
2300
|
_a = [__assign({}, output)];
|
|
2056
2301
|
_c = {};
|
|
2057
|
-
return [4,
|
|
2302
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2058
2303
|
case 1:
|
|
2059
2304
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2060
2305
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2113,7 +2358,7 @@ var deserializeAws_json1_1DescribeStorageVirtualMachinesCommandError = function
|
|
|
2113
2358
|
case 0:
|
|
2114
2359
|
_a = [__assign({}, output)];
|
|
2115
2360
|
_c = {};
|
|
2116
|
-
return [4,
|
|
2361
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2117
2362
|
case 1:
|
|
2118
2363
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2119
2364
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2172,7 +2417,7 @@ var deserializeAws_json1_1DescribeVolumesCommandError = function (output, contex
|
|
|
2172
2417
|
case 0:
|
|
2173
2418
|
_a = [__assign({}, output)];
|
|
2174
2419
|
_c = {};
|
|
2175
|
-
return [4,
|
|
2420
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2176
2421
|
case 1:
|
|
2177
2422
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2178
2423
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2231,7 +2476,7 @@ var deserializeAws_json1_1DisassociateFileSystemAliasesCommandError = function (
|
|
|
2231
2476
|
case 0:
|
|
2232
2477
|
_a = [__assign({}, output)];
|
|
2233
2478
|
_c = {};
|
|
2234
|
-
return [4,
|
|
2479
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2235
2480
|
case 1:
|
|
2236
2481
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2237
2482
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2290,7 +2535,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2290
2535
|
case 0:
|
|
2291
2536
|
_a = [__assign({}, output)];
|
|
2292
2537
|
_c = {};
|
|
2293
|
-
return [4,
|
|
2538
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2294
2539
|
case 1:
|
|
2295
2540
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2296
2541
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2357,7 +2602,7 @@ var deserializeAws_json1_1ReleaseFileSystemNfsV3LocksCommandError = function (ou
|
|
|
2357
2602
|
case 0:
|
|
2358
2603
|
_a = [__assign({}, output)];
|
|
2359
2604
|
_c = {};
|
|
2360
|
-
return [4,
|
|
2605
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2361
2606
|
case 1:
|
|
2362
2607
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2363
2608
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2424,7 +2669,7 @@ var deserializeAws_json1_1RestoreVolumeFromSnapshotCommandError = function (outp
|
|
|
2424
2669
|
case 0:
|
|
2425
2670
|
_a = [__assign({}, output)];
|
|
2426
2671
|
_c = {};
|
|
2427
|
-
return [4,
|
|
2672
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2428
2673
|
case 1:
|
|
2429
2674
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2430
2675
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2483,7 +2728,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2483
2728
|
case 0:
|
|
2484
2729
|
_a = [__assign({}, output)];
|
|
2485
2730
|
_c = {};
|
|
2486
|
-
return [4,
|
|
2731
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2487
2732
|
case 1:
|
|
2488
2733
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2489
2734
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2550,7 +2795,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2550
2795
|
case 0:
|
|
2551
2796
|
_a = [__assign({}, output)];
|
|
2552
2797
|
_c = {};
|
|
2553
|
-
return [4,
|
|
2798
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2554
2799
|
case 1:
|
|
2555
2800
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2556
2801
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2617,7 +2862,7 @@ var deserializeAws_json1_1UpdateDataRepositoryAssociationCommandError = function
|
|
|
2617
2862
|
case 0:
|
|
2618
2863
|
_a = [__assign({}, output)];
|
|
2619
2864
|
_c = {};
|
|
2620
|
-
return [4,
|
|
2865
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2621
2866
|
case 1:
|
|
2622
2867
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2623
2868
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2658,6 +2903,81 @@ var deserializeAws_json1_1UpdateDataRepositoryAssociationCommandError = function
|
|
|
2658
2903
|
}
|
|
2659
2904
|
});
|
|
2660
2905
|
}); };
|
|
2906
|
+
export var deserializeAws_json1_1UpdateFileCacheCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2907
|
+
var data, contents, response;
|
|
2908
|
+
return __generator(this, function (_a) {
|
|
2909
|
+
switch (_a.label) {
|
|
2910
|
+
case 0:
|
|
2911
|
+
if (output.statusCode >= 300) {
|
|
2912
|
+
return [2, deserializeAws_json1_1UpdateFileCacheCommandError(output, context)];
|
|
2913
|
+
}
|
|
2914
|
+
return [4, parseBody(output.body, context)];
|
|
2915
|
+
case 1:
|
|
2916
|
+
data = _a.sent();
|
|
2917
|
+
contents = {};
|
|
2918
|
+
contents = deserializeAws_json1_1UpdateFileCacheResponse(data, context);
|
|
2919
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2920
|
+
return [2, Promise.resolve(response)];
|
|
2921
|
+
}
|
|
2922
|
+
});
|
|
2923
|
+
}); };
|
|
2924
|
+
var deserializeAws_json1_1UpdateFileCacheCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2925
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2926
|
+
var _c;
|
|
2927
|
+
return __generator(this, function (_d) {
|
|
2928
|
+
switch (_d.label) {
|
|
2929
|
+
case 0:
|
|
2930
|
+
_a = [__assign({}, output)];
|
|
2931
|
+
_c = {};
|
|
2932
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2933
|
+
case 1:
|
|
2934
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2935
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2936
|
+
_b = errorCode;
|
|
2937
|
+
switch (_b) {
|
|
2938
|
+
case "BadRequest": return [3, 2];
|
|
2939
|
+
case "com.amazonaws.fsx#BadRequest": return [3, 2];
|
|
2940
|
+
case "FileCacheNotFound": return [3, 4];
|
|
2941
|
+
case "com.amazonaws.fsx#FileCacheNotFound": return [3, 4];
|
|
2942
|
+
case "IncompatibleParameterError": return [3, 6];
|
|
2943
|
+
case "com.amazonaws.fsx#IncompatibleParameterError": return [3, 6];
|
|
2944
|
+
case "InternalServerError": return [3, 8];
|
|
2945
|
+
case "com.amazonaws.fsx#InternalServerError": return [3, 8];
|
|
2946
|
+
case "MissingFileCacheConfiguration": return [3, 10];
|
|
2947
|
+
case "com.amazonaws.fsx#MissingFileCacheConfiguration": return [3, 10];
|
|
2948
|
+
case "ServiceLimitExceeded": return [3, 12];
|
|
2949
|
+
case "com.amazonaws.fsx#ServiceLimitExceeded": return [3, 12];
|
|
2950
|
+
case "UnsupportedOperation": return [3, 14];
|
|
2951
|
+
case "com.amazonaws.fsx#UnsupportedOperation": return [3, 14];
|
|
2952
|
+
}
|
|
2953
|
+
return [3, 16];
|
|
2954
|
+
case 2: return [4, deserializeAws_json1_1BadRequestResponse(parsedOutput, context)];
|
|
2955
|
+
case 3: throw _d.sent();
|
|
2956
|
+
case 4: return [4, deserializeAws_json1_1FileCacheNotFoundResponse(parsedOutput, context)];
|
|
2957
|
+
case 5: throw _d.sent();
|
|
2958
|
+
case 6: return [4, deserializeAws_json1_1IncompatibleParameterErrorResponse(parsedOutput, context)];
|
|
2959
|
+
case 7: throw _d.sent();
|
|
2960
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
2961
|
+
case 9: throw _d.sent();
|
|
2962
|
+
case 10: return [4, deserializeAws_json1_1MissingFileCacheConfigurationResponse(parsedOutput, context)];
|
|
2963
|
+
case 11: throw _d.sent();
|
|
2964
|
+
case 12: return [4, deserializeAws_json1_1ServiceLimitExceededResponse(parsedOutput, context)];
|
|
2965
|
+
case 13: throw _d.sent();
|
|
2966
|
+
case 14: return [4, deserializeAws_json1_1UnsupportedOperationResponse(parsedOutput, context)];
|
|
2967
|
+
case 15: throw _d.sent();
|
|
2968
|
+
case 16:
|
|
2969
|
+
parsedBody = parsedOutput.body;
|
|
2970
|
+
throwDefaultError({
|
|
2971
|
+
output: output,
|
|
2972
|
+
parsedBody: parsedBody,
|
|
2973
|
+
exceptionCtor: __BaseException,
|
|
2974
|
+
errorCode: errorCode,
|
|
2975
|
+
});
|
|
2976
|
+
_d.label = 17;
|
|
2977
|
+
case 17: return [2];
|
|
2978
|
+
}
|
|
2979
|
+
});
|
|
2980
|
+
}); };
|
|
2661
2981
|
export var deserializeAws_json1_1UpdateFileSystemCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2662
2982
|
var data, contents, response;
|
|
2663
2983
|
return __generator(this, function (_a) {
|
|
@@ -2684,7 +3004,7 @@ var deserializeAws_json1_1UpdateFileSystemCommandError = function (output, conte
|
|
|
2684
3004
|
case 0:
|
|
2685
3005
|
_a = [__assign({}, output)];
|
|
2686
3006
|
_c = {};
|
|
2687
|
-
return [4,
|
|
3007
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2688
3008
|
case 1:
|
|
2689
3009
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2690
3010
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2759,7 +3079,7 @@ var deserializeAws_json1_1UpdateSnapshotCommandError = function (output, context
|
|
|
2759
3079
|
case 0:
|
|
2760
3080
|
_a = [__assign({}, output)];
|
|
2761
3081
|
_c = {};
|
|
2762
|
-
return [4,
|
|
3082
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2763
3083
|
case 1:
|
|
2764
3084
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2765
3085
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2818,7 +3138,7 @@ var deserializeAws_json1_1UpdateStorageVirtualMachineCommandError = function (ou
|
|
|
2818
3138
|
case 0:
|
|
2819
3139
|
_a = [__assign({}, output)];
|
|
2820
3140
|
_c = {};
|
|
2821
|
-
return [4,
|
|
3141
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2822
3142
|
case 1:
|
|
2823
3143
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2824
3144
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2885,7 +3205,7 @@ var deserializeAws_json1_1UpdateVolumeCommandError = function (output, context)
|
|
|
2885
3205
|
case 0:
|
|
2886
3206
|
_a = [__assign({}, output)];
|
|
2887
3207
|
_c = {};
|
|
2888
|
-
return [4,
|
|
3208
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2889
3209
|
case 1:
|
|
2890
3210
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2891
3211
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3016,6 +3336,15 @@ var deserializeAws_json1_1DataRepositoryTaskNotFoundResponse = function (parsedO
|
|
|
3016
3336
|
return [2, __decorateServiceException(exception, body)];
|
|
3017
3337
|
});
|
|
3018
3338
|
}); };
|
|
3339
|
+
var deserializeAws_json1_1FileCacheNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3340
|
+
var body, deserialized, exception;
|
|
3341
|
+
return __generator(this, function (_a) {
|
|
3342
|
+
body = parsedOutput.body;
|
|
3343
|
+
deserialized = deserializeAws_json1_1FileCacheNotFound(body, context);
|
|
3344
|
+
exception = new FileCacheNotFound(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3345
|
+
return [2, __decorateServiceException(exception, body)];
|
|
3346
|
+
});
|
|
3347
|
+
}); };
|
|
3019
3348
|
var deserializeAws_json1_1FileSystemNotFoundResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3020
3349
|
var body, deserialized, exception;
|
|
3021
3350
|
return __generator(this, function (_a) {
|
|
@@ -3124,6 +3453,15 @@ var deserializeAws_json1_1InvalidSourceKmsKeyResponse = function (parsedOutput,
|
|
|
3124
3453
|
return [2, __decorateServiceException(exception, body)];
|
|
3125
3454
|
});
|
|
3126
3455
|
}); };
|
|
3456
|
+
var deserializeAws_json1_1MissingFileCacheConfigurationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3457
|
+
var body, deserialized, exception;
|
|
3458
|
+
return __generator(this, function (_a) {
|
|
3459
|
+
body = parsedOutput.body;
|
|
3460
|
+
deserialized = deserializeAws_json1_1MissingFileCacheConfiguration(body, context);
|
|
3461
|
+
exception = new MissingFileCacheConfiguration(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3462
|
+
return [2, __decorateServiceException(exception, body)];
|
|
3463
|
+
});
|
|
3464
|
+
}); };
|
|
3127
3465
|
var deserializeAws_json1_1MissingFileSystemConfigurationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3128
3466
|
var body, deserialized, exception;
|
|
3129
3467
|
return __generator(this, function (_a) {
|
|
@@ -3269,17 +3607,41 @@ var serializeAws_json1_1CreateDataRepositoryAssociationRequest = function (input
|
|
|
3269
3607
|
};
|
|
3270
3608
|
var serializeAws_json1_1CreateDataRepositoryTaskRequest = function (input, context) {
|
|
3271
3609
|
var _a;
|
|
3272
|
-
return __assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemId != null && { FileSystemId: input.FileSystemId })), (input.Paths != null && { Paths: serializeAws_json1_1DataRepositoryTaskPaths(input.Paths, context) })), (input.Report != null && { Report: serializeAws_json1_1CompletionReport(input.Report, context) })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.Type != null && { Type: input.Type }));
|
|
3610
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CapacityToRelease != null && { CapacityToRelease: input.CapacityToRelease })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.FileSystemId != null && { FileSystemId: input.FileSystemId })), (input.Paths != null && { Paths: serializeAws_json1_1DataRepositoryTaskPaths(input.Paths, context) })), (input.Report != null && { Report: serializeAws_json1_1CompletionReport(input.Report, context) })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.Type != null && { Type: input.Type }));
|
|
3611
|
+
};
|
|
3612
|
+
var serializeAws_json1_1CreateFileCacheDataRepositoryAssociations = function (input, context) {
|
|
3613
|
+
return input
|
|
3614
|
+
.filter(function (e) { return e != null; })
|
|
3615
|
+
.map(function (entry) {
|
|
3616
|
+
return serializeAws_json1_1FileCacheDataRepositoryAssociation(entry, context);
|
|
3617
|
+
});
|
|
3618
|
+
};
|
|
3619
|
+
var serializeAws_json1_1CreateFileCacheLustreConfiguration = function (input, context) {
|
|
3620
|
+
return __assign(__assign(__assign(__assign({}, (input.DeploymentType != null && { DeploymentType: input.DeploymentType })), (input.MetadataConfiguration != null && {
|
|
3621
|
+
MetadataConfiguration: serializeAws_json1_1FileCacheLustreMetadataConfiguration(input.MetadataConfiguration, context),
|
|
3622
|
+
})), (input.PerUnitStorageThroughput != null && { PerUnitStorageThroughput: input.PerUnitStorageThroughput })), (input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }));
|
|
3623
|
+
};
|
|
3624
|
+
var serializeAws_json1_1CreateFileCacheRequest = function (input, context) {
|
|
3625
|
+
var _a;
|
|
3626
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.CopyTagsToDataRepositoryAssociations != null && {
|
|
3627
|
+
CopyTagsToDataRepositoryAssociations: input.CopyTagsToDataRepositoryAssociations,
|
|
3628
|
+
})), (input.DataRepositoryAssociations != null && {
|
|
3629
|
+
DataRepositoryAssociations: serializeAws_json1_1CreateFileCacheDataRepositoryAssociations(input.DataRepositoryAssociations, context),
|
|
3630
|
+
})), (input.FileCacheType != null && { FileCacheType: input.FileCacheType })), (input.FileCacheTypeVersion != null && { FileCacheTypeVersion: input.FileCacheTypeVersion })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.LustreConfiguration != null && {
|
|
3631
|
+
LustreConfiguration: serializeAws_json1_1CreateFileCacheLustreConfiguration(input.LustreConfiguration, context),
|
|
3632
|
+
})), (input.SecurityGroupIds != null && {
|
|
3633
|
+
SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
|
|
3634
|
+
})), (input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity })), (input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }));
|
|
3273
3635
|
};
|
|
3274
3636
|
var serializeAws_json1_1CreateFileSystemFromBackupRequest = function (input, context) {
|
|
3275
3637
|
var _a;
|
|
3276
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupId != null && { BackupId: input.BackupId })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.FileSystemTypeVersion != null && { FileSystemTypeVersion: input.FileSystemTypeVersion })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.LustreConfiguration != null && {
|
|
3638
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupId != null && { BackupId: input.BackupId })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.FileSystemTypeVersion != null && { FileSystemTypeVersion: input.FileSystemTypeVersion })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.LustreConfiguration != null && {
|
|
3277
3639
|
LustreConfiguration: serializeAws_json1_1CreateFileSystemLustreConfiguration(input.LustreConfiguration, context),
|
|
3278
3640
|
})), (input.OpenZFSConfiguration != null && {
|
|
3279
3641
|
OpenZFSConfiguration: serializeAws_json1_1CreateFileSystemOpenZFSConfiguration(input.OpenZFSConfiguration, context),
|
|
3280
3642
|
})), (input.SecurityGroupIds != null && {
|
|
3281
3643
|
SecurityGroupIds: serializeAws_json1_1SecurityGroupIds(input.SecurityGroupIds, context),
|
|
3282
|
-
})), (input.StorageType != null && { StorageType: input.StorageType })), (input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.WindowsConfiguration != null && {
|
|
3644
|
+
})), (input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity })), (input.StorageType != null && { StorageType: input.StorageType })), (input.SubnetIds != null && { SubnetIds: serializeAws_json1_1SubnetIds(input.SubnetIds, context) })), (input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.WindowsConfiguration != null && {
|
|
3283
3645
|
WindowsConfiguration: serializeAws_json1_1CreateFileSystemWindowsConfiguration(input.WindowsConfiguration, context),
|
|
3284
3646
|
}));
|
|
3285
3647
|
};
|
|
@@ -3426,6 +3788,10 @@ var serializeAws_json1_1DeleteDataRepositoryAssociationRequest = function (input
|
|
|
3426
3788
|
var _a;
|
|
3427
3789
|
return __assign(__assign(__assign({}, (input.AssociationId != null && { AssociationId: input.AssociationId })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.DeleteDataInFileSystem != null && { DeleteDataInFileSystem: input.DeleteDataInFileSystem }));
|
|
3428
3790
|
};
|
|
3791
|
+
var serializeAws_json1_1DeleteFileCacheRequest = function (input, context) {
|
|
3792
|
+
var _a;
|
|
3793
|
+
return __assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileCacheId != null && { FileCacheId: input.FileCacheId }));
|
|
3794
|
+
};
|
|
3429
3795
|
var serializeAws_json1_1DeleteFileSystemLustreConfiguration = function (input, context) {
|
|
3430
3796
|
return __assign(__assign({}, (input.FinalBackupTags != null && { FinalBackupTags: serializeAws_json1_1Tags(input.FinalBackupTags, context) })), (input.SkipFinalBackup != null && { SkipFinalBackup: input.SkipFinalBackup }));
|
|
3431
3797
|
};
|
|
@@ -3494,6 +3860,9 @@ var serializeAws_json1_1DescribeDataRepositoryAssociationsRequest = function (in
|
|
|
3494
3860
|
var serializeAws_json1_1DescribeDataRepositoryTasksRequest = function (input, context) {
|
|
3495
3861
|
return __assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1DataRepositoryTaskFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TaskIds != null && { TaskIds: serializeAws_json1_1TaskIds(input.TaskIds, context) }));
|
|
3496
3862
|
};
|
|
3863
|
+
var serializeAws_json1_1DescribeFileCachesRequest = function (input, context) {
|
|
3864
|
+
return __assign(__assign(__assign({}, (input.FileCacheIds != null && { FileCacheIds: serializeAws_json1_1FileCacheIds(input.FileCacheIds, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
3865
|
+
};
|
|
3497
3866
|
var serializeAws_json1_1DescribeFileSystemAliasesRequest = function (input, context) {
|
|
3498
3867
|
var _a;
|
|
3499
3868
|
return __assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemId != null && { FileSystemId: input.FileSystemId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
@@ -3535,6 +3904,24 @@ var serializeAws_json1_1EventTypes = function (input, context) {
|
|
|
3535
3904
|
return entry;
|
|
3536
3905
|
});
|
|
3537
3906
|
};
|
|
3907
|
+
var serializeAws_json1_1FileCacheDataRepositoryAssociation = function (input, context) {
|
|
3908
|
+
return __assign(__assign(__assign(__assign({}, (input.DataRepositoryPath != null && { DataRepositoryPath: input.DataRepositoryPath })), (input.DataRepositorySubdirectories != null && {
|
|
3909
|
+
DataRepositorySubdirectories: serializeAws_json1_1SubDirectoriesPaths(input.DataRepositorySubdirectories, context),
|
|
3910
|
+
})), (input.FileCachePath != null && { FileCachePath: input.FileCachePath })), (input.NFS != null && { NFS: serializeAws_json1_1FileCacheNFSConfiguration(input.NFS, context) }));
|
|
3911
|
+
};
|
|
3912
|
+
var serializeAws_json1_1FileCacheIds = function (input, context) {
|
|
3913
|
+
return input
|
|
3914
|
+
.filter(function (e) { return e != null; })
|
|
3915
|
+
.map(function (entry) {
|
|
3916
|
+
return entry;
|
|
3917
|
+
});
|
|
3918
|
+
};
|
|
3919
|
+
var serializeAws_json1_1FileCacheLustreMetadataConfiguration = function (input, context) {
|
|
3920
|
+
return __assign({}, (input.StorageCapacity != null && { StorageCapacity: input.StorageCapacity }));
|
|
3921
|
+
};
|
|
3922
|
+
var serializeAws_json1_1FileCacheNFSConfiguration = function (input, context) {
|
|
3923
|
+
return __assign(__assign({}, (input.DnsIps != null && { DnsIps: serializeAws_json1_1RepositoryDnsIps(input.DnsIps, context) })), (input.Version != null && { Version: input.Version }));
|
|
3924
|
+
};
|
|
3538
3925
|
var serializeAws_json1_1FileSystemIds = function (input, context) {
|
|
3539
3926
|
return input
|
|
3540
3927
|
.filter(function (e) { return e != null; })
|
|
@@ -3625,6 +4012,13 @@ var serializeAws_json1_1ReleaseFileSystemNfsV3LocksRequest = function (input, co
|
|
|
3625
4012
|
var _a;
|
|
3626
4013
|
return __assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileSystemId != null && { FileSystemId: input.FileSystemId }));
|
|
3627
4014
|
};
|
|
4015
|
+
var serializeAws_json1_1RepositoryDnsIps = function (input, context) {
|
|
4016
|
+
return input
|
|
4017
|
+
.filter(function (e) { return e != null; })
|
|
4018
|
+
.map(function (entry) {
|
|
4019
|
+
return entry;
|
|
4020
|
+
});
|
|
4021
|
+
};
|
|
3628
4022
|
var serializeAws_json1_1RestoreOpenZFSVolumeOptions = function (input, context) {
|
|
3629
4023
|
return input
|
|
3630
4024
|
.filter(function (e) { return e != null; })
|
|
@@ -3717,6 +4111,13 @@ var serializeAws_json1_1StorageVirtualMachineIds = function (input, context) {
|
|
|
3717
4111
|
return entry;
|
|
3718
4112
|
});
|
|
3719
4113
|
};
|
|
4114
|
+
var serializeAws_json1_1SubDirectoriesPaths = function (input, context) {
|
|
4115
|
+
return input
|
|
4116
|
+
.filter(function (e) { return e != null; })
|
|
4117
|
+
.map(function (entry) {
|
|
4118
|
+
return entry;
|
|
4119
|
+
});
|
|
4120
|
+
};
|
|
3720
4121
|
var serializeAws_json1_1SubnetIds = function (input, context) {
|
|
3721
4122
|
return input
|
|
3722
4123
|
.filter(function (e) { return e != null; })
|
|
@@ -3761,6 +4162,15 @@ var serializeAws_json1_1UpdateDataRepositoryAssociationRequest = function (input
|
|
|
3761
4162
|
var _a;
|
|
3762
4163
|
return __assign(__assign(__assign(__assign({}, (input.AssociationId != null && { AssociationId: input.AssociationId })), { ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.ImportedFileChunkSize != null && { ImportedFileChunkSize: input.ImportedFileChunkSize })), (input.S3 != null && { S3: serializeAws_json1_1S3DataRepositoryConfiguration(input.S3, context) }));
|
|
3763
4164
|
};
|
|
4165
|
+
var serializeAws_json1_1UpdateFileCacheLustreConfiguration = function (input, context) {
|
|
4166
|
+
return __assign({}, (input.WeeklyMaintenanceStartTime != null && { WeeklyMaintenanceStartTime: input.WeeklyMaintenanceStartTime }));
|
|
4167
|
+
};
|
|
4168
|
+
var serializeAws_json1_1UpdateFileCacheRequest = function (input, context) {
|
|
4169
|
+
var _a;
|
|
4170
|
+
return __assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FileCacheId != null && { FileCacheId: input.FileCacheId })), (input.LustreConfiguration != null && {
|
|
4171
|
+
LustreConfiguration: serializeAws_json1_1UpdateFileCacheLustreConfiguration(input.LustreConfiguration, context),
|
|
4172
|
+
}));
|
|
4173
|
+
};
|
|
3764
4174
|
var serializeAws_json1_1UpdateFileSystemLustreConfiguration = function (input, context) {
|
|
3765
4175
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoImportPolicy != null && { AutoImportPolicy: input.AutoImportPolicy })), (input.AutomaticBackupRetentionDays != null && {
|
|
3766
4176
|
AutomaticBackupRetentionDays: input.AutomaticBackupRetentionDays,
|
|
@@ -4066,6 +4476,11 @@ var deserializeAws_json1_1CreateDataRepositoryTaskResponse = function (output, c
|
|
|
4066
4476
|
: undefined,
|
|
4067
4477
|
};
|
|
4068
4478
|
};
|
|
4479
|
+
var deserializeAws_json1_1CreateFileCacheResponse = function (output, context) {
|
|
4480
|
+
return {
|
|
4481
|
+
FileCache: output.FileCache != null ? deserializeAws_json1_1FileCacheCreating(output.FileCache, context) : undefined,
|
|
4482
|
+
};
|
|
4483
|
+
};
|
|
4069
4484
|
var deserializeAws_json1_1CreateFileSystemFromBackupResponse = function (output, context) {
|
|
4070
4485
|
return {
|
|
4071
4486
|
FileSystem: output.FileSystem != null ? deserializeAws_json1_1FileSystem(output.FileSystem, context) : undefined,
|
|
@@ -4106,18 +4521,35 @@ var deserializeAws_json1_1DataRepositoryAssociation = function (output, context)
|
|
|
4106
4521
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4107
4522
|
: undefined,
|
|
4108
4523
|
DataRepositoryPath: __expectString(output.DataRepositoryPath),
|
|
4524
|
+
DataRepositorySubdirectories: output.DataRepositorySubdirectories != null
|
|
4525
|
+
? deserializeAws_json1_1SubDirectoriesPaths(output.DataRepositorySubdirectories, context)
|
|
4526
|
+
: undefined,
|
|
4109
4527
|
FailureDetails: output.FailureDetails != null
|
|
4110
4528
|
? deserializeAws_json1_1DataRepositoryFailureDetails(output.FailureDetails, context)
|
|
4111
4529
|
: undefined,
|
|
4530
|
+
FileCacheId: __expectString(output.FileCacheId),
|
|
4531
|
+
FileCachePath: __expectString(output.FileCachePath),
|
|
4112
4532
|
FileSystemId: __expectString(output.FileSystemId),
|
|
4113
4533
|
FileSystemPath: __expectString(output.FileSystemPath),
|
|
4114
4534
|
ImportedFileChunkSize: __expectInt32(output.ImportedFileChunkSize),
|
|
4115
4535
|
Lifecycle: __expectString(output.Lifecycle),
|
|
4536
|
+
NFS: output.NFS != null ? deserializeAws_json1_1NFSDataRepositoryConfiguration(output.NFS, context) : undefined,
|
|
4116
4537
|
ResourceARN: __expectString(output.ResourceARN),
|
|
4117
4538
|
S3: output.S3 != null ? deserializeAws_json1_1S3DataRepositoryConfiguration(output.S3, context) : undefined,
|
|
4118
4539
|
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
4119
4540
|
};
|
|
4120
4541
|
};
|
|
4542
|
+
var deserializeAws_json1_1DataRepositoryAssociationIds = function (output, context) {
|
|
4543
|
+
var retVal = (output || [])
|
|
4544
|
+
.filter(function (e) { return e != null; })
|
|
4545
|
+
.map(function (entry) {
|
|
4546
|
+
if (entry === null) {
|
|
4547
|
+
return null;
|
|
4548
|
+
}
|
|
4549
|
+
return __expectString(entry);
|
|
4550
|
+
});
|
|
4551
|
+
return retVal;
|
|
4552
|
+
};
|
|
4121
4553
|
var deserializeAws_json1_1DataRepositoryAssociationNotFound = function (output, context) {
|
|
4122
4554
|
return {
|
|
4123
4555
|
Message: __expectString(output.Message),
|
|
@@ -4153,6 +4585,7 @@ var deserializeAws_json1_1DataRepositoryFailureDetails = function (output, conte
|
|
|
4153
4585
|
};
|
|
4154
4586
|
var deserializeAws_json1_1DataRepositoryTask = function (output, context) {
|
|
4155
4587
|
return {
|
|
4588
|
+
CapacityToRelease: __expectLong(output.CapacityToRelease),
|
|
4156
4589
|
CreationTime: output.CreationTime != null
|
|
4157
4590
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4158
4591
|
: undefined,
|
|
@@ -4160,6 +4593,7 @@ var deserializeAws_json1_1DataRepositoryTask = function (output, context) {
|
|
|
4160
4593
|
FailureDetails: output.FailureDetails != null
|
|
4161
4594
|
? deserializeAws_json1_1DataRepositoryTaskFailureDetails(output.FailureDetails, context)
|
|
4162
4595
|
: undefined,
|
|
4596
|
+
FileCacheId: __expectString(output.FileCacheId),
|
|
4163
4597
|
FileSystemId: __expectString(output.FileSystemId),
|
|
4164
4598
|
Lifecycle: __expectString(output.Lifecycle),
|
|
4165
4599
|
Paths: output.Paths != null ? deserializeAws_json1_1DataRepositoryTaskPaths(output.Paths, context) : undefined,
|
|
@@ -4220,6 +4654,7 @@ var deserializeAws_json1_1DataRepositoryTaskStatus = function (output, context)
|
|
|
4220
4654
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
4221
4655
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
4222
4656
|
: undefined,
|
|
4657
|
+
ReleasedCapacity: __expectLong(output.ReleasedCapacity),
|
|
4223
4658
|
SucceededCount: __expectLong(output.SucceededCount),
|
|
4224
4659
|
TotalCount: __expectLong(output.TotalCount),
|
|
4225
4660
|
};
|
|
@@ -4237,6 +4672,12 @@ var deserializeAws_json1_1DeleteDataRepositoryAssociationResponse = function (ou
|
|
|
4237
4672
|
Lifecycle: __expectString(output.Lifecycle),
|
|
4238
4673
|
};
|
|
4239
4674
|
};
|
|
4675
|
+
var deserializeAws_json1_1DeleteFileCacheResponse = function (output, context) {
|
|
4676
|
+
return {
|
|
4677
|
+
FileCacheId: __expectString(output.FileCacheId),
|
|
4678
|
+
Lifecycle: __expectString(output.Lifecycle),
|
|
4679
|
+
};
|
|
4680
|
+
};
|
|
4240
4681
|
var deserializeAws_json1_1DeleteFileSystemLustreResponse = function (output, context) {
|
|
4241
4682
|
return {
|
|
4242
4683
|
FinalBackupId: __expectString(output.FinalBackupId),
|
|
@@ -4319,6 +4760,12 @@ var deserializeAws_json1_1DescribeDataRepositoryTasksResponse = function (output
|
|
|
4319
4760
|
NextToken: __expectString(output.NextToken),
|
|
4320
4761
|
};
|
|
4321
4762
|
};
|
|
4763
|
+
var deserializeAws_json1_1DescribeFileCachesResponse = function (output, context) {
|
|
4764
|
+
return {
|
|
4765
|
+
FileCaches: output.FileCaches != null ? deserializeAws_json1_1FileCaches(output.FileCaches, context) : undefined,
|
|
4766
|
+
NextToken: __expectString(output.NextToken),
|
|
4767
|
+
};
|
|
4768
|
+
};
|
|
4322
4769
|
var deserializeAws_json1_1DescribeFileSystemAliasesResponse = function (output, context) {
|
|
4323
4770
|
return {
|
|
4324
4771
|
Aliases: output.Aliases != null ? deserializeAws_json1_1Aliases(output.Aliases, context) : undefined,
|
|
@@ -4384,6 +4831,108 @@ var deserializeAws_json1_1EventTypes = function (output, context) {
|
|
|
4384
4831
|
});
|
|
4385
4832
|
return retVal;
|
|
4386
4833
|
};
|
|
4834
|
+
var deserializeAws_json1_1FileCache = function (output, context) {
|
|
4835
|
+
return {
|
|
4836
|
+
CreationTime: output.CreationTime != null
|
|
4837
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4838
|
+
: undefined,
|
|
4839
|
+
DNSName: __expectString(output.DNSName),
|
|
4840
|
+
DataRepositoryAssociationIds: output.DataRepositoryAssociationIds != null
|
|
4841
|
+
? deserializeAws_json1_1DataRepositoryAssociationIds(output.DataRepositoryAssociationIds, context)
|
|
4842
|
+
: undefined,
|
|
4843
|
+
FailureDetails: output.FailureDetails != null
|
|
4844
|
+
? deserializeAws_json1_1FileCacheFailureDetails(output.FailureDetails, context)
|
|
4845
|
+
: undefined,
|
|
4846
|
+
FileCacheId: __expectString(output.FileCacheId),
|
|
4847
|
+
FileCacheType: __expectString(output.FileCacheType),
|
|
4848
|
+
FileCacheTypeVersion: __expectString(output.FileCacheTypeVersion),
|
|
4849
|
+
KmsKeyId: __expectString(output.KmsKeyId),
|
|
4850
|
+
Lifecycle: __expectString(output.Lifecycle),
|
|
4851
|
+
LustreConfiguration: output.LustreConfiguration != null
|
|
4852
|
+
? deserializeAws_json1_1FileCacheLustreConfiguration(output.LustreConfiguration, context)
|
|
4853
|
+
: undefined,
|
|
4854
|
+
NetworkInterfaceIds: output.NetworkInterfaceIds != null
|
|
4855
|
+
? deserializeAws_json1_1NetworkInterfaceIds(output.NetworkInterfaceIds, context)
|
|
4856
|
+
: undefined,
|
|
4857
|
+
OwnerId: __expectString(output.OwnerId),
|
|
4858
|
+
ResourceARN: __expectString(output.ResourceARN),
|
|
4859
|
+
StorageCapacity: __expectInt32(output.StorageCapacity),
|
|
4860
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
|
|
4861
|
+
VpcId: __expectString(output.VpcId),
|
|
4862
|
+
};
|
|
4863
|
+
};
|
|
4864
|
+
var deserializeAws_json1_1FileCacheCreating = function (output, context) {
|
|
4865
|
+
return {
|
|
4866
|
+
CopyTagsToDataRepositoryAssociations: __expectBoolean(output.CopyTagsToDataRepositoryAssociations),
|
|
4867
|
+
CreationTime: output.CreationTime != null
|
|
4868
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4869
|
+
: undefined,
|
|
4870
|
+
DNSName: __expectString(output.DNSName),
|
|
4871
|
+
DataRepositoryAssociationIds: output.DataRepositoryAssociationIds != null
|
|
4872
|
+
? deserializeAws_json1_1DataRepositoryAssociationIds(output.DataRepositoryAssociationIds, context)
|
|
4873
|
+
: undefined,
|
|
4874
|
+
FailureDetails: output.FailureDetails != null
|
|
4875
|
+
? deserializeAws_json1_1FileCacheFailureDetails(output.FailureDetails, context)
|
|
4876
|
+
: undefined,
|
|
4877
|
+
FileCacheId: __expectString(output.FileCacheId),
|
|
4878
|
+
FileCacheType: __expectString(output.FileCacheType),
|
|
4879
|
+
FileCacheTypeVersion: __expectString(output.FileCacheTypeVersion),
|
|
4880
|
+
KmsKeyId: __expectString(output.KmsKeyId),
|
|
4881
|
+
Lifecycle: __expectString(output.Lifecycle),
|
|
4882
|
+
LustreConfiguration: output.LustreConfiguration != null
|
|
4883
|
+
? deserializeAws_json1_1FileCacheLustreConfiguration(output.LustreConfiguration, context)
|
|
4884
|
+
: undefined,
|
|
4885
|
+
NetworkInterfaceIds: output.NetworkInterfaceIds != null
|
|
4886
|
+
? deserializeAws_json1_1NetworkInterfaceIds(output.NetworkInterfaceIds, context)
|
|
4887
|
+
: undefined,
|
|
4888
|
+
OwnerId: __expectString(output.OwnerId),
|
|
4889
|
+
ResourceARN: __expectString(output.ResourceARN),
|
|
4890
|
+
StorageCapacity: __expectInt32(output.StorageCapacity),
|
|
4891
|
+
SubnetIds: output.SubnetIds != null ? deserializeAws_json1_1SubnetIds(output.SubnetIds, context) : undefined,
|
|
4892
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
4893
|
+
VpcId: __expectString(output.VpcId),
|
|
4894
|
+
};
|
|
4895
|
+
};
|
|
4896
|
+
var deserializeAws_json1_1FileCacheFailureDetails = function (output, context) {
|
|
4897
|
+
return {
|
|
4898
|
+
Message: __expectString(output.Message),
|
|
4899
|
+
};
|
|
4900
|
+
};
|
|
4901
|
+
var deserializeAws_json1_1FileCacheLustreConfiguration = function (output, context) {
|
|
4902
|
+
return {
|
|
4903
|
+
DeploymentType: __expectString(output.DeploymentType),
|
|
4904
|
+
LogConfiguration: output.LogConfiguration != null
|
|
4905
|
+
? deserializeAws_json1_1LustreLogConfiguration(output.LogConfiguration, context)
|
|
4906
|
+
: undefined,
|
|
4907
|
+
MetadataConfiguration: output.MetadataConfiguration != null
|
|
4908
|
+
? deserializeAws_json1_1FileCacheLustreMetadataConfiguration(output.MetadataConfiguration, context)
|
|
4909
|
+
: undefined,
|
|
4910
|
+
MountName: __expectString(output.MountName),
|
|
4911
|
+
PerUnitStorageThroughput: __expectInt32(output.PerUnitStorageThroughput),
|
|
4912
|
+
WeeklyMaintenanceStartTime: __expectString(output.WeeklyMaintenanceStartTime),
|
|
4913
|
+
};
|
|
4914
|
+
};
|
|
4915
|
+
var deserializeAws_json1_1FileCacheLustreMetadataConfiguration = function (output, context) {
|
|
4916
|
+
return {
|
|
4917
|
+
StorageCapacity: __expectInt32(output.StorageCapacity),
|
|
4918
|
+
};
|
|
4919
|
+
};
|
|
4920
|
+
var deserializeAws_json1_1FileCacheNotFound = function (output, context) {
|
|
4921
|
+
return {
|
|
4922
|
+
Message: __expectString(output.Message),
|
|
4923
|
+
};
|
|
4924
|
+
};
|
|
4925
|
+
var deserializeAws_json1_1FileCaches = function (output, context) {
|
|
4926
|
+
var retVal = (output || [])
|
|
4927
|
+
.filter(function (e) { return e != null; })
|
|
4928
|
+
.map(function (entry) {
|
|
4929
|
+
if (entry === null) {
|
|
4930
|
+
return null;
|
|
4931
|
+
}
|
|
4932
|
+
return deserializeAws_json1_1FileCache(entry, context);
|
|
4933
|
+
});
|
|
4934
|
+
return retVal;
|
|
4935
|
+
};
|
|
4387
4936
|
var deserializeAws_json1_1FileSystem = function (output, context) {
|
|
4388
4937
|
return {
|
|
4389
4938
|
AdministrativeActions: output.AdministrativeActions != null
|
|
@@ -4586,6 +5135,11 @@ var deserializeAws_json1_1LustreRootSquashConfiguration = function (output, cont
|
|
|
4586
5135
|
RootSquash: __expectString(output.RootSquash),
|
|
4587
5136
|
};
|
|
4588
5137
|
};
|
|
5138
|
+
var deserializeAws_json1_1MissingFileCacheConfiguration = function (output, context) {
|
|
5139
|
+
return {
|
|
5140
|
+
Message: __expectString(output.Message),
|
|
5141
|
+
};
|
|
5142
|
+
};
|
|
4589
5143
|
var deserializeAws_json1_1MissingFileSystemConfiguration = function (output, context) {
|
|
4590
5144
|
return {
|
|
4591
5145
|
Message: __expectString(output.Message),
|
|
@@ -4607,6 +5161,15 @@ var deserializeAws_json1_1NetworkInterfaceIds = function (output, context) {
|
|
|
4607
5161
|
});
|
|
4608
5162
|
return retVal;
|
|
4609
5163
|
};
|
|
5164
|
+
var deserializeAws_json1_1NFSDataRepositoryConfiguration = function (output, context) {
|
|
5165
|
+
return {
|
|
5166
|
+
AutoExportPolicy: output.AutoExportPolicy != null
|
|
5167
|
+
? deserializeAws_json1_1AutoExportPolicy(output.AutoExportPolicy, context)
|
|
5168
|
+
: undefined,
|
|
5169
|
+
DnsIps: output.DnsIps != null ? deserializeAws_json1_1RepositoryDnsIps(output.DnsIps, context) : undefined,
|
|
5170
|
+
Version: __expectString(output.Version),
|
|
5171
|
+
};
|
|
5172
|
+
};
|
|
4610
5173
|
var deserializeAws_json1_1NotServiceResourceError = function (output, context) {
|
|
4611
5174
|
return {
|
|
4612
5175
|
Message: __expectString(output.Message),
|
|
@@ -4763,6 +5326,17 @@ var deserializeAws_json1_1ReleaseFileSystemNfsV3LocksResponse = function (output
|
|
|
4763
5326
|
FileSystem: output.FileSystem != null ? deserializeAws_json1_1FileSystem(output.FileSystem, context) : undefined,
|
|
4764
5327
|
};
|
|
4765
5328
|
};
|
|
5329
|
+
var deserializeAws_json1_1RepositoryDnsIps = function (output, context) {
|
|
5330
|
+
var retVal = (output || [])
|
|
5331
|
+
.filter(function (e) { return e != null; })
|
|
5332
|
+
.map(function (entry) {
|
|
5333
|
+
if (entry === null) {
|
|
5334
|
+
return null;
|
|
5335
|
+
}
|
|
5336
|
+
return __expectString(entry);
|
|
5337
|
+
});
|
|
5338
|
+
return retVal;
|
|
5339
|
+
};
|
|
4766
5340
|
var deserializeAws_json1_1ResourceDoesNotSupportTagging = function (output, context) {
|
|
4767
5341
|
return {
|
|
4768
5342
|
Message: __expectString(output.Message),
|
|
@@ -4897,6 +5471,17 @@ var deserializeAws_json1_1StorageVirtualMachines = function (output, context) {
|
|
|
4897
5471
|
});
|
|
4898
5472
|
return retVal;
|
|
4899
5473
|
};
|
|
5474
|
+
var deserializeAws_json1_1SubDirectoriesPaths = function (output, context) {
|
|
5475
|
+
var retVal = (output || [])
|
|
5476
|
+
.filter(function (e) { return e != null; })
|
|
5477
|
+
.map(function (entry) {
|
|
5478
|
+
if (entry === null) {
|
|
5479
|
+
return null;
|
|
5480
|
+
}
|
|
5481
|
+
return __expectString(entry);
|
|
5482
|
+
});
|
|
5483
|
+
return retVal;
|
|
5484
|
+
};
|
|
4900
5485
|
var deserializeAws_json1_1SubnetIds = function (output, context) {
|
|
4901
5486
|
var retVal = (output || [])
|
|
4902
5487
|
.filter(function (e) { return e != null; })
|
|
@@ -4973,6 +5558,11 @@ var deserializeAws_json1_1UpdateDataRepositoryAssociationResponse = function (ou
|
|
|
4973
5558
|
: undefined,
|
|
4974
5559
|
};
|
|
4975
5560
|
};
|
|
5561
|
+
var deserializeAws_json1_1UpdateFileCacheResponse = function (output, context) {
|
|
5562
|
+
return {
|
|
5563
|
+
FileCache: output.FileCache != null ? deserializeAws_json1_1FileCache(output.FileCache, context) : undefined,
|
|
5564
|
+
};
|
|
5565
|
+
};
|
|
4976
5566
|
var deserializeAws_json1_1UpdateFileSystemResponse = function (output, context) {
|
|
4977
5567
|
return {
|
|
4978
5568
|
FileSystem: output.FileSystem != null ? deserializeAws_json1_1FileSystem(output.FileSystem, context) : undefined,
|
|
@@ -5120,6 +5710,19 @@ var parseBody = function (streamBody, context) {
|
|
|
5120
5710
|
return {};
|
|
5121
5711
|
});
|
|
5122
5712
|
};
|
|
5713
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5714
|
+
var value;
|
|
5715
|
+
var _a;
|
|
5716
|
+
return __generator(this, function (_b) {
|
|
5717
|
+
switch (_b.label) {
|
|
5718
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
5719
|
+
case 1:
|
|
5720
|
+
value = _b.sent();
|
|
5721
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5722
|
+
return [2, value];
|
|
5723
|
+
}
|
|
5724
|
+
});
|
|
5725
|
+
}); };
|
|
5123
5726
|
var loadRestJsonErrorCode = function (output, data) {
|
|
5124
5727
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
5125
5728
|
var sanitizeErrorCode = function (rawValue) {
|