@aws-sdk/client-iotdeviceadvisor 3.141.0 → 3.142.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +193 -396
- package/dist-es/protocols/Aws_restJson1.js +246 -392
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { IotDeviceAdvisorServiceException as __BaseException } from "../models/IotDeviceAdvisorServiceException";
|
|
5
5
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateSuiteDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -30,7 +30,7 @@ export var serializeAws_restJson1CreateSuiteDefinitionCommand = function (input,
|
|
|
30
30
|
});
|
|
31
31
|
}); };
|
|
32
32
|
export var serializeAws_restJson1DeleteSuiteDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
33
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
33
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
34
34
|
return __generator(this, function (_c) {
|
|
35
35
|
switch (_c.label) {
|
|
36
36
|
case 0: return [4, context.endpoint()];
|
|
@@ -38,16 +38,7 @@ export var serializeAws_restJson1DeleteSuiteDefinitionCommand = function (input,
|
|
|
38
38
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
39
39
|
headers = {};
|
|
40
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/suiteDefinitions/{suiteDefinitionId}";
|
|
41
|
-
|
|
42
|
-
labelValue = input.suiteDefinitionId;
|
|
43
|
-
if (labelValue.length <= 0) {
|
|
44
|
-
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
45
|
-
}
|
|
46
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", __extendedEncodeURIComponent(labelValue));
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
50
|
-
}
|
|
41
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", function () { return input.suiteDefinitionId; }, "{suiteDefinitionId}", false);
|
|
51
42
|
return [2, new __HttpRequest({
|
|
52
43
|
protocol: protocol,
|
|
53
44
|
hostname: hostname,
|
|
@@ -69,7 +60,10 @@ export var serializeAws_restJson1GetEndpointCommand = function (input, context)
|
|
|
69
60
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
70
61
|
headers = {};
|
|
71
62
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/endpoint";
|
|
72
|
-
query =
|
|
63
|
+
query = map({
|
|
64
|
+
thingArn: [, input.thingArn],
|
|
65
|
+
certificateArn: [, input.certificateArn],
|
|
66
|
+
});
|
|
73
67
|
return [2, new __HttpRequest({
|
|
74
68
|
protocol: protocol,
|
|
75
69
|
hostname: hostname,
|
|
@@ -84,7 +78,7 @@ export var serializeAws_restJson1GetEndpointCommand = function (input, context)
|
|
|
84
78
|
});
|
|
85
79
|
}); };
|
|
86
80
|
export var serializeAws_restJson1GetSuiteDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
87
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
81
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
88
82
|
return __generator(this, function (_c) {
|
|
89
83
|
switch (_c.label) {
|
|
90
84
|
case 0: return [4, context.endpoint()];
|
|
@@ -92,17 +86,10 @@ export var serializeAws_restJson1GetSuiteDefinitionCommand = function (input, co
|
|
|
92
86
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
93
87
|
headers = {};
|
|
94
88
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/suiteDefinitions/{suiteDefinitionId}";
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", __extendedEncodeURIComponent(labelValue));
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
104
|
-
}
|
|
105
|
-
query = __assign({}, (input.suiteDefinitionVersion !== undefined && { suiteDefinitionVersion: input.suiteDefinitionVersion }));
|
|
89
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", function () { return input.suiteDefinitionId; }, "{suiteDefinitionId}", false);
|
|
90
|
+
query = map({
|
|
91
|
+
suiteDefinitionVersion: [, input.suiteDefinitionVersion],
|
|
92
|
+
});
|
|
106
93
|
return [2, new __HttpRequest({
|
|
107
94
|
protocol: protocol,
|
|
108
95
|
hostname: hostname,
|
|
@@ -117,7 +104,7 @@ export var serializeAws_restJson1GetSuiteDefinitionCommand = function (input, co
|
|
|
117
104
|
});
|
|
118
105
|
}); };
|
|
119
106
|
export var serializeAws_restJson1GetSuiteRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
120
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
107
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
121
108
|
return __generator(this, function (_c) {
|
|
122
109
|
switch (_c.label) {
|
|
123
110
|
case 0: return [4, context.endpoint()];
|
|
@@ -126,26 +113,8 @@ export var serializeAws_restJson1GetSuiteRunCommand = function (input, context)
|
|
|
126
113
|
headers = {};
|
|
127
114
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
128
115
|
"/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}";
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (labelValue.length <= 0) {
|
|
132
|
-
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
133
|
-
}
|
|
134
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", __extendedEncodeURIComponent(labelValue));
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
138
|
-
}
|
|
139
|
-
if (input.suiteRunId !== undefined) {
|
|
140
|
-
labelValue = input.suiteRunId;
|
|
141
|
-
if (labelValue.length <= 0) {
|
|
142
|
-
throw new Error("Empty value provided for input HTTP label: suiteRunId.");
|
|
143
|
-
}
|
|
144
|
-
resolvedPath = resolvedPath.replace("{suiteRunId}", __extendedEncodeURIComponent(labelValue));
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
throw new Error("No value provided for input HTTP label: suiteRunId.");
|
|
148
|
-
}
|
|
116
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", function () { return input.suiteDefinitionId; }, "{suiteDefinitionId}", false);
|
|
117
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "suiteRunId", function () { return input.suiteRunId; }, "{suiteRunId}", false);
|
|
149
118
|
return [2, new __HttpRequest({
|
|
150
119
|
protocol: protocol,
|
|
151
120
|
hostname: hostname,
|
|
@@ -159,7 +128,7 @@ export var serializeAws_restJson1GetSuiteRunCommand = function (input, context)
|
|
|
159
128
|
});
|
|
160
129
|
}); };
|
|
161
130
|
export var serializeAws_restJson1GetSuiteRunReportCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
162
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
131
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
163
132
|
return __generator(this, function (_c) {
|
|
164
133
|
switch (_c.label) {
|
|
165
134
|
case 0: return [4, context.endpoint()];
|
|
@@ -168,26 +137,8 @@ export var serializeAws_restJson1GetSuiteRunReportCommand = function (input, con
|
|
|
168
137
|
headers = {};
|
|
169
138
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
170
139
|
"/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report";
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
if (labelValue.length <= 0) {
|
|
174
|
-
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
175
|
-
}
|
|
176
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", __extendedEncodeURIComponent(labelValue));
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
180
|
-
}
|
|
181
|
-
if (input.suiteRunId !== undefined) {
|
|
182
|
-
labelValue = input.suiteRunId;
|
|
183
|
-
if (labelValue.length <= 0) {
|
|
184
|
-
throw new Error("Empty value provided for input HTTP label: suiteRunId.");
|
|
185
|
-
}
|
|
186
|
-
resolvedPath = resolvedPath.replace("{suiteRunId}", __extendedEncodeURIComponent(labelValue));
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
throw new Error("No value provided for input HTTP label: suiteRunId.");
|
|
190
|
-
}
|
|
140
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", function () { return input.suiteDefinitionId; }, "{suiteDefinitionId}", false);
|
|
141
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "suiteRunId", function () { return input.suiteRunId; }, "{suiteRunId}", false);
|
|
191
142
|
return [2, new __HttpRequest({
|
|
192
143
|
protocol: protocol,
|
|
193
144
|
hostname: hostname,
|
|
@@ -209,7 +160,10 @@ export var serializeAws_restJson1ListSuiteDefinitionsCommand = function (input,
|
|
|
209
160
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
210
161
|
headers = {};
|
|
211
162
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/suiteDefinitions";
|
|
212
|
-
query =
|
|
163
|
+
query = map({
|
|
164
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
165
|
+
nextToken: [, input.nextToken],
|
|
166
|
+
});
|
|
213
167
|
return [2, new __HttpRequest({
|
|
214
168
|
protocol: protocol,
|
|
215
169
|
hostname: hostname,
|
|
@@ -232,7 +186,12 @@ export var serializeAws_restJson1ListSuiteRunsCommand = function (input, context
|
|
|
232
186
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
233
187
|
headers = {};
|
|
234
188
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/suiteRuns";
|
|
235
|
-
query =
|
|
189
|
+
query = map({
|
|
190
|
+
suiteDefinitionId: [, input.suiteDefinitionId],
|
|
191
|
+
suiteDefinitionVersion: [, input.suiteDefinitionVersion],
|
|
192
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
193
|
+
nextToken: [, input.nextToken],
|
|
194
|
+
});
|
|
236
195
|
return [2, new __HttpRequest({
|
|
237
196
|
protocol: protocol,
|
|
238
197
|
hostname: hostname,
|
|
@@ -247,7 +206,7 @@ export var serializeAws_restJson1ListSuiteRunsCommand = function (input, context
|
|
|
247
206
|
});
|
|
248
207
|
}); };
|
|
249
208
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
250
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
209
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
251
210
|
return __generator(this, function (_c) {
|
|
252
211
|
switch (_c.label) {
|
|
253
212
|
case 0: return [4, context.endpoint()];
|
|
@@ -255,16 +214,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
255
214
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
256
215
|
headers = {};
|
|
257
216
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
258
|
-
|
|
259
|
-
labelValue = input.resourceArn;
|
|
260
|
-
if (labelValue.length <= 0) {
|
|
261
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
262
|
-
}
|
|
263
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
264
|
-
}
|
|
265
|
-
else {
|
|
266
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
267
|
-
}
|
|
217
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
268
218
|
return [2, new __HttpRequest({
|
|
269
219
|
protocol: protocol,
|
|
270
220
|
hostname: hostname,
|
|
@@ -278,7 +228,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
278
228
|
});
|
|
279
229
|
}); };
|
|
280
230
|
export var serializeAws_restJson1StartSuiteRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
281
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
231
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
282
232
|
return __generator(this, function (_c) {
|
|
283
233
|
switch (_c.label) {
|
|
284
234
|
case 0: return [4, context.endpoint()];
|
|
@@ -289,16 +239,7 @@ export var serializeAws_restJson1StartSuiteRunCommand = function (input, context
|
|
|
289
239
|
};
|
|
290
240
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
291
241
|
"/suiteDefinitions/{suiteDefinitionId}/suiteRuns";
|
|
292
|
-
|
|
293
|
-
labelValue = input.suiteDefinitionId;
|
|
294
|
-
if (labelValue.length <= 0) {
|
|
295
|
-
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
296
|
-
}
|
|
297
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", __extendedEncodeURIComponent(labelValue));
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
301
|
-
}
|
|
242
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", function () { return input.suiteDefinitionId; }, "{suiteDefinitionId}", false);
|
|
302
243
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.suiteDefinitionVersion != null && { suiteDefinitionVersion: input.suiteDefinitionVersion })), (input.suiteRunConfiguration != null && {
|
|
303
244
|
suiteRunConfiguration: serializeAws_restJson1SuiteRunConfiguration(input.suiteRunConfiguration, context),
|
|
304
245
|
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
@@ -315,7 +256,7 @@ export var serializeAws_restJson1StartSuiteRunCommand = function (input, context
|
|
|
315
256
|
});
|
|
316
257
|
}); };
|
|
317
258
|
export var serializeAws_restJson1StopSuiteRunCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
318
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
259
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
319
260
|
return __generator(this, function (_c) {
|
|
320
261
|
switch (_c.label) {
|
|
321
262
|
case 0: return [4, context.endpoint()];
|
|
@@ -324,26 +265,8 @@ export var serializeAws_restJson1StopSuiteRunCommand = function (input, context)
|
|
|
324
265
|
headers = {};
|
|
325
266
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
326
267
|
"/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/stop";
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
if (labelValue.length <= 0) {
|
|
330
|
-
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
331
|
-
}
|
|
332
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", __extendedEncodeURIComponent(labelValue));
|
|
333
|
-
}
|
|
334
|
-
else {
|
|
335
|
-
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
336
|
-
}
|
|
337
|
-
if (input.suiteRunId !== undefined) {
|
|
338
|
-
labelValue = input.suiteRunId;
|
|
339
|
-
if (labelValue.length <= 0) {
|
|
340
|
-
throw new Error("Empty value provided for input HTTP label: suiteRunId.");
|
|
341
|
-
}
|
|
342
|
-
resolvedPath = resolvedPath.replace("{suiteRunId}", __extendedEncodeURIComponent(labelValue));
|
|
343
|
-
}
|
|
344
|
-
else {
|
|
345
|
-
throw new Error("No value provided for input HTTP label: suiteRunId.");
|
|
346
|
-
}
|
|
268
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", function () { return input.suiteDefinitionId; }, "{suiteDefinitionId}", false);
|
|
269
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "suiteRunId", function () { return input.suiteRunId; }, "{suiteRunId}", false);
|
|
347
270
|
return [2, new __HttpRequest({
|
|
348
271
|
protocol: protocol,
|
|
349
272
|
hostname: hostname,
|
|
@@ -357,7 +280,7 @@ export var serializeAws_restJson1StopSuiteRunCommand = function (input, context)
|
|
|
357
280
|
});
|
|
358
281
|
}); };
|
|
359
282
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
360
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
283
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
361
284
|
return __generator(this, function (_c) {
|
|
362
285
|
switch (_c.label) {
|
|
363
286
|
case 0: return [4, context.endpoint()];
|
|
@@ -367,16 +290,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
367
290
|
"content-type": "application/json",
|
|
368
291
|
};
|
|
369
292
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
370
|
-
|
|
371
|
-
labelValue = input.resourceArn;
|
|
372
|
-
if (labelValue.length <= 0) {
|
|
373
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
374
|
-
}
|
|
375
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
379
|
-
}
|
|
293
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
380
294
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
381
295
|
return [2, new __HttpRequest({
|
|
382
296
|
protocol: protocol,
|
|
@@ -391,7 +305,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
391
305
|
});
|
|
392
306
|
}); };
|
|
393
307
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
394
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
308
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
395
309
|
return __generator(this, function (_c) {
|
|
396
310
|
switch (_c.label) {
|
|
397
311
|
case 0: return [4, context.endpoint()];
|
|
@@ -399,17 +313,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
399
313
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
400
314
|
headers = {};
|
|
401
315
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
}
|
|
407
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
411
|
-
}
|
|
412
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
316
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
317
|
+
query = map({
|
|
318
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
319
|
+
});
|
|
413
320
|
return [2, new __HttpRequest({
|
|
414
321
|
protocol: protocol,
|
|
415
322
|
hostname: hostname,
|
|
@@ -424,7 +331,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
424
331
|
});
|
|
425
332
|
}); };
|
|
426
333
|
export var serializeAws_restJson1UpdateSuiteDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
427
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
334
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
428
335
|
return __generator(this, function (_c) {
|
|
429
336
|
switch (_c.label) {
|
|
430
337
|
case 0: return [4, context.endpoint()];
|
|
@@ -434,16 +341,7 @@ export var serializeAws_restJson1UpdateSuiteDefinitionCommand = function (input,
|
|
|
434
341
|
"content-type": "application/json",
|
|
435
342
|
};
|
|
436
343
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/suiteDefinitions/{suiteDefinitionId}";
|
|
437
|
-
|
|
438
|
-
labelValue = input.suiteDefinitionId;
|
|
439
|
-
if (labelValue.length <= 0) {
|
|
440
|
-
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
441
|
-
}
|
|
442
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", __extendedEncodeURIComponent(labelValue));
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
446
|
-
}
|
|
344
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", function () { return input.suiteDefinitionId; }, "{suiteDefinitionId}", false);
|
|
447
345
|
body = JSON.stringify(__assign({}, (input.suiteDefinitionConfiguration != null && {
|
|
448
346
|
suiteDefinitionConfiguration: serializeAws_restJson1SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
|
|
449
347
|
})));
|
|
@@ -467,36 +365,32 @@ export var deserializeAws_restJson1CreateSuiteDefinitionCommand = function (outp
|
|
|
467
365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
468
366
|
return [2, deserializeAws_restJson1CreateSuiteDefinitionCommandError(output, context)];
|
|
469
367
|
}
|
|
470
|
-
contents = {
|
|
368
|
+
contents = map({
|
|
471
369
|
$metadata: deserializeMetadata(output),
|
|
472
|
-
|
|
473
|
-
suiteDefinitionArn: undefined,
|
|
474
|
-
suiteDefinitionId: undefined,
|
|
475
|
-
suiteDefinitionName: undefined,
|
|
476
|
-
};
|
|
370
|
+
});
|
|
477
371
|
_a = __expectNonNull;
|
|
478
372
|
_b = __expectObject;
|
|
479
373
|
return [4, parseBody(output.body, context)];
|
|
480
374
|
case 1:
|
|
481
375
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
482
|
-
if (data.createdAt
|
|
376
|
+
if (data.createdAt != null) {
|
|
483
377
|
contents.createdAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.createdAt)));
|
|
484
378
|
}
|
|
485
|
-
if (data.suiteDefinitionArn
|
|
379
|
+
if (data.suiteDefinitionArn != null) {
|
|
486
380
|
contents.suiteDefinitionArn = __expectString(data.suiteDefinitionArn);
|
|
487
381
|
}
|
|
488
|
-
if (data.suiteDefinitionId
|
|
382
|
+
if (data.suiteDefinitionId != null) {
|
|
489
383
|
contents.suiteDefinitionId = __expectString(data.suiteDefinitionId);
|
|
490
384
|
}
|
|
491
|
-
if (data.suiteDefinitionName
|
|
385
|
+
if (data.suiteDefinitionName != null) {
|
|
492
386
|
contents.suiteDefinitionName = __expectString(data.suiteDefinitionName);
|
|
493
387
|
}
|
|
494
|
-
return [2,
|
|
388
|
+
return [2, contents];
|
|
495
389
|
}
|
|
496
390
|
});
|
|
497
391
|
}); };
|
|
498
392
|
var deserializeAws_restJson1CreateSuiteDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
499
|
-
var parsedOutput, _a,
|
|
393
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
500
394
|
var _c;
|
|
501
395
|
return __generator(this, function (_d) {
|
|
502
396
|
switch (_d.label) {
|
|
@@ -521,14 +415,14 @@ var deserializeAws_restJson1CreateSuiteDefinitionCommandError = function (output
|
|
|
521
415
|
case 5: throw _d.sent();
|
|
522
416
|
case 6:
|
|
523
417
|
parsedBody = parsedOutput.body;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
$metadata: $metadata,
|
|
418
|
+
throwDefaultError({
|
|
419
|
+
output: output,
|
|
420
|
+
parsedBody: parsedBody,
|
|
421
|
+
exceptionCtor: __BaseException,
|
|
422
|
+
errorCode: errorCode,
|
|
530
423
|
});
|
|
531
|
-
|
|
424
|
+
_d.label = 7;
|
|
425
|
+
case 7: return [2];
|
|
532
426
|
}
|
|
533
427
|
});
|
|
534
428
|
}); };
|
|
@@ -540,18 +434,18 @@ export var deserializeAws_restJson1DeleteSuiteDefinitionCommand = function (outp
|
|
|
540
434
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
541
435
|
return [2, deserializeAws_restJson1DeleteSuiteDefinitionCommandError(output, context)];
|
|
542
436
|
}
|
|
543
|
-
contents = {
|
|
437
|
+
contents = map({
|
|
544
438
|
$metadata: deserializeMetadata(output),
|
|
545
|
-
};
|
|
439
|
+
});
|
|
546
440
|
return [4, collectBody(output.body, context)];
|
|
547
441
|
case 1:
|
|
548
442
|
_a.sent();
|
|
549
|
-
return [2,
|
|
443
|
+
return [2, contents];
|
|
550
444
|
}
|
|
551
445
|
});
|
|
552
446
|
}); };
|
|
553
447
|
var deserializeAws_restJson1DeleteSuiteDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
554
|
-
var parsedOutput, _a,
|
|
448
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
555
449
|
var _c;
|
|
556
450
|
return __generator(this, function (_d) {
|
|
557
451
|
switch (_d.label) {
|
|
@@ -576,14 +470,14 @@ var deserializeAws_restJson1DeleteSuiteDefinitionCommandError = function (output
|
|
|
576
470
|
case 5: throw _d.sent();
|
|
577
471
|
case 6:
|
|
578
472
|
parsedBody = parsedOutput.body;
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
$metadata: $metadata,
|
|
473
|
+
throwDefaultError({
|
|
474
|
+
output: output,
|
|
475
|
+
parsedBody: parsedBody,
|
|
476
|
+
exceptionCtor: __BaseException,
|
|
477
|
+
errorCode: errorCode,
|
|
585
478
|
});
|
|
586
|
-
|
|
479
|
+
_d.label = 7;
|
|
480
|
+
case 7: return [2];
|
|
587
481
|
}
|
|
588
482
|
});
|
|
589
483
|
}); };
|
|
@@ -595,24 +489,23 @@ export var deserializeAws_restJson1GetEndpointCommand = function (output, contex
|
|
|
595
489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
490
|
return [2, deserializeAws_restJson1GetEndpointCommandError(output, context)];
|
|
597
491
|
}
|
|
598
|
-
contents = {
|
|
492
|
+
contents = map({
|
|
599
493
|
$metadata: deserializeMetadata(output),
|
|
600
|
-
|
|
601
|
-
};
|
|
494
|
+
});
|
|
602
495
|
_a = __expectNonNull;
|
|
603
496
|
_b = __expectObject;
|
|
604
497
|
return [4, parseBody(output.body, context)];
|
|
605
498
|
case 1:
|
|
606
499
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
607
|
-
if (data.endpoint
|
|
500
|
+
if (data.endpoint != null) {
|
|
608
501
|
contents.endpoint = __expectString(data.endpoint);
|
|
609
502
|
}
|
|
610
|
-
return [2,
|
|
503
|
+
return [2, contents];
|
|
611
504
|
}
|
|
612
505
|
});
|
|
613
506
|
}); };
|
|
614
507
|
var deserializeAws_restJson1GetEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
615
|
-
var parsedOutput, _a,
|
|
508
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
616
509
|
var _c;
|
|
617
510
|
return __generator(this, function (_d) {
|
|
618
511
|
switch (_d.label) {
|
|
@@ -641,14 +534,14 @@ var deserializeAws_restJson1GetEndpointCommandError = function (output, context)
|
|
|
641
534
|
case 7: throw _d.sent();
|
|
642
535
|
case 8:
|
|
643
536
|
parsedBody = parsedOutput.body;
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
$metadata: $metadata,
|
|
537
|
+
throwDefaultError({
|
|
538
|
+
output: output,
|
|
539
|
+
parsedBody: parsedBody,
|
|
540
|
+
exceptionCtor: __BaseException,
|
|
541
|
+
errorCode: errorCode,
|
|
650
542
|
});
|
|
651
|
-
|
|
543
|
+
_d.label = 9;
|
|
544
|
+
case 9: return [2];
|
|
652
545
|
}
|
|
653
546
|
});
|
|
654
547
|
}); };
|
|
@@ -660,52 +553,44 @@ export var deserializeAws_restJson1GetSuiteDefinitionCommand = function (output,
|
|
|
660
553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
661
554
|
return [2, deserializeAws_restJson1GetSuiteDefinitionCommandError(output, context)];
|
|
662
555
|
}
|
|
663
|
-
contents = {
|
|
556
|
+
contents = map({
|
|
664
557
|
$metadata: deserializeMetadata(output),
|
|
665
|
-
|
|
666
|
-
lastModifiedAt: undefined,
|
|
667
|
-
latestVersion: undefined,
|
|
668
|
-
suiteDefinitionArn: undefined,
|
|
669
|
-
suiteDefinitionConfiguration: undefined,
|
|
670
|
-
suiteDefinitionId: undefined,
|
|
671
|
-
suiteDefinitionVersion: undefined,
|
|
672
|
-
tags: undefined,
|
|
673
|
-
};
|
|
558
|
+
});
|
|
674
559
|
_a = __expectNonNull;
|
|
675
560
|
_b = __expectObject;
|
|
676
561
|
return [4, parseBody(output.body, context)];
|
|
677
562
|
case 1:
|
|
678
563
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
679
|
-
if (data.createdAt
|
|
564
|
+
if (data.createdAt != null) {
|
|
680
565
|
contents.createdAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.createdAt)));
|
|
681
566
|
}
|
|
682
|
-
if (data.lastModifiedAt
|
|
567
|
+
if (data.lastModifiedAt != null) {
|
|
683
568
|
contents.lastModifiedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastModifiedAt)));
|
|
684
569
|
}
|
|
685
|
-
if (data.latestVersion
|
|
570
|
+
if (data.latestVersion != null) {
|
|
686
571
|
contents.latestVersion = __expectString(data.latestVersion);
|
|
687
572
|
}
|
|
688
|
-
if (data.suiteDefinitionArn
|
|
573
|
+
if (data.suiteDefinitionArn != null) {
|
|
689
574
|
contents.suiteDefinitionArn = __expectString(data.suiteDefinitionArn);
|
|
690
575
|
}
|
|
691
|
-
if (data.suiteDefinitionConfiguration
|
|
576
|
+
if (data.suiteDefinitionConfiguration != null) {
|
|
692
577
|
contents.suiteDefinitionConfiguration = deserializeAws_restJson1SuiteDefinitionConfiguration(data.suiteDefinitionConfiguration, context);
|
|
693
578
|
}
|
|
694
|
-
if (data.suiteDefinitionId
|
|
579
|
+
if (data.suiteDefinitionId != null) {
|
|
695
580
|
contents.suiteDefinitionId = __expectString(data.suiteDefinitionId);
|
|
696
581
|
}
|
|
697
|
-
if (data.suiteDefinitionVersion
|
|
582
|
+
if (data.suiteDefinitionVersion != null) {
|
|
698
583
|
contents.suiteDefinitionVersion = __expectString(data.suiteDefinitionVersion);
|
|
699
584
|
}
|
|
700
|
-
if (data.tags
|
|
585
|
+
if (data.tags != null) {
|
|
701
586
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
702
587
|
}
|
|
703
|
-
return [2,
|
|
588
|
+
return [2, contents];
|
|
704
589
|
}
|
|
705
590
|
});
|
|
706
591
|
}); };
|
|
707
592
|
var deserializeAws_restJson1GetSuiteDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
708
|
-
var parsedOutput, _a,
|
|
593
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
709
594
|
var _c;
|
|
710
595
|
return __generator(this, function (_d) {
|
|
711
596
|
switch (_d.label) {
|
|
@@ -734,14 +619,14 @@ var deserializeAws_restJson1GetSuiteDefinitionCommandError = function (output, c
|
|
|
734
619
|
case 7: throw _d.sent();
|
|
735
620
|
case 8:
|
|
736
621
|
parsedBody = parsedOutput.body;
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
$metadata: $metadata,
|
|
622
|
+
throwDefaultError({
|
|
623
|
+
output: output,
|
|
624
|
+
parsedBody: parsedBody,
|
|
625
|
+
exceptionCtor: __BaseException,
|
|
626
|
+
errorCode: errorCode,
|
|
743
627
|
});
|
|
744
|
-
|
|
628
|
+
_d.label = 9;
|
|
629
|
+
case 9: return [2];
|
|
745
630
|
}
|
|
746
631
|
});
|
|
747
632
|
}); };
|
|
@@ -753,64 +638,53 @@ export var deserializeAws_restJson1GetSuiteRunCommand = function (output, contex
|
|
|
753
638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
639
|
return [2, deserializeAws_restJson1GetSuiteRunCommandError(output, context)];
|
|
755
640
|
}
|
|
756
|
-
contents = {
|
|
641
|
+
contents = map({
|
|
757
642
|
$metadata: deserializeMetadata(output),
|
|
758
|
-
|
|
759
|
-
errorReason: undefined,
|
|
760
|
-
startTime: undefined,
|
|
761
|
-
status: undefined,
|
|
762
|
-
suiteDefinitionId: undefined,
|
|
763
|
-
suiteDefinitionVersion: undefined,
|
|
764
|
-
suiteRunArn: undefined,
|
|
765
|
-
suiteRunConfiguration: undefined,
|
|
766
|
-
suiteRunId: undefined,
|
|
767
|
-
tags: undefined,
|
|
768
|
-
testResult: undefined,
|
|
769
|
-
};
|
|
643
|
+
});
|
|
770
644
|
_a = __expectNonNull;
|
|
771
645
|
_b = __expectObject;
|
|
772
646
|
return [4, parseBody(output.body, context)];
|
|
773
647
|
case 1:
|
|
774
648
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
775
|
-
if (data.endTime
|
|
649
|
+
if (data.endTime != null) {
|
|
776
650
|
contents.endTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.endTime)));
|
|
777
651
|
}
|
|
778
|
-
if (data.errorReason
|
|
652
|
+
if (data.errorReason != null) {
|
|
779
653
|
contents.errorReason = __expectString(data.errorReason);
|
|
780
654
|
}
|
|
781
|
-
if (data.startTime
|
|
655
|
+
if (data.startTime != null) {
|
|
782
656
|
contents.startTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.startTime)));
|
|
783
657
|
}
|
|
784
|
-
if (data.status
|
|
658
|
+
if (data.status != null) {
|
|
785
659
|
contents.status = __expectString(data.status);
|
|
786
660
|
}
|
|
787
|
-
if (data.suiteDefinitionId
|
|
661
|
+
if (data.suiteDefinitionId != null) {
|
|
788
662
|
contents.suiteDefinitionId = __expectString(data.suiteDefinitionId);
|
|
789
663
|
}
|
|
790
|
-
if (data.suiteDefinitionVersion
|
|
664
|
+
if (data.suiteDefinitionVersion != null) {
|
|
791
665
|
contents.suiteDefinitionVersion = __expectString(data.suiteDefinitionVersion);
|
|
792
666
|
}
|
|
793
|
-
if (data.suiteRunArn
|
|
667
|
+
if (data.suiteRunArn != null) {
|
|
794
668
|
contents.suiteRunArn = __expectString(data.suiteRunArn);
|
|
795
669
|
}
|
|
796
|
-
if (data.suiteRunConfiguration
|
|
670
|
+
if (data.suiteRunConfiguration != null) {
|
|
797
671
|
contents.suiteRunConfiguration = deserializeAws_restJson1SuiteRunConfiguration(data.suiteRunConfiguration, context);
|
|
798
672
|
}
|
|
799
|
-
if (data.suiteRunId
|
|
673
|
+
if (data.suiteRunId != null) {
|
|
800
674
|
contents.suiteRunId = __expectString(data.suiteRunId);
|
|
801
675
|
}
|
|
802
|
-
if (data.tags
|
|
676
|
+
if (data.tags != null) {
|
|
803
677
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
804
678
|
}
|
|
805
|
-
if (data.testResult
|
|
679
|
+
if (data.testResult != null) {
|
|
806
680
|
contents.testResult = deserializeAws_restJson1TestResult(data.testResult, context);
|
|
807
681
|
}
|
|
808
|
-
return [2,
|
|
682
|
+
return [2, contents];
|
|
809
683
|
}
|
|
810
684
|
});
|
|
811
685
|
}); };
|
|
812
686
|
var deserializeAws_restJson1GetSuiteRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
813
|
-
var parsedOutput, _a,
|
|
687
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
814
688
|
var _c;
|
|
815
689
|
return __generator(this, function (_d) {
|
|
816
690
|
switch (_d.label) {
|
|
@@ -839,14 +713,14 @@ var deserializeAws_restJson1GetSuiteRunCommandError = function (output, context)
|
|
|
839
713
|
case 7: throw _d.sent();
|
|
840
714
|
case 8:
|
|
841
715
|
parsedBody = parsedOutput.body;
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
$metadata: $metadata,
|
|
716
|
+
throwDefaultError({
|
|
717
|
+
output: output,
|
|
718
|
+
parsedBody: parsedBody,
|
|
719
|
+
exceptionCtor: __BaseException,
|
|
720
|
+
errorCode: errorCode,
|
|
848
721
|
});
|
|
849
|
-
|
|
722
|
+
_d.label = 9;
|
|
723
|
+
case 9: return [2];
|
|
850
724
|
}
|
|
851
725
|
});
|
|
852
726
|
}); };
|
|
@@ -858,24 +732,23 @@ export var deserializeAws_restJson1GetSuiteRunReportCommand = function (output,
|
|
|
858
732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
859
733
|
return [2, deserializeAws_restJson1GetSuiteRunReportCommandError(output, context)];
|
|
860
734
|
}
|
|
861
|
-
contents = {
|
|
735
|
+
contents = map({
|
|
862
736
|
$metadata: deserializeMetadata(output),
|
|
863
|
-
|
|
864
|
-
};
|
|
737
|
+
});
|
|
865
738
|
_a = __expectNonNull;
|
|
866
739
|
_b = __expectObject;
|
|
867
740
|
return [4, parseBody(output.body, context)];
|
|
868
741
|
case 1:
|
|
869
742
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
870
|
-
if (data.qualificationReportDownloadUrl
|
|
743
|
+
if (data.qualificationReportDownloadUrl != null) {
|
|
871
744
|
contents.qualificationReportDownloadUrl = __expectString(data.qualificationReportDownloadUrl);
|
|
872
745
|
}
|
|
873
|
-
return [2,
|
|
746
|
+
return [2, contents];
|
|
874
747
|
}
|
|
875
748
|
});
|
|
876
749
|
}); };
|
|
877
750
|
var deserializeAws_restJson1GetSuiteRunReportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
878
|
-
var parsedOutput, _a,
|
|
751
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
879
752
|
var _c;
|
|
880
753
|
return __generator(this, function (_d) {
|
|
881
754
|
switch (_d.label) {
|
|
@@ -904,14 +777,14 @@ var deserializeAws_restJson1GetSuiteRunReportCommandError = function (output, co
|
|
|
904
777
|
case 7: throw _d.sent();
|
|
905
778
|
case 8:
|
|
906
779
|
parsedBody = parsedOutput.body;
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
$metadata: $metadata,
|
|
780
|
+
throwDefaultError({
|
|
781
|
+
output: output,
|
|
782
|
+
parsedBody: parsedBody,
|
|
783
|
+
exceptionCtor: __BaseException,
|
|
784
|
+
errorCode: errorCode,
|
|
913
785
|
});
|
|
914
|
-
|
|
786
|
+
_d.label = 9;
|
|
787
|
+
case 9: return [2];
|
|
915
788
|
}
|
|
916
789
|
});
|
|
917
790
|
}); };
|
|
@@ -923,28 +796,26 @@ export var deserializeAws_restJson1ListSuiteDefinitionsCommand = function (outpu
|
|
|
923
796
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
924
797
|
return [2, deserializeAws_restJson1ListSuiteDefinitionsCommandError(output, context)];
|
|
925
798
|
}
|
|
926
|
-
contents = {
|
|
799
|
+
contents = map({
|
|
927
800
|
$metadata: deserializeMetadata(output),
|
|
928
|
-
|
|
929
|
-
suiteDefinitionInformationList: undefined,
|
|
930
|
-
};
|
|
801
|
+
});
|
|
931
802
|
_a = __expectNonNull;
|
|
932
803
|
_b = __expectObject;
|
|
933
804
|
return [4, parseBody(output.body, context)];
|
|
934
805
|
case 1:
|
|
935
806
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
936
|
-
if (data.nextToken
|
|
807
|
+
if (data.nextToken != null) {
|
|
937
808
|
contents.nextToken = __expectString(data.nextToken);
|
|
938
809
|
}
|
|
939
|
-
if (data.suiteDefinitionInformationList
|
|
810
|
+
if (data.suiteDefinitionInformationList != null) {
|
|
940
811
|
contents.suiteDefinitionInformationList = deserializeAws_restJson1SuiteDefinitionInformationList(data.suiteDefinitionInformationList, context);
|
|
941
812
|
}
|
|
942
|
-
return [2,
|
|
813
|
+
return [2, contents];
|
|
943
814
|
}
|
|
944
815
|
});
|
|
945
816
|
}); };
|
|
946
817
|
var deserializeAws_restJson1ListSuiteDefinitionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
947
|
-
var parsedOutput, _a,
|
|
818
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
948
819
|
var _c;
|
|
949
820
|
return __generator(this, function (_d) {
|
|
950
821
|
switch (_d.label) {
|
|
@@ -969,14 +840,14 @@ var deserializeAws_restJson1ListSuiteDefinitionsCommandError = function (output,
|
|
|
969
840
|
case 5: throw _d.sent();
|
|
970
841
|
case 6:
|
|
971
842
|
parsedBody = parsedOutput.body;
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
$metadata: $metadata,
|
|
843
|
+
throwDefaultError({
|
|
844
|
+
output: output,
|
|
845
|
+
parsedBody: parsedBody,
|
|
846
|
+
exceptionCtor: __BaseException,
|
|
847
|
+
errorCode: errorCode,
|
|
978
848
|
});
|
|
979
|
-
|
|
849
|
+
_d.label = 7;
|
|
850
|
+
case 7: return [2];
|
|
980
851
|
}
|
|
981
852
|
});
|
|
982
853
|
}); };
|
|
@@ -988,28 +859,26 @@ export var deserializeAws_restJson1ListSuiteRunsCommand = function (output, cont
|
|
|
988
859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
989
860
|
return [2, deserializeAws_restJson1ListSuiteRunsCommandError(output, context)];
|
|
990
861
|
}
|
|
991
|
-
contents = {
|
|
862
|
+
contents = map({
|
|
992
863
|
$metadata: deserializeMetadata(output),
|
|
993
|
-
|
|
994
|
-
suiteRunsList: undefined,
|
|
995
|
-
};
|
|
864
|
+
});
|
|
996
865
|
_a = __expectNonNull;
|
|
997
866
|
_b = __expectObject;
|
|
998
867
|
return [4, parseBody(output.body, context)];
|
|
999
868
|
case 1:
|
|
1000
869
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1001
|
-
if (data.nextToken
|
|
870
|
+
if (data.nextToken != null) {
|
|
1002
871
|
contents.nextToken = __expectString(data.nextToken);
|
|
1003
872
|
}
|
|
1004
|
-
if (data.suiteRunsList
|
|
873
|
+
if (data.suiteRunsList != null) {
|
|
1005
874
|
contents.suiteRunsList = deserializeAws_restJson1SuiteRunsList(data.suiteRunsList, context);
|
|
1006
875
|
}
|
|
1007
|
-
return [2,
|
|
876
|
+
return [2, contents];
|
|
1008
877
|
}
|
|
1009
878
|
});
|
|
1010
879
|
}); };
|
|
1011
880
|
var deserializeAws_restJson1ListSuiteRunsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1012
|
-
var parsedOutput, _a,
|
|
881
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1013
882
|
var _c;
|
|
1014
883
|
return __generator(this, function (_d) {
|
|
1015
884
|
switch (_d.label) {
|
|
@@ -1034,14 +903,14 @@ var deserializeAws_restJson1ListSuiteRunsCommandError = function (output, contex
|
|
|
1034
903
|
case 5: throw _d.sent();
|
|
1035
904
|
case 6:
|
|
1036
905
|
parsedBody = parsedOutput.body;
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
$metadata: $metadata,
|
|
906
|
+
throwDefaultError({
|
|
907
|
+
output: output,
|
|
908
|
+
parsedBody: parsedBody,
|
|
909
|
+
exceptionCtor: __BaseException,
|
|
910
|
+
errorCode: errorCode,
|
|
1043
911
|
});
|
|
1044
|
-
|
|
912
|
+
_d.label = 7;
|
|
913
|
+
case 7: return [2];
|
|
1045
914
|
}
|
|
1046
915
|
});
|
|
1047
916
|
}); };
|
|
@@ -1053,24 +922,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1053
922
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1054
923
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1055
924
|
}
|
|
1056
|
-
contents = {
|
|
925
|
+
contents = map({
|
|
1057
926
|
$metadata: deserializeMetadata(output),
|
|
1058
|
-
|
|
1059
|
-
};
|
|
927
|
+
});
|
|
1060
928
|
_a = __expectNonNull;
|
|
1061
929
|
_b = __expectObject;
|
|
1062
930
|
return [4, parseBody(output.body, context)];
|
|
1063
931
|
case 1:
|
|
1064
932
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1065
|
-
if (data.tags
|
|
933
|
+
if (data.tags != null) {
|
|
1066
934
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1067
935
|
}
|
|
1068
|
-
return [2,
|
|
936
|
+
return [2, contents];
|
|
1069
937
|
}
|
|
1070
938
|
});
|
|
1071
939
|
}); };
|
|
1072
940
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1073
|
-
var parsedOutput, _a,
|
|
941
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1074
942
|
var _c;
|
|
1075
943
|
return __generator(this, function (_d) {
|
|
1076
944
|
switch (_d.label) {
|
|
@@ -1099,14 +967,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1099
967
|
case 7: throw _d.sent();
|
|
1100
968
|
case 8:
|
|
1101
969
|
parsedBody = parsedOutput.body;
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
$metadata: $metadata,
|
|
970
|
+
throwDefaultError({
|
|
971
|
+
output: output,
|
|
972
|
+
parsedBody: parsedBody,
|
|
973
|
+
exceptionCtor: __BaseException,
|
|
974
|
+
errorCode: errorCode,
|
|
1108
975
|
});
|
|
1109
|
-
|
|
976
|
+
_d.label = 9;
|
|
977
|
+
case 9: return [2];
|
|
1110
978
|
}
|
|
1111
979
|
});
|
|
1112
980
|
}); };
|
|
@@ -1118,32 +986,29 @@ export var deserializeAws_restJson1StartSuiteRunCommand = function (output, cont
|
|
|
1118
986
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1119
987
|
return [2, deserializeAws_restJson1StartSuiteRunCommandError(output, context)];
|
|
1120
988
|
}
|
|
1121
|
-
contents = {
|
|
989
|
+
contents = map({
|
|
1122
990
|
$metadata: deserializeMetadata(output),
|
|
1123
|
-
|
|
1124
|
-
suiteRunArn: undefined,
|
|
1125
|
-
suiteRunId: undefined,
|
|
1126
|
-
};
|
|
991
|
+
});
|
|
1127
992
|
_a = __expectNonNull;
|
|
1128
993
|
_b = __expectObject;
|
|
1129
994
|
return [4, parseBody(output.body, context)];
|
|
1130
995
|
case 1:
|
|
1131
996
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1132
|
-
if (data.createdAt
|
|
997
|
+
if (data.createdAt != null) {
|
|
1133
998
|
contents.createdAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.createdAt)));
|
|
1134
999
|
}
|
|
1135
|
-
if (data.suiteRunArn
|
|
1000
|
+
if (data.suiteRunArn != null) {
|
|
1136
1001
|
contents.suiteRunArn = __expectString(data.suiteRunArn);
|
|
1137
1002
|
}
|
|
1138
|
-
if (data.suiteRunId
|
|
1003
|
+
if (data.suiteRunId != null) {
|
|
1139
1004
|
contents.suiteRunId = __expectString(data.suiteRunId);
|
|
1140
1005
|
}
|
|
1141
|
-
return [2,
|
|
1006
|
+
return [2, contents];
|
|
1142
1007
|
}
|
|
1143
1008
|
});
|
|
1144
1009
|
}); };
|
|
1145
1010
|
var deserializeAws_restJson1StartSuiteRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1146
|
-
var parsedOutput, _a,
|
|
1011
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1147
1012
|
var _c;
|
|
1148
1013
|
return __generator(this, function (_d) {
|
|
1149
1014
|
switch (_d.label) {
|
|
@@ -1172,14 +1037,14 @@ var deserializeAws_restJson1StartSuiteRunCommandError = function (output, contex
|
|
|
1172
1037
|
case 7: throw _d.sent();
|
|
1173
1038
|
case 8:
|
|
1174
1039
|
parsedBody = parsedOutput.body;
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
$metadata: $metadata,
|
|
1040
|
+
throwDefaultError({
|
|
1041
|
+
output: output,
|
|
1042
|
+
parsedBody: parsedBody,
|
|
1043
|
+
exceptionCtor: __BaseException,
|
|
1044
|
+
errorCode: errorCode,
|
|
1181
1045
|
});
|
|
1182
|
-
|
|
1046
|
+
_d.label = 9;
|
|
1047
|
+
case 9: return [2];
|
|
1183
1048
|
}
|
|
1184
1049
|
});
|
|
1185
1050
|
}); };
|
|
@@ -1191,18 +1056,18 @@ export var deserializeAws_restJson1StopSuiteRunCommand = function (output, conte
|
|
|
1191
1056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1192
1057
|
return [2, deserializeAws_restJson1StopSuiteRunCommandError(output, context)];
|
|
1193
1058
|
}
|
|
1194
|
-
contents = {
|
|
1059
|
+
contents = map({
|
|
1195
1060
|
$metadata: deserializeMetadata(output),
|
|
1196
|
-
};
|
|
1061
|
+
});
|
|
1197
1062
|
return [4, collectBody(output.body, context)];
|
|
1198
1063
|
case 1:
|
|
1199
1064
|
_a.sent();
|
|
1200
|
-
return [2,
|
|
1065
|
+
return [2, contents];
|
|
1201
1066
|
}
|
|
1202
1067
|
});
|
|
1203
1068
|
}); };
|
|
1204
1069
|
var deserializeAws_restJson1StopSuiteRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1205
|
-
var parsedOutput, _a,
|
|
1070
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1206
1071
|
var _c;
|
|
1207
1072
|
return __generator(this, function (_d) {
|
|
1208
1073
|
switch (_d.label) {
|
|
@@ -1231,14 +1096,14 @@ var deserializeAws_restJson1StopSuiteRunCommandError = function (output, context
|
|
|
1231
1096
|
case 7: throw _d.sent();
|
|
1232
1097
|
case 8:
|
|
1233
1098
|
parsedBody = parsedOutput.body;
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
$metadata: $metadata,
|
|
1099
|
+
throwDefaultError({
|
|
1100
|
+
output: output,
|
|
1101
|
+
parsedBody: parsedBody,
|
|
1102
|
+
exceptionCtor: __BaseException,
|
|
1103
|
+
errorCode: errorCode,
|
|
1240
1104
|
});
|
|
1241
|
-
|
|
1105
|
+
_d.label = 9;
|
|
1106
|
+
case 9: return [2];
|
|
1242
1107
|
}
|
|
1243
1108
|
});
|
|
1244
1109
|
}); };
|
|
@@ -1250,18 +1115,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1250
1115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1251
1116
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1252
1117
|
}
|
|
1253
|
-
contents = {
|
|
1118
|
+
contents = map({
|
|
1254
1119
|
$metadata: deserializeMetadata(output),
|
|
1255
|
-
};
|
|
1120
|
+
});
|
|
1256
1121
|
return [4, collectBody(output.body, context)];
|
|
1257
1122
|
case 1:
|
|
1258
1123
|
_a.sent();
|
|
1259
|
-
return [2,
|
|
1124
|
+
return [2, contents];
|
|
1260
1125
|
}
|
|
1261
1126
|
});
|
|
1262
1127
|
}); };
|
|
1263
1128
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1264
|
-
var parsedOutput, _a,
|
|
1129
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1265
1130
|
var _c;
|
|
1266
1131
|
return __generator(this, function (_d) {
|
|
1267
1132
|
switch (_d.label) {
|
|
@@ -1290,14 +1155,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1290
1155
|
case 7: throw _d.sent();
|
|
1291
1156
|
case 8:
|
|
1292
1157
|
parsedBody = parsedOutput.body;
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
$metadata: $metadata,
|
|
1158
|
+
throwDefaultError({
|
|
1159
|
+
output: output,
|
|
1160
|
+
parsedBody: parsedBody,
|
|
1161
|
+
exceptionCtor: __BaseException,
|
|
1162
|
+
errorCode: errorCode,
|
|
1299
1163
|
});
|
|
1300
|
-
|
|
1164
|
+
_d.label = 9;
|
|
1165
|
+
case 9: return [2];
|
|
1301
1166
|
}
|
|
1302
1167
|
});
|
|
1303
1168
|
}); };
|
|
@@ -1309,18 +1174,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1309
1174
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
1175
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1311
1176
|
}
|
|
1312
|
-
contents = {
|
|
1177
|
+
contents = map({
|
|
1313
1178
|
$metadata: deserializeMetadata(output),
|
|
1314
|
-
};
|
|
1179
|
+
});
|
|
1315
1180
|
return [4, collectBody(output.body, context)];
|
|
1316
1181
|
case 1:
|
|
1317
1182
|
_a.sent();
|
|
1318
|
-
return [2,
|
|
1183
|
+
return [2, contents];
|
|
1319
1184
|
}
|
|
1320
1185
|
});
|
|
1321
1186
|
}); };
|
|
1322
1187
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1323
|
-
var parsedOutput, _a,
|
|
1188
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1324
1189
|
var _c;
|
|
1325
1190
|
return __generator(this, function (_d) {
|
|
1326
1191
|
switch (_d.label) {
|
|
@@ -1349,14 +1214,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1349
1214
|
case 7: throw _d.sent();
|
|
1350
1215
|
case 8:
|
|
1351
1216
|
parsedBody = parsedOutput.body;
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
$metadata: $metadata,
|
|
1217
|
+
throwDefaultError({
|
|
1218
|
+
output: output,
|
|
1219
|
+
parsedBody: parsedBody,
|
|
1220
|
+
exceptionCtor: __BaseException,
|
|
1221
|
+
errorCode: errorCode,
|
|
1358
1222
|
});
|
|
1359
|
-
|
|
1223
|
+
_d.label = 9;
|
|
1224
|
+
case 9: return [2];
|
|
1360
1225
|
}
|
|
1361
1226
|
});
|
|
1362
1227
|
}); };
|
|
@@ -1368,44 +1233,38 @@ export var deserializeAws_restJson1UpdateSuiteDefinitionCommand = function (outp
|
|
|
1368
1233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1369
1234
|
return [2, deserializeAws_restJson1UpdateSuiteDefinitionCommandError(output, context)];
|
|
1370
1235
|
}
|
|
1371
|
-
contents = {
|
|
1236
|
+
contents = map({
|
|
1372
1237
|
$metadata: deserializeMetadata(output),
|
|
1373
|
-
|
|
1374
|
-
lastUpdatedAt: undefined,
|
|
1375
|
-
suiteDefinitionArn: undefined,
|
|
1376
|
-
suiteDefinitionId: undefined,
|
|
1377
|
-
suiteDefinitionName: undefined,
|
|
1378
|
-
suiteDefinitionVersion: undefined,
|
|
1379
|
-
};
|
|
1238
|
+
});
|
|
1380
1239
|
_a = __expectNonNull;
|
|
1381
1240
|
_b = __expectObject;
|
|
1382
1241
|
return [4, parseBody(output.body, context)];
|
|
1383
1242
|
case 1:
|
|
1384
1243
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1385
|
-
if (data.createdAt
|
|
1244
|
+
if (data.createdAt != null) {
|
|
1386
1245
|
contents.createdAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.createdAt)));
|
|
1387
1246
|
}
|
|
1388
|
-
if (data.lastUpdatedAt
|
|
1247
|
+
if (data.lastUpdatedAt != null) {
|
|
1389
1248
|
contents.lastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdatedAt)));
|
|
1390
1249
|
}
|
|
1391
|
-
if (data.suiteDefinitionArn
|
|
1250
|
+
if (data.suiteDefinitionArn != null) {
|
|
1392
1251
|
contents.suiteDefinitionArn = __expectString(data.suiteDefinitionArn);
|
|
1393
1252
|
}
|
|
1394
|
-
if (data.suiteDefinitionId
|
|
1253
|
+
if (data.suiteDefinitionId != null) {
|
|
1395
1254
|
contents.suiteDefinitionId = __expectString(data.suiteDefinitionId);
|
|
1396
1255
|
}
|
|
1397
|
-
if (data.suiteDefinitionName
|
|
1256
|
+
if (data.suiteDefinitionName != null) {
|
|
1398
1257
|
contents.suiteDefinitionName = __expectString(data.suiteDefinitionName);
|
|
1399
1258
|
}
|
|
1400
|
-
if (data.suiteDefinitionVersion
|
|
1259
|
+
if (data.suiteDefinitionVersion != null) {
|
|
1401
1260
|
contents.suiteDefinitionVersion = __expectString(data.suiteDefinitionVersion);
|
|
1402
1261
|
}
|
|
1403
|
-
return [2,
|
|
1262
|
+
return [2, contents];
|
|
1404
1263
|
}
|
|
1405
1264
|
});
|
|
1406
1265
|
}); };
|
|
1407
1266
|
var deserializeAws_restJson1UpdateSuiteDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1408
|
-
var parsedOutput, _a,
|
|
1267
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1409
1268
|
var _c;
|
|
1410
1269
|
return __generator(this, function (_d) {
|
|
1411
1270
|
switch (_d.label) {
|
|
@@ -1430,23 +1289,24 @@ var deserializeAws_restJson1UpdateSuiteDefinitionCommandError = function (output
|
|
|
1430
1289
|
case 5: throw _d.sent();
|
|
1431
1290
|
case 6:
|
|
1432
1291
|
parsedBody = parsedOutput.body;
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
$metadata: $metadata,
|
|
1292
|
+
throwDefaultError({
|
|
1293
|
+
output: output,
|
|
1294
|
+
parsedBody: parsedBody,
|
|
1295
|
+
exceptionCtor: __BaseException,
|
|
1296
|
+
errorCode: errorCode,
|
|
1439
1297
|
});
|
|
1440
|
-
|
|
1298
|
+
_d.label = 7;
|
|
1299
|
+
case 7: return [2];
|
|
1441
1300
|
}
|
|
1442
1301
|
});
|
|
1443
1302
|
}); };
|
|
1303
|
+
var map = __map;
|
|
1444
1304
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1445
1305
|
var contents, data, exception;
|
|
1446
1306
|
return __generator(this, function (_a) {
|
|
1447
|
-
contents = {};
|
|
1307
|
+
contents = map({});
|
|
1448
1308
|
data = parsedOutput.body;
|
|
1449
|
-
if (data.message
|
|
1309
|
+
if (data.message != null) {
|
|
1450
1310
|
contents.message = __expectString(data.message);
|
|
1451
1311
|
}
|
|
1452
1312
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1456,9 +1316,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1456
1316
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1457
1317
|
var contents, data, exception;
|
|
1458
1318
|
return __generator(this, function (_a) {
|
|
1459
|
-
contents = {};
|
|
1319
|
+
contents = map({});
|
|
1460
1320
|
data = parsedOutput.body;
|
|
1461
|
-
if (data.message
|
|
1321
|
+
if (data.message != null) {
|
|
1462
1322
|
contents.message = __expectString(data.message);
|
|
1463
1323
|
}
|
|
1464
1324
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1468,9 +1328,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
1468
1328
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1469
1329
|
var contents, data, exception;
|
|
1470
1330
|
return __generator(this, function (_a) {
|
|
1471
|
-
contents = {};
|
|
1331
|
+
contents = map({});
|
|
1472
1332
|
data = parsedOutput.body;
|
|
1473
|
-
if (data.message
|
|
1333
|
+
if (data.message != null) {
|
|
1474
1334
|
contents.message = __expectString(data.message);
|
|
1475
1335
|
}
|
|
1476
1336
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1480,9 +1340,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1480
1340
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1481
1341
|
var contents, data, exception;
|
|
1482
1342
|
return __generator(this, function (_a) {
|
|
1483
|
-
contents = {};
|
|
1343
|
+
contents = map({});
|
|
1484
1344
|
data = parsedOutput.body;
|
|
1485
|
-
if (data.message
|
|
1345
|
+
if (data.message != null) {
|
|
1486
1346
|
contents.message = __expectString(data.message);
|
|
1487
1347
|
}
|
|
1488
1348
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1496,9 +1356,6 @@ var serializeAws_restJson1DeviceUnderTestList = function (input, context) {
|
|
|
1496
1356
|
return input
|
|
1497
1357
|
.filter(function (e) { return e != null; })
|
|
1498
1358
|
.map(function (entry) {
|
|
1499
|
-
if (entry === null) {
|
|
1500
|
-
return null;
|
|
1501
|
-
}
|
|
1502
1359
|
return serializeAws_restJson1DeviceUnderTest(entry, context);
|
|
1503
1360
|
});
|
|
1504
1361
|
};
|
|
@@ -1506,9 +1363,6 @@ var serializeAws_restJson1SelectedTestList = function (input, context) {
|
|
|
1506
1363
|
return input
|
|
1507
1364
|
.filter(function (e) { return e != null; })
|
|
1508
1365
|
.map(function (entry) {
|
|
1509
|
-
if (entry === null) {
|
|
1510
|
-
return null;
|
|
1511
|
-
}
|
|
1512
1366
|
return entry;
|
|
1513
1367
|
});
|
|
1514
1368
|
};
|