@aws-sdk/client-tnb 3.474.0 → 3.477.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.
@@ -2,55 +2,40 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_InstantiateSolNetworkInstanceCommand = exports.de_GetSolNetworkPackageDescriptorCommand = exports.de_GetSolNetworkPackageContentCommand = exports.de_GetSolNetworkPackageCommand = exports.de_GetSolNetworkOperationCommand = exports.de_GetSolNetworkInstanceCommand = exports.de_GetSolFunctionPackageDescriptorCommand = exports.de_GetSolFunctionPackageContentCommand = exports.de_GetSolFunctionPackageCommand = exports.de_GetSolFunctionInstanceCommand = exports.de_DeleteSolNetworkPackageCommand = exports.de_DeleteSolNetworkInstanceCommand = exports.de_DeleteSolFunctionPackageCommand = exports.de_CreateSolNetworkPackageCommand = exports.de_CreateSolNetworkInstanceCommand = exports.de_CreateSolFunctionPackageCommand = exports.de_CancelSolNetworkOperationCommand = exports.se_ValidateSolNetworkPackageContentCommand = exports.se_ValidateSolFunctionPackageContentCommand = exports.se_UpdateSolNetworkPackageCommand = exports.se_UpdateSolNetworkInstanceCommand = exports.se_UpdateSolFunctionPackageCommand = exports.se_UntagResourceCommand = exports.se_TerminateSolNetworkInstanceCommand = exports.se_TagResourceCommand = exports.se_PutSolNetworkPackageContentCommand = exports.se_PutSolFunctionPackageContentCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSolNetworkPackagesCommand = exports.se_ListSolNetworkOperationsCommand = exports.se_ListSolNetworkInstancesCommand = exports.se_ListSolFunctionPackagesCommand = exports.se_ListSolFunctionInstancesCommand = exports.se_InstantiateSolNetworkInstanceCommand = exports.se_GetSolNetworkPackageDescriptorCommand = exports.se_GetSolNetworkPackageContentCommand = exports.se_GetSolNetworkPackageCommand = exports.se_GetSolNetworkOperationCommand = exports.se_GetSolNetworkInstanceCommand = exports.se_GetSolFunctionPackageDescriptorCommand = exports.se_GetSolFunctionPackageContentCommand = exports.se_GetSolFunctionPackageCommand = exports.se_GetSolFunctionInstanceCommand = exports.se_DeleteSolNetworkPackageCommand = exports.se_DeleteSolNetworkInstanceCommand = exports.se_DeleteSolFunctionPackageCommand = exports.se_CreateSolNetworkPackageCommand = exports.se_CreateSolNetworkInstanceCommand = exports.se_CreateSolFunctionPackageCommand = exports.se_CancelSolNetworkOperationCommand = void 0;
4
4
  exports.de_ValidateSolNetworkPackageContentCommand = exports.de_ValidateSolFunctionPackageContentCommand = exports.de_UpdateSolNetworkPackageCommand = exports.de_UpdateSolNetworkInstanceCommand = exports.de_UpdateSolFunctionPackageCommand = exports.de_UntagResourceCommand = exports.de_TerminateSolNetworkInstanceCommand = exports.de_TagResourceCommand = exports.de_PutSolNetworkPackageContentCommand = exports.de_PutSolFunctionPackageContentCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSolNetworkPackagesCommand = exports.de_ListSolNetworkOperationsCommand = exports.de_ListSolNetworkInstancesCommand = exports.de_ListSolFunctionPackagesCommand = exports.de_ListSolFunctionInstancesCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const TnbServiceException_1 = require("../models/TnbServiceException");
9
9
  const se_CancelSolNetworkOperationCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {};
12
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
13
- "/sol/nslcm/v1/ns_lcm_op_occs/{nsLcmOpOccId}/cancel";
14
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsLcmOpOccId", () => input.nsLcmOpOccId, "{nsLcmOpOccId}", false);
12
+ b.bp("/sol/nslcm/v1/ns_lcm_op_occs/{nsLcmOpOccId}/cancel");
13
+ b.p("nsLcmOpOccId", () => input.nsLcmOpOccId, "{nsLcmOpOccId}", false);
15
14
  let body;
16
- return new protocol_http_1.HttpRequest({
17
- protocol,
18
- hostname,
19
- port,
20
- method: "POST",
21
- headers,
22
- path: resolvedPath,
23
- body,
24
- });
15
+ b.m("POST").h(headers).b(body);
16
+ return b.build();
25
17
  };
26
18
  exports.se_CancelSolNetworkOperationCommand = se_CancelSolNetworkOperationCommand;
