@aws-sdk/client-codeguru-reviewer 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/CodeGuruReviewer.js +65 -58
- package/dist-es/CodeGuruReviewerClient.js +28 -22
- package/dist-es/commands/AssociateRepositoryCommand.js +28 -21
- package/dist-es/commands/CreateCodeReviewCommand.js +28 -21
- package/dist-es/commands/DescribeCodeReviewCommand.js +28 -21
- package/dist-es/commands/DescribeRecommendationFeedbackCommand.js +28 -21
- package/dist-es/commands/DescribeRepositoryAssociationCommand.js +28 -21
- package/dist-es/commands/DisassociateRepositoryCommand.js +28 -21
- package/dist-es/commands/ListCodeReviewsCommand.js +28 -21
- package/dist-es/commands/ListRecommendationFeedbackCommand.js +28 -21
- package/dist-es/commands/ListRecommendationsCommand.js +28 -21
- package/dist-es/commands/ListRepositoryAssociationsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PutRecommendationFeedbackCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CodeGuruReviewerServiceException.js +10 -5
- package/dist-es/models/models_0.js +139 -246
- package/dist-es/pagination/ListCodeReviewsPaginator.js +68 -25
- package/dist-es/pagination/ListRecommendationFeedbackPaginator.js +68 -25
- package/dist-es/pagination/ListRecommendationsPaginator.js +68 -25
- package/dist-es/pagination/ListRepositoryAssociationsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +1577 -1180
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForCodeReviewCompleted.js +65 -45
- package/dist-es/waiters/waitForRepositoryAssociationSucceeded.js +65 -45
- package/package.json +34 -34
package/dist-es/endpoints.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
var regionHash = {};
|
|
4
|
+
var partitionHash = {
|
|
4
5
|
aws: {
|
|
5
6
|
regions: [
|
|
6
7
|
"af-south-1",
|
|
@@ -120,9 +121,8 @@ const partitionHash = {
|
|
|
120
121
|
],
|
|
121
122
|
},
|
|
122
123
|
};
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
});
|
|
124
|
+
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "codeguru-reviewer", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
127
|
+
});
|
|
128
|
+
}); };
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var CodeGuruReviewerServiceException = (function (_super) {
|
|
4
|
+
__extends(CodeGuruReviewerServiceException, _super);
|
|
5
|
+
function CodeGuruReviewerServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, CodeGuruReviewerServiceException.prototype);
|
|
8
|
+
return _this;
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
return CodeGuruReviewerServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { CodeGuruReviewerServiceException };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
1
2
|
import { CodeGuruReviewerServiceException as __BaseException } from "./CodeGuruReviewerServiceException";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
-
this.Message = opts.Message;
|
|
3
|
+
var AccessDeniedException = (function (_super) {
|
|
4
|
+
__extends(AccessDeniedException, _super);
|
|
5
|
+
function AccessDeniedException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "AccessDeniedException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
10
|
+
_this.Message = opts.Message;
|
|
11
|
+
return _this;
|
|
13
12
|
}
|
|
14
|
-
|
|
13
|
+
return AccessDeniedException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { AccessDeniedException };
|
|
15
16
|
export var AnalysisType;
|
|
16
17
|
(function (AnalysisType) {
|
|
17
18
|
AnalysisType["CODE_QUALITY"] = "CodeQuality";
|
|
@@ -38,58 +39,58 @@ export var RepositoryAssociationState;
|
|
|
38
39
|
RepositoryAssociationState["DISASSOCIATING"] = "Disassociating";
|
|
39
40
|
RepositoryAssociationState["FAILED"] = "Failed";
|
|
40
41
|
})(RepositoryAssociationState || (RepositoryAssociationState = {}));
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
51
|
-
this.Message = opts.Message;
|
|
42
|
+
var ConflictException = (function (_super) {
|
|
43
|
+
__extends(ConflictException, _super);
|
|
44
|
+
function ConflictException(opts) {
|
|
45
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
46
|
+
_this.name = "ConflictException";
|
|
47
|
+
_this.$fault = "client";
|
|
48
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
49
|
+
_this.Message = opts.Message;
|
|
50
|
+
return _this;
|
|
52
51
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
52
|
+
return ConflictException;
|
|
53
|
+
}(__BaseException));
|
|
54
|
+
export { ConflictException };
|
|
55
|
+
var InternalServerException = (function (_super) {
|
|
56
|
+
__extends(InternalServerException, _super);
|
|
57
|
+
function InternalServerException(opts) {
|
|
58
|
+
var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
|
|
59
|
+
_this.name = "InternalServerException";
|
|
60
|
+
_this.$fault = "server";
|
|
61
|
+
Object.setPrototypeOf(_this, InternalServerException.prototype);
|
|
62
|
+
_this.Message = opts.Message;
|
|
63
|
+
return _this;
|
|
65
64
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
65
|
+
return InternalServerException;
|
|
66
|
+
}(__BaseException));
|
|
67
|
+
export { InternalServerException };
|
|
68
|
+
var ThrottlingException = (function (_super) {
|
|
69
|
+
__extends(ThrottlingException, _super);
|
|
70
|
+
function ThrottlingException(opts) {
|
|
71
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
72
|
+
_this.name = "ThrottlingException";
|
|
73
|
+
_this.$fault = "client";
|
|
74
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
75
|
+
_this.Message = opts.Message;
|
|
76
|
+
return _this;
|
|
78
77
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
78
|
+
return ThrottlingException;
|
|
79
|
+
}(__BaseException));
|
|
80
|
+
export { ThrottlingException };
|
|
81
|
+
var ValidationException = (function (_super) {
|
|
82
|
+
__extends(ValidationException, _super);
|
|
83
|
+
function ValidationException(opts) {
|
|
84
|
+
var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
|
|
85
|
+
_this.name = "ValidationException";
|
|
86
|
+
_this.$fault = "client";
|
|
87
|
+
Object.setPrototypeOf(_this, ValidationException.prototype);
|
|
88
|
+
_this.Message = opts.Message;
|
|
89
|
+
return _this;
|
|
91
90
|
}
|
|
92
|
-
|
|
91
|
+
return ValidationException;
|
|
92
|
+
}(__BaseException));
|
|
93
|
+
export { ValidationException };
|
|
93
94
|
export var VendorName;
|
|
94
95
|
(function (VendorName) {
|
|
95
96
|
VendorName["GITHUB"] = "GitHub";
|
|
@@ -114,37 +115,37 @@ export var Type;
|
|
|
114
115
|
Type["PULL_REQUEST"] = "PullRequest";
|
|
115
116
|
Type["REPOSITORY_ANALYSIS"] = "RepositoryAnalysis";
|
|
116
117
|
})(Type || (Type = {}));
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
127
|
-
this.Message = opts.Message;
|
|
118
|
+
var ResourceNotFoundException = (function (_super) {
|
|
119
|
+
__extends(ResourceNotFoundException, _super);
|
|
120
|
+
function ResourceNotFoundException(opts) {
|
|
121
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
122
|
+
_this.name = "ResourceNotFoundException";
|
|
123
|
+
_this.$fault = "client";
|
|
124
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
125
|
+
_this.Message = opts.Message;
|
|
126
|
+
return _this;
|
|
128
127
|
}
|
|
129
|
-
|
|
128
|
+
return ResourceNotFoundException;
|
|
129
|
+
}(__BaseException));
|
|
130
|
+
export { ResourceNotFoundException };
|
|
130
131
|
export var Reaction;
|
|
131
132
|
(function (Reaction) {
|
|
132
133
|
Reaction["THUMBS_DOWN"] = "ThumbsDown";
|
|
133
134
|
Reaction["THUMBS_UP"] = "ThumbsUp";
|
|
134
135
|
})(Reaction || (Reaction = {}));
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
145
|
-
this.Message = opts.Message;
|
|
136
|
+
var NotFoundException = (function (_super) {
|
|
137
|
+
__extends(NotFoundException, _super);
|
|
138
|
+
function NotFoundException(opts) {
|
|
139
|
+
var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
|
|
140
|
+
_this.name = "NotFoundException";
|
|
141
|
+
_this.$fault = "client";
|
|
142
|
+
Object.setPrototypeOf(_this, NotFoundException.prototype);
|
|
143
|
+
_this.Message = opts.Message;
|
|
144
|
+
return _this;
|
|
146
145
|
}
|
|
147
|
-
|
|
146
|
+
return NotFoundException;
|
|
147
|
+
}(__BaseException));
|
|
148
|
+
export { NotFoundException };
|
|
148
149
|
export var RecommendationCategory;
|
|
149
150
|
(function (RecommendationCategory) {
|
|
150
151
|
RecommendationCategory["AWS_BEST_PRACTICES"] = "AWSBestPractices";
|
|
@@ -167,165 +168,57 @@ export var Severity;
|
|
|
167
168
|
Severity["LOW"] = "Low";
|
|
168
169
|
Severity["MEDIUM"] = "Medium";
|
|
169
170
|
})(Severity || (Severity = {}));
|
|
170
|
-
export
|
|
171
|
-
|
|
172
|
-
});
|
|
173
|
-
export
|
|
174
|
-
|
|
175
|
-
});
|
|
176
|
-
export
|
|
177
|
-
|
|
178
|
-
});
|
|
179
|
-
export
|
|
180
|
-
|
|
181
|
-
});
|
|
182
|
-
export
|
|
183
|
-
|
|
184
|
-
});
|
|
185
|
-
export
|
|
186
|
-
|
|
187
|
-
});
|
|
188
|
-
export
|
|
189
|
-
|
|
190
|
-
});
|
|
191
|
-
export
|
|
192
|
-
|
|
193
|
-
});
|
|
194
|
-
export
|
|
195
|
-
|
|
196
|
-
});
|
|
197
|
-
export
|
|
198
|
-
|
|
199
|
-
});
|
|
200
|
-
export
|
|
201
|
-
|
|
202
|
-
});
|
|
203
|
-
export
|
|
204
|
-
|
|
205
|
-
});
|
|
206
|
-
export
|
|
207
|
-
|
|
208
|
-
});
|
|
209
|
-
export
|
|
210
|
-
|
|
211
|
-
});
|
|
212
|
-
export
|
|
213
|
-
|
|
214
|
-
});
|
|
215
|
-
export
|
|
216
|
-
|
|
217
|
-
});
|
|
218
|
-
export
|
|
219
|
-
|
|
220
|
-
});
|
|
221
|
-
export
|
|
222
|
-
|
|
223
|
-
});
|
|
224
|
-
export const CodeReviewTypeFilterSensitiveLog = (obj) => ({
|
|
225
|
-
...obj,
|
|
226
|
-
});
|
|
227
|
-
export const CreateCodeReviewRequestFilterSensitiveLog = (obj) => ({
|
|
228
|
-
...obj,
|
|
229
|
-
});
|
|
230
|
-
export const MetricsFilterSensitiveLog = (obj) => ({
|
|
231
|
-
...obj,
|
|
232
|
-
});
|
|
233
|
-
export const CodeReviewFilterSensitiveLog = (obj) => ({
|
|
234
|
-
...obj,
|
|
235
|
-
});
|
|
236
|
-
export const CreateCodeReviewResponseFilterSensitiveLog = (obj) => ({
|
|
237
|
-
...obj,
|
|
238
|
-
});
|
|
239
|
-
export const DescribeCodeReviewRequestFilterSensitiveLog = (obj) => ({
|
|
240
|
-
...obj,
|
|
241
|
-
});
|
|
242
|
-
export const DescribeCodeReviewResponseFilterSensitiveLog = (obj) => ({
|
|
243
|
-
...obj,
|
|
244
|
-
});
|
|
245
|
-
export const DescribeRecommendationFeedbackRequestFilterSensitiveLog = (obj) => ({
|
|
246
|
-
...obj,
|
|
247
|
-
});
|
|
248
|
-
export const RecommendationFeedbackFilterSensitiveLog = (obj) => ({
|
|
249
|
-
...obj,
|
|
250
|
-
});
|
|
251
|
-
export const DescribeRecommendationFeedbackResponseFilterSensitiveLog = (obj) => ({
|
|
252
|
-
...obj,
|
|
253
|
-
});
|
|
254
|
-
export const DescribeRepositoryAssociationRequestFilterSensitiveLog = (obj) => ({
|
|
255
|
-
...obj,
|
|
256
|
-
});
|
|
257
|
-
export const DescribeRepositoryAssociationResponseFilterSensitiveLog = (obj) => ({
|
|
258
|
-
...obj,
|
|
259
|
-
});
|
|
260
|
-
export const DisassociateRepositoryRequestFilterSensitiveLog = (obj) => ({
|
|
261
|
-
...obj,
|
|
262
|
-
});
|
|
263
|
-
export const DisassociateRepositoryResponseFilterSensitiveLog = (obj) => ({
|
|
264
|
-
...obj,
|
|
265
|
-
});
|
|
266
|
-
export const ListCodeReviewsRequestFilterSensitiveLog = (obj) => ({
|
|
267
|
-
...obj,
|
|
268
|
-
});
|
|
269
|
-
export const MetricsSummaryFilterSensitiveLog = (obj) => ({
|
|
270
|
-
...obj,
|
|
271
|
-
});
|
|
272
|
-
export const CodeReviewSummaryFilterSensitiveLog = (obj) => ({
|
|
273
|
-
...obj,
|
|
274
|
-
});
|
|
275
|
-
export const ListCodeReviewsResponseFilterSensitiveLog = (obj) => ({
|
|
276
|
-
...obj,
|
|
277
|
-
});
|
|
278
|
-
export const ListRecommendationFeedbackRequestFilterSensitiveLog = (obj) => ({
|
|
279
|
-
...obj,
|
|
280
|
-
});
|
|
281
|
-
export const RecommendationFeedbackSummaryFilterSensitiveLog = (obj) => ({
|
|
282
|
-
...obj,
|
|
283
|
-
});
|
|
284
|
-
export const ListRecommendationFeedbackResponseFilterSensitiveLog = (obj) => ({
|
|
285
|
-
...obj,
|
|
286
|
-
});
|
|
287
|
-
export const ListRecommendationsRequestFilterSensitiveLog = (obj) => ({
|
|
288
|
-
...obj,
|
|
289
|
-
});
|
|
290
|
-
export const RuleMetadataFilterSensitiveLog = (obj) => ({
|
|
291
|
-
...obj,
|
|
292
|
-
});
|
|
293
|
-
export const RecommendationSummaryFilterSensitiveLog = (obj) => ({
|
|
294
|
-
...obj,
|
|
295
|
-
});
|
|
296
|
-
export const ListRecommendationsResponseFilterSensitiveLog = (obj) => ({
|
|
297
|
-
...obj,
|
|
298
|
-
});
|
|
299
|
-
export const ListRepositoryAssociationsRequestFilterSensitiveLog = (obj) => ({
|
|
300
|
-
...obj,
|
|
301
|
-
});
|
|
302
|
-
export const RepositoryAssociationSummaryFilterSensitiveLog = (obj) => ({
|
|
303
|
-
...obj,
|
|
304
|
-
});
|
|
305
|
-
export const ListRepositoryAssociationsResponseFilterSensitiveLog = (obj) => ({
|
|
306
|
-
...obj,
|
|
307
|
-
});
|
|
308
|
-
export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
309
|
-
...obj,
|
|
310
|
-
});
|
|
311
|
-
export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
312
|
-
...obj,
|
|
313
|
-
});
|
|
314
|
-
export const PutRecommendationFeedbackRequestFilterSensitiveLog = (obj) => ({
|
|
315
|
-
...obj,
|
|
316
|
-
});
|
|
317
|
-
export const PutRecommendationFeedbackResponseFilterSensitiveLog = (obj) => ({
|
|
318
|
-
...obj,
|
|
319
|
-
});
|
|
320
|
-
export const TagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
321
|
-
...obj,
|
|
322
|
-
});
|
|
323
|
-
export const TagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
324
|
-
...obj,
|
|
325
|
-
});
|
|
326
|
-
export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
|
|
327
|
-
...obj,
|
|
328
|
-
});
|
|
329
|
-
export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
|
|
330
|
-
...obj,
|
|
331
|
-
});
|
|
171
|
+
export var KMSKeyDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
172
|
+
export var ThirdPartySourceRepositoryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
173
|
+
export var CodeCommitRepositoryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
174
|
+
export var S3RepositoryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
175
|
+
export var RepositoryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
176
|
+
export var AssociateRepositoryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
177
|
+
export var CodeArtifactsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
178
|
+
export var S3RepositoryDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
179
|
+
export var RepositoryAssociationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
180
|
+
export var AssociateRepositoryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
181
|
+
export var RepositoryHeadSourceCodeTypeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
182
|
+
export var BranchDiffSourceCodeTypeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
183
|
+
export var CommitDiffSourceCodeTypeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
184
|
+
export var EventInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
185
|
+
export var RequestMetadataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
186
|
+
export var S3BucketRepositoryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
187
|
+
export var SourceCodeTypeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
188
|
+
export var RepositoryAnalysisFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
189
|
+
export var CodeReviewTypeFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
190
|
+
export var CreateCodeReviewRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
191
|
+
export var MetricsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
192
|
+
export var CodeReviewFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
193
|
+
export var CreateCodeReviewResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
194
|
+
export var DescribeCodeReviewRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
195
|
+
export var DescribeCodeReviewResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
196
|
+
export var DescribeRecommendationFeedbackRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
197
|
+
export var RecommendationFeedbackFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
198
|
+
export var DescribeRecommendationFeedbackResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
199
|
+
export var DescribeRepositoryAssociationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
200
|
+
export var DescribeRepositoryAssociationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
201
|
+
export var DisassociateRepositoryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
202
|
+
export var DisassociateRepositoryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
203
|
+
export var ListCodeReviewsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
204
|
+
export var MetricsSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
205
|
+
export var CodeReviewSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
206
|
+
export var ListCodeReviewsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
207
|
+
export var ListRecommendationFeedbackRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
208
|
+
export var RecommendationFeedbackSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
209
|
+
export var ListRecommendationFeedbackResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
210
|
+
export var ListRecommendationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
211
|
+
export var RuleMetadataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
212
|
+
export var RecommendationSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
213
|
+
export var ListRecommendationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
214
|
+
export var ListRepositoryAssociationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
215
|
+
export var RepositoryAssociationSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
216
|
+
export var ListRepositoryAssociationsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
217
|
+
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
218
|
+
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
219
|
+
export var PutRecommendationFeedbackRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
220
|
+
export var PutRecommendationFeedbackResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
221
|
+
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
222
|
+
export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
223
|
+
export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
224
|
+
export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,32 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
1
2
|
import { CodeGuruReviewer } from "../CodeGuruReviewer";
|
|
2
3
|
import { CodeGuruReviewerClient } from "../CodeGuruReviewerClient";
|
|
3
4
|
import { ListCodeReviewsCommand, } from "../commands/ListCodeReviewsCommand";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListCodeReviewsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
6
18
|
};
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listCodeReviews.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
9
32
|
};
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
while (hasNext) {
|
|
15
|
-
input.NextToken = token;
|
|
16
|
-
input["MaxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof CodeGuruReviewer) {
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof CodeGuruReviewerClient) {
|
|
21
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
throw new Error("Invalid client, expected CodeGuruReviewer | CodeGuruReviewerClient");
|
|
25
|
-
}
|
|
26
|
-
yield page;
|
|
27
|
-
const prevToken = token;
|
|
28
|
-
token = page.NextToken;
|
|
29
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
export function paginateListCodeReviews(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
30
37
|
}
|
|
31
|
-
return
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListCodeReviews_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof CodeGuruReviewer)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof CodeGuruReviewerClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected CodeGuruReviewer | CodeGuruReviewerClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
32
75
|
}
|