@aws-sdk/client-codeguru-reviewer 3.306.0 → 3.309.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.
Files changed (33) hide show
  1. package/dist-cjs/commands/AssociateRepositoryCommand.js +2 -2
  2. package/dist-cjs/commands/CreateCodeReviewCommand.js +2 -2
  3. package/dist-cjs/commands/DescribeCodeReviewCommand.js +2 -2
  4. package/dist-cjs/commands/DescribeRecommendationFeedbackCommand.js +2 -2
  5. package/dist-cjs/commands/DescribeRepositoryAssociationCommand.js +2 -2
  6. package/dist-cjs/commands/DisassociateRepositoryCommand.js +2 -2
  7. package/dist-cjs/commands/ListCodeReviewsCommand.js +2 -2
  8. package/dist-cjs/commands/ListRecommendationFeedbackCommand.js +2 -2
  9. package/dist-cjs/commands/ListRecommendationsCommand.js +2 -2
  10. package/dist-cjs/commands/ListRepositoryAssociationsCommand.js +2 -2
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  12. package/dist-cjs/commands/PutRecommendationFeedbackCommand.js +2 -2
  13. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  14. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  15. package/dist-cjs/protocols/Aws_restJson1.js +261 -297
  16. package/dist-es/commands/AssociateRepositoryCommand.js +3 -3
  17. package/dist-es/commands/CreateCodeReviewCommand.js +3 -3
  18. package/dist-es/commands/DescribeCodeReviewCommand.js +3 -3
  19. package/dist-es/commands/DescribeRecommendationFeedbackCommand.js +3 -3
  20. package/dist-es/commands/DescribeRepositoryAssociationCommand.js +3 -3
  21. package/dist-es/commands/DisassociateRepositoryCommand.js +3 -3
  22. package/dist-es/commands/ListCodeReviewsCommand.js +3 -3
  23. package/dist-es/commands/ListRecommendationFeedbackCommand.js +3 -3
  24. package/dist-es/commands/ListRecommendationsCommand.js +3 -3
  25. package/dist-es/commands/ListRepositoryAssociationsCommand.js +3 -3
  26. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  27. package/dist-es/commands/PutRecommendationFeedbackCommand.js +3 -3
  28. package/dist-es/commands/TagResourceCommand.js +3 -3
  29. package/dist-es/commands/UntagResourceCommand.js +3 -3
  30. package/dist-es/protocols/Aws_restJson1.js +232 -268
  31. package/dist-types/protocols/Aws_restJson1.d.ts +112 -28
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +28 -28
  33. package/package.json +6 -6
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutRecommendationFeedbackCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRepositoryAssociationsCommand = exports.deserializeAws_restJson1ListRecommendationsCommand = exports.deserializeAws_restJson1ListRecommendationFeedbackCommand = exports.deserializeAws_restJson1ListCodeReviewsCommand = exports.deserializeAws_restJson1DisassociateRepositoryCommand = exports.deserializeAws_restJson1DescribeRepositoryAssociationCommand = exports.deserializeAws_restJson1DescribeRecommendationFeedbackCommand = exports.deserializeAws_restJson1DescribeCodeReviewCommand = exports.deserializeAws_restJson1CreateCodeReviewCommand = exports.deserializeAws_restJson1AssociateRepositoryCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1PutRecommendationFeedbackCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRepositoryAssociationsCommand = exports.serializeAws_restJson1ListRecommendationsCommand = exports.serializeAws_restJson1ListRecommendationFeedbackCommand = exports.serializeAws_restJson1ListCodeReviewsCommand = exports.serializeAws_restJson1DisassociateRepositoryCommand = exports.serializeAws_restJson1DescribeRepositoryAssociationCommand = exports.serializeAws_restJson1DescribeRecommendationFeedbackCommand = exports.serializeAws_restJson1DescribeCodeReviewCommand = exports.serializeAws_restJson1CreateCodeReviewCommand = exports.serializeAws_restJson1AssociateRepositoryCommand = void 0;
3
+ exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutRecommendationFeedbackCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRepositoryAssociationsCommand = exports.de_ListRecommendationsCommand = exports.de_ListRecommendationFeedbackCommand = exports.de_ListCodeReviewsCommand = exports.de_DisassociateRepositoryCommand = exports.de_DescribeRepositoryAssociationCommand = exports.de_DescribeRecommendationFeedbackCommand = exports.de_DescribeCodeReviewCommand = exports.de_CreateCodeReviewCommand = exports.de_AssociateRepositoryCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutRecommendationFeedbackCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRepositoryAssociationsCommand = exports.se_ListRecommendationsCommand = exports.se_ListRecommendationFeedbackCommand = exports.se_ListCodeReviewsCommand = exports.se_DisassociateRepositoryCommand = exports.se_DescribeRepositoryAssociationCommand = exports.se_DescribeRecommendationFeedbackCommand = exports.se_DescribeCodeReviewCommand = exports.se_CreateCodeReviewCommand = exports.se_AssociateRepositoryCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const uuid_1 = require("uuid");
7
7
  const CodeGuruReviewerServiceException_1 = require("../models/CodeGuruReviewerServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
- const serializeAws_restJson1AssociateRepositoryCommand = async (input, context) => {
9
+ const se_AssociateRepositoryCommand = async (input, context) => {
10
10
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
11
  const headers = {
12
12
  "content-type": "application/json",
@@ -15,11 +15,9 @@ const serializeAws_restJson1AssociateRepositoryCommand = async (input, context)
15
15
  let body;
16
16
  body = JSON.stringify({
17
17
  ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
18
- ...(input.KMSKeyDetails != null && {
19
- KMSKeyDetails: serializeAws_restJson1KMSKeyDetails(input.KMSKeyDetails, context),
20
- }),
21
- ...(input.Repository != null && { Repository: serializeAws_restJson1Repository(input.Repository, context) }),
22
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
18
+ ...(input.KMSKeyDetails != null && { KMSKeyDetails: se_KMSKeyDetails(input.KMSKeyDetails, context) }),
19
+ ...(input.Repository != null && { Repository: se_Repository(input.Repository, context) }),
20
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
23
21
  });
24
22
  return new protocol_http_1.HttpRequest({
25
23
  protocol,
@@ -31,8 +29,8 @@ const serializeAws_restJson1AssociateRepositoryCommand = async (input, context)
31
29
  body,
32
30
  });
33
31
  };
34
- exports.serializeAws_restJson1AssociateRepositoryCommand = serializeAws_restJson1AssociateRepositoryCommand;
35
- const serializeAws_restJson1CreateCodeReviewCommand = async (input, context) => {
32
+ exports.se_AssociateRepositoryCommand = se_AssociateRepositoryCommand;
33
+ const se_CreateCodeReviewCommand = async (input, context) => {
36
34
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
35
  const headers = {
38
36
  "content-type": "application/json",
@@ -43,7 +41,7 @@ const serializeAws_restJson1CreateCodeReviewCommand = async (input, context) =>
43
41
  ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
44
42
  ...(input.Name != null && { Name: input.Name }),
45
43
  ...(input.RepositoryAssociationArn != null && { RepositoryAssociationArn: input.RepositoryAssociationArn }),
46
- ...(input.Type != null && { Type: serializeAws_restJson1CodeReviewType(input.Type, context) }),
44
+ ...(input.Type != null && { Type: se_CodeReviewType(input.Type, context) }),
47
45
  });
48
46
  return new protocol_http_1.HttpRequest({
49
47
  protocol,
@@ -55,8 +53,8 @@ const serializeAws_restJson1CreateCodeReviewCommand = async (input, context) =>
55
53
  body,
56
54
  });
57
55
  };
58
- exports.serializeAws_restJson1CreateCodeReviewCommand = serializeAws_restJson1CreateCodeReviewCommand;
59
- const serializeAws_restJson1DescribeCodeReviewCommand = async (input, context) => {
56
+ exports.se_CreateCodeReviewCommand = se_CreateCodeReviewCommand;
57
+ const se_DescribeCodeReviewCommand = async (input, context) => {
60
58
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
61
59
  const headers = {};
62
60
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews/{CodeReviewArn}";
@@ -72,8 +70,8 @@ const serializeAws_restJson1DescribeCodeReviewCommand = async (input, context) =
72
70
  body,
73
71
  });
74
72
  };
75
- exports.serializeAws_restJson1DescribeCodeReviewCommand = serializeAws_restJson1DescribeCodeReviewCommand;
76
- const serializeAws_restJson1DescribeRecommendationFeedbackCommand = async (input, context) => {
73
+ exports.se_DescribeCodeReviewCommand = se_DescribeCodeReviewCommand;
74
+ const se_DescribeRecommendationFeedbackCommand = async (input, context) => {
77
75
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
78
76
  const headers = {};
79
77
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback/{CodeReviewArn}";
@@ -94,8 +92,8 @@ const serializeAws_restJson1DescribeRecommendationFeedbackCommand = async (input
94
92
  body,
95
93
  });
96
94
  };
97
- exports.serializeAws_restJson1DescribeRecommendationFeedbackCommand = serializeAws_restJson1DescribeRecommendationFeedbackCommand;
98
- const serializeAws_restJson1DescribeRepositoryAssociationCommand = async (input, context) => {
95
+ exports.se_DescribeRecommendationFeedbackCommand = se_DescribeRecommendationFeedbackCommand;
96
+ const se_DescribeRepositoryAssociationCommand = async (input, context) => {
99
97
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
100
98
  const headers = {};
101
99
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations/{AssociationArn}";
@@ -111,8 +109,8 @@ const serializeAws_restJson1DescribeRepositoryAssociationCommand = async (input,
111
109
  body,
112
110
  });
113
111
  };
114
- exports.serializeAws_restJson1DescribeRepositoryAssociationCommand = serializeAws_restJson1DescribeRepositoryAssociationCommand;
115
- const serializeAws_restJson1DisassociateRepositoryCommand = async (input, context) => {
112
+ exports.se_DescribeRepositoryAssociationCommand = se_DescribeRepositoryAssociationCommand;
113
+ const se_DisassociateRepositoryCommand = async (input, context) => {
116
114
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
117
115
  const headers = {};
118
116
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations/{AssociationArn}";
@@ -128,8 +126,8 @@ const serializeAws_restJson1DisassociateRepositoryCommand = async (input, contex
128
126
  body,
129
127
  });
130
128
  };
131
- exports.serializeAws_restJson1DisassociateRepositoryCommand = serializeAws_restJson1DisassociateRepositoryCommand;
132
- const serializeAws_restJson1ListCodeReviewsCommand = async (input, context) => {
129
+ exports.se_DisassociateRepositoryCommand = se_DisassociateRepositoryCommand;
130
+ const se_ListCodeReviewsCommand = async (input, context) => {
133
131
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
134
132
  const headers = {};
135
133
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews";
@@ -159,8 +157,8 @@ const serializeAws_restJson1ListCodeReviewsCommand = async (input, context) => {
159
157
  body,
160
158
  });
161
159
  };
162
- exports.serializeAws_restJson1ListCodeReviewsCommand = serializeAws_restJson1ListCodeReviewsCommand;
163
- const serializeAws_restJson1ListRecommendationFeedbackCommand = async (input, context) => {
160
+ exports.se_ListCodeReviewsCommand = se_ListCodeReviewsCommand;
161
+ const se_ListRecommendationFeedbackCommand = async (input, context) => {
164
162
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
165
163
  const headers = {};
166
164
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -187,8 +185,8 @@ const serializeAws_restJson1ListRecommendationFeedbackCommand = async (input, co
187
185
  body,
188
186
  });
189
187
  };
190
- exports.serializeAws_restJson1ListRecommendationFeedbackCommand = serializeAws_restJson1ListRecommendationFeedbackCommand;
191
- const serializeAws_restJson1ListRecommendationsCommand = async (input, context) => {
188
+ exports.se_ListRecommendationFeedbackCommand = se_ListRecommendationFeedbackCommand;
189
+ const se_ListRecommendationsCommand = async (input, context) => {
192
190
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
191
  const headers = {};
194
192
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -210,8 +208,8 @@ const serializeAws_restJson1ListRecommendationsCommand = async (input, context)
210
208
  body,
211
209
  });
212
210
  };
213
- exports.serializeAws_restJson1ListRecommendationsCommand = serializeAws_restJson1ListRecommendationsCommand;
214
- const serializeAws_restJson1ListRepositoryAssociationsCommand = async (input, context) => {
211
+ exports.se_ListRecommendationsCommand = se_ListRecommendationsCommand;
212
+ const se_ListRepositoryAssociationsCommand = async (input, context) => {
215
213
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
216
214
  const headers = {};
217
215
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations";
@@ -238,8 +236,8 @@ const serializeAws_restJson1ListRepositoryAssociationsCommand = async (input, co
238
236
  body,
239
237
  });
240
238
  };
241
- exports.serializeAws_restJson1ListRepositoryAssociationsCommand = serializeAws_restJson1ListRepositoryAssociationsCommand;
242
- const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
239
+ exports.se_ListRepositoryAssociationsCommand = se_ListRepositoryAssociationsCommand;
240
+ const se_ListTagsForResourceCommand = async (input, context) => {
243
241
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
244
242
  const headers = {};
245
243
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -255,8 +253,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
255
253
  body,
256
254
  });