27
19
  const se_CreateSolFunctionPackageCommand = async (input, context) => {
28
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
20
+ const b = (0, core_1.requestBuilder)(input, context);
29
21
  const headers = {
30
22
  "content-type": "application/json",
31
23
  };
32
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages";
24
+ b.bp("/sol/vnfpkgm/v1/vnf_packages");
33
25
  let body;
34
26
  body = JSON.stringify((0, smithy_client_1.take)(input, {
35
27
  tags: (_) => (0, smithy_client_1._json)(_),
36
28
  }));
37
- return new protocol_http_1.HttpRequest({
38
- protocol,
39
- hostname,
40
- port,
41
- method: "POST",
42
- headers,
43
- path: resolvedPath,
44
- body,
45
- });
29
+ b.m("POST").h(headers).b(body);
30
+ return b.build();
46
31
  };
47
32
  exports.se_CreateSolFunctionPackageCommand = se_CreateSolFunctionPackageCommand;
48
33
  const se_CreateSolNetworkInstanceCommand = async (input, context) => {
49
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
+ const b = (0, core_1.requestBuilder)(input, context);
50
35
  const headers = {
51
36
  "content-type": "application/json",
52
37
  };
53
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances";
38
+ b.bp("/sol/nslcm/v1/ns_instances");
54
39
  let body;
55
40
  body = JSON.stringify((0, smithy_client_1.take)(input, {
56
41
  nsDescription: [],
@@ -58,632 +43,395 @@ const se_CreateSolNetworkInstanceCommand = async (input, context) => {
58
43
  nsdInfoId: [],
59
44
  tags: (_) => (0, smithy_client_1._json)(_),
60
45
  }));
61
- return new protocol_http_1.HttpRequest({
62
- protocol,
63
- hostname,
64
- port,
65
- method: "POST",
66
- headers,
67
- path: resolvedPath,
68
- body,
69
- });
46
+ b.m("POST").h(headers).b(body);
47
+ return b.build();
70
48
  };
71
49
  exports.se_CreateSolNetworkInstanceCommand = se_CreateSolNetworkInstanceCommand;
72
50
  const se_CreateSolNetworkPackageCommand = async (input, context) => {
73
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
51
+ const b = (0, core_1.requestBuilder)(input, context);
74
52
  const headers = {
75
53
  "content-type": "application/json",
76
54
  };
77
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors";
55
+ b.bp("/sol/nsd/v1/ns_descriptors");
78
56
  let body;
79
57
  body = JSON.stringify((0, smithy_client_1.take)(input, {
80
58
  tags: (_) => (0, smithy_client_1._json)(_),
81
59
  }));
82
- return new protocol_http_1.HttpRequest({
83
- protocol,
84
- hostname,
85
- port,
86
- method: "POST",
87
- headers,
88
- path: resolvedPath,
89
- body,
90
- });
60
+ b.m("POST").h(headers).b(body);
61
+ return b.build();
91
62
  };
92
63
  exports.se_CreateSolNetworkPackageCommand = se_CreateSolNetworkPackageCommand;
93
64
  const se_DeleteSolFunctionPackageCommand = async (input, context) => {
94
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
65
+ const b = (0, core_1.requestBuilder)(input, context);
95
66
  const headers = {};
96
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}";
97
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
67
+ b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}");
68
+ b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
98
69
  let body;
99
- return new protocol_http_1.HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "DELETE",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
70
+ b.m("DELETE").h(headers).b(body);
71
+ return b.build();
108
72
  };
109
73
  exports.se_DeleteSolFunctionPackageCommand = se_DeleteSolFunctionPackageCommand;
110
74
  const se_DeleteSolNetworkInstanceCommand = async (input, context) => {
111
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = (0, core_1.requestBuilder)(input, context);
112
76
  const headers = {};
113
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances/{nsInstanceId}";
114
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
77
+ b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}");
78
+ b.p("nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
115
79
  let body;
116
- return new protocol_http_1.HttpRequest({
117
- protocol,
118
- hostname,
119
- port,
120
- method: "DELETE",
121
- headers,
122
- path: resolvedPath,
123
- body,
124
- });
80
+ b.m("DELETE").h(headers).b(body);
81
+ return b.build();
125
82
  };
126
83
  exports.se_DeleteSolNetworkInstanceCommand = se_DeleteSolNetworkInstanceCommand;
127
84
  const se_DeleteSolNetworkPackageCommand = async (input, context) => {
128
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
85
+ const b = (0, core_1.requestBuilder)(input, context);
129
86
  const headers = {};
130
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors/{nsdInfoId}";
131
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
87
+ b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}");
88
+ b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
132
89
  let body;
