@aws-sdk/client-iotdeviceadvisor 3.120.0 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +99 -117
- package/dist-es/protocols/Aws_restJson1.js +92 -110
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-iotdeviceadvisor
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-iotdeviceadvisor
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.120.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.119.0...v3.120.0) (2022-06-29)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -13,11 +13,10 @@ const serializeAws_restJson1CreateSuiteDefinitionCommand = async (input, context
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.suiteDefinitionConfiguration
|
|
17
|
-
input.suiteDefinitionConfiguration !== null && {
|
|
16
|
+
...(input.suiteDefinitionConfiguration != null && {
|
|
18
17
|
suiteDefinitionConfiguration: serializeAws_restJson1SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
|
|
19
18
|
}),
|
|
20
|
-
...(input.tags
|
|
19
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
21
20
|
});
|
|
22
21
|
return new protocol_http_1.HttpRequest({
|
|
23
22
|
protocol,
|
|
@@ -270,13 +269,11 @@ const serializeAws_restJson1StartSuiteRunCommand = async (input, context) => {
|
|
|
270
269
|
}
|
|
271
270
|
let body;
|
|
272
271
|
body = JSON.stringify({
|
|
273
|
-
...(input.suiteDefinitionVersion
|
|
274
|
-
|
|
275
|
-
...(input.suiteRunConfiguration !== undefined &&
|
|
276
|
-
input.suiteRunConfiguration !== null && {
|
|
272
|
+
...(input.suiteDefinitionVersion != null && { suiteDefinitionVersion: input.suiteDefinitionVersion }),
|
|
273
|
+
...(input.suiteRunConfiguration != null && {
|
|
277
274
|
suiteRunConfiguration: serializeAws_restJson1SuiteRunConfiguration(input.suiteRunConfiguration, context),
|
|
278
275
|
}),
|
|
279
|
-
...(input.tags
|
|
276
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
280
277
|
});
|
|
281
278
|
return new protocol_http_1.HttpRequest({
|
|
282
279
|
protocol,
|
|
@@ -344,7 +341,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
344
341
|
}
|
|
345
342
|
let body;
|
|
346
343
|
body = JSON.stringify({
|
|
347
|
-
...(input.tags
|
|
344
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
348
345
|
});
|
|
349
346
|
return new protocol_http_1.HttpRequest({
|
|
350
347
|
protocol,
|
|
@@ -405,8 +402,7 @@ const serializeAws_restJson1UpdateSuiteDefinitionCommand = async (input, context
|
|
|
405
402
|
}
|
|
406
403
|
let body;
|
|
407
404
|
body = JSON.stringify({
|
|
408
|
-
...(input.suiteDefinitionConfiguration
|
|
409
|
-
input.suiteDefinitionConfiguration !== null && {
|
|
405
|
+
...(input.suiteDefinitionConfiguration != null && {
|
|
410
406
|
suiteDefinitionConfiguration: serializeAws_restJson1SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
|
|
411
407
|
}),
|
|
412
408
|
});
|
|
@@ -454,8 +450,7 @@ const deserializeAws_restJson1CreateSuiteDefinitionCommandError = async (output,
|
|
|
454
450
|
body: await parseBody(output.body, context),
|
|
455
451
|
};
|
|
456
452
|
let response;
|
|
457
|
-
|
|
458
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
453
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
459
454
|
switch (errorCode) {
|
|
460
455
|
case "InternalServerException":
|
|
461
456
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -465,10 +460,12 @@ const deserializeAws_restJson1CreateSuiteDefinitionCommandError = async (output,
|
|
|
465
460
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
466
461
|
default:
|
|
467
462
|
const parsedBody = parsedOutput.body;
|
|
463
|
+
const $metadata = deserializeMetadata(output);
|
|
464
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
468
465
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
469
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
466
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
470
467
|
$fault: "client",
|
|
471
|
-
$metadata
|
|
468
|
+
$metadata,
|
|
472
469
|
});
|
|
473
470
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
474
471
|
}
|
|
@@ -490,8 +487,7 @@ const deserializeAws_restJson1DeleteSuiteDefinitionCommandError = async (output,
|
|
|
490
487
|
body: await parseBody(output.body, context),
|
|
491
488
|
};
|
|
492
489
|
let response;
|
|
493
|
-
|
|
494
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
495
491
|
switch (errorCode) {
|
|
496
492
|
case "InternalServerException":
|
|
497
493
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -501,10 +497,12 @@ const deserializeAws_restJson1DeleteSuiteDefinitionCommandError = async (output,
|
|
|
501
497
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
502
498
|
default:
|
|
503
499
|
const parsedBody = parsedOutput.body;
|
|
500
|
+
const $metadata = deserializeMetadata(output);
|
|
501
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
504
502
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
505
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
503
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
506
504
|
$fault: "client",
|
|
507
|
-
$metadata
|
|
505
|
+
$metadata,
|
|
508
506
|
});
|
|
509
507
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
510
508
|
}
|
|
@@ -530,8 +528,7 @@ const deserializeAws_restJson1GetEndpointCommandError = async (output, context)
|
|
|
530
528
|
body: await parseBody(output.body, context),
|
|
531
529
|
};
|
|
532
530
|
let response;
|
|
533
|
-
|
|
534
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
531
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
535
532
|
switch (errorCode) {
|
|
536
533
|
case "InternalServerException":
|
|
537
534
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -544,10 +541,12 @@ const deserializeAws_restJson1GetEndpointCommandError = async (output, context)
|
|
|
544
541
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
545
542
|
default:
|
|
546
543
|
const parsedBody = parsedOutput.body;
|
|
544
|
+
const $metadata = deserializeMetadata(output);
|
|
545
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
547
546
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
548
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
547
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
549
548
|
$fault: "client",
|
|
550
|
-
$metadata
|
|
549
|
+
$metadata,
|
|
551
550
|
});
|
|
552
551
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
553
552
|
}
|
|
@@ -601,8 +600,7 @@ const deserializeAws_restJson1GetSuiteDefinitionCommandError = async (output, co
|
|
|
601
600
|
body: await parseBody(output.body, context),
|
|
602
601
|
};
|
|
603
602
|
let response;
|
|
604
|
-
|
|
605
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
606
604
|
switch (errorCode) {
|
|
607
605
|
case "InternalServerException":
|
|
608
606
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -615,10 +613,12 @@ const deserializeAws_restJson1GetSuiteDefinitionCommandError = async (output, co
|
|
|
615
613
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
616
614
|
default:
|
|
617
615
|
const parsedBody = parsedOutput.body;
|
|
616
|
+
const $metadata = deserializeMetadata(output);
|
|
617
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
618
618
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
619
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
620
620
|
$fault: "client",
|
|
621
|
-
$metadata
|
|
621
|
+
$metadata,
|
|
622
622
|
});
|
|
623
623
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
624
624
|
}
|
|
@@ -684,8 +684,7 @@ const deserializeAws_restJson1GetSuiteRunCommandError = async (output, context)
|
|
|
684
684
|
body: await parseBody(output.body, context),
|
|
685
685
|
};
|
|
686
686
|
let response;
|
|
687
|
-
|
|
688
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
689
688
|
switch (errorCode) {
|
|
690
689
|
case "InternalServerException":
|
|
691
690
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -698,10 +697,12 @@ const deserializeAws_restJson1GetSuiteRunCommandError = async (output, context)
|
|
|
698
697
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
699
698
|
default:
|
|
700
699
|
const parsedBody = parsedOutput.body;
|
|
700
|
+
const $metadata = deserializeMetadata(output);
|
|
701
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
701
702
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
702
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
703
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
703
704
|
$fault: "client",
|
|
704
|
-
$metadata
|
|
705
|
+
$metadata,
|
|
705
706
|
});
|
|
706
707
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
707
708
|
}
|
|
@@ -727,8 +728,7 @@ const deserializeAws_restJson1GetSuiteRunReportCommandError = async (output, con
|
|
|
727
728
|
body: await parseBody(output.body, context),
|
|
728
729
|
};
|
|
729
730
|
let response;
|
|
730
|
-
|
|
731
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
732
|
switch (errorCode) {
|
|
733
733
|
case "InternalServerException":
|
|
734
734
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -741,10 +741,12 @@ const deserializeAws_restJson1GetSuiteRunReportCommandError = async (output, con
|
|
|
741
741
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
742
742
|
default:
|
|
743
743
|
const parsedBody = parsedOutput.body;
|
|
744
|
+
const $metadata = deserializeMetadata(output);
|
|
745
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
744
746
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
745
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
747
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
746
748
|
$fault: "client",
|
|
747
|
-
$metadata
|
|
749
|
+
$metadata,
|
|
748
750
|
});
|
|
749
751
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
750
752
|
}
|
|
@@ -774,8 +776,7 @@ const deserializeAws_restJson1ListSuiteDefinitionsCommandError = async (output,
|
|
|
774
776
|
body: await parseBody(output.body, context),
|
|
775
777
|
};
|
|
776
778
|
let response;
|
|
777
|
-
|
|
778
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
780
|
switch (errorCode) {
|
|
780
781
|
case "InternalServerException":
|
|
781
782
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -785,10 +786,12 @@ const deserializeAws_restJson1ListSuiteDefinitionsCommandError = async (output,
|
|
|
785
786
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
786
787
|
default:
|
|
787
788
|
const parsedBody = parsedOutput.body;
|
|
789
|
+
const $metadata = deserializeMetadata(output);
|
|
790
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
788
791
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
789
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
792
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
790
793
|
$fault: "client",
|
|
791
|
-
$metadata
|
|
794
|
+
$metadata,
|
|
792
795
|
});
|
|
793
796
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
794
797
|
}
|
|
@@ -818,8 +821,7 @@ const deserializeAws_restJson1ListSuiteRunsCommandError = async (output, context
|
|
|
818
821
|
body: await parseBody(output.body, context),
|
|
819
822
|
};
|
|
820
823
|
let response;
|
|
821
|
-
|
|
822
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
823
825
|
switch (errorCode) {
|
|
824
826
|
case "InternalServerException":
|
|
825
827
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -829,10 +831,12 @@ const deserializeAws_restJson1ListSuiteRunsCommandError = async (output, context
|
|
|
829
831
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
830
832
|
default:
|
|
831
833
|
const parsedBody = parsedOutput.body;
|
|
834
|
+
const $metadata = deserializeMetadata(output);
|
|
835
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
832
836
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
833
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
837
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
834
838
|
$fault: "client",
|
|
835
|
-
$metadata
|
|
839
|
+
$metadata,
|
|
836
840
|
});
|
|
837
841
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
838
842
|
}
|
|
@@ -858,8 +862,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
858
862
|
body: await parseBody(output.body, context),
|
|
859
863
|
};
|
|
860
864
|
let response;
|
|
861
|
-
|
|
862
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
866
|
switch (errorCode) {
|
|
864
867
|
case "InternalServerException":
|
|
865
868
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -872,10 +875,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
872
875
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
873
876
|
default:
|
|
874
877
|
const parsedBody = parsedOutput.body;
|
|
878
|
+
const $metadata = deserializeMetadata(output);
|
|
879
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
875
880
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
876
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
881
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
877
882
|
$fault: "client",
|
|
878
|
-
$metadata
|
|
883
|
+
$metadata,
|
|
879
884
|
});
|
|
880
885
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
881
886
|
}
|
|
@@ -909,8 +914,7 @@ const deserializeAws_restJson1StartSuiteRunCommandError = async (output, context
|
|
|
909
914
|
body: await parseBody(output.body, context),
|
|
910
915
|
};
|
|
911
916
|
let response;
|
|
912
|
-
|
|
913
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
918
|
switch (errorCode) {
|
|
915
919
|
case "ConflictException":
|
|
916
920
|
case "com.amazonaws.iotdeviceadvisor#ConflictException":
|
|
@@ -923,10 +927,12 @@ const deserializeAws_restJson1StartSuiteRunCommandError = async (output, context
|
|
|
923
927
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
924
928
|
default:
|
|
925
929
|
const parsedBody = parsedOutput.body;
|
|
930
|
+
const $metadata = deserializeMetadata(output);
|
|
931
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
926
932
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
933
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
928
934
|
$fault: "client",
|
|
929
|
-
$metadata
|
|
935
|
+
$metadata,
|
|
930
936
|
});
|
|
931
937
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
932
938
|
}
|
|
@@ -948,8 +954,7 @@ const deserializeAws_restJson1StopSuiteRunCommandError = async (output, context)
|
|
|
948
954
|
body: await parseBody(output.body, context),
|
|
949
955
|
};
|
|
950
956
|
let response;
|
|
951
|
-
|
|
952
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
958
|
switch (errorCode) {
|
|
954
959
|
case "InternalServerException":
|
|
955
960
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -962,10 +967,12 @@ const deserializeAws_restJson1StopSuiteRunCommandError = async (output, context)
|
|
|
962
967
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
963
968
|
default:
|
|
964
969
|
const parsedBody = parsedOutput.body;
|
|
970
|
+
const $metadata = deserializeMetadata(output);
|
|
971
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
965
972
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
966
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
973
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
967
974
|
$fault: "client",
|
|
968
|
-
$metadata
|
|
975
|
+
$metadata,
|
|
969
976
|
});
|
|
970
977
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
971
978
|
}
|
|
@@ -987,8 +994,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
987
994
|
body: await parseBody(output.body, context),
|
|
988
995
|
};
|
|
989
996
|
let response;
|
|
990
|
-
|
|
991
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
998
|
switch (errorCode) {
|
|
993
999
|
case "InternalServerException":
|
|
994
1000
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -1001,10 +1007,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1001
1007
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1002
1008
|
default:
|
|
1003
1009
|
const parsedBody = parsedOutput.body;
|
|
1010
|
+
const $metadata = deserializeMetadata(output);
|
|
1011
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1004
1012
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
1005
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1013
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1006
1014
|
$fault: "client",
|
|
1007
|
-
$metadata
|
|
1015
|
+
$metadata,
|
|
1008
1016
|
});
|
|
1009
1017
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1010
1018
|
}
|
|
@@ -1026,8 +1034,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1026
1034
|
body: await parseBody(output.body, context),
|
|
1027
1035
|
};
|
|
1028
1036
|
let response;
|
|
1029
|
-
|
|
1030
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
1038
|
switch (errorCode) {
|
|
1032
1039
|
case "InternalServerException":
|
|
1033
1040
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -1040,10 +1047,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1040
1047
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1041
1048
|
default:
|
|
1042
1049
|
const parsedBody = parsedOutput.body;
|
|
1050
|
+
const $metadata = deserializeMetadata(output);
|
|
1051
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1043
1052
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
1044
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1053
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1045
1054
|
$fault: "client",
|
|
1046
|
-
$metadata
|
|
1055
|
+
$metadata,
|
|
1047
1056
|
});
|
|
1048
1057
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1049
1058
|
}
|
|
@@ -1089,8 +1098,7 @@ const deserializeAws_restJson1UpdateSuiteDefinitionCommandError = async (output,
|
|
|
1089
1098
|
body: await parseBody(output.body, context),
|
|
1090
1099
|
};
|
|
1091
1100
|
let response;
|
|
1092
|
-
|
|
1093
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
1102
|
switch (errorCode) {
|
|
1095
1103
|
case "InternalServerException":
|
|
1096
1104
|
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
@@ -1100,10 +1108,12 @@ const deserializeAws_restJson1UpdateSuiteDefinitionCommandError = async (output,
|
|
|
1100
1108
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1101
1109
|
default:
|
|
1102
1110
|
const parsedBody = parsedOutput.body;
|
|
1111
|
+
const $metadata = deserializeMetadata(output);
|
|
1112
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1103
1113
|
response = new IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException({
|
|
1104
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1114
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1105
1115
|
$fault: "client",
|
|
1106
|
-
$metadata
|
|
1116
|
+
$metadata,
|
|
1107
1117
|
});
|
|
1108
1118
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1109
1119
|
}
|
|
@@ -1158,9 +1168,8 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1158
1168
|
};
|
|
1159
1169
|
const serializeAws_restJson1DeviceUnderTest = (input, context) => {
|
|
1160
1170
|
return {
|
|
1161
|
-
...(input.certificateArn
|
|
1162
|
-
|
|
1163
|
-
...(input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn }),
|
|
1171
|
+
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
1172
|
+
...(input.thingArn != null && { thingArn: input.thingArn }),
|
|
1164
1173
|
};
|
|
1165
1174
|
};
|
|
1166
1175
|
const serializeAws_restJson1DeviceUnderTestList = (input, context) => {
|
|
@@ -1185,26 +1194,20 @@ const serializeAws_restJson1SelectedTestList = (input, context) => {
|
|
|
1185
1194
|
};
|
|
1186
1195
|
const serializeAws_restJson1SuiteDefinitionConfiguration = (input, context) => {
|
|
1187
1196
|
return {
|
|
1188
|
-
...(input.devicePermissionRoleArn
|
|
1189
|
-
|
|
1190
|
-
...(input.
|
|
1191
|
-
|
|
1192
|
-
...(input.
|
|
1193
|
-
input.intendedForQualification !== null && { intendedForQualification: input.intendedForQualification }),
|
|
1194
|
-
...(input.rootGroup !== undefined && input.rootGroup !== null && { rootGroup: input.rootGroup }),
|
|
1195
|
-
...(input.suiteDefinitionName !== undefined &&
|
|
1196
|
-
input.suiteDefinitionName !== null && { suiteDefinitionName: input.suiteDefinitionName }),
|
|
1197
|
+
...(input.devicePermissionRoleArn != null && { devicePermissionRoleArn: input.devicePermissionRoleArn }),
|
|
1198
|
+
...(input.devices != null && { devices: serializeAws_restJson1DeviceUnderTestList(input.devices, context) }),
|
|
1199
|
+
...(input.intendedForQualification != null && { intendedForQualification: input.intendedForQualification }),
|
|
1200
|
+
...(input.rootGroup != null && { rootGroup: input.rootGroup }),
|
|
1201
|
+
...(input.suiteDefinitionName != null && { suiteDefinitionName: input.suiteDefinitionName }),
|
|
1197
1202
|
};
|
|
1198
1203
|
};
|
|
1199
1204
|
const serializeAws_restJson1SuiteRunConfiguration = (input, context) => {
|
|
1200
1205
|
return {
|
|
1201
|
-
...(input.parallelRun
|
|
1202
|
-
...(input.primaryDevice
|
|
1203
|
-
input.primaryDevice !== null && {
|
|
1206
|
+
...(input.parallelRun != null && { parallelRun: input.parallelRun }),
|
|
1207
|
+
...(input.primaryDevice != null && {
|
|
1204
1208
|
primaryDevice: serializeAws_restJson1DeviceUnderTest(input.primaryDevice, context),
|
|
1205
1209
|
}),
|
|
1206
|
-
...(input.selectedTestList
|
|
1207
|
-
input.selectedTestList !== null && {
|
|
1210
|
+
...(input.selectedTestList != null && {
|
|
1208
1211
|
selectedTestList: serializeAws_restJson1SelectedTestList(input.selectedTestList, context),
|
|
1209
1212
|
}),
|
|
1210
1213
|
};
|
|
@@ -1241,9 +1244,7 @@ const deserializeAws_restJson1GroupResult = (output, context) => {
|
|
|
1241
1244
|
return {
|
|
1242
1245
|
groupId: (0, smithy_client_1.expectString)(output.groupId),
|
|
1243
1246
|
groupName: (0, smithy_client_1.expectString)(output.groupName),
|
|
1244
|
-
tests: output.tests
|
|
1245
|
-
? deserializeAws_restJson1TestCaseRuns(output.tests, context)
|
|
1246
|
-
: undefined,
|
|
1247
|
+
tests: output.tests != null ? deserializeAws_restJson1TestCaseRuns(output.tests, context) : undefined,
|
|
1247
1248
|
};
|
|
1248
1249
|
};
|
|
1249
1250
|
const deserializeAws_restJson1GroupResultList = (output, context) => {
|
|
@@ -1271,9 +1272,7 @@ const deserializeAws_restJson1SelectedTestList = (output, context) => {
|
|
|
1271
1272
|
const deserializeAws_restJson1SuiteDefinitionConfiguration = (output, context) => {
|
|
1272
1273
|
return {
|
|
1273
1274
|
devicePermissionRoleArn: (0, smithy_client_1.expectString)(output.devicePermissionRoleArn),
|
|
1274
|
-
devices: output.devices
|
|
1275
|
-
? deserializeAws_restJson1DeviceUnderTestList(output.devices, context)
|
|
1276
|
-
: undefined,
|
|
1275
|
+
devices: output.devices != null ? deserializeAws_restJson1DeviceUnderTestList(output.devices, context) : undefined,
|
|
1277
1276
|
intendedForQualification: (0, smithy_client_1.expectBoolean)(output.intendedForQualification),
|
|
1278
1277
|
rootGroup: (0, smithy_client_1.expectString)(output.rootGroup),
|
|
1279
1278
|
suiteDefinitionName: (0, smithy_client_1.expectString)(output.suiteDefinitionName),
|
|
@@ -1281,10 +1280,8 @@ const deserializeAws_restJson1SuiteDefinitionConfiguration = (output, context) =
|
|
|
1281
1280
|
};
|
|
1282
1281
|
const deserializeAws_restJson1SuiteDefinitionInformation = (output, context) => {
|
|
1283
1282
|
return {
|
|
1284
|
-
createdAt: output.createdAt
|
|
1285
|
-
|
|
1286
|
-
: undefined,
|
|
1287
|
-
defaultDevices: output.defaultDevices !== undefined && output.defaultDevices !== null
|
|
1283
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1284
|
+
defaultDevices: output.defaultDevices != null
|
|
1288
1285
|
? deserializeAws_restJson1DeviceUnderTestList(output.defaultDevices, context)
|
|
1289
1286
|
: undefined,
|
|
1290
1287
|
intendedForQualification: (0, smithy_client_1.expectBoolean)(output.intendedForQualification),
|
|
@@ -1306,27 +1303,19 @@ const deserializeAws_restJson1SuiteDefinitionInformationList = (output, context)
|
|
|
1306
1303
|
const deserializeAws_restJson1SuiteRunConfiguration = (output, context) => {
|
|
1307
1304
|
return {
|
|
1308
1305
|
parallelRun: (0, smithy_client_1.expectBoolean)(output.parallelRun),
|
|
1309
|
-
primaryDevice: output.primaryDevice
|
|
1310
|
-
|
|
1311
|
-
: undefined,
|
|
1312
|
-
selectedTestList: output.selectedTestList !== undefined && output.selectedTestList !== null
|
|
1306
|
+
primaryDevice: output.primaryDevice != null ? deserializeAws_restJson1DeviceUnderTest(output.primaryDevice, context) : undefined,
|
|
1307
|
+
selectedTestList: output.selectedTestList != null
|
|
1313
1308
|
? deserializeAws_restJson1SelectedTestList(output.selectedTestList, context)
|
|
1314
1309
|
: undefined,
|
|
1315
1310
|
};
|
|
1316
1311
|
};
|
|
1317
1312
|
const deserializeAws_restJson1SuiteRunInformation = (output, context) => {
|
|
1318
1313
|
return {
|
|
1319
|
-
createdAt: output.createdAt
|
|
1320
|
-
|
|
1321
|
-
: undefined,
|
|
1322
|
-
endAt: output.endAt !== undefined && output.endAt !== null
|
|
1323
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endAt)))
|
|
1324
|
-
: undefined,
|
|
1314
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
1315
|
+
endAt: output.endAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endAt))) : undefined,
|
|
1325
1316
|
failed: (0, smithy_client_1.expectInt32)(output.failed),
|
|
1326
1317
|
passed: (0, smithy_client_1.expectInt32)(output.passed),
|
|
1327
|
-
startedAt: output.startedAt
|
|
1328
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
|
|
1329
|
-
: undefined,
|
|
1318
|
+
startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
|
|
1330
1319
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1331
1320
|
suiteDefinitionId: (0, smithy_client_1.expectString)(output.suiteDefinitionId),
|
|
1332
1321
|
suiteDefinitionName: (0, smithy_client_1.expectString)(output.suiteDefinitionName),
|
|
@@ -1358,14 +1347,10 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1358
1347
|
};
|
|
1359
1348
|
const deserializeAws_restJson1TestCaseRun = (output, context) => {
|
|
1360
1349
|
return {
|
|
1361
|
-
endTime: output.endTime
|
|
1362
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
|
|
1363
|
-
: undefined,
|
|
1350
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
1364
1351
|
failure: (0, smithy_client_1.expectString)(output.failure),
|
|
1365
1352
|
logUrl: (0, smithy_client_1.expectString)(output.logUrl),
|
|
1366
|
-
startTime: output.startTime
|
|
1367
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
1368
|
-
: undefined,
|
|
1353
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
1369
1354
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1370
1355
|
testCaseDefinitionId: (0, smithy_client_1.expectString)(output.testCaseDefinitionId),
|
|
1371
1356
|
testCaseDefinitionName: (0, smithy_client_1.expectString)(output.testCaseDefinitionName),
|
|
@@ -1386,9 +1371,7 @@ const deserializeAws_restJson1TestCaseRuns = (output, context) => {
|
|
|
1386
1371
|
};
|
|
1387
1372
|
const deserializeAws_restJson1TestResult = (output, context) => {
|
|
1388
1373
|
return {
|
|
1389
|
-
groups: output.groups
|
|
1390
|
-
? deserializeAws_restJson1GroupResultList(output.groups, context)
|
|
1391
|
-
: undefined,
|
|
1374
|
+
groups: output.groups != null ? deserializeAws_restJson1GroupResultList(output.groups, context) : undefined,
|
|
1392
1375
|
};
|
|
1393
1376
|
};
|
|
1394
1377
|
const deserializeMetadata = (output) => {
|
|
@@ -1440,5 +1423,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1440
1423
|
if (data["__type"] !== undefined) {
|
|
1441
1424
|
return sanitizeErrorCode(data["__type"]);
|
|
1442
1425
|
}
|
|
1443
|
-
return "";
|
|
1444
1426
|
};
|
|
@@ -14,10 +14,9 @@ export var serializeAws_restJson1CreateSuiteDefinitionCommand = function (input,
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/suiteDefinitions";
|
|
17
|
-
body = JSON.stringify(__assign(__assign({}, (input.suiteDefinitionConfiguration
|
|
18
|
-
input.suiteDefinitionConfiguration !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign({}, (input.suiteDefinitionConfiguration != null && {
|
|
19
18
|
suiteDefinitionConfiguration: serializeAws_restJson1SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
|
|
20
|
-
})), (input.tags
|
|
19
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
22
21
|
protocol: protocol,
|
|
23
22
|
hostname: hostname,
|
|
@@ -300,11 +299,9 @@ export var serializeAws_restJson1StartSuiteRunCommand = function (input, context
|
|
|
300
299
|
else {
|
|
301
300
|
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
302
301
|
}
|
|
303
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.suiteDefinitionVersion
|
|
304
|
-
input.suiteDefinitionVersion !== null && { suiteDefinitionVersion: input.suiteDefinitionVersion })), (input.suiteRunConfiguration !== undefined &&
|
|
305
|
-
input.suiteRunConfiguration !== null && {
|
|
302
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.suiteDefinitionVersion != null && { suiteDefinitionVersion: input.suiteDefinitionVersion })), (input.suiteRunConfiguration != null && {
|
|
306
303
|
suiteRunConfiguration: serializeAws_restJson1SuiteRunConfiguration(input.suiteRunConfiguration, context),
|
|
307
|
-
})), (input.tags
|
|
304
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
308
305
|
return [2, new __HttpRequest({
|
|
309
306
|
protocol: protocol,
|
|
310
307
|
hostname: hostname,
|
|
@@ -380,7 +377,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
380
377
|
else {
|
|
381
378
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
382
379
|
}
|
|
383
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
380
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
384
381
|
return [2, new __HttpRequest({
|
|
385
382
|
protocol: protocol,
|
|
386
383
|
hostname: hostname,
|
|
@@ -447,8 +444,7 @@ export var serializeAws_restJson1UpdateSuiteDefinitionCommand = function (input,
|
|
|
447
444
|
else {
|
|
448
445
|
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
449
446
|
}
|
|
450
|
-
body = JSON.stringify(__assign({}, (input.suiteDefinitionConfiguration
|
|
451
|
-
input.suiteDefinitionConfiguration !== null && {
|
|
447
|
+
body = JSON.stringify(__assign({}, (input.suiteDefinitionConfiguration != null && {
|
|
452
448
|
suiteDefinitionConfiguration: serializeAws_restJson1SuiteDefinitionConfiguration(input.suiteDefinitionConfiguration, context),
|
|
453
449
|
})));
|
|
454
450
|
return [2, new __HttpRequest({
|
|
@@ -500,7 +496,7 @@ export var deserializeAws_restJson1CreateSuiteDefinitionCommand = function (outp
|
|
|
500
496
|
});
|
|
501
497
|
}); };
|
|
502
498
|
var deserializeAws_restJson1CreateSuiteDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
503
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
499
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
504
500
|
var _c;
|
|
505
501
|
return __generator(this, function (_d) {
|
|
506
502
|
switch (_d.label) {
|
|
@@ -510,7 +506,6 @@ var deserializeAws_restJson1CreateSuiteDefinitionCommandError = function (output
|
|
|
510
506
|
return [4, parseBody(output.body, context)];
|
|
511
507
|
case 1:
|
|
512
508
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
513
|
-
errorCode = "UnknownError";
|
|
514
509
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
515
510
|
_b = errorCode;
|
|
516
511
|
switch (_b) {
|
|
@@ -526,10 +521,12 @@ var deserializeAws_restJson1CreateSuiteDefinitionCommandError = function (output
|
|
|
526
521
|
case 5: throw _d.sent();
|
|
527
522
|
case 6:
|
|
528
523
|
parsedBody = parsedOutput.body;
|
|
524
|
+
$metadata = deserializeMetadata(output);
|
|
525
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
529
526
|
response = new __BaseException({
|
|
530
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
531
528
|
$fault: "client",
|
|
532
|
-
$metadata:
|
|
529
|
+
$metadata: $metadata,
|
|
533
530
|
});
|
|
534
531
|
throw __decorateServiceException(response, parsedBody);
|
|
535
532
|
}
|
|
@@ -554,7 +551,7 @@ export var deserializeAws_restJson1DeleteSuiteDefinitionCommand = function (outp
|
|
|
554
551
|
});
|
|
555
552
|
}); };
|
|
556
553
|
var deserializeAws_restJson1DeleteSuiteDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
557
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
554
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
558
555
|
var _c;
|
|
559
556
|
return __generator(this, function (_d) {
|
|
560
557
|
switch (_d.label) {
|
|
@@ -564,7 +561,6 @@ var deserializeAws_restJson1DeleteSuiteDefinitionCommandError = function (output
|
|
|
564
561
|
return [4, parseBody(output.body, context)];
|
|
565
562
|
case 1:
|
|
566
563
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
567
|
-
errorCode = "UnknownError";
|
|
568
564
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
565
|
_b = errorCode;
|
|
570
566
|
switch (_b) {
|
|
@@ -580,10 +576,12 @@ var deserializeAws_restJson1DeleteSuiteDefinitionCommandError = function (output
|
|
|
580
576
|
case 5: throw _d.sent();
|
|
581
577
|
case 6:
|
|
582
578
|
parsedBody = parsedOutput.body;
|
|
579
|
+
$metadata = deserializeMetadata(output);
|
|
580
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
583
581
|
response = new __BaseException({
|
|
584
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
582
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
585
583
|
$fault: "client",
|
|
586
|
-
$metadata:
|
|
584
|
+
$metadata: $metadata,
|
|
587
585
|
});
|
|
588
586
|
throw __decorateServiceException(response, parsedBody);
|
|
589
587
|
}
|
|
@@ -614,7 +612,7 @@ export var deserializeAws_restJson1GetEndpointCommand = function (output, contex
|
|
|
614
612
|
});
|
|
615
613
|
}); };
|
|
616
614
|
var deserializeAws_restJson1GetEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
617
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
615
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
618
616
|
var _c;
|
|
619
617
|
return __generator(this, function (_d) {
|
|
620
618
|
switch (_d.label) {
|
|
@@ -624,7 +622,6 @@ var deserializeAws_restJson1GetEndpointCommandError = function (output, context)
|
|
|
624
622
|
return [4, parseBody(output.body, context)];
|
|
625
623
|
case 1:
|
|
626
624
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
627
|
-
errorCode = "UnknownError";
|
|
628
625
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
626
|
_b = errorCode;
|
|
630
627
|
switch (_b) {
|
|
@@ -644,10 +641,12 @@ var deserializeAws_restJson1GetEndpointCommandError = function (output, context)
|
|
|
644
641
|
case 7: throw _d.sent();
|
|
645
642
|
case 8:
|
|
646
643
|
parsedBody = parsedOutput.body;
|
|
644
|
+
$metadata = deserializeMetadata(output);
|
|
645
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
647
646
|
response = new __BaseException({
|
|
648
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
647
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
649
648
|
$fault: "client",
|
|
650
|
-
$metadata:
|
|
649
|
+
$metadata: $metadata,
|
|
651
650
|
});
|
|
652
651
|
throw __decorateServiceException(response, parsedBody);
|
|
653
652
|
}
|
|
@@ -706,7 +705,7 @@ export var deserializeAws_restJson1GetSuiteDefinitionCommand = function (output,
|
|
|
706
705
|
});
|
|
707
706
|
}); };
|
|
708
707
|
var deserializeAws_restJson1GetSuiteDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
709
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
708
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
710
709
|
var _c;
|
|
711
710
|
return __generator(this, function (_d) {
|
|
712
711
|
switch (_d.label) {
|
|
@@ -716,7 +715,6 @@ var deserializeAws_restJson1GetSuiteDefinitionCommandError = function (output, c
|
|
|
716
715
|
return [4, parseBody(output.body, context)];
|
|
717
716
|
case 1:
|
|
718
717
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
719
|
-
errorCode = "UnknownError";
|
|
720
718
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
719
|
_b = errorCode;
|
|
722
720
|
switch (_b) {
|
|
@@ -736,10 +734,12 @@ var deserializeAws_restJson1GetSuiteDefinitionCommandError = function (output, c
|
|
|
736
734
|
case 7: throw _d.sent();
|
|
737
735
|
case 8:
|
|
738
736
|
parsedBody = parsedOutput.body;
|
|
737
|
+
$metadata = deserializeMetadata(output);
|
|
738
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
739
739
|
response = new __BaseException({
|
|
740
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
740
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
741
741
|
$fault: "client",
|
|
742
|
-
$metadata:
|
|
742
|
+
$metadata: $metadata,
|
|
743
743
|
});
|
|
744
744
|
throw __decorateServiceException(response, parsedBody);
|
|
745
745
|
}
|
|
@@ -810,7 +810,7 @@ export var deserializeAws_restJson1GetSuiteRunCommand = function (output, contex
|
|
|
810
810
|
});
|
|
811
811
|
}); };
|
|
812
812
|
var deserializeAws_restJson1GetSuiteRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
813
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
813
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
814
814
|
var _c;
|
|
815
815
|
return __generator(this, function (_d) {
|
|
816
816
|
switch (_d.label) {
|
|
@@ -820,7 +820,6 @@ var deserializeAws_restJson1GetSuiteRunCommandError = function (output, context)
|
|
|
820
820
|
return [4, parseBody(output.body, context)];
|
|
821
821
|
case 1:
|
|
822
822
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
823
|
-
errorCode = "UnknownError";
|
|
824
823
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
824
|
_b = errorCode;
|
|
826
825
|
switch (_b) {
|
|
@@ -840,10 +839,12 @@ var deserializeAws_restJson1GetSuiteRunCommandError = function (output, context)
|
|
|
840
839
|
case 7: throw _d.sent();
|
|
841
840
|
case 8:
|
|
842
841
|
parsedBody = parsedOutput.body;
|
|
842
|
+
$metadata = deserializeMetadata(output);
|
|
843
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
843
844
|
response = new __BaseException({
|
|
844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
845
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
845
846
|
$fault: "client",
|
|
846
|
-
$metadata:
|
|
847
|
+
$metadata: $metadata,
|
|
847
848
|
});
|
|
848
849
|
throw __decorateServiceException(response, parsedBody);
|
|
849
850
|
}
|
|
@@ -874,7 +875,7 @@ export var deserializeAws_restJson1GetSuiteRunReportCommand = function (output,
|
|
|
874
875
|
});
|
|
875
876
|
}); };
|
|
876
877
|
var deserializeAws_restJson1GetSuiteRunReportCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
877
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
878
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
878
879
|
var _c;
|
|
879
880
|
return __generator(this, function (_d) {
|
|
880
881
|
switch (_d.label) {
|
|
@@ -884,7 +885,6 @@ var deserializeAws_restJson1GetSuiteRunReportCommandError = function (output, co
|
|
|
884
885
|
return [4, parseBody(output.body, context)];
|
|
885
886
|
case 1:
|
|
886
887
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
887
|
-
errorCode = "UnknownError";
|
|
888
888
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
889
|
_b = errorCode;
|
|
890
890
|
switch (_b) {
|
|
@@ -904,10 +904,12 @@ var deserializeAws_restJson1GetSuiteRunReportCommandError = function (output, co
|
|
|
904
904
|
case 7: throw _d.sent();
|
|
905
905
|
case 8:
|
|
906
906
|
parsedBody = parsedOutput.body;
|
|
907
|
+
$metadata = deserializeMetadata(output);
|
|
908
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
907
909
|
response = new __BaseException({
|
|
908
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
910
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
909
911
|
$fault: "client",
|
|
910
|
-
$metadata:
|
|
912
|
+
$metadata: $metadata,
|
|
911
913
|
});
|
|
912
914
|
throw __decorateServiceException(response, parsedBody);
|
|
913
915
|
}
|
|
@@ -942,7 +944,7 @@ export var deserializeAws_restJson1ListSuiteDefinitionsCommand = function (outpu
|
|
|
942
944
|
});
|
|
943
945
|
}); };
|
|
944
946
|
var deserializeAws_restJson1ListSuiteDefinitionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
945
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
947
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
946
948
|
var _c;
|
|
947
949
|
return __generator(this, function (_d) {
|
|
948
950
|
switch (_d.label) {
|
|
@@ -952,7 +954,6 @@ var deserializeAws_restJson1ListSuiteDefinitionsCommandError = function (output,
|
|
|
952
954
|
return [4, parseBody(output.body, context)];
|
|
953
955
|
case 1:
|
|
954
956
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
955
|
-
errorCode = "UnknownError";
|
|
956
957
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
958
|
_b = errorCode;
|
|
958
959
|
switch (_b) {
|
|
@@ -968,10 +969,12 @@ var deserializeAws_restJson1ListSuiteDefinitionsCommandError = function (output,
|
|
|
968
969
|
case 5: throw _d.sent();
|
|
969
970
|
case 6:
|
|
970
971
|
parsedBody = parsedOutput.body;
|
|
972
|
+
$metadata = deserializeMetadata(output);
|
|
973
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
971
974
|
response = new __BaseException({
|
|
972
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
975
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
973
976
|
$fault: "client",
|
|
974
|
-
$metadata:
|
|
977
|
+
$metadata: $metadata,
|
|
975
978
|
});
|
|
976
979
|
throw __decorateServiceException(response, parsedBody);
|
|
977
980
|
}
|
|
@@ -1006,7 +1009,7 @@ export var deserializeAws_restJson1ListSuiteRunsCommand = function (output, cont
|
|
|
1006
1009
|
});
|
|
1007
1010
|
}); };
|
|
1008
1011
|
var deserializeAws_restJson1ListSuiteRunsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1009
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1012
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1010
1013
|
var _c;
|
|
1011
1014
|
return __generator(this, function (_d) {
|
|
1012
1015
|
switch (_d.label) {
|
|
@@ -1016,7 +1019,6 @@ var deserializeAws_restJson1ListSuiteRunsCommandError = function (output, contex
|
|
|
1016
1019
|
return [4, parseBody(output.body, context)];
|
|
1017
1020
|
case 1:
|
|
1018
1021
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1019
|
-
errorCode = "UnknownError";
|
|
1020
1022
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
1023
|
_b = errorCode;
|
|
1022
1024
|
switch (_b) {
|
|
@@ -1032,10 +1034,12 @@ var deserializeAws_restJson1ListSuiteRunsCommandError = function (output, contex
|
|
|
1032
1034
|
case 5: throw _d.sent();
|
|
1033
1035
|
case 6:
|
|
1034
1036
|
parsedBody = parsedOutput.body;
|
|
1037
|
+
$metadata = deserializeMetadata(output);
|
|
1038
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1035
1039
|
response = new __BaseException({
|
|
1036
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1040
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1037
1041
|
$fault: "client",
|
|
1038
|
-
$metadata:
|
|
1042
|
+
$metadata: $metadata,
|
|
1039
1043
|
});
|
|
1040
1044
|
throw __decorateServiceException(response, parsedBody);
|
|
1041
1045
|
}
|
|
@@ -1066,7 +1070,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1066
1070
|
});
|
|
1067
1071
|
}); };
|
|
1068
1072
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1069
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1073
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1070
1074
|
var _c;
|
|
1071
1075
|
return __generator(this, function (_d) {
|
|
1072
1076
|
switch (_d.label) {
|
|
@@ -1076,7 +1080,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1076
1080
|
return [4, parseBody(output.body, context)];
|
|
1077
1081
|
case 1:
|
|
1078
1082
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1079
|
-
errorCode = "UnknownError";
|
|
1080
1083
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
1084
|
_b = errorCode;
|
|
1082
1085
|
switch (_b) {
|
|
@@ -1096,10 +1099,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1096
1099
|
case 7: throw _d.sent();
|
|
1097
1100
|
case 8:
|
|
1098
1101
|
parsedBody = parsedOutput.body;
|
|
1102
|
+
$metadata = deserializeMetadata(output);
|
|
1103
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1099
1104
|
response = new __BaseException({
|
|
1100
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1101
1106
|
$fault: "client",
|
|
1102
|
-
$metadata:
|
|
1107
|
+
$metadata: $metadata,
|
|
1103
1108
|
});
|
|
1104
1109
|
throw __decorateServiceException(response, parsedBody);
|
|
1105
1110
|
}
|
|
@@ -1138,7 +1143,7 @@ export var deserializeAws_restJson1StartSuiteRunCommand = function (output, cont
|
|
|
1138
1143
|
});
|
|
1139
1144
|
}); };
|
|
1140
1145
|
var deserializeAws_restJson1StartSuiteRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1141
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1146
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1142
1147
|
var _c;
|
|
1143
1148
|
return __generator(this, function (_d) {
|
|
1144
1149
|
switch (_d.label) {
|
|
@@ -1148,7 +1153,6 @@ var deserializeAws_restJson1StartSuiteRunCommandError = function (output, contex
|
|
|
1148
1153
|
return [4, parseBody(output.body, context)];
|
|
1149
1154
|
case 1:
|
|
1150
1155
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1151
|
-
errorCode = "UnknownError";
|
|
1152
1156
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
1157
|
_b = errorCode;
|
|
1154
1158
|
switch (_b) {
|
|
@@ -1168,10 +1172,12 @@ var deserializeAws_restJson1StartSuiteRunCommandError = function (output, contex
|
|
|
1168
1172
|
case 7: throw _d.sent();
|
|
1169
1173
|
case 8:
|
|
1170
1174
|
parsedBody = parsedOutput.body;
|
|
1175
|
+
$metadata = deserializeMetadata(output);
|
|
1176
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1171
1177
|
response = new __BaseException({
|
|
1172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1178
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1173
1179
|
$fault: "client",
|
|
1174
|
-
$metadata:
|
|
1180
|
+
$metadata: $metadata,
|
|
1175
1181
|
});
|
|
1176
1182
|
throw __decorateServiceException(response, parsedBody);
|
|
1177
1183
|
}
|
|
@@ -1196,7 +1202,7 @@ export var deserializeAws_restJson1StopSuiteRunCommand = function (output, conte
|
|
|
1196
1202
|
});
|
|
1197
1203
|
}); };
|
|
1198
1204
|
var deserializeAws_restJson1StopSuiteRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1199
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1205
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1200
1206
|
var _c;
|
|
1201
1207
|
return __generator(this, function (_d) {
|
|
1202
1208
|
switch (_d.label) {
|
|
@@ -1206,7 +1212,6 @@ var deserializeAws_restJson1StopSuiteRunCommandError = function (output, context
|
|
|
1206
1212
|
return [4, parseBody(output.body, context)];
|
|
1207
1213
|
case 1:
|
|
1208
1214
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1209
|
-
errorCode = "UnknownError";
|
|
1210
1215
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
1216
|
_b = errorCode;
|
|
1212
1217
|
switch (_b) {
|
|
@@ -1226,10 +1231,12 @@ var deserializeAws_restJson1StopSuiteRunCommandError = function (output, context
|
|
|
1226
1231
|
case 7: throw _d.sent();
|
|
1227
1232
|
case 8:
|
|
1228
1233
|
parsedBody = parsedOutput.body;
|
|
1234
|
+
$metadata = deserializeMetadata(output);
|
|
1235
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1229
1236
|
response = new __BaseException({
|
|
1230
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1237
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1231
1238
|
$fault: "client",
|
|
1232
|
-
$metadata:
|
|
1239
|
+
$metadata: $metadata,
|
|
1233
1240
|
});
|
|
1234
1241
|
throw __decorateServiceException(response, parsedBody);
|
|
1235
1242
|
}
|
|
@@ -1254,7 +1261,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1254
1261
|
});
|
|
1255
1262
|
}); };
|
|
1256
1263
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1257
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1264
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1258
1265
|
var _c;
|
|
1259
1266
|
return __generator(this, function (_d) {
|
|
1260
1267
|
switch (_d.label) {
|
|
@@ -1264,7 +1271,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1264
1271
|
return [4, parseBody(output.body, context)];
|
|
1265
1272
|
case 1:
|
|
1266
1273
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1267
|
-
errorCode = "UnknownError";
|
|
1268
1274
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
1275
|
_b = errorCode;
|
|
1270
1276
|
switch (_b) {
|
|
@@ -1284,10 +1290,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1284
1290
|
case 7: throw _d.sent();
|
|
1285
1291
|
case 8:
|
|
1286
1292
|
parsedBody = parsedOutput.body;
|
|
1293
|
+
$metadata = deserializeMetadata(output);
|
|
1294
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1287
1295
|
response = new __BaseException({
|
|
1288
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1296
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1289
1297
|
$fault: "client",
|
|
1290
|
-
$metadata:
|
|
1298
|
+
$metadata: $metadata,
|
|
1291
1299
|
});
|
|
1292
1300
|
throw __decorateServiceException(response, parsedBody);
|
|
1293
1301
|
}
|
|
@@ -1312,7 +1320,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1312
1320
|
});
|
|
1313
1321
|
}); };
|
|
1314
1322
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1315
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1323
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1316
1324
|
var _c;
|
|
1317
1325
|
return __generator(this, function (_d) {
|
|
1318
1326
|
switch (_d.label) {
|
|
@@ -1322,7 +1330,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1322
1330
|
return [4, parseBody(output.body, context)];
|
|
1323
1331
|
case 1:
|
|
1324
1332
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1325
|
-
errorCode = "UnknownError";
|
|
1326
1333
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
1334
|
_b = errorCode;
|
|
1328
1335
|
switch (_b) {
|
|
@@ -1342,10 +1349,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1342
1349
|
case 7: throw _d.sent();
|
|
1343
1350
|
case 8:
|
|
1344
1351
|
parsedBody = parsedOutput.body;
|
|
1352
|
+
$metadata = deserializeMetadata(output);
|
|
1353
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1345
1354
|
response = new __BaseException({
|
|
1346
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1355
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1347
1356
|
$fault: "client",
|
|
1348
|
-
$metadata:
|
|
1357
|
+
$metadata: $metadata,
|
|
1349
1358
|
});
|
|
1350
1359
|
throw __decorateServiceException(response, parsedBody);
|
|
1351
1360
|
}
|
|
@@ -1396,7 +1405,7 @@ export var deserializeAws_restJson1UpdateSuiteDefinitionCommand = function (outp
|
|
|
1396
1405
|
});
|
|
1397
1406
|
}); };
|
|
1398
1407
|
var deserializeAws_restJson1UpdateSuiteDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1399
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1408
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1400
1409
|
var _c;
|
|
1401
1410
|
return __generator(this, function (_d) {
|
|
1402
1411
|
switch (_d.label) {
|
|
@@ -1406,7 +1415,6 @@ var deserializeAws_restJson1UpdateSuiteDefinitionCommandError = function (output
|
|
|
1406
1415
|
return [4, parseBody(output.body, context)];
|
|
1407
1416
|
case 1:
|
|
1408
1417
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1409
|
-
errorCode = "UnknownError";
|
|
1410
1418
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
1419
|
_b = errorCode;
|
|
1412
1420
|
switch (_b) {
|
|
@@ -1422,10 +1430,12 @@ var deserializeAws_restJson1UpdateSuiteDefinitionCommandError = function (output
|
|
|
1422
1430
|
case 5: throw _d.sent();
|
|
1423
1431
|
case 6:
|
|
1424
1432
|
parsedBody = parsedOutput.body;
|
|
1433
|
+
$metadata = deserializeMetadata(output);
|
|
1434
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1425
1435
|
response = new __BaseException({
|
|
1426
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1427
1437
|
$fault: "client",
|
|
1428
|
-
$metadata:
|
|
1438
|
+
$metadata: $metadata,
|
|
1429
1439
|
});
|
|
1430
1440
|
throw __decorateServiceException(response, parsedBody);
|
|
1431
1441
|
}
|
|
@@ -1480,8 +1490,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1480
1490
|
});
|
|
1481
1491
|
}); };
|
|
1482
1492
|
var serializeAws_restJson1DeviceUnderTest = function (input, context) {
|
|
1483
|
-
return __assign(__assign({}, (input.certificateArn
|
|
1484
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn })), (input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn }));
|
|
1493
|
+
return __assign(__assign({}, (input.certificateArn != null && { certificateArn: input.certificateArn })), (input.thingArn != null && { thingArn: input.thingArn }));
|
|
1485
1494
|
};
|
|
1486
1495
|
var serializeAws_restJson1DeviceUnderTestList = function (input, context) {
|
|
1487
1496
|
return input
|
|
@@ -1504,18 +1513,12 @@ var serializeAws_restJson1SelectedTestList = function (input, context) {
|
|
|
1504
1513
|
});
|
|
1505
1514
|
};
|
|
1506
1515
|
var serializeAws_restJson1SuiteDefinitionConfiguration = function (input, context) {
|
|
1507
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.devicePermissionRoleArn
|
|
1508
|
-
input.devicePermissionRoleArn !== null && { devicePermissionRoleArn: input.devicePermissionRoleArn })), (input.devices !== undefined &&
|
|
1509
|
-
input.devices !== null && { devices: serializeAws_restJson1DeviceUnderTestList(input.devices, context) })), (input.intendedForQualification !== undefined &&
|
|
1510
|
-
input.intendedForQualification !== null && { intendedForQualification: input.intendedForQualification })), (input.rootGroup !== undefined && input.rootGroup !== null && { rootGroup: input.rootGroup })), (input.suiteDefinitionName !== undefined &&
|
|
1511
|
-
input.suiteDefinitionName !== null && { suiteDefinitionName: input.suiteDefinitionName }));
|
|
1516
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.devicePermissionRoleArn != null && { devicePermissionRoleArn: input.devicePermissionRoleArn })), (input.devices != null && { devices: serializeAws_restJson1DeviceUnderTestList(input.devices, context) })), (input.intendedForQualification != null && { intendedForQualification: input.intendedForQualification })), (input.rootGroup != null && { rootGroup: input.rootGroup })), (input.suiteDefinitionName != null && { suiteDefinitionName: input.suiteDefinitionName }));
|
|
1512
1517
|
};
|
|
1513
1518
|
var serializeAws_restJson1SuiteRunConfiguration = function (input, context) {
|
|
1514
|
-
return __assign(__assign(__assign({}, (input.parallelRun
|
|
1515
|
-
input.primaryDevice !== null && {
|
|
1519
|
+
return __assign(__assign(__assign({}, (input.parallelRun != null && { parallelRun: input.parallelRun })), (input.primaryDevice != null && {
|
|
1516
1520
|
primaryDevice: serializeAws_restJson1DeviceUnderTest(input.primaryDevice, context),
|
|
1517
|
-
})), (input.selectedTestList
|
|
1518
|
-
input.selectedTestList !== null && {
|
|
1521
|
+
})), (input.selectedTestList != null && {
|
|
1519
1522
|
selectedTestList: serializeAws_restJson1SelectedTestList(input.selectedTestList, context),
|
|
1520
1523
|
}));
|
|
1521
1524
|
};
|
|
@@ -1550,9 +1553,7 @@ var deserializeAws_restJson1GroupResult = function (output, context) {
|
|
|
1550
1553
|
return {
|
|
1551
1554
|
groupId: __expectString(output.groupId),
|
|
1552
1555
|
groupName: __expectString(output.groupName),
|
|
1553
|
-
tests: output.tests
|
|
1554
|
-
? deserializeAws_restJson1TestCaseRuns(output.tests, context)
|
|
1555
|
-
: undefined,
|
|
1556
|
+
tests: output.tests != null ? deserializeAws_restJson1TestCaseRuns(output.tests, context) : undefined,
|
|
1556
1557
|
};
|
|
1557
1558
|
};
|
|
1558
1559
|
var deserializeAws_restJson1GroupResultList = function (output, context) {
|
|
@@ -1580,9 +1581,7 @@ var deserializeAws_restJson1SelectedTestList = function (output, context) {
|
|
|
1580
1581
|
var deserializeAws_restJson1SuiteDefinitionConfiguration = function (output, context) {
|
|
1581
1582
|
return {
|
|
1582
1583
|
devicePermissionRoleArn: __expectString(output.devicePermissionRoleArn),
|
|
1583
|
-
devices: output.devices
|
|
1584
|
-
? deserializeAws_restJson1DeviceUnderTestList(output.devices, context)
|
|
1585
|
-
: undefined,
|
|
1584
|
+
devices: output.devices != null ? deserializeAws_restJson1DeviceUnderTestList(output.devices, context) : undefined,
|
|
1586
1585
|
intendedForQualification: __expectBoolean(output.intendedForQualification),
|
|
1587
1586
|
rootGroup: __expectString(output.rootGroup),
|
|
1588
1587
|
suiteDefinitionName: __expectString(output.suiteDefinitionName),
|
|
@@ -1590,10 +1589,8 @@ var deserializeAws_restJson1SuiteDefinitionConfiguration = function (output, con
|
|
|
1590
1589
|
};
|
|
1591
1590
|
var deserializeAws_restJson1SuiteDefinitionInformation = function (output, context) {
|
|
1592
1591
|
return {
|
|
1593
|
-
createdAt: output.createdAt
|
|
1594
|
-
|
|
1595
|
-
: undefined,
|
|
1596
|
-
defaultDevices: output.defaultDevices !== undefined && output.defaultDevices !== null
|
|
1592
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1593
|
+
defaultDevices: output.defaultDevices != null
|
|
1597
1594
|
? deserializeAws_restJson1DeviceUnderTestList(output.defaultDevices, context)
|
|
1598
1595
|
: undefined,
|
|
1599
1596
|
intendedForQualification: __expectBoolean(output.intendedForQualification),
|
|
@@ -1615,27 +1612,19 @@ var deserializeAws_restJson1SuiteDefinitionInformationList = function (output, c
|
|
|
1615
1612
|
var deserializeAws_restJson1SuiteRunConfiguration = function (output, context) {
|
|
1616
1613
|
return {
|
|
1617
1614
|
parallelRun: __expectBoolean(output.parallelRun),
|
|
1618
|
-
primaryDevice: output.primaryDevice
|
|
1619
|
-
|
|
1620
|
-
: undefined,
|
|
1621
|
-
selectedTestList: output.selectedTestList !== undefined && output.selectedTestList !== null
|
|
1615
|
+
primaryDevice: output.primaryDevice != null ? deserializeAws_restJson1DeviceUnderTest(output.primaryDevice, context) : undefined,
|
|
1616
|
+
selectedTestList: output.selectedTestList != null
|
|
1622
1617
|
? deserializeAws_restJson1SelectedTestList(output.selectedTestList, context)
|
|
1623
1618
|
: undefined,
|
|
1624
1619
|
};
|
|
1625
1620
|
};
|
|
1626
1621
|
var deserializeAws_restJson1SuiteRunInformation = function (output, context) {
|
|
1627
1622
|
return {
|
|
1628
|
-
createdAt: output.createdAt
|
|
1629
|
-
|
|
1630
|
-
: undefined,
|
|
1631
|
-
endAt: output.endAt !== undefined && output.endAt !== null
|
|
1632
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endAt)))
|
|
1633
|
-
: undefined,
|
|
1623
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1624
|
+
endAt: output.endAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endAt))) : undefined,
|
|
1634
1625
|
failed: __expectInt32(output.failed),
|
|
1635
1626
|
passed: __expectInt32(output.passed),
|
|
1636
|
-
startedAt: output.startedAt
|
|
1637
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt)))
|
|
1638
|
-
: undefined,
|
|
1627
|
+
startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
|
|
1639
1628
|
status: __expectString(output.status),
|
|
1640
1629
|
suiteDefinitionId: __expectString(output.suiteDefinitionId),
|
|
1641
1630
|
suiteDefinitionName: __expectString(output.suiteDefinitionName),
|
|
@@ -1666,14 +1655,10 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
1666
1655
|
};
|
|
1667
1656
|
var deserializeAws_restJson1TestCaseRun = function (output, context) {
|
|
1668
1657
|
return {
|
|
1669
|
-
endTime: output.endTime
|
|
1670
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
|
|
1671
|
-
: undefined,
|
|
1658
|
+
endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
|
|
1672
1659
|
failure: __expectString(output.failure),
|
|
1673
1660
|
logUrl: __expectString(output.logUrl),
|
|
1674
|
-
startTime: output.startTime
|
|
1675
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
1676
|
-
: undefined,
|
|
1661
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
1677
1662
|
status: __expectString(output.status),
|
|
1678
1663
|
testCaseDefinitionId: __expectString(output.testCaseDefinitionId),
|
|
1679
1664
|
testCaseDefinitionName: __expectString(output.testCaseDefinitionName),
|
|
@@ -1694,9 +1679,7 @@ var deserializeAws_restJson1TestCaseRuns = function (output, context) {
|
|
|
1694
1679
|
};
|
|
1695
1680
|
var deserializeAws_restJson1TestResult = function (output, context) {
|
|
1696
1681
|
return {
|
|
1697
|
-
groups: output.groups
|
|
1698
|
-
? deserializeAws_restJson1GroupResultList(output.groups, context)
|
|
1699
|
-
: undefined,
|
|
1682
|
+
groups: output.groups != null ? deserializeAws_restJson1GroupResultList(output.groups, context) : undefined,
|
|
1700
1683
|
};
|
|
1701
1684
|
};
|
|
1702
1685
|
var deserializeMetadata = function (output) {
|
|
@@ -1755,5 +1738,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1755
1738
|
if (data["__type"] !== undefined) {
|
|
1756
1739
|
return sanitizeErrorCode(data["__type"]);
|
|
1757
1740
|
}
|
|
1758
|
-
return "";
|
|
1759
1741
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iotdeviceadvisor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iotdeviceadvisor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.128.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.128.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.128.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.128.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.128.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.128.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|