@aws-sdk/client-storage-gateway 3.489.0 → 3.495.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/dist-cjs/StorageGateway.js +1 -191
- package/dist-cjs/StorageGatewayClient.js +1 -43
- package/dist-cjs/commands/ActivateGatewayCommand.js +1 -28
- package/dist-cjs/commands/AddCacheCommand.js +1 -28
- package/dist-cjs/commands/AddTagsToResourceCommand.js +1 -28
- package/dist-cjs/commands/AddUploadBufferCommand.js +1 -28
- package/dist-cjs/commands/AddWorkingStorageCommand.js +1 -28
- package/dist-cjs/commands/AssignTapePoolCommand.js +1 -28
- package/dist-cjs/commands/AssociateFileSystemCommand.js +1 -29
- package/dist-cjs/commands/AttachVolumeCommand.js +1 -28
- package/dist-cjs/commands/CancelArchivalCommand.js +1 -28
- package/dist-cjs/commands/CancelRetrievalCommand.js +1 -28
- package/dist-cjs/commands/CreateCachediSCSIVolumeCommand.js +1 -28
- package/dist-cjs/commands/CreateNFSFileShareCommand.js +1 -28
- package/dist-cjs/commands/CreateSMBFileShareCommand.js +1 -28
- package/dist-cjs/commands/CreateSnapshotCommand.js +1 -28
- package/dist-cjs/commands/CreateSnapshotFromVolumeRecoveryPointCommand.js +1 -28
- package/dist-cjs/commands/CreateStorediSCSIVolumeCommand.js +1 -28
- package/dist-cjs/commands/CreateTapePoolCommand.js +1 -28
- package/dist-cjs/commands/CreateTapeWithBarcodeCommand.js +1 -28
- package/dist-cjs/commands/CreateTapesCommand.js +1 -28
- package/dist-cjs/commands/DeleteAutomaticTapeCreationPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteBandwidthRateLimitCommand.js +1 -28
- package/dist-cjs/commands/DeleteChapCredentialsCommand.js +1 -28
- package/dist-cjs/commands/DeleteFileShareCommand.js +1 -28
- package/dist-cjs/commands/DeleteGatewayCommand.js +1 -28
- package/dist-cjs/commands/DeleteSnapshotScheduleCommand.js +1 -28
- package/dist-cjs/commands/DeleteTapeArchiveCommand.js +1 -28
- package/dist-cjs/commands/DeleteTapeCommand.js +1 -28
- package/dist-cjs/commands/DeleteTapePoolCommand.js +1 -28
- package/dist-cjs/commands/DeleteVolumeCommand.js +1 -28
- package/dist-cjs/commands/DescribeAvailabilityMonitorTestCommand.js +1 -28
- package/dist-cjs/commands/DescribeBandwidthRateLimitCommand.js +1 -28
- package/dist-cjs/commands/DescribeBandwidthRateLimitScheduleCommand.js +1 -28
- package/dist-cjs/commands/DescribeCacheCommand.js +1 -28
- package/dist-cjs/commands/DescribeCachediSCSIVolumesCommand.js +1 -28
- package/dist-cjs/commands/DescribeChapCredentialsCommand.js +1 -29
- package/dist-cjs/commands/DescribeFileSystemAssociationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeGatewayInformationCommand.js +1 -29
- package/dist-cjs/commands/DescribeMaintenanceStartTimeCommand.js +1 -28
- package/dist-cjs/commands/DescribeNFSFileSharesCommand.js +1 -28
- package/dist-cjs/commands/DescribeSMBFileSharesCommand.js +1 -28
- package/dist-cjs/commands/DescribeSMBSettingsCommand.js +1 -28
- package/dist-cjs/commands/DescribeSnapshotScheduleCommand.js +1 -28
- package/dist-cjs/commands/DescribeStorediSCSIVolumesCommand.js +1 -28
- package/dist-cjs/commands/DescribeTapeArchivesCommand.js +1 -28
- package/dist-cjs/commands/DescribeTapeRecoveryPointsCommand.js +1 -28
- package/dist-cjs/commands/DescribeTapesCommand.js +1 -28
- package/dist-cjs/commands/DescribeUploadBufferCommand.js +1 -28
- package/dist-cjs/commands/DescribeVTLDevicesCommand.js +1 -28
- package/dist-cjs/commands/DescribeWorkingStorageCommand.js +1 -28
- package/dist-cjs/commands/DetachVolumeCommand.js +1 -28
- package/dist-cjs/commands/DisableGatewayCommand.js +1 -28
- package/dist-cjs/commands/DisassociateFileSystemCommand.js +1 -28
- package/dist-cjs/commands/JoinDomainCommand.js +1 -29
- package/dist-cjs/commands/ListAutomaticTapeCreationPoliciesCommand.js +1 -28
- package/dist-cjs/commands/ListFileSharesCommand.js +1 -28
- package/dist-cjs/commands/ListFileSystemAssociationsCommand.js +1 -28
- package/dist-cjs/commands/ListGatewaysCommand.js +1 -28
- package/dist-cjs/commands/ListLocalDisksCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTapePoolsCommand.js +1 -28
- package/dist-cjs/commands/ListTapesCommand.js +1 -28
- package/dist-cjs/commands/ListVolumeInitiatorsCommand.js +1 -28
- package/dist-cjs/commands/ListVolumeRecoveryPointsCommand.js +1 -28
- package/dist-cjs/commands/ListVolumesCommand.js +1 -28
- package/dist-cjs/commands/NotifyWhenUploadedCommand.js +1 -28
- package/dist-cjs/commands/RefreshCacheCommand.js +1 -28
- package/dist-cjs/commands/RemoveTagsFromResourceCommand.js +1 -28
- package/dist-cjs/commands/ResetCacheCommand.js +1 -28
- package/dist-cjs/commands/RetrieveTapeArchiveCommand.js +1 -28
- package/dist-cjs/commands/RetrieveTapeRecoveryPointCommand.js +1 -28
- package/dist-cjs/commands/SetLocalConsolePasswordCommand.js +1 -29
- package/dist-cjs/commands/SetSMBGuestPasswordCommand.js +1 -29
- package/dist-cjs/commands/ShutdownGatewayCommand.js +1 -28
- package/dist-cjs/commands/StartAvailabilityMonitorTestCommand.js +1 -28
- package/dist-cjs/commands/StartGatewayCommand.js +1 -28
- package/dist-cjs/commands/UpdateAutomaticTapeCreationPolicyCommand.js +1 -28
- package/dist-cjs/commands/UpdateBandwidthRateLimitCommand.js +1 -28
- package/dist-cjs/commands/UpdateBandwidthRateLimitScheduleCommand.js +1 -28
- package/dist-cjs/commands/UpdateChapCredentialsCommand.js +1 -29
- package/dist-cjs/commands/UpdateFileSystemAssociationCommand.js +1 -29
- package/dist-cjs/commands/UpdateGatewayInformationCommand.js +1 -28
- package/dist-cjs/commands/UpdateGatewaySoftwareNowCommand.js +1 -28
- package/dist-cjs/commands/UpdateMaintenanceStartTimeCommand.js +1 -28
- package/dist-cjs/commands/UpdateNFSFileShareCommand.js +1 -28
- package/dist-cjs/commands/UpdateSMBFileShareCommand.js +1 -28
- package/dist-cjs/commands/UpdateSMBFileShareVisibilityCommand.js +1 -28
- package/dist-cjs/commands/UpdateSMBLocalGroupsCommand.js +1 -28
- package/dist-cjs/commands/UpdateSMBSecurityStrategyCommand.js +1 -28
- package/dist-cjs/commands/UpdateSnapshotScheduleCommand.js +1 -28
- package/dist-cjs/commands/UpdateVTLDeviceTypeCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -93
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6274 -11
- package/dist-cjs/models/StorageGatewayServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -224
- package/dist-cjs/pagination/DescribeTapeArchivesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeTapeRecoveryPointsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeTapesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeVTLDevicesPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListFileSharesPaginator.js +1 -7
- package/dist-cjs/pagination/ListFileSystemAssociationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListGatewaysPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/ListTapePoolsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTapesPaginator.js +1 -7
- package/dist-cjs/pagination/ListVolumesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -15
- package/dist-cjs/protocols/Aws_json1_1.js +1 -4176
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4176 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_DetachVolumeCommand = exports.se_DescribeWorkingStorageCommand = exports.se_DescribeVTLDevicesCommand = exports.se_DescribeUploadBufferCommand = exports.se_DescribeTapesCommand = exports.se_DescribeTapeRecoveryPointsCommand = exports.se_DescribeTapeArchivesCommand = exports.se_DescribeStorediSCSIVolumesCommand = exports.se_DescribeSnapshotScheduleCommand = exports.se_DescribeSMBSettingsCommand = exports.se_DescribeSMBFileSharesCommand = exports.se_DescribeNFSFileSharesCommand = exports.se_DescribeMaintenanceStartTimeCommand = exports.se_DescribeGatewayInformationCommand = exports.se_DescribeFileSystemAssociationsCommand = exports.se_DescribeChapCredentialsCommand = exports.se_DescribeCachediSCSIVolumesCommand = exports.se_DescribeCacheCommand = exports.se_DescribeBandwidthRateLimitScheduleCommand = exports.se_DescribeBandwidthRateLimitCommand = exports.se_DescribeAvailabilityMonitorTestCommand = exports.se_DeleteVolumeCommand = exports.se_DeleteTapePoolCommand = exports.se_DeleteTapeArchiveCommand = exports.se_DeleteTapeCommand = exports.se_DeleteSnapshotScheduleCommand = exports.se_DeleteGatewayCommand = exports.se_DeleteFileShareCommand = exports.se_DeleteChapCredentialsCommand = exports.se_DeleteBandwidthRateLimitCommand = exports.se_DeleteAutomaticTapeCreationPolicyCommand = exports.se_CreateTapeWithBarcodeCommand = exports.se_CreateTapesCommand = exports.se_CreateTapePoolCommand = exports.se_CreateStorediSCSIVolumeCommand = exports.se_CreateSnapshotFromVolumeRecoveryPointCommand = exports.se_CreateSnapshotCommand = exports.se_CreateSMBFileShareCommand = exports.se_CreateNFSFileShareCommand = exports.se_CreateCachediSCSIVolumeCommand = exports.se_CancelRetrievalCommand = exports.se_CancelArchivalCommand = exports.se_AttachVolumeCommand = exports.se_AssociateFileSystemCommand = exports.se_AssignTapePoolCommand = exports.se_AddWorkingStorageCommand = exports.se_AddUploadBufferCommand = exports.se_AddTagsToResourceCommand = exports.se_AddCacheCommand = exports.se_ActivateGatewayCommand = void 0;
|
|
4
|
-
exports.de_CancelRetrievalCommand = exports.de_CancelArchivalCommand = exports.de_AttachVolumeCommand = exports.de_AssociateFileSystemCommand = exports.de_AssignTapePoolCommand = exports.de_AddWorkingStorageCommand = exports.de_AddUploadBufferCommand = exports.de_AddTagsToResourceCommand = exports.de_AddCacheCommand = exports.de_ActivateGatewayCommand = exports.se_UpdateVTLDeviceTypeCommand = exports.se_UpdateSnapshotScheduleCommand = exports.se_UpdateSMBSecurityStrategyCommand = exports.se_UpdateSMBLocalGroupsCommand = exports.se_UpdateSMBFileShareVisibilityCommand = exports.se_UpdateSMBFileShareCommand = exports.se_UpdateNFSFileShareCommand = exports.se_UpdateMaintenanceStartTimeCommand = exports.se_UpdateGatewaySoftwareNowCommand = exports.se_UpdateGatewayInformationCommand = exports.se_UpdateFileSystemAssociationCommand = exports.se_UpdateChapCredentialsCommand = exports.se_UpdateBandwidthRateLimitScheduleCommand = exports.se_UpdateBandwidthRateLimitCommand = exports.se_UpdateAutomaticTapeCreationPolicyCommand = exports.se_StartGatewayCommand = exports.se_StartAvailabilityMonitorTestCommand = exports.se_ShutdownGatewayCommand = exports.se_SetSMBGuestPasswordCommand = exports.se_SetLocalConsolePasswordCommand = exports.se_RetrieveTapeRecoveryPointCommand = exports.se_RetrieveTapeArchiveCommand = exports.se_ResetCacheCommand = exports.se_RemoveTagsFromResourceCommand = exports.se_RefreshCacheCommand = exports.se_NotifyWhenUploadedCommand = exports.se_ListVolumesCommand = exports.se_ListVolumeRecoveryPointsCommand = exports.se_ListVolumeInitiatorsCommand = exports.se_ListTapesCommand = exports.se_ListTapePoolsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListLocalDisksCommand = exports.se_ListGatewaysCommand = exports.se_ListFileSystemAssociationsCommand = exports.se_ListFileSharesCommand = exports.se_ListAutomaticTapeCreationPoliciesCommand = exports.se_JoinDomainCommand = exports.se_DisassociateFileSystemCommand = exports.se_DisableGatewayCommand = void 0;
|
|
5
|
-
exports.de_ListTapePoolsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLocalDisksCommand = exports.de_ListGatewaysCommand = exports.de_ListFileSystemAssociationsCommand = exports.de_ListFileSharesCommand = exports.de_ListAutomaticTapeCreationPoliciesCommand = exports.de_JoinDomainCommand = exports.de_DisassociateFileSystemCommand = exports.de_DisableGatewayCommand = exports.de_DetachVolumeCommand = exports.de_DescribeWorkingStorageCommand = exports.de_DescribeVTLDevicesCommand = exports.de_DescribeUploadBufferCommand = exports.de_DescribeTapesCommand = exports.de_DescribeTapeRecoveryPointsCommand = exports.de_DescribeTapeArchivesCommand = exports.de_DescribeStorediSCSIVolumesCommand = exports.de_DescribeSnapshotScheduleCommand = exports.de_DescribeSMBSettingsCommand = exports.de_DescribeSMBFileSharesCommand = exports.de_DescribeNFSFileSharesCommand = exports.de_DescribeMaintenanceStartTimeCommand = exports.de_DescribeGatewayInformationCommand = exports.de_DescribeFileSystemAssociationsCommand = exports.de_DescribeChapCredentialsCommand = exports.de_DescribeCachediSCSIVolumesCommand = exports.de_DescribeCacheCommand = exports.de_DescribeBandwidthRateLimitScheduleCommand = exports.de_DescribeBandwidthRateLimitCommand = exports.de_DescribeAvailabilityMonitorTestCommand = exports.de_DeleteVolumeCommand = exports.de_DeleteTapePoolCommand = exports.de_DeleteTapeArchiveCommand = exports.de_DeleteTapeCommand = exports.de_DeleteSnapshotScheduleCommand = exports.de_DeleteGatewayCommand = exports.de_DeleteFileShareCommand = exports.de_DeleteChapCredentialsCommand = exports.de_DeleteBandwidthRateLimitCommand = exports.de_DeleteAutomaticTapeCreationPolicyCommand = exports.de_CreateTapeWithBarcodeCommand = exports.de_CreateTapesCommand = exports.de_CreateTapePoolCommand = exports.de_CreateStorediSCSIVolumeCommand = exports.de_CreateSnapshotFromVolumeRecoveryPointCommand = exports.de_CreateSnapshotCommand = exports.de_CreateSMBFileShareCommand = exports.de_CreateNFSFileShareCommand = exports.de_CreateCachediSCSIVolumeCommand = void 0;
|
|
6
|
-
exports.de_UpdateVTLDeviceTypeCommand = exports.de_UpdateSnapshotScheduleCommand = exports.de_UpdateSMBSecurityStrategyCommand = exports.de_UpdateSMBLocalGroupsCommand = exports.de_UpdateSMBFileShareVisibilityCommand = exports.de_UpdateSMBFileShareCommand = exports.de_UpdateNFSFileShareCommand = exports.de_UpdateMaintenanceStartTimeCommand = exports.de_UpdateGatewaySoftwareNowCommand = exports.de_UpdateGatewayInformationCommand = exports.de_UpdateFileSystemAssociationCommand = exports.de_UpdateChapCredentialsCommand = exports.de_UpdateBandwidthRateLimitScheduleCommand = exports.de_UpdateBandwidthRateLimitCommand = exports.de_UpdateAutomaticTapeCreationPolicyCommand = exports.de_StartGatewayCommand = exports.de_StartAvailabilityMonitorTestCommand = exports.de_ShutdownGatewayCommand = exports.de_SetSMBGuestPasswordCommand = exports.de_SetLocalConsolePasswordCommand = exports.de_RetrieveTapeRecoveryPointCommand = exports.de_RetrieveTapeArchiveCommand = exports.de_ResetCacheCommand = exports.de_RemoveTagsFromResourceCommand = exports.de_RefreshCacheCommand = exports.de_NotifyWhenUploadedCommand = exports.de_ListVolumesCommand = exports.de_ListVolumeRecoveryPointsCommand = exports.de_ListVolumeInitiatorsCommand = exports.de_ListTapesCommand = void 0;
|
|
7
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const StorageGatewayServiceException_1 = require("../models/StorageGatewayServiceException");
|
|
11
|
-
const se_ActivateGatewayCommand = async (input, context) => {
|
|
12
|
-
const headers = sharedHeaders("ActivateGateway");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
-
};
|
|
17
|
-
exports.se_ActivateGatewayCommand = se_ActivateGatewayCommand;
|
|
18
|
-
const se_AddCacheCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("AddCache");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
exports.se_AddCacheCommand = se_AddCacheCommand;
|
|
25
|
-
const se_AddTagsToResourceCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("AddTagsToResource");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
|
|
32
|
-
const se_AddUploadBufferCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("AddUploadBuffer");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
38
|
-
exports.se_AddUploadBufferCommand = se_AddUploadBufferCommand;
|
|
39
|
-
const se_AddWorkingStorageCommand = async (input, context) => {
|
|
40
|
-
const headers = sharedHeaders("AddWorkingStorage");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
43
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
-
};
|
|
45
|
-
exports.se_AddWorkingStorageCommand = se_AddWorkingStorageCommand;
|
|
46
|
-
const se_AssignTapePoolCommand = async (input, context) => {
|
|
47
|
-
const headers = sharedHeaders("AssignTapePool");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
|
-
};
|
|
52
|
-
exports.se_AssignTapePoolCommand = se_AssignTapePoolCommand;
|
|
53
|
-
const se_AssociateFileSystemCommand = async (input, context) => {
|
|
54
|
-
const headers = sharedHeaders("AssociateFileSystem");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
57
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
-
};
|
|
59
|
-
exports.se_AssociateFileSystemCommand = se_AssociateFileSystemCommand;
|
|
60
|
-
const se_AttachVolumeCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("AttachVolume");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
exports.se_AttachVolumeCommand = se_AttachVolumeCommand;
|
|
67
|
-
const se_CancelArchivalCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("CancelArchival");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
exports.se_CancelArchivalCommand = se_CancelArchivalCommand;
|
|
74
|
-
const se_CancelRetrievalCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("CancelRetrieval");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
exports.se_CancelRetrievalCommand = se_CancelRetrievalCommand;
|
|
81
|
-
const se_CreateCachediSCSIVolumeCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("CreateCachediSCSIVolume");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
exports.se_CreateCachediSCSIVolumeCommand = se_CreateCachediSCSIVolumeCommand;
|
|
88
|
-
const se_CreateNFSFileShareCommand = async (input, context) => {
|
|
89
|
-
const headers = sharedHeaders("CreateNFSFileShare");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
-
};
|
|
94
|
-
exports.se_CreateNFSFileShareCommand = se_CreateNFSFileShareCommand;
|
|
95
|
-
const se_CreateSMBFileShareCommand = async (input, context) => {
|
|
96
|
-
const headers = sharedHeaders("CreateSMBFileShare");
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
99
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
-
};
|
|
101
|
-
exports.se_CreateSMBFileShareCommand = se_CreateSMBFileShareCommand;
|
|
102
|
-
const se_CreateSnapshotCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("CreateSnapshot");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
exports.se_CreateSnapshotCommand = se_CreateSnapshotCommand;
|
|
109
|
-
const se_CreateSnapshotFromVolumeRecoveryPointCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("CreateSnapshotFromVolumeRecoveryPoint");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
exports.se_CreateSnapshotFromVolumeRecoveryPointCommand = se_CreateSnapshotFromVolumeRecoveryPointCommand;
|
|
116
|
-
const se_CreateStorediSCSIVolumeCommand = async (input, context) => {
|
|
117
|
-
const headers = sharedHeaders("CreateStorediSCSIVolume");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
exports.se_CreateStorediSCSIVolumeCommand = se_CreateStorediSCSIVolumeCommand;
|
|
123
|
-
const se_CreateTapePoolCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("CreateTapePool");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
exports.se_CreateTapePoolCommand = se_CreateTapePoolCommand;
|
|
130
|
-
const se_CreateTapesCommand = async (input, context) => {
|
|
131
|
-
const headers = sharedHeaders("CreateTapes");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
exports.se_CreateTapesCommand = se_CreateTapesCommand;
|
|
137
|
-
const se_CreateTapeWithBarcodeCommand = async (input, context) => {
|
|
138
|
-
const headers = sharedHeaders("CreateTapeWithBarcode");
|
|
139
|
-
let body;
|
|
140
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
141
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
|
-
};
|
|
143
|
-
exports.se_CreateTapeWithBarcodeCommand = se_CreateTapeWithBarcodeCommand;
|
|
144
|
-
const se_DeleteAutomaticTapeCreationPolicyCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("DeleteAutomaticTapeCreationPolicy");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
exports.se_DeleteAutomaticTapeCreationPolicyCommand = se_DeleteAutomaticTapeCreationPolicyCommand;
|
|
151
|
-
const se_DeleteBandwidthRateLimitCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("DeleteBandwidthRateLimit");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
exports.se_DeleteBandwidthRateLimitCommand = se_DeleteBandwidthRateLimitCommand;
|
|
158
|
-
const se_DeleteChapCredentialsCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("DeleteChapCredentials");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
exports.se_DeleteChapCredentialsCommand = se_DeleteChapCredentialsCommand;
|
|
165
|
-
const se_DeleteFileShareCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("DeleteFileShare");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
exports.se_DeleteFileShareCommand = se_DeleteFileShareCommand;
|
|
172
|
-
const se_DeleteGatewayCommand = async (input, context) => {
|
|
173
|
-
const headers = sharedHeaders("DeleteGateway");
|
|
174
|
-
let body;
|
|
175
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
-
};
|
|
178
|
-
exports.se_DeleteGatewayCommand = se_DeleteGatewayCommand;
|
|
179
|
-
const se_DeleteSnapshotScheduleCommand = async (input, context) => {
|
|
180
|
-
const headers = sharedHeaders("DeleteSnapshotSchedule");
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.se_DeleteSnapshotScheduleCommand = se_DeleteSnapshotScheduleCommand;
|
|
186
|
-
const se_DeleteTapeCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("DeleteTape");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
exports.se_DeleteTapeCommand = se_DeleteTapeCommand;
|
|
193
|
-
const se_DeleteTapeArchiveCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("DeleteTapeArchive");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
exports.se_DeleteTapeArchiveCommand = se_DeleteTapeArchiveCommand;
|
|
200
|
-
const se_DeleteTapePoolCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("DeleteTapePool");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
exports.se_DeleteTapePoolCommand = se_DeleteTapePoolCommand;
|
|
207
|
-
const se_DeleteVolumeCommand = async (input, context) => {
|
|
208
|
-
const headers = sharedHeaders("DeleteVolume");
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
exports.se_DeleteVolumeCommand = se_DeleteVolumeCommand;
|
|
214
|
-
const se_DescribeAvailabilityMonitorTestCommand = async (input, context) => {
|
|
215
|
-
const headers = sharedHeaders("DescribeAvailabilityMonitorTest");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
exports.se_DescribeAvailabilityMonitorTestCommand = se_DescribeAvailabilityMonitorTestCommand;
|
|
221
|
-
const se_DescribeBandwidthRateLimitCommand = async (input, context) => {
|
|
222
|
-
const headers = sharedHeaders("DescribeBandwidthRateLimit");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
exports.se_DescribeBandwidthRateLimitCommand = se_DescribeBandwidthRateLimitCommand;
|
|
228
|
-
const se_DescribeBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("DescribeBandwidthRateLimitSchedule");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
exports.se_DescribeBandwidthRateLimitScheduleCommand = se_DescribeBandwidthRateLimitScheduleCommand;
|
|
235
|
-
const se_DescribeCacheCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("DescribeCache");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
exports.se_DescribeCacheCommand = se_DescribeCacheCommand;
|
|
242
|
-
const se_DescribeCachediSCSIVolumesCommand = async (input, context) => {
|
|
243
|
-
const headers = sharedHeaders("DescribeCachediSCSIVolumes");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
exports.se_DescribeCachediSCSIVolumesCommand = se_DescribeCachediSCSIVolumesCommand;
|
|
249
|
-
const se_DescribeChapCredentialsCommand = async (input, context) => {
|
|
250
|
-
const headers = sharedHeaders("DescribeChapCredentials");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
-
};
|
|
255
|
-
exports.se_DescribeChapCredentialsCommand = se_DescribeChapCredentialsCommand;
|
|
256
|
-
const se_DescribeFileSystemAssociationsCommand = async (input, context) => {
|
|
257
|
-
const headers = sharedHeaders("DescribeFileSystemAssociations");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_DescribeFileSystemAssociationsCommand = se_DescribeFileSystemAssociationsCommand;
|
|
263
|
-
const se_DescribeGatewayInformationCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("DescribeGatewayInformation");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
exports.se_DescribeGatewayInformationCommand = se_DescribeGatewayInformationCommand;
|
|
270
|
-
const se_DescribeMaintenanceStartTimeCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("DescribeMaintenanceStartTime");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
exports.se_DescribeMaintenanceStartTimeCommand = se_DescribeMaintenanceStartTimeCommand;
|
|
277
|
-
const se_DescribeNFSFileSharesCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("DescribeNFSFileShares");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
exports.se_DescribeNFSFileSharesCommand = se_DescribeNFSFileSharesCommand;
|
|
284
|
-
const se_DescribeSMBFileSharesCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("DescribeSMBFileShares");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
exports.se_DescribeSMBFileSharesCommand = se_DescribeSMBFileSharesCommand;
|
|
291
|
-
const se_DescribeSMBSettingsCommand = async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("DescribeSMBSettings");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
-
};
|
|
297
|
-
exports.se_DescribeSMBSettingsCommand = se_DescribeSMBSettingsCommand;
|
|
298
|
-
const se_DescribeSnapshotScheduleCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("DescribeSnapshotSchedule");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
302
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
-
};
|
|
304
|
-
exports.se_DescribeSnapshotScheduleCommand = se_DescribeSnapshotScheduleCommand;
|
|
305
|
-
const se_DescribeStorediSCSIVolumesCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("DescribeStorediSCSIVolumes");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
exports.se_DescribeStorediSCSIVolumesCommand = se_DescribeStorediSCSIVolumesCommand;
|
|
312
|
-
const se_DescribeTapeArchivesCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("DescribeTapeArchives");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
exports.se_DescribeTapeArchivesCommand = se_DescribeTapeArchivesCommand;
|
|
319
|
-
const se_DescribeTapeRecoveryPointsCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("DescribeTapeRecoveryPoints");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
exports.se_DescribeTapeRecoveryPointsCommand = se_DescribeTapeRecoveryPointsCommand;
|
|
326
|
-
const se_DescribeTapesCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("DescribeTapes");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
exports.se_DescribeTapesCommand = se_DescribeTapesCommand;
|
|
333
|
-
const se_DescribeUploadBufferCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("DescribeUploadBuffer");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_DescribeUploadBufferCommand = se_DescribeUploadBufferCommand;
|
|
340
|
-
const se_DescribeVTLDevicesCommand = async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("DescribeVTLDevices");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
exports.se_DescribeVTLDevicesCommand = se_DescribeVTLDevicesCommand;
|
|
347
|
-
const se_DescribeWorkingStorageCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("DescribeWorkingStorage");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
exports.se_DescribeWorkingStorageCommand = se_DescribeWorkingStorageCommand;
|
|
354
|
-
const se_DetachVolumeCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("DetachVolume");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
360
|
-
exports.se_DetachVolumeCommand = se_DetachVolumeCommand;
|
|
361
|
-
const se_DisableGatewayCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("DisableGateway");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
exports.se_DisableGatewayCommand = se_DisableGatewayCommand;
|
|
368
|
-
const se_DisassociateFileSystemCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("DisassociateFileSystem");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
exports.se_DisassociateFileSystemCommand = se_DisassociateFileSystemCommand;
|
|
375
|
-
const se_JoinDomainCommand = async (input, context) => {
|
|
376
|
-
const headers = sharedHeaders("JoinDomain");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
379
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
-
};
|
|
381
|
-
exports.se_JoinDomainCommand = se_JoinDomainCommand;
|
|
382
|
-
const se_ListAutomaticTapeCreationPoliciesCommand = async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("ListAutomaticTapeCreationPolicies");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
-
};
|
|
388
|
-
exports.se_ListAutomaticTapeCreationPoliciesCommand = se_ListAutomaticTapeCreationPoliciesCommand;
|
|
389
|
-
const se_ListFileSharesCommand = async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("ListFileShares");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
-
};
|
|
395
|
-
exports.se_ListFileSharesCommand = se_ListFileSharesCommand;
|
|
396
|
-
const se_ListFileSystemAssociationsCommand = async (input, context) => {
|
|
397
|
-
const headers = sharedHeaders("ListFileSystemAssociations");
|
|
398
|
-
let body;
|
|
399
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
400
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
|
-
};
|
|
402
|
-
exports.se_ListFileSystemAssociationsCommand = se_ListFileSystemAssociationsCommand;
|
|
403
|
-
const se_ListGatewaysCommand = async (input, context) => {
|
|
404
|
-
const headers = sharedHeaders("ListGateways");
|
|
405
|
-
let body;
|
|
406
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
407
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
|
-
};
|
|
409
|
-
exports.se_ListGatewaysCommand = se_ListGatewaysCommand;
|
|
410
|
-
const se_ListLocalDisksCommand = async (input, context) => {
|
|
411
|
-
const headers = sharedHeaders("ListLocalDisks");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
414
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
415
|
-
};
|
|
416
|
-
exports.se_ListLocalDisksCommand = se_ListLocalDisksCommand;
|
|
417
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
418
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
419
|
-
let body;
|
|
420
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
421
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
422
|
-
};
|
|
423
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
424
|
-
const se_ListTapePoolsCommand = async (input, context) => {
|
|
425
|
-
const headers = sharedHeaders("ListTapePools");
|
|
426
|
-
let body;
|
|
427
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
428
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
|
-
};
|
|
430
|
-
exports.se_ListTapePoolsCommand = se_ListTapePoolsCommand;
|
|
431
|
-
const se_ListTapesCommand = async (input, context) => {
|
|
432
|
-
const headers = sharedHeaders("ListTapes");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
435
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
|
-
};
|
|
437
|
-
exports.se_ListTapesCommand = se_ListTapesCommand;
|
|
438
|
-
const se_ListVolumeInitiatorsCommand = async (input, context) => {
|
|
439
|
-
const headers = sharedHeaders("ListVolumeInitiators");
|
|
440
|
-
let body;
|
|
441
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
442
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
443
|
-
};
|
|
444
|
-
exports.se_ListVolumeInitiatorsCommand = se_ListVolumeInitiatorsCommand;
|
|
445
|
-
const se_ListVolumeRecoveryPointsCommand = async (input, context) => {
|
|
446
|
-
const headers = sharedHeaders("ListVolumeRecoveryPoints");
|
|
447
|
-
let body;
|
|
448
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
449
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
450
|
-
};
|
|
451
|
-
exports.se_ListVolumeRecoveryPointsCommand = se_ListVolumeRecoveryPointsCommand;
|
|
452
|
-
const se_ListVolumesCommand = async (input, context) => {
|
|
453
|
-
const headers = sharedHeaders("ListVolumes");
|
|
454
|
-
let body;
|
|
455
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
456
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
-
};
|
|
458
|
-
exports.se_ListVolumesCommand = se_ListVolumesCommand;
|
|
459
|
-
const se_NotifyWhenUploadedCommand = async (input, context) => {
|
|
460
|
-
const headers = sharedHeaders("NotifyWhenUploaded");
|
|
461
|
-
let body;
|
|
462
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
463
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
464
|
-
};
|
|
465
|
-
exports.se_NotifyWhenUploadedCommand = se_NotifyWhenUploadedCommand;
|
|
466
|
-
const se_RefreshCacheCommand = async (input, context) => {
|
|
467
|
-
const headers = sharedHeaders("RefreshCache");
|
|
468
|
-
let body;
|
|
469
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
470
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
471
|
-
};
|
|
472
|
-
exports.se_RefreshCacheCommand = se_RefreshCacheCommand;
|
|
473
|
-
const se_RemoveTagsFromResourceCommand = async (input, context) => {
|
|
474
|
-
const headers = sharedHeaders("RemoveTagsFromResource");
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
477
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
|
-
};
|
|
479
|
-
exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
|
|
480
|
-
const se_ResetCacheCommand = async (input, context) => {
|
|
481
|
-
const headers = sharedHeaders("ResetCache");
|
|
482
|
-
let body;
|
|
483
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
484
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
|
-
};
|
|
486
|
-
exports.se_ResetCacheCommand = se_ResetCacheCommand;
|
|
487
|
-
const se_RetrieveTapeArchiveCommand = async (input, context) => {
|
|
488
|
-
const headers = sharedHeaders("RetrieveTapeArchive");
|
|
489
|
-
let body;
|
|
490
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
491
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
492
|
-
};
|
|
493
|
-
exports.se_RetrieveTapeArchiveCommand = se_RetrieveTapeArchiveCommand;
|
|
494
|
-
const se_RetrieveTapeRecoveryPointCommand = async (input, context) => {
|
|
495
|
-
const headers = sharedHeaders("RetrieveTapeRecoveryPoint");
|
|
496
|
-
let body;
|
|
497
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
498
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
499
|
-
};
|
|
500
|
-
exports.se_RetrieveTapeRecoveryPointCommand = se_RetrieveTapeRecoveryPointCommand;
|
|
501
|
-
const se_SetLocalConsolePasswordCommand = async (input, context) => {
|
|
502
|
-
const headers = sharedHeaders("SetLocalConsolePassword");
|
|
503
|
-
let body;
|
|
504
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
505
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
506
|
-
};
|
|
507
|
-
exports.se_SetLocalConsolePasswordCommand = se_SetLocalConsolePasswordCommand;
|
|
508
|
-
const se_SetSMBGuestPasswordCommand = async (input, context) => {
|
|
509
|
-
const headers = sharedHeaders("SetSMBGuestPassword");
|
|
510
|
-
let body;
|
|
511
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
512
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
513
|
-
};
|
|
514
|
-
exports.se_SetSMBGuestPasswordCommand = se_SetSMBGuestPasswordCommand;
|
|
515
|
-
const se_ShutdownGatewayCommand = async (input, context) => {
|
|
516
|
-
const headers = sharedHeaders("ShutdownGateway");
|
|
517
|
-
let body;
|
|
518
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
519
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
520
|
-
};
|
|
521
|
-
exports.se_ShutdownGatewayCommand = se_ShutdownGatewayCommand;
|
|
522
|
-
const se_StartAvailabilityMonitorTestCommand = async (input, context) => {
|
|
523
|
-
const headers = sharedHeaders("StartAvailabilityMonitorTest");
|
|
524
|
-
let body;
|
|
525
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
526
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
527
|
-
};
|
|
528
|
-
exports.se_StartAvailabilityMonitorTestCommand = se_StartAvailabilityMonitorTestCommand;
|
|
529
|
-
const se_StartGatewayCommand = async (input, context) => {
|
|
530
|
-
const headers = sharedHeaders("StartGateway");
|
|
531
|
-
let body;
|
|
532
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
533
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
534
|
-
};
|
|
535
|
-
exports.se_StartGatewayCommand = se_StartGatewayCommand;
|
|
536
|
-
const se_UpdateAutomaticTapeCreationPolicyCommand = async (input, context) => {
|
|
537
|
-
const headers = sharedHeaders("UpdateAutomaticTapeCreationPolicy");
|
|
538
|
-
let body;
|
|
539
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
540
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
541
|
-
};
|
|
542
|
-
exports.se_UpdateAutomaticTapeCreationPolicyCommand = se_UpdateAutomaticTapeCreationPolicyCommand;
|
|
543
|
-
const se_UpdateBandwidthRateLimitCommand = async (input, context) => {
|
|
544
|
-
const headers = sharedHeaders("UpdateBandwidthRateLimit");
|
|
545
|
-
let body;
|
|
546
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
547
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
548
|
-
};
|
|
549
|
-
exports.se_UpdateBandwidthRateLimitCommand = se_UpdateBandwidthRateLimitCommand;
|
|
550
|
-
const se_UpdateBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
551
|
-
const headers = sharedHeaders("UpdateBandwidthRateLimitSchedule");
|
|
552
|
-
let body;
|
|
553
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
554
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
555
|
-
};
|
|
556
|
-
exports.se_UpdateBandwidthRateLimitScheduleCommand = se_UpdateBandwidthRateLimitScheduleCommand;
|
|
557
|
-
const se_UpdateChapCredentialsCommand = async (input, context) => {
|
|
558
|
-
const headers = sharedHeaders("UpdateChapCredentials");
|
|
559
|
-
let body;
|
|
560
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
561
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
562
|
-
};
|
|
563
|
-
exports.se_UpdateChapCredentialsCommand = se_UpdateChapCredentialsCommand;
|
|
564
|
-
const se_UpdateFileSystemAssociationCommand = async (input, context) => {
|
|
565
|
-
const headers = sharedHeaders("UpdateFileSystemAssociation");
|
|
566
|
-
let body;
|
|
567
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
568
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
569
|
-
};
|
|
570
|
-
exports.se_UpdateFileSystemAssociationCommand = se_UpdateFileSystemAssociationCommand;
|
|
571
|
-
const se_UpdateGatewayInformationCommand = async (input, context) => {
|
|
572
|
-
const headers = sharedHeaders("UpdateGatewayInformation");
|
|
573
|
-
let body;
|
|
574
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
575
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
576
|
-
};
|
|
577
|
-
exports.se_UpdateGatewayInformationCommand = se_UpdateGatewayInformationCommand;
|
|
578
|
-
const se_UpdateGatewaySoftwareNowCommand = async (input, context) => {
|
|
579
|
-
const headers = sharedHeaders("UpdateGatewaySoftwareNow");
|
|
580
|
-
let body;
|
|
581
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
582
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
583
|
-
};
|
|
584
|
-
exports.se_UpdateGatewaySoftwareNowCommand = se_UpdateGatewaySoftwareNowCommand;
|
|
585
|
-
const se_UpdateMaintenanceStartTimeCommand = async (input, context) => {
|
|
586
|
-
const headers = sharedHeaders("UpdateMaintenanceStartTime");
|
|
587
|
-
let body;
|
|
588
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
589
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
590
|
-
};
|
|
591
|
-
exports.se_UpdateMaintenanceStartTimeCommand = se_UpdateMaintenanceStartTimeCommand;
|
|
592
|
-
const se_UpdateNFSFileShareCommand = async (input, context) => {
|
|
593
|
-
const headers = sharedHeaders("UpdateNFSFileShare");
|
|
594
|
-
let body;
|
|
595
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
596
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
597
|
-
};
|
|
598
|
-
exports.se_UpdateNFSFileShareCommand = se_UpdateNFSFileShareCommand;
|
|
599
|
-
const se_UpdateSMBFileShareCommand = async (input, context) => {
|
|
600
|
-
const headers = sharedHeaders("UpdateSMBFileShare");
|
|
601
|
-
let body;
|
|
602
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
603
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
604
|
-
};
|
|
605
|
-
exports.se_UpdateSMBFileShareCommand = se_UpdateSMBFileShareCommand;
|
|
606
|
-
const se_UpdateSMBFileShareVisibilityCommand = async (input, context) => {
|
|
607
|
-
const headers = sharedHeaders("UpdateSMBFileShareVisibility");
|
|
608
|
-
let body;
|
|
609
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
610
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
611
|
-
};
|
|
612
|
-
exports.se_UpdateSMBFileShareVisibilityCommand = se_UpdateSMBFileShareVisibilityCommand;
|
|
613
|
-
const se_UpdateSMBLocalGroupsCommand = async (input, context) => {
|
|
614
|
-
const headers = sharedHeaders("UpdateSMBLocalGroups");
|
|
615
|
-
let body;
|
|
616
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
617
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
618
|
-
};
|
|
619
|
-
exports.se_UpdateSMBLocalGroupsCommand = se_UpdateSMBLocalGroupsCommand;
|
|
620
|
-
const se_UpdateSMBSecurityStrategyCommand = async (input, context) => {
|
|
621
|
-
const headers = sharedHeaders("UpdateSMBSecurityStrategy");
|
|
622
|
-
let body;
|
|
623
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
624
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
625
|
-
};
|
|
626
|
-
exports.se_UpdateSMBSecurityStrategyCommand = se_UpdateSMBSecurityStrategyCommand;
|
|
627
|
-
const se_UpdateSnapshotScheduleCommand = async (input, context) => {
|
|
628
|
-
const headers = sharedHeaders("UpdateSnapshotSchedule");
|
|
629
|
-
let body;
|
|
630
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
631
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
632
|
-
};
|
|
633
|
-
exports.se_UpdateSnapshotScheduleCommand = se_UpdateSnapshotScheduleCommand;
|
|
634
|
-
const se_UpdateVTLDeviceTypeCommand = async (input, context) => {
|
|
635
|
-
const headers = sharedHeaders("UpdateVTLDeviceType");
|
|
636
|
-
let body;
|
|
637
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
638
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
639
|
-
};
|
|
640
|
-
exports.se_UpdateVTLDeviceTypeCommand = se_UpdateVTLDeviceTypeCommand;
|
|
641
|
-
const de_ActivateGatewayCommand = async (output, context) => {
|
|
642
|
-
if (output.statusCode >= 300) {
|
|
643
|
-
return de_ActivateGatewayCommandError(output, context);
|
|
644
|
-
}
|
|
645
|
-
const data = await parseBody(output.body, context);
|
|
646
|
-
let contents = {};
|
|
647
|
-
contents = (0, smithy_client_1._json)(data);
|
|
648
|
-
const response = {
|
|
649
|
-
$metadata: deserializeMetadata(output),
|
|
650
|
-
...contents,
|
|
651
|
-
};
|
|
652
|
-
return response;
|
|
653
|
-
};
|
|
654
|
-
exports.de_ActivateGatewayCommand = de_ActivateGatewayCommand;
|
|
655
|
-
const de_ActivateGatewayCommandError = async (output, context) => {
|
|
656
|
-
const parsedOutput = {
|
|
657
|
-
...output,
|
|
658
|
-
body: await parseErrorBody(output.body, context),
|
|
659
|
-
};
|
|
660
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
|
-
switch (errorCode) {
|
|
662
|
-
case "InternalServerError":
|
|
663
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
664
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
665
|
-
case "InvalidGatewayRequestException":
|
|
666
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
667
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
668
|
-
default:
|
|
669
|
-
const parsedBody = parsedOutput.body;
|
|
670
|
-
return throwDefaultError({
|
|
671
|
-
output,
|
|
672
|
-
parsedBody,
|
|
673
|
-
errorCode,
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
};
|
|
677
|
-
const de_AddCacheCommand = async (output, context) => {
|
|
678
|
-
if (output.statusCode >= 300) {
|
|
679
|
-
return de_AddCacheCommandError(output, context);
|
|
680
|
-
}
|
|
681
|
-
const data = await parseBody(output.body, context);
|
|
682
|
-
let contents = {};
|
|
683
|
-
contents = (0, smithy_client_1._json)(data);
|
|
684
|
-
const response = {
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
...contents,
|
|
687
|
-
};
|
|
688
|
-
return response;
|
|
689
|
-
};
|
|
690
|
-
exports.de_AddCacheCommand = de_AddCacheCommand;
|
|
691
|
-
const de_AddCacheCommandError = async (output, context) => {
|
|
692
|
-
const parsedOutput = {
|
|
693
|
-
...output,
|
|
694
|
-
body: await parseErrorBody(output.body, context),
|
|
695
|
-
};
|
|
696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
|
-
switch (errorCode) {
|
|
698
|
-
case "InternalServerError":
|
|
699
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
700
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
701
|
-
case "InvalidGatewayRequestException":
|
|
702
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
703
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
704
|
-
default:
|
|
705
|
-
const parsedBody = parsedOutput.body;
|
|
706
|
-
return throwDefaultError({
|
|
707
|
-
output,
|
|
708
|
-
parsedBody,
|
|
709
|
-
errorCode,
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
const de_AddTagsToResourceCommand = async (output, context) => {
|
|
714
|
-
if (output.statusCode >= 300) {
|
|
715
|
-
return de_AddTagsToResourceCommandError(output, context);
|
|
716
|
-
}
|
|
717
|
-
const data = await parseBody(output.body, context);
|
|
718
|
-
let contents = {};
|
|
719
|
-
contents = (0, smithy_client_1._json)(data);
|
|
720
|
-
const response = {
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
...contents,
|
|
723
|
-
};
|
|
724
|
-
return response;
|
|
725
|
-
};
|
|
726
|
-
exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand;
|
|
727
|
-
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
728
|
-
const parsedOutput = {
|
|
729
|
-
...output,
|
|
730
|
-
body: await parseErrorBody(output.body, context),
|
|
731
|
-
};
|
|
732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
|
-
switch (errorCode) {
|
|
734
|
-
case "InternalServerError":
|
|
735
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
736
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
737
|
-
case "InvalidGatewayRequestException":
|
|
738
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
739
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
740
|
-
default:
|
|
741
|
-
const parsedBody = parsedOutput.body;
|
|
742
|
-
return throwDefaultError({
|
|
743
|
-
output,
|
|
744
|
-
parsedBody,
|
|
745
|
-
errorCode,
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
|
-
const de_AddUploadBufferCommand = async (output, context) => {
|
|
750
|
-
if (output.statusCode >= 300) {
|
|
751
|
-
return de_AddUploadBufferCommandError(output, context);
|
|
752
|
-
}
|
|
753
|
-
const data = await parseBody(output.body, context);
|
|
754
|
-
let contents = {};
|
|
755
|
-
contents = (0, smithy_client_1._json)(data);
|
|
756
|
-
const response = {
|
|
757
|
-
$metadata: deserializeMetadata(output),
|
|
758
|
-
...contents,
|
|
759
|
-
};
|
|
760
|
-
return response;
|
|
761
|
-
};
|
|
762
|
-
exports.de_AddUploadBufferCommand = de_AddUploadBufferCommand;
|
|
763
|
-
const de_AddUploadBufferCommandError = async (output, context) => {
|
|
764
|
-
const parsedOutput = {
|
|
765
|
-
...output,
|
|
766
|
-
body: await parseErrorBody(output.body, context),
|
|
767
|
-
};
|
|
768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
|
-
switch (errorCode) {
|
|
770
|
-
case "InternalServerError":
|
|
771
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
772
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
773
|
-
case "InvalidGatewayRequestException":
|
|
774
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
775
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
776
|
-
default:
|
|
777
|
-
const parsedBody = parsedOutput.body;
|
|
778
|
-
return throwDefaultError({
|
|
779
|
-
output,
|
|
780
|
-
parsedBody,
|
|
781
|
-
errorCode,
|
|
782
|
-
});
|
|
783
|
-
}
|
|
784
|
-
};
|
|
785
|
-
const de_AddWorkingStorageCommand = async (output, context) => {
|
|
786
|
-
if (output.statusCode >= 300) {
|
|
787
|
-
return de_AddWorkingStorageCommandError(output, context);
|
|
788
|
-
}
|
|
789
|
-
const data = await parseBody(output.body, context);
|
|
790
|
-
let contents = {};
|
|
791
|
-
contents = (0, smithy_client_1._json)(data);
|
|
792
|
-
const response = {
|
|
793
|
-
$metadata: deserializeMetadata(output),
|
|
794
|
-
...contents,
|
|
795
|
-
};
|
|
796
|
-
return response;
|
|
797
|
-
};
|
|
798
|
-
exports.de_AddWorkingStorageCommand = de_AddWorkingStorageCommand;
|
|
799
|
-
const de_AddWorkingStorageCommandError = async (output, context) => {
|
|
800
|
-
const parsedOutput = {
|
|
801
|
-
...output,
|
|
802
|
-
body: await parseErrorBody(output.body, context),
|
|
803
|
-
};
|
|
804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
805
|
-
switch (errorCode) {
|
|
806
|
-
case "InternalServerError":
|
|
807
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
808
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
809
|
-
case "InvalidGatewayRequestException":
|
|
810
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
811
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
812
|
-
default:
|
|
813
|
-
const parsedBody = parsedOutput.body;
|
|
814
|
-
return throwDefaultError({
|
|
815
|
-
output,
|
|
816
|
-
parsedBody,
|
|
817
|
-
errorCode,
|
|
818
|
-
});
|
|
819
|
-
}
|
|
820
|
-
};
|
|
821
|
-
const de_AssignTapePoolCommand = async (output, context) => {
|
|
822
|
-
if (output.statusCode >= 300) {
|
|
823
|
-
return de_AssignTapePoolCommandError(output, context);
|
|
824
|
-
}
|
|
825
|
-
const data = await parseBody(output.body, context);
|
|
826
|
-
let contents = {};
|
|
827
|
-
contents = (0, smithy_client_1._json)(data);
|
|
828
|
-
const response = {
|
|
829
|
-
$metadata: deserializeMetadata(output),
|
|
830
|
-
...contents,
|
|
831
|
-
};
|
|
832
|
-
return response;
|
|
833
|
-
};
|
|
834
|
-
exports.de_AssignTapePoolCommand = de_AssignTapePoolCommand;
|
|
835
|
-
const de_AssignTapePoolCommandError = async (output, context) => {
|
|
836
|
-
const parsedOutput = {
|
|
837
|
-
...output,
|
|
838
|
-
body: await parseErrorBody(output.body, context),
|
|
839
|
-
};
|
|
840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
-
switch (errorCode) {
|
|
842
|
-
case "InternalServerError":
|
|
843
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
844
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
845
|
-
case "InvalidGatewayRequestException":
|
|
846
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
847
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
848
|
-
default:
|
|
849
|
-
const parsedBody = parsedOutput.body;
|
|
850
|
-
return throwDefaultError({
|
|
851
|
-
output,
|
|
852
|
-
parsedBody,
|
|
853
|
-
errorCode,
|
|
854
|
-
});
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
const de_AssociateFileSystemCommand = async (output, context) => {
|
|
858
|
-
if (output.statusCode >= 300) {
|
|
859
|
-
return de_AssociateFileSystemCommandError(output, context);
|
|
860
|
-
}
|
|
861
|
-
const data = await parseBody(output.body, context);
|
|
862
|
-
let contents = {};
|
|
863
|
-
contents = (0, smithy_client_1._json)(data);
|
|
864
|
-
const response = {
|
|
865
|
-
$metadata: deserializeMetadata(output),
|
|
866
|
-
...contents,
|
|
867
|
-
};
|
|
868
|
-
return response;
|
|
869
|
-
};
|
|
870
|
-
exports.de_AssociateFileSystemCommand = de_AssociateFileSystemCommand;
|
|
871
|
-
const de_AssociateFileSystemCommandError = async (output, context) => {
|
|
872
|
-
const parsedOutput = {
|
|
873
|
-
...output,
|
|
874
|
-
body: await parseErrorBody(output.body, context),
|
|
875
|
-
};
|
|
876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
-
switch (errorCode) {
|
|
878
|
-
case "InternalServerError":
|
|
879
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
880
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
881
|
-
case "InvalidGatewayRequestException":
|
|
882
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
883
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
884
|
-
default:
|
|
885
|
-
const parsedBody = parsedOutput.body;
|
|
886
|
-
return throwDefaultError({
|
|
887
|
-
output,
|
|
888
|
-
parsedBody,
|
|
889
|
-
errorCode,
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
};
|
|
893
|
-
const de_AttachVolumeCommand = async (output, context) => {
|
|
894
|
-
if (output.statusCode >= 300) {
|
|
895
|
-
return de_AttachVolumeCommandError(output, context);
|
|
896
|
-
}
|
|
897
|
-
const data = await parseBody(output.body, context);
|
|
898
|
-
let contents = {};
|
|
899
|
-
contents = (0, smithy_client_1._json)(data);
|
|
900
|
-
const response = {
|
|
901
|
-
$metadata: deserializeMetadata(output),
|
|
902
|
-
...contents,
|
|
903
|
-
};
|
|
904
|
-
return response;
|
|
905
|
-
};
|
|
906
|
-
exports.de_AttachVolumeCommand = de_AttachVolumeCommand;
|
|
907
|
-
const de_AttachVolumeCommandError = async (output, context) => {
|
|
908
|
-
const parsedOutput = {
|
|
909
|
-
...output,
|
|
910
|
-
body: await parseErrorBody(output.body, context),
|
|
911
|
-
};
|
|
912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
913
|
-
switch (errorCode) {
|
|
914
|
-
case "InternalServerError":
|
|
915
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
916
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
917
|
-
case "InvalidGatewayRequestException":
|
|
918
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
919
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
920
|
-
default:
|
|
921
|
-
const parsedBody = parsedOutput.body;
|
|
922
|
-
return throwDefaultError({
|
|
923
|
-
output,
|
|
924
|
-
parsedBody,
|
|
925
|
-
errorCode,
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
|
-
const de_CancelArchivalCommand = async (output, context) => {
|
|
930
|
-
if (output.statusCode >= 300) {
|
|
931
|
-
return de_CancelArchivalCommandError(output, context);
|
|
932
|
-
}
|
|
933
|
-
const data = await parseBody(output.body, context);
|
|
934
|
-
let contents = {};
|
|
935
|
-
contents = (0, smithy_client_1._json)(data);
|
|
936
|
-
const response = {
|
|
937
|
-
$metadata: deserializeMetadata(output),
|
|
938
|
-
...contents,
|
|
939
|
-
};
|
|
940
|
-
return response;
|
|
941
|
-
};
|
|
942
|
-
exports.de_CancelArchivalCommand = de_CancelArchivalCommand;
|
|
943
|
-
const de_CancelArchivalCommandError = async (output, context) => {
|
|
944
|
-
const parsedOutput = {
|
|
945
|
-
...output,
|
|
946
|
-
body: await parseErrorBody(output.body, context),
|
|
947
|
-
};
|
|
948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
-
switch (errorCode) {
|
|
950
|
-
case "InternalServerError":
|
|
951
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
952
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
953
|
-
case "InvalidGatewayRequestException":
|
|
954
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
955
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
956
|
-
default:
|
|
957
|
-
const parsedBody = parsedOutput.body;
|
|
958
|
-
return throwDefaultError({
|
|
959
|
-
output,
|
|
960
|
-
parsedBody,
|
|
961
|
-
errorCode,
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
};
|
|
965
|
-
const de_CancelRetrievalCommand = async (output, context) => {
|
|
966
|
-
if (output.statusCode >= 300) {
|
|
967
|
-
return de_CancelRetrievalCommandError(output, context);
|
|
968
|
-
}
|
|
969
|
-
const data = await parseBody(output.body, context);
|
|
970
|
-
let contents = {};
|
|
971
|
-
contents = (0, smithy_client_1._json)(data);
|
|
972
|
-
const response = {
|
|
973
|
-
$metadata: deserializeMetadata(output),
|
|
974
|
-
...contents,
|
|
975
|
-
};
|
|
976
|
-
return response;
|
|
977
|
-
};
|
|
978
|
-
exports.de_CancelRetrievalCommand = de_CancelRetrievalCommand;
|
|
979
|
-
const de_CancelRetrievalCommandError = async (output, context) => {
|
|
980
|
-
const parsedOutput = {
|
|
981
|
-
...output,
|
|
982
|
-
body: await parseErrorBody(output.body, context),
|
|
983
|
-
};
|
|
984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
-
switch (errorCode) {
|
|
986
|
-
case "InternalServerError":
|
|
987
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
988
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
989
|
-
case "InvalidGatewayRequestException":
|
|
990
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
991
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
992
|
-
default:
|
|
993
|
-
const parsedBody = parsedOutput.body;
|
|
994
|
-
return throwDefaultError({
|
|
995
|
-
output,
|
|
996
|
-
parsedBody,
|
|
997
|
-
errorCode,
|
|
998
|
-
});
|
|
999
|
-
}
|
|
1000
|
-
};
|
|
1001
|
-
const de_CreateCachediSCSIVolumeCommand = async (output, context) => {
|
|
1002
|
-
if (output.statusCode >= 300) {
|
|
1003
|
-
return de_CreateCachediSCSIVolumeCommandError(output, context);
|
|
1004
|
-
}
|
|
1005
|
-
const data = await parseBody(output.body, context);
|
|
1006
|
-
let contents = {};
|
|
1007
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1008
|
-
const response = {
|
|
1009
|
-
$metadata: deserializeMetadata(output),
|
|
1010
|
-
...contents,
|
|
1011
|
-
};
|
|
1012
|
-
return response;
|
|
1013
|
-
};
|
|
1014
|
-
exports.de_CreateCachediSCSIVolumeCommand = de_CreateCachediSCSIVolumeCommand;
|
|
1015
|
-
const de_CreateCachediSCSIVolumeCommandError = async (output, context) => {
|
|
1016
|
-
const parsedOutput = {
|
|
1017
|
-
...output,
|
|
1018
|
-
body: await parseErrorBody(output.body, context),
|
|
1019
|
-
};
|
|
1020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
|
-
switch (errorCode) {
|
|
1022
|
-
case "InternalServerError":
|
|
1023
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1024
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1025
|
-
case "InvalidGatewayRequestException":
|
|
1026
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1027
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode,
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
const de_CreateNFSFileShareCommand = async (output, context) => {
|
|
1038
|
-
if (output.statusCode >= 300) {
|
|
1039
|
-
return de_CreateNFSFileShareCommandError(output, context);
|
|
1040
|
-
}
|
|
1041
|
-
const data = await parseBody(output.body, context);
|
|
1042
|
-
let contents = {};
|
|
1043
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1044
|
-
const response = {
|
|
1045
|
-
$metadata: deserializeMetadata(output),
|
|
1046
|
-
...contents,
|
|
1047
|
-
};
|
|
1048
|
-
return response;
|
|
1049
|
-
};
|
|
1050
|
-
exports.de_CreateNFSFileShareCommand = de_CreateNFSFileShareCommand;
|
|
1051
|
-
const de_CreateNFSFileShareCommandError = async (output, context) => {
|
|
1052
|
-
const parsedOutput = {
|
|
1053
|
-
...output,
|
|
1054
|
-
body: await parseErrorBody(output.body, context),
|
|
1055
|
-
};
|
|
1056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
-
switch (errorCode) {
|
|
1058
|
-
case "InternalServerError":
|
|
1059
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1060
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1061
|
-
case "InvalidGatewayRequestException":
|
|
1062
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1063
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1064
|
-
default:
|
|
1065
|
-
const parsedBody = parsedOutput.body;
|
|
1066
|
-
return throwDefaultError({
|
|
1067
|
-
output,
|
|
1068
|
-
parsedBody,
|
|
1069
|
-
errorCode,
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
};
|
|
1073
|
-
const de_CreateSMBFileShareCommand = async (output, context) => {
|
|
1074
|
-
if (output.statusCode >= 300) {
|
|
1075
|
-
return de_CreateSMBFileShareCommandError(output, context);
|
|
1076
|
-
}
|
|
1077
|
-
const data = await parseBody(output.body, context);
|
|
1078
|
-
let contents = {};
|
|
1079
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1080
|
-
const response = {
|
|
1081
|
-
$metadata: deserializeMetadata(output),
|
|
1082
|
-
...contents,
|
|
1083
|
-
};
|
|
1084
|
-
return response;
|
|
1085
|
-
};
|
|
1086
|
-
exports.de_CreateSMBFileShareCommand = de_CreateSMBFileShareCommand;
|
|
1087
|
-
const de_CreateSMBFileShareCommandError = async (output, context) => {
|
|
1088
|
-
const parsedOutput = {
|
|
1089
|
-
...output,
|
|
1090
|
-
body: await parseErrorBody(output.body, context),
|
|
1091
|
-
};
|
|
1092
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
|
-
switch (errorCode) {
|
|
1094
|
-
case "InternalServerError":
|
|
1095
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1096
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1097
|
-
case "InvalidGatewayRequestException":
|
|
1098
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1099
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1100
|
-
default:
|
|
1101
|
-
const parsedBody = parsedOutput.body;
|
|
1102
|
-
return throwDefaultError({
|
|
1103
|
-
output,
|
|
1104
|
-
parsedBody,
|
|
1105
|
-
errorCode,
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
};
|
|
1109
|
-
const de_CreateSnapshotCommand = async (output, context) => {
|
|
1110
|
-
if (output.statusCode >= 300) {
|
|
1111
|
-
return de_CreateSnapshotCommandError(output, context);
|
|
1112
|
-
}
|
|
1113
|
-
const data = await parseBody(output.body, context);
|
|
1114
|
-
let contents = {};
|
|
1115
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1116
|
-
const response = {
|
|
1117
|
-
$metadata: deserializeMetadata(output),
|
|
1118
|
-
...contents,
|
|
1119
|
-
};
|
|
1120
|
-
return response;
|
|
1121
|
-
};
|
|
1122
|
-
exports.de_CreateSnapshotCommand = de_CreateSnapshotCommand;
|
|
1123
|
-
const de_CreateSnapshotCommandError = async (output, context) => {
|
|
1124
|
-
const parsedOutput = {
|
|
1125
|
-
...output,
|
|
1126
|
-
body: await parseErrorBody(output.body, context),
|
|
1127
|
-
};
|
|
1128
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
|
-
switch (errorCode) {
|
|
1130
|
-
case "InternalServerError":
|
|
1131
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1132
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1133
|
-
case "InvalidGatewayRequestException":
|
|
1134
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1135
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "ServiceUnavailableError":
|
|
1137
|
-
case "com.amazonaws.storagegateway#ServiceUnavailableError":
|
|
1138
|
-
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
1139
|
-
default:
|
|
1140
|
-
const parsedBody = parsedOutput.body;
|
|
1141
|
-
return throwDefaultError({
|
|
1142
|
-
output,
|
|
1143
|
-
parsedBody,
|
|
1144
|
-
errorCode,
|
|
1145
|
-
});
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
|
-
const de_CreateSnapshotFromVolumeRecoveryPointCommand = async (output, context) => {
|
|
1149
|
-
if (output.statusCode >= 300) {
|
|
1150
|
-
return de_CreateSnapshotFromVolumeRecoveryPointCommandError(output, context);
|
|
1151
|
-
}
|
|
1152
|
-
const data = await parseBody(output.body, context);
|
|
1153
|
-
let contents = {};
|
|
1154
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1155
|
-
const response = {
|
|
1156
|
-
$metadata: deserializeMetadata(output),
|
|
1157
|
-
...contents,
|
|
1158
|
-
};
|
|
1159
|
-
return response;
|
|
1160
|
-
};
|
|
1161
|
-
exports.de_CreateSnapshotFromVolumeRecoveryPointCommand = de_CreateSnapshotFromVolumeRecoveryPointCommand;
|
|
1162
|
-
const de_CreateSnapshotFromVolumeRecoveryPointCommandError = async (output, context) => {
|
|
1163
|
-
const parsedOutput = {
|
|
1164
|
-
...output,
|
|
1165
|
-
body: await parseErrorBody(output.body, context),
|
|
1166
|
-
};
|
|
1167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
-
switch (errorCode) {
|
|
1169
|
-
case "InternalServerError":
|
|
1170
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1171
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1172
|
-
case "InvalidGatewayRequestException":
|
|
1173
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1174
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ServiceUnavailableError":
|
|
1176
|
-
case "com.amazonaws.storagegateway#ServiceUnavailableError":
|
|
1177
|
-
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
1178
|
-
default:
|
|
1179
|
-
const parsedBody = parsedOutput.body;
|
|
1180
|
-
return throwDefaultError({
|
|
1181
|
-
output,
|
|
1182
|
-
parsedBody,
|
|
1183
|
-
errorCode,
|
|
1184
|
-
});
|
|
1185
|
-
}
|
|
1186
|
-
};
|
|
1187
|
-
const de_CreateStorediSCSIVolumeCommand = async (output, context) => {
|
|
1188
|
-
if (output.statusCode >= 300) {
|
|
1189
|
-
return de_CreateStorediSCSIVolumeCommandError(output, context);
|
|
1190
|
-
}
|
|
1191
|
-
const data = await parseBody(output.body, context);
|
|
1192
|
-
let contents = {};
|
|
1193
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1194
|
-
const response = {
|
|
1195
|
-
$metadata: deserializeMetadata(output),
|
|
1196
|
-
...contents,
|
|
1197
|
-
};
|
|
1198
|
-
return response;
|
|
1199
|
-
};
|
|
1200
|
-
exports.de_CreateStorediSCSIVolumeCommand = de_CreateStorediSCSIVolumeCommand;
|
|
1201
|
-
const de_CreateStorediSCSIVolumeCommandError = async (output, context) => {
|
|
1202
|
-
const parsedOutput = {
|
|
1203
|
-
...output,
|
|
1204
|
-
body: await parseErrorBody(output.body, context),
|
|
1205
|
-
};
|
|
1206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1207
|
-
switch (errorCode) {
|
|
1208
|
-
case "InternalServerError":
|
|
1209
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1210
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1211
|
-
case "InvalidGatewayRequestException":
|
|
1212
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1213
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1214
|
-
default:
|
|
1215
|
-
const parsedBody = parsedOutput.body;
|
|
1216
|
-
return throwDefaultError({
|
|
1217
|
-
output,
|
|
1218
|
-
parsedBody,
|
|
1219
|
-
errorCode,
|
|
1220
|
-
});
|
|
1221
|
-
}
|
|
1222
|
-
};
|
|
1223
|
-
const de_CreateTapePoolCommand = async (output, context) => {
|
|
1224
|
-
if (output.statusCode >= 300) {
|
|
1225
|
-
return de_CreateTapePoolCommandError(output, context);
|
|
1226
|
-
}
|
|
1227
|
-
const data = await parseBody(output.body, context);
|
|
1228
|
-
let contents = {};
|
|
1229
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1230
|
-
const response = {
|
|
1231
|
-
$metadata: deserializeMetadata(output),
|
|
1232
|
-
...contents,
|
|
1233
|
-
};
|
|
1234
|
-
return response;
|
|
1235
|
-
};
|
|
1236
|
-
exports.de_CreateTapePoolCommand = de_CreateTapePoolCommand;
|
|
1237
|
-
const de_CreateTapePoolCommandError = async (output, context) => {
|
|
1238
|
-
const parsedOutput = {
|
|
1239
|
-
...output,
|
|
1240
|
-
body: await parseErrorBody(output.body, context),
|
|
1241
|
-
};
|
|
1242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
|
-
switch (errorCode) {
|
|
1244
|
-
case "InternalServerError":
|
|
1245
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1246
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1247
|
-
case "InvalidGatewayRequestException":
|
|
1248
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1249
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1250
|
-
default:
|
|
1251
|
-
const parsedBody = parsedOutput.body;
|
|
1252
|
-
return throwDefaultError({
|
|
1253
|
-
output,
|
|
1254
|
-
parsedBody,
|
|
1255
|
-
errorCode,
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
};
|
|
1259
|
-
const de_CreateTapesCommand = async (output, context) => {
|
|
1260
|
-
if (output.statusCode >= 300) {
|
|
1261
|
-
return de_CreateTapesCommandError(output, context);
|
|
1262
|
-
}
|
|
1263
|
-
const data = await parseBody(output.body, context);
|
|
1264
|
-
let contents = {};
|
|
1265
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1266
|
-
const response = {
|
|
1267
|
-
$metadata: deserializeMetadata(output),
|
|
1268
|
-
...contents,
|
|
1269
|
-
};
|
|
1270
|
-
return response;
|
|
1271
|
-
};
|
|
1272
|
-
exports.de_CreateTapesCommand = de_CreateTapesCommand;
|
|
1273
|
-
const de_CreateTapesCommandError = async (output, context) => {
|
|
1274
|
-
const parsedOutput = {
|
|
1275
|
-
...output,
|
|
1276
|
-
body: await parseErrorBody(output.body, context),
|
|
1277
|
-
};
|
|
1278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1279
|
-
switch (errorCode) {
|
|
1280
|
-
case "InternalServerError":
|
|
1281
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1282
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1283
|
-
case "InvalidGatewayRequestException":
|
|
1284
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1285
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1286
|
-
default:
|
|
1287
|
-
const parsedBody = parsedOutput.body;
|
|
1288
|
-
return throwDefaultError({
|
|
1289
|
-
output,
|
|
1290
|
-
parsedBody,
|
|
1291
|
-
errorCode,
|
|
1292
|
-
});
|
|
1293
|
-
}
|
|
1294
|
-
};
|
|
1295
|
-
const de_CreateTapeWithBarcodeCommand = async (output, context) => {
|
|
1296
|
-
if (output.statusCode >= 300) {
|
|
1297
|
-
return de_CreateTapeWithBarcodeCommandError(output, context);
|
|
1298
|
-
}
|
|
1299
|
-
const data = await parseBody(output.body, context);
|
|
1300
|
-
let contents = {};
|
|
1301
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1302
|
-
const response = {
|
|
1303
|
-
$metadata: deserializeMetadata(output),
|
|
1304
|
-
...contents,
|
|
1305
|
-
};
|
|
1306
|
-
return response;
|
|
1307
|
-
};
|
|
1308
|
-
exports.de_CreateTapeWithBarcodeCommand = de_CreateTapeWithBarcodeCommand;
|
|
1309
|
-
const de_CreateTapeWithBarcodeCommandError = async (output, context) => {
|
|
1310
|
-
const parsedOutput = {
|
|
1311
|
-
...output,
|
|
1312
|
-
body: await parseErrorBody(output.body, context),
|
|
1313
|
-
};
|
|
1314
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1315
|
-
switch (errorCode) {
|
|
1316
|
-
case "InternalServerError":
|
|
1317
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1318
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1319
|
-
case "InvalidGatewayRequestException":
|
|
1320
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1321
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1322
|
-
default:
|
|
1323
|
-
const parsedBody = parsedOutput.body;
|
|
1324
|
-
return throwDefaultError({
|
|
1325
|
-
output,
|
|
1326
|
-
parsedBody,
|
|
1327
|
-
errorCode,
|
|
1328
|
-
});
|
|
1329
|
-
}
|
|
1330
|
-
};
|
|
1331
|
-
const de_DeleteAutomaticTapeCreationPolicyCommand = async (output, context) => {
|
|
1332
|
-
if (output.statusCode >= 300) {
|
|
1333
|
-
return de_DeleteAutomaticTapeCreationPolicyCommandError(output, context);
|
|
1334
|
-
}
|
|
1335
|
-
const data = await parseBody(output.body, context);
|
|
1336
|
-
let contents = {};
|
|
1337
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1338
|
-
const response = {
|
|
1339
|
-
$metadata: deserializeMetadata(output),
|
|
1340
|
-
...contents,
|
|
1341
|
-
};
|
|
1342
|
-
return response;
|
|
1343
|
-
};
|
|
1344
|
-
exports.de_DeleteAutomaticTapeCreationPolicyCommand = de_DeleteAutomaticTapeCreationPolicyCommand;
|
|
1345
|
-
const de_DeleteAutomaticTapeCreationPolicyCommandError = async (output, context) => {
|
|
1346
|
-
const parsedOutput = {
|
|
1347
|
-
...output,
|
|
1348
|
-
body: await parseErrorBody(output.body, context),
|
|
1349
|
-
};
|
|
1350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1351
|
-
switch (errorCode) {
|
|
1352
|
-
case "InternalServerError":
|
|
1353
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1354
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1355
|
-
case "InvalidGatewayRequestException":
|
|
1356
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1357
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1358
|
-
default:
|
|
1359
|
-
const parsedBody = parsedOutput.body;
|
|
1360
|
-
return throwDefaultError({
|
|
1361
|
-
output,
|
|
1362
|
-
parsedBody,
|
|
1363
|
-
errorCode,
|
|
1364
|
-
});
|
|
1365
|
-
}
|
|
1366
|
-
};
|
|
1367
|
-
const de_DeleteBandwidthRateLimitCommand = async (output, context) => {
|
|
1368
|
-
if (output.statusCode >= 300) {
|
|
1369
|
-
return de_DeleteBandwidthRateLimitCommandError(output, context);
|
|
1370
|
-
}
|
|
1371
|
-
const data = await parseBody(output.body, context);
|
|
1372
|
-
let contents = {};
|
|
1373
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1374
|
-
const response = {
|
|
1375
|
-
$metadata: deserializeMetadata(output),
|
|
1376
|
-
...contents,
|
|
1377
|
-
};
|
|
1378
|
-
return response;
|
|
1379
|
-
};
|
|
1380
|
-
exports.de_DeleteBandwidthRateLimitCommand = de_DeleteBandwidthRateLimitCommand;
|
|
1381
|
-
const de_DeleteBandwidthRateLimitCommandError = async (output, context) => {
|
|
1382
|
-
const parsedOutput = {
|
|
1383
|
-
...output,
|
|
1384
|
-
body: await parseErrorBody(output.body, context),
|
|
1385
|
-
};
|
|
1386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1387
|
-
switch (errorCode) {
|
|
1388
|
-
case "InternalServerError":
|
|
1389
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1390
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1391
|
-
case "InvalidGatewayRequestException":
|
|
1392
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1393
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1394
|
-
default:
|
|
1395
|
-
const parsedBody = parsedOutput.body;
|
|
1396
|
-
return throwDefaultError({
|
|
1397
|
-
output,
|
|
1398
|
-
parsedBody,
|
|
1399
|
-
errorCode,
|
|
1400
|
-
});
|
|
1401
|
-
}
|
|
1402
|
-
};
|
|
1403
|
-
const de_DeleteChapCredentialsCommand = async (output, context) => {
|
|
1404
|
-
if (output.statusCode >= 300) {
|
|
1405
|
-
return de_DeleteChapCredentialsCommandError(output, context);
|
|
1406
|
-
}
|
|
1407
|
-
const data = await parseBody(output.body, context);
|
|
1408
|
-
let contents = {};
|
|
1409
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1410
|
-
const response = {
|
|
1411
|
-
$metadata: deserializeMetadata(output),
|
|
1412
|
-
...contents,
|
|
1413
|
-
};
|
|
1414
|
-
return response;
|
|
1415
|
-
};
|
|
1416
|
-
exports.de_DeleteChapCredentialsCommand = de_DeleteChapCredentialsCommand;
|
|
1417
|
-
const de_DeleteChapCredentialsCommandError = async (output, context) => {
|
|
1418
|
-
const parsedOutput = {
|
|
1419
|
-
...output,
|
|
1420
|
-
body: await parseErrorBody(output.body, context),
|
|
1421
|
-
};
|
|
1422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
|
-
switch (errorCode) {
|
|
1424
|
-
case "InternalServerError":
|
|
1425
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1426
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1427
|
-
case "InvalidGatewayRequestException":
|
|
1428
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1429
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody,
|
|
1435
|
-
errorCode,
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
};
|
|
1439
|
-
const de_DeleteFileShareCommand = async (output, context) => {
|
|
1440
|
-
if (output.statusCode >= 300) {
|
|
1441
|
-
return de_DeleteFileShareCommandError(output, context);
|
|
1442
|
-
}
|
|
1443
|
-
const data = await parseBody(output.body, context);
|
|
1444
|
-
let contents = {};
|
|
1445
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1446
|
-
const response = {
|
|
1447
|
-
$metadata: deserializeMetadata(output),
|
|
1448
|
-
...contents,
|
|
1449
|
-
};
|
|
1450
|
-
return response;
|
|
1451
|
-
};
|
|
1452
|
-
exports.de_DeleteFileShareCommand = de_DeleteFileShareCommand;
|
|
1453
|
-
const de_DeleteFileShareCommandError = async (output, context) => {
|
|
1454
|
-
const parsedOutput = {
|
|
1455
|
-
...output,
|
|
1456
|
-
body: await parseErrorBody(output.body, context),
|
|
1457
|
-
};
|
|
1458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
|
-
switch (errorCode) {
|
|
1460
|
-
case "InternalServerError":
|
|
1461
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1462
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1463
|
-
case "InvalidGatewayRequestException":
|
|
1464
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1465
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1466
|
-
default:
|
|
1467
|
-
const parsedBody = parsedOutput.body;
|
|
1468
|
-
return throwDefaultError({
|
|
1469
|
-
output,
|
|
1470
|
-
parsedBody,
|
|
1471
|
-
errorCode,
|
|
1472
|
-
});
|
|
1473
|
-
}
|
|
1474
|
-
};
|
|
1475
|
-
const de_DeleteGatewayCommand = async (output, context) => {
|
|
1476
|
-
if (output.statusCode >= 300) {
|
|
1477
|
-
return de_DeleteGatewayCommandError(output, context);
|
|
1478
|
-
}
|
|
1479
|
-
const data = await parseBody(output.body, context);
|
|
1480
|
-
let contents = {};
|
|
1481
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1482
|
-
const response = {
|
|
1483
|
-
$metadata: deserializeMetadata(output),
|
|
1484
|
-
...contents,
|
|
1485
|
-
};
|
|
1486
|
-
return response;
|
|
1487
|
-
};
|
|
1488
|
-
exports.de_DeleteGatewayCommand = de_DeleteGatewayCommand;
|
|
1489
|
-
const de_DeleteGatewayCommandError = async (output, context) => {
|
|
1490
|
-
const parsedOutput = {
|
|
1491
|
-
...output,
|
|
1492
|
-
body: await parseErrorBody(output.body, context),
|
|
1493
|
-
};
|
|
1494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
|
-
switch (errorCode) {
|
|
1496
|
-
case "InternalServerError":
|
|
1497
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1498
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1499
|
-
case "InvalidGatewayRequestException":
|
|
1500
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1501
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1502
|
-
default:
|
|
1503
|
-
const parsedBody = parsedOutput.body;
|
|
1504
|
-
return throwDefaultError({
|
|
1505
|
-
output,
|
|
1506
|
-
parsedBody,
|
|
1507
|
-
errorCode,
|
|
1508
|
-
});
|
|
1509
|
-
}
|
|
1510
|
-
};
|
|
1511
|
-
const de_DeleteSnapshotScheduleCommand = async (output, context) => {
|
|
1512
|
-
if (output.statusCode >= 300) {
|
|
1513
|
-
return de_DeleteSnapshotScheduleCommandError(output, context);
|
|
1514
|
-
}
|
|
1515
|
-
const data = await parseBody(output.body, context);
|
|
1516
|
-
let contents = {};
|
|
1517
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1518
|
-
const response = {
|
|
1519
|
-
$metadata: deserializeMetadata(output),
|
|
1520
|
-
...contents,
|
|
1521
|
-
};
|
|
1522
|
-
return response;
|
|
1523
|
-
};
|
|
1524
|
-
exports.de_DeleteSnapshotScheduleCommand = de_DeleteSnapshotScheduleCommand;
|
|
1525
|
-
const de_DeleteSnapshotScheduleCommandError = async (output, context) => {
|
|
1526
|
-
const parsedOutput = {
|
|
1527
|
-
...output,
|
|
1528
|
-
body: await parseErrorBody(output.body, context),
|
|
1529
|
-
};
|
|
1530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1531
|
-
switch (errorCode) {
|
|
1532
|
-
case "InternalServerError":
|
|
1533
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1534
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1535
|
-
case "InvalidGatewayRequestException":
|
|
1536
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1537
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1538
|
-
default:
|
|
1539
|
-
const parsedBody = parsedOutput.body;
|
|
1540
|
-
return throwDefaultError({
|
|
1541
|
-
output,
|
|
1542
|
-
parsedBody,
|
|
1543
|
-
errorCode,
|
|
1544
|
-
});
|
|
1545
|
-
}
|
|
1546
|
-
};
|
|
1547
|
-
const de_DeleteTapeCommand = async (output, context) => {
|
|
1548
|
-
if (output.statusCode >= 300) {
|
|
1549
|
-
return de_DeleteTapeCommandError(output, context);
|
|
1550
|
-
}
|
|
1551
|
-
const data = await parseBody(output.body, context);
|
|
1552
|
-
let contents = {};
|
|
1553
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1554
|
-
const response = {
|
|
1555
|
-
$metadata: deserializeMetadata(output),
|
|
1556
|
-
...contents,
|
|
1557
|
-
};
|
|
1558
|
-
return response;
|
|
1559
|
-
};
|
|
1560
|
-
exports.de_DeleteTapeCommand = de_DeleteTapeCommand;
|
|
1561
|
-
const de_DeleteTapeCommandError = async (output, context) => {
|
|
1562
|
-
const parsedOutput = {
|
|
1563
|
-
...output,
|
|
1564
|
-
body: await parseErrorBody(output.body, context),
|
|
1565
|
-
};
|
|
1566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1567
|
-
switch (errorCode) {
|
|
1568
|
-
case "InternalServerError":
|
|
1569
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1570
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1571
|
-
case "InvalidGatewayRequestException":
|
|
1572
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1573
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1574
|
-
default:
|
|
1575
|
-
const parsedBody = parsedOutput.body;
|
|
1576
|
-
return throwDefaultError({
|
|
1577
|
-
output,
|
|
1578
|
-
parsedBody,
|
|
1579
|
-
errorCode,
|
|
1580
|
-
});
|
|
1581
|
-
}
|
|
1582
|
-
};
|
|
1583
|
-
const de_DeleteTapeArchiveCommand = async (output, context) => {
|
|
1584
|
-
if (output.statusCode >= 300) {
|
|
1585
|
-
return de_DeleteTapeArchiveCommandError(output, context);
|
|
1586
|
-
}
|
|
1587
|
-
const data = await parseBody(output.body, context);
|
|
1588
|
-
let contents = {};
|
|
1589
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1590
|
-
const response = {
|
|
1591
|
-
$metadata: deserializeMetadata(output),
|
|
1592
|
-
...contents,
|
|
1593
|
-
};
|
|
1594
|
-
return response;
|
|
1595
|
-
};
|
|
1596
|
-
exports.de_DeleteTapeArchiveCommand = de_DeleteTapeArchiveCommand;
|
|
1597
|
-
const de_DeleteTapeArchiveCommandError = async (output, context) => {
|
|
1598
|
-
const parsedOutput = {
|
|
1599
|
-
...output,
|
|
1600
|
-
body: await parseErrorBody(output.body, context),
|
|
1601
|
-
};
|
|
1602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
|
-
switch (errorCode) {
|
|
1604
|
-
case "InternalServerError":
|
|
1605
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1606
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1607
|
-
case "InvalidGatewayRequestException":
|
|
1608
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1609
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1610
|
-
default:
|
|
1611
|
-
const parsedBody = parsedOutput.body;
|
|
1612
|
-
return throwDefaultError({
|
|
1613
|
-
output,
|
|
1614
|
-
parsedBody,
|
|
1615
|
-
errorCode,
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
};
|
|
1619
|
-
const de_DeleteTapePoolCommand = async (output, context) => {
|
|
1620
|
-
if (output.statusCode >= 300) {
|
|
1621
|
-
return de_DeleteTapePoolCommandError(output, context);
|
|
1622
|
-
}
|
|
1623
|
-
const data = await parseBody(output.body, context);
|
|
1624
|
-
let contents = {};
|
|
1625
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1626
|
-
const response = {
|
|
1627
|
-
$metadata: deserializeMetadata(output),
|
|
1628
|
-
...contents,
|
|
1629
|
-
};
|
|
1630
|
-
return response;
|
|
1631
|
-
};
|
|
1632
|
-
exports.de_DeleteTapePoolCommand = de_DeleteTapePoolCommand;
|
|
1633
|
-
const de_DeleteTapePoolCommandError = async (output, context) => {
|
|
1634
|
-
const parsedOutput = {
|
|
1635
|
-
...output,
|
|
1636
|
-
body: await parseErrorBody(output.body, context),
|
|
1637
|
-
};
|
|
1638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1639
|
-
switch (errorCode) {
|
|
1640
|
-
case "InternalServerError":
|
|
1641
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1642
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1643
|
-
case "InvalidGatewayRequestException":
|
|
1644
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1645
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1646
|
-
default:
|
|
1647
|
-
const parsedBody = parsedOutput.body;
|
|
1648
|
-
return throwDefaultError({
|
|
1649
|
-
output,
|
|
1650
|
-
parsedBody,
|
|
1651
|
-
errorCode,
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
};
|
|
1655
|
-
const de_DeleteVolumeCommand = async (output, context) => {
|
|
1656
|
-
if (output.statusCode >= 300) {
|
|
1657
|
-
return de_DeleteVolumeCommandError(output, context);
|
|
1658
|
-
}
|
|
1659
|
-
const data = await parseBody(output.body, context);
|
|
1660
|
-
let contents = {};
|
|
1661
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1662
|
-
const response = {
|
|
1663
|
-
$metadata: deserializeMetadata(output),
|
|
1664
|
-
...contents,
|
|
1665
|
-
};
|
|
1666
|
-
return response;
|
|
1667
|
-
};
|
|
1668
|
-
exports.de_DeleteVolumeCommand = de_DeleteVolumeCommand;
|
|
1669
|
-
const de_DeleteVolumeCommandError = async (output, context) => {
|
|
1670
|
-
const parsedOutput = {
|
|
1671
|
-
...output,
|
|
1672
|
-
body: await parseErrorBody(output.body, context),
|
|
1673
|
-
};
|
|
1674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
-
switch (errorCode) {
|
|
1676
|
-
case "InternalServerError":
|
|
1677
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1678
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1679
|
-
case "InvalidGatewayRequestException":
|
|
1680
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1681
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1682
|
-
default:
|
|
1683
|
-
const parsedBody = parsedOutput.body;
|
|
1684
|
-
return throwDefaultError({
|
|
1685
|
-
output,
|
|
1686
|
-
parsedBody,
|
|
1687
|
-
errorCode,
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
};
|
|
1691
|
-
const de_DescribeAvailabilityMonitorTestCommand = async (output, context) => {
|
|
1692
|
-
if (output.statusCode >= 300) {
|
|
1693
|
-
return de_DescribeAvailabilityMonitorTestCommandError(output, context);
|
|
1694
|
-
}
|
|
1695
|
-
const data = await parseBody(output.body, context);
|
|
1696
|
-
let contents = {};
|
|
1697
|
-
contents = de_DescribeAvailabilityMonitorTestOutput(data, context);
|
|
1698
|
-
const response = {
|
|
1699
|
-
$metadata: deserializeMetadata(output),
|
|
1700
|
-
...contents,
|
|
1701
|
-
};
|
|
1702
|
-
return response;
|
|
1703
|
-
};
|
|
1704
|
-
exports.de_DescribeAvailabilityMonitorTestCommand = de_DescribeAvailabilityMonitorTestCommand;
|
|
1705
|
-
const de_DescribeAvailabilityMonitorTestCommandError = async (output, context) => {
|
|
1706
|
-
const parsedOutput = {
|
|
1707
|
-
...output,
|
|
1708
|
-
body: await parseErrorBody(output.body, context),
|
|
1709
|
-
};
|
|
1710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
|
-
switch (errorCode) {
|
|
1712
|
-
case "InternalServerError":
|
|
1713
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1714
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1715
|
-
case "InvalidGatewayRequestException":
|
|
1716
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1717
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1718
|
-
default:
|
|
1719
|
-
const parsedBody = parsedOutput.body;
|
|
1720
|
-
return throwDefaultError({
|
|
1721
|
-
output,
|
|
1722
|
-
parsedBody,
|
|
1723
|
-
errorCode,
|
|
1724
|
-
});
|
|
1725
|
-
}
|
|
1726
|
-
};
|
|
1727
|
-
const de_DescribeBandwidthRateLimitCommand = async (output, context) => {
|
|
1728
|
-
if (output.statusCode >= 300) {
|
|
1729
|
-
return de_DescribeBandwidthRateLimitCommandError(output, context);
|
|
1730
|
-
}
|
|
1731
|
-
const data = await parseBody(output.body, context);
|
|
1732
|
-
let contents = {};
|
|
1733
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1734
|
-
const response = {
|
|
1735
|
-
$metadata: deserializeMetadata(output),
|
|
1736
|
-
...contents,
|
|
1737
|
-
};
|
|
1738
|
-
return response;
|
|
1739
|
-
};
|
|
1740
|
-
exports.de_DescribeBandwidthRateLimitCommand = de_DescribeBandwidthRateLimitCommand;
|
|
1741
|
-
const de_DescribeBandwidthRateLimitCommandError = async (output, context) => {
|
|
1742
|
-
const parsedOutput = {
|
|
1743
|
-
...output,
|
|
1744
|
-
body: await parseErrorBody(output.body, context),
|
|
1745
|
-
};
|
|
1746
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
|
-
switch (errorCode) {
|
|
1748
|
-
case "InternalServerError":
|
|
1749
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1750
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1751
|
-
case "InvalidGatewayRequestException":
|
|
1752
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1753
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1754
|
-
default:
|
|
1755
|
-
const parsedBody = parsedOutput.body;
|
|
1756
|
-
return throwDefaultError({
|
|
1757
|
-
output,
|
|
1758
|
-
parsedBody,
|
|
1759
|
-
errorCode,
|
|
1760
|
-
});
|
|
1761
|
-
}
|
|
1762
|
-
};
|
|
1763
|
-
const de_DescribeBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
1764
|
-
if (output.statusCode >= 300) {
|
|
1765
|
-
return de_DescribeBandwidthRateLimitScheduleCommandError(output, context);
|
|
1766
|
-
}
|
|
1767
|
-
const data = await parseBody(output.body, context);
|
|
1768
|
-
let contents = {};
|
|
1769
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1770
|
-
const response = {
|
|
1771
|
-
$metadata: deserializeMetadata(output),
|
|
1772
|
-
...contents,
|
|
1773
|
-
};
|
|
1774
|
-
return response;
|
|
1775
|
-
};
|
|
1776
|
-
exports.de_DescribeBandwidthRateLimitScheduleCommand = de_DescribeBandwidthRateLimitScheduleCommand;
|
|
1777
|
-
const de_DescribeBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
1778
|
-
const parsedOutput = {
|
|
1779
|
-
...output,
|
|
1780
|
-
body: await parseErrorBody(output.body, context),
|
|
1781
|
-
};
|
|
1782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1783
|
-
switch (errorCode) {
|
|
1784
|
-
case "InternalServerError":
|
|
1785
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1786
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1787
|
-
case "InvalidGatewayRequestException":
|
|
1788
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1789
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1790
|
-
default:
|
|
1791
|
-
const parsedBody = parsedOutput.body;
|
|
1792
|
-
return throwDefaultError({
|
|
1793
|
-
output,
|
|
1794
|
-
parsedBody,
|
|
1795
|
-
errorCode,
|
|
1796
|
-
});
|
|
1797
|
-
}
|
|
1798
|
-
};
|
|
1799
|
-
const de_DescribeCacheCommand = async (output, context) => {
|
|
1800
|
-
if (output.statusCode >= 300) {
|
|
1801
|
-
return de_DescribeCacheCommandError(output, context);
|
|
1802
|
-
}
|
|
1803
|
-
const data = await parseBody(output.body, context);
|
|
1804
|
-
let contents = {};
|
|
1805
|
-
contents = de_DescribeCacheOutput(data, context);
|
|
1806
|
-
const response = {
|
|
1807
|
-
$metadata: deserializeMetadata(output),
|
|
1808
|
-
...contents,
|
|
1809
|
-
};
|
|
1810
|
-
return response;
|
|
1811
|
-
};
|
|
1812
|
-
exports.de_DescribeCacheCommand = de_DescribeCacheCommand;
|
|
1813
|
-
const de_DescribeCacheCommandError = async (output, context) => {
|
|
1814
|
-
const parsedOutput = {
|
|
1815
|
-
...output,
|
|
1816
|
-
body: await parseErrorBody(output.body, context),
|
|
1817
|
-
};
|
|
1818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1819
|
-
switch (errorCode) {
|
|
1820
|
-
case "InternalServerError":
|
|
1821
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1822
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1823
|
-
case "InvalidGatewayRequestException":
|
|
1824
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1825
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1826
|
-
default:
|
|
1827
|
-
const parsedBody = parsedOutput.body;
|
|
1828
|
-
return throwDefaultError({
|
|
1829
|
-
output,
|
|
1830
|
-
parsedBody,
|
|
1831
|
-
errorCode,
|
|
1832
|
-
});
|
|
1833
|
-
}
|
|
1834
|
-
};
|
|
1835
|
-
const de_DescribeCachediSCSIVolumesCommand = async (output, context) => {
|
|
1836
|
-
if (output.statusCode >= 300) {
|
|
1837
|
-
return de_DescribeCachediSCSIVolumesCommandError(output, context);
|
|
1838
|
-
}
|
|
1839
|
-
const data = await parseBody(output.body, context);
|
|
1840
|
-
let contents = {};
|
|
1841
|
-
contents = de_DescribeCachediSCSIVolumesOutput(data, context);
|
|
1842
|
-
const response = {
|
|
1843
|
-
$metadata: deserializeMetadata(output),
|
|
1844
|
-
...contents,
|
|
1845
|
-
};
|
|
1846
|
-
return response;
|
|
1847
|
-
};
|
|
1848
|
-
exports.de_DescribeCachediSCSIVolumesCommand = de_DescribeCachediSCSIVolumesCommand;
|
|
1849
|
-
const de_DescribeCachediSCSIVolumesCommandError = async (output, context) => {
|
|
1850
|
-
const parsedOutput = {
|
|
1851
|
-
...output,
|
|
1852
|
-
body: await parseErrorBody(output.body, context),
|
|
1853
|
-
};
|
|
1854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1855
|
-
switch (errorCode) {
|
|
1856
|
-
case "InternalServerError":
|
|
1857
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1858
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1859
|
-
case "InvalidGatewayRequestException":
|
|
1860
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1861
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1862
|
-
default:
|
|
1863
|
-
const parsedBody = parsedOutput.body;
|
|
1864
|
-
return throwDefaultError({
|
|
1865
|
-
output,
|
|
1866
|
-
parsedBody,
|
|
1867
|
-
errorCode,
|
|
1868
|
-
});
|
|
1869
|
-
}
|
|
1870
|
-
};
|
|
1871
|
-
const de_DescribeChapCredentialsCommand = async (output, context) => {
|
|
1872
|
-
if (output.statusCode >= 300) {
|
|
1873
|
-
return de_DescribeChapCredentialsCommandError(output, context);
|
|
1874
|
-
}
|
|
1875
|
-
const data = await parseBody(output.body, context);
|
|
1876
|
-
let contents = {};
|
|
1877
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1878
|
-
const response = {
|
|
1879
|
-
$metadata: deserializeMetadata(output),
|
|
1880
|
-
...contents,
|
|
1881
|
-
};
|
|
1882
|
-
return response;
|
|
1883
|
-
};
|
|
1884
|
-
exports.de_DescribeChapCredentialsCommand = de_DescribeChapCredentialsCommand;
|
|
1885
|
-
const de_DescribeChapCredentialsCommandError = async (output, context) => {
|
|
1886
|
-
const parsedOutput = {
|
|
1887
|
-
...output,
|
|
1888
|
-
body: await parseErrorBody(output.body, context),
|
|
1889
|
-
};
|
|
1890
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
|
-
switch (errorCode) {
|
|
1892
|
-
case "InternalServerError":
|
|
1893
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1894
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1895
|
-
case "InvalidGatewayRequestException":
|
|
1896
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1897
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1898
|
-
default:
|
|
1899
|
-
const parsedBody = parsedOutput.body;
|
|
1900
|
-
return throwDefaultError({
|
|
1901
|
-
output,
|
|
1902
|
-
parsedBody,
|
|
1903
|
-
errorCode,
|
|
1904
|
-
});
|
|
1905
|
-
}
|
|
1906
|
-
};
|
|
1907
|
-
const de_DescribeFileSystemAssociationsCommand = async (output, context) => {
|
|
1908
|
-
if (output.statusCode >= 300) {
|
|
1909
|
-
return de_DescribeFileSystemAssociationsCommandError(output, context);
|
|
1910
|
-
}
|
|
1911
|
-
const data = await parseBody(output.body, context);
|
|
1912
|
-
let contents = {};
|
|
1913
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1914
|
-
const response = {
|
|
1915
|
-
$metadata: deserializeMetadata(output),
|
|
1916
|
-
...contents,
|
|
1917
|
-
};
|
|
1918
|
-
return response;
|
|
1919
|
-
};
|
|
1920
|
-
exports.de_DescribeFileSystemAssociationsCommand = de_DescribeFileSystemAssociationsCommand;
|
|
1921
|
-
const de_DescribeFileSystemAssociationsCommandError = async (output, context) => {
|
|
1922
|
-
const parsedOutput = {
|
|
1923
|
-
...output,
|
|
1924
|
-
body: await parseErrorBody(output.body, context),
|
|
1925
|
-
};
|
|
1926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1927
|
-
switch (errorCode) {
|
|
1928
|
-
case "InternalServerError":
|
|
1929
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1930
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1931
|
-
case "InvalidGatewayRequestException":
|
|
1932
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1933
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1934
|
-
default:
|
|
1935
|
-
const parsedBody = parsedOutput.body;
|
|
1936
|
-
return throwDefaultError({
|
|
1937
|
-
output,
|
|
1938
|
-
parsedBody,
|
|
1939
|
-
errorCode,
|
|
1940
|
-
});
|
|
1941
|
-
}
|
|
1942
|
-
};
|
|
1943
|
-
const de_DescribeGatewayInformationCommand = async (output, context) => {
|
|
1944
|
-
if (output.statusCode >= 300) {
|
|
1945
|
-
return de_DescribeGatewayInformationCommandError(output, context);
|
|
1946
|
-
}
|
|
1947
|
-
const data = await parseBody(output.body, context);
|
|
1948
|
-
let contents = {};
|
|
1949
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1950
|
-
const response = {
|
|
1951
|
-
$metadata: deserializeMetadata(output),
|
|
1952
|
-
...contents,
|
|
1953
|
-
};
|
|
1954
|
-
return response;
|
|
1955
|
-
};
|
|
1956
|
-
exports.de_DescribeGatewayInformationCommand = de_DescribeGatewayInformationCommand;
|
|
1957
|
-
const de_DescribeGatewayInformationCommandError = async (output, context) => {
|
|
1958
|
-
const parsedOutput = {
|
|
1959
|
-
...output,
|
|
1960
|
-
body: await parseErrorBody(output.body, context),
|
|
1961
|
-
};
|
|
1962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
|
-
switch (errorCode) {
|
|
1964
|
-
case "InternalServerError":
|
|
1965
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1966
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1967
|
-
case "InvalidGatewayRequestException":
|
|
1968
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1969
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1970
|
-
default:
|
|
1971
|
-
const parsedBody = parsedOutput.body;
|
|
1972
|
-
return throwDefaultError({
|
|
1973
|
-
output,
|
|
1974
|
-
parsedBody,
|
|
1975
|
-
errorCode,
|
|
1976
|
-
});
|
|
1977
|
-
}
|
|
1978
|
-
};
|
|
1979
|
-
const de_DescribeMaintenanceStartTimeCommand = async (output, context) => {
|
|
1980
|
-
if (output.statusCode >= 300) {
|
|
1981
|
-
return de_DescribeMaintenanceStartTimeCommandError(output, context);
|
|
1982
|
-
}
|
|
1983
|
-
const data = await parseBody(output.body, context);
|
|
1984
|
-
let contents = {};
|
|
1985
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1986
|
-
const response = {
|
|
1987
|
-
$metadata: deserializeMetadata(output),
|
|
1988
|
-
...contents,
|
|
1989
|
-
};
|
|
1990
|
-
return response;
|
|
1991
|
-
};
|
|
1992
|
-
exports.de_DescribeMaintenanceStartTimeCommand = de_DescribeMaintenanceStartTimeCommand;
|
|
1993
|
-
const de_DescribeMaintenanceStartTimeCommandError = async (output, context) => {
|
|
1994
|
-
const parsedOutput = {
|
|
1995
|
-
...output,
|
|
1996
|
-
body: await parseErrorBody(output.body, context),
|
|
1997
|
-
};
|
|
1998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1999
|
-
switch (errorCode) {
|
|
2000
|
-
case "InternalServerError":
|
|
2001
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2002
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2003
|
-
case "InvalidGatewayRequestException":
|
|
2004
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2005
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2006
|
-
default:
|
|
2007
|
-
const parsedBody = parsedOutput.body;
|
|
2008
|
-
return throwDefaultError({
|
|
2009
|
-
output,
|
|
2010
|
-
parsedBody,
|
|
2011
|
-
errorCode,
|
|
2012
|
-
});
|
|
2013
|
-
}
|
|
2014
|
-
};
|
|
2015
|
-
const de_DescribeNFSFileSharesCommand = async (output, context) => {
|
|
2016
|
-
if (output.statusCode >= 300) {
|
|
2017
|
-
return de_DescribeNFSFileSharesCommandError(output, context);
|
|
2018
|
-
}
|
|
2019
|
-
const data = await parseBody(output.body, context);
|
|
2020
|
-
let contents = {};
|
|
2021
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2022
|
-
const response = {
|
|
2023
|
-
$metadata: deserializeMetadata(output),
|
|
2024
|
-
...contents,
|
|
2025
|
-
};
|
|
2026
|
-
return response;
|
|
2027
|
-
};
|
|
2028
|
-
exports.de_DescribeNFSFileSharesCommand = de_DescribeNFSFileSharesCommand;
|
|
2029
|
-
const de_DescribeNFSFileSharesCommandError = async (output, context) => {
|
|
2030
|
-
const parsedOutput = {
|
|
2031
|
-
...output,
|
|
2032
|
-
body: await parseErrorBody(output.body, context),
|
|
2033
|
-
};
|
|
2034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2035
|
-
switch (errorCode) {
|
|
2036
|
-
case "InternalServerError":
|
|
2037
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2038
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2039
|
-
case "InvalidGatewayRequestException":
|
|
2040
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2041
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2042
|
-
default:
|
|
2043
|
-
const parsedBody = parsedOutput.body;
|
|
2044
|
-
return throwDefaultError({
|
|
2045
|
-
output,
|
|
2046
|
-
parsedBody,
|
|
2047
|
-
errorCode,
|
|
2048
|
-
});
|
|
2049
|
-
}
|
|
2050
|
-
};
|
|
2051
|
-
const de_DescribeSMBFileSharesCommand = async (output, context) => {
|
|
2052
|
-
if (output.statusCode >= 300) {
|
|
2053
|
-
return de_DescribeSMBFileSharesCommandError(output, context);
|
|
2054
|
-
}
|
|
2055
|
-
const data = await parseBody(output.body, context);
|
|
2056
|
-
let contents = {};
|
|
2057
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2058
|
-
const response = {
|
|
2059
|
-
$metadata: deserializeMetadata(output),
|
|
2060
|
-
...contents,
|
|
2061
|
-
};
|
|
2062
|
-
return response;
|
|
2063
|
-
};
|
|
2064
|
-
exports.de_DescribeSMBFileSharesCommand = de_DescribeSMBFileSharesCommand;
|
|
2065
|
-
const de_DescribeSMBFileSharesCommandError = async (output, context) => {
|
|
2066
|
-
const parsedOutput = {
|
|
2067
|
-
...output,
|
|
2068
|
-
body: await parseErrorBody(output.body, context),
|
|
2069
|
-
};
|
|
2070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
|
-
switch (errorCode) {
|
|
2072
|
-
case "InternalServerError":
|
|
2073
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2074
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2075
|
-
case "InvalidGatewayRequestException":
|
|
2076
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2077
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2078
|
-
default:
|
|
2079
|
-
const parsedBody = parsedOutput.body;
|
|
2080
|
-
return throwDefaultError({
|
|
2081
|
-
output,
|
|
2082
|
-
parsedBody,
|
|
2083
|
-
errorCode,
|
|
2084
|
-
});
|
|
2085
|
-
}
|
|
2086
|
-
};
|
|
2087
|
-
const de_DescribeSMBSettingsCommand = async (output, context) => {
|
|
2088
|
-
if (output.statusCode >= 300) {
|
|
2089
|
-
return de_DescribeSMBSettingsCommandError(output, context);
|
|
2090
|
-
}
|
|
2091
|
-
const data = await parseBody(output.body, context);
|
|
2092
|
-
let contents = {};
|
|
2093
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2094
|
-
const response = {
|
|
2095
|
-
$metadata: deserializeMetadata(output),
|
|
2096
|
-
...contents,
|
|
2097
|
-
};
|
|
2098
|
-
return response;
|
|
2099
|
-
};
|
|
2100
|
-
exports.de_DescribeSMBSettingsCommand = de_DescribeSMBSettingsCommand;
|
|
2101
|
-
const de_DescribeSMBSettingsCommandError = async (output, context) => {
|
|
2102
|
-
const parsedOutput = {
|
|
2103
|
-
...output,
|
|
2104
|
-
body: await parseErrorBody(output.body, context),
|
|
2105
|
-
};
|
|
2106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2107
|
-
switch (errorCode) {
|
|
2108
|
-
case "InternalServerError":
|
|
2109
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2110
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2111
|
-
case "InvalidGatewayRequestException":
|
|
2112
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2113
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2114
|
-
default:
|
|
2115
|
-
const parsedBody = parsedOutput.body;
|
|
2116
|
-
return throwDefaultError({
|
|
2117
|
-
output,
|
|
2118
|
-
parsedBody,
|
|
2119
|
-
errorCode,
|
|
2120
|
-
});
|
|
2121
|
-
}
|
|
2122
|
-
};
|
|
2123
|
-
const de_DescribeSnapshotScheduleCommand = async (output, context) => {
|
|
2124
|
-
if (output.statusCode >= 300) {
|
|
2125
|
-
return de_DescribeSnapshotScheduleCommandError(output, context);
|
|
2126
|
-
}
|
|
2127
|
-
const data = await parseBody(output.body, context);
|
|
2128
|
-
let contents = {};
|
|
2129
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2130
|
-
const response = {
|
|
2131
|
-
$metadata: deserializeMetadata(output),
|
|
2132
|
-
...contents,
|
|
2133
|
-
};
|
|
2134
|
-
return response;
|
|
2135
|
-
};
|
|
2136
|
-
exports.de_DescribeSnapshotScheduleCommand = de_DescribeSnapshotScheduleCommand;
|
|
2137
|
-
const de_DescribeSnapshotScheduleCommandError = async (output, context) => {
|
|
2138
|
-
const parsedOutput = {
|
|
2139
|
-
...output,
|
|
2140
|
-
body: await parseErrorBody(output.body, context),
|
|
2141
|
-
};
|
|
2142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
-
switch (errorCode) {
|
|
2144
|
-
case "InternalServerError":
|
|
2145
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2146
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2147
|
-
case "InvalidGatewayRequestException":
|
|
2148
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2149
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2150
|
-
default:
|
|
2151
|
-
const parsedBody = parsedOutput.body;
|
|
2152
|
-
return throwDefaultError({
|
|
2153
|
-
output,
|
|
2154
|
-
parsedBody,
|
|
2155
|
-
errorCode,
|
|
2156
|
-
});
|
|
2157
|
-
}
|
|
2158
|
-
};
|
|
2159
|
-
const de_DescribeStorediSCSIVolumesCommand = async (output, context) => {
|
|
2160
|
-
if (output.statusCode >= 300) {
|
|
2161
|
-
return de_DescribeStorediSCSIVolumesCommandError(output, context);
|
|
2162
|
-
}
|
|
2163
|
-
const data = await parseBody(output.body, context);
|
|
2164
|
-
let contents = {};
|
|
2165
|
-
contents = de_DescribeStorediSCSIVolumesOutput(data, context);
|
|
2166
|
-
const response = {
|
|
2167
|
-
$metadata: deserializeMetadata(output),
|
|
2168
|
-
...contents,
|
|
2169
|
-
};
|
|
2170
|
-
return response;
|
|
2171
|
-
};
|
|
2172
|
-
exports.de_DescribeStorediSCSIVolumesCommand = de_DescribeStorediSCSIVolumesCommand;
|
|
2173
|
-
const de_DescribeStorediSCSIVolumesCommandError = async (output, context) => {
|
|
2174
|
-
const parsedOutput = {
|
|
2175
|
-
...output,
|
|
2176
|
-
body: await parseErrorBody(output.body, context),
|
|
2177
|
-
};
|
|
2178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
|
-
switch (errorCode) {
|
|
2180
|
-
case "InternalServerError":
|
|
2181
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2182
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2183
|
-
case "InvalidGatewayRequestException":
|
|
2184
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2185
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2186
|
-
default:
|
|
2187
|
-
const parsedBody = parsedOutput.body;
|
|
2188
|
-
return throwDefaultError({
|
|
2189
|
-
output,
|
|
2190
|
-
parsedBody,
|
|
2191
|
-
errorCode,
|
|
2192
|
-
});
|
|
2193
|
-
}
|
|
2194
|
-
};
|
|
2195
|
-
const de_DescribeTapeArchivesCommand = async (output, context) => {
|
|
2196
|
-
if (output.statusCode >= 300) {
|
|
2197
|
-
return de_DescribeTapeArchivesCommandError(output, context);
|
|
2198
|
-
}
|
|
2199
|
-
const data = await parseBody(output.body, context);
|
|
2200
|
-
let contents = {};
|
|
2201
|
-
contents = de_DescribeTapeArchivesOutput(data, context);
|
|
2202
|
-
const response = {
|
|
2203
|
-
$metadata: deserializeMetadata(output),
|
|
2204
|
-
...contents,
|
|
2205
|
-
};
|
|
2206
|
-
return response;
|
|
2207
|
-
};
|
|
2208
|
-
exports.de_DescribeTapeArchivesCommand = de_DescribeTapeArchivesCommand;
|
|
2209
|
-
const de_DescribeTapeArchivesCommandError = async (output, context) => {
|
|
2210
|
-
const parsedOutput = {
|
|
2211
|
-
...output,
|
|
2212
|
-
body: await parseErrorBody(output.body, context),
|
|
2213
|
-
};
|
|
2214
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2215
|
-
switch (errorCode) {
|
|
2216
|
-
case "InternalServerError":
|
|
2217
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2218
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2219
|
-
case "InvalidGatewayRequestException":
|
|
2220
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2221
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2222
|
-
default:
|
|
2223
|
-
const parsedBody = parsedOutput.body;
|
|
2224
|
-
return throwDefaultError({
|
|
2225
|
-
output,
|
|
2226
|
-
parsedBody,
|
|
2227
|
-
errorCode,
|
|
2228
|
-
});
|
|
2229
|
-
}
|
|
2230
|
-
};
|
|
2231
|
-
const de_DescribeTapeRecoveryPointsCommand = async (output, context) => {
|
|
2232
|
-
if (output.statusCode >= 300) {
|
|
2233
|
-
return de_DescribeTapeRecoveryPointsCommandError(output, context);
|
|
2234
|
-
}
|
|
2235
|
-
const data = await parseBody(output.body, context);
|
|
2236
|
-
let contents = {};
|
|
2237
|
-
contents = de_DescribeTapeRecoveryPointsOutput(data, context);
|
|
2238
|
-
const response = {
|
|
2239
|
-
$metadata: deserializeMetadata(output),
|
|
2240
|
-
...contents,
|
|
2241
|
-
};
|
|
2242
|
-
return response;
|
|
2243
|
-
};
|
|
2244
|
-
exports.de_DescribeTapeRecoveryPointsCommand = de_DescribeTapeRecoveryPointsCommand;
|
|
2245
|
-
const de_DescribeTapeRecoveryPointsCommandError = async (output, context) => {
|
|
2246
|
-
const parsedOutput = {
|
|
2247
|
-
...output,
|
|
2248
|
-
body: await parseErrorBody(output.body, context),
|
|
2249
|
-
};
|
|
2250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
|
-
switch (errorCode) {
|
|
2252
|
-
case "InternalServerError":
|
|
2253
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2254
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2255
|
-
case "InvalidGatewayRequestException":
|
|
2256
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2257
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2258
|
-
default:
|
|
2259
|
-
const parsedBody = parsedOutput.body;
|
|
2260
|
-
return throwDefaultError({
|
|
2261
|
-
output,
|
|
2262
|
-
parsedBody,
|
|
2263
|
-
errorCode,
|
|
2264
|
-
});
|
|
2265
|
-
}
|
|
2266
|
-
};
|
|
2267
|
-
const de_DescribeTapesCommand = async (output, context) => {
|
|
2268
|
-
if (output.statusCode >= 300) {
|
|
2269
|
-
return de_DescribeTapesCommandError(output, context);
|
|
2270
|
-
}
|
|
2271
|
-
const data = await parseBody(output.body, context);
|
|
2272
|
-
let contents = {};
|
|
2273
|
-
contents = de_DescribeTapesOutput(data, context);
|
|
2274
|
-
const response = {
|
|
2275
|
-
$metadata: deserializeMetadata(output),
|
|
2276
|
-
...contents,
|
|
2277
|
-
};
|
|
2278
|
-
return response;
|
|
2279
|
-
};
|
|
2280
|
-
exports.de_DescribeTapesCommand = de_DescribeTapesCommand;
|
|
2281
|
-
const de_DescribeTapesCommandError = async (output, context) => {
|
|
2282
|
-
const parsedOutput = {
|
|
2283
|
-
...output,
|
|
2284
|
-
body: await parseErrorBody(output.body, context),
|
|
2285
|
-
};
|
|
2286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2287
|
-
switch (errorCode) {
|
|
2288
|
-
case "InternalServerError":
|
|
2289
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2290
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2291
|
-
case "InvalidGatewayRequestException":
|
|
2292
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2293
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2294
|
-
default:
|
|
2295
|
-
const parsedBody = parsedOutput.body;
|
|
2296
|
-
return throwDefaultError({
|
|
2297
|
-
output,
|
|
2298
|
-
parsedBody,
|
|
2299
|
-
errorCode,
|
|
2300
|
-
});
|
|
2301
|
-
}
|
|
2302
|
-
};
|
|
2303
|
-
const de_DescribeUploadBufferCommand = async (output, context) => {
|
|
2304
|
-
if (output.statusCode >= 300) {
|
|
2305
|
-
return de_DescribeUploadBufferCommandError(output, context);
|
|
2306
|
-
}
|
|
2307
|
-
const data = await parseBody(output.body, context);
|
|
2308
|
-
let contents = {};
|
|
2309
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2310
|
-
const response = {
|
|
2311
|
-
$metadata: deserializeMetadata(output),
|
|
2312
|
-
...contents,
|
|
2313
|
-
};
|
|
2314
|
-
return response;
|
|
2315
|
-
};
|
|
2316
|
-
exports.de_DescribeUploadBufferCommand = de_DescribeUploadBufferCommand;
|
|
2317
|
-
const de_DescribeUploadBufferCommandError = async (output, context) => {
|
|
2318
|
-
const parsedOutput = {
|
|
2319
|
-
...output,
|
|
2320
|
-
body: await parseErrorBody(output.body, context),
|
|
2321
|
-
};
|
|
2322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
|
-
switch (errorCode) {
|
|
2324
|
-
case "InternalServerError":
|
|
2325
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2326
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2327
|
-
case "InvalidGatewayRequestException":
|
|
2328
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2329
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2330
|
-
default:
|
|
2331
|
-
const parsedBody = parsedOutput.body;
|
|
2332
|
-
return throwDefaultError({
|
|
2333
|
-
output,
|
|
2334
|
-
parsedBody,
|
|
2335
|
-
errorCode,
|
|
2336
|
-
});
|
|
2337
|
-
}
|
|
2338
|
-
};
|
|
2339
|
-
const de_DescribeVTLDevicesCommand = async (output, context) => {
|
|
2340
|
-
if (output.statusCode >= 300) {
|
|
2341
|
-
return de_DescribeVTLDevicesCommandError(output, context);
|
|
2342
|
-
}
|
|
2343
|
-
const data = await parseBody(output.body, context);
|
|
2344
|
-
let contents = {};
|
|
2345
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2346
|
-
const response = {
|
|
2347
|
-
$metadata: deserializeMetadata(output),
|
|
2348
|
-
...contents,
|
|
2349
|
-
};
|
|
2350
|
-
return response;
|
|
2351
|
-
};
|
|
2352
|
-
exports.de_DescribeVTLDevicesCommand = de_DescribeVTLDevicesCommand;
|
|
2353
|
-
const de_DescribeVTLDevicesCommandError = async (output, context) => {
|
|
2354
|
-
const parsedOutput = {
|
|
2355
|
-
...output,
|
|
2356
|
-
body: await parseErrorBody(output.body, context),
|
|
2357
|
-
};
|
|
2358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2359
|
-
switch (errorCode) {
|
|
2360
|
-
case "InternalServerError":
|
|
2361
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2362
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2363
|
-
case "InvalidGatewayRequestException":
|
|
2364
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2365
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2366
|
-
default:
|
|
2367
|
-
const parsedBody = parsedOutput.body;
|
|
2368
|
-
return throwDefaultError({
|
|
2369
|
-
output,
|
|
2370
|
-
parsedBody,
|
|
2371
|
-
errorCode,
|
|
2372
|
-
});
|
|
2373
|
-
}
|
|
2374
|
-
};
|
|
2375
|
-
const de_DescribeWorkingStorageCommand = async (output, context) => {
|
|
2376
|
-
if (output.statusCode >= 300) {
|
|
2377
|
-
return de_DescribeWorkingStorageCommandError(output, context);
|
|
2378
|
-
}
|
|
2379
|
-
const data = await parseBody(output.body, context);
|
|
2380
|
-
let contents = {};
|
|
2381
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2382
|
-
const response = {
|
|
2383
|
-
$metadata: deserializeMetadata(output),
|
|
2384
|
-
...contents,
|
|
2385
|
-
};
|
|
2386
|
-
return response;
|
|
2387
|
-
};
|
|
2388
|
-
exports.de_DescribeWorkingStorageCommand = de_DescribeWorkingStorageCommand;
|
|
2389
|
-
const de_DescribeWorkingStorageCommandError = async (output, context) => {
|
|
2390
|
-
const parsedOutput = {
|
|
2391
|
-
...output,
|
|
2392
|
-
body: await parseErrorBody(output.body, context),
|
|
2393
|
-
};
|
|
2394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2395
|
-
switch (errorCode) {
|
|
2396
|
-
case "InternalServerError":
|
|
2397
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2398
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2399
|
-
case "InvalidGatewayRequestException":
|
|
2400
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2401
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2402
|
-
default:
|
|
2403
|
-
const parsedBody = parsedOutput.body;
|
|
2404
|
-
return throwDefaultError({
|
|
2405
|
-
output,
|
|
2406
|
-
parsedBody,
|
|
2407
|
-
errorCode,
|
|
2408
|
-
});
|
|
2409
|
-
}
|
|
2410
|
-
};
|
|
2411
|
-
const de_DetachVolumeCommand = async (output, context) => {
|
|
2412
|
-
if (output.statusCode >= 300) {
|
|
2413
|
-
return de_DetachVolumeCommandError(output, context);
|
|
2414
|
-
}
|
|
2415
|
-
const data = await parseBody(output.body, context);
|
|
2416
|
-
let contents = {};
|
|
2417
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2418
|
-
const response = {
|
|
2419
|
-
$metadata: deserializeMetadata(output),
|
|
2420
|
-
...contents,
|
|
2421
|
-
};
|
|
2422
|
-
return response;
|
|
2423
|
-
};
|
|
2424
|
-
exports.de_DetachVolumeCommand = de_DetachVolumeCommand;
|
|
2425
|
-
const de_DetachVolumeCommandError = async (output, context) => {
|
|
2426
|
-
const parsedOutput = {
|
|
2427
|
-
...output,
|
|
2428
|
-
body: await parseErrorBody(output.body, context),
|
|
2429
|
-
};
|
|
2430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2431
|
-
switch (errorCode) {
|
|
2432
|
-
case "InternalServerError":
|
|
2433
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2434
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2435
|
-
case "InvalidGatewayRequestException":
|
|
2436
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2437
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2438
|
-
default:
|
|
2439
|
-
const parsedBody = parsedOutput.body;
|
|
2440
|
-
return throwDefaultError({
|
|
2441
|
-
output,
|
|
2442
|
-
parsedBody,
|
|
2443
|
-
errorCode,
|
|
2444
|
-
});
|
|
2445
|
-
}
|
|
2446
|
-
};
|
|
2447
|
-
const de_DisableGatewayCommand = async (output, context) => {
|
|
2448
|
-
if (output.statusCode >= 300) {
|
|
2449
|
-
return de_DisableGatewayCommandError(output, context);
|
|
2450
|
-
}
|
|
2451
|
-
const data = await parseBody(output.body, context);
|
|
2452
|
-
let contents = {};
|
|
2453
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2454
|
-
const response = {
|
|
2455
|
-
$metadata: deserializeMetadata(output),
|
|
2456
|
-
...contents,
|
|
2457
|
-
};
|
|
2458
|
-
return response;
|
|
2459
|
-
};
|
|
2460
|
-
exports.de_DisableGatewayCommand = de_DisableGatewayCommand;
|
|
2461
|
-
const de_DisableGatewayCommandError = async (output, context) => {
|
|
2462
|
-
const parsedOutput = {
|
|
2463
|
-
...output,
|
|
2464
|
-
body: await parseErrorBody(output.body, context),
|
|
2465
|
-
};
|
|
2466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
|
-
switch (errorCode) {
|
|
2468
|
-
case "InternalServerError":
|
|
2469
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2470
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2471
|
-
case "InvalidGatewayRequestException":
|
|
2472
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2473
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2474
|
-
default:
|
|
2475
|
-
const parsedBody = parsedOutput.body;
|
|
2476
|
-
return throwDefaultError({
|
|
2477
|
-
output,
|
|
2478
|
-
parsedBody,
|
|
2479
|
-
errorCode,
|
|
2480
|
-
});
|
|
2481
|
-
}
|
|
2482
|
-
};
|
|
2483
|
-
const de_DisassociateFileSystemCommand = async (output, context) => {
|
|
2484
|
-
if (output.statusCode >= 300) {
|
|
2485
|
-
return de_DisassociateFileSystemCommandError(output, context);
|
|
2486
|
-
}
|
|
2487
|
-
const data = await parseBody(output.body, context);
|
|
2488
|
-
let contents = {};
|
|
2489
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2490
|
-
const response = {
|
|
2491
|
-
$metadata: deserializeMetadata(output),
|
|
2492
|
-
...contents,
|
|
2493
|
-
};
|
|
2494
|
-
return response;
|
|
2495
|
-
};
|
|
2496
|
-
exports.de_DisassociateFileSystemCommand = de_DisassociateFileSystemCommand;
|
|
2497
|
-
const de_DisassociateFileSystemCommandError = async (output, context) => {
|
|
2498
|
-
const parsedOutput = {
|
|
2499
|
-
...output,
|
|
2500
|
-
body: await parseErrorBody(output.body, context),
|
|
2501
|
-
};
|
|
2502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2503
|
-
switch (errorCode) {
|
|
2504
|
-
case "InternalServerError":
|
|
2505
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2506
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2507
|
-
case "InvalidGatewayRequestException":
|
|
2508
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2509
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2510
|
-
default:
|
|
2511
|
-
const parsedBody = parsedOutput.body;
|
|
2512
|
-
return throwDefaultError({
|
|
2513
|
-
output,
|
|
2514
|
-
parsedBody,
|
|
2515
|
-
errorCode,
|
|
2516
|
-
});
|
|
2517
|
-
}
|
|
2518
|
-
};
|
|
2519
|
-
const de_JoinDomainCommand = async (output, context) => {
|
|
2520
|
-
if (output.statusCode >= 300) {
|
|
2521
|
-
return de_JoinDomainCommandError(output, context);
|
|
2522
|
-
}
|
|
2523
|
-
const data = await parseBody(output.body, context);
|
|
2524
|
-
let contents = {};
|
|
2525
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2526
|
-
const response = {
|
|
2527
|
-
$metadata: deserializeMetadata(output),
|
|
2528
|
-
...contents,
|
|
2529
|
-
};
|
|
2530
|
-
return response;
|
|
2531
|
-
};
|
|
2532
|
-
exports.de_JoinDomainCommand = de_JoinDomainCommand;
|
|
2533
|
-
const de_JoinDomainCommandError = async (output, context) => {
|
|
2534
|
-
const parsedOutput = {
|
|
2535
|
-
...output,
|
|
2536
|
-
body: await parseErrorBody(output.body, context),
|
|
2537
|
-
};
|
|
2538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2539
|
-
switch (errorCode) {
|
|
2540
|
-
case "InternalServerError":
|
|
2541
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2542
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2543
|
-
case "InvalidGatewayRequestException":
|
|
2544
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2545
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2546
|
-
default:
|
|
2547
|
-
const parsedBody = parsedOutput.body;
|
|
2548
|
-
return throwDefaultError({
|
|
2549
|
-
output,
|
|
2550
|
-
parsedBody,
|
|
2551
|
-
errorCode,
|
|
2552
|
-
});
|
|
2553
|
-
}
|
|
2554
|
-
};
|
|
2555
|
-
const de_ListAutomaticTapeCreationPoliciesCommand = async (output, context) => {
|
|
2556
|
-
if (output.statusCode >= 300) {
|
|
2557
|
-
return de_ListAutomaticTapeCreationPoliciesCommandError(output, context);
|
|
2558
|
-
}
|
|
2559
|
-
const data = await parseBody(output.body, context);
|
|
2560
|
-
let contents = {};
|
|
2561
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2562
|
-
const response = {
|
|
2563
|
-
$metadata: deserializeMetadata(output),
|
|
2564
|
-
...contents,
|
|
2565
|
-
};
|
|
2566
|
-
return response;
|
|
2567
|
-
};
|
|
2568
|
-
exports.de_ListAutomaticTapeCreationPoliciesCommand = de_ListAutomaticTapeCreationPoliciesCommand;
|
|
2569
|
-
const de_ListAutomaticTapeCreationPoliciesCommandError = async (output, context) => {
|
|
2570
|
-
const parsedOutput = {
|
|
2571
|
-
...output,
|
|
2572
|
-
body: await parseErrorBody(output.body, context),
|
|
2573
|
-
};
|
|
2574
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2575
|
-
switch (errorCode) {
|
|
2576
|
-
case "InternalServerError":
|
|
2577
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2578
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2579
|
-
case "InvalidGatewayRequestException":
|
|
2580
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2581
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2582
|
-
default:
|
|
2583
|
-
const parsedBody = parsedOutput.body;
|
|
2584
|
-
return throwDefaultError({
|
|
2585
|
-
output,
|
|
2586
|
-
parsedBody,
|
|
2587
|
-
errorCode,
|
|
2588
|
-
});
|
|
2589
|
-
}
|
|
2590
|
-
};
|
|
2591
|
-
const de_ListFileSharesCommand = async (output, context) => {
|
|
2592
|
-
if (output.statusCode >= 300) {
|
|
2593
|
-
return de_ListFileSharesCommandError(output, context);
|
|
2594
|
-
}
|
|
2595
|
-
const data = await parseBody(output.body, context);
|
|
2596
|
-
let contents = {};
|
|
2597
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2598
|
-
const response = {
|
|
2599
|
-
$metadata: deserializeMetadata(output),
|
|
2600
|
-
...contents,
|
|
2601
|
-
};
|
|
2602
|
-
return response;
|
|
2603
|
-
};
|
|
2604
|
-
exports.de_ListFileSharesCommand = de_ListFileSharesCommand;
|
|
2605
|
-
const de_ListFileSharesCommandError = async (output, context) => {
|
|
2606
|
-
const parsedOutput = {
|
|
2607
|
-
...output,
|
|
2608
|
-
body: await parseErrorBody(output.body, context),
|
|
2609
|
-
};
|
|
2610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2611
|
-
switch (errorCode) {
|
|
2612
|
-
case "InternalServerError":
|
|
2613
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2614
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2615
|
-
case "InvalidGatewayRequestException":
|
|
2616
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2617
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2618
|
-
default:
|
|
2619
|
-
const parsedBody = parsedOutput.body;
|
|
2620
|
-
return throwDefaultError({
|
|
2621
|
-
output,
|
|
2622
|
-
parsedBody,
|
|
2623
|
-
errorCode,
|
|
2624
|
-
});
|
|
2625
|
-
}
|
|
2626
|
-
};
|
|
2627
|
-
const de_ListFileSystemAssociationsCommand = async (output, context) => {
|
|
2628
|
-
if (output.statusCode >= 300) {
|
|
2629
|
-
return de_ListFileSystemAssociationsCommandError(output, context);
|
|
2630
|
-
}
|
|
2631
|
-
const data = await parseBody(output.body, context);
|
|
2632
|
-
let contents = {};
|
|
2633
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2634
|
-
const response = {
|
|
2635
|
-
$metadata: deserializeMetadata(output),
|
|
2636
|
-
...contents,
|
|
2637
|
-
};
|
|
2638
|
-
return response;
|
|
2639
|
-
};
|
|
2640
|
-
exports.de_ListFileSystemAssociationsCommand = de_ListFileSystemAssociationsCommand;
|
|
2641
|
-
const de_ListFileSystemAssociationsCommandError = async (output, context) => {
|
|
2642
|
-
const parsedOutput = {
|
|
2643
|
-
...output,
|
|
2644
|
-
body: await parseErrorBody(output.body, context),
|
|
2645
|
-
};
|
|
2646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2647
|
-
switch (errorCode) {
|
|
2648
|
-
case "InternalServerError":
|
|
2649
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2650
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2651
|
-
case "InvalidGatewayRequestException":
|
|
2652
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2653
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2654
|
-
default:
|
|
2655
|
-
const parsedBody = parsedOutput.body;
|
|
2656
|
-
return throwDefaultError({
|
|
2657
|
-
output,
|
|
2658
|
-
parsedBody,
|
|
2659
|
-
errorCode,
|
|
2660
|
-
});
|
|
2661
|
-
}
|
|
2662
|
-
};
|
|
2663
|
-
const de_ListGatewaysCommand = async (output, context) => {
|
|
2664
|
-
if (output.statusCode >= 300) {
|
|
2665
|
-
return de_ListGatewaysCommandError(output, context);
|
|
2666
|
-
}
|
|
2667
|
-
const data = await parseBody(output.body, context);
|
|
2668
|
-
let contents = {};
|
|
2669
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2670
|
-
const response = {
|
|
2671
|
-
$metadata: deserializeMetadata(output),
|
|
2672
|
-
...contents,
|
|
2673
|
-
};
|
|
2674
|
-
return response;
|
|
2675
|
-
};
|
|
2676
|
-
exports.de_ListGatewaysCommand = de_ListGatewaysCommand;
|
|
2677
|
-
const de_ListGatewaysCommandError = async (output, context) => {
|
|
2678
|
-
const parsedOutput = {
|
|
2679
|
-
...output,
|
|
2680
|
-
body: await parseErrorBody(output.body, context),
|
|
2681
|
-
};
|
|
2682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2683
|
-
switch (errorCode) {
|
|
2684
|
-
case "InternalServerError":
|
|
2685
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2686
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2687
|
-
case "InvalidGatewayRequestException":
|
|
2688
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2689
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2690
|
-
default:
|
|
2691
|
-
const parsedBody = parsedOutput.body;
|
|
2692
|
-
return throwDefaultError({
|
|
2693
|
-
output,
|
|
2694
|
-
parsedBody,
|
|
2695
|
-
errorCode,
|
|
2696
|
-
});
|
|
2697
|
-
}
|
|
2698
|
-
};
|
|
2699
|
-
const de_ListLocalDisksCommand = async (output, context) => {
|
|
2700
|
-
if (output.statusCode >= 300) {
|
|
2701
|
-
return de_ListLocalDisksCommandError(output, context);
|
|
2702
|
-
}
|
|
2703
|
-
const data = await parseBody(output.body, context);
|
|
2704
|
-
let contents = {};
|
|
2705
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2706
|
-
const response = {
|
|
2707
|
-
$metadata: deserializeMetadata(output),
|
|
2708
|
-
...contents,
|
|
2709
|
-
};
|
|
2710
|
-
return response;
|
|
2711
|
-
};
|
|
2712
|
-
exports.de_ListLocalDisksCommand = de_ListLocalDisksCommand;
|
|
2713
|
-
const de_ListLocalDisksCommandError = async (output, context) => {
|
|
2714
|
-
const parsedOutput = {
|
|
2715
|
-
...output,
|
|
2716
|
-
body: await parseErrorBody(output.body, context),
|
|
2717
|
-
};
|
|
2718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2719
|
-
switch (errorCode) {
|
|
2720
|
-
case "InternalServerError":
|
|
2721
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2722
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2723
|
-
case "InvalidGatewayRequestException":
|
|
2724
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2725
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2726
|
-
default:
|
|
2727
|
-
const parsedBody = parsedOutput.body;
|
|
2728
|
-
return throwDefaultError({
|
|
2729
|
-
output,
|
|
2730
|
-
parsedBody,
|
|
2731
|
-
errorCode,
|
|
2732
|
-
});
|
|
2733
|
-
}
|
|
2734
|
-
};
|
|
2735
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2736
|
-
if (output.statusCode >= 300) {
|
|
2737
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2738
|
-
}
|
|
2739
|
-
const data = await parseBody(output.body, context);
|
|
2740
|
-
let contents = {};
|
|
2741
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2742
|
-
const response = {
|
|
2743
|
-
$metadata: deserializeMetadata(output),
|
|
2744
|
-
...contents,
|
|
2745
|
-
};
|
|
2746
|
-
return response;
|
|
2747
|
-
};
|
|
2748
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2749
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2750
|
-
const parsedOutput = {
|
|
2751
|
-
...output,
|
|
2752
|
-
body: await parseErrorBody(output.body, context),
|
|
2753
|
-
};
|
|
2754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
|
-
switch (errorCode) {
|
|
2756
|
-
case "InternalServerError":
|
|
2757
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2758
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2759
|
-
case "InvalidGatewayRequestException":
|
|
2760
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2761
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2762
|
-
default:
|
|
2763
|
-
const parsedBody = parsedOutput.body;
|
|
2764
|
-
return throwDefaultError({
|
|
2765
|
-
output,
|
|
2766
|
-
parsedBody,
|
|
2767
|
-
errorCode,
|
|
2768
|
-
});
|
|
2769
|
-
}
|
|
2770
|
-
};
|
|
2771
|
-
const de_ListTapePoolsCommand = async (output, context) => {
|
|
2772
|
-
if (output.statusCode >= 300) {
|
|
2773
|
-
return de_ListTapePoolsCommandError(output, context);
|
|
2774
|
-
}
|
|
2775
|
-
const data = await parseBody(output.body, context);
|
|
2776
|
-
let contents = {};
|
|
2777
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2778
|
-
const response = {
|
|
2779
|
-
$metadata: deserializeMetadata(output),
|
|
2780
|
-
...contents,
|
|
2781
|
-
};
|
|
2782
|
-
return response;
|
|
2783
|
-
};
|
|
2784
|
-
exports.de_ListTapePoolsCommand = de_ListTapePoolsCommand;
|
|
2785
|
-
const de_ListTapePoolsCommandError = async (output, context) => {
|
|
2786
|
-
const parsedOutput = {
|
|
2787
|
-
...output,
|
|
2788
|
-
body: await parseErrorBody(output.body, context),
|
|
2789
|
-
};
|
|
2790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2791
|
-
switch (errorCode) {
|
|
2792
|
-
case "InternalServerError":
|
|
2793
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2794
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2795
|
-
case "InvalidGatewayRequestException":
|
|
2796
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2797
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2798
|
-
default:
|
|
2799
|
-
const parsedBody = parsedOutput.body;
|
|
2800
|
-
return throwDefaultError({
|
|
2801
|
-
output,
|
|
2802
|
-
parsedBody,
|
|
2803
|
-
errorCode,
|
|
2804
|
-
});
|
|
2805
|
-
}
|
|
2806
|
-
};
|
|
2807
|
-
const de_ListTapesCommand = async (output, context) => {
|
|
2808
|
-
if (output.statusCode >= 300) {
|
|
2809
|
-
return de_ListTapesCommandError(output, context);
|
|
2810
|
-
}
|
|
2811
|
-
const data = await parseBody(output.body, context);
|
|
2812
|
-
let contents = {};
|
|
2813
|
-
contents = de_ListTapesOutput(data, context);
|
|
2814
|
-
const response = {
|
|
2815
|
-
$metadata: deserializeMetadata(output),
|
|
2816
|
-
...contents,
|
|
2817
|
-
};
|
|
2818
|
-
return response;
|
|
2819
|
-
};
|
|
2820
|
-
exports.de_ListTapesCommand = de_ListTapesCommand;
|
|
2821
|
-
const de_ListTapesCommandError = async (output, context) => {
|
|
2822
|
-
const parsedOutput = {
|
|
2823
|
-
...output,
|
|
2824
|
-
body: await parseErrorBody(output.body, context),
|
|
2825
|
-
};
|
|
2826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2827
|
-
switch (errorCode) {
|
|
2828
|
-
case "InternalServerError":
|
|
2829
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2830
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2831
|
-
case "InvalidGatewayRequestException":
|
|
2832
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2833
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2834
|
-
default:
|
|
2835
|
-
const parsedBody = parsedOutput.body;
|
|
2836
|
-
return throwDefaultError({
|
|
2837
|
-
output,
|
|
2838
|
-
parsedBody,
|
|
2839
|
-
errorCode,
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
};
|
|
2843
|
-
const de_ListVolumeInitiatorsCommand = async (output, context) => {
|
|
2844
|
-
if (output.statusCode >= 300) {
|
|
2845
|
-
return de_ListVolumeInitiatorsCommandError(output, context);
|
|
2846
|
-
}
|
|
2847
|
-
const data = await parseBody(output.body, context);
|
|
2848
|
-
let contents = {};
|
|
2849
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2850
|
-
const response = {
|
|
2851
|
-
$metadata: deserializeMetadata(output),
|
|
2852
|
-
...contents,
|
|
2853
|
-
};
|
|
2854
|
-
return response;
|
|
2855
|
-
};
|
|
2856
|
-
exports.de_ListVolumeInitiatorsCommand = de_ListVolumeInitiatorsCommand;
|
|
2857
|
-
const de_ListVolumeInitiatorsCommandError = async (output, context) => {
|
|
2858
|
-
const parsedOutput = {
|
|
2859
|
-
...output,
|
|
2860
|
-
body: await parseErrorBody(output.body, context),
|
|
2861
|
-
};
|
|
2862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2863
|
-
switch (errorCode) {
|
|
2864
|
-
case "InternalServerError":
|
|
2865
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2866
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2867
|
-
case "InvalidGatewayRequestException":
|
|
2868
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2869
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2870
|
-
default:
|
|
2871
|
-
const parsedBody = parsedOutput.body;
|
|
2872
|
-
return throwDefaultError({
|
|
2873
|
-
output,
|
|
2874
|
-
parsedBody,
|
|
2875
|
-
errorCode,
|
|
2876
|
-
});
|
|
2877
|
-
}
|
|
2878
|
-
};
|
|
2879
|
-
const de_ListVolumeRecoveryPointsCommand = async (output, context) => {
|
|
2880
|
-
if (output.statusCode >= 300) {
|
|
2881
|
-
return de_ListVolumeRecoveryPointsCommandError(output, context);
|
|
2882
|
-
}
|
|
2883
|
-
const data = await parseBody(output.body, context);
|
|
2884
|
-
let contents = {};
|
|
2885
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2886
|
-
const response = {
|
|
2887
|
-
$metadata: deserializeMetadata(output),
|
|
2888
|
-
...contents,
|
|
2889
|
-
};
|
|
2890
|
-
return response;
|
|
2891
|
-
};
|
|
2892
|
-
exports.de_ListVolumeRecoveryPointsCommand = de_ListVolumeRecoveryPointsCommand;
|
|
2893
|
-
const de_ListVolumeRecoveryPointsCommandError = async (output, context) => {
|
|
2894
|
-
const parsedOutput = {
|
|
2895
|
-
...output,
|
|
2896
|
-
body: await parseErrorBody(output.body, context),
|
|
2897
|
-
};
|
|
2898
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
|
-
switch (errorCode) {
|
|
2900
|
-
case "InternalServerError":
|
|
2901
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2902
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2903
|
-
case "InvalidGatewayRequestException":
|
|
2904
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2905
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2906
|
-
default:
|
|
2907
|
-
const parsedBody = parsedOutput.body;
|
|
2908
|
-
return throwDefaultError({
|
|
2909
|
-
output,
|
|
2910
|
-
parsedBody,
|
|
2911
|
-
errorCode,
|
|
2912
|
-
});
|
|
2913
|
-
}
|
|
2914
|
-
};
|
|
2915
|
-
const de_ListVolumesCommand = async (output, context) => {
|
|
2916
|
-
if (output.statusCode >= 300) {
|
|
2917
|
-
return de_ListVolumesCommandError(output, context);
|
|
2918
|
-
}
|
|
2919
|
-
const data = await parseBody(output.body, context);
|
|
2920
|
-
let contents = {};
|
|
2921
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2922
|
-
const response = {
|
|
2923
|
-
$metadata: deserializeMetadata(output),
|
|
2924
|
-
...contents,
|
|
2925
|
-
};
|
|
2926
|
-
return response;
|
|
2927
|
-
};
|
|
2928
|
-
exports.de_ListVolumesCommand = de_ListVolumesCommand;
|
|
2929
|
-
const de_ListVolumesCommandError = async (output, context) => {
|
|
2930
|
-
const parsedOutput = {
|
|
2931
|
-
...output,
|
|
2932
|
-
body: await parseErrorBody(output.body, context),
|
|
2933
|
-
};
|
|
2934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
|
-
switch (errorCode) {
|
|
2936
|
-
case "InternalServerError":
|
|
2937
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2938
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2939
|
-
case "InvalidGatewayRequestException":
|
|
2940
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2941
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2942
|
-
default:
|
|
2943
|
-
const parsedBody = parsedOutput.body;
|
|
2944
|
-
return throwDefaultError({
|
|
2945
|
-
output,
|
|
2946
|
-
parsedBody,
|
|
2947
|
-
errorCode,
|
|
2948
|
-
});
|
|
2949
|
-
}
|
|
2950
|
-
};
|
|
2951
|
-
const de_NotifyWhenUploadedCommand = async (output, context) => {
|
|
2952
|
-
if (output.statusCode >= 300) {
|
|
2953
|
-
return de_NotifyWhenUploadedCommandError(output, context);
|
|
2954
|
-
}
|
|
2955
|
-
const data = await parseBody(output.body, context);
|
|
2956
|
-
let contents = {};
|
|
2957
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2958
|
-
const response = {
|
|
2959
|
-
$metadata: deserializeMetadata(output),
|
|
2960
|
-
...contents,
|
|
2961
|
-
};
|
|
2962
|
-
return response;
|
|
2963
|
-
};
|
|
2964
|
-
exports.de_NotifyWhenUploadedCommand = de_NotifyWhenUploadedCommand;
|
|
2965
|
-
const de_NotifyWhenUploadedCommandError = async (output, context) => {
|
|
2966
|
-
const parsedOutput = {
|
|
2967
|
-
...output,
|
|
2968
|
-
body: await parseErrorBody(output.body, context),
|
|
2969
|
-
};
|
|
2970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2971
|
-
switch (errorCode) {
|
|
2972
|
-
case "InternalServerError":
|
|
2973
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2974
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2975
|
-
case "InvalidGatewayRequestException":
|
|
2976
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2977
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2978
|
-
default:
|
|
2979
|
-
const parsedBody = parsedOutput.body;
|
|
2980
|
-
return throwDefaultError({
|
|
2981
|
-
output,
|
|
2982
|
-
parsedBody,
|
|
2983
|
-
errorCode,
|
|
2984
|
-
});
|
|
2985
|
-
}
|
|
2986
|
-
};
|
|
2987
|
-
const de_RefreshCacheCommand = async (output, context) => {
|
|
2988
|
-
if (output.statusCode >= 300) {
|
|
2989
|
-
return de_RefreshCacheCommandError(output, context);
|
|
2990
|
-
}
|
|
2991
|
-
const data = await parseBody(output.body, context);
|
|
2992
|
-
let contents = {};
|
|
2993
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2994
|
-
const response = {
|
|
2995
|
-
$metadata: deserializeMetadata(output),
|
|
2996
|
-
...contents,
|
|
2997
|
-
};
|
|
2998
|
-
return response;
|
|
2999
|
-
};
|
|
3000
|
-
exports.de_RefreshCacheCommand = de_RefreshCacheCommand;
|
|
3001
|
-
const de_RefreshCacheCommandError = async (output, context) => {
|
|
3002
|
-
const parsedOutput = {
|
|
3003
|
-
...output,
|
|
3004
|
-
body: await parseErrorBody(output.body, context),
|
|
3005
|
-
};
|
|
3006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3007
|
-
switch (errorCode) {
|
|
3008
|
-
case "InternalServerError":
|
|
3009
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3010
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3011
|
-
case "InvalidGatewayRequestException":
|
|
3012
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3013
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3014
|
-
default:
|
|
3015
|
-
const parsedBody = parsedOutput.body;
|
|
3016
|
-
return throwDefaultError({
|
|
3017
|
-
output,
|
|
3018
|
-
parsedBody,
|
|
3019
|
-
errorCode,
|
|
3020
|
-
});
|
|
3021
|
-
}
|
|
3022
|
-
};
|
|
3023
|
-
const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
3024
|
-
if (output.statusCode >= 300) {
|
|
3025
|
-
return de_RemoveTagsFromResourceCommandError(output, context);
|
|
3026
|
-
}
|
|
3027
|
-
const data = await parseBody(output.body, context);
|
|
3028
|
-
let contents = {};
|
|
3029
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3030
|
-
const response = {
|
|
3031
|
-
$metadata: deserializeMetadata(output),
|
|
3032
|
-
...contents,
|
|
3033
|
-
};
|
|
3034
|
-
return response;
|
|
3035
|
-
};
|
|
3036
|
-
exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand;
|
|
3037
|
-
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
3038
|
-
const parsedOutput = {
|
|
3039
|
-
...output,
|
|
3040
|
-
body: await parseErrorBody(output.body, context),
|
|
3041
|
-
};
|
|
3042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3043
|
-
switch (errorCode) {
|
|
3044
|
-
case "InternalServerError":
|
|
3045
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3046
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3047
|
-
case "InvalidGatewayRequestException":
|
|
3048
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3049
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3050
|
-
default:
|
|
3051
|
-
const parsedBody = parsedOutput.body;
|
|
3052
|
-
return throwDefaultError({
|
|
3053
|
-
output,
|
|
3054
|
-
parsedBody,
|
|
3055
|
-
errorCode,
|
|
3056
|
-
});
|
|
3057
|
-
}
|
|
3058
|
-
};
|
|
3059
|
-
const de_ResetCacheCommand = async (output, context) => {
|
|
3060
|
-
if (output.statusCode >= 300) {
|
|
3061
|
-
return de_ResetCacheCommandError(output, context);
|
|
3062
|
-
}
|
|
3063
|
-
const data = await parseBody(output.body, context);
|
|
3064
|
-
let contents = {};
|
|
3065
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3066
|
-
const response = {
|
|
3067
|
-
$metadata: deserializeMetadata(output),
|
|
3068
|
-
...contents,
|
|
3069
|
-
};
|
|
3070
|
-
return response;
|
|
3071
|
-
};
|
|
3072
|
-
exports.de_ResetCacheCommand = de_ResetCacheCommand;
|
|
3073
|
-
const de_ResetCacheCommandError = async (output, context) => {
|
|
3074
|
-
const parsedOutput = {
|
|
3075
|
-
...output,
|
|
3076
|
-
body: await parseErrorBody(output.body, context),
|
|
3077
|
-
};
|
|
3078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3079
|
-
switch (errorCode) {
|
|
3080
|
-
case "InternalServerError":
|
|
3081
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3082
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3083
|
-
case "InvalidGatewayRequestException":
|
|
3084
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3085
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3086
|
-
default:
|
|
3087
|
-
const parsedBody = parsedOutput.body;
|
|
3088
|
-
return throwDefaultError({
|
|
3089
|
-
output,
|
|
3090
|
-
parsedBody,
|
|
3091
|
-
errorCode,
|
|
3092
|
-
});
|
|
3093
|
-
}
|
|
3094
|
-
};
|
|
3095
|
-
const de_RetrieveTapeArchiveCommand = async (output, context) => {
|
|
3096
|
-
if (output.statusCode >= 300) {
|
|
3097
|
-
return de_RetrieveTapeArchiveCommandError(output, context);
|
|
3098
|
-
}
|
|
3099
|
-
const data = await parseBody(output.body, context);
|
|
3100
|
-
let contents = {};
|
|
3101
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3102
|
-
const response = {
|
|
3103
|
-
$metadata: deserializeMetadata(output),
|
|
3104
|
-
...contents,
|
|
3105
|
-
};
|
|
3106
|
-
return response;
|
|
3107
|
-
};
|
|
3108
|
-
exports.de_RetrieveTapeArchiveCommand = de_RetrieveTapeArchiveCommand;
|
|
3109
|
-
const de_RetrieveTapeArchiveCommandError = async (output, context) => {
|
|
3110
|
-
const parsedOutput = {
|
|
3111
|
-
...output,
|
|
3112
|
-
body: await parseErrorBody(output.body, context),
|
|
3113
|
-
};
|
|
3114
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3115
|
-
switch (errorCode) {
|
|
3116
|
-
case "InternalServerError":
|
|
3117
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3118
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3119
|
-
case "InvalidGatewayRequestException":
|
|
3120
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3121
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3122
|
-
default:
|
|
3123
|
-
const parsedBody = parsedOutput.body;
|
|
3124
|
-
return throwDefaultError({
|
|
3125
|
-
output,
|
|
3126
|
-
parsedBody,
|
|
3127
|
-
errorCode,
|
|
3128
|
-
});
|
|
3129
|
-
}
|
|
3130
|
-
};
|
|
3131
|
-
const de_RetrieveTapeRecoveryPointCommand = async (output, context) => {
|
|
3132
|
-
if (output.statusCode >= 300) {
|
|
3133
|
-
return de_RetrieveTapeRecoveryPointCommandError(output, context);
|
|
3134
|
-
}
|
|
3135
|
-
const data = await parseBody(output.body, context);
|
|
3136
|
-
let contents = {};
|
|
3137
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3138
|
-
const response = {
|
|
3139
|
-
$metadata: deserializeMetadata(output),
|
|
3140
|
-
...contents,
|
|
3141
|
-
};
|
|
3142
|
-
return response;
|
|
3143
|
-
};
|
|
3144
|
-
exports.de_RetrieveTapeRecoveryPointCommand = de_RetrieveTapeRecoveryPointCommand;
|
|
3145
|
-
const de_RetrieveTapeRecoveryPointCommandError = async (output, context) => {
|
|
3146
|
-
const parsedOutput = {
|
|
3147
|
-
...output,
|
|
3148
|
-
body: await parseErrorBody(output.body, context),
|
|
3149
|
-
};
|
|
3150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3151
|
-
switch (errorCode) {
|
|
3152
|
-
case "InternalServerError":
|
|
3153
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3154
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3155
|
-
case "InvalidGatewayRequestException":
|
|
3156
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3157
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3158
|
-
default:
|
|
3159
|
-
const parsedBody = parsedOutput.body;
|
|
3160
|
-
return throwDefaultError({
|
|
3161
|
-
output,
|
|
3162
|
-
parsedBody,
|
|
3163
|
-
errorCode,
|
|
3164
|
-
});
|
|
3165
|
-
}
|
|
3166
|
-
};
|
|
3167
|
-
const de_SetLocalConsolePasswordCommand = async (output, context) => {
|
|
3168
|
-
if (output.statusCode >= 300) {
|
|
3169
|
-
return de_SetLocalConsolePasswordCommandError(output, context);
|
|
3170
|
-
}
|
|
3171
|
-
const data = await parseBody(output.body, context);
|
|
3172
|
-
let contents = {};
|
|
3173
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3174
|
-
const response = {
|
|
3175
|
-
$metadata: deserializeMetadata(output),
|
|
3176
|
-
...contents,
|
|
3177
|
-
};
|
|
3178
|
-
return response;
|
|
3179
|
-
};
|
|
3180
|
-
exports.de_SetLocalConsolePasswordCommand = de_SetLocalConsolePasswordCommand;
|
|
3181
|
-
const de_SetLocalConsolePasswordCommandError = async (output, context) => {
|
|
3182
|
-
const parsedOutput = {
|
|
3183
|
-
...output,
|
|
3184
|
-
body: await parseErrorBody(output.body, context),
|
|
3185
|
-
};
|
|
3186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3187
|
-
switch (errorCode) {
|
|
3188
|
-
case "InternalServerError":
|
|
3189
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3190
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3191
|
-
case "InvalidGatewayRequestException":
|
|
3192
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3193
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3194
|
-
default:
|
|
3195
|
-
const parsedBody = parsedOutput.body;
|
|
3196
|
-
return throwDefaultError({
|
|
3197
|
-
output,
|
|
3198
|
-
parsedBody,
|
|
3199
|
-
errorCode,
|
|
3200
|
-
});
|
|
3201
|
-
}
|
|
3202
|
-
};
|
|
3203
|
-
const de_SetSMBGuestPasswordCommand = async (output, context) => {
|
|
3204
|
-
if (output.statusCode >= 300) {
|
|
3205
|
-
return de_SetSMBGuestPasswordCommandError(output, context);
|
|
3206
|
-
}
|
|
3207
|
-
const data = await parseBody(output.body, context);
|
|
3208
|
-
let contents = {};
|
|
3209
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3210
|
-
const response = {
|
|
3211
|
-
$metadata: deserializeMetadata(output),
|
|
3212
|
-
...contents,
|
|
3213
|
-
};
|
|
3214
|
-
return response;
|
|
3215
|
-
};
|
|
3216
|
-
exports.de_SetSMBGuestPasswordCommand = de_SetSMBGuestPasswordCommand;
|
|
3217
|
-
const de_SetSMBGuestPasswordCommandError = async (output, context) => {
|
|
3218
|
-
const parsedOutput = {
|
|
3219
|
-
...output,
|
|
3220
|
-
body: await parseErrorBody(output.body, context),
|
|
3221
|
-
};
|
|
3222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3223
|
-
switch (errorCode) {
|
|
3224
|
-
case "InternalServerError":
|
|
3225
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3226
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3227
|
-
case "InvalidGatewayRequestException":
|
|
3228
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3229
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3230
|
-
default:
|
|
3231
|
-
const parsedBody = parsedOutput.body;
|
|
3232
|
-
return throwDefaultError({
|
|
3233
|
-
output,
|
|
3234
|
-
parsedBody,
|
|
3235
|
-
errorCode,
|
|
3236
|
-
});
|
|
3237
|
-
}
|
|
3238
|
-
};
|
|
3239
|
-
const de_ShutdownGatewayCommand = async (output, context) => {
|
|
3240
|
-
if (output.statusCode >= 300) {
|
|
3241
|
-
return de_ShutdownGatewayCommandError(output, context);
|
|
3242
|
-
}
|
|
3243
|
-
const data = await parseBody(output.body, context);
|
|
3244
|
-
let contents = {};
|
|
3245
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3246
|
-
const response = {
|
|
3247
|
-
$metadata: deserializeMetadata(output),
|
|
3248
|
-
...contents,
|
|
3249
|
-
};
|
|
3250
|
-
return response;
|
|
3251
|
-
};
|
|
3252
|
-
exports.de_ShutdownGatewayCommand = de_ShutdownGatewayCommand;
|
|
3253
|
-
const de_ShutdownGatewayCommandError = async (output, context) => {
|
|
3254
|
-
const parsedOutput = {
|
|
3255
|
-
...output,
|
|
3256
|
-
body: await parseErrorBody(output.body, context),
|
|
3257
|
-
};
|
|
3258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3259
|
-
switch (errorCode) {
|
|
3260
|
-
case "InternalServerError":
|
|
3261
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3262
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3263
|
-
case "InvalidGatewayRequestException":
|
|
3264
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3265
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3266
|
-
default:
|
|
3267
|
-
const parsedBody = parsedOutput.body;
|
|
3268
|
-
return throwDefaultError({
|
|
3269
|
-
output,
|
|
3270
|
-
parsedBody,
|
|
3271
|
-
errorCode,
|
|
3272
|
-
});
|
|
3273
|
-
}
|
|
3274
|
-
};
|
|
3275
|
-
const de_StartAvailabilityMonitorTestCommand = async (output, context) => {
|
|
3276
|
-
if (output.statusCode >= 300) {
|
|
3277
|
-
return de_StartAvailabilityMonitorTestCommandError(output, context);
|
|
3278
|
-
}
|
|
3279
|
-
const data = await parseBody(output.body, context);
|
|
3280
|
-
let contents = {};
|
|
3281
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3282
|
-
const response = {
|
|
3283
|
-
$metadata: deserializeMetadata(output),
|
|
3284
|
-
...contents,
|
|
3285
|
-
};
|
|
3286
|
-
return response;
|
|
3287
|
-
};
|
|
3288
|
-
exports.de_StartAvailabilityMonitorTestCommand = de_StartAvailabilityMonitorTestCommand;
|
|
3289
|
-
const de_StartAvailabilityMonitorTestCommandError = async (output, context) => {
|
|
3290
|
-
const parsedOutput = {
|
|
3291
|
-
...output,
|
|
3292
|
-
body: await parseErrorBody(output.body, context),
|
|
3293
|
-
};
|
|
3294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3295
|
-
switch (errorCode) {
|
|
3296
|
-
case "InternalServerError":
|
|
3297
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3298
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3299
|
-
case "InvalidGatewayRequestException":
|
|
3300
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3301
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3302
|
-
default:
|
|
3303
|
-
const parsedBody = parsedOutput.body;
|
|
3304
|
-
return throwDefaultError({
|
|
3305
|
-
output,
|
|
3306
|
-
parsedBody,
|
|
3307
|
-
errorCode,
|
|
3308
|
-
});
|
|
3309
|
-
}
|
|
3310
|
-
};
|
|
3311
|
-
const de_StartGatewayCommand = async (output, context) => {
|
|
3312
|
-
if (output.statusCode >= 300) {
|
|
3313
|
-
return de_StartGatewayCommandError(output, context);
|
|
3314
|
-
}
|
|
3315
|
-
const data = await parseBody(output.body, context);
|
|
3316
|
-
let contents = {};
|
|
3317
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3318
|
-
const response = {
|
|
3319
|
-
$metadata: deserializeMetadata(output),
|
|
3320
|
-
...contents,
|
|
3321
|
-
};
|
|
3322
|
-
return response;
|
|
3323
|
-
};
|
|
3324
|
-
exports.de_StartGatewayCommand = de_StartGatewayCommand;
|
|
3325
|
-
const de_StartGatewayCommandError = async (output, context) => {
|
|
3326
|
-
const parsedOutput = {
|
|
3327
|
-
...output,
|
|
3328
|
-
body: await parseErrorBody(output.body, context),
|
|
3329
|
-
};
|
|
3330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3331
|
-
switch (errorCode) {
|
|
3332
|
-
case "InternalServerError":
|
|
3333
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3334
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3335
|
-
case "InvalidGatewayRequestException":
|
|
3336
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3337
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3338
|
-
default:
|
|
3339
|
-
const parsedBody = parsedOutput.body;
|
|
3340
|
-
return throwDefaultError({
|
|
3341
|
-
output,
|
|
3342
|
-
parsedBody,
|
|
3343
|
-
errorCode,
|
|
3344
|
-
});
|
|
3345
|
-
}
|
|
3346
|
-
};
|
|
3347
|
-
const de_UpdateAutomaticTapeCreationPolicyCommand = async (output, context) => {
|
|
3348
|
-
if (output.statusCode >= 300) {
|
|
3349
|
-
return de_UpdateAutomaticTapeCreationPolicyCommandError(output, context);
|
|
3350
|
-
}
|
|
3351
|
-
const data = await parseBody(output.body, context);
|
|
3352
|
-
let contents = {};
|
|
3353
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3354
|
-
const response = {
|
|
3355
|
-
$metadata: deserializeMetadata(output),
|
|
3356
|
-
...contents,
|
|
3357
|
-
};
|
|
3358
|
-
return response;
|
|
3359
|
-
};
|
|
3360
|
-
exports.de_UpdateAutomaticTapeCreationPolicyCommand = de_UpdateAutomaticTapeCreationPolicyCommand;
|
|
3361
|
-
const de_UpdateAutomaticTapeCreationPolicyCommandError = async (output, context) => {
|
|
3362
|
-
const parsedOutput = {
|
|
3363
|
-
...output,
|
|
3364
|
-
body: await parseErrorBody(output.body, context),
|
|
3365
|
-
};
|
|
3366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3367
|
-
switch (errorCode) {
|
|
3368
|
-
case "InternalServerError":
|
|
3369
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3370
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3371
|
-
case "InvalidGatewayRequestException":
|
|
3372
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3373
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3374
|
-
default:
|
|
3375
|
-
const parsedBody = parsedOutput.body;
|
|
3376
|
-
return throwDefaultError({
|
|
3377
|
-
output,
|
|
3378
|
-
parsedBody,
|
|
3379
|
-
errorCode,
|
|
3380
|
-
});
|
|
3381
|
-
}
|
|
3382
|
-
};
|
|
3383
|
-
const de_UpdateBandwidthRateLimitCommand = async (output, context) => {
|
|
3384
|
-
if (output.statusCode >= 300) {
|
|
3385
|
-
return de_UpdateBandwidthRateLimitCommandError(output, context);
|
|
3386
|
-
}
|
|
3387
|
-
const data = await parseBody(output.body, context);
|
|
3388
|
-
let contents = {};
|
|
3389
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3390
|
-
const response = {
|
|
3391
|
-
$metadata: deserializeMetadata(output),
|
|
3392
|
-
...contents,
|
|
3393
|
-
};
|
|
3394
|
-
return response;
|
|
3395
|
-
};
|
|
3396
|
-
exports.de_UpdateBandwidthRateLimitCommand = de_UpdateBandwidthRateLimitCommand;
|
|
3397
|
-
const de_UpdateBandwidthRateLimitCommandError = async (output, context) => {
|
|
3398
|
-
const parsedOutput = {
|
|
3399
|
-
...output,
|
|
3400
|
-
body: await parseErrorBody(output.body, context),
|
|
3401
|
-
};
|
|
3402
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3403
|
-
switch (errorCode) {
|
|
3404
|
-
case "InternalServerError":
|
|
3405
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3406
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3407
|
-
case "InvalidGatewayRequestException":
|
|
3408
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3409
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3410
|
-
default:
|
|
3411
|
-
const parsedBody = parsedOutput.body;
|
|
3412
|
-
return throwDefaultError({
|
|
3413
|
-
output,
|
|
3414
|
-
parsedBody,
|
|
3415
|
-
errorCode,
|
|
3416
|
-
});
|
|
3417
|
-
}
|
|
3418
|
-
};
|
|
3419
|
-
const de_UpdateBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
3420
|
-
if (output.statusCode >= 300) {
|
|
3421
|
-
return de_UpdateBandwidthRateLimitScheduleCommandError(output, context);
|
|
3422
|
-
}
|
|
3423
|
-
const data = await parseBody(output.body, context);
|
|
3424
|
-
let contents = {};
|
|
3425
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3426
|
-
const response = {
|
|
3427
|
-
$metadata: deserializeMetadata(output),
|
|
3428
|
-
...contents,
|
|
3429
|
-
};
|
|
3430
|
-
return response;
|
|
3431
|
-
};
|
|
3432
|
-
exports.de_UpdateBandwidthRateLimitScheduleCommand = de_UpdateBandwidthRateLimitScheduleCommand;
|
|
3433
|
-
const de_UpdateBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
3434
|
-
const parsedOutput = {
|
|
3435
|
-
...output,
|
|
3436
|
-
body: await parseErrorBody(output.body, context),
|
|
3437
|
-
};
|
|
3438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
|
-
switch (errorCode) {
|
|
3440
|
-
case "InternalServerError":
|
|
3441
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3442
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3443
|
-
case "InvalidGatewayRequestException":
|
|
3444
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3445
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3446
|
-
default:
|
|
3447
|
-
const parsedBody = parsedOutput.body;
|
|
3448
|
-
return throwDefaultError({
|
|
3449
|
-
output,
|
|
3450
|
-
parsedBody,
|
|
3451
|
-
errorCode,
|
|
3452
|
-
});
|
|
3453
|
-
}
|
|
3454
|
-
};
|
|
3455
|
-
const de_UpdateChapCredentialsCommand = async (output, context) => {
|
|
3456
|
-
if (output.statusCode >= 300) {
|
|
3457
|
-
return de_UpdateChapCredentialsCommandError(output, context);
|
|
3458
|
-
}
|
|
3459
|
-
const data = await parseBody(output.body, context);
|
|
3460
|
-
let contents = {};
|
|
3461
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3462
|
-
const response = {
|
|
3463
|
-
$metadata: deserializeMetadata(output),
|
|
3464
|
-
...contents,
|
|
3465
|
-
};
|
|
3466
|
-
return response;
|
|
3467
|
-
};
|
|
3468
|
-
exports.de_UpdateChapCredentialsCommand = de_UpdateChapCredentialsCommand;
|
|
3469
|
-
const de_UpdateChapCredentialsCommandError = async (output, context) => {
|
|
3470
|
-
const parsedOutput = {
|
|
3471
|
-
...output,
|
|
3472
|
-
body: await parseErrorBody(output.body, context),
|
|
3473
|
-
};
|
|
3474
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3475
|
-
switch (errorCode) {
|
|
3476
|
-
case "InternalServerError":
|
|
3477
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3478
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3479
|
-
case "InvalidGatewayRequestException":
|
|
3480
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3481
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3482
|
-
default:
|
|
3483
|
-
const parsedBody = parsedOutput.body;
|
|
3484
|
-
return throwDefaultError({
|
|
3485
|
-
output,
|
|
3486
|
-
parsedBody,
|
|
3487
|
-
errorCode,
|
|
3488
|
-
});
|
|
3489
|
-
}
|
|
3490
|
-
};
|
|
3491
|
-
const de_UpdateFileSystemAssociationCommand = async (output, context) => {
|
|
3492
|
-
if (output.statusCode >= 300) {
|
|
3493
|
-
return de_UpdateFileSystemAssociationCommandError(output, context);
|
|
3494
|
-
}
|
|
3495
|
-
const data = await parseBody(output.body, context);
|
|
3496
|
-
let contents = {};
|
|
3497
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3498
|
-
const response = {
|
|
3499
|
-
$metadata: deserializeMetadata(output),
|
|
3500
|
-
...contents,
|
|
3501
|
-
};
|
|
3502
|
-
return response;
|
|
3503
|
-
};
|
|
3504
|
-
exports.de_UpdateFileSystemAssociationCommand = de_UpdateFileSystemAssociationCommand;
|
|
3505
|
-
const de_UpdateFileSystemAssociationCommandError = async (output, context) => {
|
|
3506
|
-
const parsedOutput = {
|
|
3507
|
-
...output,
|
|
3508
|
-
body: await parseErrorBody(output.body, context),
|
|
3509
|
-
};
|
|
3510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3511
|
-
switch (errorCode) {
|
|
3512
|
-
case "InternalServerError":
|
|
3513
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3514
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3515
|
-
case "InvalidGatewayRequestException":
|
|
3516
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3517
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3518
|
-
default:
|
|
3519
|
-
const parsedBody = parsedOutput.body;
|
|
3520
|
-
return throwDefaultError({
|
|
3521
|
-
output,
|
|
3522
|
-
parsedBody,
|
|
3523
|
-
errorCode,
|
|
3524
|
-
});
|
|
3525
|
-
}
|
|
3526
|
-
};
|
|
3527
|
-
const de_UpdateGatewayInformationCommand = async (output, context) => {
|
|
3528
|
-
if (output.statusCode >= 300) {
|
|
3529
|
-
return de_UpdateGatewayInformationCommandError(output, context);
|
|
3530
|
-
}
|
|
3531
|
-
const data = await parseBody(output.body, context);
|
|
3532
|
-
let contents = {};
|
|
3533
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3534
|
-
const response = {
|
|
3535
|
-
$metadata: deserializeMetadata(output),
|
|
3536
|
-
...contents,
|
|
3537
|
-
};
|
|
3538
|
-
return response;
|
|
3539
|
-
};
|
|
3540
|
-
exports.de_UpdateGatewayInformationCommand = de_UpdateGatewayInformationCommand;
|
|
3541
|
-
const de_UpdateGatewayInformationCommandError = async (output, context) => {
|
|
3542
|
-
const parsedOutput = {
|
|
3543
|
-
...output,
|
|
3544
|
-
body: await parseErrorBody(output.body, context),
|
|
3545
|
-
};
|
|
3546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3547
|
-
switch (errorCode) {
|
|
3548
|
-
case "InternalServerError":
|
|
3549
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3550
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3551
|
-
case "InvalidGatewayRequestException":
|
|
3552
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3553
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3554
|
-
default:
|
|
3555
|
-
const parsedBody = parsedOutput.body;
|
|
3556
|
-
return throwDefaultError({
|
|
3557
|
-
output,
|
|
3558
|
-
parsedBody,
|
|
3559
|
-
errorCode,
|
|
3560
|
-
});
|
|
3561
|
-
}
|
|
3562
|
-
};
|
|
3563
|
-
const de_UpdateGatewaySoftwareNowCommand = async (output, context) => {
|
|
3564
|
-
if (output.statusCode >= 300) {
|
|
3565
|
-
return de_UpdateGatewaySoftwareNowCommandError(output, context);
|
|
3566
|
-
}
|
|
3567
|
-
const data = await parseBody(output.body, context);
|
|
3568
|
-
let contents = {};
|
|
3569
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3570
|
-
const response = {
|
|
3571
|
-
$metadata: deserializeMetadata(output),
|
|
3572
|
-
...contents,
|
|
3573
|
-
};
|
|
3574
|
-
return response;
|
|
3575
|
-
};
|
|
3576
|
-
exports.de_UpdateGatewaySoftwareNowCommand = de_UpdateGatewaySoftwareNowCommand;
|
|
3577
|
-
const de_UpdateGatewaySoftwareNowCommandError = async (output, context) => {
|
|
3578
|
-
const parsedOutput = {
|
|
3579
|
-
...output,
|
|
3580
|
-
body: await parseErrorBody(output.body, context),
|
|
3581
|
-
};
|
|
3582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3583
|
-
switch (errorCode) {
|
|
3584
|
-
case "InternalServerError":
|
|
3585
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3586
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3587
|
-
case "InvalidGatewayRequestException":
|
|
3588
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3589
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3590
|
-
default:
|
|
3591
|
-
const parsedBody = parsedOutput.body;
|
|
3592
|
-
return throwDefaultError({
|
|
3593
|
-
output,
|
|
3594
|
-
parsedBody,
|
|
3595
|
-
errorCode,
|
|
3596
|
-
});
|
|
3597
|
-
}
|
|
3598
|
-
};
|
|
3599
|
-
const de_UpdateMaintenanceStartTimeCommand = async (output, context) => {
|
|
3600
|
-
if (output.statusCode >= 300) {
|
|
3601
|
-
return de_UpdateMaintenanceStartTimeCommandError(output, context);
|
|
3602
|
-
}
|
|
3603
|
-
const data = await parseBody(output.body, context);
|
|
3604
|
-
let contents = {};
|
|
3605
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3606
|
-
const response = {
|
|
3607
|
-
$metadata: deserializeMetadata(output),
|
|
3608
|
-
...contents,
|
|
3609
|
-
};
|
|
3610
|
-
return response;
|
|
3611
|
-
};
|
|
3612
|
-
exports.de_UpdateMaintenanceStartTimeCommand = de_UpdateMaintenanceStartTimeCommand;
|
|
3613
|
-
const de_UpdateMaintenanceStartTimeCommandError = async (output, context) => {
|
|
3614
|
-
const parsedOutput = {
|
|
3615
|
-
...output,
|
|
3616
|
-
body: await parseErrorBody(output.body, context),
|
|
3617
|
-
};
|
|
3618
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3619
|
-
switch (errorCode) {
|
|
3620
|
-
case "InternalServerError":
|
|
3621
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3622
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3623
|
-
case "InvalidGatewayRequestException":
|
|
3624
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3625
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3626
|
-
default:
|
|
3627
|
-
const parsedBody = parsedOutput.body;
|
|
3628
|
-
return throwDefaultError({
|
|
3629
|
-
output,
|
|
3630
|
-
parsedBody,
|
|
3631
|
-
errorCode,
|
|
3632
|
-
});
|
|
3633
|
-
}
|
|
3634
|
-
};
|
|
3635
|
-
const de_UpdateNFSFileShareCommand = async (output, context) => {
|
|
3636
|
-
if (output.statusCode >= 300) {
|
|
3637
|
-
return de_UpdateNFSFileShareCommandError(output, context);
|
|
3638
|
-
}
|
|
3639
|
-
const data = await parseBody(output.body, context);
|
|
3640
|
-
let contents = {};
|
|
3641
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3642
|
-
const response = {
|
|
3643
|
-
$metadata: deserializeMetadata(output),
|
|
3644
|
-
...contents,
|
|
3645
|
-
};
|
|
3646
|
-
return response;
|
|
3647
|
-
};
|
|
3648
|
-
exports.de_UpdateNFSFileShareCommand = de_UpdateNFSFileShareCommand;
|
|
3649
|
-
const de_UpdateNFSFileShareCommandError = async (output, context) => {
|
|
3650
|
-
const parsedOutput = {
|
|
3651
|
-
...output,
|
|
3652
|
-
body: await parseErrorBody(output.body, context),
|
|
3653
|
-
};
|
|
3654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3655
|
-
switch (errorCode) {
|
|
3656
|
-
case "InternalServerError":
|
|
3657
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3658
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3659
|
-
case "InvalidGatewayRequestException":
|
|
3660
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3661
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3662
|
-
default:
|
|
3663
|
-
const parsedBody = parsedOutput.body;
|
|
3664
|
-
return throwDefaultError({
|
|
3665
|
-
output,
|
|
3666
|
-
parsedBody,
|
|
3667
|
-
errorCode,
|
|
3668
|
-
});
|
|
3669
|
-
}
|
|
3670
|
-
};
|
|
3671
|
-
const de_UpdateSMBFileShareCommand = async (output, context) => {
|
|
3672
|
-
if (output.statusCode >= 300) {
|
|
3673
|
-
return de_UpdateSMBFileShareCommandError(output, context);
|
|
3674
|
-
}
|
|
3675
|
-
const data = await parseBody(output.body, context);
|
|
3676
|
-
let contents = {};
|
|
3677
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3678
|
-
const response = {
|
|
3679
|
-
$metadata: deserializeMetadata(output),
|
|
3680
|
-
...contents,
|
|
3681
|
-
};
|
|
3682
|
-
return response;
|
|
3683
|
-
};
|
|
3684
|
-
exports.de_UpdateSMBFileShareCommand = de_UpdateSMBFileShareCommand;
|
|
3685
|
-
const de_UpdateSMBFileShareCommandError = async (output, context) => {
|
|
3686
|
-
const parsedOutput = {
|
|
3687
|
-
...output,
|
|
3688
|
-
body: await parseErrorBody(output.body, context),
|
|
3689
|
-
};
|
|
3690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3691
|
-
switch (errorCode) {
|
|
3692
|
-
case "InternalServerError":
|
|
3693
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3694
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3695
|
-
case "InvalidGatewayRequestException":
|
|
3696
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3697
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3698
|
-
default:
|
|
3699
|
-
const parsedBody = parsedOutput.body;
|
|
3700
|
-
return throwDefaultError({
|
|
3701
|
-
output,
|
|
3702
|
-
parsedBody,
|
|
3703
|
-
errorCode,
|
|
3704
|
-
});
|
|
3705
|
-
}
|
|
3706
|
-
};
|
|
3707
|
-
const de_UpdateSMBFileShareVisibilityCommand = async (output, context) => {
|
|
3708
|
-
if (output.statusCode >= 300) {
|
|
3709
|
-
return de_UpdateSMBFileShareVisibilityCommandError(output, context);
|
|
3710
|
-
}
|
|
3711
|
-
const data = await parseBody(output.body, context);
|
|
3712
|
-
let contents = {};
|
|
3713
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3714
|
-
const response = {
|
|
3715
|
-
$metadata: deserializeMetadata(output),
|
|
3716
|
-
...contents,
|
|
3717
|
-
};
|
|
3718
|
-
return response;
|
|
3719
|
-
};
|
|
3720
|
-
exports.de_UpdateSMBFileShareVisibilityCommand = de_UpdateSMBFileShareVisibilityCommand;
|
|
3721
|
-
const de_UpdateSMBFileShareVisibilityCommandError = async (output, context) => {
|
|
3722
|
-
const parsedOutput = {
|
|
3723
|
-
...output,
|
|
3724
|
-
body: await parseErrorBody(output.body, context),
|
|
3725
|
-
};
|
|
3726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3727
|
-
switch (errorCode) {
|
|
3728
|
-
case "InternalServerError":
|
|
3729
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3730
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3731
|
-
case "InvalidGatewayRequestException":
|
|
3732
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3733
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3734
|
-
default:
|
|
3735
|
-
const parsedBody = parsedOutput.body;
|
|
3736
|
-
return throwDefaultError({
|
|
3737
|
-
output,
|
|
3738
|
-
parsedBody,
|
|
3739
|
-
errorCode,
|
|
3740
|
-
});
|
|
3741
|
-
}
|
|
3742
|
-
};
|
|
3743
|
-
const de_UpdateSMBLocalGroupsCommand = async (output, context) => {
|
|
3744
|
-
if (output.statusCode >= 300) {
|
|
3745
|
-
return de_UpdateSMBLocalGroupsCommandError(output, context);
|
|
3746
|
-
}
|
|
3747
|
-
const data = await parseBody(output.body, context);
|
|
3748
|
-
let contents = {};
|
|
3749
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3750
|
-
const response = {
|
|
3751
|
-
$metadata: deserializeMetadata(output),
|
|
3752
|
-
...contents,
|
|
3753
|
-
};
|
|
3754
|
-
return response;
|
|
3755
|
-
};
|
|
3756
|
-
exports.de_UpdateSMBLocalGroupsCommand = de_UpdateSMBLocalGroupsCommand;
|
|
3757
|
-
const de_UpdateSMBLocalGroupsCommandError = async (output, context) => {
|
|
3758
|
-
const parsedOutput = {
|
|
3759
|
-
...output,
|
|
3760
|
-
body: await parseErrorBody(output.body, context),
|
|
3761
|
-
};
|
|
3762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3763
|
-
switch (errorCode) {
|
|
3764
|
-
case "InternalServerError":
|
|
3765
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3766
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3767
|
-
case "InvalidGatewayRequestException":
|
|
3768
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3769
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3770
|
-
default:
|
|
3771
|
-
const parsedBody = parsedOutput.body;
|
|
3772
|
-
return throwDefaultError({
|
|
3773
|
-
output,
|
|
3774
|
-
parsedBody,
|
|
3775
|
-
errorCode,
|
|
3776
|
-
});
|
|
3777
|
-
}
|
|
3778
|
-
};
|
|
3779
|
-
const de_UpdateSMBSecurityStrategyCommand = async (output, context) => {
|
|
3780
|
-
if (output.statusCode >= 300) {
|
|
3781
|
-
return de_UpdateSMBSecurityStrategyCommandError(output, context);
|
|
3782
|
-
}
|
|
3783
|
-
const data = await parseBody(output.body, context);
|
|
3784
|
-
let contents = {};
|
|
3785
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3786
|
-
const response = {
|
|
3787
|
-
$metadata: deserializeMetadata(output),
|
|
3788
|
-
...contents,
|
|
3789
|
-
};
|
|
3790
|
-
return response;
|
|
3791
|
-
};
|
|
3792
|
-
exports.de_UpdateSMBSecurityStrategyCommand = de_UpdateSMBSecurityStrategyCommand;
|
|
3793
|
-
const de_UpdateSMBSecurityStrategyCommandError = async (output, context) => {
|
|
3794
|
-
const parsedOutput = {
|
|
3795
|
-
...output,
|
|
3796
|
-
body: await parseErrorBody(output.body, context),
|
|
3797
|
-
};
|
|
3798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3799
|
-
switch (errorCode) {
|
|
3800
|
-
case "InternalServerError":
|
|
3801
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3802
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3803
|
-
case "InvalidGatewayRequestException":
|
|
3804
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3805
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3806
|
-
default:
|
|
3807
|
-
const parsedBody = parsedOutput.body;
|
|
3808
|
-
return throwDefaultError({
|
|
3809
|
-
output,
|
|
3810
|
-
parsedBody,
|
|
3811
|
-
errorCode,
|
|
3812
|
-
});
|
|
3813
|
-
}
|
|
3814
|
-
};
|
|
3815
|
-
const de_UpdateSnapshotScheduleCommand = async (output, context) => {
|
|
3816
|
-
if (output.statusCode >= 300) {
|
|
3817
|
-
return de_UpdateSnapshotScheduleCommandError(output, context);
|
|
3818
|
-
}
|
|
3819
|
-
const data = await parseBody(output.body, context);
|
|
3820
|
-
let contents = {};
|
|
3821
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3822
|
-
const response = {
|
|
3823
|
-
$metadata: deserializeMetadata(output),
|
|
3824
|
-
...contents,
|
|
3825
|
-
};
|
|
3826
|
-
return response;
|
|
3827
|
-
};
|
|
3828
|
-
exports.de_UpdateSnapshotScheduleCommand = de_UpdateSnapshotScheduleCommand;
|
|
3829
|
-
const de_UpdateSnapshotScheduleCommandError = async (output, context) => {
|
|
3830
|
-
const parsedOutput = {
|
|
3831
|
-
...output,
|
|
3832
|
-
body: await parseErrorBody(output.body, context),
|
|
3833
|
-
};
|
|
3834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3835
|
-
switch (errorCode) {
|
|
3836
|
-
case "InternalServerError":
|
|
3837
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3838
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3839
|
-
case "InvalidGatewayRequestException":
|
|
3840
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3841
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3842
|
-
default:
|
|
3843
|
-
const parsedBody = parsedOutput.body;
|
|
3844
|
-
return throwDefaultError({
|
|
3845
|
-
output,
|
|
3846
|
-
parsedBody,
|
|
3847
|
-
errorCode,
|
|
3848
|
-
});
|
|
3849
|
-
}
|
|
3850
|
-
};
|
|
3851
|
-
const de_UpdateVTLDeviceTypeCommand = async (output, context) => {
|
|
3852
|
-
if (output.statusCode >= 300) {
|
|
3853
|
-
return de_UpdateVTLDeviceTypeCommandError(output, context);
|
|
3854
|
-
}
|
|
3855
|
-
const data = await parseBody(output.body, context);
|
|
3856
|
-
let contents = {};
|
|
3857
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3858
|
-
const response = {
|
|
3859
|
-
$metadata: deserializeMetadata(output),
|
|
3860
|
-
...contents,
|
|
3861
|
-
};
|
|
3862
|
-
return response;
|
|
3863
|
-
};
|
|
3864
|
-
exports.de_UpdateVTLDeviceTypeCommand = de_UpdateVTLDeviceTypeCommand;
|
|
3865
|
-
const de_UpdateVTLDeviceTypeCommandError = async (output, context) => {
|
|
3866
|
-
const parsedOutput = {
|
|
3867
|
-
...output,
|
|
3868
|
-
body: await parseErrorBody(output.body, context),
|
|
3869
|
-
};
|
|
3870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3871
|
-
switch (errorCode) {
|
|
3872
|
-
case "InternalServerError":
|
|
3873
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3874
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3875
|
-
case "InvalidGatewayRequestException":
|
|
3876
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3877
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3878
|
-
default:
|
|
3879
|
-
const parsedBody = parsedOutput.body;
|
|
3880
|
-
return throwDefaultError({
|
|
3881
|
-
output,
|
|
3882
|
-
parsedBody,
|
|
3883
|
-
errorCode,
|
|
3884
|
-
});
|
|
3885
|
-
}
|
|
3886
|
-
};
|
|
3887
|
-
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
3888
|
-
const body = parsedOutput.body;
|
|
3889
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3890
|
-
const exception = new models_0_1.InternalServerError({
|
|
3891
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3892
|
-
...deserialized,
|
|
3893
|
-
});
|
|
3894
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3895
|
-
};
|
|
3896
|
-
const de_InvalidGatewayRequestExceptionRes = async (parsedOutput, context) => {
|
|
3897
|
-
const body = parsedOutput.body;
|
|
3898
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3899
|
-
const exception = new models_0_1.InvalidGatewayRequestException({
|
|
3900
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3901
|
-
...deserialized,
|
|
3902
|
-
});
|
|
3903
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3904
|
-
};
|
|
3905
|
-
const de_ServiceUnavailableErrorRes = async (parsedOutput, context) => {
|
|
3906
|
-
const body = parsedOutput.body;
|
|
3907
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3908
|
-
const exception = new models_0_1.ServiceUnavailableError({
|
|
3909
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3910
|
-
...deserialized,
|
|
3911
|
-
});
|
|
3912
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3913
|
-
};
|
|
3914
|
-
const de_CachediSCSIVolume = (output, context) => {
|
|
3915
|
-
return (0, smithy_client_1.take)(output, {
|
|
3916
|
-
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3917
|
-
KMSKey: smithy_client_1.expectString,
|
|
3918
|
-
SourceSnapshotId: smithy_client_1.expectString,
|
|
3919
|
-
TargetName: smithy_client_1.expectString,
|
|
3920
|
-
VolumeARN: smithy_client_1.expectString,
|
|
3921
|
-
VolumeAttachmentStatus: smithy_client_1.expectString,
|
|
3922
|
-
VolumeId: smithy_client_1.expectString,
|
|
3923
|
-
VolumeProgress: smithy_client_1.limitedParseDouble,
|
|
3924
|
-
VolumeSizeInBytes: smithy_client_1.expectLong,
|
|
3925
|
-
VolumeStatus: smithy_client_1.expectString,
|
|
3926
|
-
VolumeType: smithy_client_1.expectString,
|
|
3927
|
-
VolumeUsedInBytes: smithy_client_1.expectLong,
|
|
3928
|
-
VolumeiSCSIAttributes: smithy_client_1._json,
|
|
3929
|
-
});
|
|
3930
|
-
};
|
|
3931
|
-
const de_CachediSCSIVolumes = (output, context) => {
|
|
3932
|
-
const retVal = (output || [])
|
|
3933
|
-
.filter((e) => e != null)
|
|
3934
|
-
.map((entry) => {
|
|
3935
|
-
return de_CachediSCSIVolume(entry, context);
|
|
3936
|
-
});
|
|
3937
|
-
return retVal;
|
|
3938
|
-
};
|
|
3939
|
-
const de_DescribeAvailabilityMonitorTestOutput = (output, context) => {
|
|
3940
|
-
return (0, smithy_client_1.take)(output, {
|
|
3941
|
-
GatewayARN: smithy_client_1.expectString,
|
|
3942
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3943
|
-
Status: smithy_client_1.expectString,
|
|
3944
|
-
});
|
|
3945
|
-
};
|
|
3946
|
-
const de_DescribeCachediSCSIVolumesOutput = (output, context) => {
|
|
3947
|
-
return (0, smithy_client_1.take)(output, {
|
|
3948
|
-
CachediSCSIVolumes: (_) => de_CachediSCSIVolumes(_, context),
|
|
3949
|
-
});
|
|
3950
|
-
};
|
|
3951
|
-
const de_DescribeCacheOutput = (output, context) => {
|
|
3952
|
-
return (0, smithy_client_1.take)(output, {
|
|
3953
|
-
CacheAllocatedInBytes: smithy_client_1.expectLong,
|
|
3954
|
-
CacheDirtyPercentage: smithy_client_1.limitedParseDouble,
|
|
3955
|
-
CacheHitPercentage: smithy_client_1.limitedParseDouble,
|
|
3956
|
-
CacheMissPercentage: smithy_client_1.limitedParseDouble,
|
|
3957
|
-
CacheUsedPercentage: smithy_client_1.limitedParseDouble,
|
|
3958
|
-
DiskIds: smithy_client_1._json,
|
|
3959
|
-
GatewayARN: smithy_client_1.expectString,
|
|
3960
|
-
});
|
|
3961
|
-
};
|
|
3962
|
-
const de_DescribeStorediSCSIVolumesOutput = (output, context) => {
|
|
3963
|
-
return (0, smithy_client_1.take)(output, {
|
|
3964
|
-
StorediSCSIVolumes: (_) => de_StorediSCSIVolumes(_, context),
|
|
3965
|
-
});
|
|
3966
|
-
};
|
|
3967
|
-
const de_DescribeTapeArchivesOutput = (output, context) => {
|
|
3968
|
-
return (0, smithy_client_1.take)(output, {
|
|
3969
|
-
Marker: smithy_client_1.expectString,
|
|
3970
|
-
TapeArchives: (_) => de_TapeArchives(_, context),
|
|
3971
|
-
});
|
|
3972
|
-
};
|
|
3973
|
-
const de_DescribeTapeRecoveryPointsOutput = (output, context) => {
|
|
3974
|
-
return (0, smithy_client_1.take)(output, {
|
|
3975
|
-
GatewayARN: smithy_client_1.expectString,
|
|
3976
|
-
Marker: smithy_client_1.expectString,
|
|
3977
|
-
TapeRecoveryPointInfos: (_) => de_TapeRecoveryPointInfos(_, context),
|
|
3978
|
-
});
|
|
3979
|
-
};
|
|
3980
|
-
const de_DescribeTapesOutput = (output, context) => {
|
|
3981
|
-
return (0, smithy_client_1.take)(output, {
|
|
3982
|
-
Marker: smithy_client_1.expectString,
|
|
3983
|
-
Tapes: (_) => de_Tapes(_, context),
|
|
3984
|
-
});
|
|
3985
|
-
};
|
|
3986
|
-
const de_ListTapesOutput = (output, context) => {
|
|
3987
|
-
return (0, smithy_client_1.take)(output, {
|
|
3988
|
-
Marker: smithy_client_1.expectString,
|
|
3989
|
-
TapeInfos: (_) => de_TapeInfos(_, context),
|
|
3990
|
-
});
|
|
3991
|
-
};
|
|
3992
|
-
const de_StorediSCSIVolume = (output, context) => {
|
|
3993
|
-
return (0, smithy_client_1.take)(output, {
|
|
3994
|
-
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3995
|
-
KMSKey: smithy_client_1.expectString,
|
|
3996
|
-
PreservedExistingData: smithy_client_1.expectBoolean,
|
|
3997
|
-
SourceSnapshotId: smithy_client_1.expectString,
|
|
3998
|
-
TargetName: smithy_client_1.expectString,
|
|
3999
|
-
VolumeARN: smithy_client_1.expectString,
|
|
4000
|
-
VolumeAttachmentStatus: smithy_client_1.expectString,
|
|
4001
|
-
VolumeDiskId: smithy_client_1.expectString,
|
|
4002
|
-
VolumeId: smithy_client_1.expectString,
|
|
4003
|
-
VolumeProgress: smithy_client_1.limitedParseDouble,
|
|
4004
|
-
VolumeSizeInBytes: smithy_client_1.expectLong,
|
|
4005
|
-
VolumeStatus: smithy_client_1.expectString,
|
|
4006
|
-
VolumeType: smithy_client_1.expectString,
|
|
4007
|
-
VolumeUsedInBytes: smithy_client_1.expectLong,
|
|
4008
|
-
VolumeiSCSIAttributes: smithy_client_1._json,
|
|
4009
|
-
});
|
|
4010
|
-
};
|
|
4011
|
-
const de_StorediSCSIVolumes = (output, context) => {
|
|
4012
|
-
const retVal = (output || [])
|
|
4013
|
-
.filter((e) => e != null)
|
|
4014
|
-
.map((entry) => {
|
|
4015
|
-
return de_StorediSCSIVolume(entry, context);
|
|
4016
|
-
});
|
|
4017
|
-
return retVal;
|
|
4018
|
-
};
|
|
4019
|
-
const de_Tape = (output, context) => {
|
|
4020
|
-
return (0, smithy_client_1.take)(output, {
|
|
4021
|
-
KMSKey: smithy_client_1.expectString,
|
|
4022
|
-
PoolEntryDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4023
|
-
PoolId: smithy_client_1.expectString,
|
|
4024
|
-
Progress: smithy_client_1.limitedParseDouble,
|
|
4025
|
-
RetentionStartDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4026
|
-
TapeARN: smithy_client_1.expectString,
|
|
4027
|
-
TapeBarcode: smithy_client_1.expectString,
|
|
4028
|
-
TapeCreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4029
|
-
TapeSizeInBytes: smithy_client_1.expectLong,
|
|
4030
|
-
TapeStatus: smithy_client_1.expectString,
|
|
4031
|
-
TapeUsedInBytes: smithy_client_1.expectLong,
|
|
4032
|
-
VTLDevice: smithy_client_1.expectString,
|
|
4033
|
-
Worm: smithy_client_1.expectBoolean,
|
|
4034
|
-
});
|
|
4035
|
-
};
|
|
4036
|
-
const de_TapeArchive = (output, context) => {
|
|
4037
|
-
return (0, smithy_client_1.take)(output, {
|
|
4038
|
-
CompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4039
|
-
KMSKey: smithy_client_1.expectString,
|
|
4040
|
-
PoolEntryDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4041
|
-
PoolId: smithy_client_1.expectString,
|
|
4042
|
-
RetentionStartDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4043
|
-
RetrievedTo: smithy_client_1.expectString,
|
|
4044
|
-
TapeARN: smithy_client_1.expectString,
|
|
4045
|
-
TapeBarcode: smithy_client_1.expectString,
|
|
4046
|
-
TapeCreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4047
|
-
TapeSizeInBytes: smithy_client_1.expectLong,
|
|
4048
|
-
TapeStatus: smithy_client_1.expectString,
|
|
4049
|
-
TapeUsedInBytes: smithy_client_1.expectLong,
|
|
4050
|
-
Worm: smithy_client_1.expectBoolean,
|
|
4051
|
-
});
|
|
4052
|
-
};
|
|
4053
|
-
const de_TapeArchives = (output, context) => {
|
|
4054
|
-
const retVal = (output || [])
|
|
4055
|
-
.filter((e) => e != null)
|
|
4056
|
-
.map((entry) => {
|
|
4057
|
-
return de_TapeArchive(entry, context);
|
|
4058
|
-
});
|
|
4059
|
-
return retVal;
|
|
4060
|
-
};
|
|
4061
|
-
const de_TapeInfo = (output, context) => {
|
|
4062
|
-
return (0, smithy_client_1.take)(output, {
|
|
4063
|
-
GatewayARN: smithy_client_1.expectString,
|
|
4064
|
-
PoolEntryDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4065
|
-
PoolId: smithy_client_1.expectString,
|
|
4066
|
-
RetentionStartDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4067
|
-
TapeARN: smithy_client_1.expectString,
|
|
4068
|
-
TapeBarcode: smithy_client_1.expectString,
|
|
4069
|
-
TapeSizeInBytes: smithy_client_1.expectLong,
|
|
4070
|
-
TapeStatus: smithy_client_1.expectString,
|
|
4071
|
-
});
|
|
4072
|
-
};
|
|
4073
|
-
const de_TapeInfos = (output, context) => {
|
|
4074
|
-
const retVal = (output || [])
|
|
4075
|
-
.filter((e) => e != null)
|
|
4076
|
-
.map((entry) => {
|
|
4077
|
-
return de_TapeInfo(entry, context);
|
|
4078
|
-
});
|
|
4079
|
-
return retVal;
|
|
4080
|
-
};
|
|
4081
|
-
const de_TapeRecoveryPointInfo = (output, context) => {
|
|
4082
|
-
return (0, smithy_client_1.take)(output, {
|
|
4083
|
-
TapeARN: smithy_client_1.expectString,
|
|
4084
|
-
TapeRecoveryPointTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4085
|
-
TapeSizeInBytes: smithy_client_1.expectLong,
|
|
4086
|
-
TapeStatus: smithy_client_1.expectString,
|
|
4087
|
-
});
|
|
4088
|
-
};
|
|
4089
|
-
const de_TapeRecoveryPointInfos = (output, context) => {
|
|
4090
|
-
const retVal = (output || [])
|
|
4091
|
-
.filter((e) => e != null)
|
|
4092
|
-
.map((entry) => {
|
|
4093
|
-
return de_TapeRecoveryPointInfo(entry, context);
|
|
4094
|
-
});
|
|
4095
|
-
return retVal;
|
|
4096
|
-
};
|
|
4097
|
-
const de_Tapes = (output, context) => {
|
|
4098
|
-
const retVal = (output || [])
|
|
4099
|
-
.filter((e) => e != null)
|
|
4100
|
-
.map((entry) => {
|
|
4101
|
-
return de_Tape(entry, context);
|
|
4102
|
-
});
|
|
4103
|
-
return retVal;
|
|
4104
|
-
};
|
|
4105
|
-
const deserializeMetadata = (output) => ({
|
|
4106
|
-
httpStatusCode: output.statusCode,
|
|
4107
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4108
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4109
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4110
|
-
});
|
|
4111
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4112
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(StorageGatewayServiceException_1.StorageGatewayServiceException);
|
|
4113
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4114
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4115
|
-
const contents = {
|
|
4116
|
-
protocol,
|
|
4117
|
-
hostname,
|
|
4118
|
-
port,
|
|
4119
|
-
method: "POST",
|
|
4120
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4121
|
-
headers,
|
|
4122
|
-
};
|
|
4123
|
-
if (resolvedHostname !== undefined) {
|
|
4124
|
-
contents.hostname = resolvedHostname;
|
|
4125
|
-
}
|
|
4126
|
-
if (body !== undefined) {
|
|
4127
|
-
contents.body = body;
|
|
4128
|
-
}
|
|
4129
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
4130
|
-
};
|
|
4131
|
-
function sharedHeaders(operation) {
|
|
4132
|
-
return {
|
|
4133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
4134
|
-
"x-amz-target": `StorageGateway_20130630.${operation}`,
|
|
4135
|
-
};
|
|
4136
|
-
}
|
|
4137
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4138
|
-
if (encoded.length) {
|
|
4139
|
-
return JSON.parse(encoded);
|
|
4140
|
-
}
|
|
4141
|
-
return {};
|
|
4142
|
-
});
|
|
4143
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4144
|
-
const value = await parseBody(errorBody, context);
|
|
4145
|
-
value.message = value.message ?? value.Message;
|
|
4146
|
-
return value;
|
|
4147
|
-
};
|
|
4148
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4149
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4150
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4151
|
-
let cleanValue = rawValue;
|
|
4152
|
-
if (typeof cleanValue === "number") {
|
|
4153
|
-
cleanValue = cleanValue.toString();
|
|
4154
|
-
}
|
|
4155
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4156
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4157
|
-
}
|
|
4158
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4159
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4160
|
-
}
|
|
4161
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4162
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4163
|
-
}
|
|
4164
|
-
return cleanValue;
|
|
4165
|
-
};
|
|
4166
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4167
|
-
if (headerKey !== undefined) {
|
|
4168
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4169
|
-
}
|
|
4170
|
-
if (data.code !== undefined) {
|
|
4171
|
-
return sanitizeErrorCode(data.code);
|
|
4172
|
-
}
|
|
4173
|
-
if (data["__type"] !== undefined) {
|
|
4174
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4175
|
-
}
|
|
4176
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|