133
- return new protocol_http_1.HttpRequest({
134
- protocol,
135
- hostname,
136
- port,
137
- method: "DELETE",
138
- headers,
139
- path: resolvedPath,
140
- body,
141
- });
90
+ b.m("DELETE").h(headers).b(body);
91
+ return b.build();
142
92
  };
143
93
  exports.se_DeleteSolNetworkPackageCommand = se_DeleteSolNetworkPackageCommand;
144
94
  const se_GetSolFunctionInstanceCommand = async (input, context) => {
145
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
95
+ const b = (0, core_1.requestBuilder)(input, context);
146
96
  const headers = {};
147
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
148
- "/sol/vnflcm/v1/vnf_instances/{vnfInstanceId}";
149
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vnfInstanceId", () => input.vnfInstanceId, "{vnfInstanceId}", false);
97
+ b.bp("/sol/vnflcm/v1/vnf_instances/{vnfInstanceId}");
98
+ b.p("vnfInstanceId", () => input.vnfInstanceId, "{vnfInstanceId}", false);
150
99
  let body;
151
- return new protocol_http_1.HttpRequest({
152
- protocol,
153
- hostname,
154
- port,
155
- method: "GET",
156
- headers,
157
- path: resolvedPath,
158
- body,
159
- });
100
+ b.m("GET").h(headers).b(body);
101
+ return b.build();
160
102
  };
161
103
  exports.se_GetSolFunctionInstanceCommand = se_GetSolFunctionInstanceCommand;
162
104
  const se_GetSolFunctionPackageCommand = async (input, context) => {
163
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = (0, core_1.requestBuilder)(input, context);
164
106
  const headers = {};
165
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}";
166
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
107
+ b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}");
108
+ b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
167
109
  let body;
168
- return new protocol_http_1.HttpRequest({
169
- protocol,
170
- hostname,
171
- port,
172
- method: "GET",
173
- headers,
174
- path: resolvedPath,
175
- body,
176
- });
110
+ b.m("GET").h(headers).b(body);
111
+ return b.build();
177
112
  };
178
113
  exports.se_GetSolFunctionPackageCommand = se_GetSolFunctionPackageCommand;
179
114
  const se_GetSolFunctionPackageContentCommand = async (input, context) => {
180
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
115
+ const b = (0, core_1.requestBuilder)(input, context);
181
116
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
182
- accept: input.accept,
117
+ [_a]: input[_a],
183
118
  });
184
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
185
- "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content";
186
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
119
+ b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content");
120
+ b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
187
121
  let body;
188
- return new protocol_http_1.HttpRequest({
189
- protocol,
190
- hostname,
191
- port,
192
- method: "GET",
193
- headers,
194
- path: resolvedPath,
195
- body,
196
- });
122
+ b.m("GET").h(headers).b(body);
123
+ return b.build();
197
124
  };
198
125
  exports.se_GetSolFunctionPackageContentCommand = se_GetSolFunctionPackageContentCommand;
199
126
  const se_GetSolFunctionPackageDescriptorCommand = async (input, context) => {
200
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const b = (0, core_1.requestBuilder)(input, context);
201
128
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
202
- accept: input.accept,
129
+ [_a]: input[_a],
203
130
  });
204
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
205
- "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/vnfd";
206
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
131
+ b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/vnfd");
132
+ b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
207
133
  let body;
208
- return new protocol_http_1.HttpRequest({
209
- protocol,
210
- hostname,
211
- port,
212
- method: "GET",
213
- headers,
214
- path: resolvedPath,
215
- body,
216
- });
134
+ b.m("GET").h(headers).b(body);
135
+ return b.build();
217
136
  };
218
137
  exports.se_GetSolFunctionPackageDescriptorCommand = se_GetSolFunctionPackageDescriptorCommand;
219
138
  const se_GetSolNetworkInstanceCommand = async (input, context) => {
220
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
+ const b = (0, core_1.requestBuilder)(input, context);
221
140
  const headers = {};
222
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances/{nsInstanceId}";
223
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
141
+ b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}");
142
+ b.p("nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
224
143
  let body;
225
- return new protocol_http_1.HttpRequest({
226
- protocol,
227
- hostname,
228
- port,
229
- method: "GET",
230
- headers,
231
- path: resolvedPath,
232
- body,
233
- });
144
+ b.m("GET").h(headers).b(body);
145
+ return b.build();
234
146
  };
235
147
  exports.se_GetSolNetworkInstanceCommand = se_GetSolNetworkInstanceCommand;
