@aws-sdk/client-codeguru-reviewer 3.51.0 → 3.54.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/index.js +3 -0
- package/dist-cjs/models/CodeGuruReviewerServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +101 -2
- package/dist-cjs/protocols/Aws_restJson1.js +177 -574
- package/dist-es/index.js +1 -0
- package/dist-es/models/CodeGuruReviewerServiceException.js +12 -0
- package/dist-es/models/models_0.js +93 -1
- package/dist-es/protocols/Aws_restJson1.js +339 -638
- package/dist-types/CodeGuruReviewerClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CodeGuruReviewerServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -22
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CodeGuruReviewerClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CodeGuruReviewerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -22
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +34 -34
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
+
import { CodeGuruReviewerServiceException as __BaseException } from "../models/CodeGuruReviewerServiceException";
|
|
6
|
+
import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
7
|
export var serializeAws_restJson1AssociateRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
8
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
7
9
|
var _c;
|
|
@@ -459,16 +461,16 @@ export var deserializeAws_restJson1AssociateRepositoryCommand = function (output
|
|
|
459
461
|
});
|
|
460
462
|
}); };
|
|
461
463
|
var deserializeAws_restJson1AssociateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
462
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
463
|
-
var
|
|
464
|
-
return __generator(this, function (
|
|
465
|
-
switch (
|
|
464
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
465
|
+
var _c;
|
|
466
|
+
return __generator(this, function (_d) {
|
|
467
|
+
switch (_d.label) {
|
|
466
468
|
case 0:
|
|
467
469
|
_a = [__assign({}, output)];
|
|
468
|
-
|
|
470
|
+
_c = {};
|
|
469
471
|
return [4, parseBody(output.body, context)];
|
|
470
472
|
case 1:
|
|
471
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
473
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
472
474
|
errorCode = "UnknownError";
|
|
473
475
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
474
476
|
_b = errorCode;
|
|
@@ -485,46 +487,24 @@ var deserializeAws_restJson1AssociateRepositoryCommandError = function (output,
|
|
|
485
487
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
486
488
|
}
|
|
487
489
|
return [3, 12];
|
|
488
|
-
case 2:
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
case
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
case 4
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
case
|
|
498
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
499
|
-
return [3, 13];
|
|
500
|
-
case 6:
|
|
501
|
-
_e = [{}];
|
|
502
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
503
|
-
case 7:
|
|
504
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
505
|
-
return [3, 13];
|
|
506
|
-
case 8:
|
|
507
|
-
_f = [{}];
|
|
508
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
509
|
-
case 9:
|
|
510
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
511
|
-
return [3, 13];
|
|
512
|
-
case 10:
|
|
513
|
-
_g = [{}];
|
|
514
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
515
|
-
case 11:
|
|
516
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
517
|
-
return [3, 13];
|
|
490
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
491
|
+
case 3: throw _d.sent();
|
|
492
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
493
|
+
case 5: throw _d.sent();
|
|
494
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
495
|
+
case 7: throw _d.sent();
|
|
496
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
497
|
+
case 9: throw _d.sent();
|
|
498
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
499
|
+
case 11: throw _d.sent();
|
|
518
500
|
case 12:
|
|
519
501
|
parsedBody = parsedOutput.body;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
response
|
|
526
|
-
delete response.Message;
|
|
527
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
502
|
+
response = new __BaseException({
|
|
503
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
504
|
+
$fault: "client",
|
|
505
|
+
$metadata: deserializeMetadata(output),
|
|
506
|
+
});
|
|
507
|
+
throw __decorateServiceException(response, parsedBody);
|
|
528
508
|
}
|
|
529
509
|
});
|
|
530
510
|
}); };
|
|
@@ -553,16 +533,16 @@ export var deserializeAws_restJson1CreateCodeReviewCommand = function (output, c
|
|
|
553
533
|
});
|
|
554
534
|
}); };
|
|
555
535
|
var deserializeAws_restJson1CreateCodeReviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
556
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
557
|
-
var
|
|
558
|
-
return __generator(this, function (
|
|
559
|
-
switch (
|
|
536
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
537
|
+
var _c;
|
|
538
|
+
return __generator(this, function (_d) {
|
|
539
|
+
switch (_d.label) {
|
|
560
540
|
case 0:
|
|
561
541
|
_a = [__assign({}, output)];
|
|
562
|
-
|
|
542
|
+
_c = {};
|
|
563
543
|
return [4, parseBody(output.body, context)];
|
|
564
544
|
case 1:
|
|
565
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
545
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
566
546
|
errorCode = "UnknownError";
|
|
567
547
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
548
|
_b = errorCode;
|
|
@@ -581,52 +561,26 @@ var deserializeAws_restJson1CreateCodeReviewCommandError = function (output, con
|
|
|
581
561
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 12];
|
|
582
562
|
}
|
|
583
563
|
return [3, 14];
|
|
584
|
-
case 2:
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
case
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
case 4
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
case
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
case 6:
|
|
597
|
-
_e = [{}];
|
|
598
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
599
|
-
case 7:
|
|
600
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
601
|
-
return [3, 15];
|
|
602
|
-
case 8:
|
|
603
|
-
_f = [{}];
|
|
604
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
605
|
-
case 9:
|
|
606
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
607
|
-
return [3, 15];
|
|
608
|
-
case 10:
|
|
609
|
-
_g = [{}];
|
|
610
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
611
|
-
case 11:
|
|
612
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
613
|
-
return [3, 15];
|
|
614
|
-
case 12:
|
|
615
|
-
_h = [{}];
|
|
616
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
617
|
-
case 13:
|
|
618
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
619
|
-
return [3, 15];
|
|
564
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
565
|
+
case 3: throw _d.sent();
|
|
566
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
567
|
+
case 5: throw _d.sent();
|
|
568
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
569
|
+
case 7: throw _d.sent();
|
|
570
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
571
|
+
case 9: throw _d.sent();
|
|
572
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
573
|
+
case 11: throw _d.sent();
|
|
574
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
575
|
+
case 13: throw _d.sent();
|
|
620
576
|
case 14:
|
|
621
577
|
parsedBody = parsedOutput.body;
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
response
|
|
628
|
-
delete response.Message;
|
|
629
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
578
|
+
response = new __BaseException({
|
|
579
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
580
|
+
$fault: "client",
|
|
581
|
+
$metadata: deserializeMetadata(output),
|
|
582
|
+
});
|
|
583
|
+
throw __decorateServiceException(response, parsedBody);
|
|
630
584
|
}
|
|
631
585
|
});
|
|
632
586
|
}); };
|
|
@@ -655,16 +609,16 @@ export var deserializeAws_restJson1DescribeCodeReviewCommand = function (output,
|
|
|
655
609
|
});
|
|
656
610
|
}); };
|
|
657
611
|
var deserializeAws_restJson1DescribeCodeReviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
658
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
659
|
-
var
|
|
660
|
-
return __generator(this, function (
|
|
661
|
-
switch (
|
|
612
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
613
|
+
var _c;
|
|
614
|
+
return __generator(this, function (_d) {
|
|
615
|
+
switch (_d.label) {
|
|
662
616
|
case 0:
|
|
663
617
|
_a = [__assign({}, output)];
|
|
664
|
-
|
|
618
|
+
_c = {};
|
|
665
619
|
return [4, parseBody(output.body, context)];
|
|
666
620
|
case 1:
|
|
667
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
621
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
668
622
|
errorCode = "UnknownError";
|
|
669
623
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
670
624
|
_b = errorCode;
|
|
@@ -681,46 +635,24 @@ var deserializeAws_restJson1DescribeCodeReviewCommandError = function (output, c
|
|
|
681
635
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
682
636
|
}
|
|
683
637
|
return [3, 12];
|
|
684
|
-
case 2:
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
case
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
case 4
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
case
|
|
694
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
695
|
-
return [3, 13];
|
|
696
|
-
case 6:
|
|
697
|
-
_e = [{}];
|
|
698
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
699
|
-
case 7:
|
|
700
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
701
|
-
return [3, 13];
|
|
702
|
-
case 8:
|
|
703
|
-
_f = [{}];
|
|
704
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
705
|
-
case 9:
|
|
706
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
707
|
-
return [3, 13];
|
|
708
|
-
case 10:
|
|
709
|
-
_g = [{}];
|
|
710
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
711
|
-
case 11:
|
|
712
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
713
|
-
return [3, 13];
|
|
638
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
639
|
+
case 3: throw _d.sent();
|
|
640
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
641
|
+
case 5: throw _d.sent();
|
|
642
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
643
|
+
case 7: throw _d.sent();
|
|
644
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
645
|
+
case 9: throw _d.sent();
|
|
646
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
647
|
+
case 11: throw _d.sent();
|
|
714
648
|
case 12:
|
|
715
649
|
parsedBody = parsedOutput.body;
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
response
|
|
722
|
-
delete response.Message;
|
|
723
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
650
|
+
response = new __BaseException({
|
|
651
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
652
|
+
$fault: "client",
|
|
653
|
+
$metadata: deserializeMetadata(output),
|
|
654
|
+
});
|
|
655
|
+
throw __decorateServiceException(response, parsedBody);
|
|
724
656
|
}
|
|
725
657
|
});
|
|
726
658
|
}); };
|
|
@@ -749,16 +681,16 @@ export var deserializeAws_restJson1DescribeRecommendationFeedbackCommand = funct
|
|
|
749
681
|
});
|
|
750
682
|
}); };
|
|
751
683
|
var deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
752
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
753
|
-
var
|
|
754
|
-
return __generator(this, function (
|
|
755
|
-
switch (
|
|
684
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
685
|
+
var _c;
|
|
686
|
+
return __generator(this, function (_d) {
|
|
687
|
+
switch (_d.label) {
|
|
756
688
|
case 0:
|
|
757
689
|
_a = [__assign({}, output)];
|
|
758
|
-
|
|
690
|
+
_c = {};
|
|
759
691
|
return [4, parseBody(output.body, context)];
|
|
760
692
|
case 1:
|
|
761
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
693
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
762
694
|
errorCode = "UnknownError";
|
|
763
695
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
696
|
_b = errorCode;
|
|
@@ -775,46 +707,24 @@ var deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = functio
|
|
|
775
707
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
776
708
|
}
|
|
777
709
|
return [3, 12];
|
|
778
|
-
case 2:
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
case
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
case 4
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
case
|
|
788
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
789
|
-
return [3, 13];
|
|
790
|
-
case 6:
|
|
791
|
-
_e = [{}];
|
|
792
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
793
|
-
case 7:
|
|
794
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
795
|
-
return [3, 13];
|
|
796
|
-
case 8:
|
|
797
|
-
_f = [{}];
|
|
798
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
799
|
-
case 9:
|
|
800
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
801
|
-
return [3, 13];
|
|
802
|
-
case 10:
|
|
803
|
-
_g = [{}];
|
|
804
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
805
|
-
case 11:
|
|
806
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
807
|
-
return [3, 13];
|
|
710
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
711
|
+
case 3: throw _d.sent();
|
|
712
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
713
|
+
case 5: throw _d.sent();
|
|
714
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
715
|
+
case 7: throw _d.sent();
|
|
716
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
717
|
+
case 9: throw _d.sent();
|
|
718
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
719
|
+
case 11: throw _d.sent();
|
|
808
720
|
case 12:
|
|
809
721
|
parsedBody = parsedOutput.body;
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
response
|
|
816
|
-
delete response.Message;
|
|
817
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
722
|
+
response = new __BaseException({
|
|
723
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
724
|
+
$fault: "client",
|
|
725
|
+
$metadata: deserializeMetadata(output),
|
|
726
|
+
});
|
|
727
|
+
throw __decorateServiceException(response, parsedBody);
|
|
818
728
|
}
|
|
819
729
|
});
|
|
820
730
|
}); };
|
|
@@ -847,16 +757,16 @@ export var deserializeAws_restJson1DescribeRepositoryAssociationCommand = functi
|
|
|
847
757
|
});
|
|
848
758
|
}); };
|
|
849
759
|
var deserializeAws_restJson1DescribeRepositoryAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
850
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
851
|
-
var
|
|
852
|
-
return __generator(this, function (
|
|
853
|
-
switch (
|
|
760
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
761
|
+
var _c;
|
|
762
|
+
return __generator(this, function (_d) {
|
|
763
|
+
switch (_d.label) {
|
|
854
764
|
case 0:
|
|
855
765
|
_a = [__assign({}, output)];
|
|
856
|
-
|
|
766
|
+
_c = {};
|
|
857
767
|
return [4, parseBody(output.body, context)];
|
|
858
768
|
case 1:
|
|
859
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
769
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
860
770
|
errorCode = "UnknownError";
|
|
861
771
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
772
|
_b = errorCode;
|
|
@@ -873,46 +783,24 @@ var deserializeAws_restJson1DescribeRepositoryAssociationCommandError = function
|
|
|
873
783
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
874
784
|
}
|
|
875
785
|
return [3, 12];
|
|
876
|
-
case 2:
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
case
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
case 4
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
case
|
|
886
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
887
|
-
return [3, 13];
|
|
888
|
-
case 6:
|
|
889
|
-
_e = [{}];
|
|
890
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
891
|
-
case 7:
|
|
892
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
893
|
-
return [3, 13];
|
|
894
|
-
case 8:
|
|
895
|
-
_f = [{}];
|
|
896
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
897
|
-
case 9:
|
|
898
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
899
|
-
return [3, 13];
|
|
900
|
-
case 10:
|
|
901
|
-
_g = [{}];
|
|
902
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
903
|
-
case 11:
|
|
904
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
905
|
-
return [3, 13];
|
|
786
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
787
|
+
case 3: throw _d.sent();
|
|
788
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
789
|
+
case 5: throw _d.sent();
|
|
790
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
791
|
+
case 7: throw _d.sent();
|
|
792
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
793
|
+
case 9: throw _d.sent();
|
|
794
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
795
|
+
case 11: throw _d.sent();
|
|
906
796
|
case 12:
|
|
907
797
|
parsedBody = parsedOutput.body;
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
response
|
|
914
|
-
delete response.Message;
|
|
915
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
798
|
+
response = new __BaseException({
|
|
799
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
800
|
+
$fault: "client",
|
|
801
|
+
$metadata: deserializeMetadata(output),
|
|
802
|
+
});
|
|
803
|
+
throw __decorateServiceException(response, parsedBody);
|
|
916
804
|
}
|
|
917
805
|
});
|
|
918
806
|
}); };
|
|
@@ -945,16 +833,16 @@ export var deserializeAws_restJson1DisassociateRepositoryCommand = function (out
|
|
|
945
833
|
});
|
|
946
834
|
}); };
|
|
947
835
|
var deserializeAws_restJson1DisassociateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
948
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
949
|
-
var
|
|
950
|
-
return __generator(this, function (
|
|
951
|
-
switch (
|
|
836
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
837
|
+
var _c;
|
|
838
|
+
return __generator(this, function (_d) {
|
|
839
|
+
switch (_d.label) {
|
|
952
840
|
case 0:
|
|
953
841
|
_a = [__assign({}, output)];
|
|
954
|
-
|
|
842
|
+
_c = {};
|
|
955
843
|
return [4, parseBody(output.body, context)];
|
|
956
844
|
case 1:
|
|
957
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
845
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
958
846
|
errorCode = "UnknownError";
|
|
959
847
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
960
848
|
_b = errorCode;
|
|
@@ -973,52 +861,26 @@ var deserializeAws_restJson1DisassociateRepositoryCommandError = function (outpu
|
|
|
973
861
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 12];
|
|
974
862
|
}
|
|
975
863
|
return [3, 14];
|
|
976
|
-
case 2:
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
case
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
case 4
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
case
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
case 6:
|
|
989
|
-
_e = [{}];
|
|
990
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
991
|
-
case 7:
|
|
992
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
993
|
-
return [3, 15];
|
|
994
|
-
case 8:
|
|
995
|
-
_f = [{}];
|
|
996
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
997
|
-
case 9:
|
|
998
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
999
|
-
return [3, 15];
|
|
1000
|
-
case 10:
|
|
1001
|
-
_g = [{}];
|
|
1002
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1003
|
-
case 11:
|
|
1004
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1005
|
-
return [3, 15];
|
|
1006
|
-
case 12:
|
|
1007
|
-
_h = [{}];
|
|
1008
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1009
|
-
case 13:
|
|
1010
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1011
|
-
return [3, 15];
|
|
864
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
865
|
+
case 3: throw _d.sent();
|
|
866
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
867
|
+
case 5: throw _d.sent();
|
|
868
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
869
|
+
case 7: throw _d.sent();
|
|
870
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
871
|
+
case 9: throw _d.sent();
|
|
872
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
873
|
+
case 11: throw _d.sent();
|
|
874
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
875
|
+
case 13: throw _d.sent();
|
|
1012
876
|
case 14:
|
|
1013
877
|
parsedBody = parsedOutput.body;
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
response
|
|
1020
|
-
delete response.Message;
|
|
1021
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
878
|
+
response = new __BaseException({
|
|
879
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
880
|
+
$fault: "client",
|
|
881
|
+
$metadata: deserializeMetadata(output),
|
|
882
|
+
});
|
|
883
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1022
884
|
}
|
|
1023
885
|
});
|
|
1024
886
|
}); };
|
|
@@ -1051,16 +913,16 @@ export var deserializeAws_restJson1ListCodeReviewsCommand = function (output, co
|
|
|
1051
913
|
});
|
|
1052
914
|
}); };
|
|
1053
915
|
var deserializeAws_restJson1ListCodeReviewsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1054
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1055
|
-
var
|
|
1056
|
-
return __generator(this, function (
|
|
1057
|
-
switch (
|
|
916
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
917
|
+
var _c;
|
|
918
|
+
return __generator(this, function (_d) {
|
|
919
|
+
switch (_d.label) {
|
|
1058
920
|
case 0:
|
|
1059
921
|
_a = [__assign({}, output)];
|
|
1060
|
-
|
|
922
|
+
_c = {};
|
|
1061
923
|
return [4, parseBody(output.body, context)];
|
|
1062
924
|
case 1:
|
|
1063
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
925
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1064
926
|
errorCode = "UnknownError";
|
|
1065
927
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
928
|
_b = errorCode;
|
|
@@ -1075,40 +937,22 @@ var deserializeAws_restJson1ListCodeReviewsCommandError = function (output, cont
|
|
|
1075
937
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 8];
|
|
1076
938
|
}
|
|
1077
939
|
return [3, 10];
|
|
1078
|
-
case 2:
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
case
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
case 4
|
|
1085
|
-
|
|
1086
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1087
|
-
case 5:
|
|
1088
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1089
|
-
return [3, 11];
|
|
1090
|
-
case 6:
|
|
1091
|
-
_e = [{}];
|
|
1092
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1093
|
-
case 7:
|
|
1094
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1095
|
-
return [3, 11];
|
|
1096
|
-
case 8:
|
|
1097
|
-
_f = [{}];
|
|
1098
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1099
|
-
case 9:
|
|
1100
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1101
|
-
return [3, 11];
|
|
940
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
941
|
+
case 3: throw _d.sent();
|
|
942
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
943
|
+
case 5: throw _d.sent();
|
|
944
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
945
|
+
case 7: throw _d.sent();
|
|
946
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
947
|
+
case 9: throw _d.sent();
|
|
1102
948
|
case 10:
|
|
1103
949
|
parsedBody = parsedOutput.body;
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
response
|
|
1110
|
-
delete response.Message;
|
|
1111
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
950
|
+
response = new __BaseException({
|
|
951
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
952
|
+
$fault: "client",
|
|
953
|
+
$metadata: deserializeMetadata(output),
|
|
954
|
+
});
|
|
955
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1112
956
|
}
|
|
1113
957
|
});
|
|
1114
958
|
}); };
|
|
@@ -1141,16 +985,16 @@ export var deserializeAws_restJson1ListRecommendationFeedbackCommand = function
|
|
|
1141
985
|
});
|
|
1142
986
|
}); };
|
|
1143
987
|
var deserializeAws_restJson1ListRecommendationFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1144
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1145
|
-
var
|
|
1146
|
-
return __generator(this, function (
|
|
1147
|
-
switch (
|
|
988
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
989
|
+
var _c;
|
|
990
|
+
return __generator(this, function (_d) {
|
|
991
|
+
switch (_d.label) {
|
|
1148
992
|
case 0:
|
|
1149
993
|
_a = [__assign({}, output)];
|
|
1150
|
-
|
|
994
|
+
_c = {};
|
|
1151
995
|
return [4, parseBody(output.body, context)];
|
|
1152
996
|
case 1:
|
|
1153
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
997
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1154
998
|
errorCode = "UnknownError";
|
|
1155
999
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
1000
|
_b = errorCode;
|
|
@@ -1167,46 +1011,24 @@ var deserializeAws_restJson1ListRecommendationFeedbackCommandError = function (o
|
|
|
1167
1011
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
1168
1012
|
}
|
|
1169
1013
|
return [3, 12];
|
|
1170
|
-
case 2:
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
case
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
case 4
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
case
|
|
1180
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1181
|
-
return [3, 13];
|
|
1182
|
-
case 6:
|
|
1183
|
-
_e = [{}];
|
|
1184
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1185
|
-
case 7:
|
|
1186
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1187
|
-
return [3, 13];
|
|
1188
|
-
case 8:
|
|
1189
|
-
_f = [{}];
|
|
1190
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1191
|
-
case 9:
|
|
1192
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1193
|
-
return [3, 13];
|
|
1194
|
-
case 10:
|
|
1195
|
-
_g = [{}];
|
|
1196
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1197
|
-
case 11:
|
|
1198
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1199
|
-
return [3, 13];
|
|
1014
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1015
|
+
case 3: throw _d.sent();
|
|
1016
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1017
|
+
case 5: throw _d.sent();
|
|
1018
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1019
|
+
case 7: throw _d.sent();
|
|
1020
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1021
|
+
case 9: throw _d.sent();
|
|
1022
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1023
|
+
case 11: throw _d.sent();
|
|
1200
1024
|
case 12:
|
|
1201
1025
|
parsedBody = parsedOutput.body;
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
response
|
|
1208
|
-
delete response.Message;
|
|
1209
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1026
|
+
response = new __BaseException({
|
|
1027
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1028
|
+
$fault: "client",
|
|
1029
|
+
$metadata: deserializeMetadata(output),
|
|
1030
|
+
});
|
|
1031
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1210
1032
|
}
|
|
1211
1033
|
});
|
|
1212
1034
|
}); };
|
|
@@ -1239,16 +1061,16 @@ export var deserializeAws_restJson1ListRecommendationsCommand = function (output
|
|
|
1239
1061
|
});
|
|
1240
1062
|
}); };
|
|
1241
1063
|
var deserializeAws_restJson1ListRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1242
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1243
|
-
var
|
|
1244
|
-
return __generator(this, function (
|
|
1245
|
-
switch (
|
|
1064
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1065
|
+
var _c;
|
|
1066
|
+
return __generator(this, function (_d) {
|
|
1067
|
+
switch (_d.label) {
|
|
1246
1068
|
case 0:
|
|
1247
1069
|
_a = [__assign({}, output)];
|
|
1248
|
-
|
|
1070
|
+
_c = {};
|
|
1249
1071
|
return [4, parseBody(output.body, context)];
|
|
1250
1072
|
case 1:
|
|
1251
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1073
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1252
1074
|
errorCode = "UnknownError";
|
|
1253
1075
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1254
1076
|
_b = errorCode;
|
|
@@ -1265,46 +1087,24 @@ var deserializeAws_restJson1ListRecommendationsCommandError = function (output,
|
|
|
1265
1087
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
1266
1088
|
}
|
|
1267
1089
|
return [3, 12];
|
|
1268
|
-
case 2:
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
case
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
case 4
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
case
|
|
1278
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1279
|
-
return [3, 13];
|
|
1280
|
-
case 6:
|
|
1281
|
-
_e = [{}];
|
|
1282
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1283
|
-
case 7:
|
|
1284
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1285
|
-
return [3, 13];
|
|
1286
|
-
case 8:
|
|
1287
|
-
_f = [{}];
|
|
1288
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1289
|
-
case 9:
|
|
1290
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1291
|
-
return [3, 13];
|
|
1292
|
-
case 10:
|
|
1293
|
-
_g = [{}];
|
|
1294
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1295
|
-
case 11:
|
|
1296
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1297
|
-
return [3, 13];
|
|
1090
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1091
|
+
case 3: throw _d.sent();
|
|
1092
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1093
|
+
case 5: throw _d.sent();
|
|
1094
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1095
|
+
case 7: throw _d.sent();
|
|
1096
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1097
|
+
case 9: throw _d.sent();
|
|
1098
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1099
|
+
case 11: throw _d.sent();
|
|
1298
1100
|
case 12:
|
|
1299
1101
|
parsedBody = parsedOutput.body;
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
response
|
|
1306
|
-
delete response.Message;
|
|
1307
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1102
|
+
response = new __BaseException({
|
|
1103
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1104
|
+
$fault: "client",
|
|
1105
|
+
$metadata: deserializeMetadata(output),
|
|
1106
|
+
});
|
|
1107
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1308
1108
|
}
|
|
1309
1109
|
});
|
|
1310
1110
|
}); };
|
|
@@ -1337,16 +1137,16 @@ export var deserializeAws_restJson1ListRepositoryAssociationsCommand = function
|
|
|
1337
1137
|
});
|
|
1338
1138
|
}); };
|
|
1339
1139
|
var deserializeAws_restJson1ListRepositoryAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1340
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1341
|
-
var
|
|
1342
|
-
return __generator(this, function (
|
|
1343
|
-
switch (
|
|
1140
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1141
|
+
var _c;
|
|
1142
|
+
return __generator(this, function (_d) {
|
|
1143
|
+
switch (_d.label) {
|
|
1344
1144
|
case 0:
|
|
1345
1145
|
_a = [__assign({}, output)];
|
|
1346
|
-
|
|
1146
|
+
_c = {};
|
|
1347
1147
|
return [4, parseBody(output.body, context)];
|
|
1348
1148
|
case 1:
|
|
1349
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1149
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1350
1150
|
errorCode = "UnknownError";
|
|
1351
1151
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
1152
|
_b = errorCode;
|
|
@@ -1359,34 +1159,20 @@ var deserializeAws_restJson1ListRepositoryAssociationsCommandError = function (o
|
|
|
1359
1159
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 6];
|
|
1360
1160
|
}
|
|
1361
1161
|
return [3, 8];
|
|
1362
|
-
case 2:
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
case
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
case 4:
|
|
1369
|
-
_d = [{}];
|
|
1370
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1371
|
-
case 5:
|
|
1372
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1373
|
-
return [3, 9];
|
|
1374
|
-
case 6:
|
|
1375
|
-
_e = [{}];
|
|
1376
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1377
|
-
case 7:
|
|
1378
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1379
|
-
return [3, 9];
|
|
1162
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1163
|
+
case 3: throw _d.sent();
|
|
1164
|
+
case 4: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1165
|
+
case 5: throw _d.sent();
|
|
1166
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1167
|
+
case 7: throw _d.sent();
|
|
1380
1168
|
case 8:
|
|
1381
1169
|
parsedBody = parsedOutput.body;
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
response
|
|
1388
|
-
delete response.Message;
|
|
1389
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1170
|
+
response = new __BaseException({
|
|
1171
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1172
|
+
$fault: "client",
|
|
1173
|
+
$metadata: deserializeMetadata(output),
|
|
1174
|
+
});
|
|
1175
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1390
1176
|
}
|
|
1391
1177
|
});
|
|
1392
1178
|
}); };
|
|
@@ -1415,16 +1201,16 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1415
1201
|
});
|
|
1416
1202
|
}); };
|
|
1417
1203
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1418
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1419
|
-
var
|
|
1420
|
-
return __generator(this, function (
|
|
1421
|
-
switch (
|
|
1204
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1205
|
+
var _c;
|
|
1206
|
+
return __generator(this, function (_d) {
|
|
1207
|
+
switch (_d.label) {
|
|
1422
1208
|
case 0:
|
|
1423
1209
|
_a = [__assign({}, output)];
|
|
1424
|
-
|
|
1210
|
+
_c = {};
|
|
1425
1211
|
return [4, parseBody(output.body, context)];
|
|
1426
1212
|
case 1:
|
|
1427
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1213
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1428
1214
|
errorCode = "UnknownError";
|
|
1429
1215
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
1216
|
_b = errorCode;
|
|
@@ -1437,34 +1223,20 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1437
1223
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 6];
|
|
1438
1224
|
}
|
|
1439
1225
|
return [3, 8];
|
|
1440
|
-
case 2:
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
case
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
case 4:
|
|
1447
|
-
_d = [{}];
|
|
1448
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1449
|
-
case 5:
|
|
1450
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1451
|
-
return [3, 9];
|
|
1452
|
-
case 6:
|
|
1453
|
-
_e = [{}];
|
|
1454
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1455
|
-
case 7:
|
|
1456
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1457
|
-
return [3, 9];
|
|
1226
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1227
|
+
case 3: throw _d.sent();
|
|
1228
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1229
|
+
case 5: throw _d.sent();
|
|
1230
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1231
|
+
case 7: throw _d.sent();
|
|
1458
1232
|
case 8:
|
|
1459
1233
|
parsedBody = parsedOutput.body;
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
response
|
|
1466
|
-
delete response.Message;
|
|
1467
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1234
|
+
response = new __BaseException({
|
|
1235
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1236
|
+
$fault: "client",
|
|
1237
|
+
$metadata: deserializeMetadata(output),
|
|
1238
|
+
});
|
|
1239
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1468
1240
|
}
|
|
1469
1241
|
});
|
|
1470
1242
|
}); };
|
|
@@ -1487,16 +1259,16 @@ export var deserializeAws_restJson1PutRecommendationFeedbackCommand = function (
|
|
|
1487
1259
|
});
|
|
1488
1260
|
}); };
|
|
1489
1261
|
var deserializeAws_restJson1PutRecommendationFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1490
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1491
|
-
var
|
|
1492
|
-
return __generator(this, function (
|
|
1493
|
-
switch (
|
|
1262
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1263
|
+
var _c;
|
|
1264
|
+
return __generator(this, function (_d) {
|
|
1265
|
+
switch (_d.label) {
|
|
1494
1266
|
case 0:
|
|
1495
1267
|
_a = [__assign({}, output)];
|
|
1496
|
-
|
|
1268
|
+
_c = {};
|
|
1497
1269
|
return [4, parseBody(output.body, context)];
|
|
1498
1270
|
case 1:
|
|
1499
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1271
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1500
1272
|
errorCode = "UnknownError";
|
|
1501
1273
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
1274
|
_b = errorCode;
|
|
@@ -1513,46 +1285,24 @@ var deserializeAws_restJson1PutRecommendationFeedbackCommandError = function (ou
|
|
|
1513
1285
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
1514
1286
|
}
|
|
1515
1287
|
return [3, 12];
|
|
1516
|
-
case 2:
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
case
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
case 4
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
case
|
|
1526
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1527
|
-
return [3, 13];
|
|
1528
|
-
case 6:
|
|
1529
|
-
_e = [{}];
|
|
1530
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1531
|
-
case 7:
|
|
1532
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1533
|
-
return [3, 13];
|
|
1534
|
-
case 8:
|
|
1535
|
-
_f = [{}];
|
|
1536
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1537
|
-
case 9:
|
|
1538
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1539
|
-
return [3, 13];
|
|
1540
|
-
case 10:
|
|
1541
|
-
_g = [{}];
|
|
1542
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1543
|
-
case 11:
|
|
1544
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1545
|
-
return [3, 13];
|
|
1288
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1289
|
+
case 3: throw _d.sent();
|
|
1290
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1291
|
+
case 5: throw _d.sent();
|
|
1292
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1293
|
+
case 7: throw _d.sent();
|
|
1294
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1295
|
+
case 9: throw _d.sent();
|
|
1296
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1297
|
+
case 11: throw _d.sent();
|
|
1546
1298
|
case 12:
|
|
1547
1299
|
parsedBody = parsedOutput.body;
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
response
|
|
1554
|
-
delete response.Message;
|
|
1555
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1300
|
+
response = new __BaseException({
|
|
1301
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1302
|
+
$fault: "client",
|
|
1303
|
+
$metadata: deserializeMetadata(output),
|
|
1304
|
+
});
|
|
1305
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1556
1306
|
}
|
|
1557
1307
|
});
|
|
1558
1308
|
}); };
|
|
@@ -1575,16 +1325,16 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1575
1325
|
});
|
|
1576
1326
|
}); };
|
|
1577
1327
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1578
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1579
|
-
var
|
|
1580
|
-
return __generator(this, function (
|
|
1581
|
-
switch (
|
|
1328
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1329
|
+
var _c;
|
|
1330
|
+
return __generator(this, function (_d) {
|
|
1331
|
+
switch (_d.label) {
|
|
1582
1332
|
case 0:
|
|
1583
1333
|
_a = [__assign({}, output)];
|
|
1584
|
-
|
|
1334
|
+
_c = {};
|
|
1585
1335
|
return [4, parseBody(output.body, context)];
|
|
1586
1336
|
case 1:
|
|
1587
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1337
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1588
1338
|
errorCode = "UnknownError";
|
|
1589
1339
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
1340
|
_b = errorCode;
|
|
@@ -1597,34 +1347,20 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1597
1347
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 6];
|
|
1598
1348
|
}
|
|
1599
1349
|
return [3, 8];
|
|
1600
|
-
case 2:
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
case
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
case 4:
|
|
1607
|
-
_d = [{}];
|
|
1608
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1609
|
-
case 5:
|
|
1610
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1611
|
-
return [3, 9];
|
|
1612
|
-
case 6:
|
|
1613
|
-
_e = [{}];
|
|
1614
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1615
|
-
case 7:
|
|
1616
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1617
|
-
return [3, 9];
|
|
1350
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1351
|
+
case 3: throw _d.sent();
|
|
1352
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1353
|
+
case 5: throw _d.sent();
|
|
1354
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1355
|
+
case 7: throw _d.sent();
|
|
1618
1356
|
case 8:
|
|
1619
1357
|
parsedBody = parsedOutput.body;
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
response
|
|
1626
|
-
delete response.Message;
|
|
1627
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1358
|
+
response = new __BaseException({
|
|
1359
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1360
|
+
$fault: "client",
|
|
1361
|
+
$metadata: deserializeMetadata(output),
|
|
1362
|
+
});
|
|
1363
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1628
1364
|
}
|
|
1629
1365
|
});
|
|
1630
1366
|
}); };
|
|
@@ -1647,16 +1383,16 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1647
1383
|
});
|
|
1648
1384
|
}); };
|
|
1649
1385
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1650
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1651
|
-
var
|
|
1652
|
-
return __generator(this, function (
|
|
1653
|
-
switch (
|
|
1386
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1387
|
+
var _c;
|
|
1388
|
+
return __generator(this, function (_d) {
|
|
1389
|
+
switch (_d.label) {
|
|
1654
1390
|
case 0:
|
|
1655
1391
|
_a = [__assign({}, output)];
|
|
1656
|
-
|
|
1392
|
+
_c = {};
|
|
1657
1393
|
return [4, parseBody(output.body, context)];
|
|
1658
1394
|
case 1:
|
|
1659
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1395
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1660
1396
|
errorCode = "UnknownError";
|
|
1661
1397
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
1398
|
_b = errorCode;
|
|
@@ -1669,147 +1405,105 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1669
1405
|
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 6];
|
|
1670
1406
|
}
|
|
1671
1407
|
return [3, 8];
|
|
1672
|
-
case 2:
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
case
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
case 4:
|
|
1679
|
-
_d = [{}];
|
|
1680
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1681
|
-
case 5:
|
|
1682
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1683
|
-
return [3, 9];
|
|
1684
|
-
case 6:
|
|
1685
|
-
_e = [{}];
|
|
1686
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1687
|
-
case 7:
|
|
1688
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1689
|
-
return [3, 9];
|
|
1408
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1409
|
+
case 3: throw _d.sent();
|
|
1410
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1411
|
+
case 5: throw _d.sent();
|
|
1412
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1413
|
+
case 7: throw _d.sent();
|
|
1690
1414
|
case 8:
|
|
1691
1415
|
parsedBody = parsedOutput.body;
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
response
|
|
1698
|
-
delete response.Message;
|
|
1699
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1416
|
+
response = new __BaseException({
|
|
1417
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1418
|
+
$fault: "client",
|
|
1419
|
+
$metadata: deserializeMetadata(output),
|
|
1420
|
+
});
|
|
1421
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1700
1422
|
}
|
|
1701
1423
|
});
|
|
1702
1424
|
}); };
|
|
1703
1425
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1704
|
-
var contents, data;
|
|
1426
|
+
var contents, data, exception;
|
|
1705
1427
|
return __generator(this, function (_a) {
|
|
1706
|
-
contents = {
|
|
1707
|
-
name: "AccessDeniedException",
|
|
1708
|
-
$fault: "client",
|
|
1709
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1710
|
-
Message: undefined,
|
|
1711
|
-
};
|
|
1428
|
+
contents = {};
|
|
1712
1429
|
data = parsedOutput.body;
|
|
1713
1430
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1714
1431
|
contents.Message = __expectString(data.Message);
|
|
1715
1432
|
}
|
|
1716
|
-
|
|
1433
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1434
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1717
1435
|
});
|
|
1718
1436
|
}); };
|
|
1719
1437
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1720
|
-
var contents, data;
|
|
1438
|
+
var contents, data, exception;
|
|
1721
1439
|
return __generator(this, function (_a) {
|
|
1722
|
-
contents = {
|
|
1723
|
-
name: "ConflictException",
|
|
1724
|
-
$fault: "client",
|
|
1725
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1726
|
-
Message: undefined,
|
|
1727
|
-
};
|
|
1440
|
+
contents = {};
|
|
1728
1441
|
data = parsedOutput.body;
|
|
1729
1442
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1730
1443
|
contents.Message = __expectString(data.Message);
|
|
1731
1444
|
}
|
|
1732
|
-
|
|
1445
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1446
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1733
1447
|
});
|
|
1734
1448
|
}); };
|
|
1735
1449
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1736
|
-
var contents, data;
|
|
1450
|
+
var contents, data, exception;
|
|
1737
1451
|
return __generator(this, function (_a) {
|
|
1738
|
-
contents = {
|
|
1739
|
-
name: "InternalServerException",
|
|
1740
|
-
$fault: "server",
|
|
1741
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1742
|
-
Message: undefined,
|
|
1743
|
-
};
|
|
1452
|
+
contents = {};
|
|
1744
1453
|
data = parsedOutput.body;
|
|
1745
1454
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1746
1455
|
contents.Message = __expectString(data.Message);
|
|
1747
1456
|
}
|
|
1748
|
-
|
|
1457
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1458
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1749
1459
|
});
|
|
1750
1460
|
}); };
|
|
1751
1461
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1752
|
-
var contents, data;
|
|
1462
|
+
var contents, data, exception;
|
|
1753
1463
|
return __generator(this, function (_a) {
|
|
1754
|
-
contents = {
|
|
1755
|
-
name: "NotFoundException",
|
|
1756
|
-
$fault: "client",
|
|
1757
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1758
|
-
Message: undefined,
|
|
1759
|
-
};
|
|
1464
|
+
contents = {};
|
|
1760
1465
|
data = parsedOutput.body;
|
|
1761
1466
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1762
1467
|
contents.Message = __expectString(data.Message);
|
|
1763
1468
|
}
|
|
1764
|
-
|
|
1469
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1470
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1765
1471
|
});
|
|
1766
1472
|
}); };
|
|
1767
1473
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1768
|
-
var contents, data;
|
|
1474
|
+
var contents, data, exception;
|
|
1769
1475
|
return __generator(this, function (_a) {
|
|
1770
|
-
contents = {
|
|
1771
|
-
name: "ResourceNotFoundException",
|
|
1772
|
-
$fault: "client",
|
|
1773
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1774
|
-
Message: undefined,
|
|
1775
|
-
};
|
|
1476
|
+
contents = {};
|
|
1776
1477
|
data = parsedOutput.body;
|
|
1777
1478
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1778
1479
|
contents.Message = __expectString(data.Message);
|
|
1779
1480
|
}
|
|
1780
|
-
|
|
1481
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1482
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1781
1483
|
});
|
|
1782
1484
|
}); };
|
|
1783
1485
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1784
|
-
var contents, data;
|
|
1486
|
+
var contents, data, exception;
|
|
1785
1487
|
return __generator(this, function (_a) {
|
|
1786
|
-
contents = {
|
|
1787
|
-
name: "ThrottlingException",
|
|
1788
|
-
$fault: "client",
|
|
1789
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1790
|
-
Message: undefined,
|
|
1791
|
-
};
|
|
1488
|
+
contents = {};
|
|
1792
1489
|
data = parsedOutput.body;
|
|
1793
1490
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1794
1491
|
contents.Message = __expectString(data.Message);
|
|
1795
1492
|
}
|
|
1796
|
-
|
|
1493
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1494
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1797
1495
|
});
|
|
1798
1496
|
}); };
|
|
1799
1497
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1800
|
-
var contents, data;
|
|
1498
|
+
var contents, data, exception;
|
|
1801
1499
|
return __generator(this, function (_a) {
|
|
1802
|
-
contents = {
|
|
1803
|
-
name: "ValidationException",
|
|
1804
|
-
$fault: "client",
|
|
1805
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1806
|
-
Message: undefined,
|
|
1807
|
-
};
|
|
1500
|
+
contents = {};
|
|
1808
1501
|
data = parsedOutput.body;
|
|
1809
1502
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1810
1503
|
contents.Message = __expectString(data.Message);
|
|
1811
1504
|
}
|
|
1812
|
-
|
|
1505
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1506
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1813
1507
|
});
|
|
1814
1508
|
}); };
|
|
1815
1509
|
var serializeAws_restJson1AnalysisTypes = function (input, context) {
|
|
@@ -1942,7 +1636,7 @@ var serializeAws_restJson1ThirdPartySourceRepository = function (input, context)
|
|
|
1942
1636
|
return __assign(__assign(__assign({}, (input.ConnectionArn !== undefined && input.ConnectionArn !== null && { ConnectionArn: input.ConnectionArn })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Owner !== undefined && input.Owner !== null && { Owner: input.Owner }));
|
|
1943
1637
|
};
|
|
1944
1638
|
var deserializeAws_restJson1AnalysisTypes = function (output, context) {
|
|
1945
|
-
|
|
1639
|
+
var retVal = (output || [])
|
|
1946
1640
|
.filter(function (e) { return e != null; })
|
|
1947
1641
|
.map(function (entry) {
|
|
1948
1642
|
if (entry === null) {
|
|
@@ -1950,6 +1644,7 @@ var deserializeAws_restJson1AnalysisTypes = function (output, context) {
|
|
|
1950
1644
|
}
|
|
1951
1645
|
return __expectString(entry);
|
|
1952
1646
|
});
|
|
1647
|
+
return retVal;
|
|
1953
1648
|
};
|
|
1954
1649
|
var deserializeAws_restJson1BranchDiffSourceCodeType = function (output, context) {
|
|
1955
1650
|
return {
|
|
@@ -1993,7 +1688,7 @@ var deserializeAws_restJson1CodeReview = function (output, context) {
|
|
|
1993
1688
|
};
|
|
1994
1689
|
};
|
|
1995
1690
|
var deserializeAws_restJson1CodeReviewSummaries = function (output, context) {
|
|
1996
|
-
|
|
1691
|
+
var retVal = (output || [])
|
|
1997
1692
|
.filter(function (e) { return e != null; })
|
|
1998
1693
|
.map(function (entry) {
|
|
1999
1694
|
if (entry === null) {
|
|
@@ -2001,6 +1696,7 @@ var deserializeAws_restJson1CodeReviewSummaries = function (output, context) {
|
|
|
2001
1696
|
}
|
|
2002
1697
|
return deserializeAws_restJson1CodeReviewSummary(entry, context);
|
|
2003
1698
|
});
|
|
1699
|
+
return retVal;
|
|
2004
1700
|
};
|
|
2005
1701
|
var deserializeAws_restJson1CodeReviewSummary = function (output, context) {
|
|
2006
1702
|
return {
|
|
@@ -2058,7 +1754,7 @@ var deserializeAws_restJson1MetricsSummary = function (output, context) {
|
|
|
2058
1754
|
};
|
|
2059
1755
|
};
|
|
2060
1756
|
var deserializeAws_restJson1Reactions = function (output, context) {
|
|
2061
|
-
|
|
1757
|
+
var retVal = (output || [])
|
|
2062
1758
|
.filter(function (e) { return e != null; })
|
|
2063
1759
|
.map(function (entry) {
|
|
2064
1760
|
if (entry === null) {
|
|
@@ -2066,6 +1762,7 @@ var deserializeAws_restJson1Reactions = function (output, context) {
|
|
|
2066
1762
|
}
|
|
2067
1763
|
return __expectString(entry);
|
|
2068
1764
|
});
|
|
1765
|
+
return retVal;
|
|
2069
1766
|
};
|
|
2070
1767
|
var deserializeAws_restJson1RecommendationFeedback = function (output, context) {
|
|
2071
1768
|
return {
|
|
@@ -2084,7 +1781,7 @@ var deserializeAws_restJson1RecommendationFeedback = function (output, context)
|
|
|
2084
1781
|
};
|
|
2085
1782
|
};
|
|
2086
1783
|
var deserializeAws_restJson1RecommendationFeedbackSummaries = function (output, context) {
|
|
2087
|
-
|
|
1784
|
+
var retVal = (output || [])
|
|
2088
1785
|
.filter(function (e) { return e != null; })
|
|
2089
1786
|
.map(function (entry) {
|
|
2090
1787
|
if (entry === null) {
|
|
@@ -2092,6 +1789,7 @@ var deserializeAws_restJson1RecommendationFeedbackSummaries = function (output,
|
|
|
2092
1789
|
}
|
|
2093
1790
|
return deserializeAws_restJson1RecommendationFeedbackSummary(entry, context);
|
|
2094
1791
|
});
|
|
1792
|
+
return retVal;
|
|
2095
1793
|
};
|
|
2096
1794
|
var deserializeAws_restJson1RecommendationFeedbackSummary = function (output, context) {
|
|
2097
1795
|
return {
|
|
@@ -2103,7 +1801,7 @@ var deserializeAws_restJson1RecommendationFeedbackSummary = function (output, co
|
|
|
2103
1801
|
};
|
|
2104
1802
|
};
|
|
2105
1803
|
var deserializeAws_restJson1RecommendationSummaries = function (output, context) {
|
|
2106
|
-
|
|
1804
|
+
var retVal = (output || [])
|
|
2107
1805
|
.filter(function (e) { return e != null; })
|
|
2108
1806
|
.map(function (entry) {
|
|
2109
1807
|
if (entry === null) {
|
|
@@ -2111,6 +1809,7 @@ var deserializeAws_restJson1RecommendationSummaries = function (output, context)
|
|
|
2111
1809
|
}
|
|
2112
1810
|
return deserializeAws_restJson1RecommendationSummary(entry, context);
|
|
2113
1811
|
});
|
|
1812
|
+
return retVal;
|
|
2114
1813
|
};
|
|
2115
1814
|
var deserializeAws_restJson1RecommendationSummary = function (output, context) {
|
|
2116
1815
|
return {
|
|
@@ -2151,7 +1850,7 @@ var deserializeAws_restJson1RepositoryAssociation = function (output, context) {
|
|
|
2151
1850
|
};
|
|
2152
1851
|
};
|
|
2153
1852
|
var deserializeAws_restJson1RepositoryAssociationSummaries = function (output, context) {
|
|
2154
|
-
|
|
1853
|
+
var retVal = (output || [])
|
|
2155
1854
|
.filter(function (e) { return e != null; })
|
|
2156
1855
|
.map(function (entry) {
|
|
2157
1856
|
if (entry === null) {
|
|
@@ -2159,6 +1858,7 @@ var deserializeAws_restJson1RepositoryAssociationSummaries = function (output, c
|
|
|
2159
1858
|
}
|
|
2160
1859
|
return deserializeAws_restJson1RepositoryAssociationSummary(entry, context);
|
|
2161
1860
|
});
|
|
1861
|
+
return retVal;
|
|
2162
1862
|
};
|
|
2163
1863
|
var deserializeAws_restJson1RepositoryAssociationSummary = function (output, context) {
|
|
2164
1864
|
return {
|
|
@@ -2201,7 +1901,7 @@ var deserializeAws_restJson1RuleMetadata = function (output, context) {
|
|
|
2201
1901
|
};
|
|
2202
1902
|
};
|
|
2203
1903
|
var deserializeAws_restJson1RuleTags = function (output, context) {
|
|
2204
|
-
|
|
1904
|
+
var retVal = (output || [])
|
|
2205
1905
|
.filter(function (e) { return e != null; })
|
|
2206
1906
|
.map(function (entry) {
|
|
2207
1907
|
if (entry === null) {
|
|
@@ -2209,6 +1909,7 @@ var deserializeAws_restJson1RuleTags = function (output, context) {
|
|
|
2209
1909
|
}
|
|
2210
1910
|
return __expectString(entry);
|
|
2211
1911
|
});
|
|
1912
|
+
return retVal;
|
|
2212
1913
|
};
|
|
2213
1914
|
var deserializeAws_restJson1S3BucketRepository = function (output, context) {
|
|
2214
1915
|
return {
|