@aws-sdk/client-iotdeviceadvisor 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +180 -380
- package/dist-es/protocols/Aws_restJson1.js +158 -358
- package/package.json +6 -6
|
@@ -12,12 +12,10 @@ const se_CreateSuiteDefinitionCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
20
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
suiteDefinitionConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
17
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
}));
|
|
21
19
|
return new protocol_http_1.HttpRequest({
|
|
22
20
|
protocol,
|
|
23
21
|
hostname,
|
|
@@ -50,7 +48,7 @@ const se_GetEndpointCommand = async (input, context) => {
|
|
|
50
48
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
51
49
|
const headers = {};
|
|
52
50
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoint";
|
|
53
|
-
const query = map({
|
|
51
|
+
const query = (0, smithy_client_1.map)({
|
|
54
52
|
thingArn: [, input.thingArn],
|
|
55
53
|
certificateArn: [, input.certificateArn],
|
|
56
54
|
});
|
|
@@ -72,7 +70,7 @@ const se_GetSuiteDefinitionCommand = async (input, context) => {
|
|
|
72
70
|
const headers = {};
|
|
73
71
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
|
|
74
72
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
|
|
75
|
-
const query = map({
|
|
73
|
+
const query = (0, smithy_client_1.map)({
|
|
76
74
|
suiteDefinitionVersion: [, input.suiteDefinitionVersion],
|
|
77
75
|
});
|
|
78
76
|
let body;
|
|
@@ -130,7 +128,7 @@ const se_ListSuiteDefinitionsCommand = async (input, context) => {
|
|
|
130
128
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
131
129
|
const headers = {};
|
|
132
130
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
|
|
133
|
-
const query = map({
|
|
131
|
+
const query = (0, smithy_client_1.map)({
|
|
134
132
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
135
133
|
nextToken: [, input.nextToken],
|
|
136
134
|
});
|
|
@@ -151,7 +149,7 @@ const se_ListSuiteRunsCommand = async (input, context) => {
|
|
|
151
149
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
152
150
|
const headers = {};
|
|
153
151
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteRuns";
|
|
154
|
-
const query = map({
|
|
152
|
+
const query = (0, smithy_client_1.map)({
|
|
155
153
|
suiteDefinitionId: [, input.suiteDefinitionId],
|
|
156
154
|
suiteDefinitionVersion: [, input.suiteDefinitionVersion],
|
|
157
155
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -196,13 +194,11 @@ const se_StartSuiteRunCommand = async (input, context) => {
|
|
|
196
194
|
"/suiteDefinitions/{suiteDefinitionId}/suiteRuns";
|
|
197
195
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
|
|
198
196
|
let body;
|
|
199
|
-
body = JSON.stringify({
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
205
|
-
});
|
|
197
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
198
|
+
suiteDefinitionVersion: [],
|
|
199
|
+
suiteRunConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
200
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
201
|
+
}));
|
|
206
202
|
return new protocol_http_1.HttpRequest({
|
|
207
203
|
protocol,
|
|
208
204
|
hostname,
|
|
@@ -241,9 +237,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
241
237
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
242
238
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
243
239
|
let body;
|
|
244
|
-
body = JSON.stringify({
|
|
245
|
-
|
|
246
|
-
});
|
|
240
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
241
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
242
|
+
}));
|
|
247
243
|
return new protocol_http_1.HttpRequest({
|
|
248
244
|
protocol,
|
|
249
245
|
hostname,
|
|
@@ -260,7 +256,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
260
256
|
const headers = {};
|
|
261
257
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
262
258
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
263
|
-
const query = map({
|
|
259
|
+
const query = (0, smithy_client_1.map)({
|
|
264
260
|
tagKeys: [
|
|
265
261
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
266
262
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -287,11 +283,9 @@ const se_UpdateSuiteDefinitionCommand = async (input, context) => {
|
|
|
287
283
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
|
|
288
284
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
|
|
289
285
|
let body;
|
|
290
|
-
body = JSON.stringify({
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}),
|
|
294
|
-
});
|
|
286
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
287
|
+
suiteDefinitionConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
288
|
+
}));
|
|
295
289
|
return new protocol_http_1.HttpRequest({
|
|
296
290
|
protocol,
|
|
297
291
|
hostname,
|
|
@@ -307,22 +301,17 @@ const de_CreateSuiteDefinitionCommand = async (output, context) => {
|
|
|
307
301
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
308
302
|
return de_CreateSuiteDefinitionCommandError(output, context);
|
|
309
303
|
}
|
|
310
|
-
const contents = map({
|
|
304
|
+
const contents = (0, smithy_client_1.map)({
|
|
311
305
|
$metadata: deserializeMetadata(output),
|
|
312
306
|
});
|
|
313
307
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
contents.suiteDefinitionId = (0, smithy_client_1.expectString)(data.suiteDefinitionId);
|
|
322
|
-
}
|
|
323
|
-
if (data.suiteDefinitionName != null) {
|
|
324
|
-
contents.suiteDefinitionName = (0, smithy_client_1.expectString)(data.suiteDefinitionName);
|
|
325
|
-
}
|
|
308
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
309
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
310
|
+
suiteDefinitionArn: smithy_client_1.expectString,
|
|
311
|
+
suiteDefinitionId: smithy_client_1.expectString,
|
|
312
|
+
suiteDefinitionName: smithy_client_1.expectString,
|
|
313
|
+
});
|
|
314
|
+
Object.assign(contents, doc);
|
|
326
315
|
return contents;
|
|
327
316
|
};
|
|
328
317
|
exports.de_CreateSuiteDefinitionCommand = de_CreateSuiteDefinitionCommand;
|
|
@@ -341,10 +330,9 @@ const de_CreateSuiteDefinitionCommandError = async (output, context) => {
|
|
|
341
330
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
342
331
|
default:
|
|
343
332
|
const parsedBody = parsedOutput.body;
|
|
344
|
-
|
|
333
|
+
return throwDefaultError({
|
|
345
334
|
output,
|
|
346
335
|
parsedBody,
|
|
347
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
348
336
|
errorCode,
|
|
349
337
|
});
|
|
350
338
|
}
|
|
@@ -353,7 +341,7 @@ const de_DeleteSuiteDefinitionCommand = async (output, context) => {
|
|
|
353
341
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
354
342
|
return de_DeleteSuiteDefinitionCommandError(output, context);
|
|
355
343
|
}
|
|
356
|
-
const contents = map({
|
|
344
|
+
const contents = (0, smithy_client_1.map)({
|
|
357
345
|
$metadata: deserializeMetadata(output),
|
|
358
346
|
});
|
|
359
347
|
await collectBody(output.body, context);
|
|
@@ -375,10 +363,9 @@ const de_DeleteSuiteDefinitionCommandError = async (output, context) => {
|
|
|
375
363
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
376
364
|
default:
|
|
377
365
|
const parsedBody = parsedOutput.body;
|
|
378
|
-
|
|
366
|
+
return throwDefaultError({
|
|
379
367
|
output,
|
|
380
368
|
parsedBody,
|
|
381
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
382
369
|
errorCode,
|
|
383
370
|
});
|
|
384
371
|
}
|
|
@@ -387,13 +374,14 @@ const de_GetEndpointCommand = async (output, context) => {
|
|
|
387
374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
388
375
|
return de_GetEndpointCommandError(output, context);
|
|
389
376
|
}
|
|
390
|
-
const contents = map({
|
|
377
|
+
const contents = (0, smithy_client_1.map)({
|
|
391
378
|
$metadata: deserializeMetadata(output),
|
|
392
379
|
});
|
|
393
380
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
381
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
382
|
+
endpoint: smithy_client_1.expectString,
|
|
383
|
+
});
|
|
384
|
+
Object.assign(contents, doc);
|
|
397
385
|
return contents;
|
|
398
386
|
};
|
|
399
387
|
exports.de_GetEndpointCommand = de_GetEndpointCommand;
|
|
@@ -415,10 +403,9 @@ const de_GetEndpointCommandError = async (output, context) => {
|
|
|
415
403
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
416
404
|
default:
|
|
417
405
|
const parsedBody = parsedOutput.body;
|
|
418
|
-
|
|
406
|
+
return throwDefaultError({
|
|
419
407
|
output,
|
|
420
408
|
parsedBody,
|
|
421
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
422
409
|
errorCode,
|
|
423
410
|
});
|
|
424
411
|
}
|
|
@@ -427,34 +414,21 @@ const de_GetSuiteDefinitionCommand = async (output, context) => {
|
|
|
427
414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
415
|
return de_GetSuiteDefinitionCommandError(output, context);
|
|
429
416
|
}
|
|
430
|
-
const contents = map({
|
|
417
|
+
const contents = (0, smithy_client_1.map)({
|
|
431
418
|
$metadata: deserializeMetadata(output),
|
|
432
419
|
});
|
|
433
420
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
if (data.suiteDefinitionConfiguration != null) {
|
|
447
|
-
contents.suiteDefinitionConfiguration = de_SuiteDefinitionConfiguration(data.suiteDefinitionConfiguration, context);
|
|
448
|
-
}
|
|
449
|
-
if (data.suiteDefinitionId != null) {
|
|
450
|
-
contents.suiteDefinitionId = (0, smithy_client_1.expectString)(data.suiteDefinitionId);
|
|
451
|
-
}
|
|
452
|
-
if (data.suiteDefinitionVersion != null) {
|
|
453
|
-
contents.suiteDefinitionVersion = (0, smithy_client_1.expectString)(data.suiteDefinitionVersion);
|
|
454
|
-
}
|
|
455
|
-
if (data.tags != null) {
|
|
456
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
457
|
-
}
|
|
421
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
422
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
423
|
+
lastModifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
424
|
+
latestVersion: smithy_client_1.expectString,
|
|
425
|
+
suiteDefinitionArn: smithy_client_1.expectString,
|
|
426
|
+
suiteDefinitionConfiguration: smithy_client_1._json,
|
|
427
|
+
suiteDefinitionId: smithy_client_1.expectString,
|
|
428
|
+
suiteDefinitionVersion: smithy_client_1.expectString,
|
|
429
|
+
tags: smithy_client_1._json,
|
|
430
|
+
});
|
|
431
|
+
Object.assign(contents, doc);
|
|
458
432
|
return contents;
|
|
459
433
|
};
|
|
460
434
|
exports.de_GetSuiteDefinitionCommand = de_GetSuiteDefinitionCommand;
|
|
@@ -476,10 +450,9 @@ const de_GetSuiteDefinitionCommandError = async (output, context) => {
|
|
|
476
450
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
477
451
|
default:
|
|
478
452
|
const parsedBody = parsedOutput.body;
|
|
479
|
-
|
|
453
|
+
return throwDefaultError({
|
|
480
454
|
output,
|
|
481
455
|
parsedBody,
|
|
482
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
483
456
|
errorCode,
|
|
484
457
|
});
|
|
485
458
|
}
|
|
@@ -488,43 +461,24 @@ const de_GetSuiteRunCommand = async (output, context) => {
|
|
|
488
461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
489
462
|
return de_GetSuiteRunCommandError(output, context);
|
|
490
463
|
}
|
|
491
|
-
const contents = map({
|
|
464
|
+
const contents = (0, smithy_client_1.map)({
|
|
492
465
|
$metadata: deserializeMetadata(output),
|
|
493
466
|
});
|
|
494
467
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}
|
|
510
|
-
if (data.suiteDefinitionVersion != null) {
|
|
511
|
-
contents.suiteDefinitionVersion = (0, smithy_client_1.expectString)(data.suiteDefinitionVersion);
|
|
512
|
-
}
|
|
513
|
-
if (data.suiteRunArn != null) {
|
|
514
|
-
contents.suiteRunArn = (0, smithy_client_1.expectString)(data.suiteRunArn);
|
|
515
|
-
}
|
|
516
|
-
if (data.suiteRunConfiguration != null) {
|
|
517
|
-
contents.suiteRunConfiguration = de_SuiteRunConfiguration(data.suiteRunConfiguration, context);
|
|
518
|
-
}
|
|
519
|
-
if (data.suiteRunId != null) {
|
|
520
|
-
contents.suiteRunId = (0, smithy_client_1.expectString)(data.suiteRunId);
|
|
521
|
-
}
|
|
522
|
-
if (data.tags != null) {
|
|
523
|
-
contents.tags = de_TagMap(data.tags, context);
|
|
524
|
-
}
|
|
525
|
-
if (data.testResult != null) {
|
|
526
|
-
contents.testResult = de_TestResult(data.testResult, context);
|
|
527
|
-
}
|
|
468
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
469
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
470
|
+
errorReason: smithy_client_1.expectString,
|
|
471
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
472
|
+
status: smithy_client_1.expectString,
|
|
473
|
+
suiteDefinitionId: smithy_client_1.expectString,
|
|
474
|
+
suiteDefinitionVersion: smithy_client_1.expectString,
|
|
475
|
+
suiteRunArn: smithy_client_1.expectString,
|
|
476
|
+
suiteRunConfiguration: smithy_client_1._json,
|
|
477
|
+
suiteRunId: smithy_client_1.expectString,
|
|
478
|
+
tags: smithy_client_1._json,
|
|
479
|
+
testResult: (_) => de_TestResult(_, context),
|
|
480
|
+
});
|
|
481
|
+
Object.assign(contents, doc);
|
|
528
482
|
return contents;
|
|
529
483
|
};
|
|
530
484
|
exports.de_GetSuiteRunCommand = de_GetSuiteRunCommand;
|
|
@@ -546,10 +500,9 @@ const de_GetSuiteRunCommandError = async (output, context) => {
|
|
|
546
500
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
547
501
|
default:
|
|
548
502
|
const parsedBody = parsedOutput.body;
|
|
549
|
-
|
|
503
|
+
return throwDefaultError({
|
|
550
504
|
output,
|
|
551
505
|
parsedBody,
|
|
552
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
553
506
|
errorCode,
|
|
554
507
|
});
|
|
555
508
|
}
|
|
@@ -558,13 +511,14 @@ const de_GetSuiteRunReportCommand = async (output, context) => {
|
|
|
558
511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
512
|
return de_GetSuiteRunReportCommandError(output, context);
|
|
560
513
|
}
|
|
561
|
-
const contents = map({
|
|
514
|
+
const contents = (0, smithy_client_1.map)({
|
|
562
515
|
$metadata: deserializeMetadata(output),
|
|
563
516
|
});
|
|
564
517
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
518
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
519
|
+
qualificationReportDownloadUrl: smithy_client_1.expectString,
|
|
520
|
+
});
|
|
521
|
+
Object.assign(contents, doc);
|
|
568
522
|
return contents;
|
|
569
523
|
};
|
|
570
524
|
exports.de_GetSuiteRunReportCommand = de_GetSuiteRunReportCommand;
|
|
@@ -586,10 +540,9 @@ const de_GetSuiteRunReportCommandError = async (output, context) => {
|
|
|
586
540
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
587
541
|
default:
|
|
588
542
|
const parsedBody = parsedOutput.body;
|
|
589
|
-
|
|
543
|
+
return throwDefaultError({
|
|
590
544
|
output,
|
|
591
545
|
parsedBody,
|
|
592
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
593
546
|
errorCode,
|
|
594
547
|
});
|
|
595
548
|
}
|
|
@@ -598,16 +551,15 @@ const de_ListSuiteDefinitionsCommand = async (output, context) => {
|
|
|
598
551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
599
552
|
return de_ListSuiteDefinitionsCommandError(output, context);
|
|
600
553
|
}
|
|
601
|
-
const contents = map({
|
|
554
|
+
const contents = (0, smithy_client_1.map)({
|
|
602
555
|
$metadata: deserializeMetadata(output),
|
|
603
556
|
});
|
|
604
557
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}
|
|
558
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
559
|
+
nextToken: smithy_client_1.expectString,
|
|
560
|
+
suiteDefinitionInformationList: (_) => de_SuiteDefinitionInformationList(_, context),
|
|
561
|
+
});
|
|
562
|
+
Object.assign(contents, doc);
|
|
611
563
|
return contents;
|
|
612
564
|
};
|
|
613
565
|
exports.de_ListSuiteDefinitionsCommand = de_ListSuiteDefinitionsCommand;
|
|
@@ -626,10 +578,9 @@ const de_ListSuiteDefinitionsCommandError = async (output, context) => {
|
|
|
626
578
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
627
579
|
default:
|
|
628
580
|
const parsedBody = parsedOutput.body;
|
|
629
|
-
|
|
581
|
+
return throwDefaultError({
|
|
630
582
|
output,
|
|
631
583
|
parsedBody,
|
|
632
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
633
584
|
errorCode,
|
|
634
585
|
});
|
|
635
586
|
}
|
|
@@ -638,16 +589,15 @@ const de_ListSuiteRunsCommand = async (output, context) => {
|
|
|
638
589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
590
|
return de_ListSuiteRunsCommandError(output, context);
|
|
640
591
|
}
|
|
641
|
-
const contents = map({
|
|
592
|
+
const contents = (0, smithy_client_1.map)({
|
|
642
593
|
$metadata: deserializeMetadata(output),
|
|
643
594
|
});
|
|
644
595
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
}
|
|
596
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
597
|
+
nextToken: smithy_client_1.expectString,
|
|
598
|
+
suiteRunsList: (_) => de_SuiteRunsList(_, context),
|
|
599
|
+
});
|
|
600
|
+
Object.assign(contents, doc);
|
|
651
601
|
return contents;
|
|
652
602
|
};
|
|
653
603
|
exports.de_ListSuiteRunsCommand = de_ListSuiteRunsCommand;
|
|
@@ -666,10 +616,9 @@ const de_ListSuiteRunsCommandError = async (output, context) => {
|
|
|
666
616
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
667
617
|
default:
|
|
668
618
|
const parsedBody = parsedOutput.body;
|
|
669
|
-
|
|
619
|
+
return throwDefaultError({
|
|
670
620
|
output,
|
|
671
621
|
parsedBody,
|
|
672
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
673
622
|
errorCode,
|
|
674
623
|
});
|
|
675
624
|
}
|
|
@@ -678,13 +627,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
678
627
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
679
628
|
return de_ListTagsForResourceCommandError(output, context);
|
|
680
629
|
}
|
|
681
|
-
const contents = map({
|
|
630
|
+
const contents = (0, smithy_client_1.map)({
|
|
682
631
|
$metadata: deserializeMetadata(output),
|
|
683
632
|
});
|
|
684
633
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}
|
|
634
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
635
|
+
tags: smithy_client_1._json,
|
|
636
|
+
});
|
|
637
|
+
Object.assign(contents, doc);
|
|
688
638
|
return contents;
|
|
689
639
|
};
|
|
690
640
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -706,10 +656,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
706
656
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
707
657
|
default:
|
|
708
658
|
const parsedBody = parsedOutput.body;
|
|
709
|
-
|
|
659
|
+
return throwDefaultError({
|
|
710
660
|
output,
|
|
711
661
|
parsedBody,
|
|
712
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
713
662
|
errorCode,
|
|
714
663
|
});
|
|
715
664
|
}
|
|
@@ -718,22 +667,17 @@ const de_StartSuiteRunCommand = async (output, context) => {
|
|
|
718
667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
668
|
return de_StartSuiteRunCommandError(output, context);
|
|
720
669
|
}
|
|
721
|
-
const contents = map({
|
|
670
|
+
const contents = (0, smithy_client_1.map)({
|
|
722
671
|
$metadata: deserializeMetadata(output),
|
|
723
672
|
});
|
|
724
673
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
contents.suiteRunArn = (0, smithy_client_1.expectString)(data.suiteRunArn);
|
|
733
|
-
}
|
|
734
|
-
if (data.suiteRunId != null) {
|
|
735
|
-
contents.suiteRunId = (0, smithy_client_1.expectString)(data.suiteRunId);
|
|
736
|
-
}
|
|
674
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
675
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
676
|
+
endpoint: smithy_client_1.expectString,
|
|
677
|
+
suiteRunArn: smithy_client_1.expectString,
|
|
678
|
+
suiteRunId: smithy_client_1.expectString,
|
|
679
|
+
});
|
|
680
|
+
Object.assign(contents, doc);
|
|
737
681
|
return contents;
|
|
738
682
|
};
|
|
739
683
|
exports.de_StartSuiteRunCommand = de_StartSuiteRunCommand;
|
|
@@ -755,10 +699,9 @@ const de_StartSuiteRunCommandError = async (output, context) => {
|
|
|
755
699
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
756
700
|
default:
|
|
757
701
|
const parsedBody = parsedOutput.body;
|
|
758
|
-
|
|
702
|
+
return throwDefaultError({
|
|
759
703
|
output,
|
|
760
704
|
parsedBody,
|
|
761
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
762
705
|
errorCode,
|
|
763
706
|
});
|
|
764
707
|
}
|
|
@@ -767,7 +710,7 @@ const de_StopSuiteRunCommand = async (output, context) => {
|
|
|
767
710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
768
711
|
return de_StopSuiteRunCommandError(output, context);
|
|
769
712
|
}
|
|
770
|
-
const contents = map({
|
|
713
|
+
const contents = (0, smithy_client_1.map)({
|
|
771
714
|
$metadata: deserializeMetadata(output),
|
|
772
715
|
});
|
|
773
716
|
await collectBody(output.body, context);
|
|
@@ -792,10 +735,9 @@ const de_StopSuiteRunCommandError = async (output, context) => {
|
|
|
792
735
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
793
736
|
default:
|
|
794
737
|
const parsedBody = parsedOutput.body;
|
|
795
|
-
|
|
738
|
+
return throwDefaultError({
|
|
796
739
|
output,
|
|
797
740
|
parsedBody,
|
|
798
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
799
741
|
errorCode,
|
|
800
742
|
});
|
|
801
743
|
}
|
|
@@ -804,7 +746,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
804
746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
747
|
return de_TagResourceCommandError(output, context);
|
|
806
748
|
}
|
|
807
|
-
const contents = map({
|
|
749
|
+
const contents = (0, smithy_client_1.map)({
|
|
808
750
|
$metadata: deserializeMetadata(output),
|
|
809
751
|
});
|
|
810
752
|
await collectBody(output.body, context);
|
|
@@ -829,10 +771,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
829
771
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
830
772
|
default:
|
|
831
773
|
const parsedBody = parsedOutput.body;
|
|
832
|
-
|
|
774
|
+
return throwDefaultError({
|
|
833
775
|
output,
|
|
834
776
|
parsedBody,
|
|
835
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
836
777
|
errorCode,
|
|
837
778
|
});
|
|
838
779
|
}
|
|
@@ -841,7 +782,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
841
782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
783
|
return de_UntagResourceCommandError(output, context);
|
|
843
784
|
}
|
|
844
|
-
const contents = map({
|
|
785
|
+
const contents = (0, smithy_client_1.map)({
|
|
845
786
|
$metadata: deserializeMetadata(output),
|
|
846
787
|
});
|
|
847
788
|
await collectBody(output.body, context);
|
|
@@ -866,10 +807,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
866
807
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
867
808
|
default:
|
|
868
809
|
const parsedBody = parsedOutput.body;
|
|
869
|
-
|
|
810
|
+
return throwDefaultError({
|
|
870
811
|
output,
|
|
871
812
|
parsedBody,
|
|
872
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
873
813
|
errorCode,
|
|
874
814
|
});
|
|
875
815
|
}
|
|
@@ -878,28 +818,19 @@ const de_UpdateSuiteDefinitionCommand = async (output, context) => {
|
|
|
878
818
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
879
819
|
return de_UpdateSuiteDefinitionCommandError(output, context);
|
|
880
820
|
}
|
|
881
|
-
const contents = map({
|
|
821
|
+
const contents = (0, smithy_client_1.map)({
|
|
882
822
|
$metadata: deserializeMetadata(output),
|
|
883
823
|
});
|
|
884
824
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
if (data.suiteDefinitionId != null) {
|
|
895
|
-
contents.suiteDefinitionId = (0, smithy_client_1.expectString)(data.suiteDefinitionId);
|
|
896
|
-
}
|
|
897
|
-
if (data.suiteDefinitionName != null) {
|
|
898
|
-
contents.suiteDefinitionName = (0, smithy_client_1.expectString)(data.suiteDefinitionName);
|
|
899
|
-
}
|
|
900
|
-
if (data.suiteDefinitionVersion != null) {
|
|
901
|
-
contents.suiteDefinitionVersion = (0, smithy_client_1.expectString)(data.suiteDefinitionVersion);
|
|
902
|
-
}
|
|
825
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
826
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
827
|
+
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
828
|
+
suiteDefinitionArn: smithy_client_1.expectString,
|
|
829
|
+
suiteDefinitionId: smithy_client_1.expectString,
|
|
830
|
+
suiteDefinitionName: smithy_client_1.expectString,
|
|
831
|
+
suiteDefinitionVersion: smithy_client_1.expectString,
|
|
832
|
+
});
|
|
833
|
+
Object.assign(contents, doc);
|
|
903
834
|
return contents;
|
|
904
835
|
};
|
|
905
836
|
exports.de_UpdateSuiteDefinitionCommand = de_UpdateSuiteDefinitionCommand;
|
|
@@ -918,21 +849,21 @@ const de_UpdateSuiteDefinitionCommandError = async (output, context) => {
|
|
|
918
849
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
919
850
|
default:
|
|
920
851
|
const parsedBody = parsedOutput.body;
|
|
921
|
-
|
|
852
|
+
return throwDefaultError({
|
|
922
853
|
output,
|
|
923
854
|
parsedBody,
|
|
924
|
-
exceptionCtor: IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException,
|
|
925
855
|
errorCode,
|
|
926
856
|
});
|
|
927
857
|
}
|
|
928
858
|
};
|
|
929
|
-
const
|
|
859
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException);
|
|
930
860
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
931
|
-
const contents = map({});
|
|
861
|
+
const contents = (0, smithy_client_1.map)({});
|
|
932
862
|
const data = parsedOutput.body;
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
}
|
|
863
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
864
|
+
message: smithy_client_1.expectString,
|
|
865
|
+
});
|
|
866
|
+
Object.assign(contents, doc);
|
|
936
867
|
const exception = new models_0_1.ConflictException({
|
|
937
868
|
$metadata: deserializeMetadata(parsedOutput),
|
|
938
869
|
...contents,
|
|
@@ -940,11 +871,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
940
871
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
941
872
|
};
|
|
942
873
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
943
|
-
const contents = map({});
|
|
874
|
+
const contents = (0, smithy_client_1.map)({});
|
|
944
875
|
const data = parsedOutput.body;
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
}
|
|
876
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
877
|
+
message: smithy_client_1.expectString,
|
|
878
|
+
});
|
|
879
|
+
Object.assign(contents, doc);
|
|
948
880
|
const exception = new models_0_1.InternalServerException({
|
|
949
881
|
$metadata: deserializeMetadata(parsedOutput),
|
|
950
882
|
...contents,
|
|
@@ -952,11 +884,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
952
884
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
953
885
|
};
|
|
954
886
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
955
|
-
const contents = map({});
|
|
887
|
+
const contents = (0, smithy_client_1.map)({});
|
|
956
888
|
const data = parsedOutput.body;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
}
|
|
889
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
890
|
+
message: smithy_client_1.expectString,
|
|
891
|
+
});
|
|
892
|
+
Object.assign(contents, doc);
|
|
960
893
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
961
894
|
$metadata: deserializeMetadata(parsedOutput),
|
|
962
895
|
...contents,
|
|
@@ -964,233 +897,100 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
964
897
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
965
898
|
};
|
|
966
899
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
967
|
-
const contents = map({});
|
|
900
|
+
const contents = (0, smithy_client_1.map)({});
|
|
968
901
|
const data = parsedOutput.body;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
}
|
|
902
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
903
|
+
message: smithy_client_1.expectString,
|
|
904
|
+
});
|
|
905
|
+
Object.assign(contents, doc);
|
|
972
906
|
const exception = new models_0_1.ValidationException({
|
|
973
907
|
$metadata: deserializeMetadata(parsedOutput),
|
|
974
908
|
...contents,
|
|
975
909
|
});
|
|
976
910
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
977
911
|
};
|
|
978
|
-
const se_DeviceUnderTest = (input, context) => {
|
|
979
|
-
return {
|
|
980
|
-
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
981
|
-
...(input.thingArn != null && { thingArn: input.thingArn }),
|
|
982
|
-
};
|
|
983
|
-
};
|
|
984
|
-
const se_DeviceUnderTestList = (input, context) => {
|
|
985
|
-
return input
|
|
986
|
-
.filter((e) => e != null)
|
|
987
|
-
.map((entry) => {
|
|
988
|
-
return se_DeviceUnderTest(entry, context);
|
|
989
|
-
});
|
|
990
|
-
};
|
|
991
|
-
const se_SelectedTestList = (input, context) => {
|
|
992
|
-
return input
|
|
993
|
-
.filter((e) => e != null)
|
|
994
|
-
.map((entry) => {
|
|
995
|
-
return entry;
|
|
996
|
-
});
|
|
997
|
-
};
|
|
998
|
-
const se_SuiteDefinitionConfiguration = (input, context) => {
|
|
999
|
-
return {
|
|
1000
|
-
...(input.devicePermissionRoleArn != null && { devicePermissionRoleArn: input.devicePermissionRoleArn }),
|
|
1001
|
-
...(input.devices != null && { devices: se_DeviceUnderTestList(input.devices, context) }),
|
|
1002
|
-
...(input.intendedForQualification != null && { intendedForQualification: input.intendedForQualification }),
|
|
1003
|
-
...(input.isLongDurationTest != null && { isLongDurationTest: input.isLongDurationTest }),
|
|
1004
|
-
...(input.protocol != null && { protocol: input.protocol }),
|
|
1005
|
-
...(input.rootGroup != null && { rootGroup: input.rootGroup }),
|
|
1006
|
-
...(input.suiteDefinitionName != null && { suiteDefinitionName: input.suiteDefinitionName }),
|
|
1007
|
-
};
|
|
1008
|
-
};
|
|
1009
|
-
const se_SuiteRunConfiguration = (input, context) => {
|
|
1010
|
-
return {
|
|
1011
|
-
...(input.parallelRun != null && { parallelRun: input.parallelRun }),
|
|
1012
|
-
...(input.primaryDevice != null && { primaryDevice: se_DeviceUnderTest(input.primaryDevice, context) }),
|
|
1013
|
-
...(input.selectedTestList != null && { selectedTestList: se_SelectedTestList(input.selectedTestList, context) }),
|
|
1014
|
-
};
|
|
1015
|
-
};
|
|
1016
|
-
const se_TagMap = (input, context) => {
|
|
1017
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1018
|
-
if (value === null) {
|
|
1019
|
-
return acc;
|
|
1020
|
-
}
|
|
1021
|
-
acc[key] = value;
|
|
1022
|
-
return acc;
|
|
1023
|
-
}, {});
|
|
1024
|
-
};
|
|
1025
|
-
const de_DeviceUnderTest = (output, context) => {
|
|
1026
|
-
return {
|
|
1027
|
-
certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
|
|
1028
|
-
thingArn: (0, smithy_client_1.expectString)(output.thingArn),
|
|
1029
|
-
};
|
|
1030
|
-
};
|
|
1031
|
-
const de_DeviceUnderTestList = (output, context) => {
|
|
1032
|
-
const retVal = (output || [])
|
|
1033
|
-
.filter((e) => e != null)
|
|
1034
|
-
.map((entry) => {
|
|
1035
|
-
if (entry === null) {
|
|
1036
|
-
return null;
|
|
1037
|
-
}
|
|
1038
|
-
return de_DeviceUnderTest(entry, context);
|
|
1039
|
-
});
|
|
1040
|
-
return retVal;
|
|
1041
|
-
};
|
|
1042
912
|
const de_GroupResult = (output, context) => {
|
|
1043
|
-
return {
|
|
1044
|
-
groupId:
|
|
1045
|
-
groupName:
|
|
1046
|
-
tests:
|
|
1047
|
-
};
|
|
913
|
+
return (0, smithy_client_1.take)(output, {
|
|
914
|
+
groupId: smithy_client_1.expectString,
|
|
915
|
+
groupName: smithy_client_1.expectString,
|
|
916
|
+
tests: (_) => de_TestCaseRuns(_, context),
|
|
917
|
+
});
|
|
1048
918
|
};
|
|
1049
919
|
const de_GroupResultList = (output, context) => {
|
|
1050
920
|
const retVal = (output || [])
|
|
1051
921
|
.filter((e) => e != null)
|
|
1052
922
|
.map((entry) => {
|
|
1053
|
-
if (entry === null) {
|
|
1054
|
-
return null;
|
|
1055
|
-
}
|
|
1056
923
|
return de_GroupResult(entry, context);
|
|
1057
924
|
});
|
|
1058
925
|
return retVal;
|
|
1059
926
|
};
|
|
1060
|
-
const de_SelectedTestList = (output, context) => {
|
|
1061
|
-
const retVal = (output || [])
|
|
1062
|
-
.filter((e) => e != null)
|
|
1063
|
-
.map((entry) => {
|
|
1064
|
-
if (entry === null) {
|
|
1065
|
-
return null;
|
|
1066
|
-
}
|
|
1067
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1068
|
-
});
|
|
1069
|
-
return retVal;
|
|
1070
|
-
};
|
|
1071
|
-
const de_SuiteDefinitionConfiguration = (output, context) => {
|
|
1072
|
-
return {
|
|
1073
|
-
devicePermissionRoleArn: (0, smithy_client_1.expectString)(output.devicePermissionRoleArn),
|
|
1074
|
-
devices: output.devices != null ? de_DeviceUnderTestList(output.devices, context) : undefined,
|
|
1075
|
-
intendedForQualification: (0, smithy_client_1.expectBoolean)(output.intendedForQualification),
|
|
1076
|
-
isLongDurationTest: (0, smithy_client_1.expectBoolean)(output.isLongDurationTest),
|
|
1077
|
-
protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
1078
|
-
rootGroup: (0, smithy_client_1.expectString)(output.rootGroup),
|
|
1079
|
-
suiteDefinitionName: (0, smithy_client_1.expectString)(output.suiteDefinitionName),
|
|
1080
|
-
};
|
|
1081
|
-
};
|
|
1082
927
|
const de_SuiteDefinitionInformation = (output, context) => {
|
|
1083
|
-
return {
|
|
1084
|
-
createdAt:
|
|
1085
|
-
defaultDevices:
|
|
1086
|
-
intendedForQualification:
|
|
1087
|
-
isLongDurationTest:
|
|
1088
|
-
protocol:
|
|
1089
|
-
suiteDefinitionId:
|
|
1090
|
-
suiteDefinitionName:
|
|
1091
|
-
};
|
|
928
|
+
return (0, smithy_client_1.take)(output, {
|
|
929
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
930
|
+
defaultDevices: smithy_client_1._json,
|
|
931
|
+
intendedForQualification: smithy_client_1.expectBoolean,
|
|
932
|
+
isLongDurationTest: smithy_client_1.expectBoolean,
|
|
933
|
+
protocol: smithy_client_1.expectString,
|
|
934
|
+
suiteDefinitionId: smithy_client_1.expectString,
|
|
935
|
+
suiteDefinitionName: smithy_client_1.expectString,
|
|
936
|
+
});
|
|
1092
937
|
};
|
|
1093
938
|
const de_SuiteDefinitionInformationList = (output, context) => {
|
|
1094
939
|
const retVal = (output || [])
|
|
1095
940
|
.filter((e) => e != null)
|
|
1096
941
|
.map((entry) => {
|
|
1097
|
-
if (entry === null) {
|
|
1098
|
-
return null;
|
|
1099
|
-
}
|
|
1100
942
|
return de_SuiteDefinitionInformation(entry, context);
|
|
1101
943
|
});
|
|
1102
944
|
return retVal;
|
|
1103
945
|
};
|
|
1104
|
-
const de_SuiteRunConfiguration = (output, context) => {
|
|
1105
|
-
return {
|
|
1106
|
-
parallelRun: (0, smithy_client_1.expectBoolean)(output.parallelRun),
|
|
1107
|
-
primaryDevice: output.primaryDevice != null ? de_DeviceUnderTest(output.primaryDevice, context) : undefined,
|
|
1108
|
-
selectedTestList: output.selectedTestList != null ? de_SelectedTestList(output.selectedTestList, context) : undefined,
|
|
1109
|
-
};
|
|
1110
|
-
};
|
|
1111
946
|
const de_SuiteRunInformation = (output, context) => {
|
|
1112
|
-
return {
|
|
1113
|
-
createdAt:
|
|
1114
|
-
endAt:
|
|
1115
|
-
failed:
|
|
1116
|
-
passed:
|
|
1117
|
-
startedAt:
|
|
1118
|
-
status:
|
|
1119
|
-
suiteDefinitionId:
|
|
1120
|
-
suiteDefinitionName:
|
|
1121
|
-
suiteDefinitionVersion:
|
|
1122
|
-
suiteRunId:
|
|
1123
|
-
};
|
|
947
|
+
return (0, smithy_client_1.take)(output, {
|
|
948
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
949
|
+
endAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
950
|
+
failed: smithy_client_1.expectInt32,
|
|
951
|
+
passed: smithy_client_1.expectInt32,
|
|
952
|
+
startedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
953
|
+
status: smithy_client_1.expectString,
|
|
954
|
+
suiteDefinitionId: smithy_client_1.expectString,
|
|
955
|
+
suiteDefinitionName: smithy_client_1.expectString,
|
|
956
|
+
suiteDefinitionVersion: smithy_client_1.expectString,
|
|
957
|
+
suiteRunId: smithy_client_1.expectString,
|
|
958
|
+
});
|
|
1124
959
|
};
|
|
1125
960
|
const de_SuiteRunsList = (output, context) => {
|
|
1126
961
|
const retVal = (output || [])
|
|
1127
962
|
.filter((e) => e != null)
|
|
1128
963
|
.map((entry) => {
|
|
1129
|
-
if (entry === null) {
|
|
1130
|
-
return null;
|
|
1131
|
-
}
|
|
1132
964
|
return de_SuiteRunInformation(entry, context);
|
|
1133
965
|
});
|
|
1134
966
|
return retVal;
|
|
1135
967
|
};
|
|
1136
|
-
const de_TagMap = (output, context) => {
|
|
1137
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1138
|
-
if (value === null) {
|
|
1139
|
-
return acc;
|
|
1140
|
-
}
|
|
1141
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1142
|
-
return acc;
|
|
1143
|
-
}, {});
|
|
1144
|
-
};
|
|
1145
968
|
const de_TestCaseRun = (output, context) => {
|
|
1146
|
-
return {
|
|
1147
|
-
endTime:
|
|
1148
|
-
failure:
|
|
1149
|
-
logUrl:
|
|
1150
|
-
startTime:
|
|
1151
|
-
status:
|
|
1152
|
-
testCaseDefinitionId:
|
|
1153
|
-
testCaseDefinitionName:
|
|
1154
|
-
testCaseRunId:
|
|
1155
|
-
testScenarios:
|
|
1156
|
-
warnings:
|
|
1157
|
-
};
|
|
969
|
+
return (0, smithy_client_1.take)(output, {
|
|
970
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
971
|
+
failure: smithy_client_1.expectString,
|
|
972
|
+
logUrl: smithy_client_1.expectString,
|
|
973
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
974
|
+
status: smithy_client_1.expectString,
|
|
975
|
+
testCaseDefinitionId: smithy_client_1.expectString,
|
|
976
|
+
testCaseDefinitionName: smithy_client_1.expectString,
|
|
977
|
+
testCaseRunId: smithy_client_1.expectString,
|
|
978
|
+
testScenarios: smithy_client_1._json,
|
|
979
|
+
warnings: smithy_client_1.expectString,
|
|
980
|
+
});
|
|
1158
981
|
};
|
|
1159
982
|
const de_TestCaseRuns = (output, context) => {
|
|
1160
983
|
const retVal = (output || [])
|
|
1161
984
|
.filter((e) => e != null)
|
|
1162
985
|
.map((entry) => {
|
|
1163
|
-
if (entry === null) {
|
|
1164
|
-
return null;
|
|
1165
|
-
}
|
|
1166
986
|
return de_TestCaseRun(entry, context);
|
|
1167
987
|
});
|
|
1168
988
|
return retVal;
|
|
1169
989
|
};
|
|
1170
|
-
const de_TestCaseScenario = (output, context) => {
|
|
1171
|
-
return {
|
|
1172
|
-
failure: (0, smithy_client_1.expectString)(output.failure),
|
|
1173
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1174
|
-
systemMessage: (0, smithy_client_1.expectString)(output.systemMessage),
|
|
1175
|
-
testCaseScenarioId: (0, smithy_client_1.expectString)(output.testCaseScenarioId),
|
|
1176
|
-
testCaseScenarioType: (0, smithy_client_1.expectString)(output.testCaseScenarioType),
|
|
1177
|
-
};
|
|
1178
|
-
};
|
|
1179
|
-
const de_TestCaseScenariosList = (output, context) => {
|
|
1180
|
-
const retVal = (output || [])
|
|
1181
|
-
.filter((e) => e != null)
|
|
1182
|
-
.map((entry) => {
|
|
1183
|
-
if (entry === null) {
|
|
1184
|
-
return null;
|
|
1185
|
-
}
|
|
1186
|
-
return de_TestCaseScenario(entry, context);
|
|
1187
|
-
});
|
|
1188
|
-
return retVal;
|
|
1189
|
-
};
|
|
1190
990
|
const de_TestResult = (output, context) => {
|
|
1191
|
-
return {
|
|
1192
|
-
groups:
|
|
1193
|
-
};
|
|
991
|
+
return (0, smithy_client_1.take)(output, {
|
|
992
|
+
groups: (_) => de_GroupResultList(_, context),
|
|
993
|
+
});
|
|
1194
994
|
};
|
|
1195
995
|
const deserializeMetadata = (output) => ({
|
|
1196
996
|
httpStatusCode: output.statusCode,
|