236
148
  const se_GetSolNetworkOperationCommand = async (input, context) => {
237
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
149
+ const b = (0, core_1.requestBuilder)(input, context);
238
150
  const headers = {};
239
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
240
- "/sol/nslcm/v1/ns_lcm_op_occs/{nsLcmOpOccId}";
241
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsLcmOpOccId", () => input.nsLcmOpOccId, "{nsLcmOpOccId}", false);
151
+ b.bp("/sol/nslcm/v1/ns_lcm_op_occs/{nsLcmOpOccId}");
152
+ b.p("nsLcmOpOccId", () => input.nsLcmOpOccId, "{nsLcmOpOccId}", false);
242
153
  let body;
243
- return new protocol_http_1.HttpRequest({
244
- protocol,
245
- hostname,
246
- port,
247
- method: "GET",
248
- headers,
249
- path: resolvedPath,
250
- body,
251
- });
154
+ b.m("GET").h(headers).b(body);
155
+ return b.build();
252
156
  };
253
157
  exports.se_GetSolNetworkOperationCommand = se_GetSolNetworkOperationCommand;
254
158
  const se_GetSolNetworkPackageCommand = async (input, context) => {
255
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
159
+ const b = (0, core_1.requestBuilder)(input, context);
256
160
  const headers = {};
257
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors/{nsdInfoId}";
258
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
161
+ b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}");
162
+ b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
259
163
  let body;
260
- return new protocol_http_1.HttpRequest({
261
- protocol,
262
- hostname,
263
- port,
264
- method: "GET",
265
- headers,
266
- path: resolvedPath,
267
- body,
268
- });
164
+ b.m("GET").h(headers).b(body);
165
+ return b.build();
269
166
  };
270
167
  exports.se_GetSolNetworkPackageCommand = se_GetSolNetworkPackageCommand;
271
168
  const se_GetSolNetworkPackageContentCommand = async (input, context) => {
272
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
169
+ const b = (0, core_1.requestBuilder)(input, context);
273
170
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
274
- accept: input.accept,
171
+ [_a]: input[_a],
275
172
  });
276
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
277
- "/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content";
278
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
173
+ b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content");
174
+ b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
279
175
  let body;
280
- return new protocol_http_1.HttpRequest({
281
- protocol,
282
- hostname,
283
- port,
284
- method: "GET",
285
- headers,
286
- path: resolvedPath,
287
- body,
288
- });
176
+ b.m("GET").h(headers).b(body);
177
+ return b.build();
289
178
  };
290
179
  exports.se_GetSolNetworkPackageContentCommand = se_GetSolNetworkPackageContentCommand;
291
180
  const se_GetSolNetworkPackageDescriptorCommand = async (input, context) => {
292
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
181
+ const b = (0, core_1.requestBuilder)(input, context);
293
182
  const headers = {};
294
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
295
- "/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd";
296
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
183
+ b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd");
184
+ b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
297
185
  let body;
298
- return new protocol_http_1.HttpRequest({
299
- protocol,
300
- hostname,
301
- port,
302
- method: "GET",
303
- headers,
304
- path: resolvedPath,
305
- body,
306
- });
186
+ b.m("GET").h(headers).b(body);
187
+ return b.build();
307
188
  };
308
189
  exports.se_GetSolNetworkPackageDescriptorCommand = se_GetSolNetworkPackageDescriptorCommand;
309
190
  const se_InstantiateSolNetworkInstanceCommand = async (input, context) => {
310
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
191
+ const b = (0, core_1.requestBuilder)(input, context);
311
192
  const headers = {
312
193
  "content-type": "application/json",
313
194
  };
314
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
315
- "/sol/nslcm/v1/ns_instances/{nsInstanceId}/instantiate";
316
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
195
+ b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}/instantiate");
196
+ b.p("nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
317
197
  const query = (0, smithy_client_1.map)({
318
- dry_run: [() => input.dryRun !== void 0, () => input.dryRun.toString()],
198
+ [_dr]: [() => input.dryRun !== void 0, () => input[_dR].toString()],
319
199
  });
320
200
  let body;
321
201
  body = JSON.stringify((0, smithy_client_1.take)(input, {
322
202
  additionalParamsForNs: (_) => se_Document(_, context),
323
203
  tags: (_) => (0, smithy_client_1._json)(_),
324
204
  }));
325
- return new protocol_http_1.HttpRequest({
326
- protocol,
327
- hostname,
328
- port,
329
- method: "POST",
330
- headers,
331
- path: resolvedPath,
332
- query,
333
- body,
334
- });
205
+ b.m("POST").h(headers).q(query).b(body);
206
+ return b.build();
335
207
  };
336
208
  exports.se_InstantiateSolNetworkInstanceCommand = se_InstantiateSolNetworkInstanceCommand;
