@aws-sdk/client-codeguru-reviewer 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +20 -14
- package/dist-es/CodeGuruReviewer.js +58 -65
- package/dist-es/CodeGuruReviewerClient.js +22 -28
- package/dist-es/commands/AssociateRepositoryCommand.js +21 -28
- package/dist-es/commands/CreateCodeReviewCommand.js +21 -28
- package/dist-es/commands/DescribeCodeReviewCommand.js +21 -28
- package/dist-es/commands/DescribeRecommendationFeedbackCommand.js +21 -28
- package/dist-es/commands/DescribeRepositoryAssociationCommand.js +21 -28
- package/dist-es/commands/DisassociateRepositoryCommand.js +21 -28
- package/dist-es/commands/ListCodeReviewsCommand.js +21 -28
- package/dist-es/commands/ListRecommendationFeedbackCommand.js +21 -28
- package/dist-es/commands/ListRecommendationsCommand.js +21 -28
- package/dist-es/commands/ListRepositoryAssociationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutRecommendationFeedbackCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CodeGuruReviewerServiceException.js +5 -10
- package/dist-es/models/models_0.js +246 -139
- package/dist-es/pagination/ListCodeReviewsPaginator.js +25 -68
- package/dist-es/pagination/ListRecommendationFeedbackPaginator.js +25 -68
- package/dist-es/pagination/ListRecommendationsPaginator.js +25 -68
- package/dist-es/pagination/ListRepositoryAssociationsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1180 -1564
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForCodeReviewCompleted.js +45 -65
- package/dist-es/waiters/waitForRepositoryAssociationSucceeded.js +45 -65
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-codeguru-reviewer
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-codeguru-reviewer
|
|
@@ -344,7 +344,7 @@ exports.deserializeAws_restJson1AssociateRepositoryCommand = deserializeAws_rest
|
|
|
344
344
|
const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, context) => {
|
|
345
345
|
const parsedOutput = {
|
|
346
346
|
...output,
|
|
347
|
-
body: await
|
|
347
|
+
body: await parseErrorBody(output.body, context),
|
|
348
348
|
};
|
|
349
349
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
350
350
|
switch (errorCode) {
|
|
@@ -390,7 +390,7 @@ exports.deserializeAws_restJson1CreateCodeReviewCommand = deserializeAws_restJso
|
|
|
390
390
|
const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, context) => {
|
|
391
391
|
const parsedOutput = {
|
|
392
392
|
...output,
|
|
393
|
-
body: await
|
|
393
|
+
body: await parseErrorBody(output.body, context),
|
|
394
394
|
};
|
|
395
395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
396
396
|
switch (errorCode) {
|
|
@@ -439,7 +439,7 @@ exports.deserializeAws_restJson1DescribeCodeReviewCommand = deserializeAws_restJ
|
|
|
439
439
|
const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, context) => {
|
|
440
440
|
const parsedOutput = {
|
|
441
441
|
...output,
|
|
442
|
-
body: await
|
|
442
|
+
body: await parseErrorBody(output.body, context),
|
|
443
443
|
};
|
|
444
444
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
445
445
|
switch (errorCode) {
|
|
@@ -485,7 +485,7 @@ exports.deserializeAws_restJson1DescribeRecommendationFeedbackCommand = deserial
|
|
|
485
485
|
const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async (output, context) => {
|
|
486
486
|
const parsedOutput = {
|
|
487
487
|
...output,
|
|
488
|
-
body: await
|
|
488
|
+
body: await parseErrorBody(output.body, context),
|
|
489
489
|
};
|
|
490
490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
491
491
|
switch (errorCode) {
|
|
@@ -534,7 +534,7 @@ exports.deserializeAws_restJson1DescribeRepositoryAssociationCommand = deseriali
|
|
|
534
534
|
const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async (output, context) => {
|
|
535
535
|
const parsedOutput = {
|
|
536
536
|
...output,
|
|
537
|
-
body: await
|
|
537
|
+
body: await parseErrorBody(output.body, context),
|
|
538
538
|
};
|
|
539
539
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
540
540
|
switch (errorCode) {
|
|
@@ -583,7 +583,7 @@ exports.deserializeAws_restJson1DisassociateRepositoryCommand = deserializeAws_r
|
|
|
583
583
|
const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output, context) => {
|
|
584
584
|
const parsedOutput = {
|
|
585
585
|
...output,
|
|
586
|
-
body: await
|
|
586
|
+
body: await parseErrorBody(output.body, context),
|
|
587
587
|
};
|
|
588
588
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
589
589
|
switch (errorCode) {
|
|
@@ -635,7 +635,7 @@ exports.deserializeAws_restJson1ListCodeReviewsCommand = deserializeAws_restJson
|
|
|
635
635
|
const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, context) => {
|
|
636
636
|
const parsedOutput = {
|
|
637
637
|
...output,
|
|
638
|
-
body: await
|
|
638
|
+
body: await parseErrorBody(output.body, context),
|
|
639
639
|
};
|
|
640
640
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
641
|
switch (errorCode) {
|
|
@@ -681,7 +681,7 @@ exports.deserializeAws_restJson1ListRecommendationFeedbackCommand = deserializeA
|
|
|
681
681
|
const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (output, context) => {
|
|
682
682
|
const parsedOutput = {
|
|
683
683
|
...output,
|
|
684
|
-
body: await
|
|
684
|
+
body: await parseErrorBody(output.body, context),
|
|
685
685
|
};
|
|
686
686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
687
|
switch (errorCode) {
|
|
@@ -730,7 +730,7 @@ exports.deserializeAws_restJson1ListRecommendationsCommand = deserializeAws_rest
|
|
|
730
730
|
const deserializeAws_restJson1ListRecommendationsCommandError = async (output, context) => {
|
|
731
731
|
const parsedOutput = {
|
|
732
732
|
...output,
|
|
733
|
-
body: await
|
|
733
|
+
body: await parseErrorBody(output.body, context),
|
|
734
734
|
};
|
|
735
735
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
736
|
switch (errorCode) {
|
|
@@ -779,7 +779,7 @@ exports.deserializeAws_restJson1ListRepositoryAssociationsCommand = deserializeA
|
|
|
779
779
|
const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (output, context) => {
|
|
780
780
|
const parsedOutput = {
|
|
781
781
|
...output,
|
|
782
|
-
body: await
|
|
782
|
+
body: await parseErrorBody(output.body, context),
|
|
783
783
|
};
|
|
784
784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
785
|
switch (errorCode) {
|
|
@@ -819,7 +819,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
819
819
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
820
820
|
const parsedOutput = {
|
|
821
821
|
...output,
|
|
822
|
-
body: await
|
|
822
|
+
body: await parseErrorBody(output.body, context),
|
|
823
823
|
};
|
|
824
824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
825
|
switch (errorCode) {
|
|
@@ -856,7 +856,7 @@ exports.deserializeAws_restJson1PutRecommendationFeedbackCommand = deserializeAw
|
|
|
856
856
|
const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (output, context) => {
|
|
857
857
|
const parsedOutput = {
|
|
858
858
|
...output,
|
|
859
|
-
body: await
|
|
859
|
+
body: await parseErrorBody(output.body, context),
|
|
860
860
|
};
|
|
861
861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
862
|
switch (errorCode) {
|
|
@@ -899,7 +899,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
899
899
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
900
900
|
const parsedOutput = {
|
|
901
901
|
...output,
|
|
902
|
-
body: await
|
|
902
|
+
body: await parseErrorBody(output.body, context),
|
|
903
903
|
};
|
|
904
904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
905
|
switch (errorCode) {
|
|
@@ -936,7 +936,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
936
936
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
937
937
|
const parsedOutput = {
|
|
938
938
|
...output,
|
|
939
|
-
body: await
|
|
939
|
+
body: await parseErrorBody(output.body, context),
|
|
940
940
|
};
|
|
941
941
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
942
|
switch (errorCode) {
|
|
@@ -1532,6 +1532,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
1532
1532
|
}
|
|
1533
1533
|
return {};
|
|
1534
1534
|
});
|
|
1535
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1536
|
+
var _a;
|
|
1537
|
+
const value = await parseBody(errorBody, context);
|
|
1538
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1539
|
+
return value;
|
|
1540
|
+
};
|
|
1535
1541
|
const loadRestJsonErrorCode = (output, data) => {
|
|
1536
1542
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1537
1543
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CodeGuruReviewerClient } from "./CodeGuruReviewerClient";
|
|
3
2
|
import { AssociateRepositoryCommand, } from "./commands/AssociateRepositoryCommand";
|
|
4
3
|
import { CreateCodeReviewCommand, } from "./commands/CreateCodeReviewCommand";
|
|
@@ -14,207 +13,201 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
|
|
|
14
13
|
import { PutRecommendationFeedbackCommand, } from "./commands/PutRecommendationFeedbackCommand";
|
|
15
14
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
16
15
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
21
|
-
}
|
|
22
|
-
CodeGuruReviewer.prototype.associateRepository = function (args, optionsOrCb, cb) {
|
|
23
|
-
var command = new AssociateRepositoryCommand(args);
|
|
16
|
+
export class CodeGuruReviewer extends CodeGuruReviewerClient {
|
|
17
|
+
associateRepository(args, optionsOrCb, cb) {
|
|
18
|
+
const command = new AssociateRepositoryCommand(args);
|
|
24
19
|
if (typeof optionsOrCb === "function") {
|
|
25
20
|
this.send(command, optionsOrCb);
|
|
26
21
|
}
|
|
27
22
|
else if (typeof cb === "function") {
|
|
28
23
|
if (typeof optionsOrCb !== "object")
|
|
29
|
-
throw new Error(
|
|
24
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
30
25
|
this.send(command, optionsOrCb || {}, cb);
|
|
31
26
|
}
|
|
32
27
|
else {
|
|
33
28
|
return this.send(command, optionsOrCb);
|
|
34
29
|
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
}
|
|
31
|
+
createCodeReview(args, optionsOrCb, cb) {
|
|
32
|
+
const command = new CreateCodeReviewCommand(args);
|
|
38
33
|
if (typeof optionsOrCb === "function") {
|
|
39
34
|
this.send(command, optionsOrCb);
|
|
40
35
|
}
|
|
41
36
|
else if (typeof cb === "function") {
|
|
42
37
|
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(
|
|
38
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
44
39
|
this.send(command, optionsOrCb || {}, cb);
|
|
45
40
|
}
|
|
46
41
|
else {
|
|
47
42
|
return this.send(command, optionsOrCb);
|
|
48
43
|
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
}
|
|
45
|
+
describeCodeReview(args, optionsOrCb, cb) {
|
|
46
|
+
const command = new DescribeCodeReviewCommand(args);
|
|
52
47
|
if (typeof optionsOrCb === "function") {
|
|
53
48
|
this.send(command, optionsOrCb);
|
|
54
49
|
}
|
|
55
50
|
else if (typeof cb === "function") {
|
|
56
51
|
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(
|
|
52
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
53
|
this.send(command, optionsOrCb || {}, cb);
|
|
59
54
|
}
|
|
60
55
|
else {
|
|
61
56
|
return this.send(command, optionsOrCb);
|
|
62
57
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
}
|
|
59
|
+
describeRecommendationFeedback(args, optionsOrCb, cb) {
|
|
60
|
+
const command = new DescribeRecommendationFeedbackCommand(args);
|
|
66
61
|
if (typeof optionsOrCb === "function") {
|
|
67
62
|
this.send(command, optionsOrCb);
|
|
68
63
|
}
|
|
69
64
|
else if (typeof cb === "function") {
|
|
70
65
|
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(
|
|
66
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
72
67
|
this.send(command, optionsOrCb || {}, cb);
|
|
73
68
|
}
|
|
74
69
|
else {
|
|
75
70
|
return this.send(command, optionsOrCb);
|
|
76
71
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
}
|
|
73
|
+
describeRepositoryAssociation(args, optionsOrCb, cb) {
|
|
74
|
+
const command = new DescribeRepositoryAssociationCommand(args);
|
|
80
75
|
if (typeof optionsOrCb === "function") {
|
|
81
76
|
this.send(command, optionsOrCb);
|
|
82
77
|
}
|
|
83
78
|
else if (typeof cb === "function") {
|
|
84
79
|
if (typeof optionsOrCb !== "object")
|
|
85
|
-
throw new Error(
|
|
80
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
86
81
|
this.send(command, optionsOrCb || {}, cb);
|
|
87
82
|
}
|
|
88
83
|
else {
|
|
89
84
|
return this.send(command, optionsOrCb);
|
|
90
85
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
}
|
|
87
|
+
disassociateRepository(args, optionsOrCb, cb) {
|
|
88
|
+
const command = new DisassociateRepositoryCommand(args);
|
|
94
89
|
if (typeof optionsOrCb === "function") {
|
|
95
90
|
this.send(command, optionsOrCb);
|
|
96
91
|
}
|
|
97
92
|
else if (typeof cb === "function") {
|
|
98
93
|
if (typeof optionsOrCb !== "object")
|
|
99
|
-
throw new Error(
|
|
94
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
100
95
|
this.send(command, optionsOrCb || {}, cb);
|
|
101
96
|
}
|
|
102
97
|
else {
|
|
103
98
|
return this.send(command, optionsOrCb);
|
|
104
99
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
}
|
|
101
|
+
listCodeReviews(args, optionsOrCb, cb) {
|
|
102
|
+
const command = new ListCodeReviewsCommand(args);
|
|
108
103
|
if (typeof optionsOrCb === "function") {
|
|
109
104
|
this.send(command, optionsOrCb);
|
|
110
105
|
}
|
|
111
106
|
else if (typeof cb === "function") {
|
|
112
107
|
if (typeof optionsOrCb !== "object")
|
|
113
|
-
throw new Error(
|
|
108
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
114
109
|
this.send(command, optionsOrCb || {}, cb);
|
|
115
110
|
}
|
|
116
111
|
else {
|
|
117
112
|
return this.send(command, optionsOrCb);
|
|
118
113
|
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
}
|
|
115
|
+
listRecommendationFeedback(args, optionsOrCb, cb) {
|
|
116
|
+
const command = new ListRecommendationFeedbackCommand(args);
|
|
122
117
|
if (typeof optionsOrCb === "function") {
|
|
123
118
|
this.send(command, optionsOrCb);
|
|
124
119
|
}
|
|
125
120
|
else if (typeof cb === "function") {
|
|
126
121
|
if (typeof optionsOrCb !== "object")
|
|
127
|
-
throw new Error(
|
|
122
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
128
123
|
this.send(command, optionsOrCb || {}, cb);
|
|
129
124
|
}
|
|
130
125
|
else {
|
|
131
126
|
return this.send(command, optionsOrCb);
|
|
132
127
|
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
}
|
|
129
|
+
listRecommendations(args, optionsOrCb, cb) {
|
|
130
|
+
const command = new ListRecommendationsCommand(args);
|
|
136
131
|
if (typeof optionsOrCb === "function") {
|
|
137
132
|
this.send(command, optionsOrCb);
|
|
138
133
|
}
|
|
139
134
|
else if (typeof cb === "function") {
|
|
140
135
|
if (typeof optionsOrCb !== "object")
|
|
141
|
-
throw new Error(
|
|
136
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
142
137
|
this.send(command, optionsOrCb || {}, cb);
|
|
143
138
|
}
|
|
144
139
|
else {
|
|
145
140
|
return this.send(command, optionsOrCb);
|
|
146
141
|
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
142
|
+
}
|
|
143
|
+
listRepositoryAssociations(args, optionsOrCb, cb) {
|
|
144
|
+
const command = new ListRepositoryAssociationsCommand(args);
|
|
150
145
|
if (typeof optionsOrCb === "function") {
|
|
151
146
|
this.send(command, optionsOrCb);
|
|
152
147
|
}
|
|
153
148
|
else if (typeof cb === "function") {
|
|
154
149
|
if (typeof optionsOrCb !== "object")
|
|
155
|
-
throw new Error(
|
|
150
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
156
151
|
this.send(command, optionsOrCb || {}, cb);
|
|
157
152
|
}
|
|
158
153
|
else {
|
|
159
154
|
return this.send(command, optionsOrCb);
|
|
160
155
|
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
156
|
+
}
|
|
157
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
158
|
+
const command = new ListTagsForResourceCommand(args);
|
|
164
159
|
if (typeof optionsOrCb === "function") {
|
|
165
160
|
this.send(command, optionsOrCb);
|
|
166
161
|
}
|
|
167
162
|
else if (typeof cb === "function") {
|
|
168
163
|
if (typeof optionsOrCb !== "object")
|
|
169
|
-
throw new Error(
|
|
164
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
170
165
|
this.send(command, optionsOrCb || {}, cb);
|
|
171
166
|
}
|
|
172
167
|
else {
|
|
173
168
|
return this.send(command, optionsOrCb);
|
|
174
169
|
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
}
|
|
171
|
+
putRecommendationFeedback(args, optionsOrCb, cb) {
|
|
172
|
+
const command = new PutRecommendationFeedbackCommand(args);
|
|
178
173
|
if (typeof optionsOrCb === "function") {
|
|
179
174
|
this.send(command, optionsOrCb);
|
|
180
175
|
}
|
|
181
176
|
else if (typeof cb === "function") {
|
|
182
177
|
if (typeof optionsOrCb !== "object")
|
|
183
|
-
throw new Error(
|
|
178
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
184
179
|
this.send(command, optionsOrCb || {}, cb);
|
|
185
180
|
}
|
|
186
181
|
else {
|
|
187
182
|
return this.send(command, optionsOrCb);
|
|
188
183
|
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
184
|
+
}
|
|
185
|
+
tagResource(args, optionsOrCb, cb) {
|
|
186
|
+
const command = new TagResourceCommand(args);
|
|
192
187
|
if (typeof optionsOrCb === "function") {
|
|
193
188
|
this.send(command, optionsOrCb);
|
|
194
189
|
}
|
|
195
190
|
else if (typeof cb === "function") {
|
|
196
191
|
if (typeof optionsOrCb !== "object")
|
|
197
|
-
throw new Error(
|
|
192
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
198
193
|
this.send(command, optionsOrCb || {}, cb);
|
|
199
194
|
}
|
|
200
195
|
else {
|
|
201
196
|
return this.send(command, optionsOrCb);
|
|
202
197
|
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
198
|
+
}
|
|
199
|
+
untagResource(args, optionsOrCb, cb) {
|
|
200
|
+
const command = new UntagResourceCommand(args);
|
|
206
201
|
if (typeof optionsOrCb === "function") {
|
|
207
202
|
this.send(command, optionsOrCb);
|
|
208
203
|
}
|
|
209
204
|
else if (typeof cb === "function") {
|
|
210
205
|
if (typeof optionsOrCb !== "object")
|
|
211
|
-
throw new Error(
|
|
206
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
212
207
|
this.send(command, optionsOrCb || {}, cb);
|
|
213
208
|
}
|
|
214
209
|
else {
|
|
215
210
|
return this.send(command, optionsOrCb);
|
|
216
211
|
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
}(CodeGuruReviewerClient));
|
|
220
|
-
export { CodeGuruReviewer };
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class CodeGuruReviewerClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { CodeGuruReviewerClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { AssociateRepositoryRequestFilterSensitiveLog, AssociateRepositoryResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1AssociateRepositoryCommand, serializeAws_restJson1AssociateRepositoryCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class AssociateRepositoryCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "CodeGuruReviewerClient";
|
|
15
|
+
const commandName = "AssociateRepositoryCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: AssociateRepositoryRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: AssociateRepositoryResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
AssociateRepositoryCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1AssociateRepositoryCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1AssociateRepositoryCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { AssociateRepositoryCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateCodeReviewRequestFilterSensitiveLog, CreateCodeReviewResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CreateCodeReviewCommand, serializeAws_restJson1CreateCodeReviewCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateCodeReviewCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "CodeGuruReviewerClient";
|
|
15
|
+
const commandName = "CreateCodeReviewCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateCodeReviewRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateCodeReviewResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateCodeReviewCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CreateCodeReviewCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CreateCodeReviewCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateCodeReviewCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|