@aws-sdk/client-codeguru-reviewer 3.306.0 → 3.310.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 +36 -36
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectInt32 as
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { CodeGuruReviewerServiceException as __BaseException } from "../models/CodeGuruReviewerServiceException";
5
5
  import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const serializeAws_restJson1AssociateRepositoryCommand = async (input, context) => {
6
+ export const se_AssociateRepositoryCommand = async (input, context) => {
7
7
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
8
  const headers = {
9
9
  "content-type": "application/json",
@@ -12,11 +12,9 @@ export const serializeAws_restJson1AssociateRepositoryCommand = async (input, co
12
12
  let body;
13
13
  body = JSON.stringify({
14
14
  ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
15
- ...(input.KMSKeyDetails != null && {
16
- KMSKeyDetails: serializeAws_restJson1KMSKeyDetails(input.KMSKeyDetails, context),
17
- }),
18
- ...(input.Repository != null && { Repository: serializeAws_restJson1Repository(input.Repository, context) }),
19
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
15
+ ...(input.KMSKeyDetails != null && { KMSKeyDetails: se_KMSKeyDetails(input.KMSKeyDetails, context) }),
16
+ ...(input.Repository != null && { Repository: se_Repository(input.Repository, context) }),
17
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
20
18
  });
21
19
  return new __HttpRequest({
22
20
  protocol,
@@ -28,7 +26,7 @@ export const serializeAws_restJson1AssociateRepositoryCommand = async (input, co
28
26
  body,
29
27
  });
30
28
  };
31
- export const serializeAws_restJson1CreateCodeReviewCommand = async (input, context) => {
29
+ export const se_CreateCodeReviewCommand = async (input, context) => {
32
30
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
33
31
  const headers = {
34
32
  "content-type": "application/json",
@@ -39,7 +37,7 @@ export const serializeAws_restJson1CreateCodeReviewCommand = async (input, conte
39
37
  ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
40
38
  ...(input.Name != null && { Name: input.Name }),
41
39
  ...(input.RepositoryAssociationArn != null && { RepositoryAssociationArn: input.RepositoryAssociationArn }),
42
- ...(input.Type != null && { Type: serializeAws_restJson1CodeReviewType(input.Type, context) }),
40
+ ...(input.Type != null && { Type: se_CodeReviewType(input.Type, context) }),
43
41
  });
44
42
  return new __HttpRequest({
45
43
  protocol,
@@ -51,7 +49,7 @@ export const serializeAws_restJson1CreateCodeReviewCommand = async (input, conte
51
49
  body,
52
50
  });
53
51
  };
54
- export const serializeAws_restJson1DescribeCodeReviewCommand = async (input, context) => {
52
+ export const se_DescribeCodeReviewCommand = async (input, context) => {
55
53
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
56
54
  const headers = {};
57
55
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews/{CodeReviewArn}";
@@ -67,7 +65,7 @@ export const serializeAws_restJson1DescribeCodeReviewCommand = async (input, con
67
65
  body,
68
66
  });
69
67
  };
70
- export const serializeAws_restJson1DescribeRecommendationFeedbackCommand = async (input, context) => {
68
+ export const se_DescribeRecommendationFeedbackCommand = async (input, context) => {
71
69
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
72
70
  const headers = {};
73
71
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/feedback/{CodeReviewArn}";
@@ -88,7 +86,7 @@ export const serializeAws_restJson1DescribeRecommendationFeedbackCommand = async
88
86
  body,
89
87
  });
90
88
  };
91
- export const serializeAws_restJson1DescribeRepositoryAssociationCommand = async (input, context) => {
89
+ export const se_DescribeRepositoryAssociationCommand = async (input, context) => {
92
90
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
93
91
  const headers = {};
94
92
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations/{AssociationArn}";
@@ -104,7 +102,7 @@ export const serializeAws_restJson1DescribeRepositoryAssociationCommand = async
104
102
  body,
105
103
  });
106
104
  };
107
- export const serializeAws_restJson1DisassociateRepositoryCommand = async (input, context) => {
105
+ export const se_DisassociateRepositoryCommand = async (input, context) => {
108
106
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
109
107
  const headers = {};
110
108
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations/{AssociationArn}";
@@ -120,7 +118,7 @@ export const serializeAws_restJson1DisassociateRepositoryCommand = async (input,
120
118
  body,
121
119
  });
122
120
  };
123
- export const serializeAws_restJson1ListCodeReviewsCommand = async (input, context) => {
121
+ export const se_ListCodeReviewsCommand = async (input, context) => {
124
122
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
125
123
  const headers = {};
126
124
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/codereviews";
@@ -150,7 +148,7 @@ export const serializeAws_restJson1ListCodeReviewsCommand = async (input, contex
150
148
  body,
151
149
  });
152
150
  };
153
- export const serializeAws_restJson1ListRecommendationFeedbackCommand = async (input, context) => {
151
+ export const se_ListRecommendationFeedbackCommand = async (input, context) => {
154
152
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
155
153
  const headers = {};
156
154
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -177,7 +175,7 @@ export const serializeAws_restJson1ListRecommendationFeedbackCommand = async (in
177
175
  body,
178
176
  });
179
177
  };
180
- export const serializeAws_restJson1ListRecommendationsCommand = async (input, context) => {
178
+ export const se_ListRecommendationsCommand = async (input, context) => {
181
179
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
182
180
  const headers = {};
183
181
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -199,7 +197,7 @@ export const serializeAws_restJson1ListRecommendationsCommand = async (input, co
199
197
  body,
200
198
  });
201
199
  };
202
- export const serializeAws_restJson1ListRepositoryAssociationsCommand = async (input, context) => {
200
+ export const se_ListRepositoryAssociationsCommand = async (input, context) => {
203
201
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
204
202
  const headers = {};
205
203
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/associations";
@@ -226,7 +224,7 @@ export const serializeAws_restJson1ListRepositoryAssociationsCommand = async (in
226
224
  body,
227
225
  });
228
226
  };
229
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
227
+ export const se_ListTagsForResourceCommand = async (input, context) => {
230
228
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
229
  const headers = {};
232
230
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -242,7 +240,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
242
240
  body,
243
241
  });
244
242
  };
245
- export const serializeAws_restJson1PutRecommendationFeedbackCommand = async (input, context) => {
243
+ export const se_PutRecommendationFeedbackCommand = async (input, context) => {
246
244
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
247
245
  const headers = {
248
246
  "content-type": "application/json",
@@ -251,7 +249,7 @@ export const serializeAws_restJson1PutRecommendationFeedbackCommand = async (inp
251
249
  let body;
252
250
  body = JSON.stringify({
253
251
  ...(input.CodeReviewArn != null && { CodeReviewArn: input.CodeReviewArn }),
254
- ...(input.Reactions != null && { Reactions: serializeAws_restJson1Reactions(input.Reactions, context) }),
252
+ ...(input.Reactions != null && { Reactions: se_Reactions(input.Reactions, context) }),
255
253
  ...(input.RecommendationId != null && { RecommendationId: input.RecommendationId }),
256
254
  });
257
255
  return new __HttpRequest({
@@ -264,7 +262,7 @@ export const serializeAws_restJson1PutRecommendationFeedbackCommand = async (inp
264
262
  body,
265
263
  });
266
264
  };
267
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
265
+ export const se_TagResourceCommand = async (input, context) => {
268
266
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
269
267
  const headers = {
270
268
  "content-type": "application/json",
@@ -273,7 +271,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
273
271
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
274
272
  let body;
275
273
  body = JSON.stringify({
276
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
274
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
277
275
  });
278
276
  return new __HttpRequest({
279
277
  protocol,
@@ -285,7 +283,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
285
283
  body,
286
284
  });
287
285
  };
288
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
286
+ export const se_UntagResourceCommand = async (input, context) => {
289
287
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
290
288
  const headers = {};
291
289
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
@@ -308,23 +306,23 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
308
306
  body,
309
307
  });
310
308
  };
311
- export const deserializeAws_restJson1AssociateRepositoryCommand = async (output, context) => {
309
+ export const de_AssociateRepositoryCommand = async (output, context) => {
312
310
  if (output.statusCode !== 200 && output.statusCode >= 300) {
313
- return deserializeAws_restJson1AssociateRepositoryCommandError(output, context);
311
+ return de_AssociateRepositoryCommandError(output, context);
314
312
  }
315
313
  const contents = map({
316
314
  $metadata: deserializeMetadata(output),
317
315
  });
318
316
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
319
317
  if (data.RepositoryAssociation != null) {
320
- contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
318
+ contents.RepositoryAssociation = de_RepositoryAssociation(data.RepositoryAssociation, context);
321
319
  }
322
320
  if (data.Tags != null) {
323
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
321
+ contents.Tags = de_TagMap(data.Tags, context);
324
322
  }
325
323
  return contents;
326
324
  };
327
- const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, context) => {
325
+ const de_AssociateRepositoryCommandError = async (output, context) => {
328
326
  const parsedOutput = {
329
327
  ...output,
330
328
  body: await parseErrorBody(output.body, context),
@@ -333,19 +331,19 @@ const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, c
333
331
  switch (errorCode) {
334
332
  case "AccessDeniedException":
335
333
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
336
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
334
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
337
335
  case "ConflictException":
338
336
  case "com.amazonaws.codegurureviewer#ConflictException":
339
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
337
+ throw await de_ConflictExceptionRes(parsedOutput, context);
340
338
  case "InternalServerException":
341
339
  case "com.amazonaws.codegurureviewer#InternalServerException":
342
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
340
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
343
341
  case "ThrottlingException":
344
342
  case "com.amazonaws.codegurureviewer#ThrottlingException":
345
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
343
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
346
344
  case "ValidationException":
347
345
  case "com.amazonaws.codegurureviewer#ValidationException":
348
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
346
+ throw await de_ValidationExceptionRes(parsedOutput, context);
349
347
  default:
350
348
  const parsedBody = parsedOutput.body;
351
349
  throwDefaultError({
@@ -356,20 +354,20 @@ const deserializeAws_restJson1AssociateRepositoryCommandError = async (output, c
356
354
  });
357
355
  }
358
356
  };
359
- export const deserializeAws_restJson1CreateCodeReviewCommand = async (output, context) => {
357
+ export const de_CreateCodeReviewCommand = async (output, context) => {
360
358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
361
- return deserializeAws_restJson1CreateCodeReviewCommandError(output, context);
359
+ return de_CreateCodeReviewCommandError(output, context);
362
360
  }
363
361
  const contents = map({
364
362
  $metadata: deserializeMetadata(output),
365
363
  });
366
364
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
367
365
  if (data.CodeReview != null) {
368
- contents.CodeReview = deserializeAws_restJson1CodeReview(data.CodeReview, context);
366
+ contents.CodeReview = de_CodeReview(data.CodeReview, context);
369
367
  }
370
368
  return contents;
371
369
  };
372
- const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, context) => {
370
+ const de_CreateCodeReviewCommandError = async (output, context) => {
373
371
  const parsedOutput = {
374
372
  ...output,
375
373
  body: await parseErrorBody(output.body, context),
@@ -378,22 +376,22 @@ const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, cont
378
376
  switch (errorCode) {
379
377
  case "AccessDeniedException":
380
378
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
381
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
379
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
382
380
  case "ConflictException":
383
381
  case "com.amazonaws.codegurureviewer#ConflictException":
384
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
382
+ throw await de_ConflictExceptionRes(parsedOutput, context);
385
383
  case "InternalServerException":
386
384
  case "com.amazonaws.codegurureviewer#InternalServerException":
387
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
385
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
388
386
  case "ResourceNotFoundException":
389
387
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
390
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
388
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
391
389
  case "ThrottlingException":
392
390
  case "com.amazonaws.codegurureviewer#ThrottlingException":
393
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
391
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
394
392
  case "ValidationException":
395
393
  case "com.amazonaws.codegurureviewer#ValidationException":
396
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
394
+ throw await de_ValidationExceptionRes(parsedOutput, context);
397
395
  default:
398
396
  const parsedBody = parsedOutput.body;
399
397
  throwDefaultError({
@@ -404,20 +402,20 @@ const deserializeAws_restJson1CreateCodeReviewCommandError = async (output, cont
404
402
  });
405
403
  }
406
404
  };
407
- export const deserializeAws_restJson1DescribeCodeReviewCommand = async (output, context) => {
405
+ export const de_DescribeCodeReviewCommand = async (output, context) => {
408
406
  if (output.statusCode !== 200 && output.statusCode >= 300) {
409
- return deserializeAws_restJson1DescribeCodeReviewCommandError(output, context);
407
+ return de_DescribeCodeReviewCommandError(output, context);
410
408
  }
411
409
  const contents = map({
412
410
  $metadata: deserializeMetadata(output),
413
411
  });
414
412
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
415
413
  if (data.CodeReview != null) {
416
- contents.CodeReview = deserializeAws_restJson1CodeReview(data.CodeReview, context);
414
+ contents.CodeReview = de_CodeReview(data.CodeReview, context);
417
415
  }
418
416
  return contents;
419
417
  };
420
- const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, context) => {
418
+ const de_DescribeCodeReviewCommandError = async (output, context) => {
421
419
  const parsedOutput = {
422
420
  ...output,
423
421
  body: await parseErrorBody(output.body, context),
@@ -426,19 +424,19 @@ const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, co
426
424
  switch (errorCode) {
427
425
  case "AccessDeniedException":
428
426
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
429
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
427
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
430
428
  case "InternalServerException":
431
429
  case "com.amazonaws.codegurureviewer#InternalServerException":
432
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
430
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
433
431
  case "ResourceNotFoundException":
434
432
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
435
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
433
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
436
434
  case "ThrottlingException":
437
435
  case "com.amazonaws.codegurureviewer#ThrottlingException":
438
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
436
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
439
437
  case "ValidationException":
440
438
  case "com.amazonaws.codegurureviewer#ValidationException":
441
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
439
+ throw await de_ValidationExceptionRes(parsedOutput, context);
442
440
  default:
443
441
  const parsedBody = parsedOutput.body;
444
442
  throwDefaultError({
@@ -449,20 +447,20 @@ const deserializeAws_restJson1DescribeCodeReviewCommandError = async (output, co
449
447
  });
450
448
  }
451
449
  };
452
- export const deserializeAws_restJson1DescribeRecommendationFeedbackCommand = async (output, context) => {
450
+ export const de_DescribeRecommendationFeedbackCommand = async (output, context) => {
453
451
  if (output.statusCode !== 200 && output.statusCode >= 300) {
454
- return deserializeAws_restJson1DescribeRecommendationFeedbackCommandError(output, context);
452
+ return de_DescribeRecommendationFeedbackCommandError(output, context);
455
453
  }
456
454
  const contents = map({
457
455
  $metadata: deserializeMetadata(output),
458
456
  });
459
457
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
460
458
  if (data.RecommendationFeedback != null) {
461
- contents.RecommendationFeedback = deserializeAws_restJson1RecommendationFeedback(data.RecommendationFeedback, context);
459
+ contents.RecommendationFeedback = de_RecommendationFeedback(data.RecommendationFeedback, context);
462
460
  }
463
461
  return contents;
464
462
  };
465
- const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async (output, context) => {
463
+ const de_DescribeRecommendationFeedbackCommandError = async (output, context) => {
466
464
  const parsedOutput = {
467
465
  ...output,
468
466
  body: await parseErrorBody(output.body, context),
@@ -471,19 +469,19 @@ const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async
471
469
  switch (errorCode) {
472
470
  case "AccessDeniedException":
473
471
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
474
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
472
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
475
473
  case "InternalServerException":
476
474
  case "com.amazonaws.codegurureviewer#InternalServerException":
477
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
475
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
478
476
  case "ResourceNotFoundException":
479
477
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
480
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
478
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
481
479
  case "ThrottlingException":
482
480
  case "com.amazonaws.codegurureviewer#ThrottlingException":
483
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
481
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
484
482
  case "ValidationException":
485
483
  case "com.amazonaws.codegurureviewer#ValidationException":
486
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
484
+ throw await de_ValidationExceptionRes(parsedOutput, context);
487
485
  default:
488
486
  const parsedBody = parsedOutput.body;
489
487
  throwDefaultError({
@@ -494,23 +492,23 @@ const deserializeAws_restJson1DescribeRecommendationFeedbackCommandError = async
494
492
  });
495
493
  }
496
494
  };
497
- export const deserializeAws_restJson1DescribeRepositoryAssociationCommand = async (output, context) => {
495
+ export const de_DescribeRepositoryAssociationCommand = async (output, context) => {
498
496
  if (output.statusCode !== 200 && output.statusCode >= 300) {
499
- return deserializeAws_restJson1DescribeRepositoryAssociationCommandError(output, context);
497
+ return de_DescribeRepositoryAssociationCommandError(output, context);
500
498
  }
501
499
  const contents = map({
502
500
  $metadata: deserializeMetadata(output),
503
501
  });
504
502
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
505
503
  if (data.RepositoryAssociation != null) {
506
- contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
504
+ contents.RepositoryAssociation = de_RepositoryAssociation(data.RepositoryAssociation, context);
507
505
  }
508
506
  if (data.Tags != null) {
509
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
507
+ contents.Tags = de_TagMap(data.Tags, context);
510
508
  }
511
509
  return contents;
512
510
  };
513
- const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async (output, context) => {
511
+ const de_DescribeRepositoryAssociationCommandError = async (output, context) => {
514
512
  const parsedOutput = {
515
513
  ...output,
516
514
  body: await parseErrorBody(output.body, context),
@@ -519,19 +517,19 @@ const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async
519
517
  switch (errorCode) {
520
518
  case "AccessDeniedException":
521
519
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
522
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
520
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
523
521
  case "InternalServerException":
524
522
  case "com.amazonaws.codegurureviewer#InternalServerException":
525
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
523
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
526
524
  case "NotFoundException":
527
525
  case "com.amazonaws.codegurureviewer#NotFoundException":
528
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
526
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
529
527
  case "ThrottlingException":
530
528
  case "com.amazonaws.codegurureviewer#ThrottlingException":
531
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
529
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
532
530
  case "ValidationException":
533
531
  case "com.amazonaws.codegurureviewer#ValidationException":
534
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
532
+ throw await de_ValidationExceptionRes(parsedOutput, context);
535
533
  default:
536
534
  const parsedBody = parsedOutput.body;
537
535
  throwDefaultError({
@@ -542,23 +540,23 @@ const deserializeAws_restJson1DescribeRepositoryAssociationCommandError = async
542
540
  });
543
541
  }
544
542
  };
545
- export const deserializeAws_restJson1DisassociateRepositoryCommand = async (output, context) => {
543
+ export const de_DisassociateRepositoryCommand = async (output, context) => {
546
544
  if (output.statusCode !== 200 && output.statusCode >= 300) {
547
- return deserializeAws_restJson1DisassociateRepositoryCommandError(output, context);
545
+ return de_DisassociateRepositoryCommandError(output, context);
548
546
  }
549
547
  const contents = map({
550
548
  $metadata: deserializeMetadata(output),
551
549
  });
552
550
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
553
551
  if (data.RepositoryAssociation != null) {
554
- contents.RepositoryAssociation = deserializeAws_restJson1RepositoryAssociation(data.RepositoryAssociation, context);
552
+ contents.RepositoryAssociation = de_RepositoryAssociation(data.RepositoryAssociation, context);
555
553
  }
556
554
  if (data.Tags != null) {
557
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
555
+ contents.Tags = de_TagMap(data.Tags, context);
558
556
  }
559
557
  return contents;
560
558
  };
561
- const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output, context) => {
559
+ const de_DisassociateRepositoryCommandError = async (output, context) => {
562
560
  const parsedOutput = {
563
561
  ...output,
564
562
  body: await parseErrorBody(output.body, context),
@@ -567,22 +565,22 @@ const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output
567
565
  switch (errorCode) {
568
566
  case "AccessDeniedException":
569
567
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
570
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
568
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
571
569
  case "ConflictException":
572
570
  case "com.amazonaws.codegurureviewer#ConflictException":
573
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
571
+ throw await de_ConflictExceptionRes(parsedOutput, context);
574
572
  case "InternalServerException":
575
573
  case "com.amazonaws.codegurureviewer#InternalServerException":
576
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
574
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
577
575
  case "NotFoundException":
578
576
  case "com.amazonaws.codegurureviewer#NotFoundException":
579
- throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
577
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
580
578
  case "ThrottlingException":
581
579
  case "com.amazonaws.codegurureviewer#ThrottlingException":
582
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
580
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
583
581
  case "ValidationException":
584
582
  case "com.amazonaws.codegurureviewer#ValidationException":
585
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
583
+ throw await de_ValidationExceptionRes(parsedOutput, context);
586
584
  default:
587
585
  const parsedBody = parsedOutput.body;
588
586
  throwDefaultError({
@@ -593,23 +591,23 @@ const deserializeAws_restJson1DisassociateRepositoryCommandError = async (output
593
591
  });
594
592
  }
595
593
  };
596
- export const deserializeAws_restJson1ListCodeReviewsCommand = async (output, context) => {
594
+ export const de_ListCodeReviewsCommand = async (output, context) => {
597
595
  if (output.statusCode !== 200 && output.statusCode >= 300) {
598
- return deserializeAws_restJson1ListCodeReviewsCommandError(output, context);
596
+ return de_ListCodeReviewsCommandError(output, context);
599
597
  }
600
598
  const contents = map({
601
599
  $metadata: deserializeMetadata(output),
602
600
  });
603
601
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
604
602
  if (data.CodeReviewSummaries != null) {
605
- contents.CodeReviewSummaries = deserializeAws_restJson1CodeReviewSummaries(data.CodeReviewSummaries, context);
603
+ contents.CodeReviewSummaries = de_CodeReviewSummaries(data.CodeReviewSummaries, context);
606
604
  }
607
605
  if (data.NextToken != null) {
608
606
  contents.NextToken = __expectString(data.NextToken);
609
607
  }
610
608
  return contents;
611
609
  };
612
- const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, context) => {
610
+ const de_ListCodeReviewsCommandError = async (output, context) => {
613
611
  const parsedOutput = {
614
612
  ...output,
615
613
  body: await parseErrorBody(output.body, context),
@@ -618,16 +616,16 @@ const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, conte
618
616
  switch (errorCode) {
619
617
  case "AccessDeniedException":
620
618
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
621
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
619
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
622
620
  case "InternalServerException":
623
621
  case "com.amazonaws.codegurureviewer#InternalServerException":
624
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
622
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
625
623
  case "ThrottlingException":
626
624
  case "com.amazonaws.codegurureviewer#ThrottlingException":
627
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
625
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
628
626
  case "ValidationException":
629
627
  case "com.amazonaws.codegurureviewer#ValidationException":
630
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
628
+ throw await de_ValidationExceptionRes(parsedOutput, context);
631
629
  default:
632
630
  const parsedBody = parsedOutput.body;
633
631
  throwDefaultError({
@@ -638,9 +636,9 @@ const deserializeAws_restJson1ListCodeReviewsCommandError = async (output, conte
638
636
  });
639
637
  }
640
638
  };
641
- export const deserializeAws_restJson1ListRecommendationFeedbackCommand = async (output, context) => {
639
+ export const de_ListRecommendationFeedbackCommand = async (output, context) => {
642
640
  if (output.statusCode !== 200 && output.statusCode >= 300) {
643
- return deserializeAws_restJson1ListRecommendationFeedbackCommandError(output, context);
641
+ return de_ListRecommendationFeedbackCommandError(output, context);
644
642
  }
645
643
  const contents = map({
646
644
  $metadata: deserializeMetadata(output),
@@ -650,11 +648,11 @@ export const deserializeAws_restJson1ListRecommendationFeedbackCommand = async (
650
648
  contents.NextToken = __expectString(data.NextToken);
651
649
  }
652
650
  if (data.RecommendationFeedbackSummaries != null) {
653
- contents.RecommendationFeedbackSummaries = deserializeAws_restJson1RecommendationFeedbackSummaries(data.RecommendationFeedbackSummaries, context);
651
+ contents.RecommendationFeedbackSummaries = de_RecommendationFeedbackSummaries(data.RecommendationFeedbackSummaries, context);
654
652
  }
655
653
  return contents;
656
654
  };
657
- const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (output, context) => {
655
+ const de_ListRecommendationFeedbackCommandError = async (output, context) => {
658
656
  const parsedOutput = {
659
657
  ...output,
660
658
  body: await parseErrorBody(output.body, context),
@@ -663,19 +661,19 @@ const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (ou
663
661
  switch (errorCode) {
664
662
  case "AccessDeniedException":
665
663
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
666
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
664
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
667
665
  case "InternalServerException":
668
666
  case "com.amazonaws.codegurureviewer#InternalServerException":
669
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
667
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
670
668
  case "ResourceNotFoundException":
671
669
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
672
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
670
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
673
671
  case "ThrottlingException":
674
672
  case "com.amazonaws.codegurureviewer#ThrottlingException":
675
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
673
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
676
674
  case "ValidationException":
677
675
  case "com.amazonaws.codegurureviewer#ValidationException":
678
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
676
+ throw await de_ValidationExceptionRes(parsedOutput, context);
679
677
  default:
680
678
  const parsedBody = parsedOutput.body;
681
679
  throwDefaultError({
@@ -686,9 +684,9 @@ const deserializeAws_restJson1ListRecommendationFeedbackCommandError = async (ou
686
684
  });
687
685
  }
688
686
  };
689
- export const deserializeAws_restJson1ListRecommendationsCommand = async (output, context) => {
687
+ export const de_ListRecommendationsCommand = async (output, context) => {
690
688
  if (output.statusCode !== 200 && output.statusCode >= 300) {
691
- return deserializeAws_restJson1ListRecommendationsCommandError(output, context);
689
+ return de_ListRecommendationsCommandError(output, context);
692
690
  }
693
691
  const contents = map({
694
692
  $metadata: deserializeMetadata(output),
@@ -698,11 +696,11 @@ export const deserializeAws_restJson1ListRecommendationsCommand = async (output,
698
696
  contents.NextToken = __expectString(data.NextToken);
699
697
  }
700
698
  if (data.RecommendationSummaries != null) {
701
- contents.RecommendationSummaries = deserializeAws_restJson1RecommendationSummaries(data.RecommendationSummaries, context);
699
+ contents.RecommendationSummaries = de_RecommendationSummaries(data.RecommendationSummaries, context);
702
700
  }
703
701
  return contents;
704
702
  };
705
- const deserializeAws_restJson1ListRecommendationsCommandError = async (output, context) => {
703
+ const de_ListRecommendationsCommandError = async (output, context) => {
706
704
  const parsedOutput = {
707
705
  ...output,
708
706
  body: await parseErrorBody(output.body, context),
@@ -711,19 +709,19 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
711
709
  switch (errorCode) {
712
710
  case "AccessDeniedException":
713
711
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
714
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
712
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
715
713
  case "InternalServerException":
716
714
  case "com.amazonaws.codegurureviewer#InternalServerException":
717
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
715
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
718
716
  case "ResourceNotFoundException":
719
717
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
720
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
718
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
721
719
  case "ThrottlingException":
722
720
  case "com.amazonaws.codegurureviewer#ThrottlingException":
723
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
721
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
724
722
  case "ValidationException":
725
723
  case "com.amazonaws.codegurureviewer#ValidationException":
726
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
724
+ throw await de_ValidationExceptionRes(parsedOutput, context);
727
725
  default:
728
726
  const parsedBody = parsedOutput.body;
729
727
  throwDefaultError({
@@ -734,9 +732,9 @@ const deserializeAws_restJson1ListRecommendationsCommandError = async (output, c
734
732
  });
735
733
  }
736
734
  };
737
- export const deserializeAws_restJson1ListRepositoryAssociationsCommand = async (output, context) => {
735
+ export const de_ListRepositoryAssociationsCommand = async (output, context) => {
738
736
  if (output.statusCode !== 200 && output.statusCode >= 300) {
739
- return deserializeAws_restJson1ListRepositoryAssociationsCommandError(output, context);
737
+ return de_ListRepositoryAssociationsCommandError(output, context);
740
738
  }
741
739
  const contents = map({
742
740
  $metadata: deserializeMetadata(output),
@@ -746,11 +744,11 @@ export const deserializeAws_restJson1ListRepositoryAssociationsCommand = async (
746
744
  contents.NextToken = __expectString(data.NextToken);
747
745
  }
748
746
  if (data.RepositoryAssociationSummaries != null) {
749
- contents.RepositoryAssociationSummaries = deserializeAws_restJson1RepositoryAssociationSummaries(data.RepositoryAssociationSummaries, context);
747
+ contents.RepositoryAssociationSummaries = de_RepositoryAssociationSummaries(data.RepositoryAssociationSummaries, context);
750
748
  }
751
749
  return contents;
752
750
  };
753
- const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (output, context) => {
751
+ const de_ListRepositoryAssociationsCommandError = async (output, context) => {
754
752
  const parsedOutput = {
755
753
  ...output,
756
754
  body: await parseErrorBody(output.body, context),
@@ -759,13 +757,13 @@ const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (ou
759
757
  switch (errorCode) {
760
758
  case "InternalServerException":
761
759
  case "com.amazonaws.codegurureviewer#InternalServerException":
762
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
760
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
763
761
  case "ThrottlingException":
764
762
  case "com.amazonaws.codegurureviewer#ThrottlingException":
765
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
763
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
766
764
  case "ValidationException":
767
765
  case "com.amazonaws.codegurureviewer#ValidationException":
768
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
766
+ throw await de_ValidationExceptionRes(parsedOutput, context);
769
767
  default:
770
768
  const parsedBody = parsedOutput.body;
771
769
  throwDefaultError({
@@ -776,20 +774,20 @@ const deserializeAws_restJson1ListRepositoryAssociationsCommandError = async (ou
776
774
  });
777
775
  }
778
776
  };
779
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
777
+ export const de_ListTagsForResourceCommand = async (output, context) => {
780
778
  if (output.statusCode !== 200 && output.statusCode >= 300) {
781
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
779
+ return de_ListTagsForResourceCommandError(output, context);
782
780
  }
783
781
  const contents = map({
784
782
  $metadata: deserializeMetadata(output),
785
783
  });
786
784
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
787
785
  if (data.Tags != null) {
788
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
786
+ contents.Tags = de_TagMap(data.Tags, context);
789
787
  }
790
788
  return contents;
791
789
  };
792
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
790
+ const de_ListTagsForResourceCommandError = async (output, context) => {
793
791
  const parsedOutput = {
794
792
  ...output,
795
793
  body: await parseErrorBody(output.body, context),
@@ -798,13 +796,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
798
796
  switch (errorCode) {
799
797
  case "InternalServerException":
800
798
  case "com.amazonaws.codegurureviewer#InternalServerException":
801
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
799
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
802
800
  case "ResourceNotFoundException":
803
801
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
804
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
802
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
805
803
  case "ValidationException":
806
804
  case "com.amazonaws.codegurureviewer#ValidationException":
807
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
805
+ throw await de_ValidationExceptionRes(parsedOutput, context);
808
806
  default:
809
807
  const parsedBody = parsedOutput.body;
810
808
  throwDefaultError({
@@ -815,9 +813,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
815
813
  });
816
814
  }
817
815
  };
818
- export const deserializeAws_restJson1PutRecommendationFeedbackCommand = async (output, context) => {
816
+ export const de_PutRecommendationFeedbackCommand = async (output, context) => {
819
817
  if (output.statusCode !== 200 && output.statusCode >= 300) {
820
- return deserializeAws_restJson1PutRecommendationFeedbackCommandError(output, context);
818
+ return de_PutRecommendationFeedbackCommandError(output, context);
821
819
  }
822
820
  const contents = map({
823
821
  $metadata: deserializeMetadata(output),
@@ -825,7 +823,7 @@ export const deserializeAws_restJson1PutRecommendationFeedbackCommand = async (o
825
823
  await collectBody(output.body, context);
826
824
  return contents;
827
825
  };
828
- const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (output, context) => {
826
+ const de_PutRecommendationFeedbackCommandError = async (output, context) => {
829
827
  const parsedOutput = {
830
828
  ...output,
831
829
  body: await parseErrorBody(output.body, context),
@@ -834,19 +832,19 @@ const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (out
834
832
  switch (errorCode) {
835
833
  case "AccessDeniedException":
836
834
  case "com.amazonaws.codegurureviewer#AccessDeniedException":
837
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
835
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
838
836
  case "InternalServerException":
839
837
  case "com.amazonaws.codegurureviewer#InternalServerException":
840
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
838
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
841
839
  case "ResourceNotFoundException":
842
840
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
843
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
841
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
844
842
  case "ThrottlingException":
845
843
  case "com.amazonaws.codegurureviewer#ThrottlingException":
846
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
844
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
847
845
  case "ValidationException":
848
846
  case "com.amazonaws.codegurureviewer#ValidationException":
849
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
847
+ throw await de_ValidationExceptionRes(parsedOutput, context);
850
848
  default:
851
849
  const parsedBody = parsedOutput.body;
852
850
  throwDefaultError({
@@ -857,9 +855,9 @@ const deserializeAws_restJson1PutRecommendationFeedbackCommandError = async (out
857
855
  });
858
856
  }
859
857
  };
860
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
858
+ export const de_TagResourceCommand = async (output, context) => {
861
859
  if (output.statusCode !== 200 && output.statusCode >= 300) {
862
- return deserializeAws_restJson1TagResourceCommandError(output, context);
860
+ return de_TagResourceCommandError(output, context);
863
861
  }
864
862
  const contents = map({
865
863
  $metadata: deserializeMetadata(output),
@@ -867,7 +865,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
867
865
  await collectBody(output.body, context);
868
866
  return contents;
869
867
  };
870
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
868
+ const de_TagResourceCommandError = async (output, context) => {
871
869
  const parsedOutput = {
872
870
  ...output,
873
871
  body: await parseErrorBody(output.body, context),
@@ -876,13 +874,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
876
874
  switch (errorCode) {
877
875
  case "InternalServerException":
878
876
  case "com.amazonaws.codegurureviewer#InternalServerException":
879
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
877
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
880
878
  case "ResourceNotFoundException":
881
879
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
882
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
880
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
883
881
  case "ValidationException":
884
882
  case "com.amazonaws.codegurureviewer#ValidationException":
885
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
883
+ throw await de_ValidationExceptionRes(parsedOutput, context);
886
884
  default:
887
885
  const parsedBody = parsedOutput.body;
888
886
  throwDefaultError({
@@ -893,9 +891,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
893
891
  });
894
892
  }
895
893
  };
896
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
894
+ export const de_UntagResourceCommand = async (output, context) => {
897
895
  if (output.statusCode !== 200 && output.statusCode >= 300) {
898
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
896
+ return de_UntagResourceCommandError(output, context);
899
897
  }
900
898
  const contents = map({
901
899
  $metadata: deserializeMetadata(output),
@@ -903,7 +901,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
903
901
  await collectBody(output.body, context);
904
902
  return contents;
905
903
  };
906
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
904
+ const de_UntagResourceCommandError = async (output, context) => {
907
905
  const parsedOutput = {
908
906
  ...output,
909
907
  body: await parseErrorBody(output.body, context),
@@ -912,13 +910,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
912
910
  switch (errorCode) {
913
911
  case "InternalServerException":
914
912
  case "com.amazonaws.codegurureviewer#InternalServerException":
915
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
913
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
916
914
  case "ResourceNotFoundException":
917
915
  case "com.amazonaws.codegurureviewer#ResourceNotFoundException":
918
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
916
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
919
917
  case "ValidationException":
920
918
  case "com.amazonaws.codegurureviewer#ValidationException":
921
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
919
+ throw await de_ValidationExceptionRes(parsedOutput, context);
922
920
  default:
923
921
  const parsedBody = parsedOutput.body;
924
922
  throwDefaultError({
@@ -930,7 +928,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
930
928
  }
931
929
  };
932
930
  const map = __map;
933
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
931
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
934
932
  const contents = map({});
935
933
  const data = parsedOutput.body;
936
934
  if (data.Message != null) {
@@ -942,7 +940,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
942
940
  });
943
941
  return __decorateServiceException(exception, parsedOutput.body);
944
942
  };
945
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
943
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
946
944
  const contents = map({});
947
945
  const data = parsedOutput.body;
948
946
  if (data.Message != null) {
@@ -954,7 +952,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
954
952
  });
955
953
  return __decorateServiceException(exception, parsedOutput.body);
956
954
  };
957
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
955
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
958
956
  const contents = map({});
959
957
  const data = parsedOutput.body;
960
958
  if (data.Message != null) {
@@ -966,7 +964,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
966
964
  });
967
965
  return __decorateServiceException(exception, parsedOutput.body);
968
966
  };
969
- const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
967
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
970
968
  const contents = map({});
971
969
  const data = parsedOutput.body;
972
970
  if (data.Message != null) {
@@ -978,7 +976,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
978
976
  });
979
977
  return __decorateServiceException(exception, parsedOutput.body);
980
978
  };
981
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
979
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
982
980
  const contents = map({});
983
981
  const data = parsedOutput.body;
984
982
  if (data.Message != null) {
@@ -990,7 +988,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
990
988
  });
991
989
  return __decorateServiceException(exception, parsedOutput.body);
992
990
  };
993
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
991
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
994
992
  const contents = map({});
995
993
  const data = parsedOutput.body;
996
994
  if (data.Message != null) {
@@ -1002,7 +1000,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
1002
1000
  });
1003
1001
  return __decorateServiceException(exception, parsedOutput.body);
1004
1002
  };
1005
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
1003
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1006
1004
  const contents = map({});
1007
1005
  const data = parsedOutput.body;
1008
1006
  if (data.Message != null) {
@@ -1014,20 +1012,20 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1014
1012
  });
1015
1013
  return __decorateServiceException(exception, parsedOutput.body);
1016
1014
  };
1017
- const serializeAws_restJson1AnalysisTypes = (input, context) => {
1015
+ const se_AnalysisTypes = (input, context) => {
1018
1016
  return input
1019
1017
  .filter((e) => e != null)
1020
1018
  .map((entry) => {
1021
1019
  return entry;
1022
1020
  });
1023
1021
  };
1024
- const serializeAws_restJson1BranchDiffSourceCodeType = (input, context) => {
1022
+ const se_BranchDiffSourceCodeType = (input, context) => {
1025
1023
  return {
1026
1024
  ...(input.DestinationBranchName != null && { DestinationBranchName: input.DestinationBranchName }),
1027
1025
  ...(input.SourceBranchName != null && { SourceBranchName: input.SourceBranchName }),
1028
1026
  };
1029
1027
  };
1030
- const serializeAws_restJson1CodeArtifacts = (input, context) => {
1028
+ const se_CodeArtifacts = (input, context) => {
1031
1029
  return {
1032
1030
  ...(input.BuildArtifactsObjectKey != null && { BuildArtifactsObjectKey: input.BuildArtifactsObjectKey }),
1033
1031
  ...(input.SourceCodeArtifactsObjectKey != null && {
@@ -1035,124 +1033,108 @@ const serializeAws_restJson1CodeArtifacts = (input, context) => {
1035
1033
  }),
1036
1034
  };
1037
1035
  };
1038
- const serializeAws_restJson1CodeCommitRepository = (input, context) => {
1036
+ const se_CodeCommitRepository = (input, context) => {
1039
1037
  return {
1040
1038
  ...(input.Name != null && { Name: input.Name }),
1041
1039
  };
1042
1040
  };
1043
- const serializeAws_restJson1CodeReviewType = (input, context) => {
1041
+ const se_CodeReviewType = (input, context) => {
1044
1042
  return {
1045
- ...(input.AnalysisTypes != null && {
1046
- AnalysisTypes: serializeAws_restJson1AnalysisTypes(input.AnalysisTypes, context),
1047
- }),
1043
+ ...(input.AnalysisTypes != null && { AnalysisTypes: se_AnalysisTypes(input.AnalysisTypes, context) }),
1048
1044
  ...(input.RepositoryAnalysis != null && {
1049
- RepositoryAnalysis: serializeAws_restJson1RepositoryAnalysis(input.RepositoryAnalysis, context),
1045
+ RepositoryAnalysis: se_RepositoryAnalysis(input.RepositoryAnalysis, context),
1050
1046
  }),
1051
1047
  };
1052
1048
  };
1053
- const serializeAws_restJson1CommitDiffSourceCodeType = (input, context) => {
1049
+ const se_CommitDiffSourceCodeType = (input, context) => {
1054
1050
  return {
1055
1051
  ...(input.DestinationCommit != null && { DestinationCommit: input.DestinationCommit }),
1056
1052
  ...(input.MergeBaseCommit != null && { MergeBaseCommit: input.MergeBaseCommit }),
1057
1053
  ...(input.SourceCommit != null && { SourceCommit: input.SourceCommit }),
1058
1054
  };
1059
1055
  };
1060
- const serializeAws_restJson1EventInfo = (input, context) => {
1056
+ const se_EventInfo = (input, context) => {
1061
1057
  return {
1062
1058
  ...(input.Name != null && { Name: input.Name }),
1063
1059
  ...(input.State != null && { State: input.State }),
1064
1060
  };
1065
1061
  };
1066
- const serializeAws_restJson1KMSKeyDetails = (input, context) => {
1062
+ const se_KMSKeyDetails = (input, context) => {
1067
1063
  return {
1068
1064
  ...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
1069
1065
  ...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
1070
1066
  };
1071
1067
  };
1072
- const serializeAws_restJson1Reactions = (input, context) => {
1068
+ const se_Reactions = (input, context) => {
1073
1069
  return input
1074
1070
  .filter((e) => e != null)
1075
1071
  .map((entry) => {
1076
1072
  return entry;
1077
1073
  });
1078
1074
  };
1079
- const serializeAws_restJson1Repository = (input, context) => {
1075
+ const se_Repository = (input, context) => {
1080
1076
  return {
1081
- ...(input.Bitbucket != null && {
1082
- Bitbucket: serializeAws_restJson1ThirdPartySourceRepository(input.Bitbucket, context),
1083
- }),
1084
- ...(input.CodeCommit != null && {
1085
- CodeCommit: serializeAws_restJson1CodeCommitRepository(input.CodeCommit, context),
1086
- }),
1077
+ ...(input.Bitbucket != null && { Bitbucket: se_ThirdPartySourceRepository(input.Bitbucket, context) }),
1078
+ ...(input.CodeCommit != null && { CodeCommit: se_CodeCommitRepository(input.CodeCommit, context) }),
1087
1079
  ...(input.GitHubEnterpriseServer != null && {
1088
- GitHubEnterpriseServer: serializeAws_restJson1ThirdPartySourceRepository(input.GitHubEnterpriseServer, context),
1080
+ GitHubEnterpriseServer: se_ThirdPartySourceRepository(input.GitHubEnterpriseServer, context),
1089
1081
  }),
1090
- ...(input.S3Bucket != null && { S3Bucket: serializeAws_restJson1S3Repository(input.S3Bucket, context) }),
1082
+ ...(input.S3Bucket != null && { S3Bucket: se_S3Repository(input.S3Bucket, context) }),
1091
1083
  };
1092
1084
  };
1093
- const serializeAws_restJson1RepositoryAnalysis = (input, context) => {
1085
+ const se_RepositoryAnalysis = (input, context) => {
1094
1086
  return {
1095
1087
  ...(input.RepositoryHead != null && {
1096
- RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1097
- }),
1098
- ...(input.SourceCodeType != null && {
1099
- SourceCodeType: serializeAws_restJson1SourceCodeType(input.SourceCodeType, context),
1088
+ RepositoryHead: se_RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1100
1089
  }),
1090
+ ...(input.SourceCodeType != null && { SourceCodeType: se_SourceCodeType(input.SourceCodeType, context) }),
1101
1091
  };
1102
1092
  };
1103
- const serializeAws_restJson1RepositoryHeadSourceCodeType = (input, context) => {
1093
+ const se_RepositoryHeadSourceCodeType = (input, context) => {
1104
1094
  return {
1105
1095
  ...(input.BranchName != null && { BranchName: input.BranchName }),
1106
1096
  };
1107
1097
  };
1108
- const serializeAws_restJson1RequestMetadata = (input, context) => {
1098
+ const se_RequestMetadata = (input, context) => {
1109
1099
  return {
1110
- ...(input.EventInfo != null && { EventInfo: serializeAws_restJson1EventInfo(input.EventInfo, context) }),
1100
+ ...(input.EventInfo != null && { EventInfo: se_EventInfo(input.EventInfo, context) }),
1111
1101
  ...(input.RequestId != null && { RequestId: input.RequestId }),
1112
1102
  ...(input.Requester != null && { Requester: input.Requester }),
1113
1103
  ...(input.VendorName != null && { VendorName: input.VendorName }),
1114
1104
  };
1115
1105
  };
1116
- const serializeAws_restJson1S3BucketRepository = (input, context) => {
1106
+ const se_S3BucketRepository = (input, context) => {
1117
1107
  return {
1118
- ...(input.Details != null && { Details: serializeAws_restJson1S3RepositoryDetails(input.Details, context) }),
1108
+ ...(input.Details != null && { Details: se_S3RepositoryDetails(input.Details, context) }),
1119
1109
  ...(input.Name != null && { Name: input.Name }),
1120
1110
  };
1121
1111
  };
1122
- const serializeAws_restJson1S3Repository = (input, context) => {
1112
+ const se_S3Repository = (input, context) => {
1123
1113
  return {
1124
1114
  ...(input.BucketName != null && { BucketName: input.BucketName }),
1125
1115
  ...(input.Name != null && { Name: input.Name }),
1126
1116
  };
1127
1117
  };
1128
- const serializeAws_restJson1S3RepositoryDetails = (input, context) => {
1118
+ const se_S3RepositoryDetails = (input, context) => {
1129
1119
  return {
1130
1120
  ...(input.BucketName != null && { BucketName: input.BucketName }),
1131
- ...(input.CodeArtifacts != null && {
1132
- CodeArtifacts: serializeAws_restJson1CodeArtifacts(input.CodeArtifacts, context),
1133
- }),
1121
+ ...(input.CodeArtifacts != null && { CodeArtifacts: se_CodeArtifacts(input.CodeArtifacts, context) }),
1134
1122
  };
1135
1123
  };
1136
- const serializeAws_restJson1SourceCodeType = (input, context) => {
1124
+ const se_SourceCodeType = (input, context) => {
1137
1125
  return {
1138
- ...(input.BranchDiff != null && {
1139
- BranchDiff: serializeAws_restJson1BranchDiffSourceCodeType(input.BranchDiff, context),
1140
- }),
1141
- ...(input.CommitDiff != null && {
1142
- CommitDiff: serializeAws_restJson1CommitDiffSourceCodeType(input.CommitDiff, context),
1143
- }),
1126
+ ...(input.BranchDiff != null && { BranchDiff: se_BranchDiffSourceCodeType(input.BranchDiff, context) }),
1127
+ ...(input.CommitDiff != null && { CommitDiff: se_CommitDiffSourceCodeType(input.CommitDiff, context) }),
1144
1128
  ...(input.RepositoryHead != null && {
1145
- RepositoryHead: serializeAws_restJson1RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1146
- }),
1147
- ...(input.RequestMetadata != null && {
1148
- RequestMetadata: serializeAws_restJson1RequestMetadata(input.RequestMetadata, context),
1129
+ RepositoryHead: se_RepositoryHeadSourceCodeType(input.RepositoryHead, context),
1149
1130
  }),
1131
+ ...(input.RequestMetadata != null && { RequestMetadata: se_RequestMetadata(input.RequestMetadata, context) }),
1150
1132
  ...(input.S3BucketRepository != null && {
1151
- S3BucketRepository: serializeAws_restJson1S3BucketRepository(input.S3BucketRepository, context),
1133
+ S3BucketRepository: se_S3BucketRepository(input.S3BucketRepository, context),
1152
1134
  }),
1153
1135
  };
1154
1136
  };
1155
- const serializeAws_restJson1TagMap = (input, context) => {
1137
+ const se_TagMap = (input, context) => {
1156
1138
  return Object.entries(input).reduce((acc, [key, value]) => {
1157
1139
  if (value === null) {
1158
1140
  return acc;
@@ -1161,14 +1143,14 @@ const serializeAws_restJson1TagMap = (input, context) => {
1161
1143
  return acc;
1162
1144
  }, {});
1163
1145
  };
1164
- const serializeAws_restJson1ThirdPartySourceRepository = (input, context) => {
1146
+ const se_ThirdPartySourceRepository = (input, context) => {
1165
1147
  return {
1166
1148
  ...(input.ConnectionArn != null && { ConnectionArn: input.ConnectionArn }),
1167
1149
  ...(input.Name != null && { Name: input.Name }),
1168
1150
  ...(input.Owner != null && { Owner: input.Owner }),
1169
1151
  };
1170
1152
  };
1171
- const deserializeAws_restJson1AnalysisTypes = (output, context) => {
1153
+ const de_AnalysisTypes = (output, context) => {
1172
1154
  const retVal = (output || [])
1173
1155
  .filter((e) => e != null)
1174
1156
  .map((entry) => {
@@ -1179,21 +1161,21 @@ const deserializeAws_restJson1AnalysisTypes = (output, context) => {
1179
1161
  });
1180
1162
  return retVal;
1181
1163
  };
1182
- const deserializeAws_restJson1BranchDiffSourceCodeType = (output, context) => {
1164
+ const de_BranchDiffSourceCodeType = (output, context) => {
1183
1165
  return {
1184
1166
  DestinationBranchName: __expectString(output.DestinationBranchName),
1185
1167
  SourceBranchName: __expectString(output.SourceBranchName),
1186
1168
  };
1187
1169
  };
1188
- const deserializeAws_restJson1CodeArtifacts = (output, context) => {
1170
+ const de_CodeArtifacts = (output, context) => {
1189
1171
  return {
1190
1172
  BuildArtifactsObjectKey: __expectString(output.BuildArtifactsObjectKey),
1191
1173
  SourceCodeArtifactsObjectKey: __expectString(output.SourceCodeArtifactsObjectKey),
1192
1174
  };
1193
1175
  };
1194
- const deserializeAws_restJson1CodeReview = (output, context) => {
1176
+ const de_CodeReview = (output, context) => {
1195
1177
  return {
1196
- AnalysisTypes: output.AnalysisTypes != null ? deserializeAws_restJson1AnalysisTypes(output.AnalysisTypes, context) : undefined,
1178
+ AnalysisTypes: output.AnalysisTypes != null ? de_AnalysisTypes(output.AnalysisTypes, context) : undefined,
1197
1179
  AssociationArn: __expectString(output.AssociationArn),
1198
1180
  CodeReviewArn: __expectString(output.CodeReviewArn),
1199
1181
  ConfigFileState: __expectString(output.ConfigFileState),
@@ -1203,32 +1185,30 @@ const deserializeAws_restJson1CodeReview = (output, context) => {
1203
1185
  LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1204
1186
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimeStamp)))
1205
1187
  : undefined,
1206
- Metrics: output.Metrics != null ? deserializeAws_restJson1Metrics(output.Metrics, context) : undefined,
1188
+ Metrics: output.Metrics != null ? de_Metrics(output.Metrics, context) : undefined,
1207
1189
  Name: __expectString(output.Name),
1208
1190
  Owner: __expectString(output.Owner),
1209
1191
  ProviderType: __expectString(output.ProviderType),
1210
1192
  PullRequestId: __expectString(output.PullRequestId),
1211
1193
  RepositoryName: __expectString(output.RepositoryName),
1212
- SourceCodeType: output.SourceCodeType != null
1213
- ? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
1214
- : undefined,
1194
+ SourceCodeType: output.SourceCodeType != null ? de_SourceCodeType(output.SourceCodeType, context) : undefined,
1215
1195
  State: __expectString(output.State),
1216
1196
  StateReason: __expectString(output.StateReason),
1217
1197
  Type: __expectString(output.Type),
1218
1198
  };
1219
1199
  };
1220
- const deserializeAws_restJson1CodeReviewSummaries = (output, context) => {
1200
+ const de_CodeReviewSummaries = (output, context) => {
1221
1201
  const retVal = (output || [])
1222
1202
  .filter((e) => e != null)
1223
1203
  .map((entry) => {
1224
1204
  if (entry === null) {
1225
1205
  return null;
1226
1206
  }
1227
- return deserializeAws_restJson1CodeReviewSummary(entry, context);
1207
+ return de_CodeReviewSummary(entry, context);
1228
1208
  });
1229
1209
  return retVal;
1230
1210
  };
1231
- const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
1211
+ const de_CodeReviewSummary = (output, context) => {
1232
1212
  return {
1233
1213
  CodeReviewArn: __expectString(output.CodeReviewArn),
1234
1214
  CreatedTimeStamp: output.CreatedTimeStamp != null
@@ -1237,55 +1217,51 @@ const deserializeAws_restJson1CodeReviewSummary = (output, context) => {
1237
1217
  LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1238
1218
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimeStamp)))
1239
1219
  : undefined,
1240
- MetricsSummary: output.MetricsSummary != null
1241
- ? deserializeAws_restJson1MetricsSummary(output.MetricsSummary, context)
1242
- : undefined,
1220
+ MetricsSummary: output.MetricsSummary != null ? de_MetricsSummary(output.MetricsSummary, context) : undefined,
1243
1221
  Name: __expectString(output.Name),
1244
1222
  Owner: __expectString(output.Owner),
1245
1223
  ProviderType: __expectString(output.ProviderType),
1246
1224
  PullRequestId: __expectString(output.PullRequestId),
1247
1225
  RepositoryName: __expectString(output.RepositoryName),
1248
- SourceCodeType: output.SourceCodeType != null
1249
- ? deserializeAws_restJson1SourceCodeType(output.SourceCodeType, context)
1250
- : undefined,
1226
+ SourceCodeType: output.SourceCodeType != null ? de_SourceCodeType(output.SourceCodeType, context) : undefined,
1251
1227
  State: __expectString(output.State),
1252
1228
  Type: __expectString(output.Type),
1253
1229
  };
1254
1230
  };
1255
- const deserializeAws_restJson1CommitDiffSourceCodeType = (output, context) => {
1231
+ const de_CommitDiffSourceCodeType = (output, context) => {
1256
1232
  return {
1257
1233
  DestinationCommit: __expectString(output.DestinationCommit),
1258
1234
  MergeBaseCommit: __expectString(output.MergeBaseCommit),
1259
1235
  SourceCommit: __expectString(output.SourceCommit),
1260
1236
  };
1261
1237
  };
1262
- const deserializeAws_restJson1EventInfo = (output, context) => {
1238
+ const de_EventInfo = (output, context) => {
1263
1239
  return {
1264
1240
  Name: __expectString(output.Name),
1265
1241
  State: __expectString(output.State),
1266
1242
  };
1267
1243
  };
1268
- const deserializeAws_restJson1KMSKeyDetails = (output, context) => {
1244
+ const de_KMSKeyDetails = (output, context) => {
1269
1245
  return {
1270
1246
  EncryptionOption: __expectString(output.EncryptionOption),
1271
1247
  KMSKeyId: __expectString(output.KMSKeyId),
1272
1248
  };
1273
1249
  };
1274
- const deserializeAws_restJson1Metrics = (output, context) => {
1250
+ const de_Metrics = (output, context) => {
1275
1251
  return {
1276
1252
  FindingsCount: __expectLong(output.FindingsCount),
1277
1253
  MeteredLinesOfCodeCount: __expectLong(output.MeteredLinesOfCodeCount),
1278
1254
  SuppressedLinesOfCodeCount: __expectLong(output.SuppressedLinesOfCodeCount),
1279
1255
  };
1280
1256
  };
1281
- const deserializeAws_restJson1MetricsSummary = (output, context) => {
1257
+ const de_MetricsSummary = (output, context) => {
1282
1258
  return {
1283
1259
  FindingsCount: __expectLong(output.FindingsCount),
1284
1260
  MeteredLinesOfCodeCount: __expectLong(output.MeteredLinesOfCodeCount),
1285
1261
  SuppressedLinesOfCodeCount: __expectLong(output.SuppressedLinesOfCodeCount),
1286
1262
  };
1287
1263
  };
1288
- const deserializeAws_restJson1Reactions = (output, context) => {
1264
+ const de_Reactions = (output, context) => {
1289
1265
  const retVal = (output || [])
1290
1266
  .filter((e) => e != null)
1291
1267
  .map((entry) => {
@@ -1296,7 +1272,7 @@ const deserializeAws_restJson1Reactions = (output, context) => {
1296
1272
  });
1297
1273
  return retVal;
1298
1274
  };
1299
- const deserializeAws_restJson1RecommendationFeedback = (output, context) => {
1275
+ const de_RecommendationFeedback = (output, context) => {
1300
1276
  return {
1301
1277
  CodeReviewArn: __expectString(output.CodeReviewArn),
1302
1278
  CreatedTimeStamp: output.CreatedTimeStamp != null
@@ -1305,53 +1281,53 @@ const deserializeAws_restJson1RecommendationFeedback = (output, context) => {
1305
1281
  LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1306
1282
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimeStamp)))
1307
1283
  : undefined,
1308
- Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
1284
+ Reactions: output.Reactions != null ? de_Reactions(output.Reactions, context) : undefined,
1309
1285
  RecommendationId: __expectString(output.RecommendationId),
1310
1286
  UserId: __expectString(output.UserId),
1311
1287
  };
1312
1288
  };
1313
- const deserializeAws_restJson1RecommendationFeedbackSummaries = (output, context) => {
1289
+ const de_RecommendationFeedbackSummaries = (output, context) => {
1314
1290
  const retVal = (output || [])
1315
1291
  .filter((e) => e != null)
1316
1292
  .map((entry) => {
1317
1293
  if (entry === null) {
1318
1294
  return null;
1319
1295
  }
1320
- return deserializeAws_restJson1RecommendationFeedbackSummary(entry, context);
1296
+ return de_RecommendationFeedbackSummary(entry, context);
1321
1297
  });
1322
1298
  return retVal;
1323
1299
  };
1324
- const deserializeAws_restJson1RecommendationFeedbackSummary = (output, context) => {
1300
+ const de_RecommendationFeedbackSummary = (output, context) => {
1325
1301
  return {
1326
- Reactions: output.Reactions != null ? deserializeAws_restJson1Reactions(output.Reactions, context) : undefined,
1302
+ Reactions: output.Reactions != null ? de_Reactions(output.Reactions, context) : undefined,
1327
1303
  RecommendationId: __expectString(output.RecommendationId),
1328
1304
  UserId: __expectString(output.UserId),
1329
1305
  };
1330
1306
  };
1331
- const deserializeAws_restJson1RecommendationSummaries = (output, context) => {
1307
+ const de_RecommendationSummaries = (output, context) => {
1332
1308
  const retVal = (output || [])
1333
1309
  .filter((e) => e != null)
1334
1310
  .map((entry) => {
1335
1311
  if (entry === null) {
1336
1312
  return null;
1337
1313
  }
1338
- return deserializeAws_restJson1RecommendationSummary(entry, context);
1314
+ return de_RecommendationSummary(entry, context);
1339
1315
  });
1340
1316
  return retVal;
1341
1317
  };
1342
- const deserializeAws_restJson1RecommendationSummary = (output, context) => {
1318
+ const de_RecommendationSummary = (output, context) => {
1343
1319
  return {
1344
1320
  Description: __expectString(output.Description),
1345
1321
  EndLine: __expectInt32(output.EndLine),
1346
1322
  FilePath: __expectString(output.FilePath),
1347
1323
  RecommendationCategory: __expectString(output.RecommendationCategory),
1348
1324
  RecommendationId: __expectString(output.RecommendationId),
1349
- RuleMetadata: output.RuleMetadata != null ? deserializeAws_restJson1RuleMetadata(output.RuleMetadata, context) : undefined,
1325
+ RuleMetadata: output.RuleMetadata != null ? de_RuleMetadata(output.RuleMetadata, context) : undefined,
1350
1326
  Severity: __expectString(output.Severity),
1351
1327
  StartLine: __expectInt32(output.StartLine),
1352
1328
  };
1353
1329
  };
1354
- const deserializeAws_restJson1RepositoryAssociation = (output, context) => {
1330
+ const de_RepositoryAssociation = (output, context) => {
1355
1331
  return {
1356
1332
  AssociationArn: __expectString(output.AssociationArn),
1357
1333
  AssociationId: __expectString(output.AssociationId),
@@ -1359,32 +1335,30 @@ const deserializeAws_restJson1RepositoryAssociation = (output, context) => {
1359
1335
  CreatedTimeStamp: output.CreatedTimeStamp != null
1360
1336
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimeStamp)))
1361
1337
  : undefined,
1362
- KMSKeyDetails: output.KMSKeyDetails != null ? deserializeAws_restJson1KMSKeyDetails(output.KMSKeyDetails, context) : undefined,
1338
+ KMSKeyDetails: output.KMSKeyDetails != null ? de_KMSKeyDetails(output.KMSKeyDetails, context) : undefined,
1363
1339
  LastUpdatedTimeStamp: output.LastUpdatedTimeStamp != null
1364
1340
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimeStamp)))
1365
1341
  : undefined,
1366
1342
  Name: __expectString(output.Name),
1367
1343
  Owner: __expectString(output.Owner),
1368
1344
  ProviderType: __expectString(output.ProviderType),
1369
- S3RepositoryDetails: output.S3RepositoryDetails != null
1370
- ? deserializeAws_restJson1S3RepositoryDetails(output.S3RepositoryDetails, context)
1371
- : undefined,
1345
+ S3RepositoryDetails: output.S3RepositoryDetails != null ? de_S3RepositoryDetails(output.S3RepositoryDetails, context) : undefined,
1372
1346
  State: __expectString(output.State),
1373
1347
  StateReason: __expectString(output.StateReason),
1374
1348
  };
1375
1349
  };
1376
- const deserializeAws_restJson1RepositoryAssociationSummaries = (output, context) => {
1350
+ const de_RepositoryAssociationSummaries = (output, context) => {
1377
1351
  const retVal = (output || [])
1378
1352
  .filter((e) => e != null)
1379
1353
  .map((entry) => {
1380
1354
  if (entry === null) {
1381
1355
  return null;
1382
1356
  }
1383
- return deserializeAws_restJson1RepositoryAssociationSummary(entry, context);
1357
+ return de_RepositoryAssociationSummary(entry, context);
1384
1358
  });
1385
1359
  return retVal;
1386
1360
  };
1387
- const deserializeAws_restJson1RepositoryAssociationSummary = (output, context) => {
1361
+ const de_RepositoryAssociationSummary = (output, context) => {
1388
1362
  return {
1389
1363
  AssociationArn: __expectString(output.AssociationArn),
1390
1364
  AssociationId: __expectString(output.AssociationId),
@@ -1398,29 +1372,29 @@ const deserializeAws_restJson1RepositoryAssociationSummary = (output, context) =
1398
1372
  State: __expectString(output.State),
1399
1373
  };
1400
1374
  };
1401
- const deserializeAws_restJson1RepositoryHeadSourceCodeType = (output, context) => {
1375
+ const de_RepositoryHeadSourceCodeType = (output, context) => {
1402
1376
  return {
1403
1377
  BranchName: __expectString(output.BranchName),
1404
1378
  };
1405
1379
  };
1406
- const deserializeAws_restJson1RequestMetadata = (output, context) => {
1380
+ const de_RequestMetadata = (output, context) => {
1407
1381
  return {
1408
- EventInfo: output.EventInfo != null ? deserializeAws_restJson1EventInfo(output.EventInfo, context) : undefined,
1382
+ EventInfo: output.EventInfo != null ? de_EventInfo(output.EventInfo, context) : undefined,
1409
1383
  RequestId: __expectString(output.RequestId),
1410
1384
  Requester: __expectString(output.Requester),
1411
1385
  VendorName: __expectString(output.VendorName),
1412
1386
  };
1413
1387
  };
1414
- const deserializeAws_restJson1RuleMetadata = (output, context) => {
1388
+ const de_RuleMetadata = (output, context) => {
1415
1389
  return {
1416
1390
  LongDescription: __expectString(output.LongDescription),
1417
1391
  RuleId: __expectString(output.RuleId),
1418
1392
  RuleName: __expectString(output.RuleName),
1419
- RuleTags: output.RuleTags != null ? deserializeAws_restJson1RuleTags(output.RuleTags, context) : undefined,
1393
+ RuleTags: output.RuleTags != null ? de_RuleTags(output.RuleTags, context) : undefined,
1420
1394
  ShortDescription: __expectString(output.ShortDescription),
1421
1395
  };
1422
1396
  };
1423
- const deserializeAws_restJson1RuleTags = (output, context) => {
1397
+ const de_RuleTags = (output, context) => {
1424
1398
  const retVal = (output || [])
1425
1399
  .filter((e) => e != null)
1426
1400
  .map((entry) => {
@@ -1431,38 +1405,28 @@ const deserializeAws_restJson1RuleTags = (output, context) => {
1431
1405
  });
1432
1406
  return retVal;
1433
1407
  };
1434
- const deserializeAws_restJson1S3BucketRepository = (output, context) => {
1408
+ const de_S3BucketRepository = (output, context) => {
1435
1409
  return {
1436
- Details: output.Details != null ? deserializeAws_restJson1S3RepositoryDetails(output.Details, context) : undefined,
1410
+ Details: output.Details != null ? de_S3RepositoryDetails(output.Details, context) : undefined,
1437
1411
  Name: __expectString(output.Name),
1438
1412
  };
1439
1413
  };
1440
- const deserializeAws_restJson1S3RepositoryDetails = (output, context) => {
1414
+ const de_S3RepositoryDetails = (output, context) => {
1441
1415
  return {
1442
1416
  BucketName: __expectString(output.BucketName),
1443
- CodeArtifacts: output.CodeArtifacts != null ? deserializeAws_restJson1CodeArtifacts(output.CodeArtifacts, context) : undefined,
1417
+ CodeArtifacts: output.CodeArtifacts != null ? de_CodeArtifacts(output.CodeArtifacts, context) : undefined,
1444
1418
  };
1445
1419
  };
1446
- const deserializeAws_restJson1SourceCodeType = (output, context) => {
1420
+ const de_SourceCodeType = (output, context) => {
1447
1421
  return {
1448
- BranchDiff: output.BranchDiff != null
1449
- ? deserializeAws_restJson1BranchDiffSourceCodeType(output.BranchDiff, context)
1450
- : undefined,
1451
- CommitDiff: output.CommitDiff != null
1452
- ? deserializeAws_restJson1CommitDiffSourceCodeType(output.CommitDiff, context)
1453
- : undefined,
1454
- RepositoryHead: output.RepositoryHead != null
1455
- ? deserializeAws_restJson1RepositoryHeadSourceCodeType(output.RepositoryHead, context)
1456
- : undefined,
1457
- RequestMetadata: output.RequestMetadata != null
1458
- ? deserializeAws_restJson1RequestMetadata(output.RequestMetadata, context)
1459
- : undefined,
1460
- S3BucketRepository: output.S3BucketRepository != null
1461
- ? deserializeAws_restJson1S3BucketRepository(output.S3BucketRepository, context)
1462
- : undefined,
1422
+ BranchDiff: output.BranchDiff != null ? de_BranchDiffSourceCodeType(output.BranchDiff, context) : undefined,
1423
+ CommitDiff: output.CommitDiff != null ? de_CommitDiffSourceCodeType(output.CommitDiff, context) : undefined,
1424
+ RepositoryHead: output.RepositoryHead != null ? de_RepositoryHeadSourceCodeType(output.RepositoryHead, context) : undefined,
1425
+ RequestMetadata: output.RequestMetadata != null ? de_RequestMetadata(output.RequestMetadata, context) : undefined,
1426
+ S3BucketRepository: output.S3BucketRepository != null ? de_S3BucketRepository(output.S3BucketRepository, context) : undefined,
1463
1427
  };
1464
1428
  };
1465
- const deserializeAws_restJson1TagMap = (output, context) => {
1429
+ const de_TagMap = (output, context) => {
1466
1430
  return Object.entries(output).reduce((acc, [key, value]) => {
1467
1431
  if (value === null) {
1468
1432
  return acc;