337
209
  const se_ListSolFunctionInstancesCommand = async (input, context) => {
338
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
+ const b = (0, core_1.requestBuilder)(input, context);
339
211
  const headers = {};
340
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnflcm/v1/vnf_instances";
212
+ b.bp("/sol/vnflcm/v1/vnf_instances");
341
213
  const query = (0, smithy_client_1.map)({
342
- max_results: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
343
- nextpage_opaque_marker: [, input.nextToken],
214
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
215
+ [_nom]: [, input[_nT]],
344
216
  });
345
217
  let body;
346
- return new protocol_http_1.HttpRequest({
347
- protocol,
348
- hostname,
349
- port,
350
- method: "GET",
351
- headers,
352
- path: resolvedPath,
353
- query,
354
- body,
355
- });
218
+ b.m("GET").h(headers).q(query).b(body);
219
+ return b.build();
356
220
  };
357
221
  exports.se_ListSolFunctionInstancesCommand = se_ListSolFunctionInstancesCommand;
358
222
  const se_ListSolFunctionPackagesCommand = async (input, context) => {
359
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
223
+ const b = (0, core_1.requestBuilder)(input, context);
360
224
  const headers = {};
361
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages";
225
+ b.bp("/sol/vnfpkgm/v1/vnf_packages");
362
226
  const query = (0, smithy_client_1.map)({
363
- max_results: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
364
- nextpage_opaque_marker: [, input.nextToken],
227
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
228
+ [_nom]: [, input[_nT]],
365
229
  });
366
230
  let body;
367
- return new protocol_http_1.HttpRequest({
368
- protocol,
369
- hostname,
370
- port,
371
- method: "GET",
372
- headers,
373
- path: resolvedPath,
374
- query,
375
- body,
376
- });
231
+ b.m("GET").h(headers).q(query).b(body);
232
+ return b.build();
377
233
  };
378
234
  exports.se_ListSolFunctionPackagesCommand = se_ListSolFunctionPackagesCommand;
379
235
  const se_ListSolNetworkInstancesCommand = async (input, context) => {
380
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
236
+ const b = (0, core_1.requestBuilder)(input, context);
381
237
  const headers = {};
382
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_instances";
238
+ b.bp("/sol/nslcm/v1/ns_instances");
383
239
  const query = (0, smithy_client_1.map)({
384
- max_results: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
385
- nextpage_opaque_marker: [, input.nextToken],
240
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
241
+ [_nom]: [, input[_nT]],
386
242
  });
387
243
  let body;
388
- return new protocol_http_1.HttpRequest({
389
- protocol,
390
- hostname,
391
- port,
392
- method: "GET",
393
- headers,
394
- path: resolvedPath,
395
- query,
396
- body,
397
- });
244
+ b.m("GET").h(headers).q(query).b(body);
245
+ return b.build();
398
246
  };
399
247
  exports.se_ListSolNetworkInstancesCommand = se_ListSolNetworkInstancesCommand;
400
248
  const se_ListSolNetworkOperationsCommand = async (input, context) => {
401
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
249
+ const b = (0, core_1.requestBuilder)(input, context);
402
250
  const headers = {};
403
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nslcm/v1/ns_lcm_op_occs";
251
+ b.bp("/sol/nslcm/v1/ns_lcm_op_occs");
404
252
  const query = (0, smithy_client_1.map)({
405
- max_results: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
406
- nextpage_opaque_marker: [, input.nextToken],
253
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
254
+ [_nom]: [, input[_nT]],
407
255
  });
408
256
  let body;
409
- return new protocol_http_1.HttpRequest({
410
- protocol,
411
- hostname,
412
- port,
413
- method: "GET",
414
- headers,
415
- path: resolvedPath,
416
- query,
417
- body,
418
- });
257
+ b.m("GET").h(headers).q(query).b(body);
258
+ return b.build();
419
259
  };
420
260
  exports.se_ListSolNetworkOperationsCommand = se_ListSolNetworkOperationsCommand;
421
261
  const se_ListSolNetworkPackagesCommand = async (input, context) => {
422
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
262
+ const b = (0, core_1.requestBuilder)(input, context);
423
263
  const headers = {};
424
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors";
264
+ b.bp("/sol/nsd/v1/ns_descriptors");
425
265
  const query = (0, smithy_client_1.map)({
426
- max_results: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
427
- nextpage_opaque_marker: [, input.nextToken],
266
+ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
267
+ [_nom]: [, input[_nT]],
428
268
  });
429
269
  let body;
430
- return new protocol_http_1.HttpRequest({
431
- protocol,
432
- hostname,
433
- port,
434
- method: "GET",
435
- headers,
436
- path: resolvedPath,
437
- query,
438
- body,
439
- });
270
+ b.m("GET").h(headers).q(query).b(body);
271
+ return b.build();
440
272
  };
