@aws-sdk/client-codeguru-reviewer 3.118.0 → 3.127.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 +147 -183
- package/dist-es/protocols/Aws_restJson1.js +128 -164
- package/package.json +27 -27
|
@@ -16,13 +16,11 @@ const serializeAws_restJson1AssociateRepositoryCommand = async (input, context)
|
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
18
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
19
|
-
...(input.KMSKeyDetails
|
|
20
|
-
input.KMSKeyDetails !== null && {
|
|
19
|
+
...(input.KMSKeyDetails != null && {
|
|
21
20
|
KMSKeyDetails: serializeAws_restJson1KMSKeyDetails(input.KMSKeyDetails, context),
|
|
22
21
|
}),
|
|
23
|
-
...(input.Repository
|
|
24
|
-
|
|
25
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
22
|
+
...(input.Repository != null && { Repository: serializeAws_restJson1Repository(input.Repository, context) }),
|
|
23
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
26
24
|
});
|
|
27
25
|
return new protocol_http_1.HttpRequest({
|
|
28
26
|
protocol,
|
|
@@ -45,11 +43,9 @@ const serializeAws_restJson1CreateCodeReviewCommand = async (input, context) =>
|
|
|
45
43
|
let body;
|
|
46
44
|
body = JSON.stringify({
|
|
47
45
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
48
|
-
...(input.Name
|
|
49
|
-
...(input.RepositoryAssociationArn
|
|
50
|
-
|
|
51
|
-
...(input.Type !== undefined &&
|
|
52
|
-
input.Type !== null && { Type: serializeAws_restJson1CodeReviewType(input.Type, context) }),
|
|
46
|
+
...(input.Name != null && { Name: input.Name }),
|
|
47
|
+
...(input.RepositoryAssociationArn != null && { RepositoryAssociationArn: input.RepositoryAssociationArn }),
|
|
48
|
+
...(input.Type != null && { Type: serializeAws_restJson1CodeReviewType(input.Type, context) }),
|
|
53
49
|
});
|
|
54
50
|
return new protocol_http_1.HttpRequest({
|
|
55
51
|
protocol,
|
|
@@ -329,11 +325,9 @@ const serializeAws_restJson1PutRecommendationFeedbackCommand = async (input, con
|
|
|
329
325
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/feedback";
|
|
330
326
|
let body;
|
|
331
327
|
body = JSON.stringify({
|
|
332
|
-
...(input.CodeReviewArn
|
|
333
|
-
...(input.Reactions
|
|
334
|
-
|
|
335
|
-
...(input.RecommendationId !== undefined &&
|
|
336
|
-
input.RecommendationId !== null && { RecommendationId: input.RecommendationId }),
|
|
328
|
+
...(input.CodeReviewArn != null && { CodeReviewArn: input.CodeReviewArn }),
|
|
329
|
+
...(input.Reactions != null && { Reactions: serializeAws_restJson1Reactions(input.Reactions, context) }),
|
|
330
|
+
...(input.RecommendationId != null && { RecommendationId: input.RecommendationId }),
|
|
337
331
|
});
|
|
338
332
|
return new protocol_http_1.HttpRequest({
|
|
339
333
|
protocol,
|
|
@@ -364,7 +358,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
364
358
|
}
|
|
365
359
|
let body;
|
|
366
360
|
body = JSON.stringify({
|
|
367
|
-
...(input.Tags
|
|
361
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
368
362
|
});
|
|
369
363
|
return new protocol_http_1.HttpRequest({
|
|
370
364
|
protocol,
|
|
@@ -432,8 +426,7 @@ const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, c
|
|
|
432
426
|
body: await parseBody(output.body, context),
|
|
433
427
|
};
|
|
434
428
|
let response;
|
|
435
|
-
|
|
436
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
429
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
437
430
|
switch (errorCode) {
|
|
438
431
|
case "AccessDeniedException":
|
|
439
432
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
@@ -452,10 +445,12 @@ const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, c
|
|
|
452
445
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
453
446
|
default:
|
|
454
447
|
const parsedBody = parsedOutput.body;
|
|
448
|
+
const $metadata = deserializeMetadata(output);
|
|
449
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
455
450
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
456
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
451
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
457
452
|
$fault: "client",
|
|
458
|
-
$metadata
|
|
453
|
+
$metadata,
|
|
459
454
|
});
|
|
460
455
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
461
456
|
}
|
|
@@ -481,8 +476,7 @@ const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, cont
|
|
|
481
476
|
body: await parseBody(output.body, context),
|
|
482
477
|
};
|
|
483
478
|
let response;
|
|
484
|
-
|
|
485
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
479
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
480
|
switch (errorCode) {
|
|
487
481
|
case "AccessDeniedException":
|
|
488
482
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
@@ -504,10 +498,12 @@ const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, cont
|
|
|
504
498
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
505
499
|
default:
|
|
506
500
|
const parsedBody = parsedOutput.body;
|
|
501
|
+
const $metadata = deserializeMetadata(output);
|
|
502
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
507
503
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
508
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
504
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
509
505
|
$fault: "client",
|
|
510
|
-
$metadata
|
|
506
|
+
$metadata,
|
|
511
507
|
});
|
|
512
508
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
513
509
|
}
|
|
@@ -533,8 +529,7 @@ const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, co
|
|
|
533
529
|
body: await parseBody(output.body, context),
|
|
534
530
|
};
|
|
535
531
|
let response;
|
|
536
|
-
|
|
537
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
532
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
538
533
|
switch (errorCode) {
|
|
539
534
|
case "AccessDeniedException":
|
|
540
535
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
@@ -553,10 +548,12 @@ const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, co
|
|
|
553
548
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
554
549
|
default:
|
|
555
550
|
const parsedBody = parsedOutput.body;
|
|
551
|
+
const $metadata = deserializeMetadata(output);
|
|
552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
556
553
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
557
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
554
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
558
555
|
$fault: "client",
|
|
559
|
-
$metadata
|
|
556
|
+
$metadata,
|
|
560
557
|
});
|
|
561
558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
562
559
|
}
|
|
@@ -582,8 +579,7 @@ const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async
|
|
|
582
579
|
body: await parseBody(output.body, context),
|
|
583
580
|
};
|
|
584
581
|
let response;
|
|
585
|
-
|
|
586
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
582
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
587
583
|
switch (errorCode) {
|
|
588
584
|
case "AccessDeniedException":
|
|
589
585
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
@@ -602,10 +598,12 @@ const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async
|
|
|
602
598
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
603
599
|
default:
|
|
604
600
|
const parsedBody = parsedOutput.body;
|
|
601
|
+
const $metadata = deserializeMetadata(output);
|
|
602
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
605
603
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
606
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
604
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
607
605
|
$fault: "client",
|
|
608
|
-
$metadata
|
|
606
|
+
$metadata,
|
|
609
607
|
});
|
|
610
608
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
611
609
|
}
|
|
@@ -635,8 +633,7 @@ const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async
|
|
|
635
633
|
body: await parseBody(output.body, context),
|
|
636
634
|
};
|
|
637
635
|
let response;
|
|
638
|
-
|
|
639
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
636
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
637
|
switch (errorCode) {
|
|
641
638
|
case "AccessDeniedException":
|
|
642
639
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
@@ -655,10 +652,12 @@ const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async
|
|
|
655
652
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
656
653
|
default:
|
|
657
654
|
const parsedBody = parsedOutput.body;
|
|
655
|
+
const $metadata = deserializeMetadata(output);
|
|
656
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
658
657
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
659
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
658
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
660
659
|
$fault: "client",
|
|
661
|
-
$metadata
|
|
660
|
+
$metadata,
|
|
662
661
|
});
|
|
663
662
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
664
663
|
}
|
|
@@ -688,8 +687,7 @@ const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output
|
|
|
688
687
|
body: await parseBody(output.body, context),
|
|
689
688
|
};
|
|
690
689
|
let response;
|
|
691
|
-
|
|
692
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
693
691
|
switch (errorCode) {
|
|
694
692
|
case "AccessDeniedException":
|
|
695
693
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
@@ -711,10 +709,12 @@ const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output
|
|
|
711
709
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
712
710
|
default:
|
|
713
711
|
const parsedBody = parsedOutput.body;
|
|
712
|
+
const $metadata = deserializeMetadata(output);
|
|
713
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
714
714
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
715
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
715
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
716
716
|
$fault: "client",
|
|
717
|
-
$metadata
|
|
717
|
+
$metadata,
|
|
718
718
|
});
|
|
719
719
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
720
720
|
}
|
|
@@ -744,8 +744,7 @@ const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, conte
|
|
|
744
744
|
body: await parseBody(output.body, context),
|
|
745
745
|
};
|
|
746
746
|
let response;
|
|
747
|
-
|
|
748
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
747
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
748
|
switch (errorCode) {
|
|
750
749
|
case "AccessDeniedException":
|
|
751
750
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
@@ -761,10 +760,12 @@ const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, conte
|
|
|
761
760
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
762
761
|
default:
|
|
763
762
|
const parsedBody = parsedOutput.body;
|
|
763
|
+
const $metadata = deserializeMetadata(output);
|
|
764
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
764
765
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
765
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
766
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
766
767
|
$fault: "client",
|
|
767
|
-
$metadata
|
|
768
|
+
$metadata,
|
|
768
769
|
});
|
|
769
770
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
770
771
|
}
|
|
@@ -794,8 +795,7 @@ const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (ou
|
|
|
794
795
|
body: await parseBody(output.body, context),
|
|
795
796
|
};
|
|
796
797
|
let response;
|
|
797
|
-
|
|
798
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
799
|
switch (errorCode) {
|
|
800
800
|
case "AccessDeniedException":
|
|
801
801
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
@@ -814,10 +814,12 @@ const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (ou
|
|
|
814
814
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
815
815
|
default:
|
|
816
816
|
const parsedBody = parsedOutput.body;
|
|
817
|
+
const $metadata = deserializeMetadata(output);
|
|
818
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
817
819
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
818
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
820
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
819
821
|
$fault: "client",
|
|
820
|
-
$metadata
|
|
822
|
+
$metadata,
|
|
821
823
|
});
|
|
822
824
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
823
825
|
}
|
|
@@ -847,8 +849,7 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
|
|
|
847
849
|
body: await parseBody(output.body, context),
|
|
848
850
|
};
|
|
849
851
|
let response;
|
|
850
|
-
|
|
851
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
852
853
|
switch (errorCode) {
|
|
853
854
|
case "AccessDeniedException":
|
|
854
855
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
@@ -867,10 +868,12 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
|
|
|
867
868
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
868
869
|
default:
|
|
869
870
|
const parsedBody = parsedOutput.body;
|
|
871
|
+
const $metadata = deserializeMetadata(output);
|
|
872
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
870
873
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
871
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
874
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
872
875
|
$fault: "client",
|
|
873
|
-
$metadata
|
|
876
|
+
$metadata,
|
|
874
877
|
});
|
|
875
878
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
876
879
|
}
|
|
@@ -900,8 +903,7 @@ const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (ou
|
|
|
900
903
|
body: await parseBody(output.body, context),
|
|
901
904
|
};
|
|
902
905
|
let response;
|
|
903
|
-
|
|
904
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
907
|
switch (errorCode) {
|
|
906
908
|
case "InternalServerException":
|
|
907
909
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
@@ -914,10 +916,12 @@ const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (ou
|
|
|
914
916
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
915
917
|
default:
|
|
916
918
|
const parsedBody = parsedOutput.body;
|
|
919
|
+
const $metadata = deserializeMetadata(output);
|
|
920
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
917
921
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
918
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
922
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
919
923
|
$fault: "client",
|
|
920
|
-
$metadata
|
|
924
|
+
$metadata,
|
|
921
925
|
});
|
|
922
926
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
923
927
|
}
|
|
@@ -943,8 +947,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
943
947
|
body: await parseBody(output.body, context),
|
|
944
948
|
};
|
|
945
949
|
let response;
|
|
946
|
-
|
|
947
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
948
951
|
switch (errorCode) {
|
|
949
952
|
case "InternalServerException":
|
|
950
953
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
@@ -957,10 +960,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
957
960
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
958
961
|
default:
|
|
959
962
|
const parsedBody = parsedOutput.body;
|
|
963
|
+
const $metadata = deserializeMetadata(output);
|
|
964
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
960
965
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
961
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
962
967
|
$fault: "client",
|
|
963
|
-
$metadata
|
|
968
|
+
$metadata,
|
|
964
969
|
});
|
|
965
970
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
966
971
|
}
|
|
@@ -982,8 +987,7 @@ const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (out
|
|
|
982
987
|
body: await parseBody(output.body, context),
|
|
983
988
|
};
|
|
984
989
|
let response;
|
|
985
|
-
|
|
986
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
987
991
|
switch (errorCode) {
|
|
988
992
|
case "AccessDeniedException":
|
|
989
993
|
case "com.amazonaws.codegurureviewer#AccessDeniedException":
|
|
@@ -1002,10 +1006,12 @@ const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (out
|
|
|
1002
1006
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1003
1007
|
default:
|
|
1004
1008
|
const parsedBody = parsedOutput.body;
|
|
1009
|
+
const $metadata = deserializeMetadata(output);
|
|
1010
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1005
1011
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
1006
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1012
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1007
1013
|
$fault: "client",
|
|
1008
|
-
$metadata
|
|
1014
|
+
$metadata,
|
|
1009
1015
|
});
|
|
1010
1016
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1011
1017
|
}
|
|
@@ -1027,8 +1033,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1027
1033
|
body: await parseBody(output.body, context),
|
|
1028
1034
|
};
|
|
1029
1035
|
let response;
|
|
1030
|
-
|
|
1031
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
1037
|
switch (errorCode) {
|
|
1033
1038
|
case "InternalServerException":
|
|
1034
1039
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
@@ -1041,10 +1046,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1041
1046
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1042
1047
|
default:
|
|
1043
1048
|
const parsedBody = parsedOutput.body;
|
|
1049
|
+
const $metadata = deserializeMetadata(output);
|
|
1050
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1044
1051
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
1045
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1052
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1046
1053
|
$fault: "client",
|
|
1047
|
-
$metadata
|
|
1054
|
+
$metadata,
|
|
1048
1055
|
});
|
|
1049
1056
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1050
1057
|
}
|
|
@@ -1066,8 +1073,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1066
1073
|
body: await parseBody(output.body, context),
|
|
1067
1074
|
};
|
|
1068
1075
|
let response;
|
|
1069
|
-
|
|
1070
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1077
|
switch (errorCode) {
|
|
1072
1078
|
case "InternalServerException":
|
|
1073
1079
|
case "com.amazonaws.codegurureviewer#InternalServerException":
|
|
@@ -1080,10 +1086,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1080
1086
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1081
1087
|
default:
|
|
1082
1088
|
const parsedBody = parsedOutput.body;
|
|
1089
|
+
const $metadata = deserializeMetadata(output);
|
|
1090
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1083
1091
|
response = new CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException({
|
|
1084
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1092
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1085
1093
|
$fault: "client",
|
|
1086
|
-
$metadata
|
|
1094
|
+
$metadata,
|
|
1087
1095
|
});
|
|
1088
1096
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1089
1097
|
}
|
|
@@ -1184,59 +1192,50 @@ const serializeAws_restJson1AnalysisTypes = (input, context) => {
|
|
|
1184
1192
|
};
|
|
1185
1193
|
const serializeAws_restJson1BranchDiffSourceCodeType = (input, context) => {
|
|
1186
1194
|
return {
|
|
1187
|
-
...(input.DestinationBranchName
|
|
1188
|
-
|
|
1189
|
-
...(input.SourceBranchName !== undefined &&
|
|
1190
|
-
input.SourceBranchName !== null && { SourceBranchName: input.SourceBranchName }),
|
|
1195
|
+
...(input.DestinationBranchName != null && { DestinationBranchName: input.DestinationBranchName }),
|
|
1196
|
+
...(input.SourceBranchName != null && { SourceBranchName: input.SourceBranchName }),
|
|
1191
1197
|
};
|
|
1192
1198
|
};
|
|
1193
1199
|
const serializeAws_restJson1CodeArtifacts = (input, context) => {
|
|
1194
1200
|
return {
|
|
1195
|
-
...(input.BuildArtifactsObjectKey
|
|
1196
|
-
|
|
1197
|
-
...(input.SourceCodeArtifactsObjectKey !== undefined &&
|
|
1198
|
-
input.SourceCodeArtifactsObjectKey !== null && {
|
|
1201
|
+
...(input.BuildArtifactsObjectKey != null && { BuildArtifactsObjectKey: input.BuildArtifactsObjectKey }),
|
|
1202
|
+
...(input.SourceCodeArtifactsObjectKey != null && {
|
|
1199
1203
|
SourceCodeArtifactsObjectKey: input.SourceCodeArtifactsObjectKey,
|
|
1200
1204
|
}),
|
|
1201
1205
|
};
|
|
1202
1206
|
};
|
|
1203
1207
|
const serializeAws_restJson1CodeCommitRepository = (input, context) => {
|
|
1204
1208
|
return {
|
|
1205
|
-
...(input.Name
|
|
1209
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1206
1210
|
};
|
|
1207
1211
|
};
|
|
1208
1212
|
const serializeAws_restJson1CodeReviewType = (input, context) => {
|
|
1209
1213
|
return {
|
|
1210
|
-
...(input.AnalysisTypes
|
|
1211
|
-
input.AnalysisTypes !== null && {
|
|
1214
|
+
...(input.AnalysisTypes != null && {
|
|
1212
1215
|
AnalysisTypes: serializeAws_restJson1AnalysisTypes(input.AnalysisTypes, context),
|
|
1213
1216
|
}),
|
|
1214
|
-
...(input.RepositoryAnalysis
|
|
1215
|
-
input.RepositoryAnalysis !== null && {
|
|
1217
|
+
...(input.RepositoryAnalysis != null && {
|
|
1216
1218
|
RepositoryAnalysis: serializeAws_restJson1RepositoryAnalysis(input.RepositoryAnalysis, context),
|
|
1217
1219
|
}),
|
|
1218
1220
|
};
|
|
1219
1221
|
};
|
|
1220
1222
|
const serializeAws_restJson1CommitDiffSourceCodeType = (input, context) => {
|
|
1221
1223
|
return {
|
|
1222
|
-
...(input.DestinationCommit
|
|
1223
|
-
|
|
1224
|
-
...(input.
|
|
1225
|
-
input.MergeBaseCommit !== null && { MergeBaseCommit: input.MergeBaseCommit }),
|
|
1226
|
-
...(input.SourceCommit !== undefined && input.SourceCommit !== null && { SourceCommit: input.SourceCommit }),
|
|
1224
|
+
...(input.DestinationCommit != null && { DestinationCommit: input.DestinationCommit }),
|
|
1225
|
+
...(input.MergeBaseCommit != null && { MergeBaseCommit: input.MergeBaseCommit }),
|
|
1226
|
+
...(input.SourceCommit != null && { SourceCommit: input.SourceCommit }),
|
|
1227
1227
|
};
|
|
1228
1228
|
};
|
|
1229
1229
|
const serializeAws_restJson1EventInfo = (input, context) => {
|
|
1230
1230
|
return {
|
|
1231
|
-
...(input.Name
|
|
1232
|
-
...(input.State
|
|
1231
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1232
|
+
...(input.State != null && { State: input.State }),
|
|
1233
1233
|
};
|
|
1234
1234
|
};
|
|
1235
1235
|
const serializeAws_restJson1KMSKeyDetails = (input, context) => {
|
|
1236
1236
|
return {
|
|
1237
|
-
...(input.EncryptionOption
|
|
1238
|
-
|
|
1239
|
-
...(input.KMSKeyId !== undefined && input.KMSKeyId !== null && { KMSKeyId: input.KMSKeyId }),
|
|
1237
|
+
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1238
|
+
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1240
1239
|
};
|
|
1241
1240
|
};
|
|
1242
1241
|
const serializeAws_restJson1Reactions = (input, context) => {
|
|
@@ -1251,90 +1250,76 @@ const serializeAws_restJson1Reactions = (input, context) => {
|
|
|
1251
1250
|
};
|
|
1252
1251
|
const serializeAws_restJson1Repository = (input, context) => {
|
|
1253
1252
|
return {
|
|
1254
|
-
...(input.Bitbucket
|
|
1255
|
-
input.Bitbucket !== null && {
|
|
1253
|
+
...(input.Bitbucket != null && {
|
|
1256
1254
|
Bitbucket: serializeAws_restJson1ThirdPartySourceRepository(input.Bitbucket, context),
|
|
1257
1255
|
}),
|
|
1258
|
-
...(input.CodeCommit
|
|
1259
|
-
input.CodeCommit !== null && {
|
|
1256
|
+
...(input.CodeCommit != null && {
|
|
1260
1257
|
CodeCommit: serializeAws_restJson1CodeCommitRepository(input.CodeCommit, context),
|
|
1261
1258
|
}),
|
|
1262
|
-
...(input.GitHubEnterpriseServer
|
|
1263
|
-
input.GitHubEnterpriseServer !== null && {
|
|
1259
|
+
...(input.GitHubEnterpriseServer != null && {
|
|
1264
1260
|
GitHubEnterpriseServer: serializeAws_restJson1ThirdPartySourceRepository(input.GitHubEnterpriseServer, context),
|
|
1265
1261
|
}),
|
|
1266
|
-
...(input.S3Bucket
|
|
1267
|
-
input.S3Bucket !== null && { S3Bucket: serializeAws_restJson1S3Repository(input.S3Bucket, context) }),
|
|
1262
|
+
...(input.S3Bucket != null && { S3Bucket: serializeAws_restJson1S3Repository(input.S3Bucket, context) }),
|
|
1268
1263
|
};
|
|
1269
1264
|
};
|
|
1270
1265
|
const serializeAws_restJson1RepositoryAnalysis = (input, context) => {
|
|
1271
1266
|
return {
|
|
1272
|
-
...(input.RepositoryHead
|
|
1273
|
-
input.RepositoryHead !== null && {
|
|
1267
|
+
...(input.RepositoryHead != null && {
|
|
1274
1268
|
RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
|
|
1275
1269
|
}),
|
|
1276
|
-
...(input.SourceCodeType
|
|
1277
|
-
input.SourceCodeType !== null && {
|
|
1270
|
+
...(input.SourceCodeType != null && {
|
|
1278
1271
|
SourceCodeType: serializeAws_restJson1SourceCodeType(input.SourceCodeType, context),
|
|
1279
1272
|
}),
|
|
1280
1273
|
};
|
|
1281
1274
|
};
|
|
1282
1275
|
const serializeAws_restJson1RepositoryHeadSourceCodeType = (input, context) => {
|
|
1283
1276
|
return {
|
|
1284
|
-
...(input.BranchName
|
|
1277
|
+
...(input.BranchName != null && { BranchName: input.BranchName }),
|
|
1285
1278
|
};
|
|
1286
1279
|
};
|
|
1287
1280
|
const serializeAws_restJson1RequestMetadata = (input, context) => {
|
|
1288
1281
|
return {
|
|
1289
|
-
...(input.EventInfo
|
|
1290
|
-
|
|
1291
|
-
...(input.
|
|
1292
|
-
...(input.
|
|
1293
|
-
...(input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName }),
|
|
1282
|
+
...(input.EventInfo != null && { EventInfo: serializeAws_restJson1EventInfo(input.EventInfo, context) }),
|
|
1283
|
+
...(input.RequestId != null && { RequestId: input.RequestId }),
|
|
1284
|
+
...(input.Requester != null && { Requester: input.Requester }),
|
|
1285
|
+
...(input.VendorName != null && { VendorName: input.VendorName }),
|
|
1294
1286
|
};
|
|
1295
1287
|
};
|
|
1296
1288
|
const serializeAws_restJson1S3BucketRepository = (input, context) => {
|
|
1297
1289
|
return {
|
|
1298
|
-
...(input.Details
|
|
1299
|
-
|
|
1300
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
1290
|
+
...(input.Details != null && { Details: serializeAws_restJson1S3RepositoryDetails(input.Details, context) }),
|
|
1291
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1301
1292
|
};
|
|
1302
1293
|
};
|
|
1303
1294
|
const serializeAws_restJson1S3Repository = (input, context) => {
|
|
1304
1295
|
return {
|
|
1305
|
-
...(input.BucketName
|
|
1306
|
-
...(input.Name
|
|
1296
|
+
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1297
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1307
1298
|
};
|
|
1308
1299
|
};
|
|
1309
1300
|
const serializeAws_restJson1S3RepositoryDetails = (input, context) => {
|
|
1310
1301
|
return {
|
|
1311
|
-
...(input.BucketName
|
|
1312
|
-
...(input.CodeArtifacts
|
|
1313
|
-
input.CodeArtifacts !== null && {
|
|
1302
|
+
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1303
|
+
...(input.CodeArtifacts != null && {
|
|
1314
1304
|
CodeArtifacts: serializeAws_restJson1CodeArtifacts(input.CodeArtifacts, context),
|
|
1315
1305
|
}),
|
|
1316
1306
|
};
|
|
1317
1307
|
};
|
|
1318
1308
|
const serializeAws_restJson1SourceCodeType = (input, context) => {
|
|
1319
1309
|
return {
|
|
1320
|
-
...(input.BranchDiff
|
|
1321
|
-
input.BranchDiff !== null && {
|
|
1310
|
+
...(input.BranchDiff != null && {
|
|
1322
1311
|
BranchDiff: serializeAws_restJson1BranchDiffSourceCodeType(input.BranchDiff, context),
|
|
1323
1312
|
}),
|
|
1324
|
-
...(input.CommitDiff
|
|
1325
|
-
input.CommitDiff !== null && {
|
|
1313
|
+
...(input.CommitDiff != null && {
|
|
1326
1314
|
CommitDiff: serializeAws_restJson1CommitDiffSourceCodeType(input.CommitDiff, context),
|
|
1327
1315
|
}),
|
|
1328
|
-
...(input.RepositoryHead
|
|
1329
|
-
input.RepositoryHead !== null && {
|
|
1316
|
+
...(input.RepositoryHead != null && {
|
|
1330
1317
|
RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
|
|
1331
1318
|
}),
|
|
1332
|
-
...(input.RequestMetadata
|
|
1333
|
-
input.RequestMetadata !== null && {
|
|
1319
|
+
...(input.RequestMetadata != null && {
|
|
1334
1320
|
RequestMetadata: serializeAws_restJson1RequestMetadata(input.RequestMetadata, context),
|
|
1335
1321
|
}),
|
|
1336
|
-
...(input.S3BucketRepository
|
|
1337
|
-
input.S3BucketRepository !== null && {
|
|
1322
|
+
...(input.S3BucketRepository != null && {
|
|
1338
1323
|
S3BucketRepository: serializeAws_restJson1S3BucketRepository(input.S3BucketRepository, context),
|
|
1339
1324
|
}),
|
|
1340
1325
|
};
|
|
@@ -1352,9 +1337,9 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1352
1337
|
};
|
|
1353
1338
|
const serializeAws_restJson1ThirdPartySourceRepository = (input, context) => {
|
|
1354
1339
|
return {
|
|
1355
|
-
...(input.ConnectionArn
|
|
1356
|
-
...(input.Name
|
|
1357
|
-
...(input.Owner
|
|
1340
|
+
...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
|
|
1341
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1342
|
+
...(input.Owner != null && { Owner: input.Owner }),
|
|
1358
1343
|
};
|
|
1359
1344
|
};
|
|
1360
1345
|
const deserializeAws_restJson1AnalysisTypes = (output, context) => {
|
|
@@ -1382,27 +1367,23 @@ const deserializeAws_restJson1CodeArtifacts = (output, context) => {
|
|
|
1382
1367
|
};
|
|
1383
1368
|
const deserializeAws_restJson1CodeReview = (output, context) => {
|
|
1384
1369
|
return {
|
|
1385
|
-
AnalysisTypes: output.AnalysisTypes
|
|
1386
|
-
? deserializeAws_restJson1AnalysisTypes(output.AnalysisTypes, context)
|
|
1387
|
-
: undefined,
|
|
1370
|
+
AnalysisTypes: output.AnalysisTypes != null ? deserializeAws_restJson1AnalysisTypes(output.AnalysisTypes, context) : undefined,
|
|
1388
1371
|
AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
|
|
1389
1372
|
CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
|
|
1390
1373
|
ConfigFileState: (0, smithy_client_1.expectString)(output.ConfigFileState),
|
|
1391
|
-
CreatedTimeStamp: output.CreatedTimeStamp
|
|
1374
|
+
CreatedTimeStamp: output.CreatedTimeStamp != null
|
|
1392
1375
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
|
|
1393
1376
|
: undefined,
|
|
1394
|
-
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp
|
|
1377
|
+
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
|
|
1395
1378
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
|
|
1396
1379
|
: undefined,
|
|
1397
|
-
Metrics: output.Metrics
|
|
1398
|
-
? deserializeAws_restJson1Metrics(output.Metrics, context)
|
|
1399
|
-
: undefined,
|
|
1380
|
+
Metrics: output.Metrics != null ? deserializeAws_restJson1Metrics(output.Metrics, context) : undefined,
|
|
1400
1381
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1401
1382
|
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
1402
1383
|
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
1403
1384
|
PullRequestId: (0, smithy_client_1.expectString)(output.PullRequestId),
|
|
1404
1385
|
RepositoryName: (0, smithy_client_1.expectString)(output.RepositoryName),
|
|
1405
|
-
SourceCodeType: output.SourceCodeType
|
|
1386
|
+
SourceCodeType: output.SourceCodeType != null
|
|
1406
1387
|
? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
|
|
1407
1388
|
: undefined,
|
|
1408
1389
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
@@ -1424,13 +1405,13 @@ const deserializeAws_restJson1CodeReviewSummaries = (output, context) => {
|
|
|
1424
1405
|
const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
|
|
1425
1406
|
return {
|
|
1426
1407
|
CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
|
|
1427
|
-
CreatedTimeStamp: output.CreatedTimeStamp
|
|
1408
|
+
CreatedTimeStamp: output.CreatedTimeStamp != null
|
|
1428
1409
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
|
|
1429
1410
|
: undefined,
|
|
1430
|
-
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp
|
|
1411
|
+
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
|
|
1431
1412
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
|
|
1432
1413
|
: undefined,
|
|
1433
|
-
MetricsSummary: output.MetricsSummary
|
|
1414
|
+
MetricsSummary: output.MetricsSummary != null
|
|
1434
1415
|
? deserializeAws_restJson1MetricsSummary(output.MetricsSummary, context)
|
|
1435
1416
|
: undefined,
|
|
1436
1417
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -1438,7 +1419,7 @@ const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
|
|
|
1438
1419
|
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
1439
1420
|
PullRequestId: (0, smithy_client_1.expectString)(output.PullRequestId),
|
|
1440
1421
|
RepositoryName: (0, smithy_client_1.expectString)(output.RepositoryName),
|
|
1441
|
-
SourceCodeType: output.SourceCodeType
|
|
1422
|
+
SourceCodeType: output.SourceCodeType != null
|
|
1442
1423
|
? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
|
|
1443
1424
|
: undefined,
|
|
1444
1425
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
@@ -1492,15 +1473,13 @@ const deserializeAws_restJson1Reactions = (output, context) => {
|
|
|
1492
1473
|
const deserializeAws_restJson1RecommendationFeedback = (output, context) => {
|
|
1493
1474
|
return {
|
|
1494
1475
|
CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
|
|
1495
|
-
CreatedTimeStamp: output.CreatedTimeStamp
|
|
1476
|
+
CreatedTimeStamp: output.CreatedTimeStamp != null
|
|
1496
1477
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
|
|
1497
1478
|
: undefined,
|
|
1498
|
-
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp
|
|
1479
|
+
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
|
|
1499
1480
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
|
|
1500
1481
|
: undefined,
|
|
1501
|
-
Reactions: output.Reactions
|
|
1502
|
-
? deserializeAws_restJson1Reactions(output.Reactions, context)
|
|
1503
|
-
: undefined,
|
|
1482
|
+
Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
|
|
1504
1483
|
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
1505
1484
|
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
1506
1485
|
};
|
|
@@ -1518,9 +1497,7 @@ const deserializeAws_restJson1RecommendationFeedbackSummaries = (output, context
|
|
|
1518
1497
|
};
|
|
1519
1498
|
const deserializeAws_restJson1RecommendationFeedbackSummary = (output, context) => {
|
|
1520
1499
|
return {
|
|
1521
|
-
Reactions: output.Reactions
|
|
1522
|
-
? deserializeAws_restJson1Reactions(output.Reactions, context)
|
|
1523
|
-
: undefined,
|
|
1500
|
+
Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
|
|
1524
1501
|
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
1525
1502
|
UserId: (0, smithy_client_1.expectString)(output.UserId),
|
|
1526
1503
|
};
|
|
@@ -1543,9 +1520,7 @@ const deserializeAws_restJson1RecommendationSummary = (output, context) => {
|
|
|
1543
1520
|
FilePath: (0, smithy_client_1.expectString)(output.FilePath),
|
|
1544
1521
|
RecommendationCategory: (0, smithy_client_1.expectString)(output.RecommendationCategory),
|
|
1545
1522
|
RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
|
|
1546
|
-
RuleMetadata: output.RuleMetadata
|
|
1547
|
-
? deserializeAws_restJson1RuleMetadata(output.RuleMetadata, context)
|
|
1548
|
-
: undefined,
|
|
1523
|
+
RuleMetadata: output.RuleMetadata != null ? deserializeAws_restJson1RuleMetadata(output.RuleMetadata, context) : undefined,
|
|
1549
1524
|
Severity: (0, smithy_client_1.expectString)(output.Severity),
|
|
1550
1525
|
StartLine: (0, smithy_client_1.expectInt32)(output.StartLine),
|
|
1551
1526
|
};
|
|
@@ -1555,19 +1530,17 @@ const deserializeAws_restJson1RepositoryAssociation = (output, context) => {
|
|
|
1555
1530
|
AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
|
|
1556
1531
|
AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
|
|
1557
1532
|
ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
|
|
1558
|
-
CreatedTimeStamp: output.CreatedTimeStamp
|
|
1533
|
+
CreatedTimeStamp: output.CreatedTimeStamp != null
|
|
1559
1534
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
|
|
1560
1535
|
: undefined,
|
|
1561
|
-
KMSKeyDetails: output.KMSKeyDetails
|
|
1562
|
-
|
|
1563
|
-
: undefined,
|
|
1564
|
-
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp !== undefined && output.LastUpdatedTimeStamp !== null
|
|
1536
|
+
KMSKeyDetails: output.KMSKeyDetails != null ? deserializeAws_restJson1KMSKeyDetails(output.KMSKeyDetails, context) : undefined,
|
|
1537
|
+
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
|
|
1565
1538
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
|
|
1566
1539
|
: undefined,
|
|
1567
1540
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1568
1541
|
Owner: (0, smithy_client_1.expectString)(output.Owner),
|
|
1569
1542
|
ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
|
|
1570
|
-
S3RepositoryDetails: output.S3RepositoryDetails
|
|
1543
|
+
S3RepositoryDetails: output.S3RepositoryDetails != null
|
|
1571
1544
|
? deserializeAws_restJson1S3RepositoryDetails(output.S3RepositoryDetails, context)
|
|
1572
1545
|
: undefined,
|
|
1573
1546
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
@@ -1590,7 +1563,7 @@ const deserializeAws_restJson1RepositoryAssociationSummary = (output, context) =
|
|
|
1590
1563
|
AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
|
|
1591
1564
|
AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
|
|
1592
1565
|
ConnectionArn: (0, smithy_client_1.expectString)(output.ConnectionArn),
|
|
1593
|
-
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp
|
|
1566
|
+
LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
|
|
1594
1567
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
|
|
1595
1568
|
: undefined,
|
|
1596
1569
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -1606,9 +1579,7 @@ const deserializeAws_restJson1RepositoryHeadSourceCodeType = (output, context) =
|
|
|
1606
1579
|
};
|
|
1607
1580
|
const deserializeAws_restJson1RequestMetadata = (output, context) => {
|
|
1608
1581
|
return {
|
|
1609
|
-
EventInfo: output.EventInfo
|
|
1610
|
-
? deserializeAws_restJson1EventInfo(output.EventInfo, context)
|
|
1611
|
-
: undefined,
|
|
1582
|
+
EventInfo: output.EventInfo != null ? deserializeAws_restJson1EventInfo(output.EventInfo, context) : undefined,
|
|
1612
1583
|
RequestId: (0, smithy_client_1.expectString)(output.RequestId),
|
|
1613
1584
|
Requester: (0, smithy_client_1.expectString)(output.Requester),
|
|
1614
1585
|
VendorName: (0, smithy_client_1.expectString)(output.VendorName),
|
|
@@ -1619,9 +1590,7 @@ const deserializeAws_restJson1RuleMetadata = (output, context) => {
|
|
|
1619
1590
|
LongDescription: (0, smithy_client_1.expectString)(output.LongDescription),
|
|
1620
1591
|
RuleId: (0, smithy_client_1.expectString)(output.RuleId),
|
|
1621
1592
|
RuleName: (0, smithy_client_1.expectString)(output.RuleName),
|
|
1622
|
-
RuleTags: output.RuleTags
|
|
1623
|
-
? deserializeAws_restJson1RuleTags(output.RuleTags, context)
|
|
1624
|
-
: undefined,
|
|
1593
|
+
RuleTags: output.RuleTags != null ? deserializeAws_restJson1RuleTags(output.RuleTags, context) : undefined,
|
|
1625
1594
|
ShortDescription: (0, smithy_client_1.expectString)(output.ShortDescription),
|
|
1626
1595
|
};
|
|
1627
1596
|
};
|
|
@@ -1638,35 +1607,31 @@ const deserializeAws_restJson1RuleTags = (output, context) => {
|
|
|
1638
1607
|
};
|
|
1639
1608
|
const deserializeAws_restJson1S3BucketRepository = (output, context) => {
|
|
1640
1609
|
return {
|
|
1641
|
-
Details: output.Details
|
|
1642
|
-
? deserializeAws_restJson1S3RepositoryDetails(output.Details, context)
|
|
1643
|
-
: undefined,
|
|
1610
|
+
Details: output.Details != null ? deserializeAws_restJson1S3RepositoryDetails(output.Details, context) : undefined,
|
|
1644
1611
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1645
1612
|
};
|
|
1646
1613
|
};
|
|
1647
1614
|
const deserializeAws_restJson1S3RepositoryDetails = (output, context) => {
|
|
1648
1615
|
return {
|
|
1649
1616
|
BucketName: (0, smithy_client_1.expectString)(output.BucketName),
|
|
1650
|
-
CodeArtifacts: output.CodeArtifacts
|
|
1651
|
-
? deserializeAws_restJson1CodeArtifacts(output.CodeArtifacts, context)
|
|
1652
|
-
: undefined,
|
|
1617
|
+
CodeArtifacts: output.CodeArtifacts != null ? deserializeAws_restJson1CodeArtifacts(output.CodeArtifacts, context) : undefined,
|
|
1653
1618
|
};
|
|
1654
1619
|
};
|
|
1655
1620
|
const deserializeAws_restJson1SourceCodeType = (output, context) => {
|
|
1656
1621
|
return {
|
|
1657
|
-
BranchDiff: output.BranchDiff
|
|
1622
|
+
BranchDiff: output.BranchDiff != null
|
|
1658
1623
|
? deserializeAws_restJson1BranchDiffSourceCodeType(output.BranchDiff, context)
|
|
1659
1624
|
: undefined,
|
|
1660
|
-
CommitDiff: output.CommitDiff
|
|
1625
|
+
CommitDiff: output.CommitDiff != null
|
|
1661
1626
|
? deserializeAws_restJson1CommitDiffSourceCodeType(output.CommitDiff, context)
|
|
1662
1627
|
: undefined,
|
|
1663
|
-
RepositoryHead: output.RepositoryHead
|
|
1628
|
+
RepositoryHead: output.RepositoryHead != null
|
|
1664
1629
|
? deserializeAws_restJson1RepositoryHeadSourceCodeType(output.RepositoryHead, context)
|
|
1665
1630
|
: undefined,
|
|
1666
|
-
RequestMetadata: output.RequestMetadata
|
|
1631
|
+
RequestMetadata: output.RequestMetadata != null
|
|
1667
1632
|
? deserializeAws_restJson1RequestMetadata(output.RequestMetadata, context)
|
|
1668
1633
|
: undefined,
|
|
1669
|
-
S3BucketRepository: output.S3BucketRepository
|
|
1634
|
+
S3BucketRepository: output.S3BucketRepository != null
|
|
1670
1635
|
? deserializeAws_restJson1S3BucketRepository(output.S3BucketRepository, context)
|
|
1671
1636
|
: undefined,
|
|
1672
1637
|
};
|
|
@@ -1731,5 +1696,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1731
1696
|
if (data["__type"] !== undefined) {
|
|
1732
1697
|
return sanitizeErrorCode(data["__type"]);
|
|
1733
1698
|
}
|
|
1734
|
-
return "";
|
|
1735
1699
|
};
|