@aws-sdk/client-tnb 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1439 -1635
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/TnbClient.js +2 -0
- package/dist-es/commands/CancelSolNetworkOperationCommand.js +3 -9
- package/dist-es/commands/CreateSolFunctionPackageCommand.js +3 -10
- package/dist-es/commands/CreateSolNetworkInstanceCommand.js +3 -10
- package/dist-es/commands/CreateSolNetworkPackageCommand.js +3 -10
- package/dist-es/commands/DeleteSolFunctionPackageCommand.js +3 -9
- package/dist-es/commands/DeleteSolNetworkInstanceCommand.js +3 -9
- package/dist-es/commands/DeleteSolNetworkPackageCommand.js +3 -9
- package/dist-es/commands/GetSolFunctionInstanceCommand.js +3 -10
- package/dist-es/commands/GetSolFunctionPackageCommand.js +3 -10
- package/dist-es/commands/GetSolFunctionPackageContentCommand.js +3 -9
- package/dist-es/commands/GetSolFunctionPackageDescriptorCommand.js +3 -9
- package/dist-es/commands/GetSolNetworkInstanceCommand.js +3 -10
- package/dist-es/commands/GetSolNetworkOperationCommand.js +3 -10
- package/dist-es/commands/GetSolNetworkPackageCommand.js +3 -10
- package/dist-es/commands/GetSolNetworkPackageContentCommand.js +3 -9
- package/dist-es/commands/GetSolNetworkPackageDescriptorCommand.js +3 -9
- package/dist-es/commands/InstantiateSolNetworkInstanceCommand.js +3 -10
- package/dist-es/commands/ListSolFunctionInstancesCommand.js +3 -9
- package/dist-es/commands/ListSolFunctionPackagesCommand.js +3 -9
- package/dist-es/commands/ListSolNetworkInstancesCommand.js +3 -9
- package/dist-es/commands/ListSolNetworkOperationsCommand.js +3 -9
- package/dist-es/commands/ListSolNetworkPackagesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/PutSolFunctionPackageContentCommand.js +3 -10
- package/dist-es/commands/PutSolNetworkPackageContentCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/TerminateSolNetworkInstanceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateSolFunctionPackageCommand.js +3 -9
- package/dist-es/commands/UpdateSolNetworkInstanceCommand.js +3 -10
- package/dist-es/commands/UpdateSolNetworkPackageCommand.js +3 -9
- package/dist-es/commands/ValidateSolFunctionPackageContentCommand.js +3 -10
- package/dist-es/commands/ValidateSolNetworkPackageContentCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -93
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1364 -0
- package/dist-types/TnbClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -92
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +152 -0
- package/dist-types/ts3.4/TnbClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -69
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +159 -0
- package/package.json +34 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -1280
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -299
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -401
|
@@ -1,1280 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
-
import { TnbServiceException as __BaseException } from "../models/TnbServiceException";
|
|
6
|
-
export const se_CancelSolNetworkOperationCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {};
|
|
9
|
-
b.bp("/sol/nslcm/v1/ns_lcm_op_occs/{nsLcmOpOccId}/cancel");
|
|
10
|
-
b.p("nsLcmOpOccId", () => input.nsLcmOpOccId, "{nsLcmOpOccId}", false);
|
|
11
|
-
let body;
|
|
12
|
-
b.m("POST").h(headers).b(body);
|
|
13
|
-
return b.build();
|
|
14
|
-
};
|
|
15
|
-
export const se_CreateSolFunctionPackageCommand = async (input, context) => {
|
|
16
|
-
const b = rb(input, context);
|
|
17
|
-
const headers = {
|
|
18
|
-
"content-type": "application/json",
|
|
19
|
-
};
|
|
20
|
-
b.bp("/sol/vnfpkgm/v1/vnf_packages");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(take(input, {
|
|
23
|
-
tags: (_) => _json(_),
|
|
24
|
-
}));
|
|
25
|
-
b.m("POST").h(headers).b(body);
|
|
26
|
-
return b.build();
|
|
27
|
-
};
|
|
28
|
-
export const se_CreateSolNetworkInstanceCommand = async (input, context) => {
|
|
29
|
-
const b = rb(input, context);
|
|
30
|
-
const headers = {
|
|
31
|
-
"content-type": "application/json",
|
|
32
|
-
};
|
|
33
|
-
b.bp("/sol/nslcm/v1/ns_instances");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify(take(input, {
|
|
36
|
-
nsDescription: [],
|
|
37
|
-
nsName: [],
|
|
38
|
-
nsdInfoId: [],
|
|
39
|
-
tags: (_) => _json(_),
|
|
40
|
-
}));
|
|
41
|
-
b.m("POST").h(headers).b(body);
|
|
42
|
-
return b.build();
|
|
43
|
-
};
|
|
44
|
-
export const se_CreateSolNetworkPackageCommand = async (input, context) => {
|
|
45
|
-
const b = rb(input, context);
|
|
46
|
-
const headers = {
|
|
47
|
-
"content-type": "application/json",
|
|
48
|
-
};
|
|
49
|
-
b.bp("/sol/nsd/v1/ns_descriptors");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(take(input, {
|
|
52
|
-
tags: (_) => _json(_),
|
|
53
|
-
}));
|
|
54
|
-
b.m("POST").h(headers).b(body);
|
|
55
|
-
return b.build();
|
|
56
|
-
};
|
|
57
|
-
export const se_DeleteSolFunctionPackageCommand = async (input, context) => {
|
|
58
|
-
const b = rb(input, context);
|
|
59
|
-
const headers = {};
|
|
60
|
-
b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}");
|
|
61
|
-
b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
|
|
62
|
-
let body;
|
|
63
|
-
b.m("DELETE").h(headers).b(body);
|
|
64
|
-
return b.build();
|
|
65
|
-
};
|
|
66
|
-
export const se_DeleteSolNetworkInstanceCommand = async (input, context) => {
|
|
67
|
-
const b = rb(input, context);
|
|
68
|
-
const headers = {};
|
|
69
|
-
b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}");
|
|
70
|
-
b.p("nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
|
|
71
|
-
let body;
|
|
72
|
-
b.m("DELETE").h(headers).b(body);
|
|
73
|
-
return b.build();
|
|
74
|
-
};
|
|
75
|
-
export const se_DeleteSolNetworkPackageCommand = async (input, context) => {
|
|
76
|
-
const b = rb(input, context);
|
|
77
|
-
const headers = {};
|
|
78
|
-
b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}");
|
|
79
|
-
b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
|
|
80
|
-
let body;
|
|
81
|
-
b.m("DELETE").h(headers).b(body);
|
|
82
|
-
return b.build();
|
|
83
|
-
};
|
|
84
|
-
export const se_GetSolFunctionInstanceCommand = async (input, context) => {
|
|
85
|
-
const b = rb(input, context);
|
|
86
|
-
const headers = {};
|
|
87
|
-
b.bp("/sol/vnflcm/v1/vnf_instances/{vnfInstanceId}");
|
|
88
|
-
b.p("vnfInstanceId", () => input.vnfInstanceId, "{vnfInstanceId}", false);
|
|
89
|
-
let body;
|
|
90
|
-
b.m("GET").h(headers).b(body);
|
|
91
|
-
return b.build();
|
|
92
|
-
};
|
|
93
|
-
export const se_GetSolFunctionPackageCommand = async (input, context) => {
|
|
94
|
-
const b = rb(input, context);
|
|
95
|
-
const headers = {};
|
|
96
|
-
b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}");
|
|
97
|
-
b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
|
|
98
|
-
let body;
|
|
99
|
-
b.m("GET").h(headers).b(body);
|
|
100
|
-
return b.build();
|
|
101
|
-
};
|
|
102
|
-
export const se_GetSolFunctionPackageContentCommand = async (input, context) => {
|
|
103
|
-
const b = rb(input, context);
|
|
104
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
105
|
-
[_a]: input[_a],
|
|
106
|
-
});
|
|
107
|
-
b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content");
|
|
108
|
-
b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
|
|
109
|
-
let body;
|
|
110
|
-
b.m("GET").h(headers).b(body);
|
|
111
|
-
return b.build();
|
|
112
|
-
};
|
|
113
|
-
export const se_GetSolFunctionPackageDescriptorCommand = async (input, context) => {
|
|
114
|
-
const b = rb(input, context);
|
|
115
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
116
|
-
[_a]: input[_a],
|
|
117
|
-
});
|
|
118
|
-
b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/vnfd");
|
|
119
|
-
b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
|
|
120
|
-
let body;
|
|
121
|
-
b.m("GET").h(headers).b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
export const se_GetSolNetworkInstanceCommand = async (input, context) => {
|
|
125
|
-
const b = rb(input, context);
|
|
126
|
-
const headers = {};
|
|
127
|
-
b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}");
|
|
128
|
-
b.p("nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
|
|
129
|
-
let body;
|
|
130
|
-
b.m("GET").h(headers).b(body);
|
|
131
|
-
return b.build();
|
|
132
|
-
};
|
|
133
|
-
export const se_GetSolNetworkOperationCommand = async (input, context) => {
|
|
134
|
-
const b = rb(input, context);
|
|
135
|
-
const headers = {};
|
|
136
|
-
b.bp("/sol/nslcm/v1/ns_lcm_op_occs/{nsLcmOpOccId}");
|
|
137
|
-
b.p("nsLcmOpOccId", () => input.nsLcmOpOccId, "{nsLcmOpOccId}", false);
|
|
138
|
-
let body;
|
|
139
|
-
b.m("GET").h(headers).b(body);
|
|
140
|
-
return b.build();
|
|
141
|
-
};
|
|
142
|
-
export const se_GetSolNetworkPackageCommand = async (input, context) => {
|
|
143
|
-
const b = rb(input, context);
|
|
144
|
-
const headers = {};
|
|
145
|
-
b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}");
|
|
146
|
-
b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
|
|
147
|
-
let body;
|
|
148
|
-
b.m("GET").h(headers).b(body);
|
|
149
|
-
return b.build();
|
|
150
|
-
};
|
|
151
|
-
export const se_GetSolNetworkPackageContentCommand = async (input, context) => {
|
|
152
|
-
const b = rb(input, context);
|
|
153
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
154
|
-
[_a]: input[_a],
|
|
155
|
-
});
|
|
156
|
-
b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content");
|
|
157
|
-
b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
|
|
158
|
-
let body;
|
|
159
|
-
b.m("GET").h(headers).b(body);
|
|
160
|
-
return b.build();
|
|
161
|
-
};
|
|
162
|
-
export const se_GetSolNetworkPackageDescriptorCommand = async (input, context) => {
|
|
163
|
-
const b = rb(input, context);
|
|
164
|
-
const headers = {};
|
|
165
|
-
b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd");
|
|
166
|
-
b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
|
|
167
|
-
let body;
|
|
168
|
-
b.m("GET").h(headers).b(body);
|
|
169
|
-
return b.build();
|
|
170
|
-
};
|
|
171
|
-
export const se_InstantiateSolNetworkInstanceCommand = async (input, context) => {
|
|
172
|
-
const b = rb(input, context);
|
|
173
|
-
const headers = {
|
|
174
|
-
"content-type": "application/json",
|
|
175
|
-
};
|
|
176
|
-
b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}/instantiate");
|
|
177
|
-
b.p("nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
|
|
178
|
-
const query = map({
|
|
179
|
-
[_dr]: [() => input.dryRun !== void 0, () => input[_dR].toString()],
|
|
180
|
-
});
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify(take(input, {
|
|
183
|
-
additionalParamsForNs: (_) => se_Document(_, context),
|
|
184
|
-
tags: (_) => _json(_),
|
|
185
|
-
}));
|
|
186
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
187
|
-
return b.build();
|
|
188
|
-
};
|
|
189
|
-
export const se_ListSolFunctionInstancesCommand = async (input, context) => {
|
|
190
|
-
const b = rb(input, context);
|
|
191
|
-
const headers = {};
|
|
192
|
-
b.bp("/sol/vnflcm/v1/vnf_instances");
|
|
193
|
-
const query = map({
|
|
194
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
195
|
-
[_nom]: [, input[_nT]],
|
|
196
|
-
});
|
|
197
|
-
let body;
|
|
198
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
199
|
-
return b.build();
|
|
200
|
-
};
|
|
201
|
-
export const se_ListSolFunctionPackagesCommand = async (input, context) => {
|
|
202
|
-
const b = rb(input, context);
|
|
203
|
-
const headers = {};
|
|
204
|
-
b.bp("/sol/vnfpkgm/v1/vnf_packages");
|
|
205
|
-
const query = map({
|
|
206
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
207
|
-
[_nom]: [, input[_nT]],
|
|
208
|
-
});
|
|
209
|
-
let body;
|
|
210
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
211
|
-
return b.build();
|
|
212
|
-
};
|
|
213
|
-
export const se_ListSolNetworkInstancesCommand = async (input, context) => {
|
|
214
|
-
const b = rb(input, context);
|
|
215
|
-
const headers = {};
|
|
216
|
-
b.bp("/sol/nslcm/v1/ns_instances");
|
|
217
|
-
const query = map({
|
|
218
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
219
|
-
[_nom]: [, input[_nT]],
|
|
220
|
-
});
|
|
221
|
-
let body;
|
|
222
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
223
|
-
return b.build();
|
|
224
|
-
};
|
|
225
|
-
export const se_ListSolNetworkOperationsCommand = async (input, context) => {
|
|
226
|
-
const b = rb(input, context);
|
|
227
|
-
const headers = {};
|
|
228
|
-
b.bp("/sol/nslcm/v1/ns_lcm_op_occs");
|
|
229
|
-
const query = map({
|
|
230
|
-
[_nII]: [, input[_nII]],
|
|
231
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
232
|
-
[_nom]: [, input[_nT]],
|
|
233
|
-
});
|
|
234
|
-
let body;
|
|
235
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
236
|
-
return b.build();
|
|
237
|
-
};
|
|
238
|
-
export const se_ListSolNetworkPackagesCommand = async (input, context) => {
|
|
239
|
-
const b = rb(input, context);
|
|
240
|
-
const headers = {};
|
|
241
|
-
b.bp("/sol/nsd/v1/ns_descriptors");
|
|
242
|
-
const query = map({
|
|
243
|
-
[_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
244
|
-
[_nom]: [, input[_nT]],
|
|
245
|
-
});
|
|
246
|
-
let body;
|
|
247
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
248
|
-
return b.build();
|
|
249
|
-
};
|
|
250
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
251
|
-
const b = rb(input, context);
|
|
252
|
-
const headers = {};
|
|
253
|
-
b.bp("/tags/{resourceArn}");
|
|
254
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
255
|
-
let body;
|
|
256
|
-
b.m("GET").h(headers).b(body);
|
|
257
|
-
return b.build();
|
|
258
|
-
};
|
|
259
|
-
export const se_PutSolFunctionPackageContentCommand = async (input, context) => {
|
|
260
|
-
const b = rb(input, context);
|
|
261
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
262
|
-
[_ct]: input[_cT] || "application/octet-stream",
|
|
263
|
-
});
|
|
264
|
-
b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content");
|
|
265
|
-
b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
|
|
266
|
-
let body;
|
|
267
|
-
if (input.file !== undefined) {
|
|
268
|
-
body = input.file;
|
|
269
|
-
}
|
|
270
|
-
b.m("PUT").h(headers).b(body);
|
|
271
|
-
return b.build();
|
|
272
|
-
};
|
|
273
|
-
export const se_PutSolNetworkPackageContentCommand = async (input, context) => {
|
|
274
|
-
const b = rb(input, context);
|
|
275
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
276
|
-
[_ct]: input[_cT] || "application/octet-stream",
|
|
277
|
-
});
|
|
278
|
-
b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content");
|
|
279
|
-
b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
|
|
280
|
-
let body;
|
|
281
|
-
if (input.file !== undefined) {
|
|
282
|
-
body = input.file;
|
|
283
|
-
}
|
|
284
|
-
b.m("PUT").h(headers).b(body);
|
|
285
|
-
return b.build();
|
|
286
|
-
};
|
|
287
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
288
|
-
const b = rb(input, context);
|
|
289
|
-
const headers = {
|
|
290
|
-
"content-type": "application/json",
|
|
291
|
-
};
|
|
292
|
-
b.bp("/tags/{resourceArn}");
|
|
293
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
294
|
-
let body;
|
|
295
|
-
body = JSON.stringify(take(input, {
|
|
296
|
-
tags: (_) => _json(_),
|
|
297
|
-
}));
|
|
298
|
-
b.m("POST").h(headers).b(body);
|
|
299
|
-
return b.build();
|
|
300
|
-
};
|
|
301
|
-
export const se_TerminateSolNetworkInstanceCommand = async (input, context) => {
|
|
302
|
-
const b = rb(input, context);
|
|
303
|
-
const headers = {
|
|
304
|
-
"content-type": "application/json",
|
|
305
|
-
};
|
|
306
|
-
b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}/terminate");
|
|
307
|
-
b.p("nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
|
|
308
|
-
let body;
|
|
309
|
-
body = JSON.stringify(take(input, {
|
|
310
|
-
tags: (_) => _json(_),
|
|
311
|
-
}));
|
|
312
|
-
b.m("POST").h(headers).b(body);
|
|
313
|
-
return b.build();
|
|
314
|
-
};
|
|
315
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
316
|
-
const b = rb(input, context);
|
|
317
|
-
const headers = {};
|
|
318
|
-
b.bp("/tags/{resourceArn}");
|
|
319
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
320
|
-
const query = map({
|
|
321
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
322
|
-
});
|
|
323
|
-
let body;
|
|
324
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
325
|
-
return b.build();
|
|
326
|
-
};
|
|
327
|
-
export const se_UpdateSolFunctionPackageCommand = async (input, context) => {
|
|
328
|
-
const b = rb(input, context);
|
|
329
|
-
const headers = {
|
|
330
|
-
"content-type": "application/json",
|
|
331
|
-
};
|
|
332
|
-
b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}");
|
|
333
|
-
b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
|
|
334
|
-
let body;
|
|
335
|
-
body = JSON.stringify(take(input, {
|
|
336
|
-
operationalState: [],
|
|
337
|
-
}));
|
|
338
|
-
b.m("PATCH").h(headers).b(body);
|
|
339
|
-
return b.build();
|
|
340
|
-
};
|
|
341
|
-
export const se_UpdateSolNetworkInstanceCommand = async (input, context) => {
|
|
342
|
-
const b = rb(input, context);
|
|
343
|
-
const headers = {
|
|
344
|
-
"content-type": "application/json",
|
|
345
|
-
};
|
|
346
|
-
b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}/update");
|
|
347
|
-
b.p("nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
|
|
348
|
-
let body;
|
|
349
|
-
body = JSON.stringify(take(input, {
|
|
350
|
-
modifyVnfInfoData: (_) => se_UpdateSolNetworkModify(_, context),
|
|
351
|
-
tags: (_) => _json(_),
|
|
352
|
-
updateNs: (_) => se_UpdateSolNetworkServiceData(_, context),
|
|
353
|
-
updateType: [],
|
|
354
|
-
}));
|
|
355
|
-
b.m("POST").h(headers).b(body);
|
|
356
|
-
return b.build();
|
|
357
|
-
};
|
|
358
|
-
export const se_UpdateSolNetworkPackageCommand = async (input, context) => {
|
|
359
|
-
const b = rb(input, context);
|
|
360
|
-
const headers = {
|
|
361
|
-
"content-type": "application/json",
|
|
362
|
-
};
|
|
363
|
-
b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}");
|
|
364
|
-
b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
|
|
365
|
-
let body;
|
|
366
|
-
body = JSON.stringify(take(input, {
|
|
367
|
-
nsdOperationalState: [],
|
|
368
|
-
}));
|
|
369
|
-
b.m("PATCH").h(headers).b(body);
|
|
370
|
-
return b.build();
|
|
371
|
-
};
|
|
372
|
-
export const se_ValidateSolFunctionPackageContentCommand = async (input, context) => {
|
|
373
|
-
const b = rb(input, context);
|
|
374
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
375
|
-
[_ct]: input[_cT] || "application/octet-stream",
|
|
376
|
-
});
|
|
377
|
-
b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content/validate");
|
|
378
|
-
b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
|
|
379
|
-
let body;
|
|
380
|
-
if (input.file !== undefined) {
|
|
381
|
-
body = input.file;
|
|
382
|
-
}
|
|
383
|
-
b.m("PUT").h(headers).b(body);
|
|
384
|
-
return b.build();
|
|
385
|
-
};
|
|
386
|
-
export const se_ValidateSolNetworkPackageContentCommand = async (input, context) => {
|
|
387
|
-
const b = rb(input, context);
|
|
388
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
389
|
-
[_ct]: input[_cT] || "application/octet-stream",
|
|
390
|
-
});
|
|
391
|
-
b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content/validate");
|
|
392
|
-
b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
|
|
393
|
-
let body;
|
|
394
|
-
if (input.file !== undefined) {
|
|
395
|
-
body = input.file;
|
|
396
|
-
}
|
|
397
|
-
b.m("PUT").h(headers).b(body);
|
|
398
|
-
return b.build();
|
|
399
|
-
};
|
|
400
|
-
export const de_CancelSolNetworkOperationCommand = async (output, context) => {
|
|
401
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
402
|
-
return de_CommandError(output, context);
|
|
403
|
-
}
|
|
404
|
-
const contents = map({
|
|
405
|
-
$metadata: deserializeMetadata(output),
|
|
406
|
-
});
|
|
407
|
-
await collectBody(output.body, context);
|
|
408
|
-
return contents;
|
|
409
|
-
};
|
|
410
|
-
export const de_CreateSolFunctionPackageCommand = async (output, context) => {
|
|
411
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
412
|
-
return de_CommandError(output, context);
|
|
413
|
-
}
|
|
414
|
-
const contents = map({
|
|
415
|
-
$metadata: deserializeMetadata(output),
|
|
416
|
-
});
|
|
417
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
418
|
-
const doc = take(data, {
|
|
419
|
-
arn: __expectString,
|
|
420
|
-
id: __expectString,
|
|
421
|
-
onboardingState: __expectString,
|
|
422
|
-
operationalState: __expectString,
|
|
423
|
-
tags: _json,
|
|
424
|
-
usageState: __expectString,
|
|
425
|
-
});
|
|
426
|
-
Object.assign(contents, doc);
|
|
427
|
-
return contents;
|
|
428
|
-
};
|
|
429
|
-
export const de_CreateSolNetworkInstanceCommand = async (output, context) => {
|
|
430
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
431
|
-
return de_CommandError(output, context);
|
|
432
|
-
}
|
|
433
|
-
const contents = map({
|
|
434
|
-
$metadata: deserializeMetadata(output),
|
|
435
|
-
});
|
|
436
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
437
|
-
const doc = take(data, {
|
|
438
|
-
arn: __expectString,
|
|
439
|
-
id: __expectString,
|
|
440
|
-
nsInstanceName: __expectString,
|
|
441
|
-
nsdInfoId: __expectString,
|
|
442
|
-
tags: _json,
|
|
443
|
-
});
|
|
444
|
-
Object.assign(contents, doc);
|
|
445
|
-
return contents;
|
|
446
|
-
};
|
|
447
|
-
export const de_CreateSolNetworkPackageCommand = async (output, context) => {
|
|
448
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
449
|
-
return de_CommandError(output, context);
|
|
450
|
-
}
|
|
451
|
-
const contents = map({
|
|
452
|
-
$metadata: deserializeMetadata(output),
|
|
453
|
-
});
|
|
454
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
455
|
-
const doc = take(data, {
|
|
456
|
-
arn: __expectString,
|
|
457
|
-
id: __expectString,
|
|
458
|
-
nsdOnboardingState: __expectString,
|
|
459
|
-
nsdOperationalState: __expectString,
|
|
460
|
-
nsdUsageState: __expectString,
|
|
461
|
-
tags: _json,
|
|
462
|
-
});
|
|
463
|
-
Object.assign(contents, doc);
|
|
464
|
-
return contents;
|
|
465
|
-
};
|
|
466
|
-
export const de_DeleteSolFunctionPackageCommand = async (output, context) => {
|
|
467
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
468
|
-
return de_CommandError(output, context);
|
|
469
|
-
}
|
|
470
|
-
const contents = map({
|
|
471
|
-
$metadata: deserializeMetadata(output),
|
|
472
|
-
});
|
|
473
|
-
await collectBody(output.body, context);
|
|
474
|
-
return contents;
|
|
475
|
-
};
|
|
476
|
-
export const de_DeleteSolNetworkInstanceCommand = async (output, context) => {
|
|
477
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
478
|
-
return de_CommandError(output, context);
|
|
479
|
-
}
|
|
480
|
-
const contents = map({
|
|
481
|
-
$metadata: deserializeMetadata(output),
|
|
482
|
-
});
|
|
483
|
-
await collectBody(output.body, context);
|
|
484
|
-
return contents;
|
|
485
|
-
};
|
|
486
|
-
export const de_DeleteSolNetworkPackageCommand = async (output, context) => {
|
|
487
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
488
|
-
return de_CommandError(output, context);
|
|
489
|
-
}
|
|
490
|
-
const contents = map({
|
|
491
|
-
$metadata: deserializeMetadata(output),
|
|
492
|
-
});
|
|
493
|
-
await collectBody(output.body, context);
|
|
494
|
-
return contents;
|
|
495
|
-
};
|
|
496
|
-
export const de_GetSolFunctionInstanceCommand = async (output, context) => {
|
|
497
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
498
|
-
return de_CommandError(output, context);
|
|
499
|
-
}
|
|
500
|
-
const contents = map({
|
|
501
|
-
$metadata: deserializeMetadata(output),
|
|
502
|
-
});
|
|
503
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
504
|
-
const doc = take(data, {
|
|
505
|
-
arn: __expectString,
|
|
506
|
-
id: __expectString,
|
|
507
|
-
instantiatedVnfInfo: _json,
|
|
508
|
-
instantiationState: __expectString,
|
|
509
|
-
metadata: (_) => de_GetSolFunctionInstanceMetadata(_, context),
|
|
510
|
-
nsInstanceId: __expectString,
|
|
511
|
-
tags: _json,
|
|
512
|
-
vnfPkgId: __expectString,
|
|
513
|
-
vnfProductName: __expectString,
|
|
514
|
-
vnfProvider: __expectString,
|
|
515
|
-
vnfdId: __expectString,
|
|
516
|
-
vnfdVersion: __expectString,
|
|
517
|
-
});
|
|
518
|
-
Object.assign(contents, doc);
|
|
519
|
-
return contents;
|
|
520
|
-
};
|
|
521
|
-
export const de_GetSolFunctionPackageCommand = async (output, context) => {
|
|
522
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
523
|
-
return de_CommandError(output, context);
|
|
524
|
-
}
|
|
525
|
-
const contents = map({
|
|
526
|
-
$metadata: deserializeMetadata(output),
|
|
527
|
-
});
|
|
528
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
529
|
-
const doc = take(data, {
|
|
530
|
-
arn: __expectString,
|
|
531
|
-
id: __expectString,
|
|
532
|
-
metadata: (_) => de_GetSolFunctionPackageMetadata(_, context),
|
|
533
|
-
onboardingState: __expectString,
|
|
534
|
-
operationalState: __expectString,
|
|
535
|
-
tags: _json,
|
|
536
|
-
usageState: __expectString,
|
|
537
|
-
vnfProductName: __expectString,
|
|
538
|
-
vnfProvider: __expectString,
|
|
539
|
-
vnfdId: __expectString,
|
|
540
|
-
vnfdVersion: __expectString,
|
|
541
|
-
});
|
|
542
|
-
Object.assign(contents, doc);
|
|
543
|
-
return contents;
|
|
544
|
-
};
|
|
545
|
-
export const de_GetSolFunctionPackageContentCommand = async (output, context) => {
|
|
546
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
547
|
-
return de_CommandError(output, context);
|
|
548
|
-
}
|
|
549
|
-
const contents = map({
|
|
550
|
-
$metadata: deserializeMetadata(output),
|
|
551
|
-
[_cT]: [, output.headers[_ct]],
|
|
552
|
-
});
|
|
553
|
-
const data = await collectBody(output.body, context);
|
|
554
|
-
contents.packageContent = data;
|
|
555
|
-
return contents;
|
|
556
|
-
};
|
|
557
|
-
export const de_GetSolFunctionPackageDescriptorCommand = async (output, context) => {
|
|
558
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
-
return de_CommandError(output, context);
|
|
560
|
-
}
|
|
561
|
-
const contents = map({
|
|
562
|
-
$metadata: deserializeMetadata(output),
|
|
563
|
-
[_cT]: [, output.headers[_ct]],
|
|
564
|
-
});
|
|
565
|
-
const data = await collectBody(output.body, context);
|
|
566
|
-
contents.vnfd = data;
|
|
567
|
-
return contents;
|
|
568
|
-
};
|
|
569
|
-
export const de_GetSolNetworkInstanceCommand = async (output, context) => {
|
|
570
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
571
|
-
return de_CommandError(output, context);
|
|
572
|
-
}
|
|
573
|
-
const contents = map({
|
|
574
|
-
$metadata: deserializeMetadata(output),
|
|
575
|
-
});
|
|
576
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
577
|
-
const doc = take(data, {
|
|
578
|
-
arn: __expectString,
|
|
579
|
-
id: __expectString,
|
|
580
|
-
lcmOpInfo: _json,
|
|
581
|
-
metadata: (_) => de_GetSolNetworkInstanceMetadata(_, context),
|
|
582
|
-
nsInstanceDescription: __expectString,
|
|
583
|
-
nsInstanceName: __expectString,
|
|
584
|
-
nsState: __expectString,
|
|
585
|
-
nsdId: __expectString,
|
|
586
|
-
nsdInfoId: __expectString,
|
|
587
|
-
tags: _json,
|
|
588
|
-
});
|
|
589
|
-
Object.assign(contents, doc);
|
|
590
|
-
return contents;
|
|
591
|
-
};
|
|
592
|
-
export const de_GetSolNetworkOperationCommand = async (output, context) => {
|
|
593
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
594
|
-
return de_CommandError(output, context);
|
|
595
|
-
}
|
|
596
|
-
const contents = map({
|
|
597
|
-
$metadata: deserializeMetadata(output),
|
|
598
|
-
});
|
|
599
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
600
|
-
const doc = take(data, {
|
|
601
|
-
arn: __expectString,
|
|
602
|
-
error: _json,
|
|
603
|
-
id: __expectString,
|
|
604
|
-
lcmOperationType: __expectString,
|
|
605
|
-
metadata: (_) => de_GetSolNetworkOperationMetadata(_, context),
|
|
606
|
-
nsInstanceId: __expectString,
|
|
607
|
-
operationState: __expectString,
|
|
608
|
-
tags: _json,
|
|
609
|
-
tasks: (_) => de_GetSolNetworkOperationTasksList(_, context),
|
|
610
|
-
updateType: __expectString,
|
|
611
|
-
});
|
|
612
|
-
Object.assign(contents, doc);
|
|
613
|
-
return contents;
|
|
614
|
-
};
|
|
615
|
-
export const de_GetSolNetworkPackageCommand = async (output, context) => {
|
|
616
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
617
|
-
return de_CommandError(output, context);
|
|
618
|
-
}
|
|
619
|
-
const contents = map({
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
});
|
|
622
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
623
|
-
const doc = take(data, {
|
|
624
|
-
arn: __expectString,
|
|
625
|
-
id: __expectString,
|
|
626
|
-
metadata: (_) => de_GetSolNetworkPackageMetadata(_, context),
|
|
627
|
-
nsdId: __expectString,
|
|
628
|
-
nsdName: __expectString,
|
|
629
|
-
nsdOnboardingState: __expectString,
|
|
630
|
-
nsdOperationalState: __expectString,
|
|
631
|
-
nsdUsageState: __expectString,
|
|
632
|
-
nsdVersion: __expectString,
|
|
633
|
-
tags: _json,
|
|
634
|
-
vnfPkgIds: _json,
|
|
635
|
-
});
|
|
636
|
-
Object.assign(contents, doc);
|
|
637
|
-
return contents;
|
|
638
|
-
};
|
|
639
|
-
export const de_GetSolNetworkPackageContentCommand = async (output, context) => {
|
|
640
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
641
|
-
return de_CommandError(output, context);
|
|
642
|
-
}
|
|
643
|
-
const contents = map({
|
|
644
|
-
$metadata: deserializeMetadata(output),
|
|
645
|
-
[_cT]: [, output.headers[_ct]],
|
|
646
|
-
});
|
|
647
|
-
const data = await collectBody(output.body, context);
|
|
648
|
-
contents.nsdContent = data;
|
|
649
|
-
return contents;
|
|
650
|
-
};
|
|
651
|
-
export const de_GetSolNetworkPackageDescriptorCommand = async (output, context) => {
|
|
652
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
653
|
-
return de_CommandError(output, context);
|
|
654
|
-
}
|
|
655
|
-
const contents = map({
|
|
656
|
-
$metadata: deserializeMetadata(output),
|
|
657
|
-
[_cT]: [, output.headers[_ct]],
|
|
658
|
-
});
|
|
659
|
-
const data = await collectBody(output.body, context);
|
|
660
|
-
contents.nsd = data;
|
|
661
|
-
return contents;
|
|
662
|
-
};
|
|
663
|
-
export const de_InstantiateSolNetworkInstanceCommand = async (output, context) => {
|
|
664
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
665
|
-
return de_CommandError(output, context);
|
|
666
|
-
}
|
|
667
|
-
const contents = map({
|
|
668
|
-
$metadata: deserializeMetadata(output),
|
|
669
|
-
});
|
|
670
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
671
|
-
const doc = take(data, {
|
|
672
|
-
nsLcmOpOccId: __expectString,
|
|
673
|
-
tags: _json,
|
|
674
|
-
});
|
|
675
|
-
Object.assign(contents, doc);
|
|
676
|
-
return contents;
|
|
677
|
-
};
|
|
678
|
-
export const de_ListSolFunctionInstancesCommand = async (output, context) => {
|
|
679
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
680
|
-
return de_CommandError(output, context);
|
|
681
|
-
}
|
|
682
|
-
const contents = map({
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
});
|
|
685
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
686
|
-
const doc = take(data, {
|
|
687
|
-
functionInstances: (_) => de_ListSolFunctionInstanceResources(_, context),
|
|
688
|
-
nextToken: __expectString,
|
|
689
|
-
});
|
|
690
|
-
Object.assign(contents, doc);
|
|
691
|
-
return contents;
|
|
692
|
-
};
|
|
693
|
-
export const de_ListSolFunctionPackagesCommand = async (output, context) => {
|
|
694
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
695
|
-
return de_CommandError(output, context);
|
|
696
|
-
}
|
|
697
|
-
const contents = map({
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
});
|
|
700
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
701
|
-
const doc = take(data, {
|
|
702
|
-
functionPackages: (_) => de_ListSolFunctionPackageResources(_, context),
|
|
703
|
-
nextToken: __expectString,
|
|
704
|
-
});
|
|
705
|
-
Object.assign(contents, doc);
|
|
706
|
-
return contents;
|
|
707
|
-
};
|
|
708
|
-
export const de_ListSolNetworkInstancesCommand = async (output, context) => {
|
|
709
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
710
|
-
return de_CommandError(output, context);
|
|
711
|
-
}
|
|
712
|
-
const contents = map({
|
|
713
|
-
$metadata: deserializeMetadata(output),
|
|
714
|
-
});
|
|
715
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
716
|
-
const doc = take(data, {
|
|
717
|
-
networkInstances: (_) => de_ListSolNetworkInstanceResources(_, context),
|
|
718
|
-
nextToken: __expectString,
|
|
719
|
-
});
|
|
720
|
-
Object.assign(contents, doc);
|
|
721
|
-
return contents;
|
|
722
|
-
};
|
|
723
|
-
export const de_ListSolNetworkOperationsCommand = async (output, context) => {
|
|
724
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
725
|
-
return de_CommandError(output, context);
|
|
726
|
-
}
|
|
727
|
-
const contents = map({
|
|
728
|
-
$metadata: deserializeMetadata(output),
|
|
729
|
-
});
|
|
730
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
731
|
-
const doc = take(data, {
|
|
732
|
-
networkOperations: (_) => de_ListSolNetworkOperationsResources(_, context),
|
|
733
|
-
nextToken: __expectString,
|
|
734
|
-
});
|
|
735
|
-
Object.assign(contents, doc);
|
|
736
|
-
return contents;
|
|
737
|
-
};
|
|
738
|
-
export const de_ListSolNetworkPackagesCommand = async (output, context) => {
|
|
739
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
740
|
-
return de_CommandError(output, context);
|
|
741
|
-
}
|
|
742
|
-
const contents = map({
|
|
743
|
-
$metadata: deserializeMetadata(output),
|
|
744
|
-
});
|
|
745
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
746
|
-
const doc = take(data, {
|
|
747
|
-
networkPackages: (_) => de_ListSolNetworkPackageResources(_, context),
|
|
748
|
-
nextToken: __expectString,
|
|
749
|
-
});
|
|
750
|
-
Object.assign(contents, doc);
|
|
751
|
-
return contents;
|
|
752
|
-
};
|
|
753
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
754
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return de_CommandError(output, context);
|
|
756
|
-
}
|
|
757
|
-
const contents = map({
|
|
758
|
-
$metadata: deserializeMetadata(output),
|
|
759
|
-
});
|
|
760
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
761
|
-
const doc = take(data, {
|
|
762
|
-
tags: _json,
|
|
763
|
-
});
|
|
764
|
-
Object.assign(contents, doc);
|
|
765
|
-
return contents;
|
|
766
|
-
};
|
|
767
|
-
export const de_PutSolFunctionPackageContentCommand = async (output, context) => {
|
|
768
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
769
|
-
return de_CommandError(output, context);
|
|
770
|
-
}
|
|
771
|
-
const contents = map({
|
|
772
|
-
$metadata: deserializeMetadata(output),
|
|
773
|
-
});
|
|
774
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
775
|
-
const doc = take(data, {
|
|
776
|
-
id: __expectString,
|
|
777
|
-
metadata: _json,
|
|
778
|
-
vnfProductName: __expectString,
|
|
779
|
-
vnfProvider: __expectString,
|
|
780
|
-
vnfdId: __expectString,
|
|
781
|
-
vnfdVersion: __expectString,
|
|
782
|
-
});
|
|
783
|
-
Object.assign(contents, doc);
|
|
784
|
-
return contents;
|
|
785
|
-
};
|
|
786
|
-
export const de_PutSolNetworkPackageContentCommand = async (output, context) => {
|
|
787
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
788
|
-
return de_CommandError(output, context);
|
|
789
|
-
}
|
|
790
|
-
const contents = map({
|
|
791
|
-
$metadata: deserializeMetadata(output),
|
|
792
|
-
});
|
|
793
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
794
|
-
const doc = take(data, {
|
|
795
|
-
arn: __expectString,
|
|
796
|
-
id: __expectString,
|
|
797
|
-
metadata: _json,
|
|
798
|
-
nsdId: __expectString,
|
|
799
|
-
nsdName: __expectString,
|
|
800
|
-
nsdVersion: __expectString,
|
|
801
|
-
vnfPkgIds: _json,
|
|
802
|
-
});
|
|
803
|
-
Object.assign(contents, doc);
|
|
804
|
-
return contents;
|
|
805
|
-
};
|
|
806
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
807
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
808
|
-
return de_CommandError(output, context);
|
|
809
|
-
}
|
|
810
|
-
const contents = map({
|
|
811
|
-
$metadata: deserializeMetadata(output),
|
|
812
|
-
});
|
|
813
|
-
await collectBody(output.body, context);
|
|
814
|
-
return contents;
|
|
815
|
-
};
|
|
816
|
-
export const de_TerminateSolNetworkInstanceCommand = async (output, context) => {
|
|
817
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
818
|
-
return de_CommandError(output, context);
|
|
819
|
-
}
|
|
820
|
-
const contents = map({
|
|
821
|
-
$metadata: deserializeMetadata(output),
|
|
822
|
-
});
|
|
823
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
824
|
-
const doc = take(data, {
|
|
825
|
-
nsLcmOpOccId: __expectString,
|
|
826
|
-
tags: _json,
|
|
827
|
-
});
|
|
828
|
-
Object.assign(contents, doc);
|
|
829
|
-
return contents;
|
|
830
|
-
};
|
|
831
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
832
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
833
|
-
return de_CommandError(output, context);
|
|
834
|
-
}
|
|
835
|
-
const contents = map({
|
|
836
|
-
$metadata: deserializeMetadata(output),
|
|
837
|
-
});
|
|
838
|
-
await collectBody(output.body, context);
|
|
839
|
-
return contents;
|
|
840
|
-
};
|
|
841
|
-
export const de_UpdateSolFunctionPackageCommand = async (output, context) => {
|
|
842
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
|
-
return de_CommandError(output, context);
|
|
844
|
-
}
|
|
845
|
-
const contents = map({
|
|
846
|
-
$metadata: deserializeMetadata(output),
|
|
847
|
-
});
|
|
848
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
849
|
-
const doc = take(data, {
|
|
850
|
-
operationalState: __expectString,
|
|
851
|
-
});
|
|
852
|
-
Object.assign(contents, doc);
|
|
853
|
-
return contents;
|
|
854
|
-
};
|
|
855
|
-
export const de_UpdateSolNetworkInstanceCommand = async (output, context) => {
|
|
856
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
857
|
-
return de_CommandError(output, context);
|
|
858
|
-
}
|
|
859
|
-
const contents = map({
|
|
860
|
-
$metadata: deserializeMetadata(output),
|
|
861
|
-
});
|
|
862
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
863
|
-
const doc = take(data, {
|
|
864
|
-
nsLcmOpOccId: __expectString,
|
|
865
|
-
tags: _json,
|
|
866
|
-
});
|
|
867
|
-
Object.assign(contents, doc);
|
|
868
|
-
return contents;
|
|
869
|
-
};
|
|
870
|
-
export const de_UpdateSolNetworkPackageCommand = async (output, context) => {
|
|
871
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
872
|
-
return de_CommandError(output, context);
|
|
873
|
-
}
|
|
874
|
-
const contents = map({
|
|
875
|
-
$metadata: deserializeMetadata(output),
|
|
876
|
-
});
|
|
877
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
878
|
-
const doc = take(data, {
|
|
879
|
-
nsdOperationalState: __expectString,
|
|
880
|
-
});
|
|
881
|
-
Object.assign(contents, doc);
|
|
882
|
-
return contents;
|
|
883
|
-
};
|
|
884
|
-
export const de_ValidateSolFunctionPackageContentCommand = async (output, context) => {
|
|
885
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
886
|
-
return de_CommandError(output, context);
|
|
887
|
-
}
|
|
888
|
-
const contents = map({
|
|
889
|
-
$metadata: deserializeMetadata(output),
|
|
890
|
-
});
|
|
891
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
892
|
-
const doc = take(data, {
|
|
893
|
-
id: __expectString,
|
|
894
|
-
metadata: _json,
|
|
895
|
-
vnfProductName: __expectString,
|
|
896
|
-
vnfProvider: __expectString,
|
|
897
|
-
vnfdId: __expectString,
|
|
898
|
-
vnfdVersion: __expectString,
|
|
899
|
-
});
|
|
900
|
-
Object.assign(contents, doc);
|
|
901
|
-
return contents;
|
|
902
|
-
};
|
|
903
|
-
export const de_ValidateSolNetworkPackageContentCommand = async (output, context) => {
|
|
904
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
-
return de_CommandError(output, context);
|
|
906
|
-
}
|
|
907
|
-
const contents = map({
|
|
908
|
-
$metadata: deserializeMetadata(output),
|
|
909
|
-
});
|
|
910
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
911
|
-
const doc = take(data, {
|
|
912
|
-
arn: __expectString,
|
|
913
|
-
id: __expectString,
|
|
914
|
-
metadata: _json,
|
|
915
|
-
nsdId: __expectString,
|
|
916
|
-
nsdName: __expectString,
|
|
917
|
-
nsdVersion: __expectString,
|
|
918
|
-
vnfPkgIds: _json,
|
|
919
|
-
});
|
|
920
|
-
Object.assign(contents, doc);
|
|
921
|
-
return contents;
|
|
922
|
-
};
|
|
923
|
-
const de_CommandError = async (output, context) => {
|
|
924
|
-
const parsedOutput = {
|
|
925
|
-
...output,
|
|
926
|
-
body: await parseErrorBody(output.body, context),
|
|
927
|
-
};
|
|
928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
|
-
switch (errorCode) {
|
|
930
|
-
case "AccessDeniedException":
|
|
931
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
932
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
933
|
-
case "InternalServerException":
|
|
934
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
935
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
936
|
-
case "ResourceNotFoundException":
|
|
937
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
938
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
939
|
-
case "ThrottlingException":
|
|
940
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
941
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
942
|
-
case "ValidationException":
|
|
943
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
944
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
945
|
-
case "ServiceQuotaExceededException":
|
|
946
|
-
case "com.amazonaws.tnb#ServiceQuotaExceededException":
|
|
947
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
948
|
-
default:
|
|
949
|
-
const parsedBody = parsedOutput.body;
|
|
950
|
-
return throwDefaultError({
|
|
951
|
-
output,
|
|
952
|
-
parsedBody,
|
|
953
|
-
errorCode,
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
};
|
|
957
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
958
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
959
|
-
const contents = map({});
|
|
960
|
-
const data = parsedOutput.body;
|
|
961
|
-
const doc = take(data, {
|
|
962
|
-
message: __expectString,
|
|
963
|
-
});
|
|
964
|
-
Object.assign(contents, doc);
|
|
965
|
-
const exception = new AccessDeniedException({
|
|
966
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
967
|
-
...contents,
|
|
968
|
-
});
|
|
969
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
970
|
-
};
|
|
971
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
972
|
-
const contents = map({});
|
|
973
|
-
const data = parsedOutput.body;
|
|
974
|
-
const doc = take(data, {
|
|
975
|
-
message: __expectString,
|
|
976
|
-
});
|
|
977
|
-
Object.assign(contents, doc);
|
|
978
|
-
const exception = new InternalServerException({
|
|
979
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
980
|
-
...contents,
|
|
981
|
-
});
|
|
982
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
983
|
-
};
|
|
984
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
985
|
-
const contents = map({});
|
|
986
|
-
const data = parsedOutput.body;
|
|
987
|
-
const doc = take(data, {
|
|
988
|
-
message: __expectString,
|
|
989
|
-
});
|
|
990
|
-
Object.assign(contents, doc);
|
|
991
|
-
const exception = new ResourceNotFoundException({
|
|
992
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
993
|
-
...contents,
|
|
994
|
-
});
|
|
995
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
996
|
-
};
|
|
997
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
998
|
-
const contents = map({});
|
|
999
|
-
const data = parsedOutput.body;
|
|
1000
|
-
const doc = take(data, {
|
|
1001
|
-
message: __expectString,
|
|
1002
|
-
});
|
|
1003
|
-
Object.assign(contents, doc);
|
|
1004
|
-
const exception = new ServiceQuotaExceededException({
|
|
1005
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1006
|
-
...contents,
|
|
1007
|
-
});
|
|
1008
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1009
|
-
};
|
|
1010
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1011
|
-
const contents = map({});
|
|
1012
|
-
const data = parsedOutput.body;
|
|
1013
|
-
const doc = take(data, {
|
|
1014
|
-
message: __expectString,
|
|
1015
|
-
});
|
|
1016
|
-
Object.assign(contents, doc);
|
|
1017
|
-
const exception = new ThrottlingException({
|
|
1018
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1019
|
-
...contents,
|
|
1020
|
-
});
|
|
1021
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1022
|
-
};
|
|
1023
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1024
|
-
const contents = map({});
|
|
1025
|
-
const data = parsedOutput.body;
|
|
1026
|
-
const doc = take(data, {
|
|
1027
|
-
message: __expectString,
|
|
1028
|
-
});
|
|
1029
|
-
Object.assign(contents, doc);
|
|
1030
|
-
const exception = new ValidationException({
|
|
1031
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1032
|
-
...contents,
|
|
1033
|
-
});
|
|
1034
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1035
|
-
};
|
|
1036
|
-
const se_UpdateSolNetworkModify = (input, context) => {
|
|
1037
|
-
return take(input, {
|
|
1038
|
-
vnfConfigurableProperties: (_) => se_Document(_, context),
|
|
1039
|
-
vnfInstanceId: [],
|
|
1040
|
-
});
|
|
1041
|
-
};
|
|
1042
|
-
const se_UpdateSolNetworkServiceData = (input, context) => {
|
|
1043
|
-
return take(input, {
|
|
1044
|
-
additionalParamsForNs: (_) => se_Document(_, context),
|
|
1045
|
-
nsdInfoId: [],
|
|
1046
|
-
});
|
|
1047
|
-
};
|
|
1048
|
-
const se_Document = (input, context) => {
|
|
1049
|
-
return input;
|
|
1050
|
-
};
|
|
1051
|
-
const de_GetSolFunctionInstanceMetadata = (output, context) => {
|
|
1052
|
-
return take(output, {
|
|
1053
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1054
|
-
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1055
|
-
});
|
|
1056
|
-
};
|
|
1057
|
-
const de_GetSolFunctionPackageMetadata = (output, context) => {
|
|
1058
|
-
return take(output, {
|
|
1059
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1060
|
-
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1061
|
-
vnfd: _json,
|
|
1062
|
-
});
|
|
1063
|
-
};
|
|
1064
|
-
const de_GetSolNetworkInstanceMetadata = (output, context) => {
|
|
1065
|
-
return take(output, {
|
|
1066
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1067
|
-
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1068
|
-
});
|
|
1069
|
-
};
|
|
1070
|
-
const de_GetSolNetworkOperationMetadata = (output, context) => {
|
|
1071
|
-
return take(output, {
|
|
1072
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1073
|
-
instantiateMetadata: (_) => de_InstantiateMetadata(_, context),
|
|
1074
|
-
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1075
|
-
modifyVnfInfoMetadata: (_) => de_ModifyVnfInfoMetadata(_, context),
|
|
1076
|
-
updateNsMetadata: (_) => de_UpdateNsMetadata(_, context),
|
|
1077
|
-
});
|
|
1078
|
-
};
|
|
1079
|
-
const de_GetSolNetworkOperationTaskDetails = (output, context) => {
|
|
1080
|
-
return take(output, {
|
|
1081
|
-
taskContext: _json,
|
|
1082
|
-
taskEndTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1083
|
-
taskErrorDetails: _json,
|
|
1084
|
-
taskName: __expectString,
|
|
1085
|
-
taskStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1086
|
-
taskStatus: __expectString,
|
|
1087
|
-
});
|
|
1088
|
-
};
|
|
1089
|
-
const de_GetSolNetworkOperationTasksList = (output, context) => {
|
|
1090
|
-
const retVal = (output || [])
|
|
1091
|
-
.filter((e) => e != null)
|
|
1092
|
-
.map((entry) => {
|
|
1093
|
-
return de_GetSolNetworkOperationTaskDetails(entry, context);
|
|
1094
|
-
});
|
|
1095
|
-
return retVal;
|
|
1096
|
-
};
|
|
1097
|
-
const de_GetSolNetworkPackageMetadata = (output, context) => {
|
|
1098
|
-
return take(output, {
|
|
1099
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1100
|
-
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1101
|
-
nsd: _json,
|
|
1102
|
-
});
|
|
1103
|
-
};
|
|
1104
|
-
const de_InstantiateMetadata = (output, context) => {
|
|
1105
|
-
return take(output, {
|
|
1106
|
-
additionalParamsForNs: (_) => de_Document(_, context),
|
|
1107
|
-
nsdInfoId: __expectString,
|
|
1108
|
-
});
|
|
1109
|
-
};
|
|
1110
|
-
const de_ListSolFunctionInstanceInfo = (output, context) => {
|
|
1111
|
-
return take(output, {
|
|
1112
|
-
arn: __expectString,
|
|
1113
|
-
id: __expectString,
|
|
1114
|
-
instantiatedVnfInfo: _json,
|
|
1115
|
-
instantiationState: __expectString,
|
|
1116
|
-
metadata: (_) => de_ListSolFunctionInstanceMetadata(_, context),
|
|
1117
|
-
nsInstanceId: __expectString,
|
|
1118
|
-
vnfPkgId: __expectString,
|
|
1119
|
-
vnfPkgName: __expectString,
|
|
1120
|
-
});
|
|
1121
|
-
};
|
|
1122
|
-
const de_ListSolFunctionInstanceMetadata = (output, context) => {
|
|
1123
|
-
return take(output, {
|
|
1124
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1125
|
-
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1126
|
-
});
|
|
1127
|
-
};
|
|
1128
|
-
const de_ListSolFunctionInstanceResources = (output, context) => {
|
|
1129
|
-
const retVal = (output || [])
|
|
1130
|
-
.filter((e) => e != null)
|
|
1131
|
-
.map((entry) => {
|
|
1132
|
-
return de_ListSolFunctionInstanceInfo(entry, context);
|
|
1133
|
-
});
|
|
1134
|
-
return retVal;
|
|
1135
|
-
};
|
|
1136
|
-
const de_ListSolFunctionPackageInfo = (output, context) => {
|
|
1137
|
-
return take(output, {
|
|
1138
|
-
arn: __expectString,
|
|
1139
|
-
id: __expectString,
|
|
1140
|
-
metadata: (_) => de_ListSolFunctionPackageMetadata(_, context),
|
|
1141
|
-
onboardingState: __expectString,
|
|
1142
|
-
operationalState: __expectString,
|
|
1143
|
-
usageState: __expectString,
|
|
1144
|
-
vnfProductName: __expectString,
|
|
1145
|
-
vnfProvider: __expectString,
|
|
1146
|
-
vnfdId: __expectString,
|
|
1147
|
-
vnfdVersion: __expectString,
|
|
1148
|
-
});
|
|
1149
|
-
};
|
|
1150
|
-
const de_ListSolFunctionPackageMetadata = (output, context) => {
|
|
1151
|
-
return take(output, {
|
|
1152
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1153
|
-
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1154
|
-
});
|
|
1155
|
-
};
|
|
1156
|
-
const de_ListSolFunctionPackageResources = (output, context) => {
|
|
1157
|
-
const retVal = (output || [])
|
|
1158
|
-
.filter((e) => e != null)
|
|
1159
|
-
.map((entry) => {
|
|
1160
|
-
return de_ListSolFunctionPackageInfo(entry, context);
|
|
1161
|
-
});
|
|
1162
|
-
return retVal;
|
|
1163
|
-
};
|
|
1164
|
-
const de_ListSolNetworkInstanceInfo = (output, context) => {
|
|
1165
|
-
return take(output, {
|
|
1166
|
-
arn: __expectString,
|
|
1167
|
-
id: __expectString,
|
|
1168
|
-
metadata: (_) => de_ListSolNetworkInstanceMetadata(_, context),
|
|
1169
|
-
nsInstanceDescription: __expectString,
|
|
1170
|
-
nsInstanceName: __expectString,
|
|
1171
|
-
nsState: __expectString,
|
|
1172
|
-
nsdId: __expectString,
|
|
1173
|
-
nsdInfoId: __expectString,
|
|
1174
|
-
});
|
|
1175
|
-
};
|
|
1176
|
-
const de_ListSolNetworkInstanceMetadata = (output, context) => {
|
|
1177
|
-
return take(output, {
|
|
1178
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1179
|
-
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1180
|
-
});
|
|
1181
|
-
};
|
|
1182
|
-
const de_ListSolNetworkInstanceResources = (output, context) => {
|
|
1183
|
-
const retVal = (output || [])
|
|
1184
|
-
.filter((e) => e != null)
|
|
1185
|
-
.map((entry) => {
|
|
1186
|
-
return de_ListSolNetworkInstanceInfo(entry, context);
|
|
1187
|
-
});
|
|
1188
|
-
return retVal;
|
|
1189
|
-
};
|
|
1190
|
-
const de_ListSolNetworkOperationsInfo = (output, context) => {
|
|
1191
|
-
return take(output, {
|
|
1192
|
-
arn: __expectString,
|
|
1193
|
-
error: _json,
|
|
1194
|
-
id: __expectString,
|
|
1195
|
-
lcmOperationType: __expectString,
|
|
1196
|
-
metadata: (_) => de_ListSolNetworkOperationsMetadata(_, context),
|
|
1197
|
-
nsInstanceId: __expectString,
|
|
1198
|
-
operationState: __expectString,
|
|
1199
|
-
updateType: __expectString,
|
|
1200
|
-
});
|
|
1201
|
-
};
|
|
1202
|
-
const de_ListSolNetworkOperationsMetadata = (output, context) => {
|
|
1203
|
-
return take(output, {
|
|
1204
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1205
|
-
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1206
|
-
nsdInfoId: __expectString,
|
|
1207
|
-
vnfInstanceId: __expectString,
|
|
1208
|
-
});
|
|
1209
|
-
};
|
|
1210
|
-
const de_ListSolNetworkOperationsResources = (output, context) => {
|
|
1211
|
-
const retVal = (output || [])
|
|
1212
|
-
.filter((e) => e != null)
|
|
1213
|
-
.map((entry) => {
|
|
1214
|
-
return de_ListSolNetworkOperationsInfo(entry, context);
|
|
1215
|
-
});
|
|
1216
|
-
return retVal;
|
|
1217
|
-
};
|
|
1218
|
-
const de_ListSolNetworkPackageInfo = (output, context) => {
|
|
1219
|
-
return take(output, {
|
|
1220
|
-
arn: __expectString,
|
|
1221
|
-
id: __expectString,
|
|
1222
|
-
metadata: (_) => de_ListSolNetworkPackageMetadata(_, context),
|
|
1223
|
-
nsdDesigner: __expectString,
|
|
1224
|
-
nsdId: __expectString,
|
|
1225
|
-
nsdInvariantId: __expectString,
|
|
1226
|
-
nsdName: __expectString,
|
|
1227
|
-
nsdOnboardingState: __expectString,
|
|
1228
|
-
nsdOperationalState: __expectString,
|
|
1229
|
-
nsdUsageState: __expectString,
|
|
1230
|
-
nsdVersion: __expectString,
|
|
1231
|
-
vnfPkgIds: _json,
|
|
1232
|
-
});
|
|
1233
|
-
};
|
|
1234
|
-
const de_ListSolNetworkPackageMetadata = (output, context) => {
|
|
1235
|
-
return take(output, {
|
|
1236
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1237
|
-
lastModified: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1238
|
-
});
|
|
1239
|
-
};
|
|
1240
|
-
const de_ListSolNetworkPackageResources = (output, context) => {
|
|
1241
|
-
const retVal = (output || [])
|
|
1242
|
-
.filter((e) => e != null)
|
|
1243
|
-
.map((entry) => {
|
|
1244
|
-
return de_ListSolNetworkPackageInfo(entry, context);
|
|
1245
|
-
});
|
|
1246
|
-
return retVal;
|
|
1247
|
-
};
|
|
1248
|
-
const de_ModifyVnfInfoMetadata = (output, context) => {
|
|
1249
|
-
return take(output, {
|
|
1250
|
-
vnfConfigurableProperties: (_) => de_Document(_, context),
|
|
1251
|
-
vnfInstanceId: __expectString,
|
|
1252
|
-
});
|
|
1253
|
-
};
|
|
1254
|
-
const de_UpdateNsMetadata = (output, context) => {
|
|
1255
|
-
return take(output, {
|
|
1256
|
-
additionalParamsForNs: (_) => de_Document(_, context),
|
|
1257
|
-
nsdInfoId: __expectString,
|
|
1258
|
-
});
|
|
1259
|
-
};
|
|
1260
|
-
const de_Document = (output, context) => {
|
|
1261
|
-
return output;
|
|
1262
|
-
};
|
|
1263
|
-
const deserializeMetadata = (output) => ({
|
|
1264
|
-
httpStatusCode: output.statusCode,
|
|
1265
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1266
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1267
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1268
|
-
});
|
|
1269
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1270
|
-
const _a = "accept";
|
|
1271
|
-
const _cT = "contentType";
|
|
1272
|
-
const _ct = "content-type";
|
|
1273
|
-
const _dR = "dryRun";
|
|
1274
|
-
const _dr = "dry_run";
|
|
1275
|
-
const _mR = "maxResults";
|
|
1276
|
-
const _mr = "max_results";
|
|
1277
|
-
const _nII = "nsInstanceId";
|
|
1278
|
-
const _nT = "nextToken";
|
|
1279
|
-
const _nom = "nextpage_opaque_marker";
|
|
1280
|
-
const _tK = "tagKeys";
|