441
273
  exports.se_ListSolNetworkPackagesCommand = se_ListSolNetworkPackagesCommand;
442
274
  const se_ListTagsForResourceCommand = async (input, context) => {
443
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
275
+ const b = (0, core_1.requestBuilder)(input, context);
444
276
  const headers = {};
445
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
446
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
277
+ b.bp("/tags/{resourceArn}");
278
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
447
279
  let body;
448
- return new protocol_http_1.HttpRequest({
449
- protocol,
450
- hostname,
451
- port,
452
- method: "GET",
453
- headers,
454
- path: resolvedPath,
455
- body,
456
- });
280
+ b.m("GET").h(headers).b(body);
281
+ return b.build();
457
282
  };
458
283
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
459
284
  const se_PutSolFunctionPackageContentCommand = async (input, context) => {
460
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
285
+ const b = (0, core_1.requestBuilder)(input, context);
461
286
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
462
- "content-type": input.contentType || "application/octet-stream",
287
+ [_ct]: input[_cT] || "application/octet-stream",
463
288
  });
464
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
465
- "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content";
466
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
289
+ b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content");
290
+ b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
467
291
  let body;
468
292
  if (input.file !== undefined) {
469
293
  body = input.file;
470
294
  }
471
- return new protocol_http_1.HttpRequest({
472
- protocol,
473
- hostname,
474
- port,
475
- method: "PUT",
476
- headers,
477
- path: resolvedPath,
478
- body,
479
- });
295
+ b.m("PUT").h(headers).b(body);
296
+ return b.build();
480
297
  };
481
298
  exports.se_PutSolFunctionPackageContentCommand = se_PutSolFunctionPackageContentCommand;
482
299
  const se_PutSolNetworkPackageContentCommand = async (input, context) => {
483
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
300
+ const b = (0, core_1.requestBuilder)(input, context);
484
301
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
485
- "content-type": input.contentType || "application/octet-stream",
302
+ [_ct]: input[_cT] || "application/octet-stream",
486
303
  });
487
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
488
- "/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content";
489
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
304
+ b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content");
305
+ b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
490
306
  let body;
491
307
  if (input.file !== undefined) {
492
308
  body = input.file;
493
309
  }
494
- return new protocol_http_1.HttpRequest({
495
- protocol,
496
- hostname,
497
- port,
498
- method: "PUT",
499
- headers,
500
- path: resolvedPath,
501
- body,
502
- });
310
+ b.m("PUT").h(headers).b(body);
311
+ return b.build();
503
312
  };
504
313
  exports.se_PutSolNetworkPackageContentCommand = se_PutSolNetworkPackageContentCommand;
505
314
  const se_TagResourceCommand = async (input, context) => {
506
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
315
+ const b = (0, core_1.requestBuilder)(input, context);
507
316
  const headers = {
508
317
  "content-type": "application/json",
509
318
  };
510
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
511
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
319
+ b.bp("/tags/{resourceArn}");
320
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
512
321
  let body;
513
322
  body = JSON.stringify((0, smithy_client_1.take)(input, {
514
323
  tags: (_) => (0, smithy_client_1._json)(_),
515
324
  }));
516
- return new protocol_http_1.HttpRequest({
517
- protocol,
518
- hostname,
519
- port,
520
- method: "POST",
521
- headers,
522
- path: resolvedPath,
523
- body,
524
- });
325
+ b.m("POST").h(headers).b(body);
326
+ return b.build();
525
327
  };
526
328
  exports.se_TagResourceCommand = se_TagResourceCommand;
527
329
  const se_TerminateSolNetworkInstanceCommand = async (input, context) => {
528
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
330
+ const b = (0, core_1.requestBuilder)(input, context);
529
331
  const headers = {
530
332
  "content-type": "application/json",
531
333
  };
532
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
533
- "/sol/nslcm/v1/ns_instances/{nsInstanceId}/terminate";
534
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
334
+ b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}/terminate");
335
+ b.p("nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
535
336
  let body;
536
337
  body = JSON.stringify((0, smithy_client_1.take)(input, {
537
338
  tags: (_) => (0, smithy_client_1._json)(_),
538
339
  }));
539
- return new protocol_http_1.HttpRequest({
540
- protocol,
541
- hostname,
542
- port,
543
- method: "POST",
544
- headers,
545
- path: resolvedPath,
546
- body,
547
- });
340
+ b.m("POST").h(headers).b(body);
341
+ return b.build();
548
342
  };
549
343
  exports.se_TerminateSolNetworkInstanceCommand = se_TerminateSolNetworkInstanceCommand;
