@aws-sdk/client-tnb 3.310.0 → 3.315.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/protocols/Aws_restJson1.js +436 -788
- package/dist-es/protocols/Aws_restJson1.js +384 -736
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { TnbServiceException as __BaseException } from "../models/TnbServiceException";
|
|
5
5
|
export const se_CancelSolNetworkOperationCommand = async (input, context) => {
|
|
@@ -26,9 +26,9 @@ export const se_CreateSolFunctionPackageCommand = async (input, context) => {
|
|
|
26
26
|
};
|
|
27
27
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages";
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify({
|
|
30
|
-
|
|
31
|
-
});
|
|
29
|
+
body = JSON.stringify(take(input, {
|
|
30
|
+
tags: (_) => _json(_),
|
|
31
|
+
}));
|
|
32
32
|
return new __HttpRequest({
|
|
33
33
|
protocol,
|
|
34
34
|
hostname,
|
|
@@ -46,12 +46,12 @@ export const se_CreateSolNetworkInstanceCommand = async (input, context) => {
|
|
|
46
46
|
};
|
|
47
47
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances";
|
|
48
48
|
let body;
|
|
49
|
-
body = JSON.stringify({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
});
|
|
49
|
+
body = JSON.stringify(take(input, {
|
|
50
|
+
nsDescription: [],
|
|
51
|
+
nsName: [],
|
|
52
|
+
nsdInfoId: [],
|
|
53
|
+
tags: (_) => _json(_),
|
|
54
|
+
}));
|
|
55
55
|
return new __HttpRequest({
|
|
56
56
|
protocol,
|
|
57
57
|
hostname,
|
|
@@ -69,9 +69,9 @@ export const se_CreateSolNetworkPackageCommand = async (input, context) => {
|
|
|
69
69
|
};
|
|
70
70
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors";
|
|
71
71
|
let body;
|
|
72
|
-
body = JSON.stringify({
|
|
73
|
-
|
|
74
|
-
});
|
|
72
|
+
body = JSON.stringify(take(input, {
|
|
73
|
+
tags: (_) => _json(_),
|
|
74
|
+
}));
|
|
75
75
|
return new __HttpRequest({
|
|
76
76
|
protocol,
|
|
77
77
|
hostname,
|
|
@@ -298,12 +298,10 @@ export const se_InstantiateSolNetworkInstanceCommand = async (input, context) =>
|
|
|
298
298
|
dry_run: [() => input.dryRun !== void 0, () => input.dryRun.toString()],
|
|
299
299
|
});
|
|
300
300
|
let body;
|
|
301
|
-
body = JSON.stringify({
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
306
|
-
});
|
|
301
|
+
body = JSON.stringify(take(input, {
|
|
302
|
+
additionalParamsForNs: (_) => se_Document(_, context),
|
|
303
|
+
tags: (_) => _json(_),
|
|
304
|
+
}));
|
|
307
305
|
return new __HttpRequest({
|
|
308
306
|
protocol,
|
|
309
307
|
hostname,
|
|
@@ -483,9 +481,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
483
481
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
484
482
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
485
483
|
let body;
|
|
486
|
-
body = JSON.stringify({
|
|
487
|
-
|
|
488
|
-
});
|
|
484
|
+
body = JSON.stringify(take(input, {
|
|
485
|
+
tags: (_) => _json(_),
|
|
486
|
+
}));
|
|
489
487
|
return new __HttpRequest({
|
|
490
488
|
protocol,
|
|
491
489
|
hostname,
|
|
@@ -505,9 +503,9 @@ export const se_TerminateSolNetworkInstanceCommand = async (input, context) => {
|
|
|
505
503
|
"/sol/nslcm/v1/ns_instances/{nsInstanceId}/terminate";
|
|
506
504
|
resolvedPath = __resolvedPath(resolvedPath, input, "nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
|
|
507
505
|
let body;
|
|
508
|
-
body = JSON.stringify({
|
|
509
|
-
|
|
510
|
-
});
|
|
506
|
+
body = JSON.stringify(take(input, {
|
|
507
|
+
tags: (_) => _json(_),
|
|
508
|
+
}));
|
|
511
509
|
return new __HttpRequest({
|
|
512
510
|
protocol,
|
|
513
511
|
hostname,
|
|
@@ -549,9 +547,9 @@ export const se_UpdateSolFunctionPackageCommand = async (input, context) => {
|
|
|
549
547
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}";
|
|
550
548
|
resolvedPath = __resolvedPath(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
|
|
551
549
|
let body;
|
|
552
|
-
body = JSON.stringify({
|
|
553
|
-
|
|
554
|
-
});
|
|
550
|
+
body = JSON.stringify(take(input, {
|
|
551
|
+
operationalState: [],
|
|
552
|
+
}));
|
|
555
553
|
return new __HttpRequest({
|
|
556
554
|
protocol,
|
|
557
555
|
hostname,
|
|
@@ -571,13 +569,11 @@ export const se_UpdateSolNetworkInstanceCommand = async (input, context) => {
|
|
|
571
569
|
"/sol/nslcm/v1/ns_instances/{nsInstanceId}/update";
|
|
572
570
|
resolvedPath = __resolvedPath(resolvedPath, input, "nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
|
|
573
571
|
let body;
|
|
574
|
-
body = JSON.stringify({
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
...(input.updateType != null && { updateType: input.updateType }),
|
|
580
|
-
});
|
|
572
|
+
body = JSON.stringify(take(input, {
|
|
573
|
+
modifyVnfInfoData: (_) => se_UpdateSolNetworkModify(_, context),
|
|
574
|
+
tags: (_) => _json(_),
|
|
575
|
+
updateType: [],
|
|
576
|
+
}));
|
|
581
577
|
return new __HttpRequest({
|
|
582
578
|
protocol,
|
|
583
579
|
hostname,
|
|
@@ -596,9 +592,9 @@ export const se_UpdateSolNetworkPackageCommand = async (input, context) => {
|
|
|
596
592
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors/{nsdInfoId}";
|
|
597
593
|
resolvedPath = __resolvedPath(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
|
|
598
594
|
let body;
|
|
599
|
-
body = JSON.stringify({
|
|
600
|
-
|
|
601
|
-
});
|
|
595
|
+
body = JSON.stringify(take(input, {
|
|
596
|
+
nsdOperationalState: [],
|
|
597
|
+
}));
|
|
602
598
|
return new __HttpRequest({
|
|
603
599
|
protocol,
|
|
604
600
|
hostname,
|
|
@@ -687,10 +683,9 @@ const de_CancelSolNetworkOperationCommandError = async (output, context) => {
|
|
|
687
683
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
688
684
|
default:
|
|
689
685
|
const parsedBody = parsedOutput.body;
|
|
690
|
-
throwDefaultError({
|
|
686
|
+
return throwDefaultError({
|
|
691
687
|
output,
|
|
692
688
|
parsedBody,
|
|
693
|
-
exceptionCtor: __BaseException,
|
|
694
689
|
errorCode,
|
|
695
690
|
});
|
|
696
691
|
}
|
|
@@ -703,24 +698,15 @@ export const de_CreateSolFunctionPackageCommand = async (output, context) => {
|
|
|
703
698
|
$metadata: deserializeMetadata(output),
|
|
704
699
|
});
|
|
705
700
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
if (data.operationalState != null) {
|
|
716
|
-
contents.operationalState = __expectString(data.operationalState);
|
|
717
|
-
}
|
|
718
|
-
if (data.tags != null) {
|
|
719
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
720
|
-
}
|
|
721
|
-
if (data.usageState != null) {
|
|
722
|
-
contents.usageState = __expectString(data.usageState);
|
|
723
|
-
}
|
|
701
|
+
const doc = take(data, {
|
|
702
|
+
arn: __expectString,
|
|
703
|
+
id: __expectString,
|
|
704
|
+
onboardingState: __expectString,
|
|
705
|
+
operationalState: __expectString,
|
|
706
|
+
tags: _json,
|
|
707
|
+
usageState: __expectString,
|
|
708
|
+
});
|
|
709
|
+
Object.assign(contents, doc);
|
|
724
710
|
return contents;
|
|
725
711
|
};
|
|
726
712
|
const de_CreateSolFunctionPackageCommandError = async (output, context) => {
|
|
@@ -747,10 +733,9 @@ const de_CreateSolFunctionPackageCommandError = async (output, context) => {
|
|
|
747
733
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
748
734
|
default:
|
|
749
735
|
const parsedBody = parsedOutput.body;
|
|
750
|
-
throwDefaultError({
|
|
736
|
+
return throwDefaultError({
|
|
751
737
|
output,
|
|
752
738
|
parsedBody,
|
|
753
|
-
exceptionCtor: __BaseException,
|
|
754
739
|
errorCode,
|
|
755
740
|
});
|
|
756
741
|
}
|
|
@@ -763,21 +748,14 @@ export const de_CreateSolNetworkInstanceCommand = async (output, context) => {
|
|
|
763
748
|
$metadata: deserializeMetadata(output),
|
|
764
749
|
});
|
|
765
750
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
}
|
|
775
|
-
if (data.nsdInfoId != null) {
|
|
776
|
-
contents.nsdInfoId = __expectString(data.nsdInfoId);
|
|
777
|
-
}
|
|
778
|
-
if (data.tags != null) {
|
|
779
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
780
|
-
}
|
|
751
|
+
const doc = take(data, {
|
|
752
|
+
arn: __expectString,
|
|
753
|
+
id: __expectString,
|
|
754
|
+
nsInstanceName: __expectString,
|
|
755
|
+
nsdInfoId: __expectString,
|
|
756
|
+
tags: _json,
|
|
757
|
+
});
|
|
758
|
+
Object.assign(contents, doc);
|
|
781
759
|
return contents;
|
|
782
760
|
};
|
|
783
761
|
const de_CreateSolNetworkInstanceCommandError = async (output, context) => {
|
|
@@ -807,10 +785,9 @@ const de_CreateSolNetworkInstanceCommandError = async (output, context) => {
|
|
|
807
785
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
808
786
|
default:
|
|
809
787
|
const parsedBody = parsedOutput.body;
|
|
810
|
-
throwDefaultError({
|
|
788
|
+
return throwDefaultError({
|
|
811
789
|
output,
|
|
812
790
|
parsedBody,
|
|
813
|
-
exceptionCtor: __BaseException,
|
|
814
791
|
errorCode,
|
|
815
792
|
});
|
|
816
793
|
}
|
|
@@ -823,24 +800,15 @@ export const de_CreateSolNetworkPackageCommand = async (output, context) => {
|
|
|
823
800
|
$metadata: deserializeMetadata(output),
|
|
824
801
|
});
|
|
825
802
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
if (data.nsdOperationalState != null) {
|
|
836
|
-
contents.nsdOperationalState = __expectString(data.nsdOperationalState);
|
|
837
|
-
}
|
|
838
|
-
if (data.nsdUsageState != null) {
|
|
839
|
-
contents.nsdUsageState = __expectString(data.nsdUsageState);
|
|
840
|
-
}
|
|
841
|
-
if (data.tags != null) {
|
|
842
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
843
|
-
}
|
|
803
|
+
const doc = take(data, {
|
|
804
|
+
arn: __expectString,
|
|
805
|
+
id: __expectString,
|
|
806
|
+
nsdOnboardingState: __expectString,
|
|
807
|
+
nsdOperationalState: __expectString,
|
|
808
|
+
nsdUsageState: __expectString,
|
|
809
|
+
tags: _json,
|
|
810
|
+
});
|
|
811
|
+
Object.assign(contents, doc);
|
|
844
812
|
return contents;
|
|
845
813
|
};
|
|
846
814
|
const de_CreateSolNetworkPackageCommandError = async (output, context) => {
|
|
@@ -867,10 +835,9 @@ const de_CreateSolNetworkPackageCommandError = async (output, context) => {
|
|
|
867
835
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
868
836
|
default:
|
|
869
837
|
const parsedBody = parsedOutput.body;
|
|
870
|
-
throwDefaultError({
|
|
838
|
+
return throwDefaultError({
|
|
871
839
|
output,
|
|
872
840
|
parsedBody,
|
|
873
|
-
exceptionCtor: __BaseException,
|
|
874
841
|
errorCode,
|
|
875
842
|
});
|
|
876
843
|
}
|
|
@@ -909,10 +876,9 @@ const de_DeleteSolFunctionPackageCommandError = async (output, context) => {
|
|
|
909
876
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
910
877
|
default:
|
|
911
878
|
const parsedBody = parsedOutput.body;
|
|
912
|
-
throwDefaultError({
|
|
879
|
+
return throwDefaultError({
|
|
913
880
|
output,
|
|
914
881
|
parsedBody,
|
|
915
|
-
exceptionCtor: __BaseException,
|
|
916
882
|
errorCode,
|
|
917
883
|
});
|
|
918
884
|
}
|
|
@@ -951,10 +917,9 @@ const de_DeleteSolNetworkInstanceCommandError = async (output, context) => {
|
|
|
951
917
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
952
918
|
default:
|
|
953
919
|
const parsedBody = parsedOutput.body;
|
|
954
|
-
throwDefaultError({
|
|
920
|
+
return throwDefaultError({
|
|
955
921
|
output,
|
|
956
922
|
parsedBody,
|
|
957
|
-
exceptionCtor: __BaseException,
|
|
958
923
|
errorCode,
|
|
959
924
|
});
|
|
960
925
|
}
|
|
@@ -993,10 +958,9 @@ const de_DeleteSolNetworkPackageCommandError = async (output, context) => {
|
|
|
993
958
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
994
959
|
default:
|
|
995
960
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
throwDefaultError({
|
|
961
|
+
return throwDefaultError({
|
|
997
962
|
output,
|
|
998
963
|
parsedBody,
|
|
999
|
-
exceptionCtor: __BaseException,
|
|
1000
964
|
errorCode,
|
|
1001
965
|
});
|
|
1002
966
|
}
|
|
@@ -1009,42 +973,21 @@ export const de_GetSolFunctionInstanceCommand = async (output, context) => {
|
|
|
1009
973
|
$metadata: deserializeMetadata(output),
|
|
1010
974
|
});
|
|
1011
975
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
if (data.nsInstanceId != null) {
|
|
1028
|
-
contents.nsInstanceId = __expectString(data.nsInstanceId);
|
|
1029
|
-
}
|
|
1030
|
-
if (data.tags != null) {
|
|
1031
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1032
|
-
}
|
|
1033
|
-
if (data.vnfPkgId != null) {
|
|
1034
|
-
contents.vnfPkgId = __expectString(data.vnfPkgId);
|
|
1035
|
-
}
|
|
1036
|
-
if (data.vnfProductName != null) {
|
|
1037
|
-
contents.vnfProductName = __expectString(data.vnfProductName);
|
|
1038
|
-
}
|
|
1039
|
-
if (data.vnfProvider != null) {
|
|
1040
|
-
contents.vnfProvider = __expectString(data.vnfProvider);
|
|
1041
|
-
}
|
|
1042
|
-
if (data.vnfdId != null) {
|
|
1043
|
-
contents.vnfdId = __expectString(data.vnfdId);
|
|
1044
|
-
}
|
|
1045
|
-
if (data.vnfdVersion != null) {
|
|
1046
|
-
contents.vnfdVersion = __expectString(data.vnfdVersion);
|
|
1047
|
-
}
|
|
976
|
+
const doc = take(data, {
|
|
977
|
+
arn: __expectString,
|
|
978
|
+
id: __expectString,
|
|
979
|
+
instantiatedVnfInfo: _json,
|
|
980
|
+
instantiationState: __expectString,
|
|
981
|
+
metadata: (_) => de_GetSolFunctionInstanceMetadata(_, context),
|
|
982
|
+
nsInstanceId: __expectString,
|
|
983
|
+
tags: _json,
|
|
984
|
+
vnfPkgId: __expectString,
|
|
985
|
+
vnfProductName: __expectString,
|
|
986
|
+
vnfProvider: __expectString,
|
|
987
|
+
vnfdId: __expectString,
|
|
988
|
+
vnfdVersion: __expectString,
|
|
989
|
+
});
|
|
990
|
+
Object.assign(contents, doc);
|
|
1048
991
|
return contents;
|
|
1049
992
|
};
|
|
1050
993
|
const de_GetSolFunctionInstanceCommandError = async (output, context) => {
|
|
@@ -1071,10 +1014,9 @@ const de_GetSolFunctionInstanceCommandError = async (output, context) => {
|
|
|
1071
1014
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1072
1015
|
default:
|
|
1073
1016
|
const parsedBody = parsedOutput.body;
|
|
1074
|
-
throwDefaultError({
|
|
1017
|
+
return throwDefaultError({
|
|
1075
1018
|
output,
|
|
1076
1019
|
parsedBody,
|
|
1077
|
-
exceptionCtor: __BaseException,
|
|
1078
1020
|
errorCode,
|
|
1079
1021
|
});
|
|
1080
1022
|
}
|
|
@@ -1087,39 +1029,20 @@ export const de_GetSolFunctionPackageCommand = async (output, context) => {
|
|
|
1087
1029
|
$metadata: deserializeMetadata(output),
|
|
1088
1030
|
});
|
|
1089
1031
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
}
|
|
1105
|
-
if (data.tags != null) {
|
|
1106
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1107
|
-
}
|
|
1108
|
-
if (data.usageState != null) {
|
|
1109
|
-
contents.usageState = __expectString(data.usageState);
|
|
1110
|
-
}
|
|
1111
|
-
if (data.vnfProductName != null) {
|
|
1112
|
-
contents.vnfProductName = __expectString(data.vnfProductName);
|
|
1113
|
-
}
|
|
1114
|
-
if (data.vnfProvider != null) {
|
|
1115
|
-
contents.vnfProvider = __expectString(data.vnfProvider);
|
|
1116
|
-
}
|
|
1117
|
-
if (data.vnfdId != null) {
|
|
1118
|
-
contents.vnfdId = __expectString(data.vnfdId);
|
|
1119
|
-
}
|
|
1120
|
-
if (data.vnfdVersion != null) {
|
|
1121
|
-
contents.vnfdVersion = __expectString(data.vnfdVersion);
|
|
1122
|
-
}
|
|
1032
|
+
const doc = take(data, {
|
|
1033
|
+
arn: __expectString,
|
|
1034
|
+
id: __expectString,
|
|
1035
|
+
metadata: (_) => de_GetSolFunctionPackageMetadata(_, context),
|
|
1036
|
+
onboardingState: __expectString,
|
|
1037
|
+
operationalState: __expectString,
|
|
1038
|
+
tags: _json,
|
|
1039
|
+
usageState: __expectString,
|
|
1040
|
+
vnfProductName: __expectString,
|
|
1041
|
+
vnfProvider: __expectString,
|
|
1042
|
+
vnfdId: __expectString,
|
|
1043
|
+
vnfdVersion: __expectString,
|
|
1044
|
+
});
|
|
1045
|
+
Object.assign(contents, doc);
|
|
1123
1046
|
return contents;
|
|
1124
1047
|
};
|
|
1125
1048
|
const de_GetSolFunctionPackageCommandError = async (output, context) => {
|
|
@@ -1146,10 +1069,9 @@ const de_GetSolFunctionPackageCommandError = async (output, context) => {
|
|
|
1146
1069
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1147
1070
|
default:
|
|
1148
1071
|
const parsedBody = parsedOutput.body;
|
|
1149
|
-
throwDefaultError({
|
|
1072
|
+
return throwDefaultError({
|
|
1150
1073
|
output,
|
|
1151
1074
|
parsedBody,
|
|
1152
|
-
exceptionCtor: __BaseException,
|
|
1153
1075
|
errorCode,
|
|
1154
1076
|
});
|
|
1155
1077
|
}
|
|
@@ -1190,10 +1112,9 @@ const de_GetSolFunctionPackageContentCommandError = async (output, context) => {
|
|
|
1190
1112
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1191
1113
|
default:
|
|
1192
1114
|
const parsedBody = parsedOutput.body;
|
|
1193
|
-
throwDefaultError({
|
|
1115
|
+
return throwDefaultError({
|
|
1194
1116
|
output,
|
|
1195
1117
|
parsedBody,
|
|
1196
|
-
exceptionCtor: __BaseException,
|
|
1197
1118
|
errorCode,
|
|
1198
1119
|
});
|
|
1199
1120
|
}
|
|
@@ -1234,10 +1155,9 @@ const de_GetSolFunctionPackageDescriptorCommandError = async (output, context) =
|
|
|
1234
1155
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1235
1156
|
default:
|
|
1236
1157
|
const parsedBody = parsedOutput.body;
|
|
1237
|
-
throwDefaultError({
|
|
1158
|
+
return throwDefaultError({
|
|
1238
1159
|
output,
|
|
1239
1160
|
parsedBody,
|
|
1240
|
-
exceptionCtor: __BaseException,
|
|
1241
1161
|
errorCode,
|
|
1242
1162
|
});
|
|
1243
1163
|
}
|
|
@@ -1250,36 +1170,19 @@ export const de_GetSolNetworkInstanceCommand = async (output, context) => {
|
|
|
1250
1170
|
$metadata: deserializeMetadata(output),
|
|
1251
1171
|
});
|
|
1252
1172
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
contents.nsInstanceDescription = __expectString(data.nsInstanceDescription);
|
|
1267
|
-
}
|
|
1268
|
-
if (data.nsInstanceName != null) {
|
|
1269
|
-
contents.nsInstanceName = __expectString(data.nsInstanceName);
|
|
1270
|
-
}
|
|
1271
|
-
if (data.nsState != null) {
|
|
1272
|
-
contents.nsState = __expectString(data.nsState);
|
|
1273
|
-
}
|
|
1274
|
-
if (data.nsdId != null) {
|
|
1275
|
-
contents.nsdId = __expectString(data.nsdId);
|
|
1276
|
-
}
|
|
1277
|
-
if (data.nsdInfoId != null) {
|
|
1278
|
-
contents.nsdInfoId = __expectString(data.nsdInfoId);
|
|
1279
|
-
}
|
|
1280
|
-
if (data.tags != null) {
|
|
1281
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1282
|
-
}
|
|
1173
|
+
const doc = take(data, {
|
|
1174
|
+
arn: __expectString,
|
|
1175
|
+
id: __expectString,
|
|
1176
|
+
lcmOpInfo: _json,
|
|
1177
|
+
metadata: (_) => de_GetSolNetworkInstanceMetadata(_, context),
|
|
1178
|
+
nsInstanceDescription: __expectString,
|
|
1179
|
+
nsInstanceName: __expectString,
|
|
1180
|
+
nsState: __expectString,
|
|
1181
|
+
nsdId: __expectString,
|
|
1182
|
+
nsdInfoId: __expectString,
|
|
1183
|
+
tags: _json,
|
|
1184
|
+
});
|
|
1185
|
+
Object.assign(contents, doc);
|
|
1283
1186
|
return contents;
|
|
1284
1187
|
};
|
|
1285
1188
|
const de_GetSolNetworkInstanceCommandError = async (output, context) => {
|
|
@@ -1306,10 +1209,9 @@ const de_GetSolNetworkInstanceCommandError = async (output, context) => {
|
|
|
1306
1209
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1307
1210
|
default:
|
|
1308
1211
|
const parsedBody = parsedOutput.body;
|
|
1309
|
-
throwDefaultError({
|
|
1212
|
+
return throwDefaultError({
|
|
1310
1213
|
output,
|
|
1311
1214
|
parsedBody,
|
|
1312
|
-
exceptionCtor: __BaseException,
|
|
1313
1215
|
errorCode,
|
|
1314
1216
|
});
|
|
1315
1217
|
}
|
|
@@ -1322,33 +1224,18 @@ export const de_GetSolNetworkOperationCommand = async (output, context) => {
|
|
|
1322
1224
|
$metadata: deserializeMetadata(output),
|
|
1323
1225
|
});
|
|
1324
1226
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
if (data.metadata != null) {
|
|
1338
|
-
contents.metadata = de_GetSolNetworkOperationMetadata(data.metadata, context);
|
|
1339
|
-
}
|
|
1340
|
-
if (data.nsInstanceId != null) {
|
|
1341
|
-
contents.nsInstanceId = __expectString(data.nsInstanceId);
|
|
1342
|
-
}
|
|
1343
|
-
if (data.operationState != null) {
|
|
1344
|
-
contents.operationState = __expectString(data.operationState);
|
|
1345
|
-
}
|
|
1346
|
-
if (data.tags != null) {
|
|
1347
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1348
|
-
}
|
|
1349
|
-
if (data.tasks != null) {
|
|
1350
|
-
contents.tasks = de_GetSolNetworkOperationTasksList(data.tasks, context);
|
|
1351
|
-
}
|
|
1227
|
+
const doc = take(data, {
|
|
1228
|
+
arn: __expectString,
|
|
1229
|
+
error: _json,
|
|
1230
|
+
id: __expectString,
|
|
1231
|
+
lcmOperationType: __expectString,
|
|
1232
|
+
metadata: (_) => de_GetSolNetworkOperationMetadata(_, context),
|
|
1233
|
+
nsInstanceId: __expectString,
|
|
1234
|
+
operationState: __expectString,
|
|
1235
|
+
tags: _json,
|
|
1236
|
+
tasks: (_) => de_GetSolNetworkOperationTasksList(_, context),
|
|
1237
|
+
});
|
|
1238
|
+
Object.assign(contents, doc);
|
|
1352
1239
|
return contents;
|
|
1353
1240
|
};
|
|
1354
1241
|
const de_GetSolNetworkOperationCommandError = async (output, context) => {
|
|
@@ -1375,10 +1262,9 @@ const de_GetSolNetworkOperationCommandError = async (output, context) => {
|
|
|
1375
1262
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1376
1263
|
default:
|
|
1377
1264
|
const parsedBody = parsedOutput.body;
|
|
1378
|
-
throwDefaultError({
|
|
1265
|
+
return throwDefaultError({
|
|
1379
1266
|
output,
|
|
1380
1267
|
parsedBody,
|
|
1381
|
-
exceptionCtor: __BaseException,
|
|
1382
1268
|
errorCode,
|
|
1383
1269
|
});
|
|
1384
1270
|
}
|
|
@@ -1391,39 +1277,20 @@ export const de_GetSolNetworkPackageCommand = async (output, context) => {
|
|
|
1391
1277
|
$metadata: deserializeMetadata(output),
|
|
1392
1278
|
});
|
|
1393
1279
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
}
|
|
1409
|
-
if (data.nsdOnboardingState != null) {
|
|
1410
|
-
contents.nsdOnboardingState = __expectString(data.nsdOnboardingState);
|
|
1411
|
-
}
|
|
1412
|
-
if (data.nsdOperationalState != null) {
|
|
1413
|
-
contents.nsdOperationalState = __expectString(data.nsdOperationalState);
|
|
1414
|
-
}
|
|
1415
|
-
if (data.nsdUsageState != null) {
|
|
1416
|
-
contents.nsdUsageState = __expectString(data.nsdUsageState);
|
|
1417
|
-
}
|
|
1418
|
-
if (data.nsdVersion != null) {
|
|
1419
|
-
contents.nsdVersion = __expectString(data.nsdVersion);
|
|
1420
|
-
}
|
|
1421
|
-
if (data.tags != null) {
|
|
1422
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1423
|
-
}
|
|
1424
|
-
if (data.vnfPkgIds != null) {
|
|
1425
|
-
contents.vnfPkgIds = de_VnfPkgIdList(data.vnfPkgIds, context);
|
|
1426
|
-
}
|
|
1280
|
+
const doc = take(data, {
|
|
1281
|
+
arn: __expectString,
|
|
1282
|
+
id: __expectString,
|
|
1283
|
+
metadata: (_) => de_GetSolNetworkPackageMetadata(_, context),
|
|
1284
|
+
nsdId: __expectString,
|
|
1285
|
+
nsdName: __expectString,
|
|
1286
|
+
nsdOnboardingState: __expectString,
|
|
1287
|
+
nsdOperationalState: __expectString,
|
|
1288
|
+
nsdUsageState: __expectString,
|
|
1289
|
+
nsdVersion: __expectString,
|
|
1290
|
+
tags: _json,
|
|
1291
|
+
vnfPkgIds: _json,
|
|
1292
|
+
});
|
|
1293
|
+
Object.assign(contents, doc);
|
|
1427
1294
|
return contents;
|
|
1428
1295
|
};
|
|
1429
1296
|
const de_GetSolNetworkPackageCommandError = async (output, context) => {
|
|
@@ -1450,10 +1317,9 @@ const de_GetSolNetworkPackageCommandError = async (output, context) => {
|
|
|
1450
1317
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1451
1318
|
default:
|
|
1452
1319
|
const parsedBody = parsedOutput.body;
|
|
1453
|
-
throwDefaultError({
|
|
1320
|
+
return throwDefaultError({
|
|
1454
1321
|
output,
|
|
1455
1322
|
parsedBody,
|
|
1456
|
-
exceptionCtor: __BaseException,
|
|
1457
1323
|
errorCode,
|
|
1458
1324
|
});
|
|
1459
1325
|
}
|
|
@@ -1494,10 +1360,9 @@ const de_GetSolNetworkPackageContentCommandError = async (output, context) => {
|
|
|
1494
1360
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1495
1361
|
default:
|
|
1496
1362
|
const parsedBody = parsedOutput.body;
|
|
1497
|
-
throwDefaultError({
|
|
1363
|
+
return throwDefaultError({
|
|
1498
1364
|
output,
|
|
1499
1365
|
parsedBody,
|
|
1500
|
-
exceptionCtor: __BaseException,
|
|
1501
1366
|
errorCode,
|
|
1502
1367
|
});
|
|
1503
1368
|
}
|
|
@@ -1538,10 +1403,9 @@ const de_GetSolNetworkPackageDescriptorCommandError = async (output, context) =>
|
|
|
1538
1403
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1539
1404
|
default:
|
|
1540
1405
|
const parsedBody = parsedOutput.body;
|
|
1541
|
-
throwDefaultError({
|
|
1406
|
+
return throwDefaultError({
|
|
1542
1407
|
output,
|
|
1543
1408
|
parsedBody,
|
|
1544
|
-
exceptionCtor: __BaseException,
|
|
1545
1409
|
errorCode,
|
|
1546
1410
|
});
|
|
1547
1411
|
}
|
|
@@ -1554,12 +1418,11 @@ export const de_InstantiateSolNetworkInstanceCommand = async (output, context) =
|
|
|
1554
1418
|
$metadata: deserializeMetadata(output),
|
|
1555
1419
|
});
|
|
1556
1420
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
}
|
|
1421
|
+
const doc = take(data, {
|
|
1422
|
+
nsLcmOpOccId: __expectString,
|
|
1423
|
+
tags: _json,
|
|
1424
|
+
});
|
|
1425
|
+
Object.assign(contents, doc);
|
|
1563
1426
|
return contents;
|
|
1564
1427
|
};
|
|
1565
1428
|
const de_InstantiateSolNetworkInstanceCommandError = async (output, context) => {
|
|
@@ -1589,10 +1452,9 @@ const de_InstantiateSolNetworkInstanceCommandError = async (output, context) =>
|
|
|
1589
1452
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1590
1453
|
default:
|
|
1591
1454
|
const parsedBody = parsedOutput.body;
|
|
1592
|
-
throwDefaultError({
|
|
1455
|
+
return throwDefaultError({
|
|
1593
1456
|
output,
|
|
1594
1457
|
parsedBody,
|
|
1595
|
-
exceptionCtor: __BaseException,
|
|
1596
1458
|
errorCode,
|
|
1597
1459
|
});
|
|
1598
1460
|
}
|
|
@@ -1605,12 +1467,11 @@ export const de_ListSolFunctionInstancesCommand = async (output, context) => {
|
|
|
1605
1467
|
$metadata: deserializeMetadata(output),
|
|
1606
1468
|
});
|
|
1607
1469
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
}
|
|
1470
|
+
const doc = take(data, {
|
|
1471
|
+
functionInstances: (_) => de_ListSolFunctionInstanceResources(_, context),
|
|
1472
|
+
nextToken: __expectString,
|
|
1473
|
+
});
|
|
1474
|
+
Object.assign(contents, doc);
|
|
1614
1475
|
return contents;
|
|
1615
1476
|
};
|
|
1616
1477
|
const de_ListSolFunctionInstancesCommandError = async (output, context) => {
|
|
@@ -1634,10 +1495,9 @@ const de_ListSolFunctionInstancesCommandError = async (output, context) => {
|
|
|
1634
1495
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1635
1496
|
default:
|
|
1636
1497
|
const parsedBody = parsedOutput.body;
|
|
1637
|
-
throwDefaultError({
|
|
1498
|
+
return throwDefaultError({
|
|
1638
1499
|
output,
|
|
1639
1500
|
parsedBody,
|
|
1640
|
-
exceptionCtor: __BaseException,
|
|
1641
1501
|
errorCode,
|
|
1642
1502
|
});
|
|
1643
1503
|
}
|
|
@@ -1650,12 +1510,11 @@ export const de_ListSolFunctionPackagesCommand = async (output, context) => {
|
|
|
1650
1510
|
$metadata: deserializeMetadata(output),
|
|
1651
1511
|
});
|
|
1652
1512
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
}
|
|
1513
|
+
const doc = take(data, {
|
|
1514
|
+
functionPackages: (_) => de_ListSolFunctionPackageResources(_, context),
|
|
1515
|
+
nextToken: __expectString,
|
|
1516
|
+
});
|
|
1517
|
+
Object.assign(contents, doc);
|
|
1659
1518
|
return contents;
|
|
1660
1519
|
};
|
|
1661
1520
|
const de_ListSolFunctionPackagesCommandError = async (output, context) => {
|
|
@@ -1679,10 +1538,9 @@ const de_ListSolFunctionPackagesCommandError = async (output, context) => {
|
|
|
1679
1538
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1680
1539
|
default:
|
|
1681
1540
|
const parsedBody = parsedOutput.body;
|
|
1682
|
-
throwDefaultError({
|
|
1541
|
+
return throwDefaultError({
|
|
1683
1542
|
output,
|
|
1684
1543
|
parsedBody,
|
|
1685
|
-
exceptionCtor: __BaseException,
|
|
1686
1544
|
errorCode,
|
|
1687
1545
|
});
|
|
1688
1546
|
}
|
|
@@ -1695,12 +1553,11 @@ export const de_ListSolNetworkInstancesCommand = async (output, context) => {
|
|
|
1695
1553
|
$metadata: deserializeMetadata(output),
|
|
1696
1554
|
});
|
|
1697
1555
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
}
|
|
1556
|
+
const doc = take(data, {
|
|
1557
|
+
networkInstances: (_) => de_ListSolNetworkInstanceResources(_, context),
|
|
1558
|
+
nextToken: __expectString,
|
|
1559
|
+
});
|
|
1560
|
+
Object.assign(contents, doc);
|
|
1704
1561
|
return contents;
|
|
1705
1562
|
};
|
|
1706
1563
|
const de_ListSolNetworkInstancesCommandError = async (output, context) => {
|
|
@@ -1724,10 +1581,9 @@ const de_ListSolNetworkInstancesCommandError = async (output, context) => {
|
|
|
1724
1581
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1725
1582
|
default:
|
|
1726
1583
|
const parsedBody = parsedOutput.body;
|
|
1727
|
-
throwDefaultError({
|
|
1584
|
+
return throwDefaultError({
|
|
1728
1585
|
output,
|
|
1729
1586
|
parsedBody,
|
|
1730
|
-
exceptionCtor: __BaseException,
|
|
1731
1587
|
errorCode,
|
|
1732
1588
|
});
|
|
1733
1589
|
}
|
|
@@ -1740,12 +1596,11 @@ export const de_ListSolNetworkOperationsCommand = async (output, context) => {
|
|
|
1740
1596
|
$metadata: deserializeMetadata(output),
|
|
1741
1597
|
});
|
|
1742
1598
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
}
|
|
1599
|
+
const doc = take(data, {
|
|
1600
|
+
networkOperations: (_) => de_ListSolNetworkOperationsResources(_, context),
|
|
1601
|
+
nextToken: __expectString,
|
|
1602
|
+
});
|
|
1603
|
+
Object.assign(contents, doc);
|
|
1749
1604
|
return contents;
|
|
1750
1605
|
};
|
|
1751
1606
|
const de_ListSolNetworkOperationsCommandError = async (output, context) => {
|
|
@@ -1769,10 +1624,9 @@ const de_ListSolNetworkOperationsCommandError = async (output, context) => {
|
|
|
1769
1624
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1770
1625
|
default:
|
|
1771
1626
|
const parsedBody = parsedOutput.body;
|
|
1772
|
-
throwDefaultError({
|
|
1627
|
+
return throwDefaultError({
|
|
1773
1628
|
output,
|
|
1774
1629
|
parsedBody,
|
|
1775
|
-
exceptionCtor: __BaseException,
|
|
1776
1630
|
errorCode,
|
|
1777
1631
|
});
|
|
1778
1632
|
}
|
|
@@ -1785,12 +1639,11 @@ export const de_ListSolNetworkPackagesCommand = async (output, context) => {
|
|
|
1785
1639
|
$metadata: deserializeMetadata(output),
|
|
1786
1640
|
});
|
|
1787
1641
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
}
|
|
1642
|
+
const doc = take(data, {
|
|
1643
|
+
networkPackages: (_) => de_ListSolNetworkPackageResources(_, context),
|
|
1644
|
+
nextToken: __expectString,
|
|
1645
|
+
});
|
|
1646
|
+
Object.assign(contents, doc);
|
|
1794
1647
|
return contents;
|
|
1795
1648
|
};
|
|
1796
1649
|
const de_ListSolNetworkPackagesCommandError = async (output, context) => {
|
|
@@ -1814,10 +1667,9 @@ const de_ListSolNetworkPackagesCommandError = async (output, context) => {
|
|
|
1814
1667
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1815
1668
|
default:
|
|
1816
1669
|
const parsedBody = parsedOutput.body;
|
|
1817
|
-
throwDefaultError({
|
|
1670
|
+
return throwDefaultError({
|
|
1818
1671
|
output,
|
|
1819
1672
|
parsedBody,
|
|
1820
|
-
exceptionCtor: __BaseException,
|
|
1821
1673
|
errorCode,
|
|
1822
1674
|
});
|
|
1823
1675
|
}
|
|
@@ -1830,9 +1682,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1830
1682
|
$metadata: deserializeMetadata(output),
|
|
1831
1683
|
});
|
|
1832
1684
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
}
|
|
1685
|
+
const doc = take(data, {
|
|
1686
|
+
tags: _json,
|
|
1687
|
+
});
|
|
1688
|
+
Object.assign(contents, doc);
|
|
1836
1689
|
return contents;
|
|
1837
1690
|
};
|
|
1838
1691
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1859,10 +1712,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1859
1712
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1860
1713
|
default:
|
|
1861
1714
|
const parsedBody = parsedOutput.body;
|
|
1862
|
-
throwDefaultError({
|
|
1715
|
+
return throwDefaultError({
|
|
1863
1716
|
output,
|
|
1864
1717
|
parsedBody,
|
|
1865
|
-
exceptionCtor: __BaseException,
|
|
1866
1718
|
errorCode,
|
|
1867
1719
|
});
|
|
1868
1720
|
}
|
|
@@ -1875,24 +1727,15 @@ export const de_PutSolFunctionPackageContentCommand = async (output, context) =>
|
|
|
1875
1727
|
$metadata: deserializeMetadata(output),
|
|
1876
1728
|
});
|
|
1877
1729
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
if (data.vnfProvider != null) {
|
|
1888
|
-
contents.vnfProvider = __expectString(data.vnfProvider);
|
|
1889
|
-
}
|
|
1890
|
-
if (data.vnfdId != null) {
|
|
1891
|
-
contents.vnfdId = __expectString(data.vnfdId);
|
|
1892
|
-
}
|
|
1893
|
-
if (data.vnfdVersion != null) {
|
|
1894
|
-
contents.vnfdVersion = __expectString(data.vnfdVersion);
|
|
1895
|
-
}
|
|
1730
|
+
const doc = take(data, {
|
|
1731
|
+
id: __expectString,
|
|
1732
|
+
metadata: _json,
|
|
1733
|
+
vnfProductName: __expectString,
|
|
1734
|
+
vnfProvider: __expectString,
|
|
1735
|
+
vnfdId: __expectString,
|
|
1736
|
+
vnfdVersion: __expectString,
|
|
1737
|
+
});
|
|
1738
|
+
Object.assign(contents, doc);
|
|
1896
1739
|
return contents;
|
|
1897
1740
|
};
|
|
1898
1741
|
const de_PutSolFunctionPackageContentCommandError = async (output, context) => {
|
|
@@ -1919,10 +1762,9 @@ const de_PutSolFunctionPackageContentCommandError = async (output, context) => {
|
|
|
1919
1762
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1920
1763
|
default:
|
|
1921
1764
|
const parsedBody = parsedOutput.body;
|
|
1922
|
-
throwDefaultError({
|
|
1765
|
+
return throwDefaultError({
|
|
1923
1766
|
output,
|
|
1924
1767
|
parsedBody,
|
|
1925
|
-
exceptionCtor: __BaseException,
|
|
1926
1768
|
errorCode,
|
|
1927
1769
|
});
|
|
1928
1770
|
}
|
|
@@ -1935,27 +1777,16 @@ export const de_PutSolNetworkPackageContentCommand = async (output, context) =>
|
|
|
1935
1777
|
$metadata: deserializeMetadata(output),
|
|
1936
1778
|
});
|
|
1937
1779
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
contents.nsdId = __expectString(data.nsdId);
|
|
1949
|
-
}
|
|
1950
|
-
if (data.nsdName != null) {
|
|
1951
|
-
contents.nsdName = __expectString(data.nsdName);
|
|
1952
|
-
}
|
|
1953
|
-
if (data.nsdVersion != null) {
|
|
1954
|
-
contents.nsdVersion = __expectString(data.nsdVersion);
|
|
1955
|
-
}
|
|
1956
|
-
if (data.vnfPkgIds != null) {
|
|
1957
|
-
contents.vnfPkgIds = de_VnfPkgIdList(data.vnfPkgIds, context);
|
|
1958
|
-
}
|
|
1780
|
+
const doc = take(data, {
|
|
1781
|
+
arn: __expectString,
|
|
1782
|
+
id: __expectString,
|
|
1783
|
+
metadata: _json,
|
|
1784
|
+
nsdId: __expectString,
|
|
1785
|
+
nsdName: __expectString,
|
|
1786
|
+
nsdVersion: __expectString,
|
|
1787
|
+
vnfPkgIds: _json,
|
|
1788
|
+
});
|
|
1789
|
+
Object.assign(contents, doc);
|
|
1959
1790
|
return contents;
|
|
1960
1791
|
};
|
|
1961
1792
|
const de_PutSolNetworkPackageContentCommandError = async (output, context) => {
|
|
@@ -1982,10 +1813,9 @@ const de_PutSolNetworkPackageContentCommandError = async (output, context) => {
|
|
|
1982
1813
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1983
1814
|
default:
|
|
1984
1815
|
const parsedBody = parsedOutput.body;
|
|
1985
|
-
throwDefaultError({
|
|
1816
|
+
return throwDefaultError({
|
|
1986
1817
|
output,
|
|
1987
1818
|
parsedBody,
|
|
1988
|
-
exceptionCtor: __BaseException,
|
|
1989
1819
|
errorCode,
|
|
1990
1820
|
});
|
|
1991
1821
|
}
|
|
@@ -2024,10 +1854,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2024
1854
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2025
1855
|
default:
|
|
2026
1856
|
const parsedBody = parsedOutput.body;
|
|
2027
|
-
throwDefaultError({
|
|
1857
|
+
return throwDefaultError({
|
|
2028
1858
|
output,
|
|
2029
1859
|
parsedBody,
|
|
2030
|
-
exceptionCtor: __BaseException,
|
|
2031
1860
|
errorCode,
|
|
2032
1861
|
});
|
|
2033
1862
|
}
|
|
@@ -2040,12 +1869,11 @@ export const de_TerminateSolNetworkInstanceCommand = async (output, context) =>
|
|
|
2040
1869
|
$metadata: deserializeMetadata(output),
|
|
2041
1870
|
});
|
|
2042
1871
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
}
|
|
1872
|
+
const doc = take(data, {
|
|
1873
|
+
nsLcmOpOccId: __expectString,
|
|
1874
|
+
tags: _json,
|
|
1875
|
+
});
|
|
1876
|
+
Object.assign(contents, doc);
|
|
2049
1877
|
return contents;
|
|
2050
1878
|
};
|
|
2051
1879
|
const de_TerminateSolNetworkInstanceCommandError = async (output, context) => {
|
|
@@ -2075,10 +1903,9 @@ const de_TerminateSolNetworkInstanceCommandError = async (output, context) => {
|
|
|
2075
1903
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2076
1904
|
default:
|
|
2077
1905
|
const parsedBody = parsedOutput.body;
|
|
2078
|
-
throwDefaultError({
|
|
1906
|
+
return throwDefaultError({
|
|
2079
1907
|
output,
|
|
2080
1908
|
parsedBody,
|
|
2081
|
-
exceptionCtor: __BaseException,
|
|
2082
1909
|
errorCode,
|
|
2083
1910
|
});
|
|
2084
1911
|
}
|
|
@@ -2117,10 +1944,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2117
1944
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2118
1945
|
default:
|
|
2119
1946
|
const parsedBody = parsedOutput.body;
|
|
2120
|
-
throwDefaultError({
|
|
1947
|
+
return throwDefaultError({
|
|
2121
1948
|
output,
|
|
2122
1949
|
parsedBody,
|
|
2123
|
-
exceptionCtor: __BaseException,
|
|
2124
1950
|
errorCode,
|
|
2125
1951
|
});
|
|
2126
1952
|
}
|
|
@@ -2133,9 +1959,10 @@ export const de_UpdateSolFunctionPackageCommand = async (output, context) => {
|
|
|
2133
1959
|
$metadata: deserializeMetadata(output),
|
|
2134
1960
|
});
|
|
2135
1961
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
}
|
|
1962
|
+
const doc = take(data, {
|
|
1963
|
+
operationalState: __expectString,
|
|
1964
|
+
});
|
|
1965
|
+
Object.assign(contents, doc);
|
|
2139
1966
|
return contents;
|
|
2140
1967
|
};
|
|
2141
1968
|
const de_UpdateSolFunctionPackageCommandError = async (output, context) => {
|
|
@@ -2162,10 +1989,9 @@ const de_UpdateSolFunctionPackageCommandError = async (output, context) => {
|
|
|
2162
1989
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2163
1990
|
default:
|
|
2164
1991
|
const parsedBody = parsedOutput.body;
|
|
2165
|
-
throwDefaultError({
|
|
1992
|
+
return throwDefaultError({
|
|
2166
1993
|
output,
|
|
2167
1994
|
parsedBody,
|
|
2168
|
-
exceptionCtor: __BaseException,
|
|
2169
1995
|
errorCode,
|
|
2170
1996
|
});
|
|
2171
1997
|
}
|
|
@@ -2178,12 +2004,11 @@ export const de_UpdateSolNetworkInstanceCommand = async (output, context) => {
|
|
|
2178
2004
|
$metadata: deserializeMetadata(output),
|
|
2179
2005
|
});
|
|
2180
2006
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
}
|
|
2007
|
+
const doc = take(data, {
|
|
2008
|
+
nsLcmOpOccId: __expectString,
|
|
2009
|
+
tags: _json,
|
|
2010
|
+
});
|
|
2011
|
+
Object.assign(contents, doc);
|
|
2187
2012
|
return contents;
|
|
2188
2013
|
};
|
|
2189
2014
|
const de_UpdateSolNetworkInstanceCommandError = async (output, context) => {
|
|
@@ -2213,10 +2038,9 @@ const de_UpdateSolNetworkInstanceCommandError = async (output, context) => {
|
|
|
2213
2038
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2214
2039
|
default:
|
|
2215
2040
|
const parsedBody = parsedOutput.body;
|
|
2216
|
-
throwDefaultError({
|
|
2041
|
+
return throwDefaultError({
|
|
2217
2042
|
output,
|
|
2218
2043
|
parsedBody,
|
|
2219
|
-
exceptionCtor: __BaseException,
|
|
2220
2044
|
errorCode,
|
|
2221
2045
|
});
|
|
2222
2046
|
}
|
|
@@ -2229,9 +2053,10 @@ export const de_UpdateSolNetworkPackageCommand = async (output, context) => {
|
|
|
2229
2053
|
$metadata: deserializeMetadata(output),
|
|
2230
2054
|
});
|
|
2231
2055
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
}
|
|
2056
|
+
const doc = take(data, {
|
|
2057
|
+
nsdOperationalState: __expectString,
|
|
2058
|
+
});
|
|
2059
|
+
Object.assign(contents, doc);
|
|
2235
2060
|
return contents;
|
|
2236
2061
|
};
|
|
2237
2062
|
const de_UpdateSolNetworkPackageCommandError = async (output, context) => {
|
|
@@ -2258,10 +2083,9 @@ const de_UpdateSolNetworkPackageCommandError = async (output, context) => {
|
|
|
2258
2083
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2259
2084
|
default:
|
|
2260
2085
|
const parsedBody = parsedOutput.body;
|
|
2261
|
-
throwDefaultError({
|
|
2086
|
+
return throwDefaultError({
|
|
2262
2087
|
output,
|
|
2263
2088
|
parsedBody,
|
|
2264
|
-
exceptionCtor: __BaseException,
|
|
2265
2089
|
errorCode,
|
|
2266
2090
|
});
|
|
2267
2091
|
}
|
|
@@ -2274,24 +2098,15 @@ export const de_ValidateSolFunctionPackageContentCommand = async (output, contex
|
|
|
2274
2098
|
$metadata: deserializeMetadata(output),
|
|
2275
2099
|
});
|
|
2276
2100
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
if (data.vnfProvider != null) {
|
|
2287
|
-
contents.vnfProvider = __expectString(data.vnfProvider);
|
|
2288
|
-
}
|
|
2289
|
-
if (data.vnfdId != null) {
|
|
2290
|
-
contents.vnfdId = __expectString(data.vnfdId);
|
|
2291
|
-
}
|
|
2292
|
-
if (data.vnfdVersion != null) {
|
|
2293
|
-
contents.vnfdVersion = __expectString(data.vnfdVersion);
|
|
2294
|
-
}
|
|
2101
|
+
const doc = take(data, {
|
|
2102
|
+
id: __expectString,
|
|
2103
|
+
metadata: _json,
|
|
2104
|
+
vnfProductName: __expectString,
|
|
2105
|
+
vnfProvider: __expectString,
|
|
2106
|
+
vnfdId: __expectString,
|
|
2107
|
+
vnfdVersion: __expectString,
|
|
2108
|
+
});
|
|
2109
|
+
Object.assign(contents, doc);
|
|
2295
2110
|
return contents;
|
|
2296
2111
|
};
|
|
2297
2112
|
const de_ValidateSolFunctionPackageContentCommandError = async (output, context) => {
|
|
@@ -2318,10 +2133,9 @@ const de_ValidateSolFunctionPackageContentCommandError = async (output, context)
|
|
|
2318
2133
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2319
2134
|
default:
|
|
2320
2135
|
const parsedBody = parsedOutput.body;
|
|
2321
|
-
throwDefaultError({
|
|
2136
|
+
return throwDefaultError({
|
|
2322
2137
|
output,
|
|
2323
2138
|
parsedBody,
|
|
2324
|
-
exceptionCtor: __BaseException,
|
|
2325
2139
|
errorCode,
|
|
2326
2140
|
});
|
|
2327
2141
|
}
|
|
@@ -2334,27 +2148,16 @@ export const de_ValidateSolNetworkPackageContentCommand = async (output, context
|
|
|
2334
2148
|
$metadata: deserializeMetadata(output),
|
|
2335
2149
|
});
|
|
2336
2150
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
}
|
|
2346
|
-
|
|
2347
|
-
contents.nsdId = __expectString(data.nsdId);
|
|
2348
|
-
}
|
|
2349
|
-
if (data.nsdName != null) {
|
|
2350
|
-
contents.nsdName = __expectString(data.nsdName);
|
|
2351
|
-
}
|
|
2352
|
-
if (data.nsdVersion != null) {
|
|
2353
|
-
contents.nsdVersion = __expectString(data.nsdVersion);
|
|
2354
|
-
}
|
|
2355
|
-
if (data.vnfPkgIds != null) {
|
|
2356
|
-
contents.vnfPkgIds = de_VnfPkgIdList(data.vnfPkgIds, context);
|
|
2357
|
-
}
|
|
2151
|
+
const doc = take(data, {
|
|
2152
|
+
arn: __expectString,
|
|
2153
|
+
id: __expectString,
|
|
2154
|
+
metadata: _json,
|
|
2155
|
+
nsdId: __expectString,
|
|
2156
|
+
nsdName: __expectString,
|
|
2157
|
+
nsdVersion: __expectString,
|
|
2158
|
+
vnfPkgIds: _json,
|
|
2159
|
+
});
|
|
2160
|
+
Object.assign(contents, doc);
|
|
2358
2161
|
return contents;
|
|
2359
2162
|
};
|
|
2360
2163
|
const de_ValidateSolNetworkPackageContentCommandError = async (output, context) => {
|
|
@@ -2381,21 +2184,21 @@ const de_ValidateSolNetworkPackageContentCommandError = async (output, context)
|
|
|
2381
2184
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2382
2185
|
default:
|
|
2383
2186
|
const parsedBody = parsedOutput.body;
|
|
2384
|
-
throwDefaultError({
|
|
2187
|
+
return throwDefaultError({
|
|
2385
2188
|
output,
|
|
2386
2189
|
parsedBody,
|
|
2387
|
-
exceptionCtor: __BaseException,
|
|
2388
2190
|
errorCode,
|
|
2389
2191
|
});
|
|
2390
2192
|
}
|
|
2391
2193
|
};
|
|
2392
|
-
const
|
|
2194
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2393
2195
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2394
2196
|
const contents = map({});
|
|
2395
2197
|
const data = parsedOutput.body;
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
}
|
|
2198
|
+
const doc = take(data, {
|
|
2199
|
+
message: __expectString,
|
|
2200
|
+
});
|
|
2201
|
+
Object.assign(contents, doc);
|
|
2399
2202
|
const exception = new AccessDeniedException({
|
|
2400
2203
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2401
2204
|
...contents,
|
|
@@ -2405,9 +2208,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2405
2208
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2406
2209
|
const contents = map({});
|
|
2407
2210
|
const data = parsedOutput.body;
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
}
|
|
2211
|
+
const doc = take(data, {
|
|
2212
|
+
message: __expectString,
|
|
2213
|
+
});
|
|
2214
|
+
Object.assign(contents, doc);
|
|
2411
2215
|
const exception = new InternalServerException({
|
|
2412
2216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2413
2217
|
...contents,
|
|
@@ -2417,9 +2221,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2417
2221
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2418
2222
|
const contents = map({});
|
|
2419
2223
|
const data = parsedOutput.body;
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
}
|
|
2224
|
+
const doc = take(data, {
|
|
2225
|
+
message: __expectString,
|
|
2226
|
+
});
|
|
2227
|
+
Object.assign(contents, doc);
|
|
2423
2228
|
const exception = new ResourceNotFoundException({
|
|
2424
2229
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2425
2230
|
...contents,
|
|
@@ -2429,9 +2234,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2429
2234
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2430
2235
|
const contents = map({});
|
|
2431
2236
|
const data = parsedOutput.body;
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
}
|
|
2237
|
+
const doc = take(data, {
|
|
2238
|
+
message: __expectString,
|
|
2239
|
+
});
|
|
2240
|
+
Object.assign(contents, doc);
|
|
2435
2241
|
const exception = new ServiceQuotaExceededException({
|
|
2436
2242
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2437
2243
|
...contents,
|
|
@@ -2441,9 +2247,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2441
2247
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2442
2248
|
const contents = map({});
|
|
2443
2249
|
const data = parsedOutput.body;
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
}
|
|
2250
|
+
const doc = take(data, {
|
|
2251
|
+
message: __expectString,
|
|
2252
|
+
});
|
|
2253
|
+
Object.assign(contents, doc);
|
|
2447
2254
|
const exception = new ThrottlingException({
|
|
2448
2255
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2449
2256
|
...contents,
|
|
@@ -2453,369 +2260,210 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2453
2260
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2454
2261
|
const contents = map({});
|
|
2455
2262
|
const data = parsedOutput.body;
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
}
|
|
2263
|
+
const doc = take(data, {
|
|
2264
|
+
message: __expectString,
|
|
2265
|
+
});
|
|
2266
|
+
Object.assign(contents, doc);
|
|
2459
2267
|
const exception = new ValidationException({
|
|
2460
2268
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2461
2269
|
...contents,
|
|
2462
2270
|
});
|
|
2463
2271
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2464
2272
|
};
|
|
2465
|
-
const se_TagMap = (input, context) => {
|
|
2466
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2467
|
-
if (value === null) {
|
|
2468
|
-
return acc;
|
|
2469
|
-
}
|
|
2470
|
-
acc[key] = value;
|
|
2471
|
-
return acc;
|
|
2472
|
-
}, {});
|
|
2473
|
-
};
|
|
2474
2273
|
const se_UpdateSolNetworkModify = (input, context) => {
|
|
2475
|
-
return {
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
...(input.vnfInstanceId != null && { vnfInstanceId: input.vnfInstanceId }),
|
|
2480
|
-
};
|
|
2274
|
+
return take(input, {
|
|
2275
|
+
vnfConfigurableProperties: (_) => se_Document(_, context),
|
|
2276
|
+
vnfInstanceId: [],
|
|
2277
|
+
});
|
|
2481
2278
|
};
|
|
2482
2279
|
const se_Document = (input, context) => {
|
|
2483
2280
|
return input;
|
|
2484
2281
|
};
|
|
2485
|
-
const de_ErrorInfo = (output, context) => {
|
|
2486
|
-
return {
|
|
2487
|
-
cause: __expectString(output.cause),
|
|
2488
|
-
details: __expectString(output.details),
|
|
2489
|
-
};
|
|
2490
|
-
};
|
|
2491
|
-
const de_FunctionArtifactMeta = (output, context) => {
|
|
2492
|
-
return {
|
|
2493
|
-
overrides: output.overrides != null ? de_OverrideList(output.overrides, context) : undefined,
|
|
2494
|
-
};
|
|
2495
|
-
};
|
|
2496
2282
|
const de_GetSolFunctionInstanceMetadata = (output, context) => {
|
|
2497
|
-
return {
|
|
2498
|
-
createdAt:
|
|
2499
|
-
lastModified:
|
|
2500
|
-
};
|
|
2283
|
+
return take(output, {
|
|
2284
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2285
|
+
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2286
|
+
});
|
|
2501
2287
|
};
|
|
2502
2288
|
const de_GetSolFunctionPackageMetadata = (output, context) => {
|
|
2503
|
-
return {
|
|
2504
|
-
createdAt:
|
|
2505
|
-
lastModified:
|
|
2506
|
-
vnfd:
|
|
2507
|
-
};
|
|
2508
|
-
};
|
|
2509
|
-
const de_GetSolInstantiatedVnfInfo = (output, context) => {
|
|
2510
|
-
return {
|
|
2511
|
-
vnfState: __expectString(output.vnfState),
|
|
2512
|
-
};
|
|
2289
|
+
return take(output, {
|
|
2290
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2291
|
+
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2292
|
+
vnfd: _json,
|
|
2293
|
+
});
|
|
2513
2294
|
};
|
|
2514
2295
|
const de_GetSolNetworkInstanceMetadata = (output, context) => {
|
|
2515
|
-
return {
|
|
2516
|
-
createdAt:
|
|
2517
|
-
lastModified:
|
|
2518
|
-
};
|
|
2296
|
+
return take(output, {
|
|
2297
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2298
|
+
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2299
|
+
});
|
|
2519
2300
|
};
|
|
2520
2301
|
const de_GetSolNetworkOperationMetadata = (output, context) => {
|
|
2521
|
-
return {
|
|
2522
|
-
createdAt:
|
|
2523
|
-
lastModified:
|
|
2524
|
-
};
|
|
2302
|
+
return take(output, {
|
|
2303
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2304
|
+
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2305
|
+
});
|
|
2525
2306
|
};
|
|
2526
2307
|
const de_GetSolNetworkOperationTaskDetails = (output, context) => {
|
|
2527
|
-
return {
|
|
2528
|
-
taskContext:
|
|
2529
|
-
taskEndTime:
|
|
2530
|
-
taskErrorDetails:
|
|
2531
|
-
taskName: __expectString
|
|
2532
|
-
taskStartTime:
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
taskStatus: __expectString(output.taskStatus),
|
|
2536
|
-
};
|
|
2308
|
+
return take(output, {
|
|
2309
|
+
taskContext: _json,
|
|
2310
|
+
taskEndTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2311
|
+
taskErrorDetails: _json,
|
|
2312
|
+
taskName: __expectString,
|
|
2313
|
+
taskStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2314
|
+
taskStatus: __expectString,
|
|
2315
|
+
});
|
|
2537
2316
|
};
|
|
2538
2317
|
const de_GetSolNetworkOperationTasksList = (output, context) => {
|
|
2539
2318
|
const retVal = (output || [])
|
|
2540
2319
|
.filter((e) => e != null)
|
|
2541
2320
|
.map((entry) => {
|
|
2542
|
-
if (entry === null) {
|
|
2543
|
-
return null;
|
|
2544
|
-
}
|
|
2545
2321
|
return de_GetSolNetworkOperationTaskDetails(entry, context);
|
|
2546
2322
|
});
|
|
2547
2323
|
return retVal;
|
|
2548
2324
|
};
|
|
2549
2325
|
const de_GetSolNetworkPackageMetadata = (output, context) => {
|
|
2550
|
-
return {
|
|
2551
|
-
createdAt:
|
|
2552
|
-
lastModified:
|
|
2553
|
-
nsd:
|
|
2554
|
-
};
|
|
2555
|
-
};
|
|
2556
|
-
const de_GetSolVnfcResourceInfo = (output, context) => {
|
|
2557
|
-
return {
|
|
2558
|
-
metadata: output.metadata != null ? de_GetSolVnfcResourceInfoMetadata(output.metadata, context) : undefined,
|
|
2559
|
-
};
|
|
2560
|
-
};
|
|
2561
|
-
const de_GetSolVnfcResourceInfoList = (output, context) => {
|
|
2562
|
-
const retVal = (output || [])
|
|
2563
|
-
.filter((e) => e != null)
|
|
2564
|
-
.map((entry) => {
|
|
2565
|
-
if (entry === null) {
|
|
2566
|
-
return null;
|
|
2567
|
-
}
|
|
2568
|
-
return de_GetSolVnfcResourceInfo(entry, context);
|
|
2326
|
+
return take(output, {
|
|
2327
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2328
|
+
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2329
|
+
nsd: _json,
|
|
2569
2330
|
});
|
|
2570
|
-
return retVal;
|
|
2571
|
-
};
|
|
2572
|
-
const de_GetSolVnfcResourceInfoMetadata = (output, context) => {
|
|
2573
|
-
return {
|
|
2574
|
-
cluster: __expectString(output.cluster),
|
|
2575
|
-
helmChart: __expectString(output.helmChart),
|
|
2576
|
-
nodeGroup: __expectString(output.nodeGroup),
|
|
2577
|
-
};
|
|
2578
|
-
};
|
|
2579
|
-
const de_GetSolVnfInfo = (output, context) => {
|
|
2580
|
-
return {
|
|
2581
|
-
vnfState: __expectString(output.vnfState),
|
|
2582
|
-
vnfcResourceInfo: output.vnfcResourceInfo != null ? de_GetSolVnfcResourceInfoList(output.vnfcResourceInfo, context) : undefined,
|
|
2583
|
-
};
|
|
2584
|
-
};
|
|
2585
|
-
const de_LcmOperationInfo = (output, context) => {
|
|
2586
|
-
return {
|
|
2587
|
-
nsLcmOpOccId: __expectString(output.nsLcmOpOccId),
|
|
2588
|
-
};
|
|
2589
2331
|
};
|
|
2590
2332
|
const de_ListSolFunctionInstanceInfo = (output, context) => {
|
|
2591
|
-
return {
|
|
2592
|
-
arn: __expectString
|
|
2593
|
-
id: __expectString
|
|
2594
|
-
instantiatedVnfInfo:
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
vnfPkgName: __expectString(output.vnfPkgName),
|
|
2602
|
-
};
|
|
2333
|
+
return take(output, {
|
|
2334
|
+
arn: __expectString,
|
|
2335
|
+
id: __expectString,
|
|
2336
|
+
instantiatedVnfInfo: _json,
|
|
2337
|
+
instantiationState: __expectString,
|
|
2338
|
+
metadata: (_) => de_ListSolFunctionInstanceMetadata(_, context),
|
|
2339
|
+
nsInstanceId: __expectString,
|
|
2340
|
+
vnfPkgId: __expectString,
|
|
2341
|
+
vnfPkgName: __expectString,
|
|
2342
|
+
});
|
|
2603
2343
|
};
|
|
2604
2344
|
const de_ListSolFunctionInstanceMetadata = (output, context) => {
|
|
2605
|
-
return {
|
|
2606
|
-
createdAt:
|
|
2607
|
-
lastModified:
|
|
2608
|
-
};
|
|
2345
|
+
return take(output, {
|
|
2346
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2347
|
+
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2348
|
+
});
|
|
2609
2349
|
};
|
|
2610
2350
|
const de_ListSolFunctionInstanceResources = (output, context) => {
|
|
2611
2351
|
const retVal = (output || [])
|
|
2612
2352
|
.filter((e) => e != null)
|
|
2613
2353
|
.map((entry) => {
|
|
2614
|
-
if (entry === null) {
|
|
2615
|
-
return null;
|
|
2616
|
-
}
|
|
2617
2354
|
return de_ListSolFunctionInstanceInfo(entry, context);
|
|
2618
2355
|
});
|
|
2619
2356
|
return retVal;
|
|
2620
2357
|
};
|
|
2621
2358
|
const de_ListSolFunctionPackageInfo = (output, context) => {
|
|
2622
|
-
return {
|
|
2623
|
-
arn: __expectString
|
|
2624
|
-
id: __expectString
|
|
2625
|
-
metadata:
|
|
2626
|
-
onboardingState: __expectString
|
|
2627
|
-
operationalState: __expectString
|
|
2628
|
-
usageState: __expectString
|
|
2629
|
-
vnfProductName: __expectString
|
|
2630
|
-
vnfProvider: __expectString
|
|
2631
|
-
vnfdId: __expectString
|
|
2632
|
-
vnfdVersion: __expectString
|
|
2633
|
-
};
|
|
2359
|
+
return take(output, {
|
|
2360
|
+
arn: __expectString,
|
|
2361
|
+
id: __expectString,
|
|
2362
|
+
metadata: (_) => de_ListSolFunctionPackageMetadata(_, context),
|
|
2363
|
+
onboardingState: __expectString,
|
|
2364
|
+
operationalState: __expectString,
|
|
2365
|
+
usageState: __expectString,
|
|
2366
|
+
vnfProductName: __expectString,
|
|
2367
|
+
vnfProvider: __expectString,
|
|
2368
|
+
vnfdId: __expectString,
|
|
2369
|
+
vnfdVersion: __expectString,
|
|
2370
|
+
});
|
|
2634
2371
|
};
|
|
2635
2372
|
const de_ListSolFunctionPackageMetadata = (output, context) => {
|
|
2636
|
-
return {
|
|
2637
|
-
createdAt:
|
|
2638
|
-
lastModified:
|
|
2639
|
-
};
|
|
2373
|
+
return take(output, {
|
|
2374
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2375
|
+
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2376
|
+
});
|
|
2640
2377
|
};
|
|
2641
2378
|
const de_ListSolFunctionPackageResources = (output, context) => {
|
|
2642
2379
|
const retVal = (output || [])
|
|
2643
2380
|
.filter((e) => e != null)
|
|
2644
2381
|
.map((entry) => {
|
|
2645
|
-
if (entry === null) {
|
|
2646
|
-
return null;
|
|
2647
|
-
}
|
|
2648
2382
|
return de_ListSolFunctionPackageInfo(entry, context);
|
|
2649
2383
|
});
|
|
2650
2384
|
return retVal;
|
|
2651
2385
|
};
|
|
2652
2386
|
const de_ListSolNetworkInstanceInfo = (output, context) => {
|
|
2653
|
-
return {
|
|
2654
|
-
arn: __expectString
|
|
2655
|
-
id: __expectString
|
|
2656
|
-
metadata:
|
|
2657
|
-
nsInstanceDescription: __expectString
|
|
2658
|
-
nsInstanceName: __expectString
|
|
2659
|
-
nsState: __expectString
|
|
2660
|
-
nsdId: __expectString
|
|
2661
|
-
nsdInfoId: __expectString
|
|
2662
|
-
};
|
|
2387
|
+
return take(output, {
|
|
2388
|
+
arn: __expectString,
|
|
2389
|
+
id: __expectString,
|
|
2390
|
+
metadata: (_) => de_ListSolNetworkInstanceMetadata(_, context),
|
|
2391
|
+
nsInstanceDescription: __expectString,
|
|
2392
|
+
nsInstanceName: __expectString,
|
|
2393
|
+
nsState: __expectString,
|
|
2394
|
+
nsdId: __expectString,
|
|
2395
|
+
nsdInfoId: __expectString,
|
|
2396
|
+
});
|
|
2663
2397
|
};
|
|
2664
2398
|
const de_ListSolNetworkInstanceMetadata = (output, context) => {
|
|
2665
|
-
return {
|
|
2666
|
-
createdAt:
|
|
2667
|
-
lastModified:
|
|
2668
|
-
};
|
|
2399
|
+
return take(output, {
|
|
2400
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2401
|
+
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2402
|
+
});
|
|
2669
2403
|
};
|
|
2670
2404
|
const de_ListSolNetworkInstanceResources = (output, context) => {
|
|
2671
2405
|
const retVal = (output || [])
|
|
2672
2406
|
.filter((e) => e != null)
|
|
2673
2407
|
.map((entry) => {
|
|
2674
|
-
if (entry === null) {
|
|
2675
|
-
return null;
|
|
2676
|
-
}
|
|
2677
2408
|
return de_ListSolNetworkInstanceInfo(entry, context);
|
|
2678
2409
|
});
|
|
2679
2410
|
return retVal;
|
|
2680
2411
|
};
|
|
2681
2412
|
const de_ListSolNetworkOperationsInfo = (output, context) => {
|
|
2682
|
-
return {
|
|
2683
|
-
arn: __expectString
|
|
2684
|
-
error:
|
|
2685
|
-
id: __expectString
|
|
2686
|
-
lcmOperationType: __expectString
|
|
2687
|
-
metadata:
|
|
2688
|
-
nsInstanceId: __expectString
|
|
2689
|
-
operationState: __expectString
|
|
2690
|
-
};
|
|
2413
|
+
return take(output, {
|
|
2414
|
+
arn: __expectString,
|
|
2415
|
+
error: _json,
|
|
2416
|
+
id: __expectString,
|
|
2417
|
+
lcmOperationType: __expectString,
|
|
2418
|
+
metadata: (_) => de_ListSolNetworkOperationsMetadata(_, context),
|
|
2419
|
+
nsInstanceId: __expectString,
|
|
2420
|
+
operationState: __expectString,
|
|
2421
|
+
});
|
|
2691
2422
|
};
|
|
2692
2423
|
const de_ListSolNetworkOperationsMetadata = (output, context) => {
|
|
2693
|
-
return {
|
|
2694
|
-
createdAt:
|
|
2695
|
-
lastModified:
|
|
2696
|
-
};
|
|
2424
|
+
return take(output, {
|
|
2425
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2426
|
+
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2427
|
+
});
|
|
2697
2428
|
};
|
|
2698
2429
|
const de_ListSolNetworkOperationsResources = (output, context) => {
|
|
2699
2430
|
const retVal = (output || [])
|
|
2700
2431
|
.filter((e) => e != null)
|
|
2701
2432
|
.map((entry) => {
|
|
2702
|
-
if (entry === null) {
|
|
2703
|
-
return null;
|
|
2704
|
-
}
|
|
2705
2433
|
return de_ListSolNetworkOperationsInfo(entry, context);
|
|
2706
2434
|
});
|
|
2707
2435
|
return retVal;
|
|
2708
2436
|
};
|
|
2709
2437
|
const de_ListSolNetworkPackageInfo = (output, context) => {
|
|
2710
|
-
return {
|
|
2711
|
-
arn: __expectString
|
|
2712
|
-
id: __expectString
|
|
2713
|
-
metadata:
|
|
2714
|
-
nsdDesigner: __expectString
|
|
2715
|
-
nsdId: __expectString
|
|
2716
|
-
nsdInvariantId: __expectString
|
|
2717
|
-
nsdName: __expectString
|
|
2718
|
-
nsdOnboardingState: __expectString
|
|
2719
|
-
nsdOperationalState: __expectString
|
|
2720
|
-
nsdUsageState: __expectString
|
|
2721
|
-
nsdVersion: __expectString
|
|
2722
|
-
vnfPkgIds:
|
|
2723
|
-
};
|
|
2438
|
+
return take(output, {
|
|
2439
|
+
arn: __expectString,
|
|
2440
|
+
id: __expectString,
|
|
2441
|
+
metadata: (_) => de_ListSolNetworkPackageMetadata(_, context),
|
|
2442
|
+
nsdDesigner: __expectString,
|
|
2443
|
+
nsdId: __expectString,
|
|
2444
|
+
nsdInvariantId: __expectString,
|
|
2445
|
+
nsdName: __expectString,
|
|
2446
|
+
nsdOnboardingState: __expectString,
|
|
2447
|
+
nsdOperationalState: __expectString,
|
|
2448
|
+
nsdUsageState: __expectString,
|
|
2449
|
+
nsdVersion: __expectString,
|
|
2450
|
+
vnfPkgIds: _json,
|
|
2451
|
+
});
|
|
2724
2452
|
};
|
|
2725
2453
|
const de_ListSolNetworkPackageMetadata = (output, context) => {
|
|
2726
|
-
return {
|
|
2727
|
-
createdAt:
|
|
2728
|
-
lastModified:
|
|
2729
|
-
};
|
|
2454
|
+
return take(output, {
|
|
2455
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2456
|
+
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2457
|
+
});
|
|
2730
2458
|
};
|
|
2731
2459
|
const de_ListSolNetworkPackageResources = (output, context) => {
|
|
2732
2460
|
const retVal = (output || [])
|
|
2733
2461
|
.filter((e) => e != null)
|
|
2734
2462
|
.map((entry) => {
|
|
2735
|
-
if (entry === null) {
|
|
2736
|
-
return null;
|
|
2737
|
-
}
|
|
2738
2463
|
return de_ListSolNetworkPackageInfo(entry, context);
|
|
2739
2464
|
});
|
|
2740
2465
|
return retVal;
|
|
2741
2466
|
};
|
|
2742
|
-
const de_NetworkArtifactMeta = (output, context) => {
|
|
2743
|
-
return {
|
|
2744
|
-
overrides: output.overrides != null ? de_OverrideList(output.overrides, context) : undefined,
|
|
2745
|
-
};
|
|
2746
|
-
};
|
|
2747
|
-
const de_OverrideList = (output, context) => {
|
|
2748
|
-
const retVal = (output || [])
|
|
2749
|
-
.filter((e) => e != null)
|
|
2750
|
-
.map((entry) => {
|
|
2751
|
-
if (entry === null) {
|
|
2752
|
-
return null;
|
|
2753
|
-
}
|
|
2754
|
-
return de_ToscaOverride(entry, context);
|
|
2755
|
-
});
|
|
2756
|
-
return retVal;
|
|
2757
|
-
};
|
|
2758
|
-
const de_ProblemDetails = (output, context) => {
|
|
2759
|
-
return {
|
|
2760
|
-
detail: __expectString(output.detail),
|
|
2761
|
-
title: __expectString(output.title),
|
|
2762
|
-
};
|
|
2763
|
-
};
|
|
2764
|
-
const de_PutSolFunctionPackageContentMetadata = (output, context) => {
|
|
2765
|
-
return {
|
|
2766
|
-
vnfd: output.vnfd != null ? de_FunctionArtifactMeta(output.vnfd, context) : undefined,
|
|
2767
|
-
};
|
|
2768
|
-
};
|
|
2769
|
-
const de_PutSolNetworkPackageContentMetadata = (output, context) => {
|
|
2770
|
-
return {
|
|
2771
|
-
nsd: output.nsd != null ? de_NetworkArtifactMeta(output.nsd, context) : undefined,
|
|
2772
|
-
};
|
|
2773
|
-
};
|
|
2774
|
-
const de_StringMap = (output, context) => {
|
|
2775
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2776
|
-
if (value === null) {
|
|
2777
|
-
return acc;
|
|
2778
|
-
}
|
|
2779
|
-
acc[key] = __expectString(value);
|
|
2780
|
-
return acc;
|
|
2781
|
-
}, {});
|
|
2782
|
-
};
|
|
2783
|
-
const de_TagMap = (output, context) => {
|
|
2784
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2785
|
-
if (value === null) {
|
|
2786
|
-
return acc;
|
|
2787
|
-
}
|
|
2788
|
-
acc[key] = __expectString(value);
|
|
2789
|
-
return acc;
|
|
2790
|
-
}, {});
|
|
2791
|
-
};
|
|
2792
|
-
const de_ToscaOverride = (output, context) => {
|
|
2793
|
-
return {
|
|
2794
|
-
defaultValue: __expectString(output.defaultValue),
|
|
2795
|
-
name: __expectString(output.name),
|
|
2796
|
-
};
|
|
2797
|
-
};
|
|
2798
|
-
const de_ValidateSolFunctionPackageContentMetadata = (output, context) => {
|
|
2799
|
-
return {
|
|
2800
|
-
vnfd: output.vnfd != null ? de_FunctionArtifactMeta(output.vnfd, context) : undefined,
|
|
2801
|
-
};
|
|
2802
|
-
};
|
|
2803
|
-
const de_ValidateSolNetworkPackageContentMetadata = (output, context) => {
|
|
2804
|
-
return {
|
|
2805
|
-
nsd: output.nsd != null ? de_NetworkArtifactMeta(output.nsd, context) : undefined,
|
|
2806
|
-
};
|
|
2807
|
-
};
|
|
2808
|
-
const de_VnfPkgIdList = (output, context) => {
|
|
2809
|
-
const retVal = (output || [])
|
|
2810
|
-
.filter((e) => e != null)
|
|
2811
|
-
.map((entry) => {
|
|
2812
|
-
if (entry === null) {
|
|
2813
|
-
return null;
|
|
2814
|
-
}
|
|
2815
|
-
return __expectString(entry);
|
|
2816
|
-
});
|
|
2817
|
-
return retVal;
|
|
2818
|
-
};
|
|
2819
2467
|
const deserializeMetadata = (output) => ({
|
|
2820
2468
|
httpStatusCode: output.statusCode,
|
|
2821
2469
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|