@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
|
@@ -31,9 +31,9 @@ const se_CreateSolFunctionPackageCommand = async (input, context) => {
|
|
|
31
31
|
};
|
|
32
32
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages";
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify({
|
|
35
|
-
|
|
36
|
-
});
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
35
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
36
|
+
}));
|
|
37
37
|
return new protocol_http_1.HttpRequest({
|
|
38
38
|
protocol,
|
|
39
39
|
hostname,
|
|
@@ -52,12 +52,12 @@ const se_CreateSolNetworkInstanceCommand = async (input, context) => {
|
|
|
52
52
|
};
|
|
53
53
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances";
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
});
|
|
55
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
56
|
+
nsDescription: [],
|
|
57
|
+
nsName: [],
|
|
58
|
+
nsdInfoId: [],
|
|
59
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
60
|
+
}));
|
|
61
61
|
return new protocol_http_1.HttpRequest({
|
|
62
62
|
protocol,
|
|
63
63
|
hostname,
|
|
@@ -76,9 +76,9 @@ const se_CreateSolNetworkPackageCommand = async (input, context) => {
|
|
|
76
76
|
};
|
|
77
77
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors";
|
|
78
78
|
let body;
|
|
79
|
-
body = JSON.stringify({
|
|
80
|
-
|
|
81
|
-
});
|
|
79
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
81
|
+
}));
|
|
82
82
|
return new protocol_http_1.HttpRequest({
|
|
83
83
|
protocol,
|
|
84
84
|
hostname,
|
|
@@ -178,7 +178,7 @@ const se_GetSolFunctionPackageCommand = async (input, context) => {
|
|
|
178
178
|
exports.se_GetSolFunctionPackageCommand = se_GetSolFunctionPackageCommand;
|
|
179
179
|
const se_GetSolFunctionPackageContentCommand = async (input, context) => {
|
|
180
180
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
181
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
181
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
182
182
|
accept: input.accept,
|
|
183
183
|
});
|
|
184
184
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -198,7 +198,7 @@ const se_GetSolFunctionPackageContentCommand = async (input, context) => {
|
|
|
198
198
|
exports.se_GetSolFunctionPackageContentCommand = se_GetSolFunctionPackageContentCommand;
|
|
199
199
|
const se_GetSolFunctionPackageDescriptorCommand = async (input, context) => {
|
|
200
200
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
201
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
201
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
202
202
|
accept: input.accept,
|
|
203
203
|
});
|
|
204
204
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -270,7 +270,7 @@ const se_GetSolNetworkPackageCommand = async (input, context) => {
|
|
|
270
270
|
exports.se_GetSolNetworkPackageCommand = se_GetSolNetworkPackageCommand;
|
|
271
271
|
const se_GetSolNetworkPackageContentCommand = async (input, context) => {
|
|
272
272
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
273
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
273
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
274
274
|
accept: input.accept,
|
|
275
275
|
});
|
|
276
276
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -314,16 +314,14 @@ const se_InstantiateSolNetworkInstanceCommand = async (input, context) => {
|
|
|
314
314
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
315
315
|
"/sol/nslcm/v1/ns_instances/{nsInstanceId}/instantiate";
|
|
316
316
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
|
|
317
|
-
const query = map({
|
|
317
|
+
const query = (0, smithy_client_1.map)({
|
|
318
318
|
dry_run: [() => input.dryRun !== void 0, () => input.dryRun.toString()],
|
|
319
319
|
});
|
|
320
320
|
let body;
|
|
321
|
-
body = JSON.stringify({
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
326
|
-
});
|
|
321
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
322
|
+
additionalParamsForNs: (_) => se_Document(_, context),
|
|
323
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
324
|
+
}));
|
|
327
325
|
return new protocol_http_1.HttpRequest({
|
|
328
326
|
protocol,
|
|
329
327
|
hostname,
|
|
@@ -340,7 +338,7 @@ const se_ListSolFunctionInstancesCommand = async (input, context) => {
|
|
|
340
338
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
339
|
const headers = {};
|
|
342
340
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnflcm/v1/vnf_instances";
|
|
343
|
-
const query = map({
|
|
341
|
+
const query = (0, smithy_client_1.map)({
|
|
344
342
|
max_results: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
345
343
|
nextpage_opaque_marker: [, input.nextToken],
|
|
346
344
|
});
|
|
@@ -361,7 +359,7 @@ const se_ListSolFunctionPackagesCommand = async (input, context) => {
|
|
|
361
359
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
362
360
|
const headers = {};
|
|
363
361
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages";
|
|
364
|
-
const query = map({
|
|
362
|
+
const query = (0, smithy_client_1.map)({
|
|
365
363
|
max_results: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
366
364
|
nextpage_opaque_marker: [, input.nextToken],
|
|
367
365
|
});
|
|
@@ -382,7 +380,7 @@ const se_ListSolNetworkInstancesCommand = async (input, context) => {
|
|
|
382
380
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
383
381
|
const headers = {};
|
|
384
382
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances";
|
|
385
|
-
const query = map({
|
|
383
|
+
const query = (0, smithy_client_1.map)({
|
|
386
384
|
max_results: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
387
385
|
nextpage_opaque_marker: [, input.nextToken],
|
|
388
386
|
});
|
|
@@ -403,7 +401,7 @@ const se_ListSolNetworkOperationsCommand = async (input, context) => {
|
|
|
403
401
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
404
402
|
const headers = {};
|
|
405
403
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_lcm_op_occs";
|
|
406
|
-
const query = map({
|
|
404
|
+
const query = (0, smithy_client_1.map)({
|
|
407
405
|
max_results: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
408
406
|
nextpage_opaque_marker: [, input.nextToken],
|
|
409
407
|
});
|
|
@@ -424,7 +422,7 @@ const se_ListSolNetworkPackagesCommand = async (input, context) => {
|
|
|
424
422
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
425
423
|
const headers = {};
|
|
426
424
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors";
|
|
427
|
-
const query = map({
|
|
425
|
+
const query = (0, smithy_client_1.map)({
|
|
428
426
|
max_results: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
429
427
|
nextpage_opaque_marker: [, input.nextToken],
|
|
430
428
|
});
|
|
@@ -460,7 +458,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
460
458
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
461
459
|
const se_PutSolFunctionPackageContentCommand = async (input, context) => {
|
|
462
460
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
463
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
461
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
464
462
|
"content-type": input.contentType || "application/octet-stream",
|
|
465
463
|
});
|
|
466
464
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -483,7 +481,7 @@ const se_PutSolFunctionPackageContentCommand = async (input, context) => {
|
|
|
483
481
|
exports.se_PutSolFunctionPackageContentCommand = se_PutSolFunctionPackageContentCommand;
|
|
484
482
|
const se_PutSolNetworkPackageContentCommand = async (input, context) => {
|
|
485
483
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
486
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
484
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
487
485
|
"content-type": input.contentType || "application/octet-stream",
|
|
488
486
|
});
|
|
489
487
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -512,9 +510,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
512
510
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
513
511
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
514
512
|
let body;
|
|
515
|
-
body = JSON.stringify({
|
|
516
|
-
|
|
517
|
-
});
|
|
513
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
514
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
515
|
+
}));
|
|
518
516
|
return new protocol_http_1.HttpRequest({
|
|
519
517
|
protocol,
|
|
520
518
|
hostname,
|
|
@@ -535,9 +533,9 @@ const se_TerminateSolNetworkInstanceCommand = async (input, context) => {
|
|
|
535
533
|
"/sol/nslcm/v1/ns_instances/{nsInstanceId}/terminate";
|
|
536
534
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
|
|
537
535
|
let body;
|
|
538
|
-
body = JSON.stringify({
|
|
539
|
-
|
|
540
|
-
});
|
|
536
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
537
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
538
|
+
}));
|
|
541
539
|
return new protocol_http_1.HttpRequest({
|
|
542
540
|
protocol,
|
|
543
541
|
hostname,
|
|
@@ -554,7 +552,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
554
552
|
const headers = {};
|
|
555
553
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
556
554
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
557
|
-
const query = map({
|
|
555
|
+
const query = (0, smithy_client_1.map)({
|
|
558
556
|
tagKeys: [
|
|
559
557
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
560
558
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -581,9 +579,9 @@ const se_UpdateSolFunctionPackageCommand = async (input, context) => {
|
|
|
581
579
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}";
|
|
582
580
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
|
|
583
581
|
let body;
|
|
584
|
-
body = JSON.stringify({
|
|
585
|
-
|
|
586
|
-
});
|
|
582
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
583
|
+
operationalState: [],
|
|
584
|
+
}));
|
|
587
585
|
return new protocol_http_1.HttpRequest({
|
|
588
586
|
protocol,
|
|
589
587
|
hostname,
|
|
@@ -604,13 +602,11 @@ const se_UpdateSolNetworkInstanceCommand = async (input, context) => {
|
|
|
604
602
|
"/sol/nslcm/v1/ns_instances/{nsInstanceId}/update";
|
|
605
603
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
|
|
606
604
|
let body;
|
|
607
|
-
body = JSON.stringify({
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
...(input.updateType != null && { updateType: input.updateType }),
|
|
613
|
-
});
|
|
605
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
606
|
+
modifyVnfInfoData: (_) => se_UpdateSolNetworkModify(_, context),
|
|
607
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
608
|
+
updateType: [],
|
|
609
|
+
}));
|
|
614
610
|
return new protocol_http_1.HttpRequest({
|
|
615
611
|
protocol,
|
|
616
612
|
hostname,
|
|
@@ -630,9 +626,9 @@ const se_UpdateSolNetworkPackageCommand = async (input, context) => {
|
|
|
630
626
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors/{nsdInfoId}";
|
|
631
627
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
|
|
632
628
|
let body;
|
|
633
|
-
body = JSON.stringify({
|
|
634
|
-
|
|
635
|
-
});
|
|
629
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
630
|
+
nsdOperationalState: [],
|
|
631
|
+
}));
|
|
636
632
|
return new protocol_http_1.HttpRequest({
|
|
637
633
|
protocol,
|
|
638
634
|
hostname,
|
|
@@ -646,7 +642,7 @@ const se_UpdateSolNetworkPackageCommand = async (input, context) => {
|
|
|
646
642
|
exports.se_UpdateSolNetworkPackageCommand = se_UpdateSolNetworkPackageCommand;
|
|
647
643
|
const se_ValidateSolFunctionPackageContentCommand = async (input, context) => {
|
|
648
644
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
649
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
645
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
650
646
|
"content-type": input.contentType || "application/octet-stream",
|
|
651
647
|
});
|
|
652
648
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -669,7 +665,7 @@ const se_ValidateSolFunctionPackageContentCommand = async (input, context) => {
|
|
|
669
665
|
exports.se_ValidateSolFunctionPackageContentCommand = se_ValidateSolFunctionPackageContentCommand;
|
|
670
666
|
const se_ValidateSolNetworkPackageContentCommand = async (input, context) => {
|
|
671
667
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
672
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
668
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
673
669
|
"content-type": input.contentType || "application/octet-stream",
|
|
674
670
|
});
|
|
675
671
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -694,7 +690,7 @@ const de_CancelSolNetworkOperationCommand = async (output, context) => {
|
|
|
694
690
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
695
691
|
return de_CancelSolNetworkOperationCommandError(output, context);
|
|
696
692
|
}
|
|
697
|
-
const contents = map({
|
|
693
|
+
const contents = (0, smithy_client_1.map)({
|
|
698
694
|
$metadata: deserializeMetadata(output),
|
|
699
695
|
});
|
|
700
696
|
await collectBody(output.body, context);
|
|
@@ -725,10 +721,9 @@ const de_CancelSolNetworkOperationCommandError = async (output, context) => {
|
|
|
725
721
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
726
722
|
default:
|
|
727
723
|
const parsedBody = parsedOutput.body;
|
|
728
|
-
|
|
724
|
+
return throwDefaultError({
|
|
729
725
|
output,
|
|
730
726
|
parsedBody,
|
|
731
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
732
727
|
errorCode,
|
|
733
728
|
});
|
|
734
729
|
}
|
|
@@ -737,28 +732,19 @@ const de_CreateSolFunctionPackageCommand = async (output, context) => {
|
|
|
737
732
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
738
733
|
return de_CreateSolFunctionPackageCommandError(output, context);
|
|
739
734
|
}
|
|
740
|
-
const contents = map({
|
|
735
|
+
const contents = (0, smithy_client_1.map)({
|
|
741
736
|
$metadata: deserializeMetadata(output),
|
|
742
737
|
});
|
|
743
738
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
if (data.operationalState != null) {
|
|
754
|
-
contents.operationalState = (0, smithy_client_1.expectString)(data.operationalState);
|
|
755
|
-
}
|
|
756
|
-
if (data.tags != null) {
|
|
757
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
758
|
-
}
|
|
759
|
-
if (data.usageState != null) {
|
|
760
|
-
contents.usageState = (0, smithy_client_1.expectString)(data.usageState);
|
|
761
|
-
}
|
|
739
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
740
|
+
arn: smithy_client_1.expectString,
|
|
741
|
+
id: smithy_client_1.expectString,
|
|
742
|
+
onboardingState: smithy_client_1.expectString,
|
|
743
|
+
operationalState: smithy_client_1.expectString,
|
|
744
|
+
tags: smithy_client_1._json,
|
|
745
|
+
usageState: smithy_client_1.expectString,
|
|
746
|
+
});
|
|
747
|
+
Object.assign(contents, doc);
|
|
762
748
|
return contents;
|
|
763
749
|
};
|
|
764
750
|
exports.de_CreateSolFunctionPackageCommand = de_CreateSolFunctionPackageCommand;
|
|
@@ -786,10 +772,9 @@ const de_CreateSolFunctionPackageCommandError = async (output, context) => {
|
|
|
786
772
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
787
773
|
default:
|
|
788
774
|
const parsedBody = parsedOutput.body;
|
|
789
|
-
|
|
775
|
+
return throwDefaultError({
|
|
790
776
|
output,
|
|
791
777
|
parsedBody,
|
|
792
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
793
778
|
errorCode,
|
|
794
779
|
});
|
|
795
780
|
}
|
|
@@ -798,25 +783,18 @@ const de_CreateSolNetworkInstanceCommand = async (output, context) => {
|
|
|
798
783
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
799
784
|
return de_CreateSolNetworkInstanceCommandError(output, context);
|
|
800
785
|
}
|
|
801
|
-
const contents = map({
|
|
786
|
+
const contents = (0, smithy_client_1.map)({
|
|
802
787
|
$metadata: deserializeMetadata(output),
|
|
803
788
|
});
|
|
804
789
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
}
|
|
814
|
-
if (data.nsdInfoId != null) {
|
|
815
|
-
contents.nsdInfoId = (0, smithy_client_1.expectString)(data.nsdInfoId);
|
|
816
|
-
}
|
|
817
|
-
if (data.tags != null) {
|
|
818
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
819
|
-
}
|
|
790
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
791
|
+
arn: smithy_client_1.expectString,
|
|
792
|
+
id: smithy_client_1.expectString,
|
|
793
|
+
nsInstanceName: smithy_client_1.expectString,
|
|
794
|
+
nsdInfoId: smithy_client_1.expectString,
|
|
795
|
+
tags: smithy_client_1._json,
|
|
796
|
+
});
|
|
797
|
+
Object.assign(contents, doc);
|
|
820
798
|
return contents;
|
|
821
799
|
};
|
|
822
800
|
exports.de_CreateSolNetworkInstanceCommand = de_CreateSolNetworkInstanceCommand;
|
|
@@ -847,10 +825,9 @@ const de_CreateSolNetworkInstanceCommandError = async (output, context) => {
|
|
|
847
825
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
848
826
|
default:
|
|
849
827
|
const parsedBody = parsedOutput.body;
|
|
850
|
-
|
|
828
|
+
return throwDefaultError({
|
|
851
829
|
output,
|
|
852
830
|
parsedBody,
|
|
853
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
854
831
|
errorCode,
|
|
855
832
|
});
|
|
856
833
|
}
|
|
@@ -859,28 +836,19 @@ const de_CreateSolNetworkPackageCommand = async (output, context) => {
|
|
|
859
836
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
860
837
|
return de_CreateSolNetworkPackageCommandError(output, context);
|
|
861
838
|
}
|
|
862
|
-
const contents = map({
|
|
839
|
+
const contents = (0, smithy_client_1.map)({
|
|
863
840
|
$metadata: deserializeMetadata(output),
|
|
864
841
|
});
|
|
865
842
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
if (data.nsdOperationalState != null) {
|
|
876
|
-
contents.nsdOperationalState = (0, smithy_client_1.expectString)(data.nsdOperationalState);
|
|
877
|
-
}
|
|
878
|
-
if (data.nsdUsageState != null) {
|
|
879
|
-
contents.nsdUsageState = (0, smithy_client_1.expectString)(data.nsdUsageState);
|
|
880
|
-
}
|
|
881
|
-
if (data.tags != null) {
|
|
882
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
883
|
-
}
|
|
843
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
844
|
+
arn: smithy_client_1.expectString,
|
|
845
|
+
id: smithy_client_1.expectString,
|
|
846
|
+
nsdOnboardingState: smithy_client_1.expectString,
|
|
847
|
+
nsdOperationalState: smithy_client_1.expectString,
|
|
848
|
+
nsdUsageState: smithy_client_1.expectString,
|
|
849
|
+
tags: smithy_client_1._json,
|
|
850
|
+
});
|
|
851
|
+
Object.assign(contents, doc);
|
|
884
852
|
return contents;
|
|
885
853
|
};
|
|
886
854
|
exports.de_CreateSolNetworkPackageCommand = de_CreateSolNetworkPackageCommand;
|
|
@@ -908,10 +876,9 @@ const de_CreateSolNetworkPackageCommandError = async (output, context) => {
|
|
|
908
876
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
909
877
|
default:
|
|
910
878
|
const parsedBody = parsedOutput.body;
|
|
911
|
-
|
|
879
|
+
return throwDefaultError({
|
|
912
880
|
output,
|
|
913
881
|
parsedBody,
|
|
914
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
915
882
|
errorCode,
|
|
916
883
|
});
|
|
917
884
|
}
|
|
@@ -920,7 +887,7 @@ const de_DeleteSolFunctionPackageCommand = async (output, context) => {
|
|
|
920
887
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
921
888
|
return de_DeleteSolFunctionPackageCommandError(output, context);
|
|
922
889
|
}
|
|
923
|
-
const contents = map({
|
|
890
|
+
const contents = (0, smithy_client_1.map)({
|
|
924
891
|
$metadata: deserializeMetadata(output),
|
|
925
892
|
});
|
|
926
893
|
await collectBody(output.body, context);
|
|
@@ -951,10 +918,9 @@ const de_DeleteSolFunctionPackageCommandError = async (output, context) => {
|
|
|
951
918
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
952
919
|
default:
|
|
953
920
|
const parsedBody = parsedOutput.body;
|
|
954
|
-
|
|
921
|
+
return throwDefaultError({
|
|
955
922
|
output,
|
|
956
923
|
parsedBody,
|
|
957
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
958
924
|
errorCode,
|
|
959
925
|
});
|
|
960
926
|
}
|
|
@@ -963,7 +929,7 @@ const de_DeleteSolNetworkInstanceCommand = async (output, context) => {
|
|
|
963
929
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
964
930
|
return de_DeleteSolNetworkInstanceCommandError(output, context);
|
|
965
931
|
}
|
|
966
|
-
const contents = map({
|
|
932
|
+
const contents = (0, smithy_client_1.map)({
|
|
967
933
|
$metadata: deserializeMetadata(output),
|
|
968
934
|
});
|
|
969
935
|
await collectBody(output.body, context);
|
|
@@ -994,10 +960,9 @@ const de_DeleteSolNetworkInstanceCommandError = async (output, context) => {
|
|
|
994
960
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
995
961
|
default:
|
|
996
962
|
const parsedBody = parsedOutput.body;
|
|
997
|
-
|
|
963
|
+
return throwDefaultError({
|
|
998
964
|
output,
|
|
999
965
|
parsedBody,
|
|
1000
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1001
966
|
errorCode,
|
|
1002
967
|
});
|
|
1003
968
|
}
|
|
@@ -1006,7 +971,7 @@ const de_DeleteSolNetworkPackageCommand = async (output, context) => {
|
|
|
1006
971
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1007
972
|
return de_DeleteSolNetworkPackageCommandError(output, context);
|
|
1008
973
|
}
|
|
1009
|
-
const contents = map({
|
|
974
|
+
const contents = (0, smithy_client_1.map)({
|
|
1010
975
|
$metadata: deserializeMetadata(output),
|
|
1011
976
|
});
|
|
1012
977
|
await collectBody(output.body, context);
|
|
@@ -1037,10 +1002,9 @@ const de_DeleteSolNetworkPackageCommandError = async (output, context) => {
|
|
|
1037
1002
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1038
1003
|
default:
|
|
1039
1004
|
const parsedBody = parsedOutput.body;
|
|
1040
|
-
|
|
1005
|
+
return throwDefaultError({
|
|
1041
1006
|
output,
|
|
1042
1007
|
parsedBody,
|
|
1043
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1044
1008
|
errorCode,
|
|
1045
1009
|
});
|
|
1046
1010
|
}
|
|
@@ -1049,46 +1013,25 @@ const de_GetSolFunctionInstanceCommand = async (output, context) => {
|
|
|
1049
1013
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1050
1014
|
return de_GetSolFunctionInstanceCommandError(output, context);
|
|
1051
1015
|
}
|
|
1052
|
-
const contents = map({
|
|
1016
|
+
const contents = (0, smithy_client_1.map)({
|
|
1053
1017
|
$metadata: deserializeMetadata(output),
|
|
1054
1018
|
});
|
|
1055
1019
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
if (data.nsInstanceId != null) {
|
|
1072
|
-
contents.nsInstanceId = (0, smithy_client_1.expectString)(data.nsInstanceId);
|
|
1073
|
-
}
|
|
1074
|
-
if (data.tags != null) {
|
|
1075
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1076
|
-
}
|
|
1077
|
-
if (data.vnfPkgId != null) {
|
|
1078
|
-
contents.vnfPkgId = (0, smithy_client_1.expectString)(data.vnfPkgId);
|
|
1079
|
-
}
|
|
1080
|
-
if (data.vnfProductName != null) {
|
|
1081
|
-
contents.vnfProductName = (0, smithy_client_1.expectString)(data.vnfProductName);
|
|
1082
|
-
}
|
|
1083
|
-
if (data.vnfProvider != null) {
|
|
1084
|
-
contents.vnfProvider = (0, smithy_client_1.expectString)(data.vnfProvider);
|
|
1085
|
-
}
|
|
1086
|
-
if (data.vnfdId != null) {
|
|
1087
|
-
contents.vnfdId = (0, smithy_client_1.expectString)(data.vnfdId);
|
|
1088
|
-
}
|
|
1089
|
-
if (data.vnfdVersion != null) {
|
|
1090
|
-
contents.vnfdVersion = (0, smithy_client_1.expectString)(data.vnfdVersion);
|
|
1091
|
-
}
|
|
1020
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1021
|
+
arn: smithy_client_1.expectString,
|
|
1022
|
+
id: smithy_client_1.expectString,
|
|
1023
|
+
instantiatedVnfInfo: smithy_client_1._json,
|
|
1024
|
+
instantiationState: smithy_client_1.expectString,
|
|
1025
|
+
metadata: (_) => de_GetSolFunctionInstanceMetadata(_, context),
|
|
1026
|
+
nsInstanceId: smithy_client_1.expectString,
|
|
1027
|
+
tags: smithy_client_1._json,
|
|
1028
|
+
vnfPkgId: smithy_client_1.expectString,
|
|
1029
|
+
vnfProductName: smithy_client_1.expectString,
|
|
1030
|
+
vnfProvider: smithy_client_1.expectString,
|
|
1031
|
+
vnfdId: smithy_client_1.expectString,
|
|
1032
|
+
vnfdVersion: smithy_client_1.expectString,
|
|
1033
|
+
});
|
|
1034
|
+
Object.assign(contents, doc);
|
|
1092
1035
|
return contents;
|
|
1093
1036
|
};
|
|
1094
1037
|
exports.de_GetSolFunctionInstanceCommand = de_GetSolFunctionInstanceCommand;
|
|
@@ -1116,10 +1059,9 @@ const de_GetSolFunctionInstanceCommandError = async (output, context) => {
|
|
|
1116
1059
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
1060
|
default:
|
|
1118
1061
|
const parsedBody = parsedOutput.body;
|
|
1119
|
-
|
|
1062
|
+
return throwDefaultError({
|
|
1120
1063
|
output,
|
|
1121
1064
|
parsedBody,
|
|
1122
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1123
1065
|
errorCode,
|
|
1124
1066
|
});
|
|
1125
1067
|
}
|
|
@@ -1128,43 +1070,24 @@ const de_GetSolFunctionPackageCommand = async (output, context) => {
|
|
|
1128
1070
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1129
1071
|
return de_GetSolFunctionPackageCommandError(output, context);
|
|
1130
1072
|
}
|
|
1131
|
-
const contents = map({
|
|
1073
|
+
const contents = (0, smithy_client_1.map)({
|
|
1132
1074
|
$metadata: deserializeMetadata(output),
|
|
1133
1075
|
});
|
|
1134
1076
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
}
|
|
1150
|
-
if (data.tags != null) {
|
|
1151
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1152
|
-
}
|
|
1153
|
-
if (data.usageState != null) {
|
|
1154
|
-
contents.usageState = (0, smithy_client_1.expectString)(data.usageState);
|
|
1155
|
-
}
|
|
1156
|
-
if (data.vnfProductName != null) {
|
|
1157
|
-
contents.vnfProductName = (0, smithy_client_1.expectString)(data.vnfProductName);
|
|
1158
|
-
}
|
|
1159
|
-
if (data.vnfProvider != null) {
|
|
1160
|
-
contents.vnfProvider = (0, smithy_client_1.expectString)(data.vnfProvider);
|
|
1161
|
-
}
|
|
1162
|
-
if (data.vnfdId != null) {
|
|
1163
|
-
contents.vnfdId = (0, smithy_client_1.expectString)(data.vnfdId);
|
|
1164
|
-
}
|
|
1165
|
-
if (data.vnfdVersion != null) {
|
|
1166
|
-
contents.vnfdVersion = (0, smithy_client_1.expectString)(data.vnfdVersion);
|
|
1167
|
-
}
|
|
1077
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1078
|
+
arn: smithy_client_1.expectString,
|
|
1079
|
+
id: smithy_client_1.expectString,
|
|
1080
|
+
metadata: (_) => de_GetSolFunctionPackageMetadata(_, context),
|
|
1081
|
+
onboardingState: smithy_client_1.expectString,
|
|
1082
|
+
operationalState: smithy_client_1.expectString,
|
|
1083
|
+
tags: smithy_client_1._json,
|
|
1084
|
+
usageState: smithy_client_1.expectString,
|
|
1085
|
+
vnfProductName: smithy_client_1.expectString,
|
|
1086
|
+
vnfProvider: smithy_client_1.expectString,
|
|
1087
|
+
vnfdId: smithy_client_1.expectString,
|
|
1088
|
+
vnfdVersion: smithy_client_1.expectString,
|
|
1089
|
+
});
|
|
1090
|
+
Object.assign(contents, doc);
|
|
1168
1091
|
return contents;
|
|
1169
1092
|
};
|
|
1170
1093
|
exports.de_GetSolFunctionPackageCommand = de_GetSolFunctionPackageCommand;
|
|
@@ -1192,10 +1115,9 @@ const de_GetSolFunctionPackageCommandError = async (output, context) => {
|
|
|
1192
1115
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1193
1116
|
default:
|
|
1194
1117
|
const parsedBody = parsedOutput.body;
|
|
1195
|
-
|
|
1118
|
+
return throwDefaultError({
|
|
1196
1119
|
output,
|
|
1197
1120
|
parsedBody,
|
|
1198
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1199
1121
|
errorCode,
|
|
1200
1122
|
});
|
|
1201
1123
|
}
|
|
@@ -1204,7 +1126,7 @@ const de_GetSolFunctionPackageContentCommand = async (output, context) => {
|
|
|
1204
1126
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1205
1127
|
return de_GetSolFunctionPackageContentCommandError(output, context);
|
|
1206
1128
|
}
|
|
1207
|
-
const contents = map({
|
|
1129
|
+
const contents = (0, smithy_client_1.map)({
|
|
1208
1130
|
$metadata: deserializeMetadata(output),
|
|
1209
1131
|
contentType: [, output.headers["content-type"]],
|
|
1210
1132
|
});
|
|
@@ -1237,10 +1159,9 @@ const de_GetSolFunctionPackageContentCommandError = async (output, context) => {
|
|
|
1237
1159
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1238
1160
|
default:
|
|
1239
1161
|
const parsedBody = parsedOutput.body;
|
|
1240
|
-
|
|
1162
|
+
return throwDefaultError({
|
|
1241
1163
|
output,
|
|
1242
1164
|
parsedBody,
|
|
1243
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1244
1165
|
errorCode,
|
|
1245
1166
|
});
|
|
1246
1167
|
}
|
|
@@ -1249,7 +1170,7 @@ const de_GetSolFunctionPackageDescriptorCommand = async (output, context) => {
|
|
|
1249
1170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1250
1171
|
return de_GetSolFunctionPackageDescriptorCommandError(output, context);
|
|
1251
1172
|
}
|
|
1252
|
-
const contents = map({
|
|
1173
|
+
const contents = (0, smithy_client_1.map)({
|
|
1253
1174
|
$metadata: deserializeMetadata(output),
|
|
1254
1175
|
contentType: [, output.headers["content-type"]],
|
|
1255
1176
|
});
|
|
@@ -1282,10 +1203,9 @@ const de_GetSolFunctionPackageDescriptorCommandError = async (output, context) =
|
|
|
1282
1203
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1283
1204
|
default:
|
|
1284
1205
|
const parsedBody = parsedOutput.body;
|
|
1285
|
-
|
|
1206
|
+
return throwDefaultError({
|
|
1286
1207
|
output,
|
|
1287
1208
|
parsedBody,
|
|
1288
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1289
1209
|
errorCode,
|
|
1290
1210
|
});
|
|
1291
1211
|
}
|
|
@@ -1294,40 +1214,23 @@ const de_GetSolNetworkInstanceCommand = async (output, context) => {
|
|
|
1294
1214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1295
1215
|
return de_GetSolNetworkInstanceCommandError(output, context);
|
|
1296
1216
|
}
|
|
1297
|
-
const contents = map({
|
|
1217
|
+
const contents = (0, smithy_client_1.map)({
|
|
1298
1218
|
$metadata: deserializeMetadata(output),
|
|
1299
1219
|
});
|
|
1300
1220
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
contents.nsInstanceDescription = (0, smithy_client_1.expectString)(data.nsInstanceDescription);
|
|
1315
|
-
}
|
|
1316
|
-
if (data.nsInstanceName != null) {
|
|
1317
|
-
contents.nsInstanceName = (0, smithy_client_1.expectString)(data.nsInstanceName);
|
|
1318
|
-
}
|
|
1319
|
-
if (data.nsState != null) {
|
|
1320
|
-
contents.nsState = (0, smithy_client_1.expectString)(data.nsState);
|
|
1321
|
-
}
|
|
1322
|
-
if (data.nsdId != null) {
|
|
1323
|
-
contents.nsdId = (0, smithy_client_1.expectString)(data.nsdId);
|
|
1324
|
-
}
|
|
1325
|
-
if (data.nsdInfoId != null) {
|
|
1326
|
-
contents.nsdInfoId = (0, smithy_client_1.expectString)(data.nsdInfoId);
|
|
1327
|
-
}
|
|
1328
|
-
if (data.tags != null) {
|
|
1329
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1330
|
-
}
|
|
1221
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1222
|
+
arn: smithy_client_1.expectString,
|
|
1223
|
+
id: smithy_client_1.expectString,
|
|
1224
|
+
lcmOpInfo: smithy_client_1._json,
|
|
1225
|
+
metadata: (_) => de_GetSolNetworkInstanceMetadata(_, context),
|
|
1226
|
+
nsInstanceDescription: smithy_client_1.expectString,
|
|
1227
|
+
nsInstanceName: smithy_client_1.expectString,
|
|
1228
|
+
nsState: smithy_client_1.expectString,
|
|
1229
|
+
nsdId: smithy_client_1.expectString,
|
|
1230
|
+
nsdInfoId: smithy_client_1.expectString,
|
|
1231
|
+
tags: smithy_client_1._json,
|
|
1232
|
+
});
|
|
1233
|
+
Object.assign(contents, doc);
|
|
1331
1234
|
return contents;
|
|
1332
1235
|
};
|
|
1333
1236
|
exports.de_GetSolNetworkInstanceCommand = de_GetSolNetworkInstanceCommand;
|
|
@@ -1355,10 +1258,9 @@ const de_GetSolNetworkInstanceCommandError = async (output, context) => {
|
|
|
1355
1258
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1356
1259
|
default:
|
|
1357
1260
|
const parsedBody = parsedOutput.body;
|
|
1358
|
-
|
|
1261
|
+
return throwDefaultError({
|
|
1359
1262
|
output,
|
|
1360
1263
|
parsedBody,
|
|
1361
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1362
1264
|
errorCode,
|
|
1363
1265
|
});
|
|
1364
1266
|
}
|
|
@@ -1367,37 +1269,22 @@ const de_GetSolNetworkOperationCommand = async (output, context) => {
|
|
|
1367
1269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1368
1270
|
return de_GetSolNetworkOperationCommandError(output, context);
|
|
1369
1271
|
}
|
|
1370
|
-
const contents = map({
|
|
1272
|
+
const contents = (0, smithy_client_1.map)({
|
|
1371
1273
|
$metadata: deserializeMetadata(output),
|
|
1372
1274
|
});
|
|
1373
1275
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
if (data.metadata != null) {
|
|
1387
|
-
contents.metadata = de_GetSolNetworkOperationMetadata(data.metadata, context);
|
|
1388
|
-
}
|
|
1389
|
-
if (data.nsInstanceId != null) {
|
|
1390
|
-
contents.nsInstanceId = (0, smithy_client_1.expectString)(data.nsInstanceId);
|
|
1391
|
-
}
|
|
1392
|
-
if (data.operationState != null) {
|
|
1393
|
-
contents.operationState = (0, smithy_client_1.expectString)(data.operationState);
|
|
1394
|
-
}
|
|
1395
|
-
if (data.tags != null) {
|
|
1396
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1397
|
-
}
|
|
1398
|
-
if (data.tasks != null) {
|
|
1399
|
-
contents.tasks = de_GetSolNetworkOperationTasksList(data.tasks, context);
|
|
1400
|
-
}
|
|
1276
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1277
|
+
arn: smithy_client_1.expectString,
|
|
1278
|
+
error: smithy_client_1._json,
|
|
1279
|
+
id: smithy_client_1.expectString,
|
|
1280
|
+
lcmOperationType: smithy_client_1.expectString,
|
|
1281
|
+
metadata: (_) => de_GetSolNetworkOperationMetadata(_, context),
|
|
1282
|
+
nsInstanceId: smithy_client_1.expectString,
|
|
1283
|
+
operationState: smithy_client_1.expectString,
|
|
1284
|
+
tags: smithy_client_1._json,
|
|
1285
|
+
tasks: (_) => de_GetSolNetworkOperationTasksList(_, context),
|
|
1286
|
+
});
|
|
1287
|
+
Object.assign(contents, doc);
|
|
1401
1288
|
return contents;
|
|
1402
1289
|
};
|
|
1403
1290
|
exports.de_GetSolNetworkOperationCommand = de_GetSolNetworkOperationCommand;
|
|
@@ -1425,10 +1312,9 @@ const de_GetSolNetworkOperationCommandError = async (output, context) => {
|
|
|
1425
1312
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1426
1313
|
default:
|
|
1427
1314
|
const parsedBody = parsedOutput.body;
|
|
1428
|
-
|
|
1315
|
+
return throwDefaultError({
|
|
1429
1316
|
output,
|
|
1430
1317
|
parsedBody,
|
|
1431
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1432
1318
|
errorCode,
|
|
1433
1319
|
});
|
|
1434
1320
|
}
|
|
@@ -1437,43 +1323,24 @@ const de_GetSolNetworkPackageCommand = async (output, context) => {
|
|
|
1437
1323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1438
1324
|
return de_GetSolNetworkPackageCommandError(output, context);
|
|
1439
1325
|
}
|
|
1440
|
-
const contents = map({
|
|
1326
|
+
const contents = (0, smithy_client_1.map)({
|
|
1441
1327
|
$metadata: deserializeMetadata(output),
|
|
1442
1328
|
});
|
|
1443
1329
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
}
|
|
1459
|
-
if (data.nsdOnboardingState != null) {
|
|
1460
|
-
contents.nsdOnboardingState = (0, smithy_client_1.expectString)(data.nsdOnboardingState);
|
|
1461
|
-
}
|
|
1462
|
-
if (data.nsdOperationalState != null) {
|
|
1463
|
-
contents.nsdOperationalState = (0, smithy_client_1.expectString)(data.nsdOperationalState);
|
|
1464
|
-
}
|
|
1465
|
-
if (data.nsdUsageState != null) {
|
|
1466
|
-
contents.nsdUsageState = (0, smithy_client_1.expectString)(data.nsdUsageState);
|
|
1467
|
-
}
|
|
1468
|
-
if (data.nsdVersion != null) {
|
|
1469
|
-
contents.nsdVersion = (0, smithy_client_1.expectString)(data.nsdVersion);
|
|
1470
|
-
}
|
|
1471
|
-
if (data.tags != null) {
|
|
1472
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
1473
|
-
}
|
|
1474
|
-
if (data.vnfPkgIds != null) {
|
|
1475
|
-
contents.vnfPkgIds = de_VnfPkgIdList(data.vnfPkgIds, context);
|
|
1476
|
-
}
|
|
1330
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1331
|
+
arn: smithy_client_1.expectString,
|
|
1332
|
+
id: smithy_client_1.expectString,
|
|
1333
|
+
metadata: (_) => de_GetSolNetworkPackageMetadata(_, context),
|
|
1334
|
+
nsdId: smithy_client_1.expectString,
|
|
1335
|
+
nsdName: smithy_client_1.expectString,
|
|
1336
|
+
nsdOnboardingState: smithy_client_1.expectString,
|
|
1337
|
+
nsdOperationalState: smithy_client_1.expectString,
|
|
1338
|
+
nsdUsageState: smithy_client_1.expectString,
|
|
1339
|
+
nsdVersion: smithy_client_1.expectString,
|
|
1340
|
+
tags: smithy_client_1._json,
|
|
1341
|
+
vnfPkgIds: smithy_client_1._json,
|
|
1342
|
+
});
|
|
1343
|
+
Object.assign(contents, doc);
|
|
1477
1344
|
return contents;
|
|
1478
1345
|
};
|
|
1479
1346
|
exports.de_GetSolNetworkPackageCommand = de_GetSolNetworkPackageCommand;
|
|
@@ -1501,10 +1368,9 @@ const de_GetSolNetworkPackageCommandError = async (output, context) => {
|
|
|
1501
1368
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1502
1369
|
default:
|
|
1503
1370
|
const parsedBody = parsedOutput.body;
|
|
1504
|
-
|
|
1371
|
+
return throwDefaultError({
|
|
1505
1372
|
output,
|
|
1506
1373
|
parsedBody,
|
|
1507
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1508
1374
|
errorCode,
|
|
1509
1375
|
});
|
|
1510
1376
|
}
|
|
@@ -1513,7 +1379,7 @@ const de_GetSolNetworkPackageContentCommand = async (output, context) => {
|
|
|
1513
1379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1514
1380
|
return de_GetSolNetworkPackageContentCommandError(output, context);
|
|
1515
1381
|
}
|
|
1516
|
-
const contents = map({
|
|
1382
|
+
const contents = (0, smithy_client_1.map)({
|
|
1517
1383
|
$metadata: deserializeMetadata(output),
|
|
1518
1384
|
contentType: [, output.headers["content-type"]],
|
|
1519
1385
|
});
|
|
@@ -1546,10 +1412,9 @@ const de_GetSolNetworkPackageContentCommandError = async (output, context) => {
|
|
|
1546
1412
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1547
1413
|
default:
|
|
1548
1414
|
const parsedBody = parsedOutput.body;
|
|
1549
|
-
|
|
1415
|
+
return throwDefaultError({
|
|
1550
1416
|
output,
|
|
1551
1417
|
parsedBody,
|
|
1552
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1553
1418
|
errorCode,
|
|
1554
1419
|
});
|
|
1555
1420
|
}
|
|
@@ -1558,7 +1423,7 @@ const de_GetSolNetworkPackageDescriptorCommand = async (output, context) => {
|
|
|
1558
1423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1559
1424
|
return de_GetSolNetworkPackageDescriptorCommandError(output, context);
|
|
1560
1425
|
}
|
|
1561
|
-
const contents = map({
|
|
1426
|
+
const contents = (0, smithy_client_1.map)({
|
|
1562
1427
|
$metadata: deserializeMetadata(output),
|
|
1563
1428
|
contentType: [, output.headers["content-type"]],
|
|
1564
1429
|
});
|
|
@@ -1591,10 +1456,9 @@ const de_GetSolNetworkPackageDescriptorCommandError = async (output, context) =>
|
|
|
1591
1456
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1592
1457
|
default:
|
|
1593
1458
|
const parsedBody = parsedOutput.body;
|
|
1594
|
-
|
|
1459
|
+
return throwDefaultError({
|
|
1595
1460
|
output,
|
|
1596
1461
|
parsedBody,
|
|
1597
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1598
1462
|
errorCode,
|
|
1599
1463
|
});
|
|
1600
1464
|
}
|
|
@@ -1603,16 +1467,15 @@ const de_InstantiateSolNetworkInstanceCommand = async (output, context) => {
|
|
|
1603
1467
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1604
1468
|
return de_InstantiateSolNetworkInstanceCommandError(output, context);
|
|
1605
1469
|
}
|
|
1606
|
-
const contents = map({
|
|
1470
|
+
const contents = (0, smithy_client_1.map)({
|
|
1607
1471
|
$metadata: deserializeMetadata(output),
|
|
1608
1472
|
});
|
|
1609
1473
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
}
|
|
1474
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1475
|
+
nsLcmOpOccId: smithy_client_1.expectString,
|
|
1476
|
+
tags: smithy_client_1._json,
|
|
1477
|
+
});
|
|
1478
|
+
Object.assign(contents, doc);
|
|
1616
1479
|
return contents;
|
|
1617
1480
|
};
|
|
1618
1481
|
exports.de_InstantiateSolNetworkInstanceCommand = de_InstantiateSolNetworkInstanceCommand;
|
|
@@ -1643,10 +1506,9 @@ const de_InstantiateSolNetworkInstanceCommandError = async (output, context) =>
|
|
|
1643
1506
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1644
1507
|
default:
|
|
1645
1508
|
const parsedBody = parsedOutput.body;
|
|
1646
|
-
|
|
1509
|
+
return throwDefaultError({
|
|
1647
1510
|
output,
|
|
1648
1511
|
parsedBody,
|
|
1649
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1650
1512
|
errorCode,
|
|
1651
1513
|
});
|
|
1652
1514
|
}
|
|
@@ -1655,16 +1517,15 @@ const de_ListSolFunctionInstancesCommand = async (output, context) => {
|
|
|
1655
1517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1656
1518
|
return de_ListSolFunctionInstancesCommandError(output, context);
|
|
1657
1519
|
}
|
|
1658
|
-
const contents = map({
|
|
1520
|
+
const contents = (0, smithy_client_1.map)({
|
|
1659
1521
|
$metadata: deserializeMetadata(output),
|
|
1660
1522
|
});
|
|
1661
1523
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
}
|
|
1524
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1525
|
+
functionInstances: (_) => de_ListSolFunctionInstanceResources(_, context),
|
|
1526
|
+
nextToken: smithy_client_1.expectString,
|
|
1527
|
+
});
|
|
1528
|
+
Object.assign(contents, doc);
|
|
1668
1529
|
return contents;
|
|
1669
1530
|
};
|
|
1670
1531
|
exports.de_ListSolFunctionInstancesCommand = de_ListSolFunctionInstancesCommand;
|
|
@@ -1689,10 +1550,9 @@ const de_ListSolFunctionInstancesCommandError = async (output, context) => {
|
|
|
1689
1550
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1690
1551
|
default:
|
|
1691
1552
|
const parsedBody = parsedOutput.body;
|
|
1692
|
-
|
|
1553
|
+
return throwDefaultError({
|
|
1693
1554
|
output,
|
|
1694
1555
|
parsedBody,
|
|
1695
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1696
1556
|
errorCode,
|
|
1697
1557
|
});
|
|
1698
1558
|
}
|
|
@@ -1701,16 +1561,15 @@ const de_ListSolFunctionPackagesCommand = async (output, context) => {
|
|
|
1701
1561
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1702
1562
|
return de_ListSolFunctionPackagesCommandError(output, context);
|
|
1703
1563
|
}
|
|
1704
|
-
const contents = map({
|
|
1564
|
+
const contents = (0, smithy_client_1.map)({
|
|
1705
1565
|
$metadata: deserializeMetadata(output),
|
|
1706
1566
|
});
|
|
1707
1567
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
}
|
|
1568
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1569
|
+
functionPackages: (_) => de_ListSolFunctionPackageResources(_, context),
|
|
1570
|
+
nextToken: smithy_client_1.expectString,
|
|
1571
|
+
});
|
|
1572
|
+
Object.assign(contents, doc);
|
|
1714
1573
|
return contents;
|
|
1715
1574
|
};
|
|
1716
1575
|
exports.de_ListSolFunctionPackagesCommand = de_ListSolFunctionPackagesCommand;
|
|
@@ -1735,10 +1594,9 @@ const de_ListSolFunctionPackagesCommandError = async (output, context) => {
|
|
|
1735
1594
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1736
1595
|
default:
|
|
1737
1596
|
const parsedBody = parsedOutput.body;
|
|
1738
|
-
|
|
1597
|
+
return throwDefaultError({
|
|
1739
1598
|
output,
|
|
1740
1599
|
parsedBody,
|
|
1741
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1742
1600
|
errorCode,
|
|
1743
1601
|
});
|
|
1744
1602
|
}
|
|
@@ -1747,16 +1605,15 @@ const de_ListSolNetworkInstancesCommand = async (output, context) => {
|
|
|
1747
1605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1748
1606
|
return de_ListSolNetworkInstancesCommandError(output, context);
|
|
1749
1607
|
}
|
|
1750
|
-
const contents = map({
|
|
1608
|
+
const contents = (0, smithy_client_1.map)({
|
|
1751
1609
|
$metadata: deserializeMetadata(output),
|
|
1752
1610
|
});
|
|
1753
1611
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
}
|
|
1612
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1613
|
+
networkInstances: (_) => de_ListSolNetworkInstanceResources(_, context),
|
|
1614
|
+
nextToken: smithy_client_1.expectString,
|
|
1615
|
+
});
|
|
1616
|
+
Object.assign(contents, doc);
|
|
1760
1617
|
return contents;
|
|
1761
1618
|
};
|
|
1762
1619
|
exports.de_ListSolNetworkInstancesCommand = de_ListSolNetworkInstancesCommand;
|
|
@@ -1781,10 +1638,9 @@ const de_ListSolNetworkInstancesCommandError = async (output, context) => {
|
|
|
1781
1638
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1782
1639
|
default:
|
|
1783
1640
|
const parsedBody = parsedOutput.body;
|
|
1784
|
-
|
|
1641
|
+
return throwDefaultError({
|
|
1785
1642
|
output,
|
|
1786
1643
|
parsedBody,
|
|
1787
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1788
1644
|
errorCode,
|
|
1789
1645
|
});
|
|
1790
1646
|
}
|
|
@@ -1793,16 +1649,15 @@ const de_ListSolNetworkOperationsCommand = async (output, context) => {
|
|
|
1793
1649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1794
1650
|
return de_ListSolNetworkOperationsCommandError(output, context);
|
|
1795
1651
|
}
|
|
1796
|
-
const contents = map({
|
|
1652
|
+
const contents = (0, smithy_client_1.map)({
|
|
1797
1653
|
$metadata: deserializeMetadata(output),
|
|
1798
1654
|
});
|
|
1799
1655
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
}
|
|
1656
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1657
|
+
networkOperations: (_) => de_ListSolNetworkOperationsResources(_, context),
|
|
1658
|
+
nextToken: smithy_client_1.expectString,
|
|
1659
|
+
});
|
|
1660
|
+
Object.assign(contents, doc);
|
|
1806
1661
|
return contents;
|
|
1807
1662
|
};
|
|
1808
1663
|
exports.de_ListSolNetworkOperationsCommand = de_ListSolNetworkOperationsCommand;
|
|
@@ -1827,10 +1682,9 @@ const de_ListSolNetworkOperationsCommandError = async (output, context) => {
|
|
|
1827
1682
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1828
1683
|
default:
|
|
1829
1684
|
const parsedBody = parsedOutput.body;
|
|
1830
|
-
|
|
1685
|
+
return throwDefaultError({
|
|
1831
1686
|
output,
|
|
1832
1687
|
parsedBody,
|
|
1833
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1834
1688
|
errorCode,
|
|
1835
1689
|
});
|
|
1836
1690
|
}
|
|
@@ -1839,16 +1693,15 @@ const de_ListSolNetworkPackagesCommand = async (output, context) => {
|
|
|
1839
1693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1840
1694
|
return de_ListSolNetworkPackagesCommandError(output, context);
|
|
1841
1695
|
}
|
|
1842
|
-
const contents = map({
|
|
1696
|
+
const contents = (0, smithy_client_1.map)({
|
|
1843
1697
|
$metadata: deserializeMetadata(output),
|
|
1844
1698
|
});
|
|
1845
1699
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
}
|
|
1700
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1701
|
+
networkPackages: (_) => de_ListSolNetworkPackageResources(_, context),
|
|
1702
|
+
nextToken: smithy_client_1.expectString,
|
|
1703
|
+
});
|
|
1704
|
+
Object.assign(contents, doc);
|
|
1852
1705
|
return contents;
|
|
1853
1706
|
};
|
|
1854
1707
|
exports.de_ListSolNetworkPackagesCommand = de_ListSolNetworkPackagesCommand;
|
|
@@ -1873,10 +1726,9 @@ const de_ListSolNetworkPackagesCommandError = async (output, context) => {
|
|
|
1873
1726
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1874
1727
|
default:
|
|
1875
1728
|
const parsedBody = parsedOutput.body;
|
|
1876
|
-
|
|
1729
|
+
return throwDefaultError({
|
|
1877
1730
|
output,
|
|
1878
1731
|
parsedBody,
|
|
1879
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1880
1732
|
errorCode,
|
|
1881
1733
|
});
|
|
1882
1734
|
}
|
|
@@ -1885,13 +1737,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1885
1737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1886
1738
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1887
1739
|
}
|
|
1888
|
-
const contents = map({
|
|
1740
|
+
const contents = (0, smithy_client_1.map)({
|
|
1889
1741
|
$metadata: deserializeMetadata(output),
|
|
1890
1742
|
});
|
|
1891
1743
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
}
|
|
1744
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1745
|
+
tags: smithy_client_1._json,
|
|
1746
|
+
});
|
|
1747
|
+
Object.assign(contents, doc);
|
|
1895
1748
|
return contents;
|
|
1896
1749
|
};
|
|
1897
1750
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1919,10 +1772,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1919
1772
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1920
1773
|
default:
|
|
1921
1774
|
const parsedBody = parsedOutput.body;
|
|
1922
|
-
|
|
1775
|
+
return throwDefaultError({
|
|
1923
1776
|
output,
|
|
1924
1777
|
parsedBody,
|
|
1925
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1926
1778
|
errorCode,
|
|
1927
1779
|
});
|
|
1928
1780
|
}
|
|
@@ -1931,28 +1783,19 @@ const de_PutSolFunctionPackageContentCommand = async (output, context) => {
|
|
|
1931
1783
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1932
1784
|
return de_PutSolFunctionPackageContentCommandError(output, context);
|
|
1933
1785
|
}
|
|
1934
|
-
const contents = map({
|
|
1786
|
+
const contents = (0, smithy_client_1.map)({
|
|
1935
1787
|
$metadata: deserializeMetadata(output),
|
|
1936
1788
|
});
|
|
1937
1789
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
if (data.vnfProvider != null) {
|
|
1948
|
-
contents.vnfProvider = (0, smithy_client_1.expectString)(data.vnfProvider);
|
|
1949
|
-
}
|
|
1950
|
-
if (data.vnfdId != null) {
|
|
1951
|
-
contents.vnfdId = (0, smithy_client_1.expectString)(data.vnfdId);
|
|
1952
|
-
}
|
|
1953
|
-
if (data.vnfdVersion != null) {
|
|
1954
|
-
contents.vnfdVersion = (0, smithy_client_1.expectString)(data.vnfdVersion);
|
|
1955
|
-
}
|
|
1790
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1791
|
+
id: smithy_client_1.expectString,
|
|
1792
|
+
metadata: smithy_client_1._json,
|
|
1793
|
+
vnfProductName: smithy_client_1.expectString,
|
|
1794
|
+
vnfProvider: smithy_client_1.expectString,
|
|
1795
|
+
vnfdId: smithy_client_1.expectString,
|
|
1796
|
+
vnfdVersion: smithy_client_1.expectString,
|
|
1797
|
+
});
|
|
1798
|
+
Object.assign(contents, doc);
|
|
1956
1799
|
return contents;
|
|
1957
1800
|
};
|
|
1958
1801
|
exports.de_PutSolFunctionPackageContentCommand = de_PutSolFunctionPackageContentCommand;
|
|
@@ -1980,10 +1823,9 @@ const de_PutSolFunctionPackageContentCommandError = async (output, context) => {
|
|
|
1980
1823
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1981
1824
|
default:
|
|
1982
1825
|
const parsedBody = parsedOutput.body;
|
|
1983
|
-
|
|
1826
|
+
return throwDefaultError({
|
|
1984
1827
|
output,
|
|
1985
1828
|
parsedBody,
|
|
1986
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
1987
1829
|
errorCode,
|
|
1988
1830
|
});
|
|
1989
1831
|
}
|
|
@@ -1992,31 +1834,20 @@ const de_PutSolNetworkPackageContentCommand = async (output, context) => {
|
|
|
1992
1834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1993
1835
|
return de_PutSolNetworkPackageContentCommandError(output, context);
|
|
1994
1836
|
}
|
|
1995
|
-
const contents = map({
|
|
1837
|
+
const contents = (0, smithy_client_1.map)({
|
|
1996
1838
|
$metadata: deserializeMetadata(output),
|
|
1997
1839
|
});
|
|
1998
1840
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
contents.nsdId = (0, smithy_client_1.expectString)(data.nsdId);
|
|
2010
|
-
}
|
|
2011
|
-
if (data.nsdName != null) {
|
|
2012
|
-
contents.nsdName = (0, smithy_client_1.expectString)(data.nsdName);
|
|
2013
|
-
}
|
|
2014
|
-
if (data.nsdVersion != null) {
|
|
2015
|
-
contents.nsdVersion = (0, smithy_client_1.expectString)(data.nsdVersion);
|
|
2016
|
-
}
|
|
2017
|
-
if (data.vnfPkgIds != null) {
|
|
2018
|
-
contents.vnfPkgIds = de_VnfPkgIdList(data.vnfPkgIds, context);
|
|
2019
|
-
}
|
|
1841
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1842
|
+
arn: smithy_client_1.expectString,
|
|
1843
|
+
id: smithy_client_1.expectString,
|
|
1844
|
+
metadata: smithy_client_1._json,
|
|
1845
|
+
nsdId: smithy_client_1.expectString,
|
|
1846
|
+
nsdName: smithy_client_1.expectString,
|
|
1847
|
+
nsdVersion: smithy_client_1.expectString,
|
|
1848
|
+
vnfPkgIds: smithy_client_1._json,
|
|
1849
|
+
});
|
|
1850
|
+
Object.assign(contents, doc);
|
|
2020
1851
|
return contents;
|
|
2021
1852
|
};
|
|
2022
1853
|
exports.de_PutSolNetworkPackageContentCommand = de_PutSolNetworkPackageContentCommand;
|
|
@@ -2044,10 +1875,9 @@ const de_PutSolNetworkPackageContentCommandError = async (output, context) => {
|
|
|
2044
1875
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2045
1876
|
default:
|
|
2046
1877
|
const parsedBody = parsedOutput.body;
|
|
2047
|
-
|
|
1878
|
+
return throwDefaultError({
|
|
2048
1879
|
output,
|
|
2049
1880
|
parsedBody,
|
|
2050
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
2051
1881
|
errorCode,
|
|
2052
1882
|
});
|
|
2053
1883
|
}
|
|
@@ -2056,7 +1886,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2056
1886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2057
1887
|
return de_TagResourceCommandError(output, context);
|
|
2058
1888
|
}
|
|
2059
|
-
const contents = map({
|
|
1889
|
+
const contents = (0, smithy_client_1.map)({
|
|
2060
1890
|
$metadata: deserializeMetadata(output),
|
|
2061
1891
|
});
|
|
2062
1892
|
await collectBody(output.body, context);
|
|
@@ -2087,10 +1917,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2087
1917
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2088
1918
|
default:
|
|
2089
1919
|
const parsedBody = parsedOutput.body;
|
|
2090
|
-
|
|
1920
|
+
return throwDefaultError({
|
|
2091
1921
|
output,
|
|
2092
1922
|
parsedBody,
|
|
2093
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
2094
1923
|
errorCode,
|
|
2095
1924
|
});
|
|
2096
1925
|
}
|
|
@@ -2099,16 +1928,15 @@ const de_TerminateSolNetworkInstanceCommand = async (output, context) => {
|
|
|
2099
1928
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2100
1929
|
return de_TerminateSolNetworkInstanceCommandError(output, context);
|
|
2101
1930
|
}
|
|
2102
|
-
const contents = map({
|
|
1931
|
+
const contents = (0, smithy_client_1.map)({
|
|
2103
1932
|
$metadata: deserializeMetadata(output),
|
|
2104
1933
|
});
|
|
2105
1934
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
}
|
|
1935
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1936
|
+
nsLcmOpOccId: smithy_client_1.expectString,
|
|
1937
|
+
tags: smithy_client_1._json,
|
|
1938
|
+
});
|
|
1939
|
+
Object.assign(contents, doc);
|
|
2112
1940
|
return contents;
|
|
2113
1941
|
};
|
|
2114
1942
|
exports.de_TerminateSolNetworkInstanceCommand = de_TerminateSolNetworkInstanceCommand;
|
|
@@ -2139,10 +1967,9 @@ const de_TerminateSolNetworkInstanceCommandError = async (output, context) => {
|
|
|
2139
1967
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2140
1968
|
default:
|
|
2141
1969
|
const parsedBody = parsedOutput.body;
|
|
2142
|
-
|
|
1970
|
+
return throwDefaultError({
|
|
2143
1971
|
output,
|
|
2144
1972
|
parsedBody,
|
|
2145
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
2146
1973
|
errorCode,
|
|
2147
1974
|
});
|
|
2148
1975
|
}
|
|
@@ -2151,7 +1978,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2151
1978
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2152
1979
|
return de_UntagResourceCommandError(output, context);
|
|
2153
1980
|
}
|
|
2154
|
-
const contents = map({
|
|
1981
|
+
const contents = (0, smithy_client_1.map)({
|
|
2155
1982
|
$metadata: deserializeMetadata(output),
|
|
2156
1983
|
});
|
|
2157
1984
|
await collectBody(output.body, context);
|
|
@@ -2182,10 +2009,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2182
2009
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2183
2010
|
default:
|
|
2184
2011
|
const parsedBody = parsedOutput.body;
|
|
2185
|
-
|
|
2012
|
+
return throwDefaultError({
|
|
2186
2013
|
output,
|
|
2187
2014
|
parsedBody,
|
|
2188
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
2189
2015
|
errorCode,
|
|
2190
2016
|
});
|
|
2191
2017
|
}
|
|
@@ -2194,13 +2020,14 @@ const de_UpdateSolFunctionPackageCommand = async (output, context) => {
|
|
|
2194
2020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2195
2021
|
return de_UpdateSolFunctionPackageCommandError(output, context);
|
|
2196
2022
|
}
|
|
2197
|
-
const contents = map({
|
|
2023
|
+
const contents = (0, smithy_client_1.map)({
|
|
2198
2024
|
$metadata: deserializeMetadata(output),
|
|
2199
2025
|
});
|
|
2200
2026
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
}
|
|
2027
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2028
|
+
operationalState: smithy_client_1.expectString,
|
|
2029
|
+
});
|
|
2030
|
+
Object.assign(contents, doc);
|
|
2204
2031
|
return contents;
|
|
2205
2032
|
};
|
|
2206
2033
|
exports.de_UpdateSolFunctionPackageCommand = de_UpdateSolFunctionPackageCommand;
|
|
@@ -2228,10 +2055,9 @@ const de_UpdateSolFunctionPackageCommandError = async (output, context) => {
|
|
|
2228
2055
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2229
2056
|
default:
|
|
2230
2057
|
const parsedBody = parsedOutput.body;
|
|
2231
|
-
|
|
2058
|
+
return throwDefaultError({
|
|
2232
2059
|
output,
|
|
2233
2060
|
parsedBody,
|
|
2234
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
2235
2061
|
errorCode,
|
|
2236
2062
|
});
|
|
2237
2063
|
}
|
|
@@ -2240,16 +2066,15 @@ const de_UpdateSolNetworkInstanceCommand = async (output, context) => {
|
|
|
2240
2066
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2241
2067
|
return de_UpdateSolNetworkInstanceCommandError(output, context);
|
|
2242
2068
|
}
|
|
2243
|
-
const contents = map({
|
|
2069
|
+
const contents = (0, smithy_client_1.map)({
|
|
2244
2070
|
$metadata: deserializeMetadata(output),
|
|
2245
2071
|
});
|
|
2246
2072
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
}
|
|
2073
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2074
|
+
nsLcmOpOccId: smithy_client_1.expectString,
|
|
2075
|
+
tags: smithy_client_1._json,
|
|
2076
|
+
});
|
|
2077
|
+
Object.assign(contents, doc);
|
|
2253
2078
|
return contents;
|
|
2254
2079
|
};
|
|
2255
2080
|
exports.de_UpdateSolNetworkInstanceCommand = de_UpdateSolNetworkInstanceCommand;
|
|
@@ -2280,10 +2105,9 @@ const de_UpdateSolNetworkInstanceCommandError = async (output, context) => {
|
|
|
2280
2105
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2281
2106
|
default:
|
|
2282
2107
|
const parsedBody = parsedOutput.body;
|
|
2283
|
-
|
|
2108
|
+
return throwDefaultError({
|
|
2284
2109
|
output,
|
|
2285
2110
|
parsedBody,
|
|
2286
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
2287
2111
|
errorCode,
|
|
2288
2112
|
});
|
|
2289
2113
|
}
|
|
@@ -2292,13 +2116,14 @@ const de_UpdateSolNetworkPackageCommand = async (output, context) => {
|
|
|
2292
2116
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2293
2117
|
return de_UpdateSolNetworkPackageCommandError(output, context);
|
|
2294
2118
|
}
|
|
2295
|
-
const contents = map({
|
|
2119
|
+
const contents = (0, smithy_client_1.map)({
|
|
2296
2120
|
$metadata: deserializeMetadata(output),
|
|
2297
2121
|
});
|
|
2298
2122
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
}
|
|
2123
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2124
|
+
nsdOperationalState: smithy_client_1.expectString,
|
|
2125
|
+
});
|
|
2126
|
+
Object.assign(contents, doc);
|
|
2302
2127
|
return contents;
|
|
2303
2128
|
};
|
|
2304
2129
|
exports.de_UpdateSolNetworkPackageCommand = de_UpdateSolNetworkPackageCommand;
|
|
@@ -2326,10 +2151,9 @@ const de_UpdateSolNetworkPackageCommandError = async (output, context) => {
|
|
|
2326
2151
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2327
2152
|
default:
|
|
2328
2153
|
const parsedBody = parsedOutput.body;
|
|
2329
|
-
|
|
2154
|
+
return throwDefaultError({
|
|
2330
2155
|
output,
|
|
2331
2156
|
parsedBody,
|
|
2332
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
2333
2157
|
errorCode,
|
|
2334
2158
|
});
|
|
2335
2159
|
}
|
|
@@ -2338,28 +2162,19 @@ const de_ValidateSolFunctionPackageContentCommand = async (output, context) => {
|
|
|
2338
2162
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2339
2163
|
return de_ValidateSolFunctionPackageContentCommandError(output, context);
|
|
2340
2164
|
}
|
|
2341
|
-
const contents = map({
|
|
2165
|
+
const contents = (0, smithy_client_1.map)({
|
|
2342
2166
|
$metadata: deserializeMetadata(output),
|
|
2343
2167
|
});
|
|
2344
2168
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
if (data.vnfProvider != null) {
|
|
2355
|
-
contents.vnfProvider = (0, smithy_client_1.expectString)(data.vnfProvider);
|
|
2356
|
-
}
|
|
2357
|
-
if (data.vnfdId != null) {
|
|
2358
|
-
contents.vnfdId = (0, smithy_client_1.expectString)(data.vnfdId);
|
|
2359
|
-
}
|
|
2360
|
-
if (data.vnfdVersion != null) {
|
|
2361
|
-
contents.vnfdVersion = (0, smithy_client_1.expectString)(data.vnfdVersion);
|
|
2362
|
-
}
|
|
2169
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2170
|
+
id: smithy_client_1.expectString,
|
|
2171
|
+
metadata: smithy_client_1._json,
|
|
2172
|
+
vnfProductName: smithy_client_1.expectString,
|
|
2173
|
+
vnfProvider: smithy_client_1.expectString,
|
|
2174
|
+
vnfdId: smithy_client_1.expectString,
|
|
2175
|
+
vnfdVersion: smithy_client_1.expectString,
|
|
2176
|
+
});
|
|
2177
|
+
Object.assign(contents, doc);
|
|
2363
2178
|
return contents;
|
|
2364
2179
|
};
|
|
2365
2180
|
exports.de_ValidateSolFunctionPackageContentCommand = de_ValidateSolFunctionPackageContentCommand;
|
|
@@ -2387,10 +2202,9 @@ const de_ValidateSolFunctionPackageContentCommandError = async (output, context)
|
|
|
2387
2202
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2388
2203
|
default:
|
|
2389
2204
|
const parsedBody = parsedOutput.body;
|
|
2390
|
-
|
|
2205
|
+
return throwDefaultError({
|
|
2391
2206
|
output,
|
|
2392
2207
|
parsedBody,
|
|
2393
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
2394
2208
|
errorCode,
|
|
2395
2209
|
});
|
|
2396
2210
|
}
|
|
@@ -2399,31 +2213,20 @@ const de_ValidateSolNetworkPackageContentCommand = async (output, context) => {
|
|
|
2399
2213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2400
2214
|
return de_ValidateSolNetworkPackageContentCommandError(output, context);
|
|
2401
2215
|
}
|
|
2402
|
-
const contents = map({
|
|
2216
|
+
const contents = (0, smithy_client_1.map)({
|
|
2403
2217
|
$metadata: deserializeMetadata(output),
|
|
2404
2218
|
});
|
|
2405
2219
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
|
-
contents.nsdId = (0, smithy_client_1.expectString)(data.nsdId);
|
|
2417
|
-
}
|
|
2418
|
-
if (data.nsdName != null) {
|
|
2419
|
-
contents.nsdName = (0, smithy_client_1.expectString)(data.nsdName);
|
|
2420
|
-
}
|
|
2421
|
-
if (data.nsdVersion != null) {
|
|
2422
|
-
contents.nsdVersion = (0, smithy_client_1.expectString)(data.nsdVersion);
|
|
2423
|
-
}
|
|
2424
|
-
if (data.vnfPkgIds != null) {
|
|
2425
|
-
contents.vnfPkgIds = de_VnfPkgIdList(data.vnfPkgIds, context);
|
|
2426
|
-
}
|
|
2220
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2221
|
+
arn: smithy_client_1.expectString,
|
|
2222
|
+
id: smithy_client_1.expectString,
|
|
2223
|
+
metadata: smithy_client_1._json,
|
|
2224
|
+
nsdId: smithy_client_1.expectString,
|
|
2225
|
+
nsdName: smithy_client_1.expectString,
|
|
2226
|
+
nsdVersion: smithy_client_1.expectString,
|
|
2227
|
+
vnfPkgIds: smithy_client_1._json,
|
|
2228
|
+
});
|
|
2229
|
+
Object.assign(contents, doc);
|
|
2427
2230
|
return contents;
|
|
2428
2231
|
};
|
|
2429
2232
|
exports.de_ValidateSolNetworkPackageContentCommand = de_ValidateSolNetworkPackageContentCommand;
|
|
@@ -2451,21 +2254,21 @@ const de_ValidateSolNetworkPackageContentCommandError = async (output, context)
|
|
|
2451
2254
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2452
2255
|
default:
|
|
2453
2256
|
const parsedBody = parsedOutput.body;
|
|
2454
|
-
|
|
2257
|
+
return throwDefaultError({
|
|
2455
2258
|
output,
|
|
2456
2259
|
parsedBody,
|
|
2457
|
-
exceptionCtor: TnbServiceException_1.TnbServiceException,
|
|
2458
2260
|
errorCode,
|
|
2459
2261
|
});
|
|
2460
2262
|
}
|
|
2461
2263
|
};
|
|
2462
|
-
const
|
|
2264
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(TnbServiceException_1.TnbServiceException);
|
|
2463
2265
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2464
|
-
const contents = map({});
|
|
2266
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2465
2267
|
const data = parsedOutput.body;
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
}
|
|
2268
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2269
|
+
message: smithy_client_1.expectString,
|
|
2270
|
+
});
|
|
2271
|
+
Object.assign(contents, doc);
|
|
2469
2272
|
const exception = new models_0_1.AccessDeniedException({
|
|
2470
2273
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2471
2274
|
...contents,
|
|
@@ -2473,11 +2276,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2473
2276
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2474
2277
|
};
|
|
2475
2278
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2476
|
-
const contents = map({});
|
|
2279
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2477
2280
|
const data = parsedOutput.body;
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
}
|
|
2281
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2282
|
+
message: smithy_client_1.expectString,
|
|
2283
|
+
});
|
|
2284
|
+
Object.assign(contents, doc);
|
|
2481
2285
|
const exception = new models_0_1.InternalServerException({
|
|
2482
2286
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2483
2287
|
...contents,
|
|
@@ -2485,11 +2289,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2485
2289
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2486
2290
|
};
|
|
2487
2291
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2488
|
-
const contents = map({});
|
|
2292
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2489
2293
|
const data = parsedOutput.body;
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
}
|
|
2294
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2295
|
+
message: smithy_client_1.expectString,
|
|
2296
|
+
});
|
|
2297
|
+
Object.assign(contents, doc);
|
|
2493
2298
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2494
2299
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2495
2300
|
...contents,
|
|
@@ -2497,11 +2302,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2497
2302
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2498
2303
|
};
|
|
2499
2304
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2500
|
-
const contents = map({});
|
|
2305
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2501
2306
|
const data = parsedOutput.body;
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
}
|
|
2307
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2308
|
+
message: smithy_client_1.expectString,
|
|
2309
|
+
});
|
|
2310
|
+
Object.assign(contents, doc);
|
|
2505
2311
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2506
2312
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2507
2313
|
...contents,
|
|
@@ -2509,11 +2315,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2509
2315
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2510
2316
|
};
|
|
2511
2317
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2512
|
-
const contents = map({});
|
|
2318
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2513
2319
|
const data = parsedOutput.body;
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
}
|
|
2320
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2321
|
+
message: smithy_client_1.expectString,
|
|
2322
|
+
});
|
|
2323
|
+
Object.assign(contents, doc);
|
|
2517
2324
|
const exception = new models_0_1.ThrottlingException({
|
|
2518
2325
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2519
2326
|
...contents,
|
|
@@ -2521,371 +2328,212 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2521
2328
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2522
2329
|
};
|
|
2523
2330
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2524
|
-
const contents = map({});
|
|
2331
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2525
2332
|
const data = parsedOutput.body;
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
}
|
|
2333
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2334
|
+
message: smithy_client_1.expectString,
|
|
2335
|
+
});
|
|
2336
|
+
Object.assign(contents, doc);
|
|
2529
2337
|
const exception = new models_0_1.ValidationException({
|
|
2530
2338
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2531
2339
|
...contents,
|
|
2532
2340
|
});
|
|
2533
2341
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2534
2342
|
};
|
|
2535
|
-
const se_TagMap = (input, context) => {
|
|
2536
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2537
|
-
if (value === null) {
|
|
2538
|
-
return acc;
|
|
2539
|
-
}
|
|
2540
|
-
acc[key] = value;
|
|
2541
|
-
return acc;
|
|
2542
|
-
}, {});
|
|
2543
|
-
};
|
|
2544
2343
|
const se_UpdateSolNetworkModify = (input, context) => {
|
|
2545
|
-
return {
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
...(input.vnfInstanceId != null && { vnfInstanceId: input.vnfInstanceId }),
|
|
2550
|
-
};
|
|
2344
|
+
return (0, smithy_client_1.take)(input, {
|
|
2345
|
+
vnfConfigurableProperties: (_) => se_Document(_, context),
|
|
2346
|
+
vnfInstanceId: [],
|
|
2347
|
+
});
|
|
2551
2348
|
};
|
|
2552
2349
|
const se_Document = (input, context) => {
|
|
2553
2350
|
return input;
|
|
2554
2351
|
};
|
|
2555
|
-
const de_ErrorInfo = (output, context) => {
|
|
2556
|
-
return {
|
|
2557
|
-
cause: (0, smithy_client_1.expectString)(output.cause),
|
|
2558
|
-
details: (0, smithy_client_1.expectString)(output.details),
|
|
2559
|
-
};
|
|
2560
|
-
};
|
|
2561
|
-
const de_FunctionArtifactMeta = (output, context) => {
|
|
2562
|
-
return {
|
|
2563
|
-
overrides: output.overrides != null ? de_OverrideList(output.overrides, context) : undefined,
|
|
2564
|
-
};
|
|
2565
|
-
};
|
|
2566
2352
|
const de_GetSolFunctionInstanceMetadata = (output, context) => {
|
|
2567
|
-
return {
|
|
2568
|
-
createdAt:
|
|
2569
|
-
lastModified:
|
|
2570
|
-
};
|
|
2353
|
+
return (0, smithy_client_1.take)(output, {
|
|
2354
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2355
|
+
lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2356
|
+
});
|
|
2571
2357
|
};
|
|
2572
2358
|
const de_GetSolFunctionPackageMetadata = (output, context) => {
|
|
2573
|
-
return {
|
|
2574
|
-
createdAt:
|
|
2575
|
-
lastModified:
|
|
2576
|
-
vnfd:
|
|
2577
|
-
};
|
|
2578
|
-
};
|
|
2579
|
-
const de_GetSolInstantiatedVnfInfo = (output, context) => {
|
|
2580
|
-
return {
|
|
2581
|
-
vnfState: (0, smithy_client_1.expectString)(output.vnfState),
|
|
2582
|
-
};
|
|
2359
|
+
return (0, smithy_client_1.take)(output, {
|
|
2360
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2361
|
+
lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2362
|
+
vnfd: smithy_client_1._json,
|
|
2363
|
+
});
|
|
2583
2364
|
};
|
|
2584
2365
|
const de_GetSolNetworkInstanceMetadata = (output, context) => {
|
|
2585
|
-
return {
|
|
2586
|
-
createdAt:
|
|
2587
|
-
lastModified:
|
|
2588
|
-
};
|
|
2366
|
+
return (0, smithy_client_1.take)(output, {
|
|
2367
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2368
|
+
lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2369
|
+
});
|
|
2589
2370
|
};
|
|
2590
2371
|
const de_GetSolNetworkOperationMetadata = (output, context) => {
|
|
2591
|
-
return {
|
|
2592
|
-
createdAt:
|
|
2593
|
-
lastModified:
|
|
2594
|
-
};
|
|
2372
|
+
return (0, smithy_client_1.take)(output, {
|
|
2373
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2374
|
+
lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2375
|
+
});
|
|
2595
2376
|
};
|
|
2596
2377
|
const de_GetSolNetworkOperationTaskDetails = (output, context) => {
|
|
2597
|
-
return {
|
|
2598
|
-
taskContext:
|
|
2599
|
-
taskEndTime:
|
|
2600
|
-
taskErrorDetails:
|
|
2601
|
-
taskName:
|
|
2602
|
-
taskStartTime:
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
taskStatus: (0, smithy_client_1.expectString)(output.taskStatus),
|
|
2606
|
-
};
|
|
2378
|
+
return (0, smithy_client_1.take)(output, {
|
|
2379
|
+
taskContext: smithy_client_1._json,
|
|
2380
|
+
taskEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2381
|
+
taskErrorDetails: smithy_client_1._json,
|
|
2382
|
+
taskName: smithy_client_1.expectString,
|
|
2383
|
+
taskStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2384
|
+
taskStatus: smithy_client_1.expectString,
|
|
2385
|
+
});
|
|
2607
2386
|
};
|
|
2608
2387
|
const de_GetSolNetworkOperationTasksList = (output, context) => {
|
|
2609
2388
|
const retVal = (output || [])
|
|
2610
2389
|
.filter((e) => e != null)
|
|
2611
2390
|
.map((entry) => {
|
|
2612
|
-
if (entry === null) {
|
|
2613
|
-
return null;
|
|
2614
|
-
}
|
|
2615
2391
|
return de_GetSolNetworkOperationTaskDetails(entry, context);
|
|
2616
2392
|
});
|
|
2617
2393
|
return retVal;
|
|
2618
2394
|
};
|
|
2619
2395
|
const de_GetSolNetworkPackageMetadata = (output, context) => {
|
|
2620
|
-
return {
|
|
2621
|
-
createdAt:
|
|
2622
|
-
lastModified:
|
|
2623
|
-
nsd:
|
|
2624
|
-
};
|
|
2625
|
-
};
|
|
2626
|
-
const de_GetSolVnfcResourceInfo = (output, context) => {
|
|
2627
|
-
return {
|
|
2628
|
-
metadata: output.metadata != null ? de_GetSolVnfcResourceInfoMetadata(output.metadata, context) : undefined,
|
|
2629
|
-
};
|
|
2630
|
-
};
|
|
2631
|
-
const de_GetSolVnfcResourceInfoList = (output, context) => {
|
|
2632
|
-
const retVal = (output || [])
|
|
2633
|
-
.filter((e) => e != null)
|
|
2634
|
-
.map((entry) => {
|
|
2635
|
-
if (entry === null) {
|
|
2636
|
-
return null;
|
|
2637
|
-
}
|
|
2638
|
-
return de_GetSolVnfcResourceInfo(entry, context);
|
|
2396
|
+
return (0, smithy_client_1.take)(output, {
|
|
2397
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2398
|
+
lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2399
|
+
nsd: smithy_client_1._json,
|
|
2639
2400
|
});
|
|
2640
|
-
return retVal;
|
|
2641
|
-
};
|
|
2642
|
-
const de_GetSolVnfcResourceInfoMetadata = (output, context) => {
|
|
2643
|
-
return {
|
|
2644
|
-
cluster: (0, smithy_client_1.expectString)(output.cluster),
|
|
2645
|
-
helmChart: (0, smithy_client_1.expectString)(output.helmChart),
|
|
2646
|
-
nodeGroup: (0, smithy_client_1.expectString)(output.nodeGroup),
|
|
2647
|
-
};
|
|
2648
|
-
};
|
|
2649
|
-
const de_GetSolVnfInfo = (output, context) => {
|
|
2650
|
-
return {
|
|
2651
|
-
vnfState: (0, smithy_client_1.expectString)(output.vnfState),
|
|
2652
|
-
vnfcResourceInfo: output.vnfcResourceInfo != null ? de_GetSolVnfcResourceInfoList(output.vnfcResourceInfo, context) : undefined,
|
|
2653
|
-
};
|
|
2654
|
-
};
|
|
2655
|
-
const de_LcmOperationInfo = (output, context) => {
|
|
2656
|
-
return {
|
|
2657
|
-
nsLcmOpOccId: (0, smithy_client_1.expectString)(output.nsLcmOpOccId),
|
|
2658
|
-
};
|
|
2659
2401
|
};
|
|
2660
2402
|
const de_ListSolFunctionInstanceInfo = (output, context) => {
|
|
2661
|
-
return {
|
|
2662
|
-
arn:
|
|
2663
|
-
id:
|
|
2664
|
-
instantiatedVnfInfo:
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
vnfPkgName: (0, smithy_client_1.expectString)(output.vnfPkgName),
|
|
2672
|
-
};
|
|
2403
|
+
return (0, smithy_client_1.take)(output, {
|
|
2404
|
+
arn: smithy_client_1.expectString,
|
|
2405
|
+
id: smithy_client_1.expectString,
|
|
2406
|
+
instantiatedVnfInfo: smithy_client_1._json,
|
|
2407
|
+
instantiationState: smithy_client_1.expectString,
|
|
2408
|
+
metadata: (_) => de_ListSolFunctionInstanceMetadata(_, context),
|
|
2409
|
+
nsInstanceId: smithy_client_1.expectString,
|
|
2410
|
+
vnfPkgId: smithy_client_1.expectString,
|
|
2411
|
+
vnfPkgName: smithy_client_1.expectString,
|
|
2412
|
+
});
|
|
2673
2413
|
};
|
|
2674
2414
|
const de_ListSolFunctionInstanceMetadata = (output, context) => {
|
|
2675
|
-
return {
|
|
2676
|
-
createdAt:
|
|
2677
|
-
lastModified:
|
|
2678
|
-
};
|
|
2415
|
+
return (0, smithy_client_1.take)(output, {
|
|
2416
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2417
|
+
lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2418
|
+
});
|
|
2679
2419
|
};
|
|
2680
2420
|
const de_ListSolFunctionInstanceResources = (output, context) => {
|
|
2681
2421
|
const retVal = (output || [])
|
|
2682
2422
|
.filter((e) => e != null)
|
|
2683
2423
|
.map((entry) => {
|
|
2684
|
-
if (entry === null) {
|
|
2685
|
-
return null;
|
|
2686
|
-
}
|
|
2687
2424
|
return de_ListSolFunctionInstanceInfo(entry, context);
|
|
2688
2425
|
});
|
|
2689
2426
|
return retVal;
|
|
2690
2427
|
};
|
|
2691
2428
|
const de_ListSolFunctionPackageInfo = (output, context) => {
|
|
2692
|
-
return {
|
|
2693
|
-
arn:
|
|
2694
|
-
id:
|
|
2695
|
-
metadata:
|
|
2696
|
-
onboardingState:
|
|
2697
|
-
operationalState:
|
|
2698
|
-
usageState:
|
|
2699
|
-
vnfProductName:
|
|
2700
|
-
vnfProvider:
|
|
2701
|
-
vnfdId:
|
|
2702
|
-
vnfdVersion:
|
|
2703
|
-
};
|
|
2429
|
+
return (0, smithy_client_1.take)(output, {
|
|
2430
|
+
arn: smithy_client_1.expectString,
|
|
2431
|
+
id: smithy_client_1.expectString,
|
|
2432
|
+
metadata: (_) => de_ListSolFunctionPackageMetadata(_, context),
|
|
2433
|
+
onboardingState: smithy_client_1.expectString,
|
|
2434
|
+
operationalState: smithy_client_1.expectString,
|
|
2435
|
+
usageState: smithy_client_1.expectString,
|
|
2436
|
+
vnfProductName: smithy_client_1.expectString,
|
|
2437
|
+
vnfProvider: smithy_client_1.expectString,
|
|
2438
|
+
vnfdId: smithy_client_1.expectString,
|
|
2439
|
+
vnfdVersion: smithy_client_1.expectString,
|
|
2440
|
+
});
|
|
2704
2441
|
};
|
|
2705
2442
|
const de_ListSolFunctionPackageMetadata = (output, context) => {
|
|
2706
|
-
return {
|
|
2707
|
-
createdAt:
|
|
2708
|
-
lastModified:
|
|
2709
|
-
};
|
|
2443
|
+
return (0, smithy_client_1.take)(output, {
|
|
2444
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2445
|
+
lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2446
|
+
});
|
|
2710
2447
|
};
|
|
2711
2448
|
const de_ListSolFunctionPackageResources = (output, context) => {
|
|
2712
2449
|
const retVal = (output || [])
|
|
2713
2450
|
.filter((e) => e != null)
|
|
2714
2451
|
.map((entry) => {
|
|
2715
|
-
if (entry === null) {
|
|
2716
|
-
return null;
|
|
2717
|
-
}
|
|
2718
2452
|
return de_ListSolFunctionPackageInfo(entry, context);
|
|
2719
2453
|
});
|
|
2720
2454
|
return retVal;
|
|
2721
2455
|
};
|
|
2722
2456
|
const de_ListSolNetworkInstanceInfo = (output, context) => {
|
|
2723
|
-
return {
|
|
2724
|
-
arn:
|
|
2725
|
-
id:
|
|
2726
|
-
metadata:
|
|
2727
|
-
nsInstanceDescription:
|
|
2728
|
-
nsInstanceName:
|
|
2729
|
-
nsState:
|
|
2730
|
-
nsdId:
|
|
2731
|
-
nsdInfoId:
|
|
2732
|
-
};
|
|
2457
|
+
return (0, smithy_client_1.take)(output, {
|
|
2458
|
+
arn: smithy_client_1.expectString,
|
|
2459
|
+
id: smithy_client_1.expectString,
|
|
2460
|
+
metadata: (_) => de_ListSolNetworkInstanceMetadata(_, context),
|
|
2461
|
+
nsInstanceDescription: smithy_client_1.expectString,
|
|
2462
|
+
nsInstanceName: smithy_client_1.expectString,
|
|
2463
|
+
nsState: smithy_client_1.expectString,
|
|
2464
|
+
nsdId: smithy_client_1.expectString,
|
|
2465
|
+
nsdInfoId: smithy_client_1.expectString,
|
|
2466
|
+
});
|
|
2733
2467
|
};
|
|
2734
2468
|
const de_ListSolNetworkInstanceMetadata = (output, context) => {
|
|
2735
|
-
return {
|
|
2736
|
-
createdAt:
|
|
2737
|
-
lastModified:
|
|
2738
|
-
};
|
|
2469
|
+
return (0, smithy_client_1.take)(output, {
|
|
2470
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2471
|
+
lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2472
|
+
});
|
|
2739
2473
|
};
|
|
2740
2474
|
const de_ListSolNetworkInstanceResources = (output, context) => {
|
|
2741
2475
|
const retVal = (output || [])
|
|
2742
2476
|
.filter((e) => e != null)
|
|
2743
2477
|
.map((entry) => {
|
|
2744
|
-
if (entry === null) {
|
|
2745
|
-
return null;
|
|
2746
|
-
}
|
|
2747
2478
|
return de_ListSolNetworkInstanceInfo(entry, context);
|
|
2748
2479
|
});
|
|
2749
2480
|
return retVal;
|
|
2750
2481
|
};
|
|
2751
2482
|
const de_ListSolNetworkOperationsInfo = (output, context) => {
|
|
2752
|
-
return {
|
|
2753
|
-
arn:
|
|
2754
|
-
error:
|
|
2755
|
-
id:
|
|
2756
|
-
lcmOperationType:
|
|
2757
|
-
metadata:
|
|
2758
|
-
nsInstanceId:
|
|
2759
|
-
operationState:
|
|
2760
|
-
};
|
|
2483
|
+
return (0, smithy_client_1.take)(output, {
|
|
2484
|
+
arn: smithy_client_1.expectString,
|
|
2485
|
+
error: smithy_client_1._json,
|
|
2486
|
+
id: smithy_client_1.expectString,
|
|
2487
|
+
lcmOperationType: smithy_client_1.expectString,
|
|
2488
|
+
metadata: (_) => de_ListSolNetworkOperationsMetadata(_, context),
|
|
2489
|
+
nsInstanceId: smithy_client_1.expectString,
|
|
2490
|
+
operationState: smithy_client_1.expectString,
|
|
2491
|
+
});
|
|
2761
2492
|
};
|
|
2762
2493
|
const de_ListSolNetworkOperationsMetadata = (output, context) => {
|
|
2763
|
-
return {
|
|
2764
|
-
createdAt:
|
|
2765
|
-
lastModified:
|
|
2766
|
-
};
|
|
2494
|
+
return (0, smithy_client_1.take)(output, {
|
|
2495
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2496
|
+
lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2497
|
+
});
|
|
2767
2498
|
};
|
|
2768
2499
|
const de_ListSolNetworkOperationsResources = (output, context) => {
|
|
2769
2500
|
const retVal = (output || [])
|
|
2770
2501
|
.filter((e) => e != null)
|
|
2771
2502
|
.map((entry) => {
|
|
2772
|
-
if (entry === null) {
|
|
2773
|
-
return null;
|
|
2774
|
-
}
|
|
2775
2503
|
return de_ListSolNetworkOperationsInfo(entry, context);
|
|
2776
2504
|
});
|
|
2777
2505
|
return retVal;
|
|
2778
2506
|
};
|
|
2779
2507
|
const de_ListSolNetworkPackageInfo = (output, context) => {
|
|
2780
|
-
return {
|
|
2781
|
-
arn:
|
|
2782
|
-
id:
|
|
2783
|
-
metadata:
|
|
2784
|
-
nsdDesigner:
|
|
2785
|
-
nsdId:
|
|
2786
|
-
nsdInvariantId:
|
|
2787
|
-
nsdName:
|
|
2788
|
-
nsdOnboardingState:
|
|
2789
|
-
nsdOperationalState:
|
|
2790
|
-
nsdUsageState:
|
|
2791
|
-
nsdVersion:
|
|
2792
|
-
vnfPkgIds:
|
|
2793
|
-
};
|
|
2508
|
+
return (0, smithy_client_1.take)(output, {
|
|
2509
|
+
arn: smithy_client_1.expectString,
|
|
2510
|
+
id: smithy_client_1.expectString,
|
|
2511
|
+
metadata: (_) => de_ListSolNetworkPackageMetadata(_, context),
|
|
2512
|
+
nsdDesigner: smithy_client_1.expectString,
|
|
2513
|
+
nsdId: smithy_client_1.expectString,
|
|
2514
|
+
nsdInvariantId: smithy_client_1.expectString,
|
|
2515
|
+
nsdName: smithy_client_1.expectString,
|
|
2516
|
+
nsdOnboardingState: smithy_client_1.expectString,
|
|
2517
|
+
nsdOperationalState: smithy_client_1.expectString,
|
|
2518
|
+
nsdUsageState: smithy_client_1.expectString,
|
|
2519
|
+
nsdVersion: smithy_client_1.expectString,
|
|
2520
|
+
vnfPkgIds: smithy_client_1._json,
|
|
2521
|
+
});
|
|
2794
2522
|
};
|
|
2795
2523
|
const de_ListSolNetworkPackageMetadata = (output, context) => {
|
|
2796
|
-
return {
|
|
2797
|
-
createdAt:
|
|
2798
|
-
lastModified:
|
|
2799
|
-
};
|
|
2524
|
+
return (0, smithy_client_1.take)(output, {
|
|
2525
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2526
|
+
lastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2527
|
+
});
|
|
2800
2528
|
};
|
|
2801
2529
|
const de_ListSolNetworkPackageResources = (output, context) => {
|
|
2802
2530
|
const retVal = (output || [])
|
|
2803
2531
|
.filter((e) => e != null)
|
|
2804
2532
|
.map((entry) => {
|
|
2805
|
-
if (entry === null) {
|
|
2806
|
-
return null;
|
|
2807
|
-
}
|
|
2808
2533
|
return de_ListSolNetworkPackageInfo(entry, context);
|
|
2809
2534
|
});
|
|
2810
2535
|
return retVal;
|
|
2811
2536
|
};
|
|
2812
|
-
const de_NetworkArtifactMeta = (output, context) => {
|
|
2813
|
-
return {
|
|
2814
|
-
overrides: output.overrides != null ? de_OverrideList(output.overrides, context) : undefined,
|
|
2815
|
-
};
|
|
2816
|
-
};
|
|
2817
|
-
const de_OverrideList = (output, context) => {
|
|
2818
|
-
const retVal = (output || [])
|
|
2819
|
-
.filter((e) => e != null)
|
|
2820
|
-
.map((entry) => {
|
|
2821
|
-
if (entry === null) {
|
|
2822
|
-
return null;
|
|
2823
|
-
}
|
|
2824
|
-
return de_ToscaOverride(entry, context);
|
|
2825
|
-
});
|
|
2826
|
-
return retVal;
|
|
2827
|
-
};
|
|
2828
|
-
const de_ProblemDetails = (output, context) => {
|
|
2829
|
-
return {
|
|
2830
|
-
detail: (0, smithy_client_1.expectString)(output.detail),
|
|
2831
|
-
title: (0, smithy_client_1.expectString)(output.title),
|
|
2832
|
-
};
|
|
2833
|
-
};
|
|
2834
|
-
const de_PutSolFunctionPackageContentMetadata = (output, context) => {
|
|
2835
|
-
return {
|
|
2836
|
-
vnfd: output.vnfd != null ? de_FunctionArtifactMeta(output.vnfd, context) : undefined,
|
|
2837
|
-
};
|
|
2838
|
-
};
|
|
2839
|
-
const de_PutSolNetworkPackageContentMetadata = (output, context) => {
|
|
2840
|
-
return {
|
|
2841
|
-
nsd: output.nsd != null ? de_NetworkArtifactMeta(output.nsd, context) : undefined,
|
|
2842
|
-
};
|
|
2843
|
-
};
|
|
2844
|
-
const de_StringMap = (output, context) => {
|
|
2845
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2846
|
-
if (value === null) {
|
|
2847
|
-
return acc;
|
|
2848
|
-
}
|
|
2849
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2850
|
-
return acc;
|
|
2851
|
-
}, {});
|
|
2852
|
-
};
|
|
2853
|
-
const de_TagMap = (output, context) => {
|
|
2854
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2855
|
-
if (value === null) {
|
|
2856
|
-
return acc;
|
|
2857
|
-
}
|
|
2858
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2859
|
-
return acc;
|
|
2860
|
-
}, {});
|
|
2861
|
-
};
|
|
2862
|
-
const de_ToscaOverride = (output, context) => {
|
|
2863
|
-
return {
|
|
2864
|
-
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
2865
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2866
|
-
};
|
|
2867
|
-
};
|
|
2868
|
-
const de_ValidateSolFunctionPackageContentMetadata = (output, context) => {
|
|
2869
|
-
return {
|
|
2870
|
-
vnfd: output.vnfd != null ? de_FunctionArtifactMeta(output.vnfd, context) : undefined,
|
|
2871
|
-
};
|
|
2872
|
-
};
|
|
2873
|
-
const de_ValidateSolNetworkPackageContentMetadata = (output, context) => {
|
|
2874
|
-
return {
|
|
2875
|
-
nsd: output.nsd != null ? de_NetworkArtifactMeta(output.nsd, context) : undefined,
|
|
2876
|
-
};
|
|
2877
|
-
};
|
|
2878
|
-
const de_VnfPkgIdList = (output, context) => {
|
|
2879
|
-
const retVal = (output || [])
|
|
2880
|
-
.filter((e) => e != null)
|
|
2881
|
-
.map((entry) => {
|
|
2882
|
-
if (entry === null) {
|
|
2883
|
-
return null;
|
|
2884
|
-
}
|
|
2885
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2886
|
-
});
|
|
2887
|
-
return retVal;
|
|
2888
|
-
};
|
|
2889
2537
|
const deserializeMetadata = (output) => ({
|
|
2890
2538
|
httpStatusCode: output.statusCode,
|
|
2891
2539
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|