550
344
  const se_UntagResourceCommand = async (input, context) => {
551
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
345
+ const b = (0, core_1.requestBuilder)(input, context);
552
346
  const headers = {};
553
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
554
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
347
+ b.bp("/tags/{resourceArn}");
348
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
555
349
  const query = (0, smithy_client_1.map)({
556
- tagKeys: [
350
+ [_tK]: [
557
351
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
558
- () => (input.tagKeys || []).map((_entry) => _entry),
352
+ () => (input[_tK] || []).map((_entry) => _entry),
559
353
  ],
560
354
  });
561
355
  let body;
562
- return new protocol_http_1.HttpRequest({
563
- protocol,
564
- hostname,
565
- port,
566
- method: "DELETE",
567
- headers,
568
- path: resolvedPath,
569
- query,
570
- body,
571
- });
356
+ b.m("DELETE").h(headers).q(query).b(body);
357
+ return b.build();
572
358
  };
573
359
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
574
360
  const se_UpdateSolFunctionPackageCommand = async (input, context) => {
575
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
+ const b = (0, core_1.requestBuilder)(input, context);
576
362
  const headers = {
577
363
  "content-type": "application/json",
578
364
  };
579
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}";
580
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
365
+ b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}");
366
+ b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
581
367
  let body;
582
368
  body = JSON.stringify((0, smithy_client_1.take)(input, {
583
369
  operationalState: [],
584
370
  }));
585
- return new protocol_http_1.HttpRequest({
586
- protocol,
587
- hostname,
588
- port,
589
- method: "PATCH",
590
- headers,
591
- path: resolvedPath,
592
- body,
593
- });
371
+ b.m("PATCH").h(headers).b(body);
372
+ return b.build();
594
373
  };
595
374
  exports.se_UpdateSolFunctionPackageCommand = se_UpdateSolFunctionPackageCommand;
596
375
  const se_UpdateSolNetworkInstanceCommand = async (input, context) => {
597
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
+ const b = (0, core_1.requestBuilder)(input, context);
598
377
  const headers = {
599
378
  "content-type": "application/json",
600
379
  };
601
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
602
- "/sol/nslcm/v1/ns_instances/{nsInstanceId}/update";
603
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
380
+ b.bp("/sol/nslcm/v1/ns_instances/{nsInstanceId}/update");
381
+ b.p("nsInstanceId", () => input.nsInstanceId, "{nsInstanceId}", false);
604
382
  let body;
605
383
  body = JSON.stringify((0, smithy_client_1.take)(input, {
606
384
  modifyVnfInfoData: (_) => se_UpdateSolNetworkModify(_, context),
607
385
  tags: (_) => (0, smithy_client_1._json)(_),
608
386
  updateType: [],
609
387
  }));
610
- return new protocol_http_1.HttpRequest({
611
- protocol,
612
- hostname,
613
- port,
614
- method: "POST",
615
- headers,
616
- path: resolvedPath,
617
- body,
618
- });
388
+ b.m("POST").h(headers).b(body);
389
+ return b.build();
619
390
  };
620
391
  exports.se_UpdateSolNetworkInstanceCommand = se_UpdateSolNetworkInstanceCommand;
621
392
  const se_UpdateSolNetworkPackageCommand = async (input, context) => {
622
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
393
+ const b = (0, core_1.requestBuilder)(input, context);
623
394
  const headers = {
624
395
  "content-type": "application/json",
625
396
  };
626
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sol/nsd/v1/ns_descriptors/{nsdInfoId}";
627
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
397
+ b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}");
398
+ b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
628
399
  let body;
629
400
  body = JSON.stringify((0, smithy_client_1.take)(input, {
630
401
  nsdOperationalState: [],
631
402
  }));
632
- return new protocol_http_1.HttpRequest({
633
- protocol,
634
- hostname,
635
- port,
636
- method: "PATCH",
637
- headers,
638
- path: resolvedPath,
639
- body,
640
- });
403
+ b.m("PATCH").h(headers).b(body);
404
+ return b.build();
641
405
  };
642
406
  exports.se_UpdateSolNetworkPackageCommand = se_UpdateSolNetworkPackageCommand;
643
407
  const se_ValidateSolFunctionPackageContentCommand = async (input, context) => {
644
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
408
+ const b = (0, core_1.requestBuilder)(input, context);
645
409
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
646
- "content-type": input.contentType || "application/octet-stream",
410
+ [_ct]: input[_cT] || "application/octet-stream",
647
411
  });
648
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
649
- "/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content/validate";
650
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
412
+ b.bp("/sol/vnfpkgm/v1/vnf_packages/{vnfPkgId}/package_content/validate");
413
+ b.p("vnfPkgId", () => input.vnfPkgId, "{vnfPkgId}", false);
651
414
  let body;