257
255
  };
258
- exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
259
- const serializeAws_restJson1PutRecommendationFeedbackCommand = async (input, context) => {
256
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
257
+ const se_PutRecommendationFeedbackCommand = async (input, context) => {
260
258
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
261
259
  const headers = {
262
260
  "content-type": "application/json",
@@ -265,7 +263,7 @@ const serializeAws_restJson1PutRecommendationFeedbackCommand = async (input, con
265
263
  let body;
266
264
  body = JSON.stringify({
267
265
  ...(input.CodeReviewArn != null && { CodeReviewArn: input.CodeReviewArn }),
268
- ...(input.Reactions != null && { Reactions: serializeAws_restJson1Reactions(input.Reactions, context) }),
266
+ ...(input.Reactions != null && { Reactions: se_Reactions(input.Reactions, context) }),
269
267
  ...(input.RecommendationId != null && { RecommendationId: input.RecommendationId }),
270
268
  });
271
269
  return new protocol_http_1.HttpRequest({
@@ -278,8 +276,8 @@ const serializeAws_restJson1PutRecommendationFeedbackCommand = async (input, con
278
276
  body,
279
277
  });
280
278
  };
281
- exports.serializeAws_restJson1PutRecommendationFeedbackCommand = serializeAws_restJson1PutRecommendationFeedbackCommand;
282
- const serializeAws_restJson1TagResourceCommand = async (input, context) => {
279
+ exports.se_PutRecommendationFeedbackCommand = se_PutRecommendationFeedbackCommand;
280
+ const se_TagResourceCommand = async (input, context) => {
283
281
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
284
282
  const headers = {
285
283
  "content-type": "application/json",
@@ -288,7 +286,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
288
286
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
289
287
  let body;
290
288
  body = JSON.stringify({
291
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
289
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
292
290
  });
293
291
  return new protocol_http_1.HttpRequest({
294
292
  protocol,
@@ -300,8 +298,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
300
298
  body,
301
299
  });
302
300
  };
303
- exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagResourceCommand;
304
- const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
301
+ exports.se_TagResourceCommand = se_TagResourceCommand;
302
+ const se_UntagResourceCommand = async (input, context) => {
305
303
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
304
  const headers = {};
307
305
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -324,25 +322,25 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
324
322
  body,
325
323
  });
326
324
  };
327
- exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
328
- const deserializeAws_restJson1AssociateRepositoryCommand = async (output, context) => {
325
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
326
+ const de_AssociateRepositoryCommand = async (output, context) => {
329
327
  if (output.statusCode !== 200 && output.statusCode >= 300) {
330
- return deserializeAws_restJson1AssociateRepositoryCommandError(output, context);
328
+ return de_AssociateRepositoryCommandError(output, context);
331
329
  }
332
330
  const contents = map({
333
331
  $metadata: deserializeMetadata(output),
334
332
  });
335
333
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
336
334
  if (data.RepositoryAssociation != null) {
337
- contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
335
+ contents.RepositoryAssociation = de_RepositoryAssociation(data.RepositoryAssociation, context);
338
336
  }
339
337
  if (data.Tags != null) {
340
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
338
+ contents.Tags = de_TagMap(data.Tags, context);
341
339
  }
342
340
  return contents;
343
341
  };
344
- exports.deserializeAws_restJson1AssociateRepositoryCommand = deserializeAws_restJson1AssociateRepositoryCommand;
345
- const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, context) => {
342
+ exports.de_AssociateRepositoryCommand = de_AssociateRepositoryCommand;
343
+ const de_AssociateRepositoryCommandError = async (output, context) => {
346
344
  const parsedOutput = {
347
345
  ...output,
348
346
  body: await parseErrorBody(output.body, context),
@@ -351,19 +349,19 @@ const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, c
351
349
  switch (errorCode) {
352
350
  case "AccessDeniedException":
353
351
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
354
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
352
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
355
353
  case "ConflictException":
356
354
  case "com.amazonaws.codegurureviewer#ConflictException":
357
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
355
+ throw await de_ConflictExceptionRes(parsedOutput, context);
358
356
  case "InternalServerException":
359
357
  case "com.amazonaws.codegurureviewer#InternalServerException":
360
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
358
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
361
359
  case "ThrottlingException":
362
360
  case "com.amazonaws.codegurureviewer#ThrottlingException":
363
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
361
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
364
362
  case "ValidationException":
365
363
  case "com.amazonaws.codegurureviewer#ValidationException":
366
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
364
+ throw await de_ValidationExceptionRes(parsedOutput, context);
367
365
  default:
368
366
  const parsedBody = parsedOutput.body;
369
367
  (0, smithy_client_1.throwDefaultError)({
@@ -374,21 +372,21 @@ const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, c
374
372
  });
375
373
  }
376
374
  };
377
- const deserializeAws_restJson1CreateCodeReviewCommand = async (output, context) => {
375
+ const de_CreateCodeReviewCommand = async (output, context) => {
378
376
  if (output.statusCode !== 200 && output.statusCode >= 300) {
379
- return deserializeAws_restJson1CreateCodeReviewCommandError(output, context);
377
+ return de_CreateCodeReviewCommandError(output, context);
380
378
  }
381
379
  const contents = map({
382
380
  $metadata: deserializeMetadata(output),
383
381
  });
384
382
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
385
383
  if (data.CodeReview != null) {
386
- contents.CodeReview = deserializeAws_restJson1CodeReview(data.CodeReview, context);
384
+ contents.CodeReview = de_CodeReview(data.CodeReview, context);
387
385
  }
388
386
  return contents;
389
387
  };
390
- exports.deserializeAws_restJson1CreateCodeReviewCommand = deserializeAws_restJson1CreateCodeReviewCommand;
391
- const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, context) => {
388
+ exports.de_CreateCodeReviewCommand = de_CreateCodeReviewCommand;
389
+ const de_CreateCodeReviewCommandError = async (output, context) => {
392
390
  const parsedOutput = {
393
391
  ...output,
394
392
  body: await parseErrorBody(output.body, context),
@@ -397,22 +395,22 @@ const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, cont
397
395
  switch (errorCode) {
398
396
  case "AccessDeniedException":
399
397
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
400
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
398
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
401
399
  case "ConflictException":
402
400
  case "com.amazonaws.codegurureviewer#ConflictException":
403
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
401
+ throw await de_ConflictExceptionRes(parsedOutput, context);
404
402
  case "InternalServerException":
405
403
  case "com.amazonaws.codegurureviewer#InternalServerException":
406
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
404
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
407
405
  case "ResourceNotFoundException":
408
406
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
409
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
407
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
410
408
  case "ThrottlingException":
411
409
  case "com.amazonaws.codegurureviewer#ThrottlingException":
412
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
410
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
413
411
  case "ValidationException":
414
412
  case "com.amazonaws.codegurureviewer#ValidationException":
415
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
413
+ throw await de_ValidationExceptionRes(parsedOutput, context);
416
414
  default:
417
415
  const parsedBody = parsedOutput.body;
418
416
  (0, smithy_client_1.throwDefaultError)({
@@ -423,21 +421,21 @@ const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, cont
423
421
  });
424
422
  }
425
423
  };
426
- const deserializeAws_restJson1DescribeCodeReviewCommand = async (output, context) => {
424
+ const de_DescribeCodeReviewCommand = async (output, context) => {
427
425
  if (output.statusCode !== 200 && output.statusCode >= 300) {
428
- return deserializeAws_restJson1DescribeCodeReviewCommandError(output, context);
426
+ return de_DescribeCodeReviewCommandError(output, context);
429
427
  }
430
428
  const contents = map({
431
429
  $metadata: deserializeMetadata(output),
432
430
  });
433
431
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
434
432
  if (data.CodeReview != null) {
435
- contents.CodeReview = deserializeAws_restJson1CodeReview(data.CodeReview, context);
433
+ contents.CodeReview = de_CodeReview(data.CodeReview, context);
436
434
  }
437
435
  return contents;
438
436
  };
439
- exports.deserializeAws_restJson1DescribeCodeReviewCommand = deserializeAws_restJson1DescribeCodeReviewCommand;
440
- const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, context) => {
437
+ exports.de_DescribeCodeReviewCommand = de_DescribeCodeReviewCommand;
438
+ const de_DescribeCodeReviewCommandError = async (output, context) => {
441
439
  const parsedOutput = {
442
440
  ...output,
443
441
  body: await parseErrorBody(output.body, context),
@@ -446,19 +444,19 @@ const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, co
446
444
  switch (errorCode) {
447
445
  case "AccessDeniedException":
448
446
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
449
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
447
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
450
448
  case "InternalServerException":
451
449
  case "com.amazonaws.codegurureviewer#InternalServerException":
452
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
450
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
453
451
  case "ResourceNotFoundException":
454
452
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
455
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
453
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
456
454
  case "ThrottlingException":
457
455
  case "com.amazonaws.codegurureviewer#ThrottlingException":
458
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
456
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
459
457
  case "ValidationException":
460
458
  case "com.amazonaws.codegurureviewer#ValidationException":
461
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
459
+ throw await de_ValidationExceptionRes(parsedOutput, context);
462
460
  default:
463
461
  const parsedBody = parsedOutput.body;
464
462
  (0, smithy_client_1.throwDefaultError)({
@@ -469,21 +467,21 @@ const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, co
469
467
  });
470
468
  }
471
469
  };
472
- const deserializeAws_restJson1DescribeRecommendationFeedbackCommand = async (output, context) => {
470
+ const de_DescribeRecommendationFeedbackCommand = async (output, context) => {
473
471
  if (output.statusCode !== 200 && output.statusCode >= 300) {
474
- return deserializeAws_restJson1DescribeRecommendationFeedbackCommandError(output, context);
472
+ return de_DescribeRecommendationFeedbackCommandError(output, context);
475
473
  }
476
474
  const contents = map({
477
475
  $metadata: deserializeMetadata(output),
478
476
  });
479
477
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
480
478
  if (data.RecommendationFeedback != null) {
481
- contents.RecommendationFeedback = deserializeAws_restJson1RecommendationFeedback(data.RecommendationFeedback, context);
479
+ contents.RecommendationFeedback = de_RecommendationFeedback(data.RecommendationFeedback, context);
482
480
  }
483
481
  return contents;
484
482
  };
485
- exports.deserializeAws_restJson1DescribeRecommendationFeedbackCommand = deserializeAws_restJson1DescribeRecommendationFeedbackCommand;
486
- const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async (output, context) => {
483
+ exports.de_DescribeRecommendationFeedbackCommand = de_DescribeRecommendationFeedbackCommand;
484
+ const de_DescribeRecommendationFeedbackCommandError = async (output, context) => {
487
485
  const parsedOutput = {
488
486
  ...output,
489
487
  body: await parseErrorBody(output.body, context),
@@ -492,19 +490,19 @@ const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async
492
490
  switch (errorCode) {
493
491
  case "AccessDeniedException":
494
492
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
495
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
493
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
496
494
  case "InternalServerException":
497
495
  case "com.amazonaws.codegurureviewer#InternalServerException":
498
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
496
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
499
497
  case "ResourceNotFoundException":
500
498
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
501
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
499
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
502
500
  case "ThrottlingException":
503
501
  case "com.amazonaws.codegurureviewer#ThrottlingException":
504
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
502
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
505
503
  case "ValidationException":
506
504
  case "com.amazonaws.codegurureviewer#ValidationException":
507
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
505
+ throw await de_ValidationExceptionRes(parsedOutput, context);
508
506
  default:
509
507
  const parsedBody = parsedOutput.body;
510
508
  (0, smithy_client_1.throwDefaultError)({
@@ -515,24 +513,24 @@ const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async
515
513
  });
516
514
  }
517
515
  };
518
- const deserializeAws_restJson1DescribeRepositoryAssociationCommand = async (output, context) => {
516
+ const de_DescribeRepositoryAssociationCommand = async (output, context) => {
519
517
  if (output.statusCode !== 200 && output.statusCode >= 300) {
520
- return deserializeAws_restJson1DescribeRepositoryAssociationCommandError(output, context);
518
+ return de_DescribeRepositoryAssociationCommandError(output, context);
521
519
  }
522
520
  const contents = map({
523
521
  $metadata: deserializeMetadata(output),
524
522
  });
525
523
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
526
524
  if (data.RepositoryAssociation != null) {
527
- contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
525
+ contents.RepositoryAssociation = de_RepositoryAssociation(data.RepositoryAssociation, context);
528
526
  }
529
527
  if (data.Tags != null) {
530
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
528
+ contents.Tags = de_TagMap(data.Tags, context);
531
529
  }
532
530
  return contents;
533
531
  };
534
- exports.deserializeAws_restJson1DescribeRepositoryAssociationCommand = deserializeAws_restJson1DescribeRepositoryAssociationCommand;
535
- const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async (output, context) => {
532
+ exports.de_DescribeRepositoryAssociationCommand = de_DescribeRepositoryAssociationCommand;
533
+ const de_DescribeRepositoryAssociationCommandError = async (output, context) => {
536
534
  const parsedOutput = {
537
535
  ...output,
538
536
  body: await parseErrorBody(output.body, context),
@@ -541,19 +539,19 @@ const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async
541
539
  switch (errorCode) {
542
540
  case "AccessDeniedException":
543
541
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
544
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
542
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
545
543
  case "InternalServerException":
546
544
  case "com.amazonaws.codegurureviewer#InternalServerException":
547
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
545
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
548
546
  case "NotFoundException":
549
547
  case "com.amazonaws.codegurureviewer#NotFoundException":
550
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
548
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
551
549
  case "ThrottlingException":
552
550
  case "com.amazonaws.codegurureviewer#ThrottlingException":
553
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
551
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
554
552
  case "ValidationException":
555
553
  case "com.amazonaws.codegurureviewer#ValidationException":
556
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
554
+ throw await de_ValidationExceptionRes(parsedOutput, context);
557
555
  default:
558
556
  const parsedBody = parsedOutput.body;
559
557
  (0, smithy_client_1.throwDefaultError)({
@@ -564,24 +562,24 @@ const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async
564
562
  });
565
563
  }
566
564
  };
567
- const deserializeAws_restJson1DisassociateRepositoryCommand = async (output, context) => {
565
+ const de_DisassociateRepositoryCommand = async (output, context) => {
568
566
  if (output.statusCode !== 200 && output.statusCode >= 300) {
569
- return deserializeAws_restJson1DisassociateRepositoryCommandError(output, context);
567
+ return de_DisassociateRepositoryCommandError(output, context);
570
568
  }
571
569
  const contents = map({
572
570
  $metadata: deserializeMetadata(output),
573
571
  });
574
572
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
575
573
  if (data.RepositoryAssociation != null) {
576
- contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
574
+ contents.RepositoryAssociation = de_RepositoryAssociation(data.RepositoryAssociation, context);
577
575
  }
578
576
  if (data.Tags != null) {
579
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
577
+ contents.Tags = de_TagMap(data.Tags, context);
580
578
  }
581
579
  return contents;
582
580
  };
583
- exports.deserializeAws_restJson1DisassociateRepositoryCommand = deserializeAws_restJson1DisassociateRepositoryCommand;
584
- const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output, context) => {
581
+ exports.de_DisassociateRepositoryCommand = de_DisassociateRepositoryCommand;
582
+ const de_DisassociateRepositoryCommandError = async (output, context) => {
585
583
  const parsedOutput = {
586
584
  ...output,
587
585
  body: await parseErrorBody(output.body, context),
@@ -590,22 +588,22 @@ const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output
590
588
  switch (errorCode) {
591
589
  case "AccessDeniedException":
592
590
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
593
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
591
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
594
592
  case "ConflictException":
595
593
  case "com.amazonaws.codegurureviewer#ConflictException":
596
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
594
+ throw await de_ConflictExceptionRes(parsedOutput, context);
597
595
  case "InternalServerException":
598
596
  case "com.amazonaws.codegurureviewer#InternalServerException":
599
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
597
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
600
598
  case "NotFoundException":
601
599
  case "com.amazonaws.codegurureviewer#NotFoundException":
602
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
600
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
603
601
  case "ThrottlingException":
604
602
  case "com.amazonaws.codegurureviewer#ThrottlingException":
605
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
603
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
606
604
  case "ValidationException":
607
605
  case "com.amazonaws.codegurureviewer#ValidationException":
608
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
606
+ throw await de_ValidationExceptionRes(parsedOutput, context);
609
607
  default:
610
608
  const parsedBody = parsedOutput.body;
611
609
  (0, smithy_client_1.throwDefaultError)({
@@ -616,24 +614,24 @@ const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output
616
614
  });
617
615
  }
618
616
  };
619
- const deserializeAws_restJson1ListCodeReviewsCommand = async (output, context) => {
617
+ const de_ListCodeReviewsCommand = async (output, context) => {
620
618
  if (output.statusCode !== 200 && output.statusCode >= 300) {
621
- return deserializeAws_restJson1ListCodeReviewsCommandError(output, context);
619
+ return de_ListCodeReviewsCommandError(output, context);
622
620
  }
623
621
  const contents = map({
624
622
  $metadata: deserializeMetadata(output),
625
623
  });
626
624
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
627
625
  if (data.CodeReviewSummaries != null) {
628
- contents.CodeReviewSummaries = deserializeAws_restJson1CodeReviewSummaries(data.CodeReviewSummaries, context);
626
+ contents.CodeReviewSummaries = de_CodeReviewSummaries(data.CodeReviewSummaries, context);
629
627
  }
630
628
  if (data.NextToken != null) {
631
629
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
632
630
  }
633
631
  return contents;
634
632
  };
635
- exports.deserializeAws_restJson1ListCodeReviewsCommand = deserializeAws_restJson1ListCodeReviewsCommand;
636
- const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, context) => {
633
+ exports.de_ListCodeReviewsCommand = de_ListCodeReviewsCommand;
634
+ const de_ListCodeReviewsCommandError = async (output, context) => {
637
635
  const parsedOutput = {
638
636
  ...output,
639
637
  body: await parseErrorBody(output.body, context),
@@ -642,16 +640,16 @@ const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, conte
642
640
  switch (errorCode) {
643
641
  case "AccessDeniedException":
644
642
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
645
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
643
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
646
644
  case "InternalServerException":
647
645
  case "com.amazonaws.codegurureviewer#InternalServerException":
648
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
646
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
649
647
  case "ThrottlingException":
650
648
  case "com.amazonaws.codegurureviewer#ThrottlingException":
651
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
649
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
652
650
  case "ValidationException":
653
651
  case "com.amazonaws.codegurureviewer#ValidationException":
654
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
652
+ throw await de_ValidationExceptionRes(parsedOutput, context);
655
653
  default:
656
654
  const parsedBody = parsedOutput.body;
657
655
  (0, smithy_client_1.throwDefaultError)({
@@ -662,9 +660,9 @@ const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, conte
662
660
  });
663
661
  }
664
662
  };
665
- const deserializeAws_restJson1ListRecommendationFeedbackCommand = async (output, context) => {
663
+ const de_ListRecommendationFeedbackCommand = async (output, context) => {
666
664
  if (output.statusCode !== 200 && output.statusCode >= 300) {
667
- return deserializeAws_restJson1ListRecommendationFeedbackCommandError(output, context);
665
+ return de_ListRecommendationFeedbackCommandError(output, context);
668
666
  }
669
667
  const contents = map({
670
668
  $metadata: deserializeMetadata(output),
@@ -674,12 +672,12 @@ const deserializeAws_restJson1ListRecommendationFeedbackCommand = async (output,
674
672
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
675
673
  }
676
674
  if (data.RecommendationFeedbackSummaries != null) {
677
- contents.RecommendationFeedbackSummaries = deserializeAws_restJson1RecommendationFeedbackSummaries(data.RecommendationFeedbackSummaries, context);
675
+ contents.RecommendationFeedbackSummaries = de_RecommendationFeedbackSummaries(data.RecommendationFeedbackSummaries, context);
678
676
  }
679
677
  return contents;
680
678
  };
681
- exports.deserializeAws_restJson1ListRecommendationFeedbackCommand = deserializeAws_restJson1ListRecommendationFeedbackCommand;
682
- const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (output, context) => {
679
+ exports.de_ListRecommendationFeedbackCommand = de_ListRecommendationFeedbackCommand;
680
+ const de_ListRecommendationFeedbackCommandError = async (output, context) => {
683
681
  const parsedOutput = {
684
682
  ...output,
685
683
  body: await parseErrorBody(output.body, context),
@@ -688,19 +686,19 @@ const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (ou
688
686
  switch (errorCode) {
689
687
  case "AccessDeniedException":
690
688
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
691
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
689
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
692
690
  case "InternalServerException":
693
691
  case "com.amazonaws.codegurureviewer#InternalServerException":
694
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
692
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
695
693
  case "ResourceNotFoundException":
696
694
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
697
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
695
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
698
696
  case "ThrottlingException":
699
697
  case "com.amazonaws.codegurureviewer#ThrottlingException":
700
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
698
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
701
699
  case "ValidationException":
702
700
  case "com.amazonaws.codegurureviewer#ValidationException":
703
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
701
+ throw await de_ValidationExceptionRes(parsedOutput, context);
704
702
  default:
705
703
  const parsedBody = parsedOutput.body;
706
704
  (0, smithy_client_1.throwDefaultError)({
@@ -711,9 +709,9 @@ const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (ou
711
709
  });
712
710
  }
713
711
  };
714
- const deserializeAws_restJson1ListRecommendationsCommand = async (output, context) => {
712
+ const de_ListRecommendationsCommand = async (output, context) => {
715
713
  if (output.statusCode !== 200 && output.statusCode >= 300) {
716
- return deserializeAws_restJson1ListRecommendationsCommandError(output, context);
714
+ return de_ListRecommendationsCommandError(output, context);
717
715
  }
718
716
  const contents = map({
719
717
  $metadata: deserializeMetadata(output),
@@ -723,12 +721,12 @@ const deserializeAws_restJson1ListRecommendationsCommand = async (output, contex
723
721
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
724
722
  }
725
723
  if (data.RecommendationSummaries != null) {
726
- contents.RecommendationSummaries = deserializeAws_restJson1RecommendationSummaries(data.RecommendationSummaries, context);
724
+ contents.RecommendationSummaries = de_RecommendationSummaries(data.RecommendationSummaries, context);
727
725
  }
728
726
  return contents;
729
727
  };
730
- exports.deserializeAws_restJson1ListRecommendationsCommand = deserializeAws_restJson1ListRecommendationsCommand;
731
- const deserializeAws_restJson1ListRecommendationsCommandError = async (output, context) => {
728
+ exports.de_ListRecommendationsCommand = de_ListRecommendationsCommand;
729
+ const de_ListRecommendationsCommandError = async (output, context) => {
732
730
  const parsedOutput = {
733
731
  ...output,
734
732
  body: await parseErrorBody(output.body, context),
@@ -737,19 +735,19 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
737
735
  switch (errorCode) {
738
736
  case "AccessDeniedException":
739
737
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
740
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
738
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
741
739
  case "InternalServerException":
742
740
  case "com.amazonaws.codegurureviewer#InternalServerException":
743
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
741
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
744
742
  case "ResourceNotFoundException":
745
743
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
746
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
744
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
747
745
  case "ThrottlingException":
748
746
  case "com.amazonaws.codegurureviewer#ThrottlingException":
749
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
747
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
750
748
  case "ValidationException":
751
749
  case "com.amazonaws.codegurureviewer#ValidationException":
752
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
750
+ throw await de_ValidationExceptionRes(parsedOutput, context);
753
751
  default:
754
752
  const parsedBody = parsedOutput.body;
755
753
  (0, smithy_client_1.throwDefaultError)({
@@ -760,9 +758,9 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
760
758
  });
761
759
  }
762
760
  };
763
- const deserializeAws_restJson1ListRepositoryAssociationsCommand = async (output, context) => {
761
+ const de_ListRepositoryAssociationsCommand = async (output, context) => {
764
762
  if (output.statusCode !== 200 && output.statusCode >= 300) {
765
- return deserializeAws_restJson1ListRepositoryAssociationsCommandError(output, context);
763
+ return de_ListRepositoryAssociationsCommandError(output, context);
766
764
  }
767
765
  const contents = map({
768
766
  $metadata: deserializeMetadata(output),
@@ -772,12 +770,12 @@ const deserializeAws_restJson1ListRepositoryAssociationsCommand = async (output,
772
770
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
773
771
  }
774
772
  if (data.RepositoryAssociationSummaries != null) {
775
- contents.RepositoryAssociationSummaries = deserializeAws_restJson1RepositoryAssociationSummaries(data.RepositoryAssociationSummaries, context);
773
+ contents.RepositoryAssociationSummaries = de_RepositoryAssociationSummaries(data.RepositoryAssociationSummaries, context);
776
774
  }
777
775
  return contents;
778
776
  };
779
- exports.deserializeAws_restJson1ListRepositoryAssociationsCommand = deserializeAws_restJson1ListRepositoryAssociationsCommand;
780
- const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (output, context) => {
777
+ exports.de_ListRepositoryAssociationsCommand = de_ListRepositoryAssociationsCommand;
778
+ const de_ListRepositoryAssociationsCommandError = async (output, context) => {
781
779
  const parsedOutput = {
782
780
  ...output,
783
781
  body: await parseErrorBody(output.body, context),
@@ -786,13 +784,13 @@ const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (ou
786
784
  switch (errorCode) {
787
785
  case "InternalServerException":
788
786
  case "com.amazonaws.codegurureviewer#InternalServerException":
789
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
787
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
790
788
  case "ThrottlingException":
791
789
  case "com.amazonaws.codegurureviewer#ThrottlingException":
792
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
790
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
793
791
  case "ValidationException":
794
792
  case "com.amazonaws.codegurureviewer#ValidationException":
795
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
793
+ throw await de_ValidationExceptionRes(parsedOutput, context);
796
794
  default:
797
795
  const parsedBody = parsedOutput.body;
798
796
  (0, smithy_client_1.throwDefaultError)({
@@ -803,21 +801,21 @@ const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (ou
803
801
  });
804
802
  }
805
803
  };
806
- const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
804
+ const de_ListTagsForResourceCommand = async (output, context) => {
807
805
  if (output.statusCode !== 200 && output.statusCode >= 300) {
808
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
806
+ return de_ListTagsForResourceCommandError(output, context);
809
807
  }
810
808
  const contents = map({
811
809
  $metadata: deserializeMetadata(output),
812
810
  });
813
811
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
814
812
  if (data.Tags != null) {
815
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
813
+ contents.Tags = de_TagMap(data.Tags, context);
816
814
  }
817
815
  return contents;
818
816
  };
819
- exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
820
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
817
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
818
+ const de_ListTagsForResourceCommandError = async (output, context) => {
821
819
  const parsedOutput = {
822
820
  ...output,
823
821
  body: await parseErrorBody(output.body, context),
@@ -826,13 +824,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
826
824
  switch (errorCode) {
827
825
  case "InternalServerException":
828
826
  case "com.amazonaws.codegurureviewer#InternalServerException":
829
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
827
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
830
828
  case "ResourceNotFoundException":
831
829
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
832
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
830
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
833
831
  case "ValidationException":
834
832
  case "com.amazonaws.codegurureviewer#ValidationException":
835
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
833
+ throw await de_ValidationExceptionRes(parsedOutput, context);
836
834
  default:
837
835
  const parsedBody = parsedOutput.body;
838
836
  (0, smithy_client_1.throwDefaultError)({
@@ -843,9 +841,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
843
841
  });
844
842
  }
845
843
  };
846
- const deserializeAws_restJson1PutRecommendationFeedbackCommand = async (output, context) => {
844
+ const de_PutRecommendationFeedbackCommand = async (output, context) => {
847
845
  if (output.statusCode !== 200 && output.statusCode >= 300) {
848
- return deserializeAws_restJson1PutRecommendationFeedbackCommandError(output, context);
846
+ return de_PutRecommendationFeedbackCommandError(output, context);
849
847
  }
850
848
  const contents = map({
851
849
  $metadata: deserializeMetadata(output),
@@ -853,8 +851,8 @@ const deserializeAws_restJson1PutRecommendationFeedbackCommand = async (output,
853
851
  await collectBody(output.body, context);
854
852
  return contents;
855
853
  };
856
- exports.deserializeAws_restJson1PutRecommendationFeedbackCommand = deserializeAws_restJson1PutRecommendationFeedbackCommand;
857
- const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (output, context) => {
854
+ exports.de_PutRecommendationFeedbackCommand = de_PutRecommendationFeedbackCommand;
855
+ const de_PutRecommendationFeedbackCommandError = async (output, context) => {
858
856
  const parsedOutput = {
859
857
  ...output,
860
858
  body: await parseErrorBody(output.body, context),
@@ -863,19 +861,19 @@ const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (out
863
861
  switch (errorCode) {
864
862
  case "AccessDeniedException":
865
863
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
866
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
864
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
867
865
  case "InternalServerException":
868
866
  case "com.amazonaws.codegurureviewer#InternalServerException":
869
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
867
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
870
868
  case "ResourceNotFoundException":
871
869
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
872
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
870
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
873
871
  case "ThrottlingException":
874
872
  case "com.amazonaws.codegurureviewer#ThrottlingException":
875
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
873
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
876
874
  case "ValidationException":
877
875
  case "com.amazonaws.codegurureviewer#ValidationException":
878
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
876
+ throw await de_ValidationExceptionRes(parsedOutput, context);
879
877
  default:
880
878
  const parsedBody = parsedOutput.body;
881
879
  (0, smithy_client_1.throwDefaultError)({
@@ -886,9 +884,9 @@ const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (out
886
884
  });
887
885
  }
888
886
  };
889
- const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
887
+ const de_TagResourceCommand = async (output, context) => {
890
888
  if (output.statusCode !== 200 && output.statusCode >= 300) {
891
- return deserializeAws_restJson1TagResourceCommandError(output, context);
889
+ return de_TagResourceCommandError(output, context);
892
890
  }
893
891
  const contents = map({
894
892
  $metadata: deserializeMetadata(output),
@@ -896,8 +894,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
896
894
  await collectBody(output.body, context);
897
895
  return contents;
898
896
  };
899
- exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
900
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
897
+ exports.de_TagResourceCommand = de_TagResourceCommand;
898
+ const de_TagResourceCommandError = async (output, context) => {
901
899
  const parsedOutput = {
902
900
  ...output,
903
901
  body: await parseErrorBody(output.body, context),
@@ -906,13 +904,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
906
904
  switch (errorCode) {
907
905
  case "InternalServerException":
908
906
  case "com.amazonaws.codegurureviewer#InternalServerException":
909
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
907
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
910
908
  case "ResourceNotFoundException":
911
909
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
912
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
910
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
913
911
  case "ValidationException":
914
912
  case "com.amazonaws.codegurureviewer#ValidationException":
915
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
913
+ throw await de_ValidationExceptionRes(parsedOutput, context);
916
914
  default:
917
915
  const parsedBody = parsedOutput.body;
918
916
  (0, smithy_client_1.throwDefaultError)({
@@ -923,9 +921,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
923
921
  });
924
922
  }
925
923
  };
926
- const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
924
+ const de_UntagResourceCommand = async (output, context) => {
927
925
  if (output.statusCode !== 200 && output.statusCode >= 300) {
928
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
926
+ return de_UntagResourceCommandError(output, context);
929
927
  }
930
928
  const contents = map({
931
929
  $metadata: deserializeMetadata(output),
@@ -933,8 +931,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
933
931
  await collectBody(output.body, context);
934
932
  return contents;
935
933
  };
936
- exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
937
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
934
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
935
+ const de_UntagResourceCommandError = async (output, context) => {
938
936
  const parsedOutput = {
939
937
  ...output,
940
938
  body: await parseErrorBody(output.body, context),
@@ -943,13 +941,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
943
941
  switch (errorCode) {
944
942
  case "InternalServerException":
945
943
  case "com.amazonaws.codegurureviewer#InternalServerException":
946
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
944
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
947
945
  case "ResourceNotFoundException":
948
946
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
949
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
947
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
950
948
  case "ValidationException":
951
949
  case "com.amazonaws.codegurureviewer#ValidationException":
952
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
950
+ throw await de_ValidationExceptionRes(parsedOutput, context);
953
951
  default:
954
952
  const parsedBody = parsedOutput.body;
955
953
  (0, smithy_client_1.throwDefaultError)({
@@ -961,7 +959,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
961
959
  }
962
960
  };
963
961
  const map = smithy_client_1.map;
964
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
962
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
965
963
  const contents = map({});
966
964
  const data = parsedOutput.body;
967
965
  if (data.Message != null) {
@@ -973,7 +971,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
973
971
  });
974
972
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
975
973
  };
976
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
974
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
977
975
  const contents = map({});
978
976
  const data = parsedOutput.body;
979
977
  if (data.Message != null) {
@@ -985,7 +983,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
985
983
  });
986
984
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
987
985
  };
988
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
986
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
989
987
  const contents = map({});
990
988
  const data = parsedOutput.body;
991
989
  if (data.Message != null) {
@@ -997,7 +995,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
997
995
  });
998
996
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
999
997
  };
1000
- const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
998
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1001
999
  const contents = map({});
1002
1000
  const data = parsedOutput.body;
1003
1001
  if (data.Message != null) {
@@ -1009,7 +1007,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
1009
1007
  });
1010
1008
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1011
1009
  };
1012
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1010
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1013
1011
  const contents = map({});
1014
1012
  const data = parsedOutput.body;
1015
1013
  if (data.Message != null) {
@@ -1021,7 +1019,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
1021
1019
  });
1022
1020
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1023
1021
  };
1024
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
1022
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1025
1023
  const contents = map({});
1026
1024
  const data = parsedOutput.body;
1027
1025
  if (data.Message != null) {
@@ -1033,7 +1031,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
1033
1031
  });
1034
1032
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1035
1033
  };
1036
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1034
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1037
1035
  const contents = map({});
1038
1036
  const data = parsedOutput.body;
1039
1037
  if (data.Message != null) {
@@ -1045,20 +1043,20 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1045
1043
  });
1046
1044
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1047
1045
  };
1048
- const serializeAws_restJson1AnalysisTypes = (input, context) => {
1046
+ const se_AnalysisTypes = (input, context) => {
1049
1047
  return input
1050
1048
  .filter((e) => e != null)
1051
1049
  .map((entry) => {
1052
1050
  return entry;
1053
1051
  });
1054
1052
  };
1055
- const serializeAws_restJson1BranchDiffSourceCodeType = (input, context) => {
1053
+ const se_BranchDiffSourceCodeType = (input, context) => {
1056
1054
  return {
1057
1055
  ...(input.DestinationBranchName != null && { DestinationBranchName: input.DestinationBranchName }),
1058
1056
  ...(input.SourceBranchName != null && { SourceBranchName: input.SourceBranchName }),
1059
1057
  };
1060
1058
  };
1061
- const serializeAws_restJson1CodeArtifacts = (input, context) => {
1059
+ const se_CodeArtifacts = (input, context) => {
1062
1060
  return {
1063
1061
  ...(input.BuildArtifactsObjectKey != null && { BuildArtifactsObjectKey: input.BuildArtifactsObjectKey }),
1064
1062
  ...(input.SourceCodeArtifactsObjectKey != null && {
@@ -1066,124 +1064,108 @@ const serializeAws_restJson1CodeArtifacts = (input, context) => {
1066
1064
  }),
1067
1065
  };
1068
1066
  };
1069
- const serializeAws_restJson1CodeCommitRepository = (input, context) => {
1067
+ const se_CodeCommitRepository = (input, context) => {
1070
1068
  return {
1071
1069
  ...(input.Name != null && { Name: input.Name }),
1072
1070
  };
1073
1071
  };
1074
- const serializeAws_restJson1CodeReviewType = (input, context) => {
1072
+ const se_CodeReviewType = (input, context) => {
1075
1073
  return {
1076
- ...(input.AnalysisTypes != null && {
1077
- AnalysisTypes: serializeAws_restJson1AnalysisTypes(input.AnalysisTypes, context),
1078
- }),
1074
+ ...(input.AnalysisTypes != null && { AnalysisTypes: se_AnalysisTypes(input.AnalysisTypes, context) }),
1079
1075
  ...(input.RepositoryAnalysis != null && {
1080
- RepositoryAnalysis: serializeAws_restJson1RepositoryAnalysis(input.RepositoryAnalysis, context),
1076
+ RepositoryAnalysis: se_RepositoryAnalysis(input.RepositoryAnalysis, context),
1081
1077
  }),
1082
1078
  };
1083
1079
  };
1084
- const serializeAws_restJson1CommitDiffSourceCodeType = (input, context) => {
1080
+ const se_CommitDiffSourceCodeType = (input, context) => {
1085
1081
  return {
1086
1082
  ...(input.DestinationCommit != null && { DestinationCommit: input.DestinationCommit }),
1087
1083
  ...(input.MergeBaseCommit != null && { MergeBaseCommit: input.MergeBaseCommit }),
1088
1084
  ...(input.SourceCommit != null && { SourceCommit: input.SourceCommit }),
1089
1085
  };
1090
1086
  };
1091
- const serializeAws_restJson1EventInfo = (input, context) => {
1087
+ const se_EventInfo = (input, context) => {
1092
1088
  return {
1093
1089
  ...(input.Name != null && { Name: input.Name }),
1094
1090
  ...(input.State != null && { State: input.State }),
1095
1091
  };
1096
1092
  };
1097
- const serializeAws_restJson1KMSKeyDetails = (input, context) => {
1093
+ const se_KMSKeyDetails = (input, context) => {
1098
1094
  return {
1099
1095
  ...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
1100
1096
  ...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
1101
1097
  };
1102
1098
  };
1103
- const serializeAws_restJson1Reactions = (input, context) => {
1099
+ const se_Reactions = (input, context) => {
1104
1100
  return input
1105
1101
  .filter((e) => e != null)
1106
1102
  .map((entry) => {
1107
1103
  return entry;
1108
1104
  });
1109
1105
  };
1110
- const serializeAws_restJson1Repository = (input, context) => {
1106
+ const se_Repository = (input, context) => {
1111
1107
  return {
1112
- ...(input.Bitbucket != null && {
1113
- Bitbucket: serializeAws_restJson1ThirdPartySourceRepository(input.Bitbucket, context),
1114
- }),
1115
- ...(input.CodeCommit != null && {
1116
- CodeCommit: serializeAws_restJson1CodeCommitRepository(input.CodeCommit, context),
1117
- }),
1108
+ ...(input.Bitbucket != null && { Bitbucket: se_ThirdPartySourceRepository(input.Bitbucket, context) }),
1109
+ ...(input.CodeCommit != null && { CodeCommit: se_CodeCommitRepository(input.CodeCommit, context) }),
1118
1110
  ...(input.GitHubEnterpriseServer != null && {
1119
- GitHubEnterpriseServer: serializeAws_restJson1ThirdPartySourceRepository(input.GitHubEnterpriseServer, context),
1111
+ GitHubEnterpriseServer: se_ThirdPartySourceRepository(input.GitHubEnterpriseServer, context),
1120
1112
  }),
1121
- ...(input.S3Bucket != null && { S3Bucket: serializeAws_restJson1S3Repository(input.S3Bucket, context) }),
1113
+ ...(input.S3Bucket != null && { S3Bucket: se_S3Repository(input.S3Bucket, context) }),
1122
1114
  };
1123
1115
  };
1124
- const serializeAws_restJson1RepositoryAnalysis = (input, context) => {
1116
+ const se_RepositoryAnalysis = (input, context) => {
1125
1117
  return {
1126
1118
  ...(input.RepositoryHead != null && {
1127
- RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1128
- }),
1129
- ...(input.SourceCodeType != null && {
1130
- SourceCodeType: serializeAws_restJson1SourceCodeType(input.SourceCodeType, context),
1119
+ RepositoryHead: se_RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1131
1120
  }),
1121
+ ...(input.SourceCodeType != null && { SourceCodeType: se_SourceCodeType(input.SourceCodeType, context) }),
1132
1122
  };
1133
1123
  };
1134
- const serializeAws_restJson1RepositoryHeadSourceCodeType = (input, context) => {
1124
+ const se_RepositoryHeadSourceCodeType = (input, context) => {
1135
1125
  return {
1136
1126
  ...(input.BranchName != null && { BranchName: input.BranchName }),
1137
1127
  };
1138
1128
  };
1139
- const serializeAws_restJson1RequestMetadata = (input, context) => {
1129
+ const se_RequestMetadata = (input, context) => {
1140
1130
  return {
1141
- ...(input.EventInfo != null && { EventInfo: serializeAws_restJson1EventInfo(input.EventInfo, context) }),
1131
+ ...(input.EventInfo != null && { EventInfo: se_EventInfo(input.EventInfo, context) }),
1142
1132
  ...(input.RequestId != null && { RequestId: input.RequestId }),
1143
1133
  ...(input.Requester != null && { Requester: input.Requester }),
1144
1134
  ...(input.VendorName != null && { VendorName: input.VendorName }),
1145
1135
  };
1146
1136
  };
1147
- const serializeAws_restJson1S3BucketRepository = (input, context) => {
1137
+ const se_S3BucketRepository = (input, context) => {
1148
1138
  return {
1149
- ...(input.Details != null && { Details: serializeAws_restJson1S3RepositoryDetails(input.Details, context) }),
1139
+ ...(input.Details != null && { Details: se_S3RepositoryDetails(input.Details, context) }),
1150
1140
  ...(input.Name != null && { Name: input.Name }),
1151
1141
  };
1152
1142
  };
1153
- const serializeAws_restJson1S3Repository = (input, context) => {
1143
+ const se_S3Repository = (input, context) => {
1154
1144
  return {
1155
1145
  ...(input.BucketName != null && { BucketName: input.BucketName }),
1156
1146
  ...(input.Name != null && { Name: input.Name }),
1157
1147
  };
1158
1148
  };
1159
- const serializeAws_restJson1S3RepositoryDetails = (input, context) => {
1149
+ const se_S3RepositoryDetails = (input, context) => {
1160
1150
  return {
1161
1151
  ...(input.BucketName != null && { BucketName: input.BucketName }),
1162
- ...(input.CodeArtifacts != null && {
1163
- CodeArtifacts: serializeAws_restJson1CodeArtifacts(input.CodeArtifacts, context),
1164
- }),
1152
+ ...(input.CodeArtifacts != null && { CodeArtifacts: se_CodeArtifacts(input.CodeArtifacts, context) }),
1165
1153
  };
1166
1154
  };
1167
- const serializeAws_restJson1SourceCodeType = (input, context) => {
1155
+ const se_SourceCodeType = (input, context) => {
1168
1156
  return {
1169
- ...(input.BranchDiff != null && {
1170
- BranchDiff: serializeAws_restJson1BranchDiffSourceCodeType(input.BranchDiff, context),
1171
- }),
1172
- ...(input.CommitDiff != null && {
1173
- CommitDiff: serializeAws_restJson1CommitDiffSourceCodeType(input.CommitDiff, context),
1174
- }),
1157
+ ...(input.BranchDiff != null && { BranchDiff: se_BranchDiffSourceCodeType(input.BranchDiff, context) }),
1158
+ ...(input.CommitDiff != null && { CommitDiff: se_CommitDiffSourceCodeType(input.CommitDiff, context) }),
1175
1159
  ...(input.RepositoryHead != null && {
1176
- RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1177
- }),
1178
- ...(input.RequestMetadata != null && {
1179
- RequestMetadata: serializeAws_restJson1RequestMetadata(input.RequestMetadata, context),
1160
+ RepositoryHead: se_RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1180
1161
  }),
1162
+ ...(input.RequestMetadata != null && { RequestMetadata: se_RequestMetadata(input.RequestMetadata, context) }),
1181
1163
  ...(input.S3BucketRepository != null && {
1182
- S3BucketRepository: serializeAws_restJson1S3BucketRepository(input.S3BucketRepository, context),
1164
+ S3BucketRepository: se_S3BucketRepository(input.S3BucketRepository, context),
1183
1165
  }),
1184
1166
  };
1185
1167
  };
1186
- const serializeAws_restJson1TagMap = (input, context) => {
1168
+ const se_TagMap = (input, context) => {
1187
1169
  return Object.entries(input).reduce((acc, [key, value]) => {
1188
1170
  if (value === null) {
1189
1171
  return acc;
@@ -1192,14 +1174,14 @@ const serializeAws_restJson1TagMap = (input, context) => {
1192
1174
  return acc;
1193
1175
  }, {});
1194
1176
  };
1195
- const serializeAws_restJson1ThirdPartySourceRepository = (input, context) => {
1177
+ const se_ThirdPartySourceRepository = (input, context) => {
1196
1178
  return {
1197
1179
  ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
1198
1180
  ...(input.Name != null && { Name: input.Name }),
1199
1181
  ...(input.Owner != null && { Owner: input.Owner }),
1200
1182
  };
1201
1183
  };
1202
- const deserializeAws_restJson1AnalysisTypes = (output, context) => {
1184
+ const de_AnalysisTypes = (output, context) => {
1203
1185
  const retVal = (output || [])
1204
1186
  .filter((e) => e != null)
1205
1187
  .map((entry) => {
@@ -1210,21 +1192,21 @@ const deserializeAws_restJson1AnalysisTypes = (output, context) => {
1210
1192
  });
1211
1193
  return retVal;
1212
1194
  };
1213
- const deserializeAws_restJson1BranchDiffSourceCodeType = (output, context) => {
1195
+ const de_BranchDiffSourceCodeType = (output, context) => {
1214
1196
  return {
1215
1197
  DestinationBranchName: (0, smithy_client_1.expectString)(output.DestinationBranchName),
1216
1198
  SourceBranchName: (0, smithy_client_1.expectString)(output.SourceBranchName),
1217
1199
  };
1218
1200
  };
1219
- const deserializeAws_restJson1CodeArtifacts = (output, context) => {
1201
+ const de_CodeArtifacts = (output, context) => {
1220
1202
  return {
1221
1203
  BuildArtifactsObjectKey: (0, smithy_client_1.expectString)(output.BuildArtifactsObjectKey),
1222
1204
  SourceCodeArtifactsObjectKey: (0, smithy_client_1.expectString)(output.SourceCodeArtifactsObjectKey),
1223
1205
  };
1224
1206
  };
1225
- const deserializeAws_restJson1CodeReview = (output, context) => {
1207
+ const de_CodeReview = (output, context) => {
1226
1208
  return {
1227
- AnalysisTypes: output.AnalysisTypes != null ? deserializeAws_restJson1AnalysisTypes(output.AnalysisTypes, context) : undefined,
1209
+ AnalysisTypes: output.AnalysisTypes != null ? de_AnalysisTypes(output.AnalysisTypes, context) : undefined,
1228
1210
  AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
1229
1211
  CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
1230
1212
  ConfigFileState: (0, smithy_client_1.expectString)(output.ConfigFileState),
@@ -1234,32 +1216,30 @@ const deserializeAws_restJson1CodeReview = (output, context) => {
1234
1216
  LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1235
1217
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
1236
1218
  : undefined,
1237
- Metrics: output.Metrics != null ? deserializeAws_restJson1Metrics(output.Metrics, context) : undefined,
1219
+ Metrics: output.Metrics != null ? de_Metrics(output.Metrics, context) : undefined,
1238
1220
  Name: (0, smithy_client_1.expectString)(output.Name),
1239
1221
  Owner: (0, smithy_client_1.expectString)(output.Owner),
1240
1222
  ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
1241
1223
  PullRequestId: (0, smithy_client_1.expectString)(output.PullRequestId),
1242
1224
  RepositoryName: (0, smithy_client_1.expectString)(output.RepositoryName),
1243
- SourceCodeType: output.SourceCodeType != null
1244
- ? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
1245
- : undefined,
1225
+ SourceCodeType: output.SourceCodeType != null ? de_SourceCodeType(output.SourceCodeType, context) : undefined,
1246
1226
  State: (0, smithy_client_1.expectString)(output.State),
1247
1227
  StateReason: (0, smithy_client_1.expectString)(output.StateReason),
1248
1228
  Type: (0, smithy_client_1.expectString)(output.Type),
1249
1229
  };
1250
1230
  };
1251
- const deserializeAws_restJson1CodeReviewSummaries = (output, context) => {
1231
+ const de_CodeReviewSummaries = (output, context) => {
1252
1232
  const retVal = (output || [])
1253
1233
  .filter((e) => e != null)
1254
1234
  .map((entry) => {
1255
1235
  if (entry === null) {
1256
1236
  return null;
1257
1237
  }
1258
- return deserializeAws_restJson1CodeReviewSummary(entry, context);
1238
+ return de_CodeReviewSummary(entry, context);
1259
1239
  });
1260
1240
  return retVal;
1261
1241
  };
1262
- const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
1242
+ const de_CodeReviewSummary = (output, context) => {
1263
1243
  return {
1264
1244
  CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
1265
1245
  CreatedTimeStamp: output.CreatedTimeStamp != null
@@ -1268,55 +1248,51 @@ const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
1268
1248
  LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1269
1249
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
1270
1250
  : undefined,
1271
- MetricsSummary: output.MetricsSummary != null
1272
- ? deserializeAws_restJson1MetricsSummary(output.MetricsSummary, context)
1273
- : undefined,
1251
+ MetricsSummary: output.MetricsSummary != null ? de_MetricsSummary(output.MetricsSummary, context) : undefined,
1274
1252
  Name: (0, smithy_client_1.expectString)(output.Name),
1275
1253
  Owner: (0, smithy_client_1.expectString)(output.Owner),
1276
1254
  ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
1277
1255
  PullRequestId: (0, smithy_client_1.expectString)(output.PullRequestId),
1278
1256
  RepositoryName: (0, smithy_client_1.expectString)(output.RepositoryName),
1279
- SourceCodeType: output.SourceCodeType != null
1280
- ? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
1281
- : undefined,
1257
+ SourceCodeType: output.SourceCodeType != null ? de_SourceCodeType(output.SourceCodeType, context) : undefined,
1282
1258
  State: (0, smithy_client_1.expectString)(output.State),
1283
1259
  Type: (0, smithy_client_1.expectString)(output.Type),
1284
1260
  };
1285
1261
  };
1286
- const deserializeAws_restJson1CommitDiffSourceCodeType = (output, context) => {
1262
+ const de_CommitDiffSourceCodeType = (output, context) => {
1287
1263
  return {
1288
1264
  DestinationCommit: (0, smithy_client_1.expectString)(output.DestinationCommit),
1289
1265
  MergeBaseCommit: (0, smithy_client_1.expectString)(output.MergeBaseCommit),
1290
1266
  SourceCommit: (0, smithy_client_1.expectString)(output.SourceCommit),
1291
1267
  };
1292
1268
  };
1293
- const deserializeAws_restJson1EventInfo = (output, context) => {
1269
+ const de_EventInfo = (output, context) => {
1294
1270
  return {
1295
1271
  Name: (0, smithy_client_1.expectString)(output.Name),
1296
1272
  State: (0, smithy_client_1.expectString)(output.State),
1297
1273
  };
1298
1274
  };
1299
- const deserializeAws_restJson1KMSKeyDetails = (output, context) => {
1275
+ const de_KMSKeyDetails = (output, context) => {
1300
1276
  return {
1301
1277
  EncryptionOption: (0, smithy_client_1.expectString)(output.EncryptionOption),
1302
1278
  KMSKeyId: (0, smithy_client_1.expectString)(output.KMSKeyId),
1303
1279
  };
1304
1280
  };
1305
- const deserializeAws_restJson1Metrics = (output, context) => {
1281
+ const de_Metrics = (output, context) => {
1306
1282
  return {
1307
1283
  FindingsCount: (0, smithy_client_1.expectLong)(output.FindingsCount),
1308
1284
  MeteredLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.MeteredLinesOfCodeCount),
1309
1285
  SuppressedLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.SuppressedLinesOfCodeCount),
1310
1286
  };
1311
1287
  };
1312
- const deserializeAws_restJson1MetricsSummary = (output, context) => {
1288
+ const de_MetricsSummary = (output, context) => {
1313
1289
  return {
1314
1290
  FindingsCount: (0, smithy_client_1.expectLong)(output.FindingsCount),
1315
1291
  MeteredLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.MeteredLinesOfCodeCount),
1316
1292
  SuppressedLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.SuppressedLinesOfCodeCount),
1317
1293
  };
1318
1294
  };
1319
- const deserializeAws_restJson1Reactions = (output, context) => {
1295
+ const de_Reactions = (output, context) => {
1320
1296
  const retVal = (output || [])
1321
1297
  .filter((e) => e != null)
1322
1298
  .map((entry) => {
@@ -1327,7 +1303,7 @@ const deserializeAws_restJson1Reactions = (output, context) => {
1327
1303
  });
1328
1304
  return retVal;
1329
1305
  };
1330
- const deserializeAws_restJson1RecommendationFeedback = (output, context) => {
1306
+ const de_RecommendationFeedback = (output, context) => {
1331
1307
  return {
1332
1308
  CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
1333
1309
  CreatedTimeStamp: output.CreatedTimeStamp != null
@@ -1336,53 +1312,53 @@ const deserializeAws_restJson1RecommendationFeedback = (output, context) => {
1336
1312
  LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1337
1313
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
1338
1314
  : undefined,
1339
- Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
1315
+ Reactions: output.Reactions != null ? de_Reactions(output.Reactions, context) : undefined,
1340
1316
  RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
1341
1317
  UserId: (0, smithy_client_1.expectString)(output.UserId),
1342
1318
  };
1343
1319
  };
1344
- const deserializeAws_restJson1RecommendationFeedbackSummaries = (output, context) => {
1320
+ const de_RecommendationFeedbackSummaries = (output, context) => {
1345
1321
  const retVal = (output || [])
1346
1322
  .filter((e) => e != null)
1347
1323
  .map((entry) => {
1348
1324
  if (entry === null) {
1349
1325
  return null;
1350
1326
  }
1351
- return deserializeAws_restJson1RecommendationFeedbackSummary(entry, context);
1327
+ return de_RecommendationFeedbackSummary(entry, context);
1352
1328
  });
1353
1329
  return retVal;
1354
1330
  };
1355
- const deserializeAws_restJson1RecommendationFeedbackSummary = (output, context) => {
1331
+ const de_RecommendationFeedbackSummary = (output, context) => {
1356
1332
  return {
1357
- Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
1333
+ Reactions: output.Reactions != null ? de_Reactions(output.Reactions, context) : undefined,
1358
1334
  RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
1359
1335
  UserId: (0, smithy_client_1.expectString)(output.UserId),
1360
1336
  };
1361
1337
  };
1362
- const deserializeAws_restJson1RecommendationSummaries = (output, context) => {
1338
+ const de_RecommendationSummaries = (output, context) => {
1363
1339
  const retVal = (output || [])
1364
1340
  .filter((e) => e != null)
1365
1341
  .map((entry) => {
1366
1342
  if (entry === null) {
1367
1343
  return null;
1368
1344
  }
1369
- return deserializeAws_restJson1RecommendationSummary(entry, context);
1345
+ return de_RecommendationSummary(entry, context);
1370
1346
  });
1371
1347
  return retVal;
1372
1348
  };
1373
- const deserializeAws_restJson1RecommendationSummary = (output, context) => {
1349
+ const de_RecommendationSummary = (output, context) => {
1374
1350
  return {
1375
1351
  Description: (0, smithy_client_1.expectString)(output.Description),
1376
1352
  EndLine: (0, smithy_client_1.expectInt32)(output.EndLine),
1377
1353
  FilePath: (0, smithy_client_1.expectString)(output.FilePath),
1378
1354
  RecommendationCategory: (0, smithy_client_1.expectString)(output.RecommendationCategory),
1379
1355
  RecommendationId: (0, smithy_client_1.expectString)(output.RecommendationId),
1380
- RuleMetadata: output.RuleMetadata != null ? deserializeAws_restJson1RuleMetadata(output.RuleMetadata, context) : undefined,
1356
+ RuleMetadata: output.RuleMetadata != null ? de_RuleMetadata(output.RuleMetadata, context) : undefined,
1381
1357
  Severity: (0, smithy_client_1.expectString)(output.Severity),
1382
1358
  StartLine: (0, smithy_client_1.expectInt32)(output.StartLine),
1383
1359
  };
1384
1360
  };
1385
- const deserializeAws_restJson1RepositoryAssociation = (output, context) => {
1361
+ const de_RepositoryAssociation = (output, context) => {
1386
1362
  return {
1387
1363
  AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
1388
1364
  AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
@@ -1390,32 +1366,30 @@ const deserializeAws_restJson1RepositoryAssociation = (output, context) => {
1390
1366
  CreatedTimeStamp: output.CreatedTimeStamp != null
1391
1367
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
1392
1368
  : undefined,
1393
- KMSKeyDetails: output.KMSKeyDetails != null ? deserializeAws_restJson1KMSKeyDetails(output.KMSKeyDetails, context) : undefined,
1369
+ KMSKeyDetails: output.KMSKeyDetails != null ? de_KMSKeyDetails(output.KMSKeyDetails, context) : undefined,
1394
1370
  LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1395
1371
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimeStamp)))
1396
1372
  : undefined,
1397
1373
  Name: (0, smithy_client_1.expectString)(output.Name),
1398
1374
  Owner: (0, smithy_client_1.expectString)(output.Owner),
1399
1375
  ProviderType: (0, smithy_client_1.expectString)(output.ProviderType),
1400
- S3RepositoryDetails: output.S3RepositoryDetails != null
1401
- ? deserializeAws_restJson1S3RepositoryDetails(output.S3RepositoryDetails, context)
1402
- : undefined,
1376
+ S3RepositoryDetails: output.S3RepositoryDetails != null ? de_S3RepositoryDetails(output.S3RepositoryDetails, context) : undefined,
1403
1377
  State: (0, smithy_client_1.expectString)(output.State),
1404
1378
  StateReason: (0, smithy_client_1.expectString)(output.StateReason),
1405
1379
  };
1406
1380
  };
1407
- const deserializeAws_restJson1RepositoryAssociationSummaries = (output, context) => {
1381
+ const de_RepositoryAssociationSummaries = (output, context) => {
1408
1382
  const retVal = (output || [])
1409
1383
  .filter((e) => e != null)
1410
1384
  .map((entry) => {
1411
1385
  if (entry === null) {
1412
1386
  return null;
1413
1387
  }
1414
- return deserializeAws_restJson1RepositoryAssociationSummary(entry, context);
1388
+ return de_RepositoryAssociationSummary(entry, context);
1415
1389
  });
1416
1390
  return retVal;
1417
1391
  };
1418
- const deserializeAws_restJson1RepositoryAssociationSummary = (output, context) => {
1392
+ const de_RepositoryAssociationSummary = (output, context) => {
1419
1393
  return {
1420
1394
  AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
1421
1395
  AssociationId: (0, smithy_client_1.expectString)(output.AssociationId),
@@ -1429,29 +1403,29 @@ const deserializeAws_restJson1RepositoryAssociationSummary = (output, context) =
1429
1403
  State: (0, smithy_client_1.expectString)(output.State),
1430
1404
  };
1431
1405
  };
1432
- const deserializeAws_restJson1RepositoryHeadSourceCodeType = (output, context) => {
1406
+ const de_RepositoryHeadSourceCodeType = (output, context) => {
1433
1407
  return {
1434
1408
  BranchName: (0, smithy_client_1.expectString)(output.BranchName),
1435
1409
  };
1436
1410
  };
1437
- const deserializeAws_restJson1RequestMetadata = (output, context) => {
1411
+ const de_RequestMetadata = (output, context) => {
1438
1412
  return {
1439
- EventInfo: output.EventInfo != null ? deserializeAws_restJson1EventInfo(output.EventInfo, context) : undefined,
1413
+ EventInfo: output.EventInfo != null ? de_EventInfo(output.EventInfo, context) : undefined,
1440
1414
  RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1441
1415
  Requester: (0, smithy_client_1.expectString)(output.Requester),
1442
1416
  VendorName: (0, smithy_client_1.expectString)(output.VendorName),
1443
1417
  };
1444
1418
  };
1445
- const deserializeAws_restJson1RuleMetadata = (output, context) => {
1419
+ const de_RuleMetadata = (output, context) => {
1446
1420
  return {
1447
1421
  LongDescription: (0, smithy_client_1.expectString)(output.LongDescription),
1448
1422
  RuleId: (0, smithy_client_1.expectString)(output.RuleId),
1449
1423
  RuleName: (0, smithy_client_1.expectString)(output.RuleName),
1450
- RuleTags: output.RuleTags != null ? deserializeAws_restJson1RuleTags(output.RuleTags, context) : undefined,
1424
+ RuleTags: output.RuleTags != null ? de_RuleTags(output.RuleTags, context) : undefined,
1451
1425
  ShortDescription: (0, smithy_client_1.expectString)(output.ShortDescription),
1452
1426
  };
1453
1427
  };
1454
- const deserializeAws_restJson1RuleTags = (output, context) => {
1428
+ const de_RuleTags = (output, context) => {
1455
1429
  const retVal = (output || [])
1456
1430
  .filter((e) => e != null)
1457
1431
  .map((entry) => {
@@ -1462,38 +1436,28 @@ const deserializeAws_restJson1RuleTags = (output, context) => {
1462
1436
  });
1463
1437
  return retVal;
1464
1438
  };
1465
- const deserializeAws_restJson1S3BucketRepository = (output, context) => {
1439
+ const de_S3BucketRepository = (output, context) => {
1466
1440
  return {
1467
- Details: output.Details != null ? deserializeAws_restJson1S3RepositoryDetails(output.Details, context) : undefined,
1441
+ Details: output.Details != null ? de_S3RepositoryDetails(output.Details, context) : undefined,
1468
1442
  Name: (0, smithy_client_1.expectString)(output.Name),
1469
1443
  };
1470
1444
  };
1471
- const deserializeAws_restJson1S3RepositoryDetails = (output, context) => {
1445
+ const de_S3RepositoryDetails = (output, context) => {
1472
1446
  return {
1473
1447
  BucketName: (0, smithy_client_1.expectString)(output.BucketName),
1474
- CodeArtifacts: output.CodeArtifacts != null ? deserializeAws_restJson1CodeArtifacts(output.CodeArtifacts, context) : undefined,
1448
+ CodeArtifacts: output.CodeArtifacts != null ? de_CodeArtifacts(output.CodeArtifacts, context) : undefined,
1475
1449
  };
1476
1450
  };
1477
- const deserializeAws_restJson1SourceCodeType = (output, context) => {
1451
+ const de_SourceCodeType = (output, context) => {
1478
1452
  return {
1479
- BranchDiff: output.BranchDiff != null
1480
- ? deserializeAws_restJson1BranchDiffSourceCodeType(output.BranchDiff, context)
1481
- : undefined,
1482
- CommitDiff: output.CommitDiff != null
1483
- ? deserializeAws_restJson1CommitDiffSourceCodeType(output.CommitDiff, context)
1484
- : undefined,
1485
- RepositoryHead: output.RepositoryHead != null
1486
- ? deserializeAws_restJson1RepositoryHeadSourceCodeType(output.RepositoryHead, context)
1487
- : undefined,
1488
- RequestMetadata: output.RequestMetadata != null
1489
- ? deserializeAws_restJson1RequestMetadata(output.RequestMetadata, context)
1490
- : undefined,
1491
- S3BucketRepository: output.S3BucketRepository != null
1492
- ? deserializeAws_restJson1S3BucketRepository(output.S3BucketRepository, context)
1493
- : undefined,
1453
+ BranchDiff: output.BranchDiff != null ? de_BranchDiffSourceCodeType(output.BranchDiff, context) : undefined,
1454
+ CommitDiff: output.CommitDiff != null ? de_CommitDiffSourceCodeType(output.CommitDiff, context) : undefined,
1455
+ RepositoryHead: output.RepositoryHead != null ? de_RepositoryHeadSourceCodeType(output.RepositoryHead, context) : undefined,
1456
+ RequestMetadata: output.RequestMetadata != null ? de_RequestMetadata(output.RequestMetadata, context) : undefined,
1457
+ S3BucketRepository: output.S3BucketRepository != null ? de_S3BucketRepository(output.S3BucketRepository, context) : undefined,
1494
1458
  };
1495
1459
  };
1496
- const deserializeAws_restJson1TagMap = (output, context) => {
1460
+ const de_TagMap = (output, context) => {
1497
1461
  return Object.entries(output).reduce((acc, [key, value]) => {
1498
1462
  if (value === null) {
1499
1463
  return acc;