@aws-sdk/client-storage-gateway 3.503.1 → 3.507.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/index.js +126 -2087
- package/dist-es/protocols/Aws_json1_1.js +109 -2070
- package/package.json +3 -3
|
@@ -544,7 +544,7 @@ export const se_UpdateVTLDeviceTypeCommand = async (input, context) => {
|
|
|
544
544
|
};
|
|
545
545
|
export const de_ActivateGatewayCommand = async (output, context) => {
|
|
546
546
|
if (output.statusCode >= 300) {
|
|
547
|
-
return
|
|
547
|
+
return de_CommandError(output, context);
|
|
548
548
|
}
|
|
549
549
|
const data = await parseBody(output.body, context);
|
|
550
550
|
let contents = {};
|
|
@@ -555,31 +555,9 @@ export const de_ActivateGatewayCommand = async (output, context) => {
|
|
|
555
555
|
};
|
|
556
556
|
return response;
|
|
557
557
|
};
|
|
558
|
-
const de_ActivateGatewayCommandError = async (output, context) => {
|
|
559
|
-
const parsedOutput = {
|
|
560
|
-
...output,
|
|
561
|
-
body: await parseErrorBody(output.body, context),
|
|
562
|
-
};
|
|
563
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
-
switch (errorCode) {
|
|
565
|
-
case "InternalServerError":
|
|
566
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
567
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
568
|
-
case "InvalidGatewayRequestException":
|
|
569
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
570
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
571
|
-
default:
|
|
572
|
-
const parsedBody = parsedOutput.body;
|
|
573
|
-
return throwDefaultError({
|
|
574
|
-
output,
|
|
575
|
-
parsedBody,
|
|
576
|
-
errorCode,
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
558
|
export const de_AddCacheCommand = async (output, context) => {
|
|
581
559
|
if (output.statusCode >= 300) {
|
|
582
|
-
return
|
|
560
|
+
return de_CommandError(output, context);
|
|
583
561
|
}
|
|
584
562
|
const data = await parseBody(output.body, context);
|
|
585
563
|
let contents = {};
|
|
@@ -590,31 +568,9 @@ export const de_AddCacheCommand = async (output, context) => {
|
|
|
590
568
|
};
|
|
591
569
|
return response;
|
|
592
570
|
};
|
|
593
|
-
const de_AddCacheCommandError = async (output, context) => {
|
|
594
|
-
const parsedOutput = {
|
|
595
|
-
...output,
|
|
596
|
-
body: await parseErrorBody(output.body, context),
|
|
597
|
-
};
|
|
598
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
599
|
-
switch (errorCode) {
|
|
600
|
-
case "InternalServerError":
|
|
601
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
602
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
603
|
-
case "InvalidGatewayRequestException":
|
|
604
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
605
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
606
|
-
default:
|
|
607
|
-
const parsedBody = parsedOutput.body;
|
|
608
|
-
return throwDefaultError({
|
|
609
|
-
output,
|
|
610
|
-
parsedBody,
|
|
611
|
-
errorCode,
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
};
|
|
615
571
|
export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
616
572
|
if (output.statusCode >= 300) {
|
|
617
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
618
574
|
}
|
|
619
575
|
const data = await parseBody(output.body, context);
|
|
620
576
|
let contents = {};
|
|
@@ -625,31 +581,9 @@ export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
|
625
581
|
};
|
|
626
582
|
return response;
|
|
627
583
|
};
|
|
628
|
-
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
629
|
-
const parsedOutput = {
|
|
630
|
-
...output,
|
|
631
|
-
body: await parseErrorBody(output.body, context),
|
|
632
|
-
};
|
|
633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
634
|
-
switch (errorCode) {
|
|
635
|
-
case "InternalServerError":
|
|
636
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
637
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
638
|
-
case "InvalidGatewayRequestException":
|
|
639
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
640
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
641
|
-
default:
|
|
642
|
-
const parsedBody = parsedOutput.body;
|
|
643
|
-
return throwDefaultError({
|
|
644
|
-
output,
|
|
645
|
-
parsedBody,
|
|
646
|
-
errorCode,
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
};
|
|
650
584
|
export const de_AddUploadBufferCommand = async (output, context) => {
|
|
651
585
|
if (output.statusCode >= 300) {
|
|
652
|
-
return
|
|
586
|
+
return de_CommandError(output, context);
|
|
653
587
|
}
|
|
654
588
|
const data = await parseBody(output.body, context);
|
|
655
589
|
let contents = {};
|
|
@@ -660,31 +594,9 @@ export const de_AddUploadBufferCommand = async (output, context) => {
|
|
|
660
594
|
};
|
|
661
595
|
return response;
|
|
662
596
|
};
|
|
663
|
-
const de_AddUploadBufferCommandError = async (output, context) => {
|
|
664
|
-
const parsedOutput = {
|
|
665
|
-
...output,
|
|
666
|
-
body: await parseErrorBody(output.body, context),
|
|
667
|
-
};
|
|
668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
669
|
-
switch (errorCode) {
|
|
670
|
-
case "InternalServerError":
|
|
671
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
672
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
673
|
-
case "InvalidGatewayRequestException":
|
|
674
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
675
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
676
|
-
default:
|
|
677
|
-
const parsedBody = parsedOutput.body;
|
|
678
|
-
return throwDefaultError({
|
|
679
|
-
output,
|
|
680
|
-
parsedBody,
|
|
681
|
-
errorCode,
|
|
682
|
-
});
|
|
683
|
-
}
|
|
684
|
-
};
|
|
685
597
|
export const de_AddWorkingStorageCommand = async (output, context) => {
|
|
686
598
|
if (output.statusCode >= 300) {
|
|
687
|
-
return
|
|
599
|
+
return de_CommandError(output, context);
|
|
688
600
|
}
|
|
689
601
|
const data = await parseBody(output.body, context);
|
|
690
602
|
let contents = {};
|
|
@@ -695,31 +607,9 @@ export const de_AddWorkingStorageCommand = async (output, context) => {
|
|
|
695
607
|
};
|
|
696
608
|
return response;
|
|
697
609
|
};
|
|
698
|
-
const de_AddWorkingStorageCommandError = async (output, context) => {
|
|
699
|
-
const parsedOutput = {
|
|
700
|
-
...output,
|
|
701
|
-
body: await parseErrorBody(output.body, context),
|
|
702
|
-
};
|
|
703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
704
|
-
switch (errorCode) {
|
|
705
|
-
case "InternalServerError":
|
|
706
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
707
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
708
|
-
case "InvalidGatewayRequestException":
|
|
709
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
710
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
711
|
-
default:
|
|
712
|
-
const parsedBody = parsedOutput.body;
|
|
713
|
-
return throwDefaultError({
|
|
714
|
-
output,
|
|
715
|
-
parsedBody,
|
|
716
|
-
errorCode,
|
|
717
|
-
});
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
610
|
export const de_AssignTapePoolCommand = async (output, context) => {
|
|
721
611
|
if (output.statusCode >= 300) {
|
|
722
|
-
return
|
|
612
|
+
return de_CommandError(output, context);
|
|
723
613
|
}
|
|
724
614
|
const data = await parseBody(output.body, context);
|
|
725
615
|
let contents = {};
|
|
@@ -730,31 +620,9 @@ export const de_AssignTapePoolCommand = async (output, context) => {
|
|
|
730
620
|
};
|
|
731
621
|
return response;
|
|
732
622
|
};
|
|
733
|
-
const de_AssignTapePoolCommandError = async (output, context) => {
|
|
734
|
-
const parsedOutput = {
|
|
735
|
-
...output,
|
|
736
|
-
body: await parseErrorBody(output.body, context),
|
|
737
|
-
};
|
|
738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
|
-
switch (errorCode) {
|
|
740
|
-
case "InternalServerError":
|
|
741
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
742
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
743
|
-
case "InvalidGatewayRequestException":
|
|
744
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
745
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
746
|
-
default:
|
|
747
|
-
const parsedBody = parsedOutput.body;
|
|
748
|
-
return throwDefaultError({
|
|
749
|
-
output,
|
|
750
|
-
parsedBody,
|
|
751
|
-
errorCode,
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
623
|
export const de_AssociateFileSystemCommand = async (output, context) => {
|
|
756
624
|
if (output.statusCode >= 300) {
|
|
757
|
-
return
|
|
625
|
+
return de_CommandError(output, context);
|
|
758
626
|
}
|
|
759
627
|
const data = await parseBody(output.body, context);
|
|
760
628
|
let contents = {};
|
|
@@ -765,31 +633,9 @@ export const de_AssociateFileSystemCommand = async (output, context) => {
|
|
|
765
633
|
};
|
|
766
634
|
return response;
|
|
767
635
|
};
|
|
768
|
-
const de_AssociateFileSystemCommandError = async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseErrorBody(output.body, context),
|
|
772
|
-
};
|
|
773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "InternalServerError":
|
|
776
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
777
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
778
|
-
case "InvalidGatewayRequestException":
|
|
779
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
780
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody,
|
|
786
|
-
errorCode,
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
636
|
export const de_AttachVolumeCommand = async (output, context) => {
|
|
791
637
|
if (output.statusCode >= 300) {
|
|
792
|
-
return
|
|
638
|
+
return de_CommandError(output, context);
|
|
793
639
|
}
|
|
794
640
|
const data = await parseBody(output.body, context);
|
|
795
641
|
let contents = {};
|
|
@@ -800,31 +646,9 @@ export const de_AttachVolumeCommand = async (output, context) => {
|
|
|
800
646
|
};
|
|
801
647
|
return response;
|
|
802
648
|
};
|
|
803
|
-
const de_AttachVolumeCommandError = async (output, context) => {
|
|
804
|
-
const parsedOutput = {
|
|
805
|
-
...output,
|
|
806
|
-
body: await parseErrorBody(output.body, context),
|
|
807
|
-
};
|
|
808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
|
-
switch (errorCode) {
|
|
810
|
-
case "InternalServerError":
|
|
811
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
812
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
813
|
-
case "InvalidGatewayRequestException":
|
|
814
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
815
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
816
|
-
default:
|
|
817
|
-
const parsedBody = parsedOutput.body;
|
|
818
|
-
return throwDefaultError({
|
|
819
|
-
output,
|
|
820
|
-
parsedBody,
|
|
821
|
-
errorCode,
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
};
|
|
825
649
|
export const de_CancelArchivalCommand = async (output, context) => {
|
|
826
650
|
if (output.statusCode >= 300) {
|
|
827
|
-
return
|
|
651
|
+
return de_CommandError(output, context);
|
|
828
652
|
}
|
|
829
653
|
const data = await parseBody(output.body, context);
|
|
830
654
|
let contents = {};
|
|
@@ -835,31 +659,9 @@ export const de_CancelArchivalCommand = async (output, context) => {
|
|
|
835
659
|
};
|
|
836
660
|
return response;
|
|
837
661
|
};
|
|
838
|
-
const de_CancelArchivalCommandError = async (output, context) => {
|
|
839
|
-
const parsedOutput = {
|
|
840
|
-
...output,
|
|
841
|
-
body: await parseErrorBody(output.body, context),
|
|
842
|
-
};
|
|
843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
|
-
switch (errorCode) {
|
|
845
|
-
case "InternalServerError":
|
|
846
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
847
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
848
|
-
case "InvalidGatewayRequestException":
|
|
849
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
850
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
851
|
-
default:
|
|
852
|
-
const parsedBody = parsedOutput.body;
|
|
853
|
-
return throwDefaultError({
|
|
854
|
-
output,
|
|
855
|
-
parsedBody,
|
|
856
|
-
errorCode,
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
};
|
|
860
662
|
export const de_CancelRetrievalCommand = async (output, context) => {
|
|
861
663
|
if (output.statusCode >= 300) {
|
|
862
|
-
return
|
|
664
|
+
return de_CommandError(output, context);
|
|
863
665
|
}
|
|
864
666
|
const data = await parseBody(output.body, context);
|
|
865
667
|
let contents = {};
|
|
@@ -870,31 +672,9 @@ export const de_CancelRetrievalCommand = async (output, context) => {
|
|
|
870
672
|
};
|
|
871
673
|
return response;
|
|
872
674
|
};
|
|
873
|
-
const de_CancelRetrievalCommandError = async (output, context) => {
|
|
874
|
-
const parsedOutput = {
|
|
875
|
-
...output,
|
|
876
|
-
body: await parseErrorBody(output.body, context),
|
|
877
|
-
};
|
|
878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
|
-
switch (errorCode) {
|
|
880
|
-
case "InternalServerError":
|
|
881
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
882
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
883
|
-
case "InvalidGatewayRequestException":
|
|
884
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
885
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
886
|
-
default:
|
|
887
|
-
const parsedBody = parsedOutput.body;
|
|
888
|
-
return throwDefaultError({
|
|
889
|
-
output,
|
|
890
|
-
parsedBody,
|
|
891
|
-
errorCode,
|
|
892
|
-
});
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
675
|
export const de_CreateCachediSCSIVolumeCommand = async (output, context) => {
|
|
896
676
|
if (output.statusCode >= 300) {
|
|
897
|
-
return
|
|
677
|
+
return de_CommandError(output, context);
|
|
898
678
|
}
|
|
899
679
|
const data = await parseBody(output.body, context);
|
|
900
680
|
let contents = {};
|
|
@@ -905,31 +685,9 @@ export const de_CreateCachediSCSIVolumeCommand = async (output, context) => {
|
|
|
905
685
|
};
|
|
906
686
|
return response;
|
|
907
687
|
};
|
|
908
|
-
const de_CreateCachediSCSIVolumeCommandError = async (output, context) => {
|
|
909
|
-
const parsedOutput = {
|
|
910
|
-
...output,
|
|
911
|
-
body: await parseErrorBody(output.body, context),
|
|
912
|
-
};
|
|
913
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
|
-
switch (errorCode) {
|
|
915
|
-
case "InternalServerError":
|
|
916
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
917
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
918
|
-
case "InvalidGatewayRequestException":
|
|
919
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
920
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
921
|
-
default:
|
|
922
|
-
const parsedBody = parsedOutput.body;
|
|
923
|
-
return throwDefaultError({
|
|
924
|
-
output,
|
|
925
|
-
parsedBody,
|
|
926
|
-
errorCode,
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
};
|
|
930
688
|
export const de_CreateNFSFileShareCommand = async (output, context) => {
|
|
931
689
|
if (output.statusCode >= 300) {
|
|
932
|
-
return
|
|
690
|
+
return de_CommandError(output, context);
|
|
933
691
|
}
|
|
934
692
|
const data = await parseBody(output.body, context);
|
|
935
693
|
let contents = {};
|
|
@@ -940,31 +698,9 @@ export const de_CreateNFSFileShareCommand = async (output, context) => {
|
|
|
940
698
|
};
|
|
941
699
|
return response;
|
|
942
700
|
};
|
|
943
|
-
const de_CreateNFSFileShareCommandError = 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
701
|
export const de_CreateSMBFileShareCommand = async (output, context) => {
|
|
966
702
|
if (output.statusCode >= 300) {
|
|
967
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
968
704
|
}
|
|
969
705
|
const data = await parseBody(output.body, context);
|
|
970
706
|
let contents = {};
|
|
@@ -975,31 +711,9 @@ export const de_CreateSMBFileShareCommand = async (output, context) => {
|
|
|
975
711
|
};
|
|
976
712
|
return response;
|
|
977
713
|
};
|
|
978
|
-
const de_CreateSMBFileShareCommandError = async (output, context) => {
|
|
979
|
-
const parsedOutput = {
|
|
980
|
-
...output,
|
|
981
|
-
body: await parseErrorBody(output.body, context),
|
|
982
|
-
};
|
|
983
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
|
-
switch (errorCode) {
|
|
985
|
-
case "InternalServerError":
|
|
986
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
987
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
988
|
-
case "InvalidGatewayRequestException":
|
|
989
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
990
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
991
|
-
default:
|
|
992
|
-
const parsedBody = parsedOutput.body;
|
|
993
|
-
return throwDefaultError({
|
|
994
|
-
output,
|
|
995
|
-
parsedBody,
|
|
996
|
-
errorCode,
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
};
|
|
1000
714
|
export const de_CreateSnapshotCommand = async (output, context) => {
|
|
1001
715
|
if (output.statusCode >= 300) {
|
|
1002
|
-
return
|
|
716
|
+
return de_CommandError(output, context);
|
|
1003
717
|
}
|
|
1004
718
|
const data = await parseBody(output.body, context);
|
|
1005
719
|
let contents = {};
|
|
@@ -1010,34 +724,9 @@ export const de_CreateSnapshotCommand = async (output, context) => {
|
|
|
1010
724
|
};
|
|
1011
725
|
return response;
|
|
1012
726
|
};
|
|
1013
|
-
const de_CreateSnapshotCommandError = async (output, context) => {
|
|
1014
|
-
const parsedOutput = {
|
|
1015
|
-
...output,
|
|
1016
|
-
body: await parseErrorBody(output.body, context),
|
|
1017
|
-
};
|
|
1018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
|
-
switch (errorCode) {
|
|
1020
|
-
case "InternalServerError":
|
|
1021
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1022
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1023
|
-
case "InvalidGatewayRequestException":
|
|
1024
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1025
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1026
|
-
case "ServiceUnavailableError":
|
|
1027
|
-
case "com.amazonaws.storagegateway#ServiceUnavailableError":
|
|
1028
|
-
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
1029
|
-
default:
|
|
1030
|
-
const parsedBody = parsedOutput.body;
|
|
1031
|
-
return throwDefaultError({
|
|
1032
|
-
output,
|
|
1033
|
-
parsedBody,
|
|
1034
|
-
errorCode,
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
};
|
|
1038
727
|
export const de_CreateSnapshotFromVolumeRecoveryPointCommand = async (output, context) => {
|
|
1039
728
|
if (output.statusCode >= 300) {
|
|
1040
|
-
return
|
|
729
|
+
return de_CommandError(output, context);
|
|
1041
730
|
}
|
|
1042
731
|
const data = await parseBody(output.body, context);
|
|
1043
732
|
let contents = {};
|
|
@@ -1048,34 +737,9 @@ export const de_CreateSnapshotFromVolumeRecoveryPointCommand = async (output, co
|
|
|
1048
737
|
};
|
|
1049
738
|
return response;
|
|
1050
739
|
};
|
|
1051
|
-
const de_CreateSnapshotFromVolumeRecoveryPointCommandError = 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
|
-
case "ServiceUnavailableError":
|
|
1065
|
-
case "com.amazonaws.storagegateway#ServiceUnavailableError":
|
|
1066
|
-
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
1067
|
-
default:
|
|
1068
|
-
const parsedBody = parsedOutput.body;
|
|
1069
|
-
return throwDefaultError({
|
|
1070
|
-
output,
|
|
1071
|
-
parsedBody,
|
|
1072
|
-
errorCode,
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
};
|
|
1076
740
|
export const de_CreateStorediSCSIVolumeCommand = async (output, context) => {
|
|
1077
741
|
if (output.statusCode >= 300) {
|
|
1078
|
-
return
|
|
742
|
+
return de_CommandError(output, context);
|
|
1079
743
|
}
|
|
1080
744
|
const data = await parseBody(output.body, context);
|
|
1081
745
|
let contents = {};
|
|
@@ -1086,31 +750,9 @@ export const de_CreateStorediSCSIVolumeCommand = async (output, context) => {
|
|
|
1086
750
|
};
|
|
1087
751
|
return response;
|
|
1088
752
|
};
|
|
1089
|
-
const de_CreateStorediSCSIVolumeCommandError = async (output, context) => {
|
|
1090
|
-
const parsedOutput = {
|
|
1091
|
-
...output,
|
|
1092
|
-
body: await parseErrorBody(output.body, context),
|
|
1093
|
-
};
|
|
1094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
-
switch (errorCode) {
|
|
1096
|
-
case "InternalServerError":
|
|
1097
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1098
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1099
|
-
case "InvalidGatewayRequestException":
|
|
1100
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1101
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1102
|
-
default:
|
|
1103
|
-
const parsedBody = parsedOutput.body;
|
|
1104
|
-
return throwDefaultError({
|
|
1105
|
-
output,
|
|
1106
|
-
parsedBody,
|
|
1107
|
-
errorCode,
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
};
|
|
1111
753
|
export const de_CreateTapePoolCommand = async (output, context) => {
|
|
1112
754
|
if (output.statusCode >= 300) {
|
|
1113
|
-
return
|
|
755
|
+
return de_CommandError(output, context);
|
|
1114
756
|
}
|
|
1115
757
|
const data = await parseBody(output.body, context);
|
|
1116
758
|
let contents = {};
|
|
@@ -1121,31 +763,9 @@ export const de_CreateTapePoolCommand = async (output, context) => {
|
|
|
1121
763
|
};
|
|
1122
764
|
return response;
|
|
1123
765
|
};
|
|
1124
|
-
const de_CreateTapePoolCommandError = async (output, context) => {
|
|
1125
|
-
const parsedOutput = {
|
|
1126
|
-
...output,
|
|
1127
|
-
body: await parseErrorBody(output.body, context),
|
|
1128
|
-
};
|
|
1129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
|
-
switch (errorCode) {
|
|
1131
|
-
case "InternalServerError":
|
|
1132
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1133
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1134
|
-
case "InvalidGatewayRequestException":
|
|
1135
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1136
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1137
|
-
default:
|
|
1138
|
-
const parsedBody = parsedOutput.body;
|
|
1139
|
-
return throwDefaultError({
|
|
1140
|
-
output,
|
|
1141
|
-
parsedBody,
|
|
1142
|
-
errorCode,
|
|
1143
|
-
});
|
|
1144
|
-
}
|
|
1145
|
-
};
|
|
1146
766
|
export const de_CreateTapesCommand = async (output, context) => {
|
|
1147
767
|
if (output.statusCode >= 300) {
|
|
1148
|
-
return
|
|
768
|
+
return de_CommandError(output, context);
|
|
1149
769
|
}
|
|
1150
770
|
const data = await parseBody(output.body, context);
|
|
1151
771
|
let contents = {};
|
|
@@ -1156,31 +776,9 @@ export const de_CreateTapesCommand = async (output, context) => {
|
|
|
1156
776
|
};
|
|
1157
777
|
return response;
|
|
1158
778
|
};
|
|
1159
|
-
const de_CreateTapesCommandError = async (output, context) => {
|
|
1160
|
-
const parsedOutput = {
|
|
1161
|
-
...output,
|
|
1162
|
-
body: await parseErrorBody(output.body, context),
|
|
1163
|
-
};
|
|
1164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
|
-
switch (errorCode) {
|
|
1166
|
-
case "InternalServerError":
|
|
1167
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1168
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1169
|
-
case "InvalidGatewayRequestException":
|
|
1170
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1171
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1172
|
-
default:
|
|
1173
|
-
const parsedBody = parsedOutput.body;
|
|
1174
|
-
return throwDefaultError({
|
|
1175
|
-
output,
|
|
1176
|
-
parsedBody,
|
|
1177
|
-
errorCode,
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
};
|
|
1181
779
|
export const de_CreateTapeWithBarcodeCommand = async (output, context) => {
|
|
1182
780
|
if (output.statusCode >= 300) {
|
|
1183
|
-
return
|
|
781
|
+
return de_CommandError(output, context);
|
|
1184
782
|
}
|
|
1185
783
|
const data = await parseBody(output.body, context);
|
|
1186
784
|
let contents = {};
|
|
@@ -1191,31 +789,9 @@ export const de_CreateTapeWithBarcodeCommand = async (output, context) => {
|
|
|
1191
789
|
};
|
|
1192
790
|
return response;
|
|
1193
791
|
};
|
|
1194
|
-
const de_CreateTapeWithBarcodeCommandError = async (output, context) => {
|
|
1195
|
-
const parsedOutput = {
|
|
1196
|
-
...output,
|
|
1197
|
-
body: await parseErrorBody(output.body, context),
|
|
1198
|
-
};
|
|
1199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
|
-
switch (errorCode) {
|
|
1201
|
-
case "InternalServerError":
|
|
1202
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1203
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1204
|
-
case "InvalidGatewayRequestException":
|
|
1205
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1206
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1207
|
-
default:
|
|
1208
|
-
const parsedBody = parsedOutput.body;
|
|
1209
|
-
return throwDefaultError({
|
|
1210
|
-
output,
|
|
1211
|
-
parsedBody,
|
|
1212
|
-
errorCode,
|
|
1213
|
-
});
|
|
1214
|
-
}
|
|
1215
|
-
};
|
|
1216
792
|
export const de_DeleteAutomaticTapeCreationPolicyCommand = async (output, context) => {
|
|
1217
793
|
if (output.statusCode >= 300) {
|
|
1218
|
-
return
|
|
794
|
+
return de_CommandError(output, context);
|
|
1219
795
|
}
|
|
1220
796
|
const data = await parseBody(output.body, context);
|
|
1221
797
|
let contents = {};
|
|
@@ -1226,31 +802,9 @@ export const de_DeleteAutomaticTapeCreationPolicyCommand = async (output, contex
|
|
|
1226
802
|
};
|
|
1227
803
|
return response;
|
|
1228
804
|
};
|
|
1229
|
-
const de_DeleteAutomaticTapeCreationPolicyCommandError = async (output, context) => {
|
|
1230
|
-
const parsedOutput = {
|
|
1231
|
-
...output,
|
|
1232
|
-
body: await parseErrorBody(output.body, context),
|
|
1233
|
-
};
|
|
1234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1235
|
-
switch (errorCode) {
|
|
1236
|
-
case "InternalServerError":
|
|
1237
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1238
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1239
|
-
case "InvalidGatewayRequestException":
|
|
1240
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1241
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1242
|
-
default:
|
|
1243
|
-
const parsedBody = parsedOutput.body;
|
|
1244
|
-
return throwDefaultError({
|
|
1245
|
-
output,
|
|
1246
|
-
parsedBody,
|
|
1247
|
-
errorCode,
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
};
|
|
1251
805
|
export const de_DeleteBandwidthRateLimitCommand = async (output, context) => {
|
|
1252
806
|
if (output.statusCode >= 300) {
|
|
1253
|
-
return
|
|
807
|
+
return de_CommandError(output, context);
|
|
1254
808
|
}
|
|
1255
809
|
const data = await parseBody(output.body, context);
|
|
1256
810
|
let contents = {};
|
|
@@ -1261,31 +815,9 @@ export const de_DeleteBandwidthRateLimitCommand = async (output, context) => {
|
|
|
1261
815
|
};
|
|
1262
816
|
return response;
|
|
1263
817
|
};
|
|
1264
|
-
const de_DeleteBandwidthRateLimitCommandError = async (output, context) => {
|
|
1265
|
-
const parsedOutput = {
|
|
1266
|
-
...output,
|
|
1267
|
-
body: await parseErrorBody(output.body, context),
|
|
1268
|
-
};
|
|
1269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
|
-
switch (errorCode) {
|
|
1271
|
-
case "InternalServerError":
|
|
1272
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1273
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1274
|
-
case "InvalidGatewayRequestException":
|
|
1275
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1276
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1277
|
-
default:
|
|
1278
|
-
const parsedBody = parsedOutput.body;
|
|
1279
|
-
return throwDefaultError({
|
|
1280
|
-
output,
|
|
1281
|
-
parsedBody,
|
|
1282
|
-
errorCode,
|
|
1283
|
-
});
|
|
1284
|
-
}
|
|
1285
|
-
};
|
|
1286
818
|
export const de_DeleteChapCredentialsCommand = async (output, context) => {
|
|
1287
819
|
if (output.statusCode >= 300) {
|
|
1288
|
-
return
|
|
820
|
+
return de_CommandError(output, context);
|
|
1289
821
|
}
|
|
1290
822
|
const data = await parseBody(output.body, context);
|
|
1291
823
|
let contents = {};
|
|
@@ -1296,31 +828,9 @@ export const de_DeleteChapCredentialsCommand = async (output, context) => {
|
|
|
1296
828
|
};
|
|
1297
829
|
return response;
|
|
1298
830
|
};
|
|
1299
|
-
const de_DeleteChapCredentialsCommandError = async (output, context) => {
|
|
1300
|
-
const parsedOutput = {
|
|
1301
|
-
...output,
|
|
1302
|
-
body: await parseErrorBody(output.body, context),
|
|
1303
|
-
};
|
|
1304
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
|
-
switch (errorCode) {
|
|
1306
|
-
case "InternalServerError":
|
|
1307
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1308
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1309
|
-
case "InvalidGatewayRequestException":
|
|
1310
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1311
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1312
|
-
default:
|
|
1313
|
-
const parsedBody = parsedOutput.body;
|
|
1314
|
-
return throwDefaultError({
|
|
1315
|
-
output,
|
|
1316
|
-
parsedBody,
|
|
1317
|
-
errorCode,
|
|
1318
|
-
});
|
|
1319
|
-
}
|
|
1320
|
-
};
|
|
1321
831
|
export const de_DeleteFileShareCommand = async (output, context) => {
|
|
1322
832
|
if (output.statusCode >= 300) {
|
|
1323
|
-
return
|
|
833
|
+
return de_CommandError(output, context);
|
|
1324
834
|
}
|
|
1325
835
|
const data = await parseBody(output.body, context);
|
|
1326
836
|
let contents = {};
|
|
@@ -1331,31 +841,9 @@ export const de_DeleteFileShareCommand = async (output, context) => {
|
|
|
1331
841
|
};
|
|
1332
842
|
return response;
|
|
1333
843
|
};
|
|
1334
|
-
const de_DeleteFileShareCommandError = async (output, context) => {
|
|
1335
|
-
const parsedOutput = {
|
|
1336
|
-
...output,
|
|
1337
|
-
body: await parseErrorBody(output.body, context),
|
|
1338
|
-
};
|
|
1339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
|
-
switch (errorCode) {
|
|
1341
|
-
case "InternalServerError":
|
|
1342
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1343
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1344
|
-
case "InvalidGatewayRequestException":
|
|
1345
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1346
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1347
|
-
default:
|
|
1348
|
-
const parsedBody = parsedOutput.body;
|
|
1349
|
-
return throwDefaultError({
|
|
1350
|
-
output,
|
|
1351
|
-
parsedBody,
|
|
1352
|
-
errorCode,
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
};
|
|
1356
844
|
export const de_DeleteGatewayCommand = async (output, context) => {
|
|
1357
845
|
if (output.statusCode >= 300) {
|
|
1358
|
-
return
|
|
846
|
+
return de_CommandError(output, context);
|
|
1359
847
|
}
|
|
1360
848
|
const data = await parseBody(output.body, context);
|
|
1361
849
|
let contents = {};
|
|
@@ -1366,31 +854,9 @@ export const de_DeleteGatewayCommand = async (output, context) => {
|
|
|
1366
854
|
};
|
|
1367
855
|
return response;
|
|
1368
856
|
};
|
|
1369
|
-
const de_DeleteGatewayCommandError = async (output, context) => {
|
|
1370
|
-
const parsedOutput = {
|
|
1371
|
-
...output,
|
|
1372
|
-
body: await parseErrorBody(output.body, context),
|
|
1373
|
-
};
|
|
1374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
-
switch (errorCode) {
|
|
1376
|
-
case "InternalServerError":
|
|
1377
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1378
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1379
|
-
case "InvalidGatewayRequestException":
|
|
1380
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1381
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1382
|
-
default:
|
|
1383
|
-
const parsedBody = parsedOutput.body;
|
|
1384
|
-
return throwDefaultError({
|
|
1385
|
-
output,
|
|
1386
|
-
parsedBody,
|
|
1387
|
-
errorCode,
|
|
1388
|
-
});
|
|
1389
|
-
}
|
|
1390
|
-
};
|
|
1391
857
|
export const de_DeleteSnapshotScheduleCommand = async (output, context) => {
|
|
1392
858
|
if (output.statusCode >= 300) {
|
|
1393
|
-
return
|
|
859
|
+
return de_CommandError(output, context);
|
|
1394
860
|
}
|
|
1395
861
|
const data = await parseBody(output.body, context);
|
|
1396
862
|
let contents = {};
|
|
@@ -1401,31 +867,9 @@ export const de_DeleteSnapshotScheduleCommand = async (output, context) => {
|
|
|
1401
867
|
};
|
|
1402
868
|
return response;
|
|
1403
869
|
};
|
|
1404
|
-
const de_DeleteSnapshotScheduleCommandError = async (output, context) => {
|
|
1405
|
-
const parsedOutput = {
|
|
1406
|
-
...output,
|
|
1407
|
-
body: await parseErrorBody(output.body, context),
|
|
1408
|
-
};
|
|
1409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1410
|
-
switch (errorCode) {
|
|
1411
|
-
case "InternalServerError":
|
|
1412
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1413
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1414
|
-
case "InvalidGatewayRequestException":
|
|
1415
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1416
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1417
|
-
default:
|
|
1418
|
-
const parsedBody = parsedOutput.body;
|
|
1419
|
-
return throwDefaultError({
|
|
1420
|
-
output,
|
|
1421
|
-
parsedBody,
|
|
1422
|
-
errorCode,
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
};
|
|
1426
870
|
export const de_DeleteTapeCommand = async (output, context) => {
|
|
1427
871
|
if (output.statusCode >= 300) {
|
|
1428
|
-
return
|
|
872
|
+
return de_CommandError(output, context);
|
|
1429
873
|
}
|
|
1430
874
|
const data = await parseBody(output.body, context);
|
|
1431
875
|
let contents = {};
|
|
@@ -1436,31 +880,9 @@ export const de_DeleteTapeCommand = async (output, context) => {
|
|
|
1436
880
|
};
|
|
1437
881
|
return response;
|
|
1438
882
|
};
|
|
1439
|
-
const de_DeleteTapeCommandError = async (output, context) => {
|
|
1440
|
-
const parsedOutput = {
|
|
1441
|
-
...output,
|
|
1442
|
-
body: await parseErrorBody(output.body, context),
|
|
1443
|
-
};
|
|
1444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
|
-
switch (errorCode) {
|
|
1446
|
-
case "InternalServerError":
|
|
1447
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1448
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1449
|
-
case "InvalidGatewayRequestException":
|
|
1450
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1451
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1452
|
-
default:
|
|
1453
|
-
const parsedBody = parsedOutput.body;
|
|
1454
|
-
return throwDefaultError({
|
|
1455
|
-
output,
|
|
1456
|
-
parsedBody,
|
|
1457
|
-
errorCode,
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
};
|
|
1461
883
|
export const de_DeleteTapeArchiveCommand = async (output, context) => {
|
|
1462
884
|
if (output.statusCode >= 300) {
|
|
1463
|
-
return
|
|
885
|
+
return de_CommandError(output, context);
|
|
1464
886
|
}
|
|
1465
887
|
const data = await parseBody(output.body, context);
|
|
1466
888
|
let contents = {};
|
|
@@ -1471,31 +893,9 @@ export const de_DeleteTapeArchiveCommand = async (output, context) => {
|
|
|
1471
893
|
};
|
|
1472
894
|
return response;
|
|
1473
895
|
};
|
|
1474
|
-
const de_DeleteTapeArchiveCommandError = async (output, context) => {
|
|
1475
|
-
const parsedOutput = {
|
|
1476
|
-
...output,
|
|
1477
|
-
body: await parseErrorBody(output.body, context),
|
|
1478
|
-
};
|
|
1479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1480
|
-
switch (errorCode) {
|
|
1481
|
-
case "InternalServerError":
|
|
1482
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1483
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1484
|
-
case "InvalidGatewayRequestException":
|
|
1485
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1486
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1487
|
-
default:
|
|
1488
|
-
const parsedBody = parsedOutput.body;
|
|
1489
|
-
return throwDefaultError({
|
|
1490
|
-
output,
|
|
1491
|
-
parsedBody,
|
|
1492
|
-
errorCode,
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
};
|
|
1496
896
|
export const de_DeleteTapePoolCommand = async (output, context) => {
|
|
1497
897
|
if (output.statusCode >= 300) {
|
|
1498
|
-
return
|
|
898
|
+
return de_CommandError(output, context);
|
|
1499
899
|
}
|
|
1500
900
|
const data = await parseBody(output.body, context);
|
|
1501
901
|
let contents = {};
|
|
@@ -1506,31 +906,9 @@ export const de_DeleteTapePoolCommand = async (output, context) => {
|
|
|
1506
906
|
};
|
|
1507
907
|
return response;
|
|
1508
908
|
};
|
|
1509
|
-
const de_DeleteTapePoolCommandError = async (output, context) => {
|
|
1510
|
-
const parsedOutput = {
|
|
1511
|
-
...output,
|
|
1512
|
-
body: await parseErrorBody(output.body, context),
|
|
1513
|
-
};
|
|
1514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
|
-
switch (errorCode) {
|
|
1516
|
-
case "InternalServerError":
|
|
1517
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1518
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1519
|
-
case "InvalidGatewayRequestException":
|
|
1520
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1521
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1522
|
-
default:
|
|
1523
|
-
const parsedBody = parsedOutput.body;
|
|
1524
|
-
return throwDefaultError({
|
|
1525
|
-
output,
|
|
1526
|
-
parsedBody,
|
|
1527
|
-
errorCode,
|
|
1528
|
-
});
|
|
1529
|
-
}
|
|
1530
|
-
};
|
|
1531
909
|
export const de_DeleteVolumeCommand = async (output, context) => {
|
|
1532
910
|
if (output.statusCode >= 300) {
|
|
1533
|
-
return
|
|
911
|
+
return de_CommandError(output, context);
|
|
1534
912
|
}
|
|
1535
913
|
const data = await parseBody(output.body, context);
|
|
1536
914
|
let contents = {};
|
|
@@ -1541,31 +919,9 @@ export const de_DeleteVolumeCommand = async (output, context) => {
|
|
|
1541
919
|
};
|
|
1542
920
|
return response;
|
|
1543
921
|
};
|
|
1544
|
-
const de_DeleteVolumeCommandError = async (output, context) => {
|
|
1545
|
-
const parsedOutput = {
|
|
1546
|
-
...output,
|
|
1547
|
-
body: await parseErrorBody(output.body, context),
|
|
1548
|
-
};
|
|
1549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1550
|
-
switch (errorCode) {
|
|
1551
|
-
case "InternalServerError":
|
|
1552
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1553
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1554
|
-
case "InvalidGatewayRequestException":
|
|
1555
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1556
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1557
|
-
default:
|
|
1558
|
-
const parsedBody = parsedOutput.body;
|
|
1559
|
-
return throwDefaultError({
|
|
1560
|
-
output,
|
|
1561
|
-
parsedBody,
|
|
1562
|
-
errorCode,
|
|
1563
|
-
});
|
|
1564
|
-
}
|
|
1565
|
-
};
|
|
1566
922
|
export const de_DescribeAvailabilityMonitorTestCommand = async (output, context) => {
|
|
1567
923
|
if (output.statusCode >= 300) {
|
|
1568
|
-
return
|
|
924
|
+
return de_CommandError(output, context);
|
|
1569
925
|
}
|
|
1570
926
|
const data = await parseBody(output.body, context);
|
|
1571
927
|
let contents = {};
|
|
@@ -1576,31 +932,9 @@ export const de_DescribeAvailabilityMonitorTestCommand = async (output, context)
|
|
|
1576
932
|
};
|
|
1577
933
|
return response;
|
|
1578
934
|
};
|
|
1579
|
-
const de_DescribeAvailabilityMonitorTestCommandError = async (output, context) => {
|
|
1580
|
-
const parsedOutput = {
|
|
1581
|
-
...output,
|
|
1582
|
-
body: await parseErrorBody(output.body, context),
|
|
1583
|
-
};
|
|
1584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
-
switch (errorCode) {
|
|
1586
|
-
case "InternalServerError":
|
|
1587
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1588
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1589
|
-
case "InvalidGatewayRequestException":
|
|
1590
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1591
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1592
|
-
default:
|
|
1593
|
-
const parsedBody = parsedOutput.body;
|
|
1594
|
-
return throwDefaultError({
|
|
1595
|
-
output,
|
|
1596
|
-
parsedBody,
|
|
1597
|
-
errorCode,
|
|
1598
|
-
});
|
|
1599
|
-
}
|
|
1600
|
-
};
|
|
1601
935
|
export const de_DescribeBandwidthRateLimitCommand = async (output, context) => {
|
|
1602
936
|
if (output.statusCode >= 300) {
|
|
1603
|
-
return
|
|
937
|
+
return de_CommandError(output, context);
|
|
1604
938
|
}
|
|
1605
939
|
const data = await parseBody(output.body, context);
|
|
1606
940
|
let contents = {};
|
|
@@ -1611,31 +945,9 @@ export const de_DescribeBandwidthRateLimitCommand = async (output, context) => {
|
|
|
1611
945
|
};
|
|
1612
946
|
return response;
|
|
1613
947
|
};
|
|
1614
|
-
const de_DescribeBandwidthRateLimitCommandError = async (output, context) => {
|
|
1615
|
-
const parsedOutput = {
|
|
1616
|
-
...output,
|
|
1617
|
-
body: await parseErrorBody(output.body, context),
|
|
1618
|
-
};
|
|
1619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1620
|
-
switch (errorCode) {
|
|
1621
|
-
case "InternalServerError":
|
|
1622
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1623
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1624
|
-
case "InvalidGatewayRequestException":
|
|
1625
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1626
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1627
|
-
default:
|
|
1628
|
-
const parsedBody = parsedOutput.body;
|
|
1629
|
-
return throwDefaultError({
|
|
1630
|
-
output,
|
|
1631
|
-
parsedBody,
|
|
1632
|
-
errorCode,
|
|
1633
|
-
});
|
|
1634
|
-
}
|
|
1635
|
-
};
|
|
1636
948
|
export const de_DescribeBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
1637
949
|
if (output.statusCode >= 300) {
|
|
1638
|
-
return
|
|
950
|
+
return de_CommandError(output, context);
|
|
1639
951
|
}
|
|
1640
952
|
const data = await parseBody(output.body, context);
|
|
1641
953
|
let contents = {};
|
|
@@ -1646,31 +958,9 @@ export const de_DescribeBandwidthRateLimitScheduleCommand = async (output, conte
|
|
|
1646
958
|
};
|
|
1647
959
|
return response;
|
|
1648
960
|
};
|
|
1649
|
-
const de_DescribeBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
1650
|
-
const parsedOutput = {
|
|
1651
|
-
...output,
|
|
1652
|
-
body: await parseErrorBody(output.body, context),
|
|
1653
|
-
};
|
|
1654
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1655
|
-
switch (errorCode) {
|
|
1656
|
-
case "InternalServerError":
|
|
1657
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1658
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1659
|
-
case "InvalidGatewayRequestException":
|
|
1660
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1661
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1662
|
-
default:
|
|
1663
|
-
const parsedBody = parsedOutput.body;
|
|
1664
|
-
return throwDefaultError({
|
|
1665
|
-
output,
|
|
1666
|
-
parsedBody,
|
|
1667
|
-
errorCode,
|
|
1668
|
-
});
|
|
1669
|
-
}
|
|
1670
|
-
};
|
|
1671
961
|
export const de_DescribeCacheCommand = async (output, context) => {
|
|
1672
962
|
if (output.statusCode >= 300) {
|
|
1673
|
-
return
|
|
963
|
+
return de_CommandError(output, context);
|
|
1674
964
|
}
|
|
1675
965
|
const data = await parseBody(output.body, context);
|
|
1676
966
|
let contents = {};
|
|
@@ -1681,31 +971,9 @@ export const de_DescribeCacheCommand = async (output, context) => {
|
|
|
1681
971
|
};
|
|
1682
972
|
return response;
|
|
1683
973
|
};
|
|
1684
|
-
const de_DescribeCacheCommandError = async (output, context) => {
|
|
1685
|
-
const parsedOutput = {
|
|
1686
|
-
...output,
|
|
1687
|
-
body: await parseErrorBody(output.body, context),
|
|
1688
|
-
};
|
|
1689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
|
-
switch (errorCode) {
|
|
1691
|
-
case "InternalServerError":
|
|
1692
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1693
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1694
|
-
case "InvalidGatewayRequestException":
|
|
1695
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1696
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1697
|
-
default:
|
|
1698
|
-
const parsedBody = parsedOutput.body;
|
|
1699
|
-
return throwDefaultError({
|
|
1700
|
-
output,
|
|
1701
|
-
parsedBody,
|
|
1702
|
-
errorCode,
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
};
|
|
1706
974
|
export const de_DescribeCachediSCSIVolumesCommand = async (output, context) => {
|
|
1707
975
|
if (output.statusCode >= 300) {
|
|
1708
|
-
return
|
|
976
|
+
return de_CommandError(output, context);
|
|
1709
977
|
}
|
|
1710
978
|
const data = await parseBody(output.body, context);
|
|
1711
979
|
let contents = {};
|
|
@@ -1716,31 +984,9 @@ export const de_DescribeCachediSCSIVolumesCommand = async (output, context) => {
|
|
|
1716
984
|
};
|
|
1717
985
|
return response;
|
|
1718
986
|
};
|
|
1719
|
-
const de_DescribeCachediSCSIVolumesCommandError = async (output, context) => {
|
|
1720
|
-
const parsedOutput = {
|
|
1721
|
-
...output,
|
|
1722
|
-
body: await parseErrorBody(output.body, context),
|
|
1723
|
-
};
|
|
1724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1725
|
-
switch (errorCode) {
|
|
1726
|
-
case "InternalServerError":
|
|
1727
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1728
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1729
|
-
case "InvalidGatewayRequestException":
|
|
1730
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1731
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1732
|
-
default:
|
|
1733
|
-
const parsedBody = parsedOutput.body;
|
|
1734
|
-
return throwDefaultError({
|
|
1735
|
-
output,
|
|
1736
|
-
parsedBody,
|
|
1737
|
-
errorCode,
|
|
1738
|
-
});
|
|
1739
|
-
}
|
|
1740
|
-
};
|
|
1741
987
|
export const de_DescribeChapCredentialsCommand = async (output, context) => {
|
|
1742
988
|
if (output.statusCode >= 300) {
|
|
1743
|
-
return
|
|
989
|
+
return de_CommandError(output, context);
|
|
1744
990
|
}
|
|
1745
991
|
const data = await parseBody(output.body, context);
|
|
1746
992
|
let contents = {};
|
|
@@ -1751,31 +997,9 @@ export const de_DescribeChapCredentialsCommand = async (output, context) => {
|
|
|
1751
997
|
};
|
|
1752
998
|
return response;
|
|
1753
999
|
};
|
|
1754
|
-
const de_DescribeChapCredentialsCommandError = async (output, context) => {
|
|
1755
|
-
const parsedOutput = {
|
|
1756
|
-
...output,
|
|
1757
|
-
body: await parseErrorBody(output.body, context),
|
|
1758
|
-
};
|
|
1759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
|
-
switch (errorCode) {
|
|
1761
|
-
case "InternalServerError":
|
|
1762
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1763
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1764
|
-
case "InvalidGatewayRequestException":
|
|
1765
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1766
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1767
|
-
default:
|
|
1768
|
-
const parsedBody = parsedOutput.body;
|
|
1769
|
-
return throwDefaultError({
|
|
1770
|
-
output,
|
|
1771
|
-
parsedBody,
|
|
1772
|
-
errorCode,
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
};
|
|
1776
1000
|
export const de_DescribeFileSystemAssociationsCommand = async (output, context) => {
|
|
1777
1001
|
if (output.statusCode >= 300) {
|
|
1778
|
-
return
|
|
1002
|
+
return de_CommandError(output, context);
|
|
1779
1003
|
}
|
|
1780
1004
|
const data = await parseBody(output.body, context);
|
|
1781
1005
|
let contents = {};
|
|
@@ -1786,31 +1010,9 @@ export const de_DescribeFileSystemAssociationsCommand = async (output, context)
|
|
|
1786
1010
|
};
|
|
1787
1011
|
return response;
|
|
1788
1012
|
};
|
|
1789
|
-
const de_DescribeFileSystemAssociationsCommandError = async (output, context) => {
|
|
1790
|
-
const parsedOutput = {
|
|
1791
|
-
...output,
|
|
1792
|
-
body: await parseErrorBody(output.body, context),
|
|
1793
|
-
};
|
|
1794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
|
-
switch (errorCode) {
|
|
1796
|
-
case "InternalServerError":
|
|
1797
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1798
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1799
|
-
case "InvalidGatewayRequestException":
|
|
1800
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1801
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1802
|
-
default:
|
|
1803
|
-
const parsedBody = parsedOutput.body;
|
|
1804
|
-
return throwDefaultError({
|
|
1805
|
-
output,
|
|
1806
|
-
parsedBody,
|
|
1807
|
-
errorCode,
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
};
|
|
1811
1013
|
export const de_DescribeGatewayInformationCommand = async (output, context) => {
|
|
1812
1014
|
if (output.statusCode >= 300) {
|
|
1813
|
-
return
|
|
1015
|
+
return de_CommandError(output, context);
|
|
1814
1016
|
}
|
|
1815
1017
|
const data = await parseBody(output.body, context);
|
|
1816
1018
|
let contents = {};
|
|
@@ -1821,31 +1023,9 @@ export const de_DescribeGatewayInformationCommand = async (output, context) => {
|
|
|
1821
1023
|
};
|
|
1822
1024
|
return response;
|
|
1823
1025
|
};
|
|
1824
|
-
const de_DescribeGatewayInformationCommandError = async (output, context) => {
|
|
1825
|
-
const parsedOutput = {
|
|
1826
|
-
...output,
|
|
1827
|
-
body: await parseErrorBody(output.body, context),
|
|
1828
|
-
};
|
|
1829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1830
|
-
switch (errorCode) {
|
|
1831
|
-
case "InternalServerError":
|
|
1832
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1833
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1834
|
-
case "InvalidGatewayRequestException":
|
|
1835
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1836
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1837
|
-
default:
|
|
1838
|
-
const parsedBody = parsedOutput.body;
|
|
1839
|
-
return throwDefaultError({
|
|
1840
|
-
output,
|
|
1841
|
-
parsedBody,
|
|
1842
|
-
errorCode,
|
|
1843
|
-
});
|
|
1844
|
-
}
|
|
1845
|
-
};
|
|
1846
1026
|
export const de_DescribeMaintenanceStartTimeCommand = async (output, context) => {
|
|
1847
1027
|
if (output.statusCode >= 300) {
|
|
1848
|
-
return
|
|
1028
|
+
return de_CommandError(output, context);
|
|
1849
1029
|
}
|
|
1850
1030
|
const data = await parseBody(output.body, context);
|
|
1851
1031
|
let contents = {};
|
|
@@ -1856,31 +1036,9 @@ export const de_DescribeMaintenanceStartTimeCommand = async (output, context) =>
|
|
|
1856
1036
|
};
|
|
1857
1037
|
return response;
|
|
1858
1038
|
};
|
|
1859
|
-
const de_DescribeMaintenanceStartTimeCommandError = async (output, context) => {
|
|
1860
|
-
const parsedOutput = {
|
|
1861
|
-
...output,
|
|
1862
|
-
body: await parseErrorBody(output.body, context),
|
|
1863
|
-
};
|
|
1864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
-
switch (errorCode) {
|
|
1866
|
-
case "InternalServerError":
|
|
1867
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1868
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1869
|
-
case "InvalidGatewayRequestException":
|
|
1870
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1871
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1872
|
-
default:
|
|
1873
|
-
const parsedBody = parsedOutput.body;
|
|
1874
|
-
return throwDefaultError({
|
|
1875
|
-
output,
|
|
1876
|
-
parsedBody,
|
|
1877
|
-
errorCode,
|
|
1878
|
-
});
|
|
1879
|
-
}
|
|
1880
|
-
};
|
|
1881
1039
|
export const de_DescribeNFSFileSharesCommand = async (output, context) => {
|
|
1882
1040
|
if (output.statusCode >= 300) {
|
|
1883
|
-
return
|
|
1041
|
+
return de_CommandError(output, context);
|
|
1884
1042
|
}
|
|
1885
1043
|
const data = await parseBody(output.body, context);
|
|
1886
1044
|
let contents = {};
|
|
@@ -1891,31 +1049,9 @@ export const de_DescribeNFSFileSharesCommand = async (output, context) => {
|
|
|
1891
1049
|
};
|
|
1892
1050
|
return response;
|
|
1893
1051
|
};
|
|
1894
|
-
const de_DescribeNFSFileSharesCommandError = async (output, context) => {
|
|
1895
|
-
const parsedOutput = {
|
|
1896
|
-
...output,
|
|
1897
|
-
body: await parseErrorBody(output.body, context),
|
|
1898
|
-
};
|
|
1899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1900
|
-
switch (errorCode) {
|
|
1901
|
-
case "InternalServerError":
|
|
1902
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1903
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1904
|
-
case "InvalidGatewayRequestException":
|
|
1905
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1906
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1907
|
-
default:
|
|
1908
|
-
const parsedBody = parsedOutput.body;
|
|
1909
|
-
return throwDefaultError({
|
|
1910
|
-
output,
|
|
1911
|
-
parsedBody,
|
|
1912
|
-
errorCode,
|
|
1913
|
-
});
|
|
1914
|
-
}
|
|
1915
|
-
};
|
|
1916
1052
|
export const de_DescribeSMBFileSharesCommand = async (output, context) => {
|
|
1917
1053
|
if (output.statusCode >= 300) {
|
|
1918
|
-
return
|
|
1054
|
+
return de_CommandError(output, context);
|
|
1919
1055
|
}
|
|
1920
1056
|
const data = await parseBody(output.body, context);
|
|
1921
1057
|
let contents = {};
|
|
@@ -1926,31 +1062,9 @@ export const de_DescribeSMBFileSharesCommand = async (output, context) => {
|
|
|
1926
1062
|
};
|
|
1927
1063
|
return response;
|
|
1928
1064
|
};
|
|
1929
|
-
const de_DescribeSMBFileSharesCommandError = async (output, context) => {
|
|
1930
|
-
const parsedOutput = {
|
|
1931
|
-
...output,
|
|
1932
|
-
body: await parseErrorBody(output.body, context),
|
|
1933
|
-
};
|
|
1934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1935
|
-
switch (errorCode) {
|
|
1936
|
-
case "InternalServerError":
|
|
1937
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1938
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1939
|
-
case "InvalidGatewayRequestException":
|
|
1940
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1941
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1942
|
-
default:
|
|
1943
|
-
const parsedBody = parsedOutput.body;
|
|
1944
|
-
return throwDefaultError({
|
|
1945
|
-
output,
|
|
1946
|
-
parsedBody,
|
|
1947
|
-
errorCode,
|
|
1948
|
-
});
|
|
1949
|
-
}
|
|
1950
|
-
};
|
|
1951
1065
|
export const de_DescribeSMBSettingsCommand = async (output, context) => {
|
|
1952
1066
|
if (output.statusCode >= 300) {
|
|
1953
|
-
return
|
|
1067
|
+
return de_CommandError(output, context);
|
|
1954
1068
|
}
|
|
1955
1069
|
const data = await parseBody(output.body, context);
|
|
1956
1070
|
let contents = {};
|
|
@@ -1961,31 +1075,9 @@ export const de_DescribeSMBSettingsCommand = async (output, context) => {
|
|
|
1961
1075
|
};
|
|
1962
1076
|
return response;
|
|
1963
1077
|
};
|
|
1964
|
-
const de_DescribeSMBSettingsCommandError = async (output, context) => {
|
|
1965
|
-
const parsedOutput = {
|
|
1966
|
-
...output,
|
|
1967
|
-
body: await parseErrorBody(output.body, context),
|
|
1968
|
-
};
|
|
1969
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
|
-
switch (errorCode) {
|
|
1971
|
-
case "InternalServerError":
|
|
1972
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
1973
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1974
|
-
case "InvalidGatewayRequestException":
|
|
1975
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
1976
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1977
|
-
default:
|
|
1978
|
-
const parsedBody = parsedOutput.body;
|
|
1979
|
-
return throwDefaultError({
|
|
1980
|
-
output,
|
|
1981
|
-
parsedBody,
|
|
1982
|
-
errorCode,
|
|
1983
|
-
});
|
|
1984
|
-
}
|
|
1985
|
-
};
|
|
1986
1078
|
export const de_DescribeSnapshotScheduleCommand = async (output, context) => {
|
|
1987
1079
|
if (output.statusCode >= 300) {
|
|
1988
|
-
return
|
|
1080
|
+
return de_CommandError(output, context);
|
|
1989
1081
|
}
|
|
1990
1082
|
const data = await parseBody(output.body, context);
|
|
1991
1083
|
let contents = {};
|
|
@@ -1996,31 +1088,9 @@ export const de_DescribeSnapshotScheduleCommand = async (output, context) => {
|
|
|
1996
1088
|
};
|
|
1997
1089
|
return response;
|
|
1998
1090
|
};
|
|
1999
|
-
const de_DescribeSnapshotScheduleCommandError = async (output, context) => {
|
|
2000
|
-
const parsedOutput = {
|
|
2001
|
-
...output,
|
|
2002
|
-
body: await parseErrorBody(output.body, context),
|
|
2003
|
-
};
|
|
2004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
|
-
switch (errorCode) {
|
|
2006
|
-
case "InternalServerError":
|
|
2007
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2008
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2009
|
-
case "InvalidGatewayRequestException":
|
|
2010
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2011
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2012
|
-
default:
|
|
2013
|
-
const parsedBody = parsedOutput.body;
|
|
2014
|
-
return throwDefaultError({
|
|
2015
|
-
output,
|
|
2016
|
-
parsedBody,
|
|
2017
|
-
errorCode,
|
|
2018
|
-
});
|
|
2019
|
-
}
|
|
2020
|
-
};
|
|
2021
1091
|
export const de_DescribeStorediSCSIVolumesCommand = async (output, context) => {
|
|
2022
1092
|
if (output.statusCode >= 300) {
|
|
2023
|
-
return
|
|
1093
|
+
return de_CommandError(output, context);
|
|
2024
1094
|
}
|
|
2025
1095
|
const data = await parseBody(output.body, context);
|
|
2026
1096
|
let contents = {};
|
|
@@ -2031,31 +1101,9 @@ export const de_DescribeStorediSCSIVolumesCommand = async (output, context) => {
|
|
|
2031
1101
|
};
|
|
2032
1102
|
return response;
|
|
2033
1103
|
};
|
|
2034
|
-
const de_DescribeStorediSCSIVolumesCommandError = async (output, context) => {
|
|
2035
|
-
const parsedOutput = {
|
|
2036
|
-
...output,
|
|
2037
|
-
body: await parseErrorBody(output.body, context),
|
|
2038
|
-
};
|
|
2039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2040
|
-
switch (errorCode) {
|
|
2041
|
-
case "InternalServerError":
|
|
2042
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2043
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2044
|
-
case "InvalidGatewayRequestException":
|
|
2045
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2046
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2047
|
-
default:
|
|
2048
|
-
const parsedBody = parsedOutput.body;
|
|
2049
|
-
return throwDefaultError({
|
|
2050
|
-
output,
|
|
2051
|
-
parsedBody,
|
|
2052
|
-
errorCode,
|
|
2053
|
-
});
|
|
2054
|
-
}
|
|
2055
|
-
};
|
|
2056
1104
|
export const de_DescribeTapeArchivesCommand = async (output, context) => {
|
|
2057
1105
|
if (output.statusCode >= 300) {
|
|
2058
|
-
return
|
|
1106
|
+
return de_CommandError(output, context);
|
|
2059
1107
|
}
|
|
2060
1108
|
const data = await parseBody(output.body, context);
|
|
2061
1109
|
let contents = {};
|
|
@@ -2066,31 +1114,9 @@ export const de_DescribeTapeArchivesCommand = async (output, context) => {
|
|
|
2066
1114
|
};
|
|
2067
1115
|
return response;
|
|
2068
1116
|
};
|
|
2069
|
-
const de_DescribeTapeArchivesCommandError = async (output, context) => {
|
|
2070
|
-
const parsedOutput = {
|
|
2071
|
-
...output,
|
|
2072
|
-
body: await parseErrorBody(output.body, context),
|
|
2073
|
-
};
|
|
2074
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2075
|
-
switch (errorCode) {
|
|
2076
|
-
case "InternalServerError":
|
|
2077
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2078
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2079
|
-
case "InvalidGatewayRequestException":
|
|
2080
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2081
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2082
|
-
default:
|
|
2083
|
-
const parsedBody = parsedOutput.body;
|
|
2084
|
-
return throwDefaultError({
|
|
2085
|
-
output,
|
|
2086
|
-
parsedBody,
|
|
2087
|
-
errorCode,
|
|
2088
|
-
});
|
|
2089
|
-
}
|
|
2090
|
-
};
|
|
2091
1117
|
export const de_DescribeTapeRecoveryPointsCommand = async (output, context) => {
|
|
2092
1118
|
if (output.statusCode >= 300) {
|
|
2093
|
-
return
|
|
1119
|
+
return de_CommandError(output, context);
|
|
2094
1120
|
}
|
|
2095
1121
|
const data = await parseBody(output.body, context);
|
|
2096
1122
|
let contents = {};
|
|
@@ -2101,31 +1127,9 @@ export const de_DescribeTapeRecoveryPointsCommand = async (output, context) => {
|
|
|
2101
1127
|
};
|
|
2102
1128
|
return response;
|
|
2103
1129
|
};
|
|
2104
|
-
const de_DescribeTapeRecoveryPointsCommandError = async (output, context) => {
|
|
2105
|
-
const parsedOutput = {
|
|
2106
|
-
...output,
|
|
2107
|
-
body: await parseErrorBody(output.body, context),
|
|
2108
|
-
};
|
|
2109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
|
-
switch (errorCode) {
|
|
2111
|
-
case "InternalServerError":
|
|
2112
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2113
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2114
|
-
case "InvalidGatewayRequestException":
|
|
2115
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2116
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2117
|
-
default:
|
|
2118
|
-
const parsedBody = parsedOutput.body;
|
|
2119
|
-
return throwDefaultError({
|
|
2120
|
-
output,
|
|
2121
|
-
parsedBody,
|
|
2122
|
-
errorCode,
|
|
2123
|
-
});
|
|
2124
|
-
}
|
|
2125
|
-
};
|
|
2126
1130
|
export const de_DescribeTapesCommand = async (output, context) => {
|
|
2127
1131
|
if (output.statusCode >= 300) {
|
|
2128
|
-
return
|
|
1132
|
+
return de_CommandError(output, context);
|
|
2129
1133
|
}
|
|
2130
1134
|
const data = await parseBody(output.body, context);
|
|
2131
1135
|
let contents = {};
|
|
@@ -2136,31 +1140,9 @@ export const de_DescribeTapesCommand = async (output, context) => {
|
|
|
2136
1140
|
};
|
|
2137
1141
|
return response;
|
|
2138
1142
|
};
|
|
2139
|
-
const de_DescribeTapesCommandError = async (output, context) => {
|
|
2140
|
-
const parsedOutput = {
|
|
2141
|
-
...output,
|
|
2142
|
-
body: await parseErrorBody(output.body, context),
|
|
2143
|
-
};
|
|
2144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2145
|
-
switch (errorCode) {
|
|
2146
|
-
case "InternalServerError":
|
|
2147
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2148
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2149
|
-
case "InvalidGatewayRequestException":
|
|
2150
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2151
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2152
|
-
default:
|
|
2153
|
-
const parsedBody = parsedOutput.body;
|
|
2154
|
-
return throwDefaultError({
|
|
2155
|
-
output,
|
|
2156
|
-
parsedBody,
|
|
2157
|
-
errorCode,
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
};
|
|
2161
1143
|
export const de_DescribeUploadBufferCommand = async (output, context) => {
|
|
2162
1144
|
if (output.statusCode >= 300) {
|
|
2163
|
-
return
|
|
1145
|
+
return de_CommandError(output, context);
|
|
2164
1146
|
}
|
|
2165
1147
|
const data = await parseBody(output.body, context);
|
|
2166
1148
|
let contents = {};
|
|
@@ -2171,31 +1153,9 @@ export const de_DescribeUploadBufferCommand = async (output, context) => {
|
|
|
2171
1153
|
};
|
|
2172
1154
|
return response;
|
|
2173
1155
|
};
|
|
2174
|
-
const de_DescribeUploadBufferCommandError = async (output, context) => {
|
|
2175
|
-
const parsedOutput = {
|
|
2176
|
-
...output,
|
|
2177
|
-
body: await parseErrorBody(output.body, context),
|
|
2178
|
-
};
|
|
2179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
|
-
switch (errorCode) {
|
|
2181
|
-
case "InternalServerError":
|
|
2182
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2183
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2184
|
-
case "InvalidGatewayRequestException":
|
|
2185
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2186
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2187
|
-
default:
|
|
2188
|
-
const parsedBody = parsedOutput.body;
|
|
2189
|
-
return throwDefaultError({
|
|
2190
|
-
output,
|
|
2191
|
-
parsedBody,
|
|
2192
|
-
errorCode,
|
|
2193
|
-
});
|
|
2194
|
-
}
|
|
2195
|
-
};
|
|
2196
1156
|
export const de_DescribeVTLDevicesCommand = async (output, context) => {
|
|
2197
1157
|
if (output.statusCode >= 300) {
|
|
2198
|
-
return
|
|
1158
|
+
return de_CommandError(output, context);
|
|
2199
1159
|
}
|
|
2200
1160
|
const data = await parseBody(output.body, context);
|
|
2201
1161
|
let contents = {};
|
|
@@ -2206,31 +1166,22 @@ export const de_DescribeVTLDevicesCommand = async (output, context) => {
|
|
|
2206
1166
|
};
|
|
2207
1167
|
return response;
|
|
2208
1168
|
};
|
|
2209
|
-
const
|
|
2210
|
-
|
|
2211
|
-
|
|
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
|
-
});
|
|
1169
|
+
export const de_DescribeWorkingStorageCommand = async (output, context) => {
|
|
1170
|
+
if (output.statusCode >= 300) {
|
|
1171
|
+
return de_CommandError(output, context);
|
|
2229
1172
|
}
|
|
1173
|
+
const data = await parseBody(output.body, context);
|
|
1174
|
+
let contents = {};
|
|
1175
|
+
contents = _json(data);
|
|
1176
|
+
const response = {
|
|
1177
|
+
$metadata: deserializeMetadata(output),
|
|
1178
|
+
...contents,
|
|
1179
|
+
};
|
|
1180
|
+
return response;
|
|
2230
1181
|
};
|
|
2231
|
-
export const
|
|
1182
|
+
export const de_DetachVolumeCommand = async (output, context) => {
|
|
2232
1183
|
if (output.statusCode >= 300) {
|
|
2233
|
-
return
|
|
1184
|
+
return de_CommandError(output, context);
|
|
2234
1185
|
}
|
|
2235
1186
|
const data = await parseBody(output.body, context);
|
|
2236
1187
|
let contents = {};
|
|
@@ -2241,66 +1192,9 @@ export const de_DescribeWorkingStorageCommand = async (output, context) => {
|
|
|
2241
1192
|
};
|
|
2242
1193
|
return response;
|
|
2243
1194
|
};
|
|
2244
|
-
const de_DescribeWorkingStorageCommandError = async (output, context) => {
|
|
2245
|
-
const parsedOutput = {
|
|
2246
|
-
...output,
|
|
2247
|
-
body: await parseErrorBody(output.body, context),
|
|
2248
|
-
};
|
|
2249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2250
|
-
switch (errorCode) {
|
|
2251
|
-
case "InternalServerError":
|
|
2252
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2253
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2254
|
-
case "InvalidGatewayRequestException":
|
|
2255
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2256
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2257
|
-
default:
|
|
2258
|
-
const parsedBody = parsedOutput.body;
|
|
2259
|
-
return throwDefaultError({
|
|
2260
|
-
output,
|
|
2261
|
-
parsedBody,
|
|
2262
|
-
errorCode,
|
|
2263
|
-
});
|
|
2264
|
-
}
|
|
2265
|
-
};
|
|
2266
|
-
export const de_DetachVolumeCommand = async (output, context) => {
|
|
2267
|
-
if (output.statusCode >= 300) {
|
|
2268
|
-
return de_DetachVolumeCommandError(output, context);
|
|
2269
|
-
}
|
|
2270
|
-
const data = await parseBody(output.body, context);
|
|
2271
|
-
let contents = {};
|
|
2272
|
-
contents = _json(data);
|
|
2273
|
-
const response = {
|
|
2274
|
-
$metadata: deserializeMetadata(output),
|
|
2275
|
-
...contents,
|
|
2276
|
-
};
|
|
2277
|
-
return response;
|
|
2278
|
-
};
|
|
2279
|
-
const de_DetachVolumeCommandError = async (output, context) => {
|
|
2280
|
-
const parsedOutput = {
|
|
2281
|
-
...output,
|
|
2282
|
-
body: await parseErrorBody(output.body, context),
|
|
2283
|
-
};
|
|
2284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2285
|
-
switch (errorCode) {
|
|
2286
|
-
case "InternalServerError":
|
|
2287
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2288
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2289
|
-
case "InvalidGatewayRequestException":
|
|
2290
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2291
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2292
|
-
default:
|
|
2293
|
-
const parsedBody = parsedOutput.body;
|
|
2294
|
-
return throwDefaultError({
|
|
2295
|
-
output,
|
|
2296
|
-
parsedBody,
|
|
2297
|
-
errorCode,
|
|
2298
|
-
});
|
|
2299
|
-
}
|
|
2300
|
-
};
|
|
2301
1195
|
export const de_DisableGatewayCommand = async (output, context) => {
|
|
2302
1196
|
if (output.statusCode >= 300) {
|
|
2303
|
-
return
|
|
1197
|
+
return de_CommandError(output, context);
|
|
2304
1198
|
}
|
|
2305
1199
|
const data = await parseBody(output.body, context);
|
|
2306
1200
|
let contents = {};
|
|
@@ -2311,31 +1205,9 @@ export const de_DisableGatewayCommand = async (output, context) => {
|
|
|
2311
1205
|
};
|
|
2312
1206
|
return response;
|
|
2313
1207
|
};
|
|
2314
|
-
const de_DisableGatewayCommandError = async (output, context) => {
|
|
2315
|
-
const parsedOutput = {
|
|
2316
|
-
...output,
|
|
2317
|
-
body: await parseErrorBody(output.body, context),
|
|
2318
|
-
};
|
|
2319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2320
|
-
switch (errorCode) {
|
|
2321
|
-
case "InternalServerError":
|
|
2322
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2323
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2324
|
-
case "InvalidGatewayRequestException":
|
|
2325
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2326
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2327
|
-
default:
|
|
2328
|
-
const parsedBody = parsedOutput.body;
|
|
2329
|
-
return throwDefaultError({
|
|
2330
|
-
output,
|
|
2331
|
-
parsedBody,
|
|
2332
|
-
errorCode,
|
|
2333
|
-
});
|
|
2334
|
-
}
|
|
2335
|
-
};
|
|
2336
1208
|
export const de_DisassociateFileSystemCommand = async (output, context) => {
|
|
2337
1209
|
if (output.statusCode >= 300) {
|
|
2338
|
-
return
|
|
1210
|
+
return de_CommandError(output, context);
|
|
2339
1211
|
}
|
|
2340
1212
|
const data = await parseBody(output.body, context);
|
|
2341
1213
|
let contents = {};
|
|
@@ -2346,31 +1218,9 @@ export const de_DisassociateFileSystemCommand = async (output, context) => {
|
|
|
2346
1218
|
};
|
|
2347
1219
|
return response;
|
|
2348
1220
|
};
|
|
2349
|
-
const de_DisassociateFileSystemCommandError = async (output, context) => {
|
|
2350
|
-
const parsedOutput = {
|
|
2351
|
-
...output,
|
|
2352
|
-
body: await parseErrorBody(output.body, context),
|
|
2353
|
-
};
|
|
2354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
|
-
switch (errorCode) {
|
|
2356
|
-
case "InternalServerError":
|
|
2357
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2358
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2359
|
-
case "InvalidGatewayRequestException":
|
|
2360
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2361
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2362
|
-
default:
|
|
2363
|
-
const parsedBody = parsedOutput.body;
|
|
2364
|
-
return throwDefaultError({
|
|
2365
|
-
output,
|
|
2366
|
-
parsedBody,
|
|
2367
|
-
errorCode,
|
|
2368
|
-
});
|
|
2369
|
-
}
|
|
2370
|
-
};
|
|
2371
1221
|
export const de_JoinDomainCommand = async (output, context) => {
|
|
2372
1222
|
if (output.statusCode >= 300) {
|
|
2373
|
-
return
|
|
1223
|
+
return de_CommandError(output, context);
|
|
2374
1224
|
}
|
|
2375
1225
|
const data = await parseBody(output.body, context);
|
|
2376
1226
|
let contents = {};
|
|
@@ -2381,31 +1231,9 @@ export const de_JoinDomainCommand = async (output, context) => {
|
|
|
2381
1231
|
};
|
|
2382
1232
|
return response;
|
|
2383
1233
|
};
|
|
2384
|
-
const de_JoinDomainCommandError = async (output, context) => {
|
|
2385
|
-
const parsedOutput = {
|
|
2386
|
-
...output,
|
|
2387
|
-
body: await parseErrorBody(output.body, context),
|
|
2388
|
-
};
|
|
2389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
|
-
switch (errorCode) {
|
|
2391
|
-
case "InternalServerError":
|
|
2392
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2393
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2394
|
-
case "InvalidGatewayRequestException":
|
|
2395
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2396
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2397
|
-
default:
|
|
2398
|
-
const parsedBody = parsedOutput.body;
|
|
2399
|
-
return throwDefaultError({
|
|
2400
|
-
output,
|
|
2401
|
-
parsedBody,
|
|
2402
|
-
errorCode,
|
|
2403
|
-
});
|
|
2404
|
-
}
|
|
2405
|
-
};
|
|
2406
1234
|
export const de_ListAutomaticTapeCreationPoliciesCommand = async (output, context) => {
|
|
2407
1235
|
if (output.statusCode >= 300) {
|
|
2408
|
-
return
|
|
1236
|
+
return de_CommandError(output, context);
|
|
2409
1237
|
}
|
|
2410
1238
|
const data = await parseBody(output.body, context);
|
|
2411
1239
|
let contents = {};
|
|
@@ -2416,31 +1244,9 @@ export const de_ListAutomaticTapeCreationPoliciesCommand = async (output, contex
|
|
|
2416
1244
|
};
|
|
2417
1245
|
return response;
|
|
2418
1246
|
};
|
|
2419
|
-
const de_ListAutomaticTapeCreationPoliciesCommandError = async (output, context) => {
|
|
2420
|
-
const parsedOutput = {
|
|
2421
|
-
...output,
|
|
2422
|
-
body: await parseErrorBody(output.body, context),
|
|
2423
|
-
};
|
|
2424
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
|
-
switch (errorCode) {
|
|
2426
|
-
case "InternalServerError":
|
|
2427
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2428
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2429
|
-
case "InvalidGatewayRequestException":
|
|
2430
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2431
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2432
|
-
default:
|
|
2433
|
-
const parsedBody = parsedOutput.body;
|
|
2434
|
-
return throwDefaultError({
|
|
2435
|
-
output,
|
|
2436
|
-
parsedBody,
|
|
2437
|
-
errorCode,
|
|
2438
|
-
});
|
|
2439
|
-
}
|
|
2440
|
-
};
|
|
2441
1247
|
export const de_ListFileSharesCommand = async (output, context) => {
|
|
2442
1248
|
if (output.statusCode >= 300) {
|
|
2443
|
-
return
|
|
1249
|
+
return de_CommandError(output, context);
|
|
2444
1250
|
}
|
|
2445
1251
|
const data = await parseBody(output.body, context);
|
|
2446
1252
|
let contents = {};
|
|
@@ -2451,31 +1257,9 @@ export const de_ListFileSharesCommand = async (output, context) => {
|
|
|
2451
1257
|
};
|
|
2452
1258
|
return response;
|
|
2453
1259
|
};
|
|
2454
|
-
const de_ListFileSharesCommandError = async (output, context) => {
|
|
2455
|
-
const parsedOutput = {
|
|
2456
|
-
...output,
|
|
2457
|
-
body: await parseErrorBody(output.body, context),
|
|
2458
|
-
};
|
|
2459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2460
|
-
switch (errorCode) {
|
|
2461
|
-
case "InternalServerError":
|
|
2462
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2463
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2464
|
-
case "InvalidGatewayRequestException":
|
|
2465
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2466
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2467
|
-
default:
|
|
2468
|
-
const parsedBody = parsedOutput.body;
|
|
2469
|
-
return throwDefaultError({
|
|
2470
|
-
output,
|
|
2471
|
-
parsedBody,
|
|
2472
|
-
errorCode,
|
|
2473
|
-
});
|
|
2474
|
-
}
|
|
2475
|
-
};
|
|
2476
1260
|
export const de_ListFileSystemAssociationsCommand = async (output, context) => {
|
|
2477
1261
|
if (output.statusCode >= 300) {
|
|
2478
|
-
return
|
|
1262
|
+
return de_CommandError(output, context);
|
|
2479
1263
|
}
|
|
2480
1264
|
const data = await parseBody(output.body, context);
|
|
2481
1265
|
let contents = {};
|
|
@@ -2486,31 +1270,9 @@ export const de_ListFileSystemAssociationsCommand = async (output, context) => {
|
|
|
2486
1270
|
};
|
|
2487
1271
|
return response;
|
|
2488
1272
|
};
|
|
2489
|
-
const de_ListFileSystemAssociationsCommandError = async (output, context) => {
|
|
2490
|
-
const parsedOutput = {
|
|
2491
|
-
...output,
|
|
2492
|
-
body: await parseErrorBody(output.body, context),
|
|
2493
|
-
};
|
|
2494
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
|
-
switch (errorCode) {
|
|
2496
|
-
case "InternalServerError":
|
|
2497
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2498
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2499
|
-
case "InvalidGatewayRequestException":
|
|
2500
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2501
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2502
|
-
default:
|
|
2503
|
-
const parsedBody = parsedOutput.body;
|
|
2504
|
-
return throwDefaultError({
|
|
2505
|
-
output,
|
|
2506
|
-
parsedBody,
|
|
2507
|
-
errorCode,
|
|
2508
|
-
});
|
|
2509
|
-
}
|
|
2510
|
-
};
|
|
2511
1273
|
export const de_ListGatewaysCommand = async (output, context) => {
|
|
2512
1274
|
if (output.statusCode >= 300) {
|
|
2513
|
-
return
|
|
1275
|
+
return de_CommandError(output, context);
|
|
2514
1276
|
}
|
|
2515
1277
|
const data = await parseBody(output.body, context);
|
|
2516
1278
|
let contents = {};
|
|
@@ -2521,31 +1283,9 @@ export const de_ListGatewaysCommand = async (output, context) => {
|
|
|
2521
1283
|
};
|
|
2522
1284
|
return response;
|
|
2523
1285
|
};
|
|
2524
|
-
const de_ListGatewaysCommandError = async (output, context) => {
|
|
2525
|
-
const parsedOutput = {
|
|
2526
|
-
...output,
|
|
2527
|
-
body: await parseErrorBody(output.body, context),
|
|
2528
|
-
};
|
|
2529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2530
|
-
switch (errorCode) {
|
|
2531
|
-
case "InternalServerError":
|
|
2532
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2533
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2534
|
-
case "InvalidGatewayRequestException":
|
|
2535
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2536
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2537
|
-
default:
|
|
2538
|
-
const parsedBody = parsedOutput.body;
|
|
2539
|
-
return throwDefaultError({
|
|
2540
|
-
output,
|
|
2541
|
-
parsedBody,
|
|
2542
|
-
errorCode,
|
|
2543
|
-
});
|
|
2544
|
-
}
|
|
2545
|
-
};
|
|
2546
1286
|
export const de_ListLocalDisksCommand = async (output, context) => {
|
|
2547
1287
|
if (output.statusCode >= 300) {
|
|
2548
|
-
return
|
|
1288
|
+
return de_CommandError(output, context);
|
|
2549
1289
|
}
|
|
2550
1290
|
const data = await parseBody(output.body, context);
|
|
2551
1291
|
let contents = {};
|
|
@@ -2556,31 +1296,9 @@ export const de_ListLocalDisksCommand = async (output, context) => {
|
|
|
2556
1296
|
};
|
|
2557
1297
|
return response;
|
|
2558
1298
|
};
|
|
2559
|
-
const de_ListLocalDisksCommandError = async (output, context) => {
|
|
2560
|
-
const parsedOutput = {
|
|
2561
|
-
...output,
|
|
2562
|
-
body: await parseErrorBody(output.body, context),
|
|
2563
|
-
};
|
|
2564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2565
|
-
switch (errorCode) {
|
|
2566
|
-
case "InternalServerError":
|
|
2567
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2568
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2569
|
-
case "InvalidGatewayRequestException":
|
|
2570
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2571
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2572
|
-
default:
|
|
2573
|
-
const parsedBody = parsedOutput.body;
|
|
2574
|
-
return throwDefaultError({
|
|
2575
|
-
output,
|
|
2576
|
-
parsedBody,
|
|
2577
|
-
errorCode,
|
|
2578
|
-
});
|
|
2579
|
-
}
|
|
2580
|
-
};
|
|
2581
1299
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2582
1300
|
if (output.statusCode >= 300) {
|
|
2583
|
-
return
|
|
1301
|
+
return de_CommandError(output, context);
|
|
2584
1302
|
}
|
|
2585
1303
|
const data = await parseBody(output.body, context);
|
|
2586
1304
|
let contents = {};
|
|
@@ -2591,31 +1309,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2591
1309
|
};
|
|
2592
1310
|
return response;
|
|
2593
1311
|
};
|
|
2594
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2595
|
-
const parsedOutput = {
|
|
2596
|
-
...output,
|
|
2597
|
-
body: await parseErrorBody(output.body, context),
|
|
2598
|
-
};
|
|
2599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2600
|
-
switch (errorCode) {
|
|
2601
|
-
case "InternalServerError":
|
|
2602
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2603
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2604
|
-
case "InvalidGatewayRequestException":
|
|
2605
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2606
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2607
|
-
default:
|
|
2608
|
-
const parsedBody = parsedOutput.body;
|
|
2609
|
-
return throwDefaultError({
|
|
2610
|
-
output,
|
|
2611
|
-
parsedBody,
|
|
2612
|
-
errorCode,
|
|
2613
|
-
});
|
|
2614
|
-
}
|
|
2615
|
-
};
|
|
2616
1312
|
export const de_ListTapePoolsCommand = async (output, context) => {
|
|
2617
1313
|
if (output.statusCode >= 300) {
|
|
2618
|
-
return
|
|
1314
|
+
return de_CommandError(output, context);
|
|
2619
1315
|
}
|
|
2620
1316
|
const data = await parseBody(output.body, context);
|
|
2621
1317
|
let contents = {};
|
|
@@ -2626,31 +1322,9 @@ export const de_ListTapePoolsCommand = async (output, context) => {
|
|
|
2626
1322
|
};
|
|
2627
1323
|
return response;
|
|
2628
1324
|
};
|
|
2629
|
-
const de_ListTapePoolsCommandError = async (output, context) => {
|
|
2630
|
-
const parsedOutput = {
|
|
2631
|
-
...output,
|
|
2632
|
-
body: await parseErrorBody(output.body, context),
|
|
2633
|
-
};
|
|
2634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2635
|
-
switch (errorCode) {
|
|
2636
|
-
case "InternalServerError":
|
|
2637
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2638
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2639
|
-
case "InvalidGatewayRequestException":
|
|
2640
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2641
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2642
|
-
default:
|
|
2643
|
-
const parsedBody = parsedOutput.body;
|
|
2644
|
-
return throwDefaultError({
|
|
2645
|
-
output,
|
|
2646
|
-
parsedBody,
|
|
2647
|
-
errorCode,
|
|
2648
|
-
});
|
|
2649
|
-
}
|
|
2650
|
-
};
|
|
2651
1325
|
export const de_ListTapesCommand = async (output, context) => {
|
|
2652
1326
|
if (output.statusCode >= 300) {
|
|
2653
|
-
return
|
|
1327
|
+
return de_CommandError(output, context);
|
|
2654
1328
|
}
|
|
2655
1329
|
const data = await parseBody(output.body, context);
|
|
2656
1330
|
let contents = {};
|
|
@@ -2661,31 +1335,9 @@ export const de_ListTapesCommand = async (output, context) => {
|
|
|
2661
1335
|
};
|
|
2662
1336
|
return response;
|
|
2663
1337
|
};
|
|
2664
|
-
const de_ListTapesCommandError = async (output, context) => {
|
|
2665
|
-
const parsedOutput = {
|
|
2666
|
-
...output,
|
|
2667
|
-
body: await parseErrorBody(output.body, context),
|
|
2668
|
-
};
|
|
2669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2670
|
-
switch (errorCode) {
|
|
2671
|
-
case "InternalServerError":
|
|
2672
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2673
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2674
|
-
case "InvalidGatewayRequestException":
|
|
2675
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2676
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2677
|
-
default:
|
|
2678
|
-
const parsedBody = parsedOutput.body;
|
|
2679
|
-
return throwDefaultError({
|
|
2680
|
-
output,
|
|
2681
|
-
parsedBody,
|
|
2682
|
-
errorCode,
|
|
2683
|
-
});
|
|
2684
|
-
}
|
|
2685
|
-
};
|
|
2686
1338
|
export const de_ListVolumeInitiatorsCommand = async (output, context) => {
|
|
2687
1339
|
if (output.statusCode >= 300) {
|
|
2688
|
-
return
|
|
1340
|
+
return de_CommandError(output, context);
|
|
2689
1341
|
}
|
|
2690
1342
|
const data = await parseBody(output.body, context);
|
|
2691
1343
|
let contents = {};
|
|
@@ -2696,31 +1348,9 @@ export const de_ListVolumeInitiatorsCommand = async (output, context) => {
|
|
|
2696
1348
|
};
|
|
2697
1349
|
return response;
|
|
2698
1350
|
};
|
|
2699
|
-
const de_ListVolumeInitiatorsCommandError = async (output, context) => {
|
|
2700
|
-
const parsedOutput = {
|
|
2701
|
-
...output,
|
|
2702
|
-
body: await parseErrorBody(output.body, context),
|
|
2703
|
-
};
|
|
2704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2705
|
-
switch (errorCode) {
|
|
2706
|
-
case "InternalServerError":
|
|
2707
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2708
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2709
|
-
case "InvalidGatewayRequestException":
|
|
2710
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2711
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2712
|
-
default:
|
|
2713
|
-
const parsedBody = parsedOutput.body;
|
|
2714
|
-
return throwDefaultError({
|
|
2715
|
-
output,
|
|
2716
|
-
parsedBody,
|
|
2717
|
-
errorCode,
|
|
2718
|
-
});
|
|
2719
|
-
}
|
|
2720
|
-
};
|
|
2721
1351
|
export const de_ListVolumeRecoveryPointsCommand = async (output, context) => {
|
|
2722
1352
|
if (output.statusCode >= 300) {
|
|
2723
|
-
return
|
|
1353
|
+
return de_CommandError(output, context);
|
|
2724
1354
|
}
|
|
2725
1355
|
const data = await parseBody(output.body, context);
|
|
2726
1356
|
let contents = {};
|
|
@@ -2731,31 +1361,9 @@ export const de_ListVolumeRecoveryPointsCommand = async (output, context) => {
|
|
|
2731
1361
|
};
|
|
2732
1362
|
return response;
|
|
2733
1363
|
};
|
|
2734
|
-
const de_ListVolumeRecoveryPointsCommandError = async (output, context) => {
|
|
2735
|
-
const parsedOutput = {
|
|
2736
|
-
...output,
|
|
2737
|
-
body: await parseErrorBody(output.body, context),
|
|
2738
|
-
};
|
|
2739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2740
|
-
switch (errorCode) {
|
|
2741
|
-
case "InternalServerError":
|
|
2742
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2743
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2744
|
-
case "InvalidGatewayRequestException":
|
|
2745
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2746
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2747
|
-
default:
|
|
2748
|
-
const parsedBody = parsedOutput.body;
|
|
2749
|
-
return throwDefaultError({
|
|
2750
|
-
output,
|
|
2751
|
-
parsedBody,
|
|
2752
|
-
errorCode,
|
|
2753
|
-
});
|
|
2754
|
-
}
|
|
2755
|
-
};
|
|
2756
1364
|
export const de_ListVolumesCommand = async (output, context) => {
|
|
2757
1365
|
if (output.statusCode >= 300) {
|
|
2758
|
-
return
|
|
1366
|
+
return de_CommandError(output, context);
|
|
2759
1367
|
}
|
|
2760
1368
|
const data = await parseBody(output.body, context);
|
|
2761
1369
|
let contents = {};
|
|
@@ -2766,66 +1374,22 @@ export const de_ListVolumesCommand = async (output, context) => {
|
|
|
2766
1374
|
};
|
|
2767
1375
|
return response;
|
|
2768
1376
|
};
|
|
2769
|
-
const de_ListVolumesCommandError = async (output, context) => {
|
|
2770
|
-
const parsedOutput = {
|
|
2771
|
-
...output,
|
|
2772
|
-
body: await parseErrorBody(output.body, context),
|
|
2773
|
-
};
|
|
2774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2775
|
-
switch (errorCode) {
|
|
2776
|
-
case "InternalServerError":
|
|
2777
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2778
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2779
|
-
case "InvalidGatewayRequestException":
|
|
2780
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2781
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2782
|
-
default:
|
|
2783
|
-
const parsedBody = parsedOutput.body;
|
|
2784
|
-
return throwDefaultError({
|
|
2785
|
-
output,
|
|
2786
|
-
parsedBody,
|
|
2787
|
-
errorCode,
|
|
2788
|
-
});
|
|
2789
|
-
}
|
|
2790
|
-
};
|
|
2791
1377
|
export const de_NotifyWhenUploadedCommand = async (output, context) => {
|
|
2792
1378
|
if (output.statusCode >= 300) {
|
|
2793
|
-
return
|
|
1379
|
+
return de_CommandError(output, context);
|
|
2794
1380
|
}
|
|
2795
1381
|
const data = await parseBody(output.body, context);
|
|
2796
1382
|
let contents = {};
|
|
2797
1383
|
contents = _json(data);
|
|
2798
1384
|
const response = {
|
|
2799
1385
|
$metadata: deserializeMetadata(output),
|
|
2800
|
-
...contents,
|
|
2801
|
-
};
|
|
2802
|
-
return response;
|
|
2803
|
-
};
|
|
2804
|
-
const de_NotifyWhenUploadedCommandError = async (output, context) => {
|
|
2805
|
-
const parsedOutput = {
|
|
2806
|
-
...output,
|
|
2807
|
-
body: await parseErrorBody(output.body, context),
|
|
2808
|
-
};
|
|
2809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2810
|
-
switch (errorCode) {
|
|
2811
|
-
case "InternalServerError":
|
|
2812
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2813
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2814
|
-
case "InvalidGatewayRequestException":
|
|
2815
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2816
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2817
|
-
default:
|
|
2818
|
-
const parsedBody = parsedOutput.body;
|
|
2819
|
-
return throwDefaultError({
|
|
2820
|
-
output,
|
|
2821
|
-
parsedBody,
|
|
2822
|
-
errorCode,
|
|
2823
|
-
});
|
|
2824
|
-
}
|
|
1386
|
+
...contents,
|
|
1387
|
+
};
|
|
1388
|
+
return response;
|
|
2825
1389
|
};
|
|
2826
1390
|
export const de_RefreshCacheCommand = async (output, context) => {
|
|
2827
1391
|
if (output.statusCode >= 300) {
|
|
2828
|
-
return
|
|
1392
|
+
return de_CommandError(output, context);
|
|
2829
1393
|
}
|
|
2830
1394
|
const data = await parseBody(output.body, context);
|
|
2831
1395
|
let contents = {};
|
|
@@ -2836,31 +1400,9 @@ export const de_RefreshCacheCommand = async (output, context) => {
|
|
|
2836
1400
|
};
|
|
2837
1401
|
return response;
|
|
2838
1402
|
};
|
|
2839
|
-
const de_RefreshCacheCommandError = async (output, context) => {
|
|
2840
|
-
const parsedOutput = {
|
|
2841
|
-
...output,
|
|
2842
|
-
body: await parseErrorBody(output.body, context),
|
|
2843
|
-
};
|
|
2844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2845
|
-
switch (errorCode) {
|
|
2846
|
-
case "InternalServerError":
|
|
2847
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2848
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2849
|
-
case "InvalidGatewayRequestException":
|
|
2850
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2851
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2852
|
-
default:
|
|
2853
|
-
const parsedBody = parsedOutput.body;
|
|
2854
|
-
return throwDefaultError({
|
|
2855
|
-
output,
|
|
2856
|
-
parsedBody,
|
|
2857
|
-
errorCode,
|
|
2858
|
-
});
|
|
2859
|
-
}
|
|
2860
|
-
};
|
|
2861
1403
|
export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
2862
1404
|
if (output.statusCode >= 300) {
|
|
2863
|
-
return
|
|
1405
|
+
return de_CommandError(output, context);
|
|
2864
1406
|
}
|
|
2865
1407
|
const data = await parseBody(output.body, context);
|
|
2866
1408
|
let contents = {};
|
|
@@ -2871,31 +1413,9 @@ export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
|
2871
1413
|
};
|
|
2872
1414
|
return response;
|
|
2873
1415
|
};
|
|
2874
|
-
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
2875
|
-
const parsedOutput = {
|
|
2876
|
-
...output,
|
|
2877
|
-
body: await parseErrorBody(output.body, context),
|
|
2878
|
-
};
|
|
2879
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2880
|
-
switch (errorCode) {
|
|
2881
|
-
case "InternalServerError":
|
|
2882
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2883
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2884
|
-
case "InvalidGatewayRequestException":
|
|
2885
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2886
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2887
|
-
default:
|
|
2888
|
-
const parsedBody = parsedOutput.body;
|
|
2889
|
-
return throwDefaultError({
|
|
2890
|
-
output,
|
|
2891
|
-
parsedBody,
|
|
2892
|
-
errorCode,
|
|
2893
|
-
});
|
|
2894
|
-
}
|
|
2895
|
-
};
|
|
2896
1416
|
export const de_ResetCacheCommand = async (output, context) => {
|
|
2897
1417
|
if (output.statusCode >= 300) {
|
|
2898
|
-
return
|
|
1418
|
+
return de_CommandError(output, context);
|
|
2899
1419
|
}
|
|
2900
1420
|
const data = await parseBody(output.body, context);
|
|
2901
1421
|
let contents = {};
|
|
@@ -2906,31 +1426,9 @@ export const de_ResetCacheCommand = async (output, context) => {
|
|
|
2906
1426
|
};
|
|
2907
1427
|
return response;
|
|
2908
1428
|
};
|
|
2909
|
-
const de_ResetCacheCommandError = async (output, context) => {
|
|
2910
|
-
const parsedOutput = {
|
|
2911
|
-
...output,
|
|
2912
|
-
body: await parseErrorBody(output.body, context),
|
|
2913
|
-
};
|
|
2914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2915
|
-
switch (errorCode) {
|
|
2916
|
-
case "InternalServerError":
|
|
2917
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2918
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2919
|
-
case "InvalidGatewayRequestException":
|
|
2920
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2921
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2922
|
-
default:
|
|
2923
|
-
const parsedBody = parsedOutput.body;
|
|
2924
|
-
return throwDefaultError({
|
|
2925
|
-
output,
|
|
2926
|
-
parsedBody,
|
|
2927
|
-
errorCode,
|
|
2928
|
-
});
|
|
2929
|
-
}
|
|
2930
|
-
};
|
|
2931
1429
|
export const de_RetrieveTapeArchiveCommand = async (output, context) => {
|
|
2932
1430
|
if (output.statusCode >= 300) {
|
|
2933
|
-
return
|
|
1431
|
+
return de_CommandError(output, context);
|
|
2934
1432
|
}
|
|
2935
1433
|
const data = await parseBody(output.body, context);
|
|
2936
1434
|
let contents = {};
|
|
@@ -2941,31 +1439,9 @@ export const de_RetrieveTapeArchiveCommand = async (output, context) => {
|
|
|
2941
1439
|
};
|
|
2942
1440
|
return response;
|
|
2943
1441
|
};
|
|
2944
|
-
const de_RetrieveTapeArchiveCommandError = async (output, context) => {
|
|
2945
|
-
const parsedOutput = {
|
|
2946
|
-
...output,
|
|
2947
|
-
body: await parseErrorBody(output.body, context),
|
|
2948
|
-
};
|
|
2949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2950
|
-
switch (errorCode) {
|
|
2951
|
-
case "InternalServerError":
|
|
2952
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2953
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2954
|
-
case "InvalidGatewayRequestException":
|
|
2955
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2956
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2957
|
-
default:
|
|
2958
|
-
const parsedBody = parsedOutput.body;
|
|
2959
|
-
return throwDefaultError({
|
|
2960
|
-
output,
|
|
2961
|
-
parsedBody,
|
|
2962
|
-
errorCode,
|
|
2963
|
-
});
|
|
2964
|
-
}
|
|
2965
|
-
};
|
|
2966
1442
|
export const de_RetrieveTapeRecoveryPointCommand = async (output, context) => {
|
|
2967
1443
|
if (output.statusCode >= 300) {
|
|
2968
|
-
return
|
|
1444
|
+
return de_CommandError(output, context);
|
|
2969
1445
|
}
|
|
2970
1446
|
const data = await parseBody(output.body, context);
|
|
2971
1447
|
let contents = {};
|
|
@@ -2976,31 +1452,9 @@ export const de_RetrieveTapeRecoveryPointCommand = async (output, context) => {
|
|
|
2976
1452
|
};
|
|
2977
1453
|
return response;
|
|
2978
1454
|
};
|
|
2979
|
-
const de_RetrieveTapeRecoveryPointCommandError = async (output, context) => {
|
|
2980
|
-
const parsedOutput = {
|
|
2981
|
-
...output,
|
|
2982
|
-
body: await parseErrorBody(output.body, context),
|
|
2983
|
-
};
|
|
2984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2985
|
-
switch (errorCode) {
|
|
2986
|
-
case "InternalServerError":
|
|
2987
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
2988
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2989
|
-
case "InvalidGatewayRequestException":
|
|
2990
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
2991
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
2992
|
-
default:
|
|
2993
|
-
const parsedBody = parsedOutput.body;
|
|
2994
|
-
return throwDefaultError({
|
|
2995
|
-
output,
|
|
2996
|
-
parsedBody,
|
|
2997
|
-
errorCode,
|
|
2998
|
-
});
|
|
2999
|
-
}
|
|
3000
|
-
};
|
|
3001
1455
|
export const de_SetLocalConsolePasswordCommand = async (output, context) => {
|
|
3002
1456
|
if (output.statusCode >= 300) {
|
|
3003
|
-
return
|
|
1457
|
+
return de_CommandError(output, context);
|
|
3004
1458
|
}
|
|
3005
1459
|
const data = await parseBody(output.body, context);
|
|
3006
1460
|
let contents = {};
|
|
@@ -3011,31 +1465,9 @@ export const de_SetLocalConsolePasswordCommand = async (output, context) => {
|
|
|
3011
1465
|
};
|
|
3012
1466
|
return response;
|
|
3013
1467
|
};
|
|
3014
|
-
const de_SetLocalConsolePasswordCommandError = async (output, context) => {
|
|
3015
|
-
const parsedOutput = {
|
|
3016
|
-
...output,
|
|
3017
|
-
body: await parseErrorBody(output.body, context),
|
|
3018
|
-
};
|
|
3019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3020
|
-
switch (errorCode) {
|
|
3021
|
-
case "InternalServerError":
|
|
3022
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3023
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3024
|
-
case "InvalidGatewayRequestException":
|
|
3025
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3026
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3027
|
-
default:
|
|
3028
|
-
const parsedBody = parsedOutput.body;
|
|
3029
|
-
return throwDefaultError({
|
|
3030
|
-
output,
|
|
3031
|
-
parsedBody,
|
|
3032
|
-
errorCode,
|
|
3033
|
-
});
|
|
3034
|
-
}
|
|
3035
|
-
};
|
|
3036
1468
|
export const de_SetSMBGuestPasswordCommand = async (output, context) => {
|
|
3037
1469
|
if (output.statusCode >= 300) {
|
|
3038
|
-
return
|
|
1470
|
+
return de_CommandError(output, context);
|
|
3039
1471
|
}
|
|
3040
1472
|
const data = await parseBody(output.body, context);
|
|
3041
1473
|
let contents = {};
|
|
@@ -3046,31 +1478,9 @@ export const de_SetSMBGuestPasswordCommand = async (output, context) => {
|
|
|
3046
1478
|
};
|
|
3047
1479
|
return response;
|
|
3048
1480
|
};
|
|
3049
|
-
const de_SetSMBGuestPasswordCommandError = async (output, context) => {
|
|
3050
|
-
const parsedOutput = {
|
|
3051
|
-
...output,
|
|
3052
|
-
body: await parseErrorBody(output.body, context),
|
|
3053
|
-
};
|
|
3054
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3055
|
-
switch (errorCode) {
|
|
3056
|
-
case "InternalServerError":
|
|
3057
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3058
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3059
|
-
case "InvalidGatewayRequestException":
|
|
3060
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3061
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3062
|
-
default:
|
|
3063
|
-
const parsedBody = parsedOutput.body;
|
|
3064
|
-
return throwDefaultError({
|
|
3065
|
-
output,
|
|
3066
|
-
parsedBody,
|
|
3067
|
-
errorCode,
|
|
3068
|
-
});
|
|
3069
|
-
}
|
|
3070
|
-
};
|
|
3071
1481
|
export const de_ShutdownGatewayCommand = async (output, context) => {
|
|
3072
1482
|
if (output.statusCode >= 300) {
|
|
3073
|
-
return
|
|
1483
|
+
return de_CommandError(output, context);
|
|
3074
1484
|
}
|
|
3075
1485
|
const data = await parseBody(output.body, context);
|
|
3076
1486
|
let contents = {};
|
|
@@ -3081,31 +1491,9 @@ export const de_ShutdownGatewayCommand = async (output, context) => {
|
|
|
3081
1491
|
};
|
|
3082
1492
|
return response;
|
|
3083
1493
|
};
|
|
3084
|
-
const de_ShutdownGatewayCommandError = async (output, context) => {
|
|
3085
|
-
const parsedOutput = {
|
|
3086
|
-
...output,
|
|
3087
|
-
body: await parseErrorBody(output.body, context),
|
|
3088
|
-
};
|
|
3089
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3090
|
-
switch (errorCode) {
|
|
3091
|
-
case "InternalServerError":
|
|
3092
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3093
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3094
|
-
case "InvalidGatewayRequestException":
|
|
3095
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3096
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3097
|
-
default:
|
|
3098
|
-
const parsedBody = parsedOutput.body;
|
|
3099
|
-
return throwDefaultError({
|
|
3100
|
-
output,
|
|
3101
|
-
parsedBody,
|
|
3102
|
-
errorCode,
|
|
3103
|
-
});
|
|
3104
|
-
}
|
|
3105
|
-
};
|
|
3106
1494
|
export const de_StartAvailabilityMonitorTestCommand = async (output, context) => {
|
|
3107
1495
|
if (output.statusCode >= 300) {
|
|
3108
|
-
return
|
|
1496
|
+
return de_CommandError(output, context);
|
|
3109
1497
|
}
|
|
3110
1498
|
const data = await parseBody(output.body, context);
|
|
3111
1499
|
let contents = {};
|
|
@@ -3116,31 +1504,9 @@ export const de_StartAvailabilityMonitorTestCommand = async (output, context) =>
|
|
|
3116
1504
|
};
|
|
3117
1505
|
return response;
|
|
3118
1506
|
};
|
|
3119
|
-
const de_StartAvailabilityMonitorTestCommandError = async (output, context) => {
|
|
3120
|
-
const parsedOutput = {
|
|
3121
|
-
...output,
|
|
3122
|
-
body: await parseErrorBody(output.body, context),
|
|
3123
|
-
};
|
|
3124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3125
|
-
switch (errorCode) {
|
|
3126
|
-
case "InternalServerError":
|
|
3127
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3128
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3129
|
-
case "InvalidGatewayRequestException":
|
|
3130
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3131
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3132
|
-
default:
|
|
3133
|
-
const parsedBody = parsedOutput.body;
|
|
3134
|
-
return throwDefaultError({
|
|
3135
|
-
output,
|
|
3136
|
-
parsedBody,
|
|
3137
|
-
errorCode,
|
|
3138
|
-
});
|
|
3139
|
-
}
|
|
3140
|
-
};
|
|
3141
1507
|
export const de_StartGatewayCommand = async (output, context) => {
|
|
3142
1508
|
if (output.statusCode >= 300) {
|
|
3143
|
-
return
|
|
1509
|
+
return de_CommandError(output, context);
|
|
3144
1510
|
}
|
|
3145
1511
|
const data = await parseBody(output.body, context);
|
|
3146
1512
|
let contents = {};
|
|
@@ -3151,31 +1517,9 @@ export const de_StartGatewayCommand = async (output, context) => {
|
|
|
3151
1517
|
};
|
|
3152
1518
|
return response;
|
|
3153
1519
|
};
|
|
3154
|
-
const de_StartGatewayCommandError = async (output, context) => {
|
|
3155
|
-
const parsedOutput = {
|
|
3156
|
-
...output,
|
|
3157
|
-
body: await parseErrorBody(output.body, context),
|
|
3158
|
-
};
|
|
3159
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3160
|
-
switch (errorCode) {
|
|
3161
|
-
case "InternalServerError":
|
|
3162
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3163
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3164
|
-
case "InvalidGatewayRequestException":
|
|
3165
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3166
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3167
|
-
default:
|
|
3168
|
-
const parsedBody = parsedOutput.body;
|
|
3169
|
-
return throwDefaultError({
|
|
3170
|
-
output,
|
|
3171
|
-
parsedBody,
|
|
3172
|
-
errorCode,
|
|
3173
|
-
});
|
|
3174
|
-
}
|
|
3175
|
-
};
|
|
3176
1520
|
export const de_UpdateAutomaticTapeCreationPolicyCommand = async (output, context) => {
|
|
3177
1521
|
if (output.statusCode >= 300) {
|
|
3178
|
-
return
|
|
1522
|
+
return de_CommandError(output, context);
|
|
3179
1523
|
}
|
|
3180
1524
|
const data = await parseBody(output.body, context);
|
|
3181
1525
|
let contents = {};
|
|
@@ -3186,31 +1530,9 @@ export const de_UpdateAutomaticTapeCreationPolicyCommand = async (output, contex
|
|
|
3186
1530
|
};
|
|
3187
1531
|
return response;
|
|
3188
1532
|
};
|
|
3189
|
-
const de_UpdateAutomaticTapeCreationPolicyCommandError = async (output, context) => {
|
|
3190
|
-
const parsedOutput = {
|
|
3191
|
-
...output,
|
|
3192
|
-
body: await parseErrorBody(output.body, context),
|
|
3193
|
-
};
|
|
3194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3195
|
-
switch (errorCode) {
|
|
3196
|
-
case "InternalServerError":
|
|
3197
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3198
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3199
|
-
case "InvalidGatewayRequestException":
|
|
3200
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3201
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3202
|
-
default:
|
|
3203
|
-
const parsedBody = parsedOutput.body;
|
|
3204
|
-
return throwDefaultError({
|
|
3205
|
-
output,
|
|
3206
|
-
parsedBody,
|
|
3207
|
-
errorCode,
|
|
3208
|
-
});
|
|
3209
|
-
}
|
|
3210
|
-
};
|
|
3211
1533
|
export const de_UpdateBandwidthRateLimitCommand = async (output, context) => {
|
|
3212
1534
|
if (output.statusCode >= 300) {
|
|
3213
|
-
return
|
|
1535
|
+
return de_CommandError(output, context);
|
|
3214
1536
|
}
|
|
3215
1537
|
const data = await parseBody(output.body, context);
|
|
3216
1538
|
let contents = {};
|
|
@@ -3219,33 +1541,11 @@ export const de_UpdateBandwidthRateLimitCommand = async (output, context) => {
|
|
|
3219
1541
|
$metadata: deserializeMetadata(output),
|
|
3220
1542
|
...contents,
|
|
3221
1543
|
};
|
|
3222
|
-
return response;
|
|
3223
|
-
};
|
|
3224
|
-
const de_UpdateBandwidthRateLimitCommandError = async (output, context) => {
|
|
3225
|
-
const parsedOutput = {
|
|
3226
|
-
...output,
|
|
3227
|
-
body: await parseErrorBody(output.body, context),
|
|
3228
|
-
};
|
|
3229
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3230
|
-
switch (errorCode) {
|
|
3231
|
-
case "InternalServerError":
|
|
3232
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3233
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3234
|
-
case "InvalidGatewayRequestException":
|
|
3235
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3236
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3237
|
-
default:
|
|
3238
|
-
const parsedBody = parsedOutput.body;
|
|
3239
|
-
return throwDefaultError({
|
|
3240
|
-
output,
|
|
3241
|
-
parsedBody,
|
|
3242
|
-
errorCode,
|
|
3243
|
-
});
|
|
3244
|
-
}
|
|
1544
|
+
return response;
|
|
3245
1545
|
};
|
|
3246
1546
|
export const de_UpdateBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
3247
1547
|
if (output.statusCode >= 300) {
|
|
3248
|
-
return
|
|
1548
|
+
return de_CommandError(output, context);
|
|
3249
1549
|
}
|
|
3250
1550
|
const data = await parseBody(output.body, context);
|
|
3251
1551
|
let contents = {};
|
|
@@ -3256,31 +1556,9 @@ export const de_UpdateBandwidthRateLimitScheduleCommand = async (output, context
|
|
|
3256
1556
|
};
|
|
3257
1557
|
return response;
|
|
3258
1558
|
};
|
|
3259
|
-
const de_UpdateBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
3260
|
-
const parsedOutput = {
|
|
3261
|
-
...output,
|
|
3262
|
-
body: await parseErrorBody(output.body, context),
|
|
3263
|
-
};
|
|
3264
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3265
|
-
switch (errorCode) {
|
|
3266
|
-
case "InternalServerError":
|
|
3267
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3268
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3269
|
-
case "InvalidGatewayRequestException":
|
|
3270
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3271
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3272
|
-
default:
|
|
3273
|
-
const parsedBody = parsedOutput.body;
|
|
3274
|
-
return throwDefaultError({
|
|
3275
|
-
output,
|
|
3276
|
-
parsedBody,
|
|
3277
|
-
errorCode,
|
|
3278
|
-
});
|
|
3279
|
-
}
|
|
3280
|
-
};
|
|
3281
1559
|
export const de_UpdateChapCredentialsCommand = async (output, context) => {
|
|
3282
1560
|
if (output.statusCode >= 300) {
|
|
3283
|
-
return
|
|
1561
|
+
return de_CommandError(output, context);
|
|
3284
1562
|
}
|
|
3285
1563
|
const data = await parseBody(output.body, context);
|
|
3286
1564
|
let contents = {};
|
|
@@ -3291,31 +1569,9 @@ export const de_UpdateChapCredentialsCommand = async (output, context) => {
|
|
|
3291
1569
|
};
|
|
3292
1570
|
return response;
|
|
3293
1571
|
};
|
|
3294
|
-
const de_UpdateChapCredentialsCommandError = async (output, context) => {
|
|
3295
|
-
const parsedOutput = {
|
|
3296
|
-
...output,
|
|
3297
|
-
body: await parseErrorBody(output.body, context),
|
|
3298
|
-
};
|
|
3299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3300
|
-
switch (errorCode) {
|
|
3301
|
-
case "InternalServerError":
|
|
3302
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3303
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3304
|
-
case "InvalidGatewayRequestException":
|
|
3305
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3306
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3307
|
-
default:
|
|
3308
|
-
const parsedBody = parsedOutput.body;
|
|
3309
|
-
return throwDefaultError({
|
|
3310
|
-
output,
|
|
3311
|
-
parsedBody,
|
|
3312
|
-
errorCode,
|
|
3313
|
-
});
|
|
3314
|
-
}
|
|
3315
|
-
};
|
|
3316
1572
|
export const de_UpdateFileSystemAssociationCommand = async (output, context) => {
|
|
3317
1573
|
if (output.statusCode >= 300) {
|
|
3318
|
-
return
|
|
1574
|
+
return de_CommandError(output, context);
|
|
3319
1575
|
}
|
|
3320
1576
|
const data = await parseBody(output.body, context);
|
|
3321
1577
|
let contents = {};
|
|
@@ -3326,31 +1582,9 @@ export const de_UpdateFileSystemAssociationCommand = async (output, context) =>
|
|
|
3326
1582
|
};
|
|
3327
1583
|
return response;
|
|
3328
1584
|
};
|
|
3329
|
-
const de_UpdateFileSystemAssociationCommandError = async (output, context) => {
|
|
3330
|
-
const parsedOutput = {
|
|
3331
|
-
...output,
|
|
3332
|
-
body: await parseErrorBody(output.body, context),
|
|
3333
|
-
};
|
|
3334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3335
|
-
switch (errorCode) {
|
|
3336
|
-
case "InternalServerError":
|
|
3337
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3338
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3339
|
-
case "InvalidGatewayRequestException":
|
|
3340
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3341
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3342
|
-
default:
|
|
3343
|
-
const parsedBody = parsedOutput.body;
|
|
3344
|
-
return throwDefaultError({
|
|
3345
|
-
output,
|
|
3346
|
-
parsedBody,
|
|
3347
|
-
errorCode,
|
|
3348
|
-
});
|
|
3349
|
-
}
|
|
3350
|
-
};
|
|
3351
1585
|
export const de_UpdateGatewayInformationCommand = async (output, context) => {
|
|
3352
1586
|
if (output.statusCode >= 300) {
|
|
3353
|
-
return
|
|
1587
|
+
return de_CommandError(output, context);
|
|
3354
1588
|
}
|
|
3355
1589
|
const data = await parseBody(output.body, context);
|
|
3356
1590
|
let contents = {};
|
|
@@ -3361,31 +1595,9 @@ export const de_UpdateGatewayInformationCommand = async (output, context) => {
|
|
|
3361
1595
|
};
|
|
3362
1596
|
return response;
|
|
3363
1597
|
};
|
|
3364
|
-
const de_UpdateGatewayInformationCommandError = async (output, context) => {
|
|
3365
|
-
const parsedOutput = {
|
|
3366
|
-
...output,
|
|
3367
|
-
body: await parseErrorBody(output.body, context),
|
|
3368
|
-
};
|
|
3369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3370
|
-
switch (errorCode) {
|
|
3371
|
-
case "InternalServerError":
|
|
3372
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3373
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3374
|
-
case "InvalidGatewayRequestException":
|
|
3375
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3376
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3377
|
-
default:
|
|
3378
|
-
const parsedBody = parsedOutput.body;
|
|
3379
|
-
return throwDefaultError({
|
|
3380
|
-
output,
|
|
3381
|
-
parsedBody,
|
|
3382
|
-
errorCode,
|
|
3383
|
-
});
|
|
3384
|
-
}
|
|
3385
|
-
};
|
|
3386
1598
|
export const de_UpdateGatewaySoftwareNowCommand = async (output, context) => {
|
|
3387
1599
|
if (output.statusCode >= 300) {
|
|
3388
|
-
return
|
|
1600
|
+
return de_CommandError(output, context);
|
|
3389
1601
|
}
|
|
3390
1602
|
const data = await parseBody(output.body, context);
|
|
3391
1603
|
let contents = {};
|
|
@@ -3396,31 +1608,9 @@ export const de_UpdateGatewaySoftwareNowCommand = async (output, context) => {
|
|
|
3396
1608
|
};
|
|
3397
1609
|
return response;
|
|
3398
1610
|
};
|
|
3399
|
-
const de_UpdateGatewaySoftwareNowCommandError = async (output, context) => {
|
|
3400
|
-
const parsedOutput = {
|
|
3401
|
-
...output,
|
|
3402
|
-
body: await parseErrorBody(output.body, context),
|
|
3403
|
-
};
|
|
3404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3405
|
-
switch (errorCode) {
|
|
3406
|
-
case "InternalServerError":
|
|
3407
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3408
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3409
|
-
case "InvalidGatewayRequestException":
|
|
3410
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3411
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3412
|
-
default:
|
|
3413
|
-
const parsedBody = parsedOutput.body;
|
|
3414
|
-
return throwDefaultError({
|
|
3415
|
-
output,
|
|
3416
|
-
parsedBody,
|
|
3417
|
-
errorCode,
|
|
3418
|
-
});
|
|
3419
|
-
}
|
|
3420
|
-
};
|
|
3421
1611
|
export const de_UpdateMaintenanceStartTimeCommand = async (output, context) => {
|
|
3422
1612
|
if (output.statusCode >= 300) {
|
|
3423
|
-
return
|
|
1613
|
+
return de_CommandError(output, context);
|
|
3424
1614
|
}
|
|
3425
1615
|
const data = await parseBody(output.body, context);
|
|
3426
1616
|
let contents = {};
|
|
@@ -3431,31 +1621,9 @@ export const de_UpdateMaintenanceStartTimeCommand = async (output, context) => {
|
|
|
3431
1621
|
};
|
|
3432
1622
|
return response;
|
|
3433
1623
|
};
|
|
3434
|
-
const de_UpdateMaintenanceStartTimeCommandError = async (output, context) => {
|
|
3435
|
-
const parsedOutput = {
|
|
3436
|
-
...output,
|
|
3437
|
-
body: await parseErrorBody(output.body, context),
|
|
3438
|
-
};
|
|
3439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3440
|
-
switch (errorCode) {
|
|
3441
|
-
case "InternalServerError":
|
|
3442
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3443
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3444
|
-
case "InvalidGatewayRequestException":
|
|
3445
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3446
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3447
|
-
default:
|
|
3448
|
-
const parsedBody = parsedOutput.body;
|
|
3449
|
-
return throwDefaultError({
|
|
3450
|
-
output,
|
|
3451
|
-
parsedBody,
|
|
3452
|
-
errorCode,
|
|
3453
|
-
});
|
|
3454
|
-
}
|
|
3455
|
-
};
|
|
3456
1624
|
export const de_UpdateNFSFileShareCommand = async (output, context) => {
|
|
3457
1625
|
if (output.statusCode >= 300) {
|
|
3458
|
-
return
|
|
1626
|
+
return de_CommandError(output, context);
|
|
3459
1627
|
}
|
|
3460
1628
|
const data = await parseBody(output.body, context);
|
|
3461
1629
|
let contents = {};
|
|
@@ -3466,31 +1634,9 @@ export const de_UpdateNFSFileShareCommand = async (output, context) => {
|
|
|
3466
1634
|
};
|
|
3467
1635
|
return response;
|
|
3468
1636
|
};
|
|
3469
|
-
const de_UpdateNFSFileShareCommandError = 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
1637
|
export const de_UpdateSMBFileShareCommand = async (output, context) => {
|
|
3492
1638
|
if (output.statusCode >= 300) {
|
|
3493
|
-
return
|
|
1639
|
+
return de_CommandError(output, context);
|
|
3494
1640
|
}
|
|
3495
1641
|
const data = await parseBody(output.body, context);
|
|
3496
1642
|
let contents = {};
|
|
@@ -3501,31 +1647,9 @@ export const de_UpdateSMBFileShareCommand = async (output, context) => {
|
|
|
3501
1647
|
};
|
|
3502
1648
|
return response;
|
|
3503
1649
|
};
|
|
3504
|
-
const de_UpdateSMBFileShareCommandError = async (output, context) => {
|
|
3505
|
-
const parsedOutput = {
|
|
3506
|
-
...output,
|
|
3507
|
-
body: await parseErrorBody(output.body, context),
|
|
3508
|
-
};
|
|
3509
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3510
|
-
switch (errorCode) {
|
|
3511
|
-
case "InternalServerError":
|
|
3512
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3513
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3514
|
-
case "InvalidGatewayRequestException":
|
|
3515
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3516
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3517
|
-
default:
|
|
3518
|
-
const parsedBody = parsedOutput.body;
|
|
3519
|
-
return throwDefaultError({
|
|
3520
|
-
output,
|
|
3521
|
-
parsedBody,
|
|
3522
|
-
errorCode,
|
|
3523
|
-
});
|
|
3524
|
-
}
|
|
3525
|
-
};
|
|
3526
1650
|
export const de_UpdateSMBFileShareVisibilityCommand = async (output, context) => {
|
|
3527
1651
|
if (output.statusCode >= 300) {
|
|
3528
|
-
return
|
|
1652
|
+
return de_CommandError(output, context);
|
|
3529
1653
|
}
|
|
3530
1654
|
const data = await parseBody(output.body, context);
|
|
3531
1655
|
let contents = {};
|
|
@@ -3536,31 +1660,9 @@ export const de_UpdateSMBFileShareVisibilityCommand = async (output, context) =>
|
|
|
3536
1660
|
};
|
|
3537
1661
|
return response;
|
|
3538
1662
|
};
|
|
3539
|
-
const de_UpdateSMBFileShareVisibilityCommandError = async (output, context) => {
|
|
3540
|
-
const parsedOutput = {
|
|
3541
|
-
...output,
|
|
3542
|
-
body: await parseErrorBody(output.body, context),
|
|
3543
|
-
};
|
|
3544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3545
|
-
switch (errorCode) {
|
|
3546
|
-
case "InternalServerError":
|
|
3547
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3548
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3549
|
-
case "InvalidGatewayRequestException":
|
|
3550
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3551
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3552
|
-
default:
|
|
3553
|
-
const parsedBody = parsedOutput.body;
|
|
3554
|
-
return throwDefaultError({
|
|
3555
|
-
output,
|
|
3556
|
-
parsedBody,
|
|
3557
|
-
errorCode,
|
|
3558
|
-
});
|
|
3559
|
-
}
|
|
3560
|
-
};
|
|
3561
1663
|
export const de_UpdateSMBLocalGroupsCommand = async (output, context) => {
|
|
3562
1664
|
if (output.statusCode >= 300) {
|
|
3563
|
-
return
|
|
1665
|
+
return de_CommandError(output, context);
|
|
3564
1666
|
}
|
|
3565
1667
|
const data = await parseBody(output.body, context);
|
|
3566
1668
|
let contents = {};
|
|
@@ -3571,31 +1673,9 @@ export const de_UpdateSMBLocalGroupsCommand = async (output, context) => {
|
|
|
3571
1673
|
};
|
|
3572
1674
|
return response;
|
|
3573
1675
|
};
|
|
3574
|
-
const de_UpdateSMBLocalGroupsCommandError = async (output, context) => {
|
|
3575
|
-
const parsedOutput = {
|
|
3576
|
-
...output,
|
|
3577
|
-
body: await parseErrorBody(output.body, context),
|
|
3578
|
-
};
|
|
3579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3580
|
-
switch (errorCode) {
|
|
3581
|
-
case "InternalServerError":
|
|
3582
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3583
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3584
|
-
case "InvalidGatewayRequestException":
|
|
3585
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3586
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3587
|
-
default:
|
|
3588
|
-
const parsedBody = parsedOutput.body;
|
|
3589
|
-
return throwDefaultError({
|
|
3590
|
-
output,
|
|
3591
|
-
parsedBody,
|
|
3592
|
-
errorCode,
|
|
3593
|
-
});
|
|
3594
|
-
}
|
|
3595
|
-
};
|
|
3596
1676
|
export const de_UpdateSMBSecurityStrategyCommand = async (output, context) => {
|
|
3597
1677
|
if (output.statusCode >= 300) {
|
|
3598
|
-
return
|
|
1678
|
+
return de_CommandError(output, context);
|
|
3599
1679
|
}
|
|
3600
1680
|
const data = await parseBody(output.body, context);
|
|
3601
1681
|
let contents = {};
|
|
@@ -3606,31 +1686,9 @@ export const de_UpdateSMBSecurityStrategyCommand = async (output, context) => {
|
|
|
3606
1686
|
};
|
|
3607
1687
|
return response;
|
|
3608
1688
|
};
|
|
3609
|
-
const de_UpdateSMBSecurityStrategyCommandError = async (output, context) => {
|
|
3610
|
-
const parsedOutput = {
|
|
3611
|
-
...output,
|
|
3612
|
-
body: await parseErrorBody(output.body, context),
|
|
3613
|
-
};
|
|
3614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3615
|
-
switch (errorCode) {
|
|
3616
|
-
case "InternalServerError":
|
|
3617
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3618
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3619
|
-
case "InvalidGatewayRequestException":
|
|
3620
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3621
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3622
|
-
default:
|
|
3623
|
-
const parsedBody = parsedOutput.body;
|
|
3624
|
-
return throwDefaultError({
|
|
3625
|
-
output,
|
|
3626
|
-
parsedBody,
|
|
3627
|
-
errorCode,
|
|
3628
|
-
});
|
|
3629
|
-
}
|
|
3630
|
-
};
|
|
3631
1689
|
export const de_UpdateSnapshotScheduleCommand = async (output, context) => {
|
|
3632
1690
|
if (output.statusCode >= 300) {
|
|
3633
|
-
return
|
|
1691
|
+
return de_CommandError(output, context);
|
|
3634
1692
|
}
|
|
3635
1693
|
const data = await parseBody(output.body, context);
|
|
3636
1694
|
let contents = {};
|
|
@@ -3641,31 +1699,9 @@ export const de_UpdateSnapshotScheduleCommand = async (output, context) => {
|
|
|
3641
1699
|
};
|
|
3642
1700
|
return response;
|
|
3643
1701
|
};
|
|
3644
|
-
const de_UpdateSnapshotScheduleCommandError = async (output, context) => {
|
|
3645
|
-
const parsedOutput = {
|
|
3646
|
-
...output,
|
|
3647
|
-
body: await parseErrorBody(output.body, context),
|
|
3648
|
-
};
|
|
3649
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3650
|
-
switch (errorCode) {
|
|
3651
|
-
case "InternalServerError":
|
|
3652
|
-
case "com.amazonaws.storagegateway#InternalServerError":
|
|
3653
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3654
|
-
case "InvalidGatewayRequestException":
|
|
3655
|
-
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3656
|
-
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
3657
|
-
default:
|
|
3658
|
-
const parsedBody = parsedOutput.body;
|
|
3659
|
-
return throwDefaultError({
|
|
3660
|
-
output,
|
|
3661
|
-
parsedBody,
|
|
3662
|
-
errorCode,
|
|
3663
|
-
});
|
|
3664
|
-
}
|
|
3665
|
-
};
|
|
3666
1702
|
export const de_UpdateVTLDeviceTypeCommand = async (output, context) => {
|
|
3667
1703
|
if (output.statusCode >= 300) {
|
|
3668
|
-
return
|
|
1704
|
+
return de_CommandError(output, context);
|
|
3669
1705
|
}
|
|
3670
1706
|
const data = await parseBody(output.body, context);
|
|
3671
1707
|
let contents = {};
|
|
@@ -3676,7 +1712,7 @@ export const de_UpdateVTLDeviceTypeCommand = async (output, context) => {
|
|
|
3676
1712
|
};
|
|
3677
1713
|
return response;
|
|
3678
1714
|
};
|
|
3679
|
-
const
|
|
1715
|
+
const de_CommandError = async (output, context) => {
|
|
3680
1716
|
const parsedOutput = {
|
|
3681
1717
|
...output,
|
|
3682
1718
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3689,6 +1725,9 @@ const de_UpdateVTLDeviceTypeCommandError = async (output, context) => {
|
|
|
3689
1725
|
case "InvalidGatewayRequestException":
|
|
3690
1726
|
case "com.amazonaws.storagegateway#InvalidGatewayRequestException":
|
|
3691
1727
|
throw await de_InvalidGatewayRequestExceptionRes(parsedOutput, context);
|
|
1728
|
+
case "ServiceUnavailableError":
|
|
1729
|
+
case "com.amazonaws.storagegateway#ServiceUnavailableError":
|
|
1730
|
+
throw await de_ServiceUnavailableErrorRes(parsedOutput, context);
|
|
3692
1731
|
default:
|
|
3693
1732
|
const parsedBody = parsedOutput.body;
|
|
3694
1733
|
return throwDefaultError({
|