@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
|
@@ -1,1176 +1,1556 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { CodeGuruReviewerServiceException as __BaseException } from "../models/CodeGuruReviewerServiceException";
|
|
5
6
|
import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
export var serializeAws_restJson1AssociateRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
9
|
+
var _c;
|
|
10
|
+
return __generator(this, function (_d) {
|
|
11
|
+
switch (_d.label) {
|
|
12
|
+
case 0: return [4, context.endpoint()];
|
|
13
|
+
case 1:
|
|
14
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
15
|
+
headers = {
|
|
16
|
+
"content-type": "application/json",
|
|
17
|
+
};
|
|
18
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/associations";
|
|
19
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.KMSKeyDetails != null && {
|
|
20
|
+
KMSKeyDetails: serializeAws_restJson1KMSKeyDetails(input.KMSKeyDetails, context),
|
|
21
|
+
})), (input.Repository != null && { Repository: serializeAws_restJson1Repository(input.Repository, context) })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
22
|
+
return [2, new __HttpRequest({
|
|
23
|
+
protocol: protocol,
|
|
24
|
+
hostname: hostname,
|
|
25
|
+
port: port,
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers: headers,
|
|
28
|
+
path: resolvedPath,
|
|
29
|
+
body: body,
|
|
30
|
+
})];
|
|
31
|
+
}
|
|
20
32
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
}); };
|
|
34
|
+
export var serializeAws_restJson1CreateCodeReviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
35
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
36
|
+
var _c;
|
|
37
|
+
return __generator(this, function (_d) {
|
|
38
|
+
switch (_d.label) {
|
|
39
|
+
case 0: return [4, context.endpoint()];
|
|
40
|
+
case 1:
|
|
41
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/json",
|
|
44
|
+
};
|
|
45
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/codereviews";
|
|
46
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Name != null && { Name: input.Name })), (input.RepositoryAssociationArn != null && { RepositoryAssociationArn: input.RepositoryAssociationArn })), (input.Type != null && { Type: serializeAws_restJson1CodeReviewType(input.Type, context) })));
|
|
47
|
+
return [2, new __HttpRequest({
|
|
48
|
+
protocol: protocol,
|
|
49
|
+
hostname: hostname,
|
|
50
|
+
port: port,
|
|
51
|
+
method: "POST",
|
|
52
|
+
headers: headers,
|
|
53
|
+
path: resolvedPath,
|
|
54
|
+
body: body,
|
|
55
|
+
})];
|
|
56
|
+
}
|
|
29
57
|
});
|
|
30
|
-
};
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
58
|
+
}); };
|
|
59
|
+
export var serializeAws_restJson1DescribeCodeReviewCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
61
|
+
return __generator(this, function (_c) {
|
|
62
|
+
switch (_c.label) {
|
|
63
|
+
case 0: return [4, context.endpoint()];
|
|
64
|
+
case 1:
|
|
65
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
66
|
+
headers = {};
|
|
67
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/codereviews/{CodeReviewArn}";
|
|
68
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CodeReviewArn", function () { return input.CodeReviewArn; }, "{CodeReviewArn}", false);
|
|
69
|
+
return [2, new __HttpRequest({
|
|
70
|
+
protocol: protocol,
|
|
71
|
+
hostname: hostname,
|
|
72
|
+
port: port,
|
|
73
|
+
method: "GET",
|
|
74
|
+
headers: headers,
|
|
75
|
+
path: resolvedPath,
|
|
76
|
+
body: body,
|
|
77
|
+
})];
|
|
78
|
+
}
|
|
43
79
|
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
80
|
+
}); };
|
|
81
|
+
export var serializeAws_restJson1DescribeRecommendationFeedbackCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
83
|
+
return __generator(this, function (_c) {
|
|
84
|
+
switch (_c.label) {
|
|
85
|
+
case 0: return [4, context.endpoint()];
|
|
86
|
+
case 1:
|
|
87
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
88
|
+
headers = {};
|
|
89
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/feedback/{CodeReviewArn}";
|
|
90
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CodeReviewArn", function () { return input.CodeReviewArn; }, "{CodeReviewArn}", false);
|
|
91
|
+
query = map({
|
|
92
|
+
RecommendationId: [, input.RecommendationId],
|
|
93
|
+
UserId: [, input.UserId],
|
|
94
|
+
});
|
|
95
|
+
return [2, new __HttpRequest({
|
|
96
|
+
protocol: protocol,
|
|
97
|
+
hostname: hostname,
|
|
98
|
+
port: port,
|
|
99
|
+
method: "GET",
|
|
100
|
+
headers: headers,
|
|
101
|
+
path: resolvedPath,
|
|
102
|
+
query: query,
|
|
103
|
+
body: body,
|
|
104
|
+
})];
|
|
105
|
+
}
|
|
52
106
|
});
|
|
53
|
-
};
|
|
54
|
-
export
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
107
|
+
}); };
|
|
108
|
+
export var serializeAws_restJson1DescribeRepositoryAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
109
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
110
|
+
return __generator(this, function (_c) {
|
|
111
|
+
switch (_c.label) {
|
|
112
|
+
case 0: return [4, context.endpoint()];
|
|
113
|
+
case 1:
|
|
114
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
115
|
+
headers = {};
|
|
116
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/associations/{AssociationArn}";
|
|
117
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AssociationArn", function () { return input.AssociationArn; }, "{AssociationArn}", false);
|
|
118
|
+
return [2, new __HttpRequest({
|
|
119
|
+
protocol: protocol,
|
|
120
|
+
hostname: hostname,
|
|
121
|
+
port: port,
|
|
122
|
+
method: "GET",
|
|
123
|
+
headers: headers,
|
|
124
|
+
path: resolvedPath,
|
|
125
|
+
body: body,
|
|
126
|
+
})];
|
|
127
|
+
}
|
|
68
128
|
});
|
|
69
|
-
};
|
|
70
|
-
export
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
129
|
+
}); };
|
|
130
|
+
export var serializeAws_restJson1DisassociateRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
131
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
132
|
+
return __generator(this, function (_c) {
|
|
133
|
+
switch (_c.label) {
|
|
134
|
+
case 0: return [4, context.endpoint()];
|
|
135
|
+
case 1:
|
|
136
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
137
|
+
headers = {};
|
|
138
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/associations/{AssociationArn}";
|
|
139
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "AssociationArn", function () { return input.AssociationArn; }, "{AssociationArn}", false);
|
|
140
|
+
return [2, new __HttpRequest({
|
|
141
|
+
protocol: protocol,
|
|
142
|
+
hostname: hostname,
|
|
143
|
+
port: port,
|
|
144
|
+
method: "DELETE",
|
|
145
|
+
headers: headers,
|
|
146
|
+
path: resolvedPath,
|
|
147
|
+
body: body,
|
|
148
|
+
})];
|
|
149
|
+
}
|
|
78
150
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
151
|
+
}); };
|
|
152
|
+
export var serializeAws_restJson1ListCodeReviewsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
153
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
154
|
+
return __generator(this, function (_c) {
|
|
155
|
+
switch (_c.label) {
|
|
156
|
+
case 0: return [4, context.endpoint()];
|
|
157
|
+
case 1:
|
|
158
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
159
|
+
headers = {};
|
|
160
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/codereviews";
|
|
161
|
+
query = map({
|
|
162
|
+
ProviderTypes: [
|
|
163
|
+
function () { return input.ProviderTypes !== void 0; },
|
|
164
|
+
function () { return (input.ProviderTypes || []).map(function (_entry) { return _entry; }); },
|
|
165
|
+
],
|
|
166
|
+
States: [function () { return input.States !== void 0; }, function () { return (input.States || []).map(function (_entry) { return _entry; }); }],
|
|
167
|
+
RepositoryNames: [
|
|
168
|
+
function () { return input.RepositoryNames !== void 0; },
|
|
169
|
+
function () { return (input.RepositoryNames || []).map(function (_entry) { return _entry; }); },
|
|
170
|
+
],
|
|
171
|
+
Type: [, input.Type],
|
|
172
|
+
MaxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
173
|
+
NextToken: [, input.NextToken],
|
|
174
|
+
});
|
|
175
|
+
return [2, new __HttpRequest({
|
|
176
|
+
protocol: protocol,
|
|
177
|
+
hostname: hostname,
|
|
178
|
+
port: port,
|
|
179
|
+
method: "GET",
|
|
180
|
+
headers: headers,
|
|
181
|
+
path: resolvedPath,
|
|
182
|
+
query: query,
|
|
183
|
+
body: body,
|
|
184
|
+
})];
|
|
185
|
+
}
|
|
89
186
|
});
|
|
90
|
-
};
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
187
|
+
}); };
|
|
188
|
+
export var serializeAws_restJson1ListRecommendationFeedbackCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
189
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
190
|
+
return __generator(this, function (_c) {
|
|
191
|
+
switch (_c.label) {
|
|
192
|
+
case 0: return [4, context.endpoint()];
|
|
193
|
+
case 1:
|
|
194
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
195
|
+
headers = {};
|
|
196
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
197
|
+
"/feedback/{CodeReviewArn}/RecommendationFeedback";
|
|
198
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CodeReviewArn", function () { return input.CodeReviewArn; }, "{CodeReviewArn}", false);
|
|
199
|
+
query = map({
|
|
200
|
+
NextToken: [, input.NextToken],
|
|
201
|
+
MaxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
202
|
+
UserIds: [function () { return input.UserIds !== void 0; }, function () { return (input.UserIds || []).map(function (_entry) { return _entry; }); }],
|
|
203
|
+
RecommendationIds: [
|
|
204
|
+
function () { return input.RecommendationIds !== void 0; },
|
|
205
|
+
function () { return (input.RecommendationIds || []).map(function (_entry) { return _entry; }); },
|
|
206
|
+
],
|
|
207
|
+
});
|
|
208
|
+
return [2, new __HttpRequest({
|
|
209
|
+
protocol: protocol,
|
|
210
|
+
hostname: hostname,
|
|
211
|
+
port: port,
|
|
212
|
+
method: "GET",
|
|
213
|
+
headers: headers,
|
|
214
|
+
path: resolvedPath,
|
|
215
|
+
query: query,
|
|
216
|
+
body: body,
|
|
217
|
+
})];
|
|
218
|
+
}
|
|
105
219
|
});
|
|
106
|
-
};
|
|
107
|
-
export
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
220
|
+
}); };
|
|
221
|
+
export var serializeAws_restJson1ListRecommendationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
222
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
223
|
+
return __generator(this, function (_c) {
|
|
224
|
+
switch (_c.label) {
|
|
225
|
+
case 0: return [4, context.endpoint()];
|
|
226
|
+
case 1:
|
|
227
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
228
|
+
headers = {};
|
|
229
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
230
|
+
"/codereviews/{CodeReviewArn}/Recommendations";
|
|
231
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CodeReviewArn", function () { return input.CodeReviewArn; }, "{CodeReviewArn}", false);
|
|
232
|
+
query = map({
|
|
233
|
+
NextToken: [, input.NextToken],
|
|
234
|
+
MaxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
235
|
+
});
|
|
236
|
+
return [2, new __HttpRequest({
|
|
237
|
+
protocol: protocol,
|
|
238
|
+
hostname: hostname,
|
|
239
|
+
port: port,
|
|
240
|
+
method: "GET",
|
|
241
|
+
headers: headers,
|
|
242
|
+
path: resolvedPath,
|
|
243
|
+
query: query,
|
|
244
|
+
body: body,
|
|
245
|
+
})];
|
|
246
|
+
}
|
|
121
247
|
});
|
|
122
|
-
};
|
|
123
|
-
export
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
248
|
+
}); };
|
|
249
|
+
export var serializeAws_restJson1ListRepositoryAssociationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
250
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
251
|
+
return __generator(this, function (_c) {
|
|
252
|
+
switch (_c.label) {
|
|
253
|
+
case 0: return [4, context.endpoint()];
|
|
254
|
+
case 1:
|
|
255
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
256
|
+
headers = {};
|
|
257
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/associations";
|
|
258
|
+
query = map({
|
|
259
|
+
ProviderType: [
|
|
260
|
+
function () { return input.ProviderTypes !== void 0; },
|
|
261
|
+
function () { return (input.ProviderTypes || []).map(function (_entry) { return _entry; }); },
|
|
262
|
+
],
|
|
263
|
+
State: [function () { return input.States !== void 0; }, function () { return (input.States || []).map(function (_entry) { return _entry; }); }],
|
|
264
|
+
Name: [function () { return input.Names !== void 0; }, function () { return (input.Names || []).map(function (_entry) { return _entry; }); }],
|
|
265
|
+
Owner: [function () { return input.Owners !== void 0; }, function () { return (input.Owners || []).map(function (_entry) { return _entry; }); }],
|
|
266
|
+
MaxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
267
|
+
NextToken: [, input.NextToken],
|
|
268
|
+
});
|
|
269
|
+
return [2, new __HttpRequest({
|
|
270
|
+
protocol: protocol,
|
|
271
|
+
hostname: hostname,
|
|
272
|
+
port: port,
|
|
273
|
+
method: "GET",
|
|
274
|
+
headers: headers,
|
|
275
|
+
path: resolvedPath,
|
|
276
|
+
query: query,
|
|
277
|
+
body: body,
|
|
278
|
+
})];
|
|
279
|
+
}
|
|
140
280
|
});
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
281
|
+
}); };
|
|
282
|
+
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
283
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
284
|
+
return __generator(this, function (_c) {
|
|
285
|
+
switch (_c.label) {
|
|
286
|
+
case 0: return [4, context.endpoint()];
|
|
287
|
+
case 1:
|
|
288
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
289
|
+
headers = {};
|
|
290
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
291
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
292
|
+
return [2, new __HttpRequest({
|
|
293
|
+
protocol: protocol,
|
|
294
|
+
hostname: hostname,
|
|
295
|
+
port: port,
|
|
296
|
+
method: "GET",
|
|
297
|
+
headers: headers,
|
|
298
|
+
path: resolvedPath,
|
|
299
|
+
body: body,
|
|
300
|
+
})];
|
|
301
|
+
}
|
|
151
302
|
});
|
|
152
|
-
};
|
|
153
|
-
export
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
303
|
+
}); };
|
|
304
|
+
export var serializeAws_restJson1PutRecommendationFeedbackCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
305
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
306
|
+
return __generator(this, function (_c) {
|
|
307
|
+
switch (_c.label) {
|
|
308
|
+
case 0: return [4, context.endpoint()];
|
|
309
|
+
case 1:
|
|
310
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
311
|
+
headers = {
|
|
312
|
+
"content-type": "application/json",
|
|
313
|
+
};
|
|
314
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/feedback";
|
|
315
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.CodeReviewArn != null && { CodeReviewArn: input.CodeReviewArn })), (input.Reactions != null && { Reactions: serializeAws_restJson1Reactions(input.Reactions, context) })), (input.RecommendationId != null && { RecommendationId: input.RecommendationId })));
|
|
316
|
+
return [2, new __HttpRequest({
|
|
317
|
+
protocol: protocol,
|
|
318
|
+
hostname: hostname,
|
|
319
|
+
port: port,
|
|
320
|
+
method: "PUT",
|
|
321
|
+
headers: headers,
|
|
322
|
+
path: resolvedPath,
|
|
323
|
+
body: body,
|
|
324
|
+
})];
|
|
325
|
+
}
|
|
167
326
|
});
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
327
|
+
}); };
|
|
328
|
+
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
329
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
330
|
+
return __generator(this, function (_c) {
|
|
331
|
+
switch (_c.label) {
|
|
332
|
+
case 0: return [4, context.endpoint()];
|
|
333
|
+
case 1:
|
|
334
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
335
|
+
headers = {
|
|
336
|
+
"content-type": "application/json",
|
|
337
|
+
};
|
|
338
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
339
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
340
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
341
|
+
return [2, new __HttpRequest({
|
|
342
|
+
protocol: protocol,
|
|
343
|
+
hostname: hostname,
|
|
344
|
+
port: port,
|
|
345
|
+
method: "POST",
|
|
346
|
+
headers: headers,
|
|
347
|
+
path: resolvedPath,
|
|
348
|
+
body: body,
|
|
349
|
+
})];
|
|
350
|
+
}
|
|
178
351
|
});
|
|
179
|
-
};
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
352
|
+
}); };
|
|
353
|
+
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
354
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
355
|
+
return __generator(this, function (_c) {
|
|
356
|
+
switch (_c.label) {
|
|
357
|
+
case 0: return [4, context.endpoint()];
|
|
358
|
+
case 1:
|
|
359
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
360
|
+
headers = {};
|
|
361
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
362
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
363
|
+
query = map({
|
|
364
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
365
|
+
});
|
|
366
|
+
return [2, new __HttpRequest({
|
|
367
|
+
protocol: protocol,
|
|
368
|
+
hostname: hostname,
|
|
369
|
+
port: port,
|
|
370
|
+
method: "DELETE",
|
|
371
|
+
headers: headers,
|
|
372
|
+
path: resolvedPath,
|
|
373
|
+
query: query,
|
|
374
|
+
body: body,
|
|
375
|
+
})];
|
|
376
|
+
}
|
|
189
377
|
});
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
378
|
+
}); };
|
|
379
|
+
export var deserializeAws_restJson1AssociateRepositoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
380
|
+
var contents, data, _a, _b;
|
|
381
|
+
return __generator(this, function (_c) {
|
|
382
|
+
switch (_c.label) {
|
|
383
|
+
case 0:
|
|
384
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
385
|
+
return [2, deserializeAws_restJson1AssociateRepositoryCommandError(output, context)];
|
|
386
|
+
}
|
|
387
|
+
contents = map({
|
|
388
|
+
$metadata: deserializeMetadata(output),
|
|
389
|
+
});
|
|
390
|
+
_a = __expectNonNull;
|
|
391
|
+
_b = __expectObject;
|
|
392
|
+
return [4, parseBody(output.body, context)];
|
|
393
|
+
case 1:
|
|
394
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
395
|
+
if (data.RepositoryAssociation != null) {
|
|
396
|
+
contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
|
|
397
|
+
}
|
|
398
|
+
if (data.Tags != null) {
|
|
399
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
400
|
+
}
|
|
401
|
+
return [2, contents];
|
|
402
|
+
}
|
|
200
403
|
});
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
404
|
+
}); };
|
|
405
|
+
var deserializeAws_restJson1AssociateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
406
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
407
|
+
var _c;
|
|
408
|
+
return __generator(this, function (_d) {
|
|
409
|
+
switch (_d.label) {
|
|
410
|
+
case 0:
|
|
411
|
+
_a = [__assign({}, output)];
|
|
412
|
+
_c = {};
|
|
413
|
+
return [4, parseErrorBody(output.body, context)];
|
|
414
|
+
case 1:
|
|
415
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
416
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
417
|
+
_b = errorCode;
|
|
418
|
+
switch (_b) {
|
|
419
|
+
case "AccessDeniedException": return [3, 2];
|
|
420
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException": return [3, 2];
|
|
421
|
+
case "ConflictException": return [3, 4];
|
|
422
|
+
case "com.amazonaws.codegurureviewer#ConflictException": return [3, 4];
|
|
423
|
+
case "InternalServerException": return [3, 6];
|
|
424
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 6];
|
|
425
|
+
case "ThrottlingException": return [3, 8];
|
|
426
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 8];
|
|
427
|
+
case "ValidationException": return [3, 10];
|
|
428
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
429
|
+
}
|
|
430
|
+
return [3, 12];
|
|
431
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
432
|
+
case 3: throw _d.sent();
|
|
433
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
434
|
+
case 5: throw _d.sent();
|
|
435
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
436
|
+
case 7: throw _d.sent();
|
|
437
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
438
|
+
case 9: throw _d.sent();
|
|
439
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
440
|
+
case 11: throw _d.sent();
|
|
441
|
+
case 12:
|
|
442
|
+
parsedBody = parsedOutput.body;
|
|
443
|
+
throwDefaultError({
|
|
444
|
+
output: output,
|
|
445
|
+
parsedBody: parsedBody,
|
|
446
|
+
exceptionCtor: __BaseException,
|
|
447
|
+
errorCode: errorCode,
|
|
448
|
+
});
|
|
449
|
+
_d.label = 13;
|
|
450
|
+
case 13: return [2];
|
|
451
|
+
}
|
|
216
452
|
});
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
453
|
+
}); };
|
|
454
|
+
export var deserializeAws_restJson1CreateCodeReviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
455
|
+
var contents, data, _a, _b;
|
|
456
|
+
return __generator(this, function (_c) {
|
|
457
|
+
switch (_c.label) {
|
|
458
|
+
case 0:
|
|
459
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
460
|
+
return [2, deserializeAws_restJson1CreateCodeReviewCommandError(output, context)];
|
|
461
|
+
}
|
|
462
|
+
contents = map({
|
|
463
|
+
$metadata: deserializeMetadata(output),
|
|
464
|
+
});
|
|
465
|
+
_a = __expectNonNull;
|
|
466
|
+
_b = __expectObject;
|
|
467
|
+
return [4, parseBody(output.body, context)];
|
|
468
|
+
case 1:
|
|
469
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
470
|
+
if (data.CodeReview != null) {
|
|
471
|
+
contents.CodeReview = deserializeAws_restJson1CodeReview(data.CodeReview, context);
|
|
472
|
+
}
|
|
473
|
+
return [2, contents];
|
|
474
|
+
}
|
|
227
475
|
});
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
476
|
+
}); };
|
|
477
|
+
var deserializeAws_restJson1CreateCodeReviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
478
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
479
|
+
var _c;
|
|
480
|
+
return __generator(this, function (_d) {
|
|
481
|
+
switch (_d.label) {
|
|
482
|
+
case 0:
|
|
483
|
+
_a = [__assign({}, output)];
|
|
484
|
+
_c = {};
|
|
485
|
+
return [4, parseErrorBody(output.body, context)];
|
|
486
|
+
case 1:
|
|
487
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
488
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
489
|
+
_b = errorCode;
|
|
490
|
+
switch (_b) {
|
|
491
|
+
case "AccessDeniedException": return [3, 2];
|
|
492
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException": return [3, 2];
|
|
493
|
+
case "ConflictException": return [3, 4];
|
|
494
|
+
case "com.amazonaws.codegurureviewer#ConflictException": return [3, 4];
|
|
495
|
+
case "InternalServerException": return [3, 6];
|
|
496
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 6];
|
|
497
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
498
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException": return [3, 8];
|
|
499
|
+
case "ThrottlingException": return [3, 10];
|
|
500
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 10];
|
|
501
|
+
case "ValidationException": return [3, 12];
|
|
502
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 12];
|
|
503
|
+
}
|
|
504
|
+
return [3, 14];
|
|
505
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
506
|
+
case 3: throw _d.sent();
|
|
507
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
508
|
+
case 5: throw _d.sent();
|
|
509
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
510
|
+
case 7: throw _d.sent();
|
|
511
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
512
|
+
case 9: throw _d.sent();
|
|
513
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
514
|
+
case 11: throw _d.sent();
|
|
515
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
516
|
+
case 13: throw _d.sent();
|
|
517
|
+
case 14:
|
|
518
|
+
parsedBody = parsedOutput.body;
|
|
519
|
+
throwDefaultError({
|
|
520
|
+
output: output,
|
|
521
|
+
parsedBody: parsedBody,
|
|
522
|
+
exceptionCtor: __BaseException,
|
|
523
|
+
errorCode: errorCode,
|
|
524
|
+
});
|
|
525
|
+
_d.label = 15;
|
|
526
|
+
case 15: return [2];
|
|
527
|
+
}
|
|
243
528
|
});
|
|
244
|
-
};
|
|
245
|
-
export
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
529
|
+
}); };
|
|
530
|
+
export var deserializeAws_restJson1DescribeCodeReviewCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
531
|
+
var contents, data, _a, _b;
|
|
532
|
+
return __generator(this, function (_c) {
|
|
533
|
+
switch (_c.label) {
|
|
534
|
+
case 0:
|
|
535
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
536
|
+
return [2, deserializeAws_restJson1DescribeCodeReviewCommandError(output, context)];
|
|
537
|
+
}
|
|
538
|
+
contents = map({
|
|
539
|
+
$metadata: deserializeMetadata(output),
|
|
540
|
+
});
|
|
541
|
+
_a = __expectNonNull;
|
|
542
|
+
_b = __expectObject;
|
|
543
|
+
return [4, parseBody(output.body, context)];
|
|
544
|
+
case 1:
|
|
545
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
546
|
+
if (data.CodeReview != null) {
|
|
547
|
+
contents.CodeReview = deserializeAws_restJson1CodeReview(data.CodeReview, context);
|
|
548
|
+
}
|
|
549
|
+
return [2, contents];
|
|
550
|
+
}
|
|
256
551
|
});
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
552
|
+
}); };
|
|
553
|
+
var deserializeAws_restJson1DescribeCodeReviewCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
554
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
555
|
+
var _c;
|
|
556
|
+
return __generator(this, function (_d) {
|
|
557
|
+
switch (_d.label) {
|
|
558
|
+
case 0:
|
|
559
|
+
_a = [__assign({}, output)];
|
|
560
|
+
_c = {};
|
|
561
|
+
return [4, parseErrorBody(output.body, context)];
|
|
562
|
+
case 1:
|
|
563
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
564
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
+
_b = errorCode;
|
|
566
|
+
switch (_b) {
|
|
567
|
+
case "AccessDeniedException": return [3, 2];
|
|
568
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException": return [3, 2];
|
|
569
|
+
case "InternalServerException": return [3, 4];
|
|
570
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 4];
|
|
571
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
572
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException": return [3, 6];
|
|
573
|
+
case "ThrottlingException": return [3, 8];
|
|
574
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 8];
|
|
575
|
+
case "ValidationException": return [3, 10];
|
|
576
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
577
|
+
}
|
|
578
|
+
return [3, 12];
|
|
579
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
580
|
+
case 3: throw _d.sent();
|
|
581
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
582
|
+
case 5: throw _d.sent();
|
|
583
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
584
|
+
case 7: throw _d.sent();
|
|
585
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
586
|
+
case 9: throw _d.sent();
|
|
587
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
588
|
+
case 11: throw _d.sent();
|
|
589
|
+
case 12:
|
|
590
|
+
parsedBody = parsedOutput.body;
|
|
591
|
+
throwDefaultError({
|
|
592
|
+
output: output,
|
|
593
|
+
parsedBody: parsedBody,
|
|
594
|
+
exceptionCtor: __BaseException,
|
|
595
|
+
errorCode: errorCode,
|
|
596
|
+
});
|
|
597
|
+
_d.label = 13;
|
|
598
|
+
case 13: return [2];
|
|
599
|
+
}
|
|
265
600
|
});
|
|
266
|
-
};
|
|
267
|
-
export
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
601
|
+
}); };
|
|
602
|
+
export var deserializeAws_restJson1DescribeRecommendationFeedbackCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
603
|
+
var contents, data, _a, _b;
|
|
604
|
+
return __generator(this, function (_c) {
|
|
605
|
+
switch (_c.label) {
|
|
606
|
+
case 0:
|
|
607
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
608
|
+
return [2, deserializeAws_restJson1DescribeRecommendationFeedbackCommandError(output, context)];
|
|
609
|
+
}
|
|
610
|
+
contents = map({
|
|
611
|
+
$metadata: deserializeMetadata(output),
|
|
612
|
+
});
|
|
613
|
+
_a = __expectNonNull;
|
|
614
|
+
_b = __expectObject;
|
|
615
|
+
return [4, parseBody(output.body, context)];
|
|
616
|
+
case 1:
|
|
617
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
618
|
+
if (data.RecommendationFeedback != null) {
|
|
619
|
+
contents.RecommendationFeedback = deserializeAws_restJson1RecommendationFeedback(data.RecommendationFeedback, context);
|
|
620
|
+
}
|
|
621
|
+
return [2, contents];
|
|
622
|
+
}
|
|
277
623
|
});
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
624
|
+
}); };
|
|
625
|
+
var deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
626
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
627
|
+
var _c;
|
|
628
|
+
return __generator(this, function (_d) {
|
|
629
|
+
switch (_d.label) {
|
|
630
|
+
case 0:
|
|
631
|
+
_a = [__assign({}, output)];
|
|
632
|
+
_c = {};
|
|
633
|
+
return [4, parseErrorBody(output.body, context)];
|
|
634
|
+
case 1:
|
|
635
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
636
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
|
+
_b = errorCode;
|
|
638
|
+
switch (_b) {
|
|
639
|
+
case "AccessDeniedException": return [3, 2];
|
|
640
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException": return [3, 2];
|
|
641
|
+
case "InternalServerException": return [3, 4];
|
|
642
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 4];
|
|
643
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
644
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException": return [3, 6];
|
|
645
|
+
case "ThrottlingException": return [3, 8];
|
|
646
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 8];
|
|
647
|
+
case "ValidationException": return [3, 10];
|
|
648
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
649
|
+
}
|
|
650
|
+
return [3, 12];
|
|
651
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
652
|
+
case 3: throw _d.sent();
|
|
653
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
654
|
+
case 5: throw _d.sent();
|
|
655
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
656
|
+
case 7: throw _d.sent();
|
|
657
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
658
|
+
case 9: throw _d.sent();
|
|
659
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
660
|
+
case 11: throw _d.sent();
|
|
661
|
+
case 12:
|
|
662
|
+
parsedBody = parsedOutput.body;
|
|
663
|
+
throwDefaultError({
|
|
664
|
+
output: output,
|
|
665
|
+
parsedBody: parsedBody,
|
|
666
|
+
exceptionCtor: __BaseException,
|
|
667
|
+
errorCode: errorCode,
|
|
668
|
+
});
|
|
669
|
+
_d.label = 13;
|
|
670
|
+
case 13: return [2];
|
|
671
|
+
}
|
|
286
672
|
});
|
|
287
|
-
};
|
|
288
|
-
export
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
673
|
+
}); };
|
|
674
|
+
export var deserializeAws_restJson1DescribeRepositoryAssociationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
675
|
+
var contents, data, _a, _b;
|
|
676
|
+
return __generator(this, function (_c) {
|
|
677
|
+
switch (_c.label) {
|
|
678
|
+
case 0:
|
|
679
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
680
|
+
return [2, deserializeAws_restJson1DescribeRepositoryAssociationCommandError(output, context)];
|
|
681
|
+
}
|
|
682
|
+
contents = map({
|
|
683
|
+
$metadata: deserializeMetadata(output),
|
|
684
|
+
});
|
|
685
|
+
_a = __expectNonNull;
|
|
686
|
+
_b = __expectObject;
|
|
687
|
+
return [4, parseBody(output.body, context)];
|
|
688
|
+
case 1:
|
|
689
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
690
|
+
if (data.RepositoryAssociation != null) {
|
|
691
|
+
contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
|
|
692
|
+
}
|
|
693
|
+
if (data.Tags != null) {
|
|
694
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
695
|
+
}
|
|
696
|
+
return [2, contents];
|
|
697
|
+
}
|
|
295
698
|
});
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
699
|
+
}); };
|
|
700
|
+
var deserializeAws_restJson1DescribeRepositoryAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
701
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
702
|
+
var _c;
|
|
703
|
+
return __generator(this, function (_d) {
|
|
704
|
+
switch (_d.label) {
|
|
705
|
+
case 0:
|
|
706
|
+
_a = [__assign({}, output)];
|
|
707
|
+
_c = {};
|
|
708
|
+
return [4, parseErrorBody(output.body, context)];
|
|
709
|
+
case 1:
|
|
710
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
711
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
712
|
+
_b = errorCode;
|
|
713
|
+
switch (_b) {
|
|
714
|
+
case "AccessDeniedException": return [3, 2];
|
|
715
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException": return [3, 2];
|
|
716
|
+
case "InternalServerException": return [3, 4];
|
|
717
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 4];
|
|
718
|
+
case "NotFoundException": return [3, 6];
|
|
719
|
+
case "com.amazonaws.codegurureviewer#NotFoundException": return [3, 6];
|
|
720
|
+
case "ThrottlingException": return [3, 8];
|
|
721
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 8];
|
|
722
|
+
case "ValidationException": return [3, 10];
|
|
723
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
724
|
+
}
|
|
725
|
+
return [3, 12];
|
|
726
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
727
|
+
case 3: throw _d.sent();
|
|
728
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
729
|
+
case 5: throw _d.sent();
|
|
730
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
731
|
+
case 7: throw _d.sent();
|
|
732
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
733
|
+
case 9: throw _d.sent();
|
|
734
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
735
|
+
case 11: throw _d.sent();
|
|
736
|
+
case 12:
|
|
737
|
+
parsedBody = parsedOutput.body;
|
|
738
|
+
throwDefaultError({
|
|
739
|
+
output: output,
|
|
740
|
+
parsedBody: parsedBody,
|
|
741
|
+
exceptionCtor: __BaseException,
|
|
742
|
+
errorCode: errorCode,
|
|
743
|
+
});
|
|
744
|
+
_d.label = 13;
|
|
745
|
+
case 13: return [2];
|
|
746
|
+
}
|
|
306
747
|
});
|
|
307
|
-
};
|
|
308
|
-
export
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
748
|
+
}); };
|
|
749
|
+
export var deserializeAws_restJson1DisassociateRepositoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
750
|
+
var contents, data, _a, _b;
|
|
751
|
+
return __generator(this, function (_c) {
|
|
752
|
+
switch (_c.label) {
|
|
753
|
+
case 0:
|
|
754
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
+
return [2, deserializeAws_restJson1DisassociateRepositoryCommandError(output, context)];
|
|
756
|
+
}
|
|
757
|
+
contents = map({
|
|
758
|
+
$metadata: deserializeMetadata(output),
|
|
759
|
+
});
|
|
760
|
+
_a = __expectNonNull;
|
|
761
|
+
_b = __expectObject;
|
|
762
|
+
return [4, parseBody(output.body, context)];
|
|
763
|
+
case 1:
|
|
764
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
765
|
+
if (data.RepositoryAssociation != null) {
|
|
766
|
+
contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
|
|
767
|
+
}
|
|
768
|
+
if (data.Tags != null) {
|
|
769
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
770
|
+
}
|
|
771
|
+
return [2, contents];
|
|
772
|
+
}
|
|
314
773
|
});
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
throw
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
774
|
+
}); };
|
|
775
|
+
var deserializeAws_restJson1DisassociateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
776
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
777
|
+
var _c;
|
|
778
|
+
return __generator(this, function (_d) {
|
|
779
|
+
switch (_d.label) {
|
|
780
|
+
case 0:
|
|
781
|
+
_a = [__assign({}, output)];
|
|
782
|
+
_c = {};
|
|
783
|
+
return [4, parseErrorBody(output.body, context)];
|
|
784
|
+
case 1:
|
|
785
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
786
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
|
+
_b = errorCode;
|
|
788
|
+
switch (_b) {
|
|
789
|
+
case "AccessDeniedException": return [3, 2];
|
|
790
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException": return [3, 2];
|
|
791
|
+
case "ConflictException": return [3, 4];
|
|
792
|
+
case "com.amazonaws.codegurureviewer#ConflictException": return [3, 4];
|
|
793
|
+
case "InternalServerException": return [3, 6];
|
|
794
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 6];
|
|
795
|
+
case "NotFoundException": return [3, 8];
|
|
796
|
+
case "com.amazonaws.codegurureviewer#NotFoundException": return [3, 8];
|
|
797
|
+
case "ThrottlingException": return [3, 10];
|
|
798
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 10];
|
|
799
|
+
case "ValidationException": return [3, 12];
|
|
800
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 12];
|
|
801
|
+
}
|
|
802
|
+
return [3, 14];
|
|
803
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
804
|
+
case 3: throw _d.sent();
|
|
805
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
806
|
+
case 5: throw _d.sent();
|
|
807
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
808
|
+
case 7: throw _d.sent();
|
|
809
|
+
case 8: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
810
|
+
case 9: throw _d.sent();
|
|
811
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
812
|
+
case 11: throw _d.sent();
|
|
813
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
814
|
+
case 13: throw _d.sent();
|
|
815
|
+
case 14:
|
|
816
|
+
parsedBody = parsedOutput.body;
|
|
817
|
+
throwDefaultError({
|
|
818
|
+
output: output,
|
|
819
|
+
parsedBody: parsedBody,
|
|
820
|
+
exceptionCtor: __BaseException,
|
|
821
|
+
errorCode: errorCode,
|
|
822
|
+
});
|
|
823
|
+
_d.label = 15;
|
|
824
|
+
case 15: return [2];
|
|
825
|
+
}
|
|
362
826
|
});
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
case "ThrottlingException":
|
|
389
|
-
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
390
|
-
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
391
|
-
case "ValidationException":
|
|
392
|
-
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
393
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
394
|
-
default:
|
|
395
|
-
const parsedBody = parsedOutput.body;
|
|
396
|
-
throwDefaultError({
|
|
397
|
-
output,
|
|
398
|
-
parsedBody,
|
|
399
|
-
exceptionCtor: __BaseException,
|
|
400
|
-
errorCode,
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
export const deserializeAws_restJson1DescribeCodeReviewCommand = async (output, context) => {
|
|
405
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
406
|
-
return deserializeAws_restJson1DescribeCodeReviewCommandError(output, context);
|
|
407
|
-
}
|
|
408
|
-
const contents = map({
|
|
409
|
-
$metadata: deserializeMetadata(output),
|
|
827
|
+
}); };
|
|
828
|
+
export var deserializeAws_restJson1ListCodeReviewsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
829
|
+
var contents, data, _a, _b;
|
|
830
|
+
return __generator(this, function (_c) {
|
|
831
|
+
switch (_c.label) {
|
|
832
|
+
case 0:
|
|
833
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
834
|
+
return [2, deserializeAws_restJson1ListCodeReviewsCommandError(output, context)];
|
|
835
|
+
}
|
|
836
|
+
contents = map({
|
|
837
|
+
$metadata: deserializeMetadata(output),
|
|
838
|
+
});
|
|
839
|
+
_a = __expectNonNull;
|
|
840
|
+
_b = __expectObject;
|
|
841
|
+
return [4, parseBody(output.body, context)];
|
|
842
|
+
case 1:
|
|
843
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
844
|
+
if (data.CodeReviewSummaries != null) {
|
|
845
|
+
contents.CodeReviewSummaries = deserializeAws_restJson1CodeReviewSummaries(data.CodeReviewSummaries, context);
|
|
846
|
+
}
|
|
847
|
+
if (data.NextToken != null) {
|
|
848
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
849
|
+
}
|
|
850
|
+
return [2, contents];
|
|
851
|
+
}
|
|
410
852
|
});
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
return
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
853
|
+
}); };
|
|
854
|
+
var deserializeAws_restJson1ListCodeReviewsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
855
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
856
|
+
var _c;
|
|
857
|
+
return __generator(this, function (_d) {
|
|
858
|
+
switch (_d.label) {
|
|
859
|
+
case 0:
|
|
860
|
+
_a = [__assign({}, output)];
|
|
861
|
+
_c = {};
|
|
862
|
+
return [4, parseErrorBody(output.body, context)];
|
|
863
|
+
case 1:
|
|
864
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
865
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
866
|
+
_b = errorCode;
|
|
867
|
+
switch (_b) {
|
|
868
|
+
case "AccessDeniedException": return [3, 2];
|
|
869
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException": return [3, 2];
|
|
870
|
+
case "InternalServerException": return [3, 4];
|
|
871
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 4];
|
|
872
|
+
case "ThrottlingException": return [3, 6];
|
|
873
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 6];
|
|
874
|
+
case "ValidationException": return [3, 8];
|
|
875
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 8];
|
|
876
|
+
}
|
|
877
|
+
return [3, 10];
|
|
878
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
879
|
+
case 3: throw _d.sent();
|
|
880
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
881
|
+
case 5: throw _d.sent();
|
|
882
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
883
|
+
case 7: throw _d.sent();
|
|
884
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
885
|
+
case 9: throw _d.sent();
|
|
886
|
+
case 10:
|
|
887
|
+
parsedBody = parsedOutput.body;
|
|
888
|
+
throwDefaultError({
|
|
889
|
+
output: output,
|
|
890
|
+
parsedBody: parsedBody,
|
|
891
|
+
exceptionCtor: __BaseException,
|
|
892
|
+
errorCode: errorCode,
|
|
893
|
+
});
|
|
894
|
+
_d.label = 11;
|
|
895
|
+
case 11: return [2];
|
|
896
|
+
}
|
|
455
897
|
});
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
case "ValidationException":
|
|
482
|
-
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
483
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
484
|
-
default:
|
|
485
|
-
const parsedBody = parsedOutput.body;
|
|
486
|
-
throwDefaultError({
|
|
487
|
-
output,
|
|
488
|
-
parsedBody,
|
|
489
|
-
exceptionCtor: __BaseException,
|
|
490
|
-
errorCode,
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
export const deserializeAws_restJson1DescribeRepositoryAssociationCommand = async (output, context) => {
|
|
495
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
496
|
-
return deserializeAws_restJson1DescribeRepositoryAssociationCommandError(output, context);
|
|
497
|
-
}
|
|
498
|
-
const contents = map({
|
|
499
|
-
$metadata: deserializeMetadata(output),
|
|
898
|
+
}); };
|
|
899
|
+
export var deserializeAws_restJson1ListRecommendationFeedbackCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
900
|
+
var contents, data, _a, _b;
|
|
901
|
+
return __generator(this, function (_c) {
|
|
902
|
+
switch (_c.label) {
|
|
903
|
+
case 0:
|
|
904
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
+
return [2, deserializeAws_restJson1ListRecommendationFeedbackCommandError(output, context)];
|
|
906
|
+
}
|
|
907
|
+
contents = map({
|
|
908
|
+
$metadata: deserializeMetadata(output),
|
|
909
|
+
});
|
|
910
|
+
_a = __expectNonNull;
|
|
911
|
+
_b = __expectObject;
|
|
912
|
+
return [4, parseBody(output.body, context)];
|
|
913
|
+
case 1:
|
|
914
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
915
|
+
if (data.NextToken != null) {
|
|
916
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
917
|
+
}
|
|
918
|
+
if (data.RecommendationFeedbackSummaries != null) {
|
|
919
|
+
contents.RecommendationFeedbackSummaries = deserializeAws_restJson1RecommendationFeedbackSummaries(data.RecommendationFeedbackSummaries, context);
|
|
920
|
+
}
|
|
921
|
+
return [2, contents];
|
|
922
|
+
}
|
|
500
923
|
});
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
};
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
throw
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
924
|
+
}); };
|
|
925
|
+
var deserializeAws_restJson1ListRecommendationFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
926
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
927
|
+
var _c;
|
|
928
|
+
return __generator(this, function (_d) {
|
|
929
|
+
switch (_d.label) {
|
|
930
|
+
case 0:
|
|
931
|
+
_a = [__assign({}, output)];
|
|
932
|
+
_c = {};
|
|
933
|
+
return [4, parseErrorBody(output.body, context)];
|
|
934
|
+
case 1:
|
|
935
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
936
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
|
+
_b = errorCode;
|
|
938
|
+
switch (_b) {
|
|
939
|
+
case "AccessDeniedException": return [3, 2];
|
|
940
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException": return [3, 2];
|
|
941
|
+
case "InternalServerException": return [3, 4];
|
|
942
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 4];
|
|
943
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
944
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException": return [3, 6];
|
|
945
|
+
case "ThrottlingException": return [3, 8];
|
|
946
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 8];
|
|
947
|
+
case "ValidationException": return [3, 10];
|
|
948
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
949
|
+
}
|
|
950
|
+
return [3, 12];
|
|
951
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
952
|
+
case 3: throw _d.sent();
|
|
953
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
954
|
+
case 5: throw _d.sent();
|
|
955
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
956
|
+
case 7: throw _d.sent();
|
|
957
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
958
|
+
case 9: throw _d.sent();
|
|
959
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
960
|
+
case 11: throw _d.sent();
|
|
961
|
+
case 12:
|
|
962
|
+
parsedBody = parsedOutput.body;
|
|
963
|
+
throwDefaultError({
|
|
964
|
+
output: output,
|
|
965
|
+
parsedBody: parsedBody,
|
|
966
|
+
exceptionCtor: __BaseException,
|
|
967
|
+
errorCode: errorCode,
|
|
968
|
+
});
|
|
969
|
+
_d.label = 13;
|
|
970
|
+
case 13: return [2];
|
|
971
|
+
}
|
|
548
972
|
});
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
case "NotFoundException":
|
|
575
|
-
case "com.amazonaws.codegurureviewer#NotFoundException":
|
|
576
|
-
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
577
|
-
case "ThrottlingException":
|
|
578
|
-
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
579
|
-
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
580
|
-
case "ValidationException":
|
|
581
|
-
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
582
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
throwDefaultError({
|
|
586
|
-
output,
|
|
587
|
-
parsedBody,
|
|
588
|
-
exceptionCtor: __BaseException,
|
|
589
|
-
errorCode,
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
|
-
export const deserializeAws_restJson1ListCodeReviewsCommand = async (output, context) => {
|
|
594
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
-
return deserializeAws_restJson1ListCodeReviewsCommandError(output, context);
|
|
596
|
-
}
|
|
597
|
-
const contents = map({
|
|
598
|
-
$metadata: deserializeMetadata(output),
|
|
973
|
+
}); };
|
|
974
|
+
export var deserializeAws_restJson1ListRecommendationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
975
|
+
var contents, data, _a, _b;
|
|
976
|
+
return __generator(this, function (_c) {
|
|
977
|
+
switch (_c.label) {
|
|
978
|
+
case 0:
|
|
979
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
980
|
+
return [2, deserializeAws_restJson1ListRecommendationsCommandError(output, context)];
|
|
981
|
+
}
|
|
982
|
+
contents = map({
|
|
983
|
+
$metadata: deserializeMetadata(output),
|
|
984
|
+
});
|
|
985
|
+
_a = __expectNonNull;
|
|
986
|
+
_b = __expectObject;
|
|
987
|
+
return [4, parseBody(output.body, context)];
|
|
988
|
+
case 1:
|
|
989
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
990
|
+
if (data.NextToken != null) {
|
|
991
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
992
|
+
}
|
|
993
|
+
if (data.RecommendationSummaries != null) {
|
|
994
|
+
contents.RecommendationSummaries = deserializeAws_restJson1RecommendationSummaries(data.RecommendationSummaries, context);
|
|
995
|
+
}
|
|
996
|
+
return [2, contents];
|
|
997
|
+
}
|
|
599
998
|
});
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
};
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
999
|
+
}); };
|
|
1000
|
+
var deserializeAws_restJson1ListRecommendationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1001
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1002
|
+
var _c;
|
|
1003
|
+
return __generator(this, function (_d) {
|
|
1004
|
+
switch (_d.label) {
|
|
1005
|
+
case 0:
|
|
1006
|
+
_a = [__assign({}, output)];
|
|
1007
|
+
_c = {};
|
|
1008
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1009
|
+
case 1:
|
|
1010
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1011
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
+
_b = errorCode;
|
|
1013
|
+
switch (_b) {
|
|
1014
|
+
case "AccessDeniedException": return [3, 2];
|
|
1015
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException": return [3, 2];
|
|
1016
|
+
case "InternalServerException": return [3, 4];
|
|
1017
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 4];
|
|
1018
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1019
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException": return [3, 6];
|
|
1020
|
+
case "ThrottlingException": return [3, 8];
|
|
1021
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 8];
|
|
1022
|
+
case "ValidationException": return [3, 10];
|
|
1023
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
1024
|
+
}
|
|
1025
|
+
return [3, 12];
|
|
1026
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1027
|
+
case 3: throw _d.sent();
|
|
1028
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1029
|
+
case 5: throw _d.sent();
|
|
1030
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1031
|
+
case 7: throw _d.sent();
|
|
1032
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1033
|
+
case 9: throw _d.sent();
|
|
1034
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1035
|
+
case 11: throw _d.sent();
|
|
1036
|
+
case 12:
|
|
1037
|
+
parsedBody = parsedOutput.body;
|
|
1038
|
+
throwDefaultError({
|
|
1039
|
+
output: output,
|
|
1040
|
+
parsedBody: parsedBody,
|
|
1041
|
+
exceptionCtor: __BaseException,
|
|
1042
|
+
errorCode: errorCode,
|
|
1043
|
+
});
|
|
1044
|
+
_d.label = 13;
|
|
1045
|
+
case 13: return [2];
|
|
1046
|
+
}
|
|
644
1047
|
});
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
case "ThrottlingException":
|
|
671
|
-
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
672
|
-
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
673
|
-
case "ValidationException":
|
|
674
|
-
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
675
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
676
|
-
default:
|
|
677
|
-
const parsedBody = parsedOutput.body;
|
|
678
|
-
throwDefaultError({
|
|
679
|
-
output,
|
|
680
|
-
parsedBody,
|
|
681
|
-
exceptionCtor: __BaseException,
|
|
682
|
-
errorCode,
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
export const deserializeAws_restJson1ListRecommendationsCommand = async (output, context) => {
|
|
687
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
688
|
-
return deserializeAws_restJson1ListRecommendationsCommandError(output, context);
|
|
689
|
-
}
|
|
690
|
-
const contents = map({
|
|
691
|
-
$metadata: deserializeMetadata(output),
|
|
1048
|
+
}); };
|
|
1049
|
+
export var deserializeAws_restJson1ListRepositoryAssociationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1050
|
+
var contents, data, _a, _b;
|
|
1051
|
+
return __generator(this, function (_c) {
|
|
1052
|
+
switch (_c.label) {
|
|
1053
|
+
case 0:
|
|
1054
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1055
|
+
return [2, deserializeAws_restJson1ListRepositoryAssociationsCommandError(output, context)];
|
|
1056
|
+
}
|
|
1057
|
+
contents = map({
|
|
1058
|
+
$metadata: deserializeMetadata(output),
|
|
1059
|
+
});
|
|
1060
|
+
_a = __expectNonNull;
|
|
1061
|
+
_b = __expectObject;
|
|
1062
|
+
return [4, parseBody(output.body, context)];
|
|
1063
|
+
case 1:
|
|
1064
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1065
|
+
if (data.NextToken != null) {
|
|
1066
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
1067
|
+
}
|
|
1068
|
+
if (data.RepositoryAssociationSummaries != null) {
|
|
1069
|
+
contents.RepositoryAssociationSummaries = deserializeAws_restJson1RepositoryAssociationSummaries(data.RepositoryAssociationSummaries, context);
|
|
1070
|
+
}
|
|
1071
|
+
return [2, contents];
|
|
1072
|
+
}
|
|
692
1073
|
});
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
};
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
throw
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
};
|
|
734
|
-
export const deserializeAws_restJson1ListRepositoryAssociationsCommand = async (output, context) => {
|
|
735
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
-
return deserializeAws_restJson1ListRepositoryAssociationsCommandError(output, context);
|
|
737
|
-
}
|
|
738
|
-
const contents = map({
|
|
739
|
-
$metadata: deserializeMetadata(output),
|
|
1074
|
+
}); };
|
|
1075
|
+
var deserializeAws_restJson1ListRepositoryAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1076
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1077
|
+
var _c;
|
|
1078
|
+
return __generator(this, function (_d) {
|
|
1079
|
+
switch (_d.label) {
|
|
1080
|
+
case 0:
|
|
1081
|
+
_a = [__assign({}, output)];
|
|
1082
|
+
_c = {};
|
|
1083
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1084
|
+
case 1:
|
|
1085
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1086
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
|
+
_b = errorCode;
|
|
1088
|
+
switch (_b) {
|
|
1089
|
+
case "InternalServerException": return [3, 2];
|
|
1090
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 2];
|
|
1091
|
+
case "ThrottlingException": return [3, 4];
|
|
1092
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 4];
|
|
1093
|
+
case "ValidationException": return [3, 6];
|
|
1094
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 6];
|
|
1095
|
+
}
|
|
1096
|
+
return [3, 8];
|
|
1097
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1098
|
+
case 3: throw _d.sent();
|
|
1099
|
+
case 4: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1100
|
+
case 5: throw _d.sent();
|
|
1101
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1102
|
+
case 7: throw _d.sent();
|
|
1103
|
+
case 8:
|
|
1104
|
+
parsedBody = parsedOutput.body;
|
|
1105
|
+
throwDefaultError({
|
|
1106
|
+
output: output,
|
|
1107
|
+
parsedBody: parsedBody,
|
|
1108
|
+
exceptionCtor: __BaseException,
|
|
1109
|
+
errorCode: errorCode,
|
|
1110
|
+
});
|
|
1111
|
+
_d.label = 9;
|
|
1112
|
+
case 9: return [2];
|
|
1113
|
+
}
|
|
740
1114
|
});
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
case "ValidationException":
|
|
764
|
-
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
765
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
766
|
-
default:
|
|
767
|
-
const parsedBody = parsedOutput.body;
|
|
768
|
-
throwDefaultError({
|
|
769
|
-
output,
|
|
770
|
-
parsedBody,
|
|
771
|
-
exceptionCtor: __BaseException,
|
|
772
|
-
errorCode,
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
777
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
778
|
-
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
779
|
-
}
|
|
780
|
-
const contents = map({
|
|
781
|
-
$metadata: deserializeMetadata(output),
|
|
1115
|
+
}); };
|
|
1116
|
+
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1117
|
+
var contents, data, _a, _b;
|
|
1118
|
+
return __generator(this, function (_c) {
|
|
1119
|
+
switch (_c.label) {
|
|
1120
|
+
case 0:
|
|
1121
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1122
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1123
|
+
}
|
|
1124
|
+
contents = map({
|
|
1125
|
+
$metadata: deserializeMetadata(output),
|
|
1126
|
+
});
|
|
1127
|
+
_a = __expectNonNull;
|
|
1128
|
+
_b = __expectObject;
|
|
1129
|
+
return [4, parseBody(output.body, context)];
|
|
1130
|
+
case 1:
|
|
1131
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1132
|
+
if (data.Tags != null) {
|
|
1133
|
+
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1134
|
+
}
|
|
1135
|
+
return [2, contents];
|
|
1136
|
+
}
|
|
782
1137
|
});
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
return
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
1138
|
+
}); };
|
|
1139
|
+
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1140
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1141
|
+
var _c;
|
|
1142
|
+
return __generator(this, function (_d) {
|
|
1143
|
+
switch (_d.label) {
|
|
1144
|
+
case 0:
|
|
1145
|
+
_a = [__assign({}, output)];
|
|
1146
|
+
_c = {};
|
|
1147
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1148
|
+
case 1:
|
|
1149
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1150
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
|
+
_b = errorCode;
|
|
1152
|
+
switch (_b) {
|
|
1153
|
+
case "InternalServerException": return [3, 2];
|
|
1154
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 2];
|
|
1155
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1156
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException": return [3, 4];
|
|
1157
|
+
case "ValidationException": return [3, 6];
|
|
1158
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 6];
|
|
1159
|
+
}
|
|
1160
|
+
return [3, 8];
|
|
1161
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1162
|
+
case 3: throw _d.sent();
|
|
1163
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1164
|
+
case 5: throw _d.sent();
|
|
1165
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1166
|
+
case 7: throw _d.sent();
|
|
1167
|
+
case 8:
|
|
1168
|
+
parsedBody = parsedOutput.body;
|
|
1169
|
+
throwDefaultError({
|
|
1170
|
+
output: output,
|
|
1171
|
+
parsedBody: parsedBody,
|
|
1172
|
+
exceptionCtor: __BaseException,
|
|
1173
|
+
errorCode: errorCode,
|
|
1174
|
+
});
|
|
1175
|
+
_d.label = 9;
|
|
1176
|
+
case 9: return [2];
|
|
1177
|
+
}
|
|
821
1178
|
});
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
|
|
840
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
841
|
-
case "ThrottlingException":
|
|
842
|
-
case "com.amazonaws.codegurureviewer#ThrottlingException":
|
|
843
|
-
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
844
|
-
case "ValidationException":
|
|
845
|
-
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
846
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
847
|
-
default:
|
|
848
|
-
const parsedBody = parsedOutput.body;
|
|
849
|
-
throwDefaultError({
|
|
850
|
-
output,
|
|
851
|
-
parsedBody,
|
|
852
|
-
exceptionCtor: __BaseException,
|
|
853
|
-
errorCode,
|
|
854
|
-
});
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
858
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
859
|
-
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
860
|
-
}
|
|
861
|
-
const contents = map({
|
|
862
|
-
$metadata: deserializeMetadata(output),
|
|
1179
|
+
}); };
|
|
1180
|
+
export var deserializeAws_restJson1PutRecommendationFeedbackCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1181
|
+
var contents;
|
|
1182
|
+
return __generator(this, function (_a) {
|
|
1183
|
+
switch (_a.label) {
|
|
1184
|
+
case 0:
|
|
1185
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1186
|
+
return [2, deserializeAws_restJson1PutRecommendationFeedbackCommandError(output, context)];
|
|
1187
|
+
}
|
|
1188
|
+
contents = map({
|
|
1189
|
+
$metadata: deserializeMetadata(output),
|
|
1190
|
+
});
|
|
1191
|
+
return [4, collectBody(output.body, context)];
|
|
1192
|
+
case 1:
|
|
1193
|
+
_a.sent();
|
|
1194
|
+
return [2, contents];
|
|
1195
|
+
}
|
|
863
1196
|
});
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
1197
|
+
}); };
|
|
1198
|
+
var deserializeAws_restJson1PutRecommendationFeedbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1199
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1200
|
+
var _c;
|
|
1201
|
+
return __generator(this, function (_d) {
|
|
1202
|
+
switch (_d.label) {
|
|
1203
|
+
case 0:
|
|
1204
|
+
_a = [__assign({}, output)];
|
|
1205
|
+
_c = {};
|
|
1206
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1207
|
+
case 1:
|
|
1208
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1209
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1210
|
+
_b = errorCode;
|
|
1211
|
+
switch (_b) {
|
|
1212
|
+
case "AccessDeniedException": return [3, 2];
|
|
1213
|
+
case "com.amazonaws.codegurureviewer#AccessDeniedException": return [3, 2];
|
|
1214
|
+
case "InternalServerException": return [3, 4];
|
|
1215
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 4];
|
|
1216
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1217
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException": return [3, 6];
|
|
1218
|
+
case "ThrottlingException": return [3, 8];
|
|
1219
|
+
case "com.amazonaws.codegurureviewer#ThrottlingException": return [3, 8];
|
|
1220
|
+
case "ValidationException": return [3, 10];
|
|
1221
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 10];
|
|
1222
|
+
}
|
|
1223
|
+
return [3, 12];
|
|
1224
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1225
|
+
case 3: throw _d.sent();
|
|
1226
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1227
|
+
case 5: throw _d.sent();
|
|
1228
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1229
|
+
case 7: throw _d.sent();
|
|
1230
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1231
|
+
case 9: throw _d.sent();
|
|
1232
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1233
|
+
case 11: throw _d.sent();
|
|
1234
|
+
case 12:
|
|
1235
|
+
parsedBody = parsedOutput.body;
|
|
1236
|
+
throwDefaultError({
|
|
1237
|
+
output: output,
|
|
1238
|
+
parsedBody: parsedBody,
|
|
1239
|
+
exceptionCtor: __BaseException,
|
|
1240
|
+
errorCode: errorCode,
|
|
1241
|
+
});
|
|
1242
|
+
_d.label = 13;
|
|
1243
|
+
case 13: return [2];
|
|
1244
|
+
}
|
|
899
1245
|
});
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
case "com.amazonaws.codegurureviewer#ValidationException":
|
|
918
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
919
|
-
default:
|
|
920
|
-
const parsedBody = parsedOutput.body;
|
|
921
|
-
throwDefaultError({
|
|
922
|
-
output,
|
|
923
|
-
parsedBody,
|
|
924
|
-
exceptionCtor: __BaseException,
|
|
925
|
-
errorCode,
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
|
-
const map = __map;
|
|
930
|
-
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
931
|
-
const contents = map({});
|
|
932
|
-
const data = parsedOutput.body;
|
|
933
|
-
if (data.Message != null) {
|
|
934
|
-
contents.Message = __expectString(data.Message);
|
|
935
|
-
}
|
|
936
|
-
const exception = new AccessDeniedException({
|
|
937
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
938
|
-
...contents,
|
|
1246
|
+
}); };
|
|
1247
|
+
export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1248
|
+
var contents;
|
|
1249
|
+
return __generator(this, function (_a) {
|
|
1250
|
+
switch (_a.label) {
|
|
1251
|
+
case 0:
|
|
1252
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1253
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1254
|
+
}
|
|
1255
|
+
contents = map({
|
|
1256
|
+
$metadata: deserializeMetadata(output),
|
|
1257
|
+
});
|
|
1258
|
+
return [4, collectBody(output.body, context)];
|
|
1259
|
+
case 1:
|
|
1260
|
+
_a.sent();
|
|
1261
|
+
return [2, contents];
|
|
1262
|
+
}
|
|
939
1263
|
});
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
1264
|
+
}); };
|
|
1265
|
+
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1266
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1267
|
+
var _c;
|
|
1268
|
+
return __generator(this, function (_d) {
|
|
1269
|
+
switch (_d.label) {
|
|
1270
|
+
case 0:
|
|
1271
|
+
_a = [__assign({}, output)];
|
|
1272
|
+
_c = {};
|
|
1273
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1274
|
+
case 1:
|
|
1275
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1276
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
|
+
_b = errorCode;
|
|
1278
|
+
switch (_b) {
|
|
1279
|
+
case "InternalServerException": return [3, 2];
|
|
1280
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 2];
|
|
1281
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1282
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException": return [3, 4];
|
|
1283
|
+
case "ValidationException": return [3, 6];
|
|
1284
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 6];
|
|
1285
|
+
}
|
|
1286
|
+
return [3, 8];
|
|
1287
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1288
|
+
case 3: throw _d.sent();
|
|
1289
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1290
|
+
case 5: throw _d.sent();
|
|
1291
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1292
|
+
case 7: throw _d.sent();
|
|
1293
|
+
case 8:
|
|
1294
|
+
parsedBody = parsedOutput.body;
|
|
1295
|
+
throwDefaultError({
|
|
1296
|
+
output: output,
|
|
1297
|
+
parsedBody: parsedBody,
|
|
1298
|
+
exceptionCtor: __BaseException,
|
|
1299
|
+
errorCode: errorCode,
|
|
1300
|
+
});
|
|
1301
|
+
_d.label = 9;
|
|
1302
|
+
case 9: return [2];
|
|
1303
|
+
}
|
|
951
1304
|
});
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
1305
|
+
}); };
|
|
1306
|
+
export var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1307
|
+
var contents;
|
|
1308
|
+
return __generator(this, function (_a) {
|
|
1309
|
+
switch (_a.label) {
|
|
1310
|
+
case 0:
|
|
1311
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1312
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1313
|
+
}
|
|
1314
|
+
contents = map({
|
|
1315
|
+
$metadata: deserializeMetadata(output),
|
|
1316
|
+
});
|
|
1317
|
+
return [4, collectBody(output.body, context)];
|
|
1318
|
+
case 1:
|
|
1319
|
+
_a.sent();
|
|
1320
|
+
return [2, contents];
|
|
1321
|
+
}
|
|
963
1322
|
});
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
1323
|
+
}); };
|
|
1324
|
+
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1325
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1326
|
+
var _c;
|
|
1327
|
+
return __generator(this, function (_d) {
|
|
1328
|
+
switch (_d.label) {
|
|
1329
|
+
case 0:
|
|
1330
|
+
_a = [__assign({}, output)];
|
|
1331
|
+
_c = {};
|
|
1332
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1333
|
+
case 1:
|
|
1334
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1335
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
|
+
_b = errorCode;
|
|
1337
|
+
switch (_b) {
|
|
1338
|
+
case "InternalServerException": return [3, 2];
|
|
1339
|
+
case "com.amazonaws.codegurureviewer#InternalServerException": return [3, 2];
|
|
1340
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1341
|
+
case "com.amazonaws.codegurureviewer#ResourceNotFoundException": return [3, 4];
|
|
1342
|
+
case "ValidationException": return [3, 6];
|
|
1343
|
+
case "com.amazonaws.codegurureviewer#ValidationException": return [3, 6];
|
|
1344
|
+
}
|
|
1345
|
+
return [3, 8];
|
|
1346
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1347
|
+
case 3: throw _d.sent();
|
|
1348
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1349
|
+
case 5: throw _d.sent();
|
|
1350
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1351
|
+
case 7: throw _d.sent();
|
|
1352
|
+
case 8:
|
|
1353
|
+
parsedBody = parsedOutput.body;
|
|
1354
|
+
throwDefaultError({
|
|
1355
|
+
output: output,
|
|
1356
|
+
parsedBody: parsedBody,
|
|
1357
|
+
exceptionCtor: __BaseException,
|
|
1358
|
+
errorCode: errorCode,
|
|
1359
|
+
});
|
|
1360
|
+
_d.label = 9;
|
|
1361
|
+
case 9: return [2];
|
|
1362
|
+
}
|
|
975
1363
|
});
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
1364
|
+
}); };
|
|
1365
|
+
var map = __map;
|
|
1366
|
+
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1367
|
+
var contents, data, exception;
|
|
1368
|
+
return __generator(this, function (_a) {
|
|
1369
|
+
contents = map({});
|
|
1370
|
+
data = parsedOutput.body;
|
|
1371
|
+
if (data.Message != null) {
|
|
1372
|
+
contents.Message = __expectString(data.Message);
|
|
1373
|
+
}
|
|
1374
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1375
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
987
1376
|
});
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
998
|
-
|
|
1377
|
+
}); };
|
|
1378
|
+
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1379
|
+
var contents, data, exception;
|
|
1380
|
+
return __generator(this, function (_a) {
|
|
1381
|
+
contents = map({});
|
|
1382
|
+
data = parsedOutput.body;
|
|
1383
|
+
if (data.Message != null) {
|
|
1384
|
+
contents.Message = __expectString(data.Message);
|
|
1385
|
+
}
|
|
1386
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1387
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
999
1388
|
});
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1010
|
-
|
|
1389
|
+
}); };
|
|
1390
|
+
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1391
|
+
var contents, data, exception;
|
|
1392
|
+
return __generator(this, function (_a) {
|
|
1393
|
+
contents = map({});
|
|
1394
|
+
data = parsedOutput.body;
|
|
1395
|
+
if (data.Message != null) {
|
|
1396
|
+
contents.Message = __expectString(data.Message);
|
|
1397
|
+
}
|
|
1398
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1399
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1011
1400
|
});
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1401
|
+
}); };
|
|
1402
|
+
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1403
|
+
var contents, data, exception;
|
|
1404
|
+
return __generator(this, function (_a) {
|
|
1405
|
+
contents = map({});
|
|
1406
|
+
data = parsedOutput.body;
|
|
1407
|
+
if (data.Message != null) {
|
|
1408
|
+
contents.Message = __expectString(data.Message);
|
|
1409
|
+
}
|
|
1410
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1411
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1412
|
+
});
|
|
1413
|
+
}); };
|
|
1414
|
+
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1415
|
+
var contents, data, exception;
|
|
1416
|
+
return __generator(this, function (_a) {
|
|
1417
|
+
contents = map({});
|
|
1418
|
+
data = parsedOutput.body;
|
|
1419
|
+
if (data.Message != null) {
|
|
1420
|
+
contents.Message = __expectString(data.Message);
|
|
1421
|
+
}
|
|
1422
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1423
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1424
|
+
});
|
|
1425
|
+
}); };
|
|
1426
|
+
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1427
|
+
var contents, data, exception;
|
|
1428
|
+
return __generator(this, function (_a) {
|
|
1429
|
+
contents = map({});
|
|
1430
|
+
data = parsedOutput.body;
|
|
1431
|
+
if (data.Message != null) {
|
|
1432
|
+
contents.Message = __expectString(data.Message);
|
|
1433
|
+
}
|
|
1434
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1435
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1436
|
+
});
|
|
1437
|
+
}); };
|
|
1438
|
+
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1439
|
+
var contents, data, exception;
|
|
1440
|
+
return __generator(this, function (_a) {
|
|
1441
|
+
contents = map({});
|
|
1442
|
+
data = parsedOutput.body;
|
|
1443
|
+
if (data.Message != null) {
|
|
1444
|
+
contents.Message = __expectString(data.Message);
|
|
1445
|
+
}
|
|
1446
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1447
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1448
|
+
});
|
|
1449
|
+
}); };
|
|
1450
|
+
var serializeAws_restJson1AnalysisTypes = function (input, context) {
|
|
1015
1451
|
return input
|
|
1016
|
-
.filter((e)
|
|
1017
|
-
.map((entry)
|
|
1452
|
+
.filter(function (e) { return e != null; })
|
|
1453
|
+
.map(function (entry) {
|
|
1018
1454
|
return entry;
|
|
1019
1455
|
});
|
|
1020
1456
|
};
|
|
1021
|
-
|
|
1022
|
-
return {
|
|
1023
|
-
...(input.DestinationBranchName != null && { DestinationBranchName: input.DestinationBranchName }),
|
|
1024
|
-
...(input.SourceBranchName != null && { SourceBranchName: input.SourceBranchName }),
|
|
1025
|
-
};
|
|
1457
|
+
var serializeAws_restJson1BranchDiffSourceCodeType = function (input, context) {
|
|
1458
|
+
return __assign(__assign({}, (input.DestinationBranchName != null && { DestinationBranchName: input.DestinationBranchName })), (input.SourceBranchName != null && { SourceBranchName: input.SourceBranchName }));
|
|
1026
1459
|
};
|
|
1027
|
-
|
|
1028
|
-
return {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
SourceCodeArtifactsObjectKey: input.SourceCodeArtifactsObjectKey,
|
|
1032
|
-
}),
|
|
1033
|
-
};
|
|
1460
|
+
var serializeAws_restJson1CodeArtifacts = function (input, context) {
|
|
1461
|
+
return __assign(__assign({}, (input.BuildArtifactsObjectKey != null && { BuildArtifactsObjectKey: input.BuildArtifactsObjectKey })), (input.SourceCodeArtifactsObjectKey != null && {
|
|
1462
|
+
SourceCodeArtifactsObjectKey: input.SourceCodeArtifactsObjectKey,
|
|
1463
|
+
}));
|
|
1034
1464
|
};
|
|
1035
|
-
|
|
1036
|
-
return {
|
|
1037
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1038
|
-
};
|
|
1465
|
+
var serializeAws_restJson1CodeCommitRepository = function (input, context) {
|
|
1466
|
+
return __assign({}, (input.Name != null && { Name: input.Name }));
|
|
1039
1467
|
};
|
|
1040
|
-
|
|
1041
|
-
return {
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
RepositoryAnalysis: serializeAws_restJson1RepositoryAnalysis(input.RepositoryAnalysis, context),
|
|
1047
|
-
}),
|
|
1048
|
-
};
|
|
1468
|
+
var serializeAws_restJson1CodeReviewType = function (input, context) {
|
|
1469
|
+
return __assign(__assign({}, (input.AnalysisTypes != null && {
|
|
1470
|
+
AnalysisTypes: serializeAws_restJson1AnalysisTypes(input.AnalysisTypes, context),
|
|
1471
|
+
})), (input.RepositoryAnalysis != null && {
|
|
1472
|
+
RepositoryAnalysis: serializeAws_restJson1RepositoryAnalysis(input.RepositoryAnalysis, context),
|
|
1473
|
+
}));
|
|
1049
1474
|
};
|
|
1050
|
-
|
|
1051
|
-
return {
|
|
1052
|
-
...(input.DestinationCommit != null && { DestinationCommit: input.DestinationCommit }),
|
|
1053
|
-
...(input.MergeBaseCommit != null && { MergeBaseCommit: input.MergeBaseCommit }),
|
|
1054
|
-
...(input.SourceCommit != null && { SourceCommit: input.SourceCommit }),
|
|
1055
|
-
};
|
|
1475
|
+
var serializeAws_restJson1CommitDiffSourceCodeType = function (input, context) {
|
|
1476
|
+
return __assign(__assign(__assign({}, (input.DestinationCommit != null && { DestinationCommit: input.DestinationCommit })), (input.MergeBaseCommit != null && { MergeBaseCommit: input.MergeBaseCommit })), (input.SourceCommit != null && { SourceCommit: input.SourceCommit }));
|
|
1056
1477
|
};
|
|
1057
|
-
|
|
1058
|
-
return {
|
|
1059
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1060
|
-
...(input.State != null && { State: input.State }),
|
|
1061
|
-
};
|
|
1478
|
+
var serializeAws_restJson1EventInfo = function (input, context) {
|
|
1479
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.State != null && { State: input.State }));
|
|
1062
1480
|
};
|
|
1063
|
-
|
|
1064
|
-
return {
|
|
1065
|
-
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
1066
|
-
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1067
|
-
};
|
|
1481
|
+
var serializeAws_restJson1KMSKeyDetails = function (input, context) {
|
|
1482
|
+
return __assign(__assign({}, (input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption })), (input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }));
|
|
1068
1483
|
};
|
|
1069
|
-
|
|
1484
|
+
var serializeAws_restJson1Reactions = function (input, context) {
|
|
1070
1485
|
return input
|
|
1071
|
-
.filter((e)
|
|
1072
|
-
.map((entry)
|
|
1486
|
+
.filter(function (e) { return e != null; })
|
|
1487
|
+
.map(function (entry) {
|
|
1073
1488
|
return entry;
|
|
1074
1489
|
});
|
|
1075
1490
|
};
|
|
1076
|
-
|
|
1077
|
-
return {
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
};
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
return {
|
|
1127
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1128
|
-
...(input.CodeArtifacts != null && {
|
|
1129
|
-
CodeArtifacts: serializeAws_restJson1CodeArtifacts(input.CodeArtifacts, context),
|
|
1130
|
-
}),
|
|
1131
|
-
};
|
|
1132
|
-
};
|
|
1133
|
-
const serializeAws_restJson1SourceCodeType = (input, context) => {
|
|
1134
|
-
return {
|
|
1135
|
-
...(input.BranchDiff != null && {
|
|
1136
|
-
BranchDiff: serializeAws_restJson1BranchDiffSourceCodeType(input.BranchDiff, context),
|
|
1137
|
-
}),
|
|
1138
|
-
...(input.CommitDiff != null && {
|
|
1139
|
-
CommitDiff: serializeAws_restJson1CommitDiffSourceCodeType(input.CommitDiff, context),
|
|
1140
|
-
}),
|
|
1141
|
-
...(input.RepositoryHead != null && {
|
|
1142
|
-
RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
|
|
1143
|
-
}),
|
|
1144
|
-
...(input.RequestMetadata != null && {
|
|
1145
|
-
RequestMetadata: serializeAws_restJson1RequestMetadata(input.RequestMetadata, context),
|
|
1146
|
-
}),
|
|
1147
|
-
...(input.S3BucketRepository != null && {
|
|
1148
|
-
S3BucketRepository: serializeAws_restJson1S3BucketRepository(input.S3BucketRepository, context),
|
|
1149
|
-
}),
|
|
1150
|
-
};
|
|
1151
|
-
};
|
|
1152
|
-
const serializeAws_restJson1TagMap = (input, context) => {
|
|
1153
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1491
|
+
var serializeAws_restJson1Repository = function (input, context) {
|
|
1492
|
+
return __assign(__assign(__assign(__assign({}, (input.Bitbucket != null && {
|
|
1493
|
+
Bitbucket: serializeAws_restJson1ThirdPartySourceRepository(input.Bitbucket, context),
|
|
1494
|
+
})), (input.CodeCommit != null && {
|
|
1495
|
+
CodeCommit: serializeAws_restJson1CodeCommitRepository(input.CodeCommit, context),
|
|
1496
|
+
})), (input.GitHubEnterpriseServer != null && {
|
|
1497
|
+
GitHubEnterpriseServer: serializeAws_restJson1ThirdPartySourceRepository(input.GitHubEnterpriseServer, context),
|
|
1498
|
+
})), (input.S3Bucket != null && { S3Bucket: serializeAws_restJson1S3Repository(input.S3Bucket, context) }));
|
|
1499
|
+
};
|
|
1500
|
+
var serializeAws_restJson1RepositoryAnalysis = function (input, context) {
|
|
1501
|
+
return __assign(__assign({}, (input.RepositoryHead != null && {
|
|
1502
|
+
RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
|
|
1503
|
+
})), (input.SourceCodeType != null && {
|
|
1504
|
+
SourceCodeType: serializeAws_restJson1SourceCodeType(input.SourceCodeType, context),
|
|
1505
|
+
}));
|
|
1506
|
+
};
|
|
1507
|
+
var serializeAws_restJson1RepositoryHeadSourceCodeType = function (input, context) {
|
|
1508
|
+
return __assign({}, (input.BranchName != null && { BranchName: input.BranchName }));
|
|
1509
|
+
};
|
|
1510
|
+
var serializeAws_restJson1RequestMetadata = function (input, context) {
|
|
1511
|
+
return __assign(__assign(__assign(__assign({}, (input.EventInfo != null && { EventInfo: serializeAws_restJson1EventInfo(input.EventInfo, context) })), (input.RequestId != null && { RequestId: input.RequestId })), (input.Requester != null && { Requester: input.Requester })), (input.VendorName != null && { VendorName: input.VendorName }));
|
|
1512
|
+
};
|
|
1513
|
+
var serializeAws_restJson1S3BucketRepository = function (input, context) {
|
|
1514
|
+
return __assign(__assign({}, (input.Details != null && { Details: serializeAws_restJson1S3RepositoryDetails(input.Details, context) })), (input.Name != null && { Name: input.Name }));
|
|
1515
|
+
};
|
|
1516
|
+
var serializeAws_restJson1S3Repository = function (input, context) {
|
|
1517
|
+
return __assign(__assign({}, (input.BucketName != null && { BucketName: input.BucketName })), (input.Name != null && { Name: input.Name }));
|
|
1518
|
+
};
|
|
1519
|
+
var serializeAws_restJson1S3RepositoryDetails = function (input, context) {
|
|
1520
|
+
return __assign(__assign({}, (input.BucketName != null && { BucketName: input.BucketName })), (input.CodeArtifacts != null && {
|
|
1521
|
+
CodeArtifacts: serializeAws_restJson1CodeArtifacts(input.CodeArtifacts, context),
|
|
1522
|
+
}));
|
|
1523
|
+
};
|
|
1524
|
+
var serializeAws_restJson1SourceCodeType = function (input, context) {
|
|
1525
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.BranchDiff != null && {
|
|
1526
|
+
BranchDiff: serializeAws_restJson1BranchDiffSourceCodeType(input.BranchDiff, context),
|
|
1527
|
+
})), (input.CommitDiff != null && {
|
|
1528
|
+
CommitDiff: serializeAws_restJson1CommitDiffSourceCodeType(input.CommitDiff, context),
|
|
1529
|
+
})), (input.RepositoryHead != null && {
|
|
1530
|
+
RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
|
|
1531
|
+
})), (input.RequestMetadata != null && {
|
|
1532
|
+
RequestMetadata: serializeAws_restJson1RequestMetadata(input.RequestMetadata, context),
|
|
1533
|
+
})), (input.S3BucketRepository != null && {
|
|
1534
|
+
S3BucketRepository: serializeAws_restJson1S3BucketRepository(input.S3BucketRepository, context),
|
|
1535
|
+
}));
|
|
1536
|
+
};
|
|
1537
|
+
var serializeAws_restJson1TagMap = function (input, context) {
|
|
1538
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
1539
|
+
var _b;
|
|
1540
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1154
1541
|
if (value === null) {
|
|
1155
1542
|
return acc;
|
|
1156
1543
|
}
|
|
1157
|
-
return {
|
|
1158
|
-
...acc,
|
|
1159
|
-
[key]: value,
|
|
1160
|
-
};
|
|
1544
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
1161
1545
|
}, {});
|
|
1162
1546
|
};
|
|
1163
|
-
|
|
1164
|
-
return {
|
|
1165
|
-
...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
|
|
1166
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1167
|
-
...(input.Owner != null && { Owner: input.Owner }),
|
|
1168
|
-
};
|
|
1547
|
+
var serializeAws_restJson1ThirdPartySourceRepository = function (input, context) {
|
|
1548
|
+
return __assign(__assign(__assign({}, (input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn })), (input.Name != null && { Name: input.Name })), (input.Owner != null && { Owner: input.Owner }));
|
|
1169
1549
|
};
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
.filter((e)
|
|
1173
|
-
.map((entry)
|
|
1550
|
+
var deserializeAws_restJson1AnalysisTypes = function (output, context) {
|
|
1551
|
+
var retVal = (output || [])
|
|
1552
|
+
.filter(function (e) { return e != null; })
|
|
1553
|
+
.map(function (entry) {
|
|
1174
1554
|
if (entry === null) {
|
|
1175
1555
|
return null;
|
|
1176
1556
|
}
|
|
@@ -1178,19 +1558,19 @@ const deserializeAws_restJson1AnalysisTypes = (output, context) => {
|
|
|
1178
1558
|
});
|
|
1179
1559
|
return retVal;
|
|
1180
1560
|
};
|
|
1181
|
-
|
|
1561
|
+
var deserializeAws_restJson1BranchDiffSourceCodeType = function (output, context) {
|
|
1182
1562
|
return {
|
|
1183
1563
|
DestinationBranchName: __expectString(output.DestinationBranchName),
|
|
1184
1564
|
SourceBranchName: __expectString(output.SourceBranchName),
|
|
1185
1565
|
};
|
|
1186
1566
|
};
|
|
1187
|
-
|
|
1567
|
+
var deserializeAws_restJson1CodeArtifacts = function (output, context) {
|
|
1188
1568
|
return {
|
|
1189
1569
|
BuildArtifactsObjectKey: __expectString(output.BuildArtifactsObjectKey),
|
|
1190
1570
|
SourceCodeArtifactsObjectKey: __expectString(output.SourceCodeArtifactsObjectKey),
|
|
1191
1571
|
};
|
|
1192
1572
|
};
|
|
1193
|
-
|
|
1573
|
+
var deserializeAws_restJson1CodeReview = function (output, context) {
|
|
1194
1574
|
return {
|
|
1195
1575
|
AnalysisTypes: output.AnalysisTypes != null ? deserializeAws_restJson1AnalysisTypes(output.AnalysisTypes, context) : undefined,
|
|
1196
1576
|
AssociationArn: __expectString(output.AssociationArn),
|
|
@@ -1216,10 +1596,10 @@ const deserializeAws_restJson1CodeReview = (output, context) => {
|
|
|
1216
1596
|
Type: __expectString(output.Type),
|
|
1217
1597
|
};
|
|
1218
1598
|
};
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
.filter((e)
|
|
1222
|
-
.map((entry)
|
|
1599
|
+
var deserializeAws_restJson1CodeReviewSummaries = function (output, context) {
|
|
1600
|
+
var retVal = (output || [])
|
|
1601
|
+
.filter(function (e) { return e != null; })
|
|
1602
|
+
.map(function (entry) {
|
|
1223
1603
|
if (entry === null) {
|
|
1224
1604
|
return null;
|
|
1225
1605
|
}
|
|
@@ -1227,7 +1607,7 @@ const deserializeAws_restJson1CodeReviewSummaries = (output, context) => {
|
|
|
1227
1607
|
});
|
|
1228
1608
|
return retVal;
|
|
1229
1609
|
};
|
|
1230
|
-
|
|
1610
|
+
var deserializeAws_restJson1CodeReviewSummary = function (output, context) {
|
|
1231
1611
|
return {
|
|
1232
1612
|
CodeReviewArn: __expectString(output.CodeReviewArn),
|
|
1233
1613
|
CreatedTimeStamp: output.CreatedTimeStamp != null
|
|
@@ -1251,43 +1631,43 @@ const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
|
|
|
1251
1631
|
Type: __expectString(output.Type),
|
|
1252
1632
|
};
|
|
1253
1633
|
};
|
|
1254
|
-
|
|
1634
|
+
var deserializeAws_restJson1CommitDiffSourceCodeType = function (output, context) {
|
|
1255
1635
|
return {
|
|
1256
1636
|
DestinationCommit: __expectString(output.DestinationCommit),
|
|
1257
1637
|
MergeBaseCommit: __expectString(output.MergeBaseCommit),
|
|
1258
1638
|
SourceCommit: __expectString(output.SourceCommit),
|
|
1259
1639
|
};
|
|
1260
1640
|
};
|
|
1261
|
-
|
|
1641
|
+
var deserializeAws_restJson1EventInfo = function (output, context) {
|
|
1262
1642
|
return {
|
|
1263
1643
|
Name: __expectString(output.Name),
|
|
1264
1644
|
State: __expectString(output.State),
|
|
1265
1645
|
};
|
|
1266
1646
|
};
|
|
1267
|
-
|
|
1647
|
+
var deserializeAws_restJson1KMSKeyDetails = function (output, context) {
|
|
1268
1648
|
return {
|
|
1269
1649
|
EncryptionOption: __expectString(output.EncryptionOption),
|
|
1270
1650
|
KMSKeyId: __expectString(output.KMSKeyId),
|
|
1271
1651
|
};
|
|
1272
1652
|
};
|
|
1273
|
-
|
|
1653
|
+
var deserializeAws_restJson1Metrics = function (output, context) {
|
|
1274
1654
|
return {
|
|
1275
1655
|
FindingsCount: __expectLong(output.FindingsCount),
|
|
1276
1656
|
MeteredLinesOfCodeCount: __expectLong(output.MeteredLinesOfCodeCount),
|
|
1277
1657
|
SuppressedLinesOfCodeCount: __expectLong(output.SuppressedLinesOfCodeCount),
|
|
1278
1658
|
};
|
|
1279
1659
|
};
|
|
1280
|
-
|
|
1660
|
+
var deserializeAws_restJson1MetricsSummary = function (output, context) {
|
|
1281
1661
|
return {
|
|
1282
1662
|
FindingsCount: __expectLong(output.FindingsCount),
|
|
1283
1663
|
MeteredLinesOfCodeCount: __expectLong(output.MeteredLinesOfCodeCount),
|
|
1284
1664
|
SuppressedLinesOfCodeCount: __expectLong(output.SuppressedLinesOfCodeCount),
|
|
1285
1665
|
};
|
|
1286
1666
|
};
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
.filter((e)
|
|
1290
|
-
.map((entry)
|
|
1667
|
+
var deserializeAws_restJson1Reactions = function (output, context) {
|
|
1668
|
+
var retVal = (output || [])
|
|
1669
|
+
.filter(function (e) { return e != null; })
|
|
1670
|
+
.map(function (entry) {
|
|
1291
1671
|
if (entry === null) {
|
|
1292
1672
|
return null;
|
|
1293
1673
|
}
|
|
@@ -1295,7 +1675,7 @@ const deserializeAws_restJson1Reactions = (output, context) => {
|
|
|
1295
1675
|
});
|
|
1296
1676
|
return retVal;
|
|
1297
1677
|
};
|
|
1298
|
-
|
|
1678
|
+
var deserializeAws_restJson1RecommendationFeedback = function (output, context) {
|
|
1299
1679
|
return {
|
|
1300
1680
|
CodeReviewArn: __expectString(output.CodeReviewArn),
|
|
1301
1681
|
CreatedTimeStamp: output.CreatedTimeStamp != null
|
|
@@ -1309,10 +1689,10 @@ const deserializeAws_restJson1RecommendationFeedback = (output, context) => {
|
|
|
1309
1689
|
UserId: __expectString(output.UserId),
|
|
1310
1690
|
};
|
|
1311
1691
|
};
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
.filter((e)
|
|
1315
|
-
.map((entry)
|
|
1692
|
+
var deserializeAws_restJson1RecommendationFeedbackSummaries = function (output, context) {
|
|
1693
|
+
var retVal = (output || [])
|
|
1694
|
+
.filter(function (e) { return e != null; })
|
|
1695
|
+
.map(function (entry) {
|
|
1316
1696
|
if (entry === null) {
|
|
1317
1697
|
return null;
|
|
1318
1698
|
}
|
|
@@ -1320,17 +1700,17 @@ const deserializeAws_restJson1RecommendationFeedbackSummaries = (output, context
|
|
|
1320
1700
|
});
|
|
1321
1701
|
return retVal;
|
|
1322
1702
|
};
|
|
1323
|
-
|
|
1703
|
+
var deserializeAws_restJson1RecommendationFeedbackSummary = function (output, context) {
|
|
1324
1704
|
return {
|
|
1325
1705
|
Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
|
|
1326
1706
|
RecommendationId: __expectString(output.RecommendationId),
|
|
1327
1707
|
UserId: __expectString(output.UserId),
|
|
1328
1708
|
};
|
|
1329
1709
|
};
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
.filter((e)
|
|
1333
|
-
.map((entry)
|
|
1710
|
+
var deserializeAws_restJson1RecommendationSummaries = function (output, context) {
|
|
1711
|
+
var retVal = (output || [])
|
|
1712
|
+
.filter(function (e) { return e != null; })
|
|
1713
|
+
.map(function (entry) {
|
|
1334
1714
|
if (entry === null) {
|
|
1335
1715
|
return null;
|
|
1336
1716
|
}
|
|
@@ -1338,7 +1718,7 @@ const deserializeAws_restJson1RecommendationSummaries = (output, context) => {
|
|
|
1338
1718
|
});
|
|
1339
1719
|
return retVal;
|
|
1340
1720
|
};
|
|
1341
|
-
|
|
1721
|
+
var deserializeAws_restJson1RecommendationSummary = function (output, context) {
|
|
1342
1722
|
return {
|
|
1343
1723
|
Description: __expectString(output.Description),
|
|
1344
1724
|
EndLine: __expectInt32(output.EndLine),
|
|
@@ -1350,7 +1730,7 @@ const deserializeAws_restJson1RecommendationSummary = (output, context) => {
|
|
|
1350
1730
|
StartLine: __expectInt32(output.StartLine),
|
|
1351
1731
|
};
|
|
1352
1732
|
};
|
|
1353
|
-
|
|
1733
|
+
var deserializeAws_restJson1RepositoryAssociation = function (output, context) {
|
|
1354
1734
|
return {
|
|
1355
1735
|
AssociationArn: __expectString(output.AssociationArn),
|
|
1356
1736
|
AssociationId: __expectString(output.AssociationId),
|
|
@@ -1372,10 +1752,10 @@ const deserializeAws_restJson1RepositoryAssociation = (output, context) => {
|
|
|
1372
1752
|
StateReason: __expectString(output.StateReason),
|
|
1373
1753
|
};
|
|
1374
1754
|
};
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
.filter((e)
|
|
1378
|
-
.map((entry)
|
|
1755
|
+
var deserializeAws_restJson1RepositoryAssociationSummaries = function (output, context) {
|
|
1756
|
+
var retVal = (output || [])
|
|
1757
|
+
.filter(function (e) { return e != null; })
|
|
1758
|
+
.map(function (entry) {
|
|
1379
1759
|
if (entry === null) {
|
|
1380
1760
|
return null;
|
|
1381
1761
|
}
|
|
@@ -1383,7 +1763,7 @@ const deserializeAws_restJson1RepositoryAssociationSummaries = (output, context)
|
|
|
1383
1763
|
});
|
|
1384
1764
|
return retVal;
|
|
1385
1765
|
};
|
|
1386
|
-
|
|
1766
|
+
var deserializeAws_restJson1RepositoryAssociationSummary = function (output, context) {
|
|
1387
1767
|
return {
|
|
1388
1768
|
AssociationArn: __expectString(output.AssociationArn),
|
|
1389
1769
|
AssociationId: __expectString(output.AssociationId),
|
|
@@ -1397,12 +1777,12 @@ const deserializeAws_restJson1RepositoryAssociationSummary = (output, context) =
|
|
|
1397
1777
|
State: __expectString(output.State),
|
|
1398
1778
|
};
|
|
1399
1779
|
};
|
|
1400
|
-
|
|
1780
|
+
var deserializeAws_restJson1RepositoryHeadSourceCodeType = function (output, context) {
|
|
1401
1781
|
return {
|
|
1402
1782
|
BranchName: __expectString(output.BranchName),
|
|
1403
1783
|
};
|
|
1404
1784
|
};
|
|
1405
|
-
|
|
1785
|
+
var deserializeAws_restJson1RequestMetadata = function (output, context) {
|
|
1406
1786
|
return {
|
|
1407
1787
|
EventInfo: output.EventInfo != null ? deserializeAws_restJson1EventInfo(output.EventInfo, context) : undefined,
|
|
1408
1788
|
RequestId: __expectString(output.RequestId),
|
|
@@ -1410,7 +1790,7 @@ const deserializeAws_restJson1RequestMetadata = (output, context) => {
|
|
|
1410
1790
|
VendorName: __expectString(output.VendorName),
|
|
1411
1791
|
};
|
|
1412
1792
|
};
|
|
1413
|
-
|
|
1793
|
+
var deserializeAws_restJson1RuleMetadata = function (output, context) {
|
|
1414
1794
|
return {
|
|
1415
1795
|
LongDescription: __expectString(output.LongDescription),
|
|
1416
1796
|
RuleId: __expectString(output.RuleId),
|
|
@@ -1419,10 +1799,10 @@ const deserializeAws_restJson1RuleMetadata = (output, context) => {
|
|
|
1419
1799
|
ShortDescription: __expectString(output.ShortDescription),
|
|
1420
1800
|
};
|
|
1421
1801
|
};
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
.filter((e)
|
|
1425
|
-
.map((entry)
|
|
1802
|
+
var deserializeAws_restJson1RuleTags = function (output, context) {
|
|
1803
|
+
var retVal = (output || [])
|
|
1804
|
+
.filter(function (e) { return e != null; })
|
|
1805
|
+
.map(function (entry) {
|
|
1426
1806
|
if (entry === null) {
|
|
1427
1807
|
return null;
|
|
1428
1808
|
}
|
|
@@ -1430,19 +1810,19 @@ const deserializeAws_restJson1RuleTags = (output, context) => {
|
|
|
1430
1810
|
});
|
|
1431
1811
|
return retVal;
|
|
1432
1812
|
};
|
|
1433
|
-
|
|
1813
|
+
var deserializeAws_restJson1S3BucketRepository = function (output, context) {
|
|
1434
1814
|
return {
|
|
1435
1815
|
Details: output.Details != null ? deserializeAws_restJson1S3RepositoryDetails(output.Details, context) : undefined,
|
|
1436
1816
|
Name: __expectString(output.Name),
|
|
1437
1817
|
};
|
|
1438
1818
|
};
|
|
1439
|
-
|
|
1819
|
+
var deserializeAws_restJson1S3RepositoryDetails = function (output, context) {
|
|
1440
1820
|
return {
|
|
1441
1821
|
BucketName: __expectString(output.BucketName),
|
|
1442
1822
|
CodeArtifacts: output.CodeArtifacts != null ? deserializeAws_restJson1CodeArtifacts(output.CodeArtifacts, context) : undefined,
|
|
1443
1823
|
};
|
|
1444
1824
|
};
|
|
1445
|
-
|
|
1825
|
+
var deserializeAws_restJson1SourceCodeType = function (output, context) {
|
|
1446
1826
|
return {
|
|
1447
1827
|
BranchDiff: output.BranchDiff != null
|
|
1448
1828
|
? deserializeAws_restJson1BranchDiffSourceCodeType(output.BranchDiff, context)
|
|
@@ -1461,50 +1841,67 @@ const deserializeAws_restJson1SourceCodeType = (output, context) => {
|
|
|
1461
1841
|
: undefined,
|
|
1462
1842
|
};
|
|
1463
1843
|
};
|
|
1464
|
-
|
|
1465
|
-
return Object.entries(output).reduce((acc,
|
|
1844
|
+
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
1845
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
1846
|
+
var _b;
|
|
1847
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1466
1848
|
if (value === null) {
|
|
1467
1849
|
return acc;
|
|
1468
1850
|
}
|
|
1469
|
-
return {
|
|
1470
|
-
...acc,
|
|
1471
|
-
[key]: __expectString(value),
|
|
1472
|
-
};
|
|
1851
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1473
1852
|
}, {});
|
|
1474
1853
|
};
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1854
|
+
var deserializeMetadata = function (output) {
|
|
1855
|
+
var _a, _b;
|
|
1856
|
+
return ({
|
|
1857
|
+
httpStatusCode: output.statusCode,
|
|
1858
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1859
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1860
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1861
|
+
});
|
|
1862
|
+
};
|
|
1863
|
+
var collectBody = function (streamBody, context) {
|
|
1864
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1482
1865
|
if (streamBody instanceof Uint8Array) {
|
|
1483
1866
|
return Promise.resolve(streamBody);
|
|
1484
1867
|
}
|
|
1485
1868
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1486
1869
|
};
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
value !== null &&
|
|
1490
|
-
value !== "" &&
|
|
1491
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1492
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1493
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1494
|
-
if (encoded.length) {
|
|
1495
|
-
return JSON.parse(encoded);
|
|
1496
|
-
}
|
|
1497
|
-
return {};
|
|
1498
|
-
});
|
|
1499
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1500
|
-
const value = await parseBody(errorBody, context);
|
|
1501
|
-
value.message = value.message ?? value.Message;
|
|
1502
|
-
return value;
|
|
1870
|
+
var collectBodyString = function (streamBody, context) {
|
|
1871
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1503
1872
|
};
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1873
|
+
var isSerializableHeaderValue = function (value) {
|
|
1874
|
+
return value !== undefined &&
|
|
1875
|
+
value !== null &&
|
|
1876
|
+
value !== "" &&
|
|
1877
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1878
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1879
|
+
};
|
|
1880
|
+
var parseBody = function (streamBody, context) {
|
|
1881
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
1882
|
+
if (encoded.length) {
|
|
1883
|
+
return JSON.parse(encoded);
|
|
1884
|
+
}
|
|
1885
|
+
return {};
|
|
1886
|
+
});
|
|
1887
|
+
};
|
|
1888
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1889
|
+
var value;
|
|
1890
|
+
var _a;
|
|
1891
|
+
return __generator(this, function (_b) {
|
|
1892
|
+
switch (_b.label) {
|
|
1893
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
1894
|
+
case 1:
|
|
1895
|
+
value = _b.sent();
|
|
1896
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
1897
|
+
return [2, value];
|
|
1898
|
+
}
|
|
1899
|
+
});
|
|
1900
|
+
}); };
|
|
1901
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
1902
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1903
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
1904
|
+
var cleanValue = rawValue;
|
|
1508
1905
|
if (typeof cleanValue === "number") {
|
|
1509
1906
|
cleanValue = cleanValue.toString();
|
|
1510
1907
|
}
|
|
@@ -1519,7 +1916,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1519
1916
|
}
|
|
1520
1917
|
return cleanValue;
|
|
1521
1918
|
};
|
|
1522
|
-
|
|
1919
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1523
1920
|
if (headerKey !== undefined) {
|
|
1524
1921
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1525
1922
|
}
|