652
415
  if (input.file !== undefined) {
653
416
  body = input.file;
654
417
  }
655
- return new protocol_http_1.HttpRequest({
656
- protocol,
657
- hostname,
658
- port,
659
- method: "PUT",
660
- headers,
661
- path: resolvedPath,
662
- body,
663
- });
418
+ b.m("PUT").h(headers).b(body);
419
+ return b.build();
664
420
  };
665
421
  exports.se_ValidateSolFunctionPackageContentCommand = se_ValidateSolFunctionPackageContentCommand;
666
422
  const se_ValidateSolNetworkPackageContentCommand = async (input, context) => {
667
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
423
+ const b = (0, core_1.requestBuilder)(input, context);
668
424
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
669
- "content-type": input.contentType || "application/octet-stream",
425
+ [_ct]: input[_cT] || "application/octet-stream",
670
426
  });
671
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
672
- "/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content/validate";
673
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
427
+ b.bp("/sol/nsd/v1/ns_descriptors/{nsdInfoId}/nsd_content/validate");
428
+ b.p("nsdInfoId", () => input.nsdInfoId, "{nsdInfoId}", false);
674
429
  let body;
675
430
  if (input.file !== undefined) {
676
431
  body = input.file;
677
432
  }
678
- return new protocol_http_1.HttpRequest({
679
- protocol,
680
- hostname,
681
- port,
682
- method: "PUT",
683
- headers,
684
- path: resolvedPath,
685
- body,
686
- });
433
+ b.m("PUT").h(headers).b(body);
434
+ return b.build();
687
435
  };
688
436
  exports.se_ValidateSolNetworkPackageContentCommand = se_ValidateSolNetworkPackageContentCommand;
689
437
  const de_CancelSolNetworkOperationCommand = async (output, context) => {
@@ -1128,7 +876,7 @@ const de_GetSolFunctionPackageContentCommand = async (output, context) => {
1128
876
  }
1129
877
  const contents = (0, smithy_client_1.map)({
1130
878
  $metadata: deserializeMetadata(output),
1131
- contentType: [, output.headers["content-type"]],
879
+ [_cT]: [, output.headers[_ct]],
1132
880
  });
1133
881
  const data = await (0, smithy_client_1.collectBody)(output.body, context);
1134
882
  contents.packageContent = data;
@@ -1172,7 +920,7 @@ const de_GetSolFunctionPackageDescriptorCommand = async (output, context) => {
1172
920
  }
1173
921
  const contents = (0, smithy_client_1.map)({
1174
922
  $metadata: deserializeMetadata(output),
1175
- contentType: [, output.headers["content-type"]],
923
+ [_cT]: [, output.headers[_ct]],
1176
924
  });
1177
925
  const data = await (0, smithy_client_1.collectBody)(output.body, context);
1178
926
  contents.vnfd = data;
@@ -1381,7 +1129,7 @@ const de_GetSolNetworkPackageContentCommand = async (output, context) => {
1381
1129
  }
1382
1130
  const contents = (0, smithy_client_1.map)({
1383
1131
  $metadata: deserializeMetadata(output),
1384
- contentType: [, output.headers["content-type"]],
1132
+ [_cT]: [, output.headers[_ct]],
1385
1133
  });
1386
1134
  const data = await (0, smithy_client_1.collectBody)(output.body, context);
1387
1135
  contents.nsdContent = data;
@@ -1425,7 +1173,7 @@ const de_GetSolNetworkPackageDescriptorCommand = async (output, context) => {
1425
1173
  }
1426
1174
  const contents = (0, smithy_client_1.map)({
1427
1175
  $metadata: deserializeMetadata(output),
1428
- contentType: [, output.headers["content-type"]],
1176
+ [_cT]: [, output.headers[_ct]],
1429
1177
  });
1430
1178
  const data = await (0, smithy_client_1.collectBody)(output.body, context);
1431
1179
  contents.nsd = data;
@@ -2546,6 +2294,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
2546
2294
  value !== "" &&
2547
2295
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
2548
2296
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2297
+ const _a = "accept";
2298
+ const _cT = "contentType";
2299
+ const _ct = "content-type";
2300
+ const _dR = "dryRun";
2301
+ const _dr = "dry_run";
2302
+ const _mR = "maxResults";
2303
+ const _mr = "max_results";
2304
+ const _nT = "nextToken";
2305
+ const _nom = "nextpage_opaque_marker";
2306
+ const _tK = "tagKeys";
2549
2307
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2550
2308
  if (encoded.length) {
2551
2309
  return JSON.parse(encoded);