@aws-sdk/client-codecommit 3.121.0 → 3.130.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.
@@ -10417,42 +10417,26 @@ var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput,
10417
10417
  });
10418
10418
  }); };
10419
10419
  var serializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryInput = function (input, context) {
10420
- return __assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10421
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryName !== undefined &&
10422
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10420
+ return __assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10423
10421
  };
10424
10422
  var serializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesInput = function (input, context) {
10425
- return __assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10426
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryNames !== undefined &&
10427
- input.repositoryNames !== null && {
10423
+ return __assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryNames != null && {
10428
10424
  repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
10429
10425
  }));
10430
10426
  };
10431
10427
  var serializeAws_json1_1BatchDescribeMergeConflictsInput = function (input, context) {
10432
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel !== undefined &&
10433
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy !== undefined &&
10434
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10435
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.filePaths !== undefined &&
10436
- input.filePaths !== null && { filePaths: serializeAws_json1_1FilePaths(input.filePaths, context) })), (input.maxConflictFiles !== undefined &&
10437
- input.maxConflictFiles !== null && { maxConflictFiles: input.maxConflictFiles })), (input.maxMergeHunks !== undefined && input.maxMergeHunks !== null && { maxMergeHunks: input.maxMergeHunks })), (input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10438
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10439
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10428
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.filePaths != null && { filePaths: serializeAws_json1_1FilePaths(input.filePaths, context) })), (input.maxConflictFiles != null && { maxConflictFiles: input.maxConflictFiles })), (input.maxMergeHunks != null && { maxMergeHunks: input.maxMergeHunks })), (input.mergeOption != null && { mergeOption: input.mergeOption })), (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10440
10429
  };
10441
10430
  var serializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesInput = function (input, context) {
10442
- return __assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10443
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryNames !== undefined &&
10444
- input.repositoryNames !== null && {
10431
+ return __assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryNames != null && {
10445
10432
  repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
10446
10433
  }));
10447
10434
  };
10448
10435
  var serializeAws_json1_1BatchGetCommitsInput = function (input, context) {
10449
- return __assign(__assign({}, (input.commitIds !== undefined &&
10450
- input.commitIds !== null && { commitIds: serializeAws_json1_1CommitIdsInputList(input.commitIds, context) })), (input.repositoryName !== undefined &&
10451
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10436
+ return __assign(__assign({}, (input.commitIds != null && { commitIds: serializeAws_json1_1CommitIdsInputList(input.commitIds, context) })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10452
10437
  };
10453
10438
  var serializeAws_json1_1BatchGetRepositoriesInput = function (input, context) {
10454
- return __assign({}, (input.repositoryNames !== undefined &&
10455
- input.repositoryNames !== null && {
10439
+ return __assign({}, (input.repositoryNames != null && {
10456
10440
  repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
10457
10441
  }));
10458
10442
  };
@@ -10477,75 +10461,54 @@ var serializeAws_json1_1CommitIdsInputList = function (input, context) {
10477
10461
  });
10478
10462
  };
10479
10463
  var serializeAws_json1_1ConflictResolution = function (input, context) {
10480
- return __assign(__assign(__assign({}, (input.deleteFiles !== undefined &&
10481
- input.deleteFiles !== null && { deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context) })), (input.replaceContents !== undefined &&
10482
- input.replaceContents !== null && {
10464
+ return __assign(__assign(__assign({}, (input.deleteFiles != null && {
10465
+ deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context),
10466
+ })), (input.replaceContents != null && {
10483
10467
  replaceContents: serializeAws_json1_1ReplaceContentEntries(input.replaceContents, context),
10484
- })), (input.setFileModes !== undefined &&
10485
- input.setFileModes !== null && {
10468
+ })), (input.setFileModes != null && {
10486
10469
  setFileModes: serializeAws_json1_1SetFileModeEntries(input.setFileModes, context),
10487
10470
  }));
10488
10471
  };
10489
10472
  var serializeAws_json1_1CreateApprovalRuleTemplateInput = function (input, context) {
10490
- return __assign(__assign(__assign({}, (input.approvalRuleTemplateContent !== undefined &&
10491
- input.approvalRuleTemplateContent !== null && { approvalRuleTemplateContent: input.approvalRuleTemplateContent })), (input.approvalRuleTemplateDescription !== undefined &&
10492
- input.approvalRuleTemplateDescription !== null && {
10473
+ return __assign(__assign(__assign({}, (input.approvalRuleTemplateContent != null && {
10474
+ approvalRuleTemplateContent: input.approvalRuleTemplateContent,
10475
+ })), (input.approvalRuleTemplateDescription != null && {
10493
10476
  approvalRuleTemplateDescription: input.approvalRuleTemplateDescription,
10494
- })), (input.approvalRuleTemplateName !== undefined &&
10495
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10477
+ })), (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10496
10478
  };
10497
10479
  var serializeAws_json1_1CreateBranchInput = function (input, context) {
10498
- return __assign(__assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.commitId !== undefined && input.commitId !== null && { commitId: input.commitId })), (input.repositoryName !== undefined &&
10499
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10480
+ return __assign(__assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.commitId != null && { commitId: input.commitId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10500
10481
  };
10501
10482
  var serializeAws_json1_1CreateCommitInput = function (input, context) {
10502
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.deleteFiles !== undefined &&
10503
- input.deleteFiles !== null && { deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context) })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10504
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.parentCommitId !== undefined &&
10505
- input.parentCommitId !== null && { parentCommitId: input.parentCommitId })), (input.putFiles !== undefined &&
10506
- input.putFiles !== null && { putFiles: serializeAws_json1_1PutFileEntries(input.putFiles, context) })), (input.repositoryName !== undefined &&
10507
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.setFileModes !== undefined &&
10508
- input.setFileModes !== null && {
10483
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.branchName != null && { branchName: input.branchName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.deleteFiles != null && {
10484
+ deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context),
10485
+ })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.parentCommitId != null && { parentCommitId: input.parentCommitId })), (input.putFiles != null && { putFiles: serializeAws_json1_1PutFileEntries(input.putFiles, context) })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.setFileModes != null && {
10509
10486
  setFileModes: serializeAws_json1_1SetFileModeEntries(input.setFileModes, context),
10510
10487
  }));
10511
10488
  };
10512
10489
  var serializeAws_json1_1CreatePullRequestApprovalRuleInput = function (input, context) {
10513
- return __assign(__assign(__assign({}, (input.approvalRuleContent !== undefined &&
10514
- input.approvalRuleContent !== null && { approvalRuleContent: input.approvalRuleContent })), (input.approvalRuleName !== undefined &&
10515
- input.approvalRuleName !== null && { approvalRuleName: input.approvalRuleName })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10490
+ return __assign(__assign(__assign({}, (input.approvalRuleContent != null && { approvalRuleContent: input.approvalRuleContent })), (input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10516
10491
  };
10517
10492
  var serializeAws_json1_1CreatePullRequestInput = function (input, context) {
10518
10493
  var _a;
10519
- return __assign(__assign(__assign({ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.targets !== undefined &&
10520
- input.targets !== null && { targets: serializeAws_json1_1TargetList(input.targets, context) })), (input.title !== undefined && input.title !== null && { title: input.title }));
10494
+ return __assign(__assign(__assign({ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.targets != null && { targets: serializeAws_json1_1TargetList(input.targets, context) })), (input.title != null && { title: input.title }));
10521
10495
  };
10522
10496
  var serializeAws_json1_1CreateRepositoryInput = function (input, context) {
10523
- return __assign(__assign(__assign({}, (input.repositoryDescription !== undefined &&
10524
- input.repositoryDescription !== null && { repositoryDescription: input.repositoryDescription })), (input.repositoryName !== undefined &&
10525
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }));
10497
+ return __assign(__assign(__assign({}, (input.repositoryDescription != null && { repositoryDescription: input.repositoryDescription })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.tags != null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }));
10526
10498
  };
10527
10499
  var serializeAws_json1_1CreateUnreferencedMergeCommitInput = function (input, context) {
10528
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel !== undefined &&
10529
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution !== undefined &&
10530
- input.conflictResolution !== null && {
10500
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution != null && {
10531
10501
  conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
10532
- })), (input.conflictResolutionStrategy !== undefined &&
10533
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10534
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10535
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption })), (input.repositoryName !== undefined &&
10536
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10537
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10502
+ })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.mergeOption != null && { mergeOption: input.mergeOption })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10538
10503
  };
10539
10504
  var serializeAws_json1_1DeleteApprovalRuleTemplateInput = function (input, context) {
10540
- return __assign({}, (input.approvalRuleTemplateName !== undefined &&
10541
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10505
+ return __assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10542
10506
  };
10543
10507
  var serializeAws_json1_1DeleteBranchInput = function (input, context) {
10544
- return __assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.repositoryName !== undefined &&
10545
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10508
+ return __assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10546
10509
  };
10547
10510
  var serializeAws_json1_1DeleteCommentContentInput = function (input, context) {
10548
- return __assign({}, (input.commentId !== undefined && input.commentId !== null && { commentId: input.commentId }));
10511
+ return __assign({}, (input.commentId != null && { commentId: input.commentId }));
10549
10512
  };
10550
10513
  var serializeAws_json1_1DeleteFileEntries = function (input, context) {
10551
10514
  return input
@@ -10558,41 +10521,28 @@ var serializeAws_json1_1DeleteFileEntries = function (input, context) {
10558
10521
  });
10559
10522
  };
10560
10523
  var serializeAws_json1_1DeleteFileEntry = function (input, context) {
10561
- return __assign({}, (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath }));
10524
+ return __assign({}, (input.filePath != null && { filePath: input.filePath }));
10562
10525
  };
10563
10526
  var serializeAws_json1_1DeleteFileInput = function (input, context) {
10564
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.keepEmptyFolders !== undefined &&
10565
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.parentCommitId !== undefined &&
10566
- input.parentCommitId !== null && { parentCommitId: input.parentCommitId })), (input.repositoryName !== undefined &&
10567
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10527
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.email != null && { email: input.email })), (input.filePath != null && { filePath: input.filePath })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.name != null && { name: input.name })), (input.parentCommitId != null && { parentCommitId: input.parentCommitId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10568
10528
  };
10569
10529
  var serializeAws_json1_1DeletePullRequestApprovalRuleInput = function (input, context) {
10570
- return __assign(__assign({}, (input.approvalRuleName !== undefined &&
10571
- input.approvalRuleName !== null && { approvalRuleName: input.approvalRuleName })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10530
+ return __assign(__assign({}, (input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10572
10531
  };
10573
10532
  var serializeAws_json1_1DeleteRepositoryInput = function (input, context) {
10574
- return __assign({}, (input.repositoryName !== undefined &&
10575
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10533
+ return __assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName }));
10576
10534
  };
10577
10535
  var serializeAws_json1_1DescribeMergeConflictsInput = function (input, context) {
10578
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel !== undefined &&
10579
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy !== undefined &&
10580
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10581
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.maxMergeHunks !== undefined && input.maxMergeHunks !== null && { maxMergeHunks: input.maxMergeHunks })), (input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10582
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10583
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10536
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.filePath != null && { filePath: input.filePath })), (input.maxMergeHunks != null && { maxMergeHunks: input.maxMergeHunks })), (input.mergeOption != null && { mergeOption: input.mergeOption })), (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10584
10537
  };
10585
10538
  var serializeAws_json1_1DescribePullRequestEventsInput = function (input, context) {
10586
- return __assign(__assign(__assign(__assign(__assign({}, (input.actorArn !== undefined && input.actorArn !== null && { actorArn: input.actorArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.pullRequestEventType !== undefined &&
10587
- input.pullRequestEventType !== null && { pullRequestEventType: input.pullRequestEventType })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10539
+ return __assign(__assign(__assign(__assign(__assign({}, (input.actorArn != null && { actorArn: input.actorArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.pullRequestEventType != null && { pullRequestEventType: input.pullRequestEventType })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10588
10540
  };
10589
10541
  var serializeAws_json1_1DisassociateApprovalRuleTemplateFromRepositoryInput = function (input, context) {
10590
- return __assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10591
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryName !== undefined &&
10592
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10542
+ return __assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10593
10543
  };
10594
10544
  var serializeAws_json1_1EvaluatePullRequestApprovalRulesInput = function (input, context) {
10595
- return __assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
10545
+ return __assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.revisionId != null && { revisionId: input.revisionId }));
10596
10546
  };
10597
10547
  var serializeAws_json1_1FilePaths = function (input, context) {
10598
10548
  return input
@@ -10605,207 +10555,129 @@ var serializeAws_json1_1FilePaths = function (input, context) {
10605
10555
  });
10606
10556
  };
10607
10557
  var serializeAws_json1_1GetApprovalRuleTemplateInput = function (input, context) {
10608
- return __assign({}, (input.approvalRuleTemplateName !== undefined &&
10609
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10558
+ return __assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10610
10559
  };
10611
10560
  var serializeAws_json1_1GetBlobInput = function (input, context) {
10612
- return __assign(__assign({}, (input.blobId !== undefined && input.blobId !== null && { blobId: input.blobId })), (input.repositoryName !== undefined &&
10613
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10561
+ return __assign(__assign({}, (input.blobId != null && { blobId: input.blobId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10614
10562
  };
10615
10563
  var serializeAws_json1_1GetBranchInput = function (input, context) {
10616
- return __assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.repositoryName !== undefined &&
10617
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10564
+ return __assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10618
10565
  };
10619
10566
  var serializeAws_json1_1GetCommentInput = function (input, context) {
10620
- return __assign({}, (input.commentId !== undefined && input.commentId !== null && { commentId: input.commentId }));
10567
+ return __assign({}, (input.commentId != null && { commentId: input.commentId }));
10621
10568
  };
10622
10569
  var serializeAws_json1_1GetCommentReactionsInput = function (input, context) {
10623
- return __assign(__assign(__assign(__assign({}, (input.commentId !== undefined && input.commentId !== null && { commentId: input.commentId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.reactionUserArn !== undefined &&
10624
- input.reactionUserArn !== null && { reactionUserArn: input.reactionUserArn }));
10570
+ return __assign(__assign(__assign(__assign({}, (input.commentId != null && { commentId: input.commentId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.reactionUserArn != null && { reactionUserArn: input.reactionUserArn }));
10625
10571
  };
10626
10572
  var serializeAws_json1_1GetCommentsForComparedCommitInput = function (input, context) {
10627
- return __assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId !== undefined && input.afterCommitId !== null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId !== undefined &&
10628
- input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10629
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10573
+ return __assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId != null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10630
10574
  };
10631
10575
  var serializeAws_json1_1GetCommentsForPullRequestInput = function (input, context) {
10632
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId !== undefined && input.afterCommitId !== null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId !== undefined &&
10633
- input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.repositoryName !== undefined &&
10634
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10576
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId != null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10635
10577
  };
10636
10578
  var serializeAws_json1_1GetCommitInput = function (input, context) {
10637
- return __assign(__assign({}, (input.commitId !== undefined && input.commitId !== null && { commitId: input.commitId })), (input.repositoryName !== undefined &&
10638
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10579
+ return __assign(__assign({}, (input.commitId != null && { commitId: input.commitId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10639
10580
  };
10640
10581
  var serializeAws_json1_1GetDifferencesInput = function (input, context) {
10641
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.afterCommitSpecifier !== undefined &&
10642
- input.afterCommitSpecifier !== null && { afterCommitSpecifier: input.afterCommitSpecifier })), (input.afterPath !== undefined && input.afterPath !== null && { afterPath: input.afterPath })), (input.beforeCommitSpecifier !== undefined &&
10643
- input.beforeCommitSpecifier !== null && { beforeCommitSpecifier: input.beforeCommitSpecifier })), (input.beforePath !== undefined && input.beforePath !== null && { beforePath: input.beforePath })), (input.repositoryName !== undefined &&
10644
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10582
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.afterCommitSpecifier != null && { afterCommitSpecifier: input.afterCommitSpecifier })), (input.afterPath != null && { afterPath: input.afterPath })), (input.beforeCommitSpecifier != null && { beforeCommitSpecifier: input.beforeCommitSpecifier })), (input.beforePath != null && { beforePath: input.beforePath })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10645
10583
  };
10646
10584
  var serializeAws_json1_1GetFileInput = function (input, context) {
10647
- return __assign(__assign(__assign({}, (input.commitSpecifier !== undefined &&
10648
- input.commitSpecifier !== null && { commitSpecifier: input.commitSpecifier })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.repositoryName !== undefined &&
10649
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10585
+ return __assign(__assign(__assign({}, (input.commitSpecifier != null && { commitSpecifier: input.commitSpecifier })), (input.filePath != null && { filePath: input.filePath })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10650
10586
  };
10651
10587
  var serializeAws_json1_1GetFolderInput = function (input, context) {
10652
- return __assign(__assign(__assign({}, (input.commitSpecifier !== undefined &&
10653
- input.commitSpecifier !== null && { commitSpecifier: input.commitSpecifier })), (input.folderPath !== undefined && input.folderPath !== null && { folderPath: input.folderPath })), (input.repositoryName !== undefined &&
10654
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10588
+ return __assign(__assign(__assign({}, (input.commitSpecifier != null && { commitSpecifier: input.commitSpecifier })), (input.folderPath != null && { folderPath: input.folderPath })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10655
10589
  };
10656
10590
  var serializeAws_json1_1GetMergeCommitInput = function (input, context) {
10657
- return __assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel !== undefined &&
10658
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy !== undefined &&
10659
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10660
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName !== undefined &&
10661
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10662
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10591
+ return __assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10663
10592
  };
10664
10593
  var serializeAws_json1_1GetMergeConflictsInput = function (input, context) {
10665
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel !== undefined &&
10666
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy !== undefined &&
10667
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10668
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.maxConflictFiles !== undefined &&
10669
- input.maxConflictFiles !== null && { maxConflictFiles: input.maxConflictFiles })), (input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10670
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10671
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10594
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.maxConflictFiles != null && { maxConflictFiles: input.maxConflictFiles })), (input.mergeOption != null && { mergeOption: input.mergeOption })), (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10672
10595
  };
10673
10596
  var serializeAws_json1_1GetMergeOptionsInput = function (input, context) {
10674
- return __assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel !== undefined &&
10675
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy !== undefined &&
10676
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10677
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName !== undefined &&
10678
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10679
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10597
+ return __assign(__assign(__assign(__assign(__assign({}, (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }));
10680
10598
  };
10681
10599
  var serializeAws_json1_1GetPullRequestApprovalStatesInput = function (input, context) {
10682
- return __assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
10600
+ return __assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.revisionId != null && { revisionId: input.revisionId }));
10683
10601
  };
10684
10602
  var serializeAws_json1_1GetPullRequestInput = function (input, context) {
10685
- return __assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10603
+ return __assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10686
10604
  };
10687
10605
  var serializeAws_json1_1GetPullRequestOverrideStateInput = function (input, context) {
10688
- return __assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
10606
+ return __assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.revisionId != null && { revisionId: input.revisionId }));
10689
10607
  };
10690
10608
  var serializeAws_json1_1GetRepositoryInput = function (input, context) {
10691
- return __assign({}, (input.repositoryName !== undefined &&
10692
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10609
+ return __assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName }));
10693
10610
  };
10694
10611
  var serializeAws_json1_1GetRepositoryTriggersInput = function (input, context) {
10695
- return __assign({}, (input.repositoryName !== undefined &&
10696
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10612
+ return __assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName }));
10697
10613
  };
10698
10614
  var serializeAws_json1_1ListApprovalRuleTemplatesInput = function (input, context) {
10699
- return __assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
10615
+ return __assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
10700
10616
  };
10701
10617
  var serializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryInput = function (input, context) {
10702
- return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10703
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10618
+ return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10704
10619
  };
10705
10620
  var serializeAws_json1_1ListBranchesInput = function (input, context) {
10706
- return __assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
10707
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10621
+ return __assign(__assign({}, (input.nextToken != null && { nextToken: input.nextToken })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10708
10622
  };
10709
10623
  var serializeAws_json1_1ListPullRequestsInput = function (input, context) {
10710
- return __assign(__assign(__assign(__assign(__assign({}, (input.authorArn !== undefined && input.authorArn !== null && { authorArn: input.authorArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.pullRequestStatus !== undefined &&
10711
- input.pullRequestStatus !== null && { pullRequestStatus: input.pullRequestStatus })), (input.repositoryName !== undefined &&
10712
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10624
+ return __assign(__assign(__assign(__assign(__assign({}, (input.authorArn != null && { authorArn: input.authorArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.pullRequestStatus != null && { pullRequestStatus: input.pullRequestStatus })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10713
10625
  };
10714
10626
  var serializeAws_json1_1ListRepositoriesForApprovalRuleTemplateInput = function (input, context) {
10715
- return __assign(__assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10716
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
10627
+ return __assign(__assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
10717
10628
  };
10718
10629
  var serializeAws_json1_1ListRepositoriesInput = function (input, context) {
10719
- return __assign(__assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.order !== undefined && input.order !== null && { order: input.order })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }));
10630
+ return __assign(__assign(__assign({}, (input.nextToken != null && { nextToken: input.nextToken })), (input.order != null && { order: input.order })), (input.sortBy != null && { sortBy: input.sortBy }));
10720
10631
  };
10721
10632
  var serializeAws_json1_1ListTagsForResourceInput = function (input, context) {
10722
- return __assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
10633
+ return __assign(__assign({}, (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceArn != null && { resourceArn: input.resourceArn }));
10723
10634
  };
10724
10635
  var serializeAws_json1_1Location = function (input, context) {
10725
- return __assign(__assign(__assign({}, (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.filePosition !== undefined && input.filePosition !== null && { filePosition: input.filePosition })), (input.relativeFileVersion !== undefined &&
10726
- input.relativeFileVersion !== null && { relativeFileVersion: input.relativeFileVersion }));
10636
+ return __assign(__assign(__assign({}, (input.filePath != null && { filePath: input.filePath })), (input.filePosition != null && { filePosition: input.filePosition })), (input.relativeFileVersion != null && { relativeFileVersion: input.relativeFileVersion }));
10727
10637
  };
10728
10638
  var serializeAws_json1_1MergeBranchesByFastForwardInput = function (input, context) {
10729
- return __assign(__assign(__assign(__assign({}, (input.destinationCommitSpecifier !== undefined &&
10730
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName !== undefined &&
10731
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10732
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }));
10639
+ return __assign(__assign(__assign(__assign({}, (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch != null && { targetBranch: input.targetBranch }));
10733
10640
  };
10734
10641
  var serializeAws_json1_1MergeBranchesBySquashInput = function (input, context) {
10735
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel !== undefined &&
10736
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution !== undefined &&
10737
- input.conflictResolution !== null && {
10642
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution != null && {
10738
10643
  conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
10739
- })), (input.conflictResolutionStrategy !== undefined &&
10740
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10741
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10742
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.repositoryName !== undefined &&
10743
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10744
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }));
10644
+ })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch != null && { targetBranch: input.targetBranch }));
10745
10645
  };
10746
10646
  var serializeAws_json1_1MergeBranchesByThreeWayInput = function (input, context) {
10747
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel !== undefined &&
10748
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution !== undefined &&
10749
- input.conflictResolution !== null && {
10647
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution != null && {
10750
10648
  conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
10751
- })), (input.conflictResolutionStrategy !== undefined &&
10752
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier !== undefined &&
10753
- input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10754
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.repositoryName !== undefined &&
10755
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier !== undefined &&
10756
- input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }));
10649
+ })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier })), (input.targetBranch != null && { targetBranch: input.targetBranch }));
10757
10650
  };
10758
10651
  var serializeAws_json1_1MergePullRequestByFastForwardInput = function (input, context) {
10759
- return __assign(__assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.repositoryName !== undefined &&
10760
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitId !== undefined &&
10761
- input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }));
10652
+ return __assign(__assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }));
10762
10653
  };
10763
10654
  var serializeAws_json1_1MergePullRequestBySquashInput = function (input, context) {
10764
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel !== undefined &&
10765
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution !== undefined &&
10766
- input.conflictResolution !== null && {
10655
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution != null && {
10767
10656
  conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
10768
- })), (input.conflictResolutionStrategy !== undefined &&
10769
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10770
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.repositoryName !== undefined &&
10771
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitId !== undefined &&
10772
- input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }));
10657
+ })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }));
10773
10658
  };
10774
10659
  var serializeAws_json1_1MergePullRequestByThreeWayInput = function (input, context) {
10775
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName !== undefined && input.authorName !== null && { authorName: input.authorName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel !== undefined &&
10776
- input.conflictDetailLevel !== null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution !== undefined &&
10777
- input.conflictResolution !== null && {
10660
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorName != null && { authorName: input.authorName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel })), (input.conflictResolution != null && {
10778
10661
  conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
10779
- })), (input.conflictResolutionStrategy !== undefined &&
10780
- input.conflictResolutionStrategy !== null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.keepEmptyFolders !== undefined &&
10781
- input.keepEmptyFolders !== null && { keepEmptyFolders: input.keepEmptyFolders })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.repositoryName !== undefined &&
10782
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceCommitId !== undefined &&
10783
- input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }));
10662
+ })), (input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy })), (input.email != null && { email: input.email })), (input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }));
10784
10663
  };
10785
10664
  var serializeAws_json1_1OverridePullRequestApprovalRulesInput = function (input, context) {
10786
- return __assign(__assign(__assign({}, (input.overrideStatus !== undefined &&
10787
- input.overrideStatus !== null && { overrideStatus: input.overrideStatus })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
10665
+ return __assign(__assign(__assign({}, (input.overrideStatus != null && { overrideStatus: input.overrideStatus })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.revisionId != null && { revisionId: input.revisionId }));
10788
10666
  };
10789
10667
  var serializeAws_json1_1PostCommentForComparedCommitInput = function (input, context) {
10790
10668
  var _a;
10791
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId !== undefined && input.afterCommitId !== null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId !== undefined &&
10792
- input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId })), { clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.content !== undefined && input.content !== null && { content: input.content })), (input.location !== undefined &&
10793
- input.location !== null && { location: serializeAws_json1_1Location(input.location, context) })), (input.repositoryName !== undefined &&
10794
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10669
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId != null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId })), { clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.content != null && { content: input.content })), (input.location != null && { location: serializeAws_json1_1Location(input.location, context) })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10795
10670
  };
10796
10671
  var serializeAws_json1_1PostCommentForPullRequestInput = function (input, context) {
10797
10672
  var _a;
10798
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId !== undefined && input.afterCommitId !== null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId !== undefined &&
10799
- input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId })), { clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.content !== undefined && input.content !== null && { content: input.content })), (input.location !== undefined &&
10800
- input.location !== null && { location: serializeAws_json1_1Location(input.location, context) })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.repositoryName !== undefined &&
10801
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10673
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.afterCommitId != null && { afterCommitId: input.afterCommitId })), (input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId })), { clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.content != null && { content: input.content })), (input.location != null && { location: serializeAws_json1_1Location(input.location, context) })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10802
10674
  };
10803
10675
  var serializeAws_json1_1PostCommentReplyInput = function (input, context) {
10804
10676
  var _a;
10805
- return __assign(__assign({ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.content !== undefined && input.content !== null && { content: input.content })), (input.inReplyTo !== undefined && input.inReplyTo !== null && { inReplyTo: input.inReplyTo }));
10677
+ return __assign(__assign({ clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.content != null && { content: input.content })), (input.inReplyTo != null && { inReplyTo: input.inReplyTo }));
10806
10678
  };
10807
10679
  var serializeAws_json1_1PutCommentReactionInput = function (input, context) {
10808
- return __assign(__assign({}, (input.commentId !== undefined && input.commentId !== null && { commentId: input.commentId })), (input.reactionValue !== undefined && input.reactionValue !== null && { reactionValue: input.reactionValue }));
10680
+ return __assign(__assign({}, (input.commentId != null && { commentId: input.commentId })), (input.reactionValue != null && { reactionValue: input.reactionValue }));
10809
10681
  };
10810
10682
  var serializeAws_json1_1PutFileEntries = function (input, context) {
10811
10683
  return input
@@ -10818,20 +10690,13 @@ var serializeAws_json1_1PutFileEntries = function (input, context) {
10818
10690
  });
10819
10691
  };
10820
10692
  var serializeAws_json1_1PutFileEntry = function (input, context) {
10821
- return __assign(__assign(__assign(__assign({}, (input.fileContent !== undefined &&
10822
- input.fileContent !== null && { fileContent: context.base64Encoder(input.fileContent) })), (input.fileMode !== undefined && input.fileMode !== null && { fileMode: input.fileMode })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.sourceFile !== undefined &&
10823
- input.sourceFile !== null && { sourceFile: serializeAws_json1_1SourceFileSpecifier(input.sourceFile, context) }));
10693
+ return __assign(__assign(__assign(__assign({}, (input.fileContent != null && { fileContent: context.base64Encoder(input.fileContent) })), (input.fileMode != null && { fileMode: input.fileMode })), (input.filePath != null && { filePath: input.filePath })), (input.sourceFile != null && { sourceFile: serializeAws_json1_1SourceFileSpecifier(input.sourceFile, context) }));
10824
10694
  };
10825
10695
  var serializeAws_json1_1PutFileInput = function (input, context) {
10826
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage })), (input.email !== undefined && input.email !== null && { email: input.email })), (input.fileContent !== undefined &&
10827
- input.fileContent !== null && { fileContent: context.base64Encoder(input.fileContent) })), (input.fileMode !== undefined && input.fileMode !== null && { fileMode: input.fileMode })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.parentCommitId !== undefined &&
10828
- input.parentCommitId !== null && { parentCommitId: input.parentCommitId })), (input.repositoryName !== undefined &&
10829
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10696
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.email != null && { email: input.email })), (input.fileContent != null && { fileContent: context.base64Encoder(input.fileContent) })), (input.fileMode != null && { fileMode: input.fileMode })), (input.filePath != null && { filePath: input.filePath })), (input.name != null && { name: input.name })), (input.parentCommitId != null && { parentCommitId: input.parentCommitId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10830
10697
  };
10831
10698
  var serializeAws_json1_1PutRepositoryTriggersInput = function (input, context) {
10832
- return __assign(__assign({}, (input.repositoryName !== undefined &&
10833
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.triggers !== undefined &&
10834
- input.triggers !== null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }));
10699
+ return __assign(__assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.triggers != null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }));
10835
10700
  };
10836
10701
  var serializeAws_json1_1ReplaceContentEntries = function (input, context) {
10837
10702
  return input
@@ -10844,8 +10709,7 @@ var serializeAws_json1_1ReplaceContentEntries = function (input, context) {
10844
10709
  });
10845
10710
  };
10846
10711
  var serializeAws_json1_1ReplaceContentEntry = function (input, context) {
10847
- return __assign(__assign(__assign(__assign({}, (input.content !== undefined && input.content !== null && { content: context.base64Encoder(input.content) })), (input.fileMode !== undefined && input.fileMode !== null && { fileMode: input.fileMode })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.replacementType !== undefined &&
10848
- input.replacementType !== null && { replacementType: input.replacementType }));
10712
+ return __assign(__assign(__assign(__assign({}, (input.content != null && { content: context.base64Encoder(input.content) })), (input.fileMode != null && { fileMode: input.fileMode })), (input.filePath != null && { filePath: input.filePath })), (input.replacementType != null && { replacementType: input.replacementType }));
10849
10713
  };
10850
10714
  var serializeAws_json1_1RepositoryNameList = function (input, context) {
10851
10715
  return input
@@ -10858,10 +10722,7 @@ var serializeAws_json1_1RepositoryNameList = function (input, context) {
10858
10722
  });
10859
10723
  };
10860
10724
  var serializeAws_json1_1RepositoryTrigger = function (input, context) {
10861
- return __assign(__assign(__assign(__assign(__assign({}, (input.branches !== undefined &&
10862
- input.branches !== null && { branches: serializeAws_json1_1BranchNameList(input.branches, context) })), (input.customData !== undefined && input.customData !== null && { customData: input.customData })), (input.destinationArn !== undefined &&
10863
- input.destinationArn !== null && { destinationArn: input.destinationArn })), (input.events !== undefined &&
10864
- input.events !== null && { events: serializeAws_json1_1RepositoryTriggerEventList(input.events, context) })), (input.name !== undefined && input.name !== null && { name: input.name }));
10725
+ return __assign(__assign(__assign(__assign(__assign({}, (input.branches != null && { branches: serializeAws_json1_1BranchNameList(input.branches, context) })), (input.customData != null && { customData: input.customData })), (input.destinationArn != null && { destinationArn: input.destinationArn })), (input.events != null && { events: serializeAws_json1_1RepositoryTriggerEventList(input.events, context) })), (input.name != null && { name: input.name }));
10865
10726
  };
10866
10727
  var serializeAws_json1_1RepositoryTriggerEventList = function (input, context) {
10867
10728
  return input
@@ -10894,10 +10755,10 @@ var serializeAws_json1_1SetFileModeEntries = function (input, context) {
10894
10755
  });
10895
10756
  };
10896
10757
  var serializeAws_json1_1SetFileModeEntry = function (input, context) {
10897
- return __assign(__assign({}, (input.fileMode !== undefined && input.fileMode !== null && { fileMode: input.fileMode })), (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath }));
10758
+ return __assign(__assign({}, (input.fileMode != null && { fileMode: input.fileMode })), (input.filePath != null && { filePath: input.filePath }));
10898
10759
  };
10899
10760
  var serializeAws_json1_1SourceFileSpecifier = function (input, context) {
10900
- return __assign(__assign({}, (input.filePath !== undefined && input.filePath !== null && { filePath: input.filePath })), (input.isMove !== undefined && input.isMove !== null && { isMove: input.isMove }));
10761
+ return __assign(__assign({}, (input.filePath != null && { filePath: input.filePath })), (input.isMove != null && { isMove: input.isMove }));
10901
10762
  };
10902
10763
  var serializeAws_json1_1TagKeysList = function (input, context) {
10903
10764
  return input
@@ -10910,7 +10771,7 @@ var serializeAws_json1_1TagKeysList = function (input, context) {
10910
10771
  });
10911
10772
  };
10912
10773
  var serializeAws_json1_1TagResourceInput = function (input, context) {
10913
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }));
10774
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }));
10914
10775
  };
10915
10776
  var serializeAws_json1_1TagsMap = function (input, context) {
10916
10777
  return Object.entries(input).reduce(function (acc, _a) {
@@ -10923,10 +10784,7 @@ var serializeAws_json1_1TagsMap = function (input, context) {
10923
10784
  }, {});
10924
10785
  };
10925
10786
  var serializeAws_json1_1Target = function (input, context) {
10926
- return __assign(__assign(__assign({}, (input.destinationReference !== undefined &&
10927
- input.destinationReference !== null && { destinationReference: input.destinationReference })), (input.repositoryName !== undefined &&
10928
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.sourceReference !== undefined &&
10929
- input.sourceReference !== null && { sourceReference: input.sourceReference }));
10787
+ return __assign(__assign(__assign({}, (input.destinationReference != null && { destinationReference: input.destinationReference })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.sourceReference != null && { sourceReference: input.sourceReference }));
10930
10788
  };
10931
10789
  var serializeAws_json1_1TargetList = function (input, context) {
10932
10790
  return input
@@ -10939,66 +10797,52 @@ var serializeAws_json1_1TargetList = function (input, context) {
10939
10797
  });
10940
10798
  };
10941
10799
  var serializeAws_json1_1TestRepositoryTriggersInput = function (input, context) {
10942
- return __assign(__assign({}, (input.repositoryName !== undefined &&
10943
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.triggers !== undefined &&
10944
- input.triggers !== null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }));
10800
+ return __assign(__assign({}, (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.triggers != null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }));
10945
10801
  };
10946
10802
  var serializeAws_json1_1UntagResourceInput = function (input, context) {
10947
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
10948
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeysList(input.tagKeys, context) }));
10803
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeysList(input.tagKeys, context) }));
10949
10804
  };
10950
10805
  var serializeAws_json1_1UpdateApprovalRuleTemplateContentInput = function (input, context) {
10951
- return __assign(__assign(__assign({}, (input.approvalRuleTemplateName !== undefined &&
10952
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.existingRuleContentSha256 !== undefined &&
10953
- input.existingRuleContentSha256 !== null && { existingRuleContentSha256: input.existingRuleContentSha256 })), (input.newRuleContent !== undefined &&
10954
- input.newRuleContent !== null && { newRuleContent: input.newRuleContent }));
10806
+ return __assign(__assign(__assign({}, (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName })), (input.existingRuleContentSha256 != null && { existingRuleContentSha256: input.existingRuleContentSha256 })), (input.newRuleContent != null && { newRuleContent: input.newRuleContent }));
10955
10807
  };
10956
10808
  var serializeAws_json1_1UpdateApprovalRuleTemplateDescriptionInput = function (input, context) {
10957
- return __assign(__assign({}, (input.approvalRuleTemplateDescription !== undefined &&
10958
- input.approvalRuleTemplateDescription !== null && {
10809
+ return __assign(__assign({}, (input.approvalRuleTemplateDescription != null && {
10959
10810
  approvalRuleTemplateDescription: input.approvalRuleTemplateDescription,
10960
- })), (input.approvalRuleTemplateName !== undefined &&
10961
- input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10811
+ })), (input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }));
10962
10812
  };
10963
10813
  var serializeAws_json1_1UpdateApprovalRuleTemplateNameInput = function (input, context) {
10964
- return __assign(__assign({}, (input.newApprovalRuleTemplateName !== undefined &&
10965
- input.newApprovalRuleTemplateName !== null && { newApprovalRuleTemplateName: input.newApprovalRuleTemplateName })), (input.oldApprovalRuleTemplateName !== undefined &&
10966
- input.oldApprovalRuleTemplateName !== null && { oldApprovalRuleTemplateName: input.oldApprovalRuleTemplateName }));
10814
+ return __assign(__assign({}, (input.newApprovalRuleTemplateName != null && {
10815
+ newApprovalRuleTemplateName: input.newApprovalRuleTemplateName,
10816
+ })), (input.oldApprovalRuleTemplateName != null && {
10817
+ oldApprovalRuleTemplateName: input.oldApprovalRuleTemplateName,
10818
+ }));
10967
10819
  };
10968
10820
  var serializeAws_json1_1UpdateCommentInput = function (input, context) {
10969
- return __assign(__assign({}, (input.commentId !== undefined && input.commentId !== null && { commentId: input.commentId })), (input.content !== undefined && input.content !== null && { content: input.content }));
10821
+ return __assign(__assign({}, (input.commentId != null && { commentId: input.commentId })), (input.content != null && { content: input.content }));
10970
10822
  };
10971
10823
  var serializeAws_json1_1UpdateDefaultBranchInput = function (input, context) {
10972
- return __assign(__assign({}, (input.defaultBranchName !== undefined &&
10973
- input.defaultBranchName !== null && { defaultBranchName: input.defaultBranchName })), (input.repositoryName !== undefined &&
10974
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10824
+ return __assign(__assign({}, (input.defaultBranchName != null && { defaultBranchName: input.defaultBranchName })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10975
10825
  };
10976
10826
  var serializeAws_json1_1UpdatePullRequestApprovalRuleContentInput = function (input, context) {
10977
- return __assign(__assign(__assign(__assign({}, (input.approvalRuleName !== undefined &&
10978
- input.approvalRuleName !== null && { approvalRuleName: input.approvalRuleName })), (input.existingRuleContentSha256 !== undefined &&
10979
- input.existingRuleContentSha256 !== null && { existingRuleContentSha256: input.existingRuleContentSha256 })), (input.newRuleContent !== undefined &&
10980
- input.newRuleContent !== null && { newRuleContent: input.newRuleContent })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10827
+ return __assign(__assign(__assign(__assign({}, (input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName })), (input.existingRuleContentSha256 != null && { existingRuleContentSha256: input.existingRuleContentSha256 })), (input.newRuleContent != null && { newRuleContent: input.newRuleContent })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10981
10828
  };
10982
10829
  var serializeAws_json1_1UpdatePullRequestApprovalStateInput = function (input, context) {
10983
- return __assign(__assign(__assign({}, (input.approvalState !== undefined && input.approvalState !== null && { approvalState: input.approvalState })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }));
10830
+ return __assign(__assign(__assign({}, (input.approvalState != null && { approvalState: input.approvalState })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.revisionId != null && { revisionId: input.revisionId }));
10984
10831
  };
10985
10832
  var serializeAws_json1_1UpdatePullRequestDescriptionInput = function (input, context) {
10986
- return __assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }));
10833
+ return __assign(__assign({}, (input.description != null && { description: input.description })), (input.pullRequestId != null && { pullRequestId: input.pullRequestId }));
10987
10834
  };
10988
10835
  var serializeAws_json1_1UpdatePullRequestStatusInput = function (input, context) {
10989
- return __assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.pullRequestStatus !== undefined &&
10990
- input.pullRequestStatus !== null && { pullRequestStatus: input.pullRequestStatus }));
10836
+ return __assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.pullRequestStatus != null && { pullRequestStatus: input.pullRequestStatus }));
10991
10837
  };
10992
10838
  var serializeAws_json1_1UpdatePullRequestTitleInput = function (input, context) {
10993
- return __assign(__assign({}, (input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId })), (input.title !== undefined && input.title !== null && { title: input.title }));
10839
+ return __assign(__assign({}, (input.pullRequestId != null && { pullRequestId: input.pullRequestId })), (input.title != null && { title: input.title }));
10994
10840
  };
10995
10841
  var serializeAws_json1_1UpdateRepositoryDescriptionInput = function (input, context) {
10996
- return __assign(__assign({}, (input.repositoryDescription !== undefined &&
10997
- input.repositoryDescription !== null && { repositoryDescription: input.repositoryDescription })), (input.repositoryName !== undefined &&
10998
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
10842
+ return __assign(__assign({}, (input.repositoryDescription != null && { repositoryDescription: input.repositoryDescription })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
10999
10843
  };
11000
10844
  var serializeAws_json1_1UpdateRepositoryNameInput = function (input, context) {
11001
- return __assign(__assign({}, (input.newName !== undefined && input.newName !== null && { newName: input.newName })), (input.oldName !== undefined && input.oldName !== null && { oldName: input.oldName }));
10845
+ return __assign(__assign({}, (input.newName != null && { newName: input.newName })), (input.oldName != null && { oldName: input.oldName }));
11002
10846
  };
11003
10847
  var deserializeAws_json1_1ActorDoesNotExistException = function (output, context) {
11004
10848
  return {
@@ -11027,14 +10871,14 @@ var deserializeAws_json1_1ApprovalRule = function (output, context) {
11027
10871
  approvalRuleContent: __expectString(output.approvalRuleContent),
11028
10872
  approvalRuleId: __expectString(output.approvalRuleId),
11029
10873
  approvalRuleName: __expectString(output.approvalRuleName),
11030
- creationDate: output.creationDate !== undefined && output.creationDate !== null
10874
+ creationDate: output.creationDate != null
11031
10875
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
11032
10876
  : undefined,
11033
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
10877
+ lastModifiedDate: output.lastModifiedDate != null
11034
10878
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
11035
10879
  : undefined,
11036
10880
  lastModifiedUser: __expectString(output.lastModifiedUser),
11037
- originApprovalRuleTemplate: output.originApprovalRuleTemplate !== undefined && output.originApprovalRuleTemplate !== null
10881
+ originApprovalRuleTemplate: output.originApprovalRuleTemplate != null
11038
10882
  ? deserializeAws_json1_1OriginApprovalRuleTemplate(output.originApprovalRuleTemplate, context)
11039
10883
  : undefined,
11040
10884
  ruleContentSha256: __expectString(output.ruleContentSha256),
@@ -11112,10 +10956,10 @@ var deserializeAws_json1_1ApprovalRuleTemplate = function (output, context) {
11112
10956
  approvalRuleTemplateDescription: __expectString(output.approvalRuleTemplateDescription),
11113
10957
  approvalRuleTemplateId: __expectString(output.approvalRuleTemplateId),
11114
10958
  approvalRuleTemplateName: __expectString(output.approvalRuleTemplateName),
11115
- creationDate: output.creationDate !== undefined && output.creationDate !== null
10959
+ creationDate: output.creationDate != null
11116
10960
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
11117
10961
  : undefined,
11118
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
10962
+ lastModifiedDate: output.lastModifiedDate != null
11119
10963
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
11120
10964
  : undefined,
11121
10965
  lastModifiedUser: __expectString(output.lastModifiedUser),
@@ -11194,10 +11038,10 @@ var deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesErro
11194
11038
  };
11195
11039
  var deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesOutput = function (output, context) {
11196
11040
  return {
11197
- associatedRepositoryNames: output.associatedRepositoryNames !== undefined && output.associatedRepositoryNames !== null
11041
+ associatedRepositoryNames: output.associatedRepositoryNames != null
11198
11042
  ? deserializeAws_json1_1RepositoryNameList(output.associatedRepositoryNames, context)
11199
11043
  : undefined,
11200
- errors: output.errors !== undefined && output.errors !== null
11044
+ errors: output.errors != null
11201
11045
  ? deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesErrorsList(output.errors, context)
11202
11046
  : undefined,
11203
11047
  };
@@ -11223,11 +11067,9 @@ var deserializeAws_json1_1BatchDescribeMergeConflictsErrors = function (output,
11223
11067
  var deserializeAws_json1_1BatchDescribeMergeConflictsOutput = function (output, context) {
11224
11068
  return {
11225
11069
  baseCommitId: __expectString(output.baseCommitId),
11226
- conflicts: output.conflicts !== undefined && output.conflicts !== null
11227
- ? deserializeAws_json1_1Conflicts(output.conflicts, context)
11228
- : undefined,
11070
+ conflicts: output.conflicts != null ? deserializeAws_json1_1Conflicts(output.conflicts, context) : undefined,
11229
11071
  destinationCommitId: __expectString(output.destinationCommitId),
11230
- errors: output.errors !== undefined && output.errors !== null
11072
+ errors: output.errors != null
11231
11073
  ? deserializeAws_json1_1BatchDescribeMergeConflictsErrors(output.errors, context)
11232
11074
  : undefined,
11233
11075
  nextToken: __expectString(output.nextToken),
@@ -11254,10 +11096,10 @@ var deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesE
11254
11096
  };
11255
11097
  var deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput = function (output, context) {
11256
11098
  return {
11257
- disassociatedRepositoryNames: output.disassociatedRepositoryNames !== undefined && output.disassociatedRepositoryNames !== null
11099
+ disassociatedRepositoryNames: output.disassociatedRepositoryNames != null
11258
11100
  ? deserializeAws_json1_1RepositoryNameList(output.disassociatedRepositoryNames, context)
11259
11101
  : undefined,
11260
- errors: output.errors !== undefined && output.errors !== null
11102
+ errors: output.errors != null
11261
11103
  ? deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorsList(output.errors, context)
11262
11104
  : undefined,
11263
11105
  };
@@ -11282,20 +11124,16 @@ var deserializeAws_json1_1BatchGetCommitsErrorsList = function (output, context)
11282
11124
  };
11283
11125
  var deserializeAws_json1_1BatchGetCommitsOutput = function (output, context) {
11284
11126
  return {
11285
- commits: output.commits !== undefined && output.commits !== null
11286
- ? deserializeAws_json1_1CommitObjectsList(output.commits, context)
11287
- : undefined,
11288
- errors: output.errors !== undefined && output.errors !== null
11289
- ? deserializeAws_json1_1BatchGetCommitsErrorsList(output.errors, context)
11290
- : undefined,
11127
+ commits: output.commits != null ? deserializeAws_json1_1CommitObjectsList(output.commits, context) : undefined,
11128
+ errors: output.errors != null ? deserializeAws_json1_1BatchGetCommitsErrorsList(output.errors, context) : undefined,
11291
11129
  };
11292
11130
  };
11293
11131
  var deserializeAws_json1_1BatchGetRepositoriesOutput = function (output, context) {
11294
11132
  return {
11295
- repositories: output.repositories !== undefined && output.repositories !== null
11133
+ repositories: output.repositories != null
11296
11134
  ? deserializeAws_json1_1RepositoryMetadataList(output.repositories, context)
11297
11135
  : undefined,
11298
- repositoriesNotFound: output.repositoriesNotFound !== undefined && output.repositoriesNotFound !== null
11136
+ repositoriesNotFound: output.repositoriesNotFound != null
11299
11137
  ? deserializeAws_json1_1RepositoryNotFoundList(output.repositoriesNotFound, context)
11300
11138
  : undefined,
11301
11139
  };
@@ -11388,21 +11226,21 @@ var deserializeAws_json1_1ClientRequestTokenRequiredException = function (output
11388
11226
  var deserializeAws_json1_1Comment = function (output, context) {
11389
11227
  return {
11390
11228
  authorArn: __expectString(output.authorArn),
11391
- callerReactions: output.callerReactions !== undefined && output.callerReactions !== null
11229
+ callerReactions: output.callerReactions != null
11392
11230
  ? deserializeAws_json1_1CallerReactions(output.callerReactions, context)
11393
11231
  : undefined,
11394
11232
  clientRequestToken: __expectString(output.clientRequestToken),
11395
11233
  commentId: __expectString(output.commentId),
11396
11234
  content: __expectString(output.content),
11397
- creationDate: output.creationDate !== undefined && output.creationDate !== null
11235
+ creationDate: output.creationDate != null
11398
11236
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
11399
11237
  : undefined,
11400
11238
  deleted: __expectBoolean(output.deleted),
11401
11239
  inReplyTo: __expectString(output.inReplyTo),
11402
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
11240
+ lastModifiedDate: output.lastModifiedDate != null
11403
11241
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
11404
11242
  : undefined,
11405
- reactionCounts: output.reactionCounts !== undefined && output.reactionCounts !== null
11243
+ reactionCounts: output.reactionCounts != null
11406
11244
  ? deserializeAws_json1_1ReactionCountsMap(output.reactionCounts, context)
11407
11245
  : undefined,
11408
11246
  };
@@ -11454,12 +11292,8 @@ var deserializeAws_json1_1CommentsForComparedCommit = function (output, context)
11454
11292
  afterCommitId: __expectString(output.afterCommitId),
11455
11293
  beforeBlobId: __expectString(output.beforeBlobId),
11456
11294
  beforeCommitId: __expectString(output.beforeCommitId),
11457
- comments: output.comments !== undefined && output.comments !== null
11458
- ? deserializeAws_json1_1Comments(output.comments, context)
11459
- : undefined,
11460
- location: output.location !== undefined && output.location !== null
11461
- ? deserializeAws_json1_1Location(output.location, context)
11462
- : undefined,
11295
+ comments: output.comments != null ? deserializeAws_json1_1Comments(output.comments, context) : undefined,
11296
+ location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
11463
11297
  repositoryName: __expectString(output.repositoryName),
11464
11298
  };
11465
11299
  };
@@ -11480,12 +11314,8 @@ var deserializeAws_json1_1CommentsForPullRequest = function (output, context) {
11480
11314
  afterCommitId: __expectString(output.afterCommitId),
11481
11315
  beforeBlobId: __expectString(output.beforeBlobId),
11482
11316
  beforeCommitId: __expectString(output.beforeCommitId),
11483
- comments: output.comments !== undefined && output.comments !== null
11484
- ? deserializeAws_json1_1Comments(output.comments, context)
11485
- : undefined,
11486
- location: output.location !== undefined && output.location !== null
11487
- ? deserializeAws_json1_1Location(output.location, context)
11488
- : undefined,
11317
+ comments: output.comments != null ? deserializeAws_json1_1Comments(output.comments, context) : undefined,
11318
+ location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
11489
11319
  pullRequestId: __expectString(output.pullRequestId),
11490
11320
  repositoryName: __expectString(output.repositoryName),
11491
11321
  };
@@ -11504,17 +11334,11 @@ var deserializeAws_json1_1CommentsForPullRequestData = function (output, context
11504
11334
  var deserializeAws_json1_1Commit = function (output, context) {
11505
11335
  return {
11506
11336
  additionalData: __expectString(output.additionalData),
11507
- author: output.author !== undefined && output.author !== null
11508
- ? deserializeAws_json1_1UserInfo(output.author, context)
11509
- : undefined,
11337
+ author: output.author != null ? deserializeAws_json1_1UserInfo(output.author, context) : undefined,
11510
11338
  commitId: __expectString(output.commitId),
11511
- committer: output.committer !== undefined && output.committer !== null
11512
- ? deserializeAws_json1_1UserInfo(output.committer, context)
11513
- : undefined,
11339
+ committer: output.committer != null ? deserializeAws_json1_1UserInfo(output.committer, context) : undefined,
11514
11340
  message: __expectString(output.message),
11515
- parents: output.parents !== undefined && output.parents !== null
11516
- ? deserializeAws_json1_1ParentList(output.parents, context)
11517
- : undefined,
11341
+ parents: output.parents != null ? deserializeAws_json1_1ParentList(output.parents, context) : undefined,
11518
11342
  treeId: __expectString(output.treeId),
11519
11343
  };
11520
11344
  };
@@ -11571,36 +11395,26 @@ var deserializeAws_json1_1ConcurrentReferenceUpdateException = function (output,
11571
11395
  };
11572
11396
  var deserializeAws_json1_1Conflict = function (output, context) {
11573
11397
  return {
11574
- conflictMetadata: output.conflictMetadata !== undefined && output.conflictMetadata !== null
11398
+ conflictMetadata: output.conflictMetadata != null
11575
11399
  ? deserializeAws_json1_1ConflictMetadata(output.conflictMetadata, context)
11576
11400
  : undefined,
11577
- mergeHunks: output.mergeHunks !== undefined && output.mergeHunks !== null
11578
- ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context)
11579
- : undefined,
11401
+ mergeHunks: output.mergeHunks != null ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context) : undefined,
11580
11402
  };
11581
11403
  };
11582
11404
  var deserializeAws_json1_1ConflictMetadata = function (output, context) {
11583
11405
  return {
11584
11406
  contentConflict: __expectBoolean(output.contentConflict),
11585
11407
  fileModeConflict: __expectBoolean(output.fileModeConflict),
11586
- fileModes: output.fileModes !== undefined && output.fileModes !== null
11587
- ? deserializeAws_json1_1FileModes(output.fileModes, context)
11588
- : undefined,
11408
+ fileModes: output.fileModes != null ? deserializeAws_json1_1FileModes(output.fileModes, context) : undefined,
11589
11409
  filePath: __expectString(output.filePath),
11590
- fileSizes: output.fileSizes !== undefined && output.fileSizes !== null
11591
- ? deserializeAws_json1_1FileSizes(output.fileSizes, context)
11592
- : undefined,
11593
- isBinaryFile: output.isBinaryFile !== undefined && output.isBinaryFile !== null
11594
- ? deserializeAws_json1_1IsBinaryFile(output.isBinaryFile, context)
11595
- : undefined,
11596
- mergeOperations: output.mergeOperations !== undefined && output.mergeOperations !== null
11410
+ fileSizes: output.fileSizes != null ? deserializeAws_json1_1FileSizes(output.fileSizes, context) : undefined,
11411
+ isBinaryFile: output.isBinaryFile != null ? deserializeAws_json1_1IsBinaryFile(output.isBinaryFile, context) : undefined,
11412
+ mergeOperations: output.mergeOperations != null
11597
11413
  ? deserializeAws_json1_1MergeOperations(output.mergeOperations, context)
11598
11414
  : undefined,
11599
11415
  numberOfConflicts: __expectInt32(output.numberOfConflicts),
11600
11416
  objectTypeConflict: __expectBoolean(output.objectTypeConflict),
11601
- objectTypes: output.objectTypes !== undefined && output.objectTypes !== null
11602
- ? deserializeAws_json1_1ObjectTypes(output.objectTypes, context)
11603
- : undefined,
11417
+ objectTypes: output.objectTypes != null ? deserializeAws_json1_1ObjectTypes(output.objectTypes, context) : undefined,
11604
11418
  };
11605
11419
  };
11606
11420
  var deserializeAws_json1_1ConflictMetadataList = function (output, context) {
@@ -11627,7 +11441,7 @@ var deserializeAws_json1_1Conflicts = function (output, context) {
11627
11441
  };
11628
11442
  var deserializeAws_json1_1CreateApprovalRuleTemplateOutput = function (output, context) {
11629
11443
  return {
11630
- approvalRuleTemplate: output.approvalRuleTemplate !== undefined && output.approvalRuleTemplate !== null
11444
+ approvalRuleTemplate: output.approvalRuleTemplate != null
11631
11445
  ? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
11632
11446
  : undefined,
11633
11447
  };
@@ -11635,35 +11449,25 @@ var deserializeAws_json1_1CreateApprovalRuleTemplateOutput = function (output, c
11635
11449
  var deserializeAws_json1_1CreateCommitOutput = function (output, context) {
11636
11450
  return {
11637
11451
  commitId: __expectString(output.commitId),
11638
- filesAdded: output.filesAdded !== undefined && output.filesAdded !== null
11639
- ? deserializeAws_json1_1FilesMetadata(output.filesAdded, context)
11640
- : undefined,
11641
- filesDeleted: output.filesDeleted !== undefined && output.filesDeleted !== null
11642
- ? deserializeAws_json1_1FilesMetadata(output.filesDeleted, context)
11643
- : undefined,
11644
- filesUpdated: output.filesUpdated !== undefined && output.filesUpdated !== null
11645
- ? deserializeAws_json1_1FilesMetadata(output.filesUpdated, context)
11646
- : undefined,
11452
+ filesAdded: output.filesAdded != null ? deserializeAws_json1_1FilesMetadata(output.filesAdded, context) : undefined,
11453
+ filesDeleted: output.filesDeleted != null ? deserializeAws_json1_1FilesMetadata(output.filesDeleted, context) : undefined,
11454
+ filesUpdated: output.filesUpdated != null ? deserializeAws_json1_1FilesMetadata(output.filesUpdated, context) : undefined,
11647
11455
  treeId: __expectString(output.treeId),
11648
11456
  };
11649
11457
  };
11650
11458
  var deserializeAws_json1_1CreatePullRequestApprovalRuleOutput = function (output, context) {
11651
11459
  return {
11652
- approvalRule: output.approvalRule !== undefined && output.approvalRule !== null
11653
- ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context)
11654
- : undefined,
11460
+ approvalRule: output.approvalRule != null ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context) : undefined,
11655
11461
  };
11656
11462
  };
11657
11463
  var deserializeAws_json1_1CreatePullRequestOutput = function (output, context) {
11658
11464
  return {
11659
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
11660
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
11661
- : undefined,
11465
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
11662
11466
  };
11663
11467
  };
11664
11468
  var deserializeAws_json1_1CreateRepositoryOutput = function (output, context) {
11665
11469
  return {
11666
- repositoryMetadata: output.repositoryMetadata !== undefined && output.repositoryMetadata !== null
11470
+ repositoryMetadata: output.repositoryMetadata != null
11667
11471
  ? deserializeAws_json1_1RepositoryMetadata(output.repositoryMetadata, context)
11668
11472
  : undefined,
11669
11473
  };
@@ -11686,16 +11490,12 @@ var deserializeAws_json1_1DeleteApprovalRuleTemplateOutput = function (output, c
11686
11490
  };
11687
11491
  var deserializeAws_json1_1DeleteBranchOutput = function (output, context) {
11688
11492
  return {
11689
- deletedBranch: output.deletedBranch !== undefined && output.deletedBranch !== null
11690
- ? deserializeAws_json1_1BranchInfo(output.deletedBranch, context)
11691
- : undefined,
11493
+ deletedBranch: output.deletedBranch != null ? deserializeAws_json1_1BranchInfo(output.deletedBranch, context) : undefined,
11692
11494
  };
11693
11495
  };
11694
11496
  var deserializeAws_json1_1DeleteCommentContentOutput = function (output, context) {
11695
11497
  return {
11696
- comment: output.comment !== undefined && output.comment !== null
11697
- ? deserializeAws_json1_1Comment(output.comment, context)
11698
- : undefined,
11498
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
11699
11499
  };
11700
11500
  };
11701
11501
  var deserializeAws_json1_1DeleteFileOutput = function (output, context) {
@@ -11719,13 +11519,11 @@ var deserializeAws_json1_1DeleteRepositoryOutput = function (output, context) {
11719
11519
  var deserializeAws_json1_1DescribeMergeConflictsOutput = function (output, context) {
11720
11520
  return {
11721
11521
  baseCommitId: __expectString(output.baseCommitId),
11722
- conflictMetadata: output.conflictMetadata !== undefined && output.conflictMetadata !== null
11522
+ conflictMetadata: output.conflictMetadata != null
11723
11523
  ? deserializeAws_json1_1ConflictMetadata(output.conflictMetadata, context)
11724
11524
  : undefined,
11725
11525
  destinationCommitId: __expectString(output.destinationCommitId),
11726
- mergeHunks: output.mergeHunks !== undefined && output.mergeHunks !== null
11727
- ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context)
11728
- : undefined,
11526
+ mergeHunks: output.mergeHunks != null ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context) : undefined,
11729
11527
  nextToken: __expectString(output.nextToken),
11730
11528
  sourceCommitId: __expectString(output.sourceCommitId),
11731
11529
  };
@@ -11733,19 +11531,15 @@ var deserializeAws_json1_1DescribeMergeConflictsOutput = function (output, conte
11733
11531
  var deserializeAws_json1_1DescribePullRequestEventsOutput = function (output, context) {
11734
11532
  return {
11735
11533
  nextToken: __expectString(output.nextToken),
11736
- pullRequestEvents: output.pullRequestEvents !== undefined && output.pullRequestEvents !== null
11534
+ pullRequestEvents: output.pullRequestEvents != null
11737
11535
  ? deserializeAws_json1_1PullRequestEventList(output.pullRequestEvents, context)
11738
11536
  : undefined,
11739
11537
  };
11740
11538
  };
11741
11539
  var deserializeAws_json1_1Difference = function (output, context) {
11742
11540
  return {
11743
- afterBlob: output.afterBlob !== undefined && output.afterBlob !== null
11744
- ? deserializeAws_json1_1BlobMetadata(output.afterBlob, context)
11745
- : undefined,
11746
- beforeBlob: output.beforeBlob !== undefined && output.beforeBlob !== null
11747
- ? deserializeAws_json1_1BlobMetadata(output.beforeBlob, context)
11748
- : undefined,
11541
+ afterBlob: output.afterBlob != null ? deserializeAws_json1_1BlobMetadata(output.afterBlob, context) : undefined,
11542
+ beforeBlob: output.beforeBlob != null ? deserializeAws_json1_1BlobMetadata(output.beforeBlob, context) : undefined,
11749
11543
  changeType: __expectString(output.changeType),
11750
11544
  };
11751
11545
  };
@@ -11792,17 +11586,15 @@ var deserializeAws_json1_1EncryptionKeyUnavailableException = function (output,
11792
11586
  };
11793
11587
  var deserializeAws_json1_1EvaluatePullRequestApprovalRulesOutput = function (output, context) {
11794
11588
  return {
11795
- evaluation: output.evaluation !== undefined && output.evaluation !== null
11796
- ? deserializeAws_json1_1Evaluation(output.evaluation, context)
11797
- : undefined,
11589
+ evaluation: output.evaluation != null ? deserializeAws_json1_1Evaluation(output.evaluation, context) : undefined,
11798
11590
  };
11799
11591
  };
11800
11592
  var deserializeAws_json1_1Evaluation = function (output, context) {
11801
11593
  return {
11802
- approvalRulesNotSatisfied: output.approvalRulesNotSatisfied !== undefined && output.approvalRulesNotSatisfied !== null
11594
+ approvalRulesNotSatisfied: output.approvalRulesNotSatisfied != null
11803
11595
  ? deserializeAws_json1_1ApprovalRulesNotSatisfiedList(output.approvalRulesNotSatisfied, context)
11804
11596
  : undefined,
11805
- approvalRulesSatisfied: output.approvalRulesSatisfied !== undefined && output.approvalRulesSatisfied !== null
11597
+ approvalRulesSatisfied: output.approvalRulesSatisfied != null
11806
11598
  ? deserializeAws_json1_1ApprovalRulesSatisfiedList(output.approvalRulesSatisfied, context)
11807
11599
  : undefined,
11808
11600
  approved: __expectBoolean(output.approved),
@@ -11935,41 +11727,37 @@ var deserializeAws_json1_1FolderList = function (output, context) {
11935
11727
  };
11936
11728
  var deserializeAws_json1_1GetApprovalRuleTemplateOutput = function (output, context) {
11937
11729
  return {
11938
- approvalRuleTemplate: output.approvalRuleTemplate !== undefined && output.approvalRuleTemplate !== null
11730
+ approvalRuleTemplate: output.approvalRuleTemplate != null
11939
11731
  ? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
11940
11732
  : undefined,
11941
11733
  };
11942
11734
  };
11943
11735
  var deserializeAws_json1_1GetBlobOutput = function (output, context) {
11944
11736
  return {
11945
- content: output.content !== undefined && output.content !== null ? context.base64Decoder(output.content) : undefined,
11737
+ content: output.content != null ? context.base64Decoder(output.content) : undefined,
11946
11738
  };
11947
11739
  };
11948
11740
  var deserializeAws_json1_1GetBranchOutput = function (output, context) {
11949
11741
  return {
11950
- branch: output.branch !== undefined && output.branch !== null
11951
- ? deserializeAws_json1_1BranchInfo(output.branch, context)
11952
- : undefined,
11742
+ branch: output.branch != null ? deserializeAws_json1_1BranchInfo(output.branch, context) : undefined,
11953
11743
  };
11954
11744
  };
11955
11745
  var deserializeAws_json1_1GetCommentOutput = function (output, context) {
11956
11746
  return {
11957
- comment: output.comment !== undefined && output.comment !== null
11958
- ? deserializeAws_json1_1Comment(output.comment, context)
11959
- : undefined,
11747
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
11960
11748
  };
11961
11749
  };
11962
11750
  var deserializeAws_json1_1GetCommentReactionsOutput = function (output, context) {
11963
11751
  return {
11964
11752
  nextToken: __expectString(output.nextToken),
11965
- reactionsForComment: output.reactionsForComment !== undefined && output.reactionsForComment !== null
11753
+ reactionsForComment: output.reactionsForComment != null
11966
11754
  ? deserializeAws_json1_1ReactionsForCommentList(output.reactionsForComment, context)
11967
11755
  : undefined,
11968
11756
  };
11969
11757
  };
11970
11758
  var deserializeAws_json1_1GetCommentsForComparedCommitOutput = function (output, context) {
11971
11759
  return {
11972
- commentsForComparedCommitData: output.commentsForComparedCommitData !== undefined && output.commentsForComparedCommitData !== null
11760
+ commentsForComparedCommitData: output.commentsForComparedCommitData != null
11973
11761
  ? deserializeAws_json1_1CommentsForComparedCommitData(output.commentsForComparedCommitData, context)
11974
11762
  : undefined,
11975
11763
  nextToken: __expectString(output.nextToken),
@@ -11977,7 +11765,7 @@ var deserializeAws_json1_1GetCommentsForComparedCommitOutput = function (output,
11977
11765
  };
11978
11766
  var deserializeAws_json1_1GetCommentsForPullRequestOutput = function (output, context) {
11979
11767
  return {
11980
- commentsForPullRequestData: output.commentsForPullRequestData !== undefined && output.commentsForPullRequestData !== null
11768
+ commentsForPullRequestData: output.commentsForPullRequestData != null
11981
11769
  ? deserializeAws_json1_1CommentsForPullRequestData(output.commentsForPullRequestData, context)
11982
11770
  : undefined,
11983
11771
  nextToken: __expectString(output.nextToken),
@@ -11985,26 +11773,20 @@ var deserializeAws_json1_1GetCommentsForPullRequestOutput = function (output, co
11985
11773
  };
11986
11774
  var deserializeAws_json1_1GetCommitOutput = function (output, context) {
11987
11775
  return {
11988
- commit: output.commit !== undefined && output.commit !== null
11989
- ? deserializeAws_json1_1Commit(output.commit, context)
11990
- : undefined,
11776
+ commit: output.commit != null ? deserializeAws_json1_1Commit(output.commit, context) : undefined,
11991
11777
  };
11992
11778
  };
11993
11779
  var deserializeAws_json1_1GetDifferencesOutput = function (output, context) {
11994
11780
  return {
11995
11781
  NextToken: __expectString(output.NextToken),
11996
- differences: output.differences !== undefined && output.differences !== null
11997
- ? deserializeAws_json1_1DifferenceList(output.differences, context)
11998
- : undefined,
11782
+ differences: output.differences != null ? deserializeAws_json1_1DifferenceList(output.differences, context) : undefined,
11999
11783
  };
12000
11784
  };
12001
11785
  var deserializeAws_json1_1GetFileOutput = function (output, context) {
12002
11786
  return {
12003
11787
  blobId: __expectString(output.blobId),
12004
11788
  commitId: __expectString(output.commitId),
12005
- fileContent: output.fileContent !== undefined && output.fileContent !== null
12006
- ? context.base64Decoder(output.fileContent)
12007
- : undefined,
11789
+ fileContent: output.fileContent != null ? context.base64Decoder(output.fileContent) : undefined,
12008
11790
  fileMode: __expectString(output.fileMode),
12009
11791
  filePath: __expectString(output.filePath),
12010
11792
  fileSize: __expectLong(output.fileSize),
@@ -12013,19 +11795,11 @@ var deserializeAws_json1_1GetFileOutput = function (output, context) {
12013
11795
  var deserializeAws_json1_1GetFolderOutput = function (output, context) {
12014
11796
  return {
12015
11797
  commitId: __expectString(output.commitId),
12016
- files: output.files !== undefined && output.files !== null
12017
- ? deserializeAws_json1_1FileList(output.files, context)
12018
- : undefined,
11798
+ files: output.files != null ? deserializeAws_json1_1FileList(output.files, context) : undefined,
12019
11799
  folderPath: __expectString(output.folderPath),
12020
- subFolders: output.subFolders !== undefined && output.subFolders !== null
12021
- ? deserializeAws_json1_1FolderList(output.subFolders, context)
12022
- : undefined,
12023
- subModules: output.subModules !== undefined && output.subModules !== null
12024
- ? deserializeAws_json1_1SubModuleList(output.subModules, context)
12025
- : undefined,
12026
- symbolicLinks: output.symbolicLinks !== undefined && output.symbolicLinks !== null
12027
- ? deserializeAws_json1_1SymbolicLinkList(output.symbolicLinks, context)
12028
- : undefined,
11800
+ subFolders: output.subFolders != null ? deserializeAws_json1_1FolderList(output.subFolders, context) : undefined,
11801
+ subModules: output.subModules != null ? deserializeAws_json1_1SubModuleList(output.subModules, context) : undefined,
11802
+ symbolicLinks: output.symbolicLinks != null ? deserializeAws_json1_1SymbolicLinkList(output.symbolicLinks, context) : undefined,
12029
11803
  treeId: __expectString(output.treeId),
12030
11804
  };
12031
11805
  };
@@ -12040,7 +11814,7 @@ var deserializeAws_json1_1GetMergeCommitOutput = function (output, context) {
12040
11814
  var deserializeAws_json1_1GetMergeConflictsOutput = function (output, context) {
12041
11815
  return {
12042
11816
  baseCommitId: __expectString(output.baseCommitId),
12043
- conflictMetadataList: output.conflictMetadataList !== undefined && output.conflictMetadataList !== null
11817
+ conflictMetadataList: output.conflictMetadataList != null
12044
11818
  ? deserializeAws_json1_1ConflictMetadataList(output.conflictMetadataList, context)
12045
11819
  : undefined,
12046
11820
  destinationCommitId: __expectString(output.destinationCommitId),
@@ -12053,24 +11827,18 @@ var deserializeAws_json1_1GetMergeOptionsOutput = function (output, context) {
12053
11827
  return {
12054
11828
  baseCommitId: __expectString(output.baseCommitId),
12055
11829
  destinationCommitId: __expectString(output.destinationCommitId),
12056
- mergeOptions: output.mergeOptions !== undefined && output.mergeOptions !== null
12057
- ? deserializeAws_json1_1MergeOptions(output.mergeOptions, context)
12058
- : undefined,
11830
+ mergeOptions: output.mergeOptions != null ? deserializeAws_json1_1MergeOptions(output.mergeOptions, context) : undefined,
12059
11831
  sourceCommitId: __expectString(output.sourceCommitId),
12060
11832
  };
12061
11833
  };
12062
11834
  var deserializeAws_json1_1GetPullRequestApprovalStatesOutput = function (output, context) {
12063
11835
  return {
12064
- approvals: output.approvals !== undefined && output.approvals !== null
12065
- ? deserializeAws_json1_1ApprovalList(output.approvals, context)
12066
- : undefined,
11836
+ approvals: output.approvals != null ? deserializeAws_json1_1ApprovalList(output.approvals, context) : undefined,
12067
11837
  };
12068
11838
  };
12069
11839
  var deserializeAws_json1_1GetPullRequestOutput = function (output, context) {
12070
11840
  return {
12071
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
12072
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
12073
- : undefined,
11841
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
12074
11842
  };
12075
11843
  };
12076
11844
  var deserializeAws_json1_1GetPullRequestOverrideStateOutput = function (output, context) {
@@ -12081,7 +11849,7 @@ var deserializeAws_json1_1GetPullRequestOverrideStateOutput = function (output,
12081
11849
  };
12082
11850
  var deserializeAws_json1_1GetRepositoryOutput = function (output, context) {
12083
11851
  return {
12084
- repositoryMetadata: output.repositoryMetadata !== undefined && output.repositoryMetadata !== null
11852
+ repositoryMetadata: output.repositoryMetadata != null
12085
11853
  ? deserializeAws_json1_1RepositoryMetadata(output.repositoryMetadata, context)
12086
11854
  : undefined,
12087
11855
  };
@@ -12089,9 +11857,7 @@ var deserializeAws_json1_1GetRepositoryOutput = function (output, context) {
12089
11857
  var deserializeAws_json1_1GetRepositoryTriggersOutput = function (output, context) {
12090
11858
  return {
12091
11859
  configurationId: __expectString(output.configurationId),
12092
- triggers: output.triggers !== undefined && output.triggers !== null
12093
- ? deserializeAws_json1_1RepositoryTriggersList(output.triggers, context)
12094
- : undefined,
11860
+ triggers: output.triggers != null ? deserializeAws_json1_1RepositoryTriggersList(output.triggers, context) : undefined,
12095
11861
  };
12096
11862
  };
12097
11863
  var deserializeAws_json1_1IdempotencyParameterMismatchException = function (output, context) {
@@ -12423,7 +12189,7 @@ var deserializeAws_json1_1IsBinaryFile = function (output, context) {
12423
12189
  };
12424
12190
  var deserializeAws_json1_1ListApprovalRuleTemplatesOutput = function (output, context) {
12425
12191
  return {
12426
- approvalRuleTemplateNames: output.approvalRuleTemplateNames !== undefined && output.approvalRuleTemplateNames !== null
12192
+ approvalRuleTemplateNames: output.approvalRuleTemplateNames != null
12427
12193
  ? deserializeAws_json1_1ApprovalRuleTemplateNameList(output.approvalRuleTemplateNames, context)
12428
12194
  : undefined,
12429
12195
  nextToken: __expectString(output.nextToken),
@@ -12431,7 +12197,7 @@ var deserializeAws_json1_1ListApprovalRuleTemplatesOutput = function (output, co
12431
12197
  };
12432
12198
  var deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryOutput = function (output, context) {
12433
12199
  return {
12434
- approvalRuleTemplateNames: output.approvalRuleTemplateNames !== undefined && output.approvalRuleTemplateNames !== null
12200
+ approvalRuleTemplateNames: output.approvalRuleTemplateNames != null
12435
12201
  ? deserializeAws_json1_1ApprovalRuleTemplateNameList(output.approvalRuleTemplateNames, context)
12436
12202
  : undefined,
12437
12203
  nextToken: __expectString(output.nextToken),
@@ -12439,16 +12205,14 @@ var deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryOutput
12439
12205
  };
12440
12206
  var deserializeAws_json1_1ListBranchesOutput = function (output, context) {
12441
12207
  return {
12442
- branches: output.branches !== undefined && output.branches !== null
12443
- ? deserializeAws_json1_1BranchNameList(output.branches, context)
12444
- : undefined,
12208
+ branches: output.branches != null ? deserializeAws_json1_1BranchNameList(output.branches, context) : undefined,
12445
12209
  nextToken: __expectString(output.nextToken),
12446
12210
  };
12447
12211
  };
12448
12212
  var deserializeAws_json1_1ListPullRequestsOutput = function (output, context) {
12449
12213
  return {
12450
12214
  nextToken: __expectString(output.nextToken),
12451
- pullRequestIds: output.pullRequestIds !== undefined && output.pullRequestIds !== null
12215
+ pullRequestIds: output.pullRequestIds != null
12452
12216
  ? deserializeAws_json1_1PullRequestIdList(output.pullRequestIds, context)
12453
12217
  : undefined,
12454
12218
  };
@@ -12456,7 +12220,7 @@ var deserializeAws_json1_1ListPullRequestsOutput = function (output, context) {
12456
12220
  var deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateOutput = function (output, context) {
12457
12221
  return {
12458
12222
  nextToken: __expectString(output.nextToken),
12459
- repositoryNames: output.repositoryNames !== undefined && output.repositoryNames !== null
12223
+ repositoryNames: output.repositoryNames != null
12460
12224
  ? deserializeAws_json1_1RepositoryNameList(output.repositoryNames, context)
12461
12225
  : undefined,
12462
12226
  };
@@ -12464,7 +12228,7 @@ var deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateOutput = functi
12464
12228
  var deserializeAws_json1_1ListRepositoriesOutput = function (output, context) {
12465
12229
  return {
12466
12230
  nextToken: __expectString(output.nextToken),
12467
- repositories: output.repositories !== undefined && output.repositories !== null
12231
+ repositories: output.repositories != null
12468
12232
  ? deserializeAws_json1_1RepositoryNameIdPairList(output.repositories, context)
12469
12233
  : undefined,
12470
12234
  };
@@ -12472,9 +12236,7 @@ var deserializeAws_json1_1ListRepositoriesOutput = function (output, context) {
12472
12236
  var deserializeAws_json1_1ListTagsForResourceOutput = function (output, context) {
12473
12237
  return {
12474
12238
  nextToken: __expectString(output.nextToken),
12475
- tags: output.tags !== undefined && output.tags !== null
12476
- ? deserializeAws_json1_1TagsMap(output.tags, context)
12477
- : undefined,
12239
+ tags: output.tags != null ? deserializeAws_json1_1TagsMap(output.tags, context) : undefined,
12478
12240
  };
12479
12241
  };
12480
12242
  var deserializeAws_json1_1Location = function (output, context) {
@@ -12559,16 +12321,10 @@ var deserializeAws_json1_1MergeBranchesByThreeWayOutput = function (output, cont
12559
12321
  };
12560
12322
  var deserializeAws_json1_1MergeHunk = function (output, context) {
12561
12323
  return {
12562
- base: output.base !== undefined && output.base !== null
12563
- ? deserializeAws_json1_1MergeHunkDetail(output.base, context)
12564
- : undefined,
12565
- destination: output.destination !== undefined && output.destination !== null
12566
- ? deserializeAws_json1_1MergeHunkDetail(output.destination, context)
12567
- : undefined,
12324
+ base: output.base != null ? deserializeAws_json1_1MergeHunkDetail(output.base, context) : undefined,
12325
+ destination: output.destination != null ? deserializeAws_json1_1MergeHunkDetail(output.destination, context) : undefined,
12568
12326
  isConflict: __expectBoolean(output.isConflict),
12569
- source: output.source !== undefined && output.source !== null
12570
- ? deserializeAws_json1_1MergeHunkDetail(output.source, context)
12571
- : undefined,
12327
+ source: output.source != null ? deserializeAws_json1_1MergeHunkDetail(output.source, context) : undefined,
12572
12328
  };
12573
12329
  };
12574
12330
  var deserializeAws_json1_1MergeHunkDetail = function (output, context) {
@@ -12621,23 +12377,17 @@ var deserializeAws_json1_1MergeOptions = function (output, context) {
12621
12377
  };
12622
12378
  var deserializeAws_json1_1MergePullRequestByFastForwardOutput = function (output, context) {
12623
12379
  return {
12624
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
12625
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
12626
- : undefined,
12380
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
12627
12381
  };
12628
12382
  };
12629
12383
  var deserializeAws_json1_1MergePullRequestBySquashOutput = function (output, context) {
12630
12384
  return {
12631
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
12632
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
12633
- : undefined,
12385
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
12634
12386
  };
12635
12387
  };
12636
12388
  var deserializeAws_json1_1MergePullRequestByThreeWayOutput = function (output, context) {
12637
12389
  return {
12638
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
12639
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
12640
- : undefined,
12390
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
12641
12391
  };
12642
12392
  };
12643
12393
  var deserializeAws_json1_1MultipleConflictResolutionEntriesException = function (output, context) {
@@ -12735,12 +12485,8 @@ var deserializeAws_json1_1PostCommentForComparedCommitOutput = function (output,
12735
12485
  afterCommitId: __expectString(output.afterCommitId),
12736
12486
  beforeBlobId: __expectString(output.beforeBlobId),
12737
12487
  beforeCommitId: __expectString(output.beforeCommitId),
12738
- comment: output.comment !== undefined && output.comment !== null
12739
- ? deserializeAws_json1_1Comment(output.comment, context)
12740
- : undefined,
12741
- location: output.location !== undefined && output.location !== null
12742
- ? deserializeAws_json1_1Location(output.location, context)
12743
- : undefined,
12488
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
12489
+ location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
12744
12490
  repositoryName: __expectString(output.repositoryName),
12745
12491
  };
12746
12492
  };
@@ -12750,40 +12496,32 @@ var deserializeAws_json1_1PostCommentForPullRequestOutput = function (output, co
12750
12496
  afterCommitId: __expectString(output.afterCommitId),
12751
12497
  beforeBlobId: __expectString(output.beforeBlobId),
12752
12498
  beforeCommitId: __expectString(output.beforeCommitId),
12753
- comment: output.comment !== undefined && output.comment !== null
12754
- ? deserializeAws_json1_1Comment(output.comment, context)
12755
- : undefined,
12756
- location: output.location !== undefined && output.location !== null
12757
- ? deserializeAws_json1_1Location(output.location, context)
12758
- : undefined,
12499
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
12500
+ location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
12759
12501
  pullRequestId: __expectString(output.pullRequestId),
12760
12502
  repositoryName: __expectString(output.repositoryName),
12761
12503
  };
12762
12504
  };
12763
12505
  var deserializeAws_json1_1PostCommentReplyOutput = function (output, context) {
12764
12506
  return {
12765
- comment: output.comment !== undefined && output.comment !== null
12766
- ? deserializeAws_json1_1Comment(output.comment, context)
12767
- : undefined,
12507
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
12768
12508
  };
12769
12509
  };
12770
12510
  var deserializeAws_json1_1PullRequest = function (output, context) {
12771
12511
  return {
12772
- approvalRules: output.approvalRules !== undefined && output.approvalRules !== null
12773
- ? deserializeAws_json1_1ApprovalRulesList(output.approvalRules, context)
12774
- : undefined,
12512
+ approvalRules: output.approvalRules != null ? deserializeAws_json1_1ApprovalRulesList(output.approvalRules, context) : undefined,
12775
12513
  authorArn: __expectString(output.authorArn),
12776
12514
  clientRequestToken: __expectString(output.clientRequestToken),
12777
- creationDate: output.creationDate !== undefined && output.creationDate !== null
12515
+ creationDate: output.creationDate != null
12778
12516
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
12779
12517
  : undefined,
12780
12518
  description: __expectString(output.description),
12781
- lastActivityDate: output.lastActivityDate !== undefined && output.lastActivityDate !== null
12519
+ lastActivityDate: output.lastActivityDate != null
12782
12520
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastActivityDate)))
12783
12521
  : undefined,
12784
12522
  pullRequestId: __expectString(output.pullRequestId),
12785
12523
  pullRequestStatus: __expectString(output.pullRequestStatus),
12786
- pullRequestTargets: output.pullRequestTargets !== undefined && output.pullRequestTargets !== null
12524
+ pullRequestTargets: output.pullRequestTargets != null
12787
12525
  ? deserializeAws_json1_1PullRequestTargetList(output.pullRequestTargets, context)
12788
12526
  : undefined,
12789
12527
  revisionId: __expectString(output.revisionId),
@@ -12821,33 +12559,28 @@ var deserializeAws_json1_1PullRequestDoesNotExistException = function (output, c
12821
12559
  var deserializeAws_json1_1PullRequestEvent = function (output, context) {
12822
12560
  return {
12823
12561
  actorArn: __expectString(output.actorArn),
12824
- approvalRuleEventMetadata: output.approvalRuleEventMetadata !== undefined && output.approvalRuleEventMetadata !== null
12562
+ approvalRuleEventMetadata: output.approvalRuleEventMetadata != null
12825
12563
  ? deserializeAws_json1_1ApprovalRuleEventMetadata(output.approvalRuleEventMetadata, context)
12826
12564
  : undefined,
12827
- approvalRuleOverriddenEventMetadata: output.approvalRuleOverriddenEventMetadata !== undefined && output.approvalRuleOverriddenEventMetadata !== null
12565
+ approvalRuleOverriddenEventMetadata: output.approvalRuleOverriddenEventMetadata != null
12828
12566
  ? deserializeAws_json1_1ApprovalRuleOverriddenEventMetadata(output.approvalRuleOverriddenEventMetadata, context)
12829
12567
  : undefined,
12830
- approvalStateChangedEventMetadata: output.approvalStateChangedEventMetadata !== undefined && output.approvalStateChangedEventMetadata !== null
12568
+ approvalStateChangedEventMetadata: output.approvalStateChangedEventMetadata != null
12831
12569
  ? deserializeAws_json1_1ApprovalStateChangedEventMetadata(output.approvalStateChangedEventMetadata, context)
12832
12570
  : undefined,
12833
- eventDate: output.eventDate !== undefined && output.eventDate !== null
12834
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventDate)))
12835
- : undefined,
12836
- pullRequestCreatedEventMetadata: output.pullRequestCreatedEventMetadata !== undefined && output.pullRequestCreatedEventMetadata !== null
12571
+ eventDate: output.eventDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventDate))) : undefined,
12572
+ pullRequestCreatedEventMetadata: output.pullRequestCreatedEventMetadata != null
12837
12573
  ? deserializeAws_json1_1PullRequestCreatedEventMetadata(output.pullRequestCreatedEventMetadata, context)
12838
12574
  : undefined,
12839
12575
  pullRequestEventType: __expectString(output.pullRequestEventType),
12840
12576
  pullRequestId: __expectString(output.pullRequestId),
12841
- pullRequestMergedStateChangedEventMetadata: output.pullRequestMergedStateChangedEventMetadata !== undefined &&
12842
- output.pullRequestMergedStateChangedEventMetadata !== null
12577
+ pullRequestMergedStateChangedEventMetadata: output.pullRequestMergedStateChangedEventMetadata != null
12843
12578
  ? deserializeAws_json1_1PullRequestMergedStateChangedEventMetadata(output.pullRequestMergedStateChangedEventMetadata, context)
12844
12579
  : undefined,
12845
- pullRequestSourceReferenceUpdatedEventMetadata: output.pullRequestSourceReferenceUpdatedEventMetadata !== undefined &&
12846
- output.pullRequestSourceReferenceUpdatedEventMetadata !== null
12580
+ pullRequestSourceReferenceUpdatedEventMetadata: output.pullRequestSourceReferenceUpdatedEventMetadata != null
12847
12581
  ? deserializeAws_json1_1PullRequestSourceReferenceUpdatedEventMetadata(output.pullRequestSourceReferenceUpdatedEventMetadata, context)
12848
12582
  : undefined,
12849
- pullRequestStatusChangedEventMetadata: output.pullRequestStatusChangedEventMetadata !== undefined &&
12850
- output.pullRequestStatusChangedEventMetadata !== null
12583
+ pullRequestStatusChangedEventMetadata: output.pullRequestStatusChangedEventMetadata != null
12851
12584
  ? deserializeAws_json1_1PullRequestStatusChangedEventMetadata(output.pullRequestStatusChangedEventMetadata, context)
12852
12585
  : undefined,
12853
12586
  };
@@ -12882,9 +12615,7 @@ var deserializeAws_json1_1PullRequestIdRequiredException = function (output, con
12882
12615
  var deserializeAws_json1_1PullRequestMergedStateChangedEventMetadata = function (output, context) {
12883
12616
  return {
12884
12617
  destinationReference: __expectString(output.destinationReference),
12885
- mergeMetadata: output.mergeMetadata !== undefined && output.mergeMetadata !== null
12886
- ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context)
12887
- : undefined,
12618
+ mergeMetadata: output.mergeMetadata != null ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context) : undefined,
12888
12619
  repositoryName: __expectString(output.repositoryName),
12889
12620
  };
12890
12621
  };
@@ -12911,9 +12642,7 @@ var deserializeAws_json1_1PullRequestTarget = function (output, context) {
12911
12642
  destinationCommit: __expectString(output.destinationCommit),
12912
12643
  destinationReference: __expectString(output.destinationReference),
12913
12644
  mergeBase: __expectString(output.mergeBase),
12914
- mergeMetadata: output.mergeMetadata !== undefined && output.mergeMetadata !== null
12915
- ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context)
12916
- : undefined,
12645
+ mergeMetadata: output.mergeMetadata != null ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context) : undefined,
12917
12646
  repositoryName: __expectString(output.repositoryName),
12918
12647
  sourceCommit: __expectString(output.sourceCommit),
12919
12648
  sourceReference: __expectString(output.sourceReference),
@@ -12959,12 +12688,8 @@ var deserializeAws_json1_1ReactionCountsMap = function (output, context) {
12959
12688
  };
12960
12689
  var deserializeAws_json1_1ReactionForComment = function (output, context) {
12961
12690
  return {
12962
- reaction: output.reaction !== undefined && output.reaction !== null
12963
- ? deserializeAws_json1_1ReactionValueFormats(output.reaction, context)
12964
- : undefined,
12965
- reactionUsers: output.reactionUsers !== undefined && output.reactionUsers !== null
12966
- ? deserializeAws_json1_1ReactionUsersList(output.reactionUsers, context)
12967
- : undefined,
12691
+ reaction: output.reaction != null ? deserializeAws_json1_1ReactionValueFormats(output.reaction, context) : undefined,
12692
+ reactionUsers: output.reactionUsers != null ? deserializeAws_json1_1ReactionUsersList(output.reactionUsers, context) : undefined,
12968
12693
  reactionsFromDeletedUsersCount: __expectInt32(output.reactionsFromDeletedUsersCount),
12969
12694
  };
12970
12695
  };
@@ -13048,11 +12773,11 @@ var deserializeAws_json1_1RepositoryMetadata = function (output, context) {
13048
12773
  accountId: __expectString(output.accountId),
13049
12774
  cloneUrlHttp: __expectString(output.cloneUrlHttp),
13050
12775
  cloneUrlSsh: __expectString(output.cloneUrlSsh),
13051
- creationDate: output.creationDate !== undefined && output.creationDate !== null
12776
+ creationDate: output.creationDate != null
13052
12777
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
13053
12778
  : undefined,
13054
12779
  defaultBranch: __expectString(output.defaultBranch),
13055
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
12780
+ lastModifiedDate: output.lastModifiedDate != null
13056
12781
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
13057
12782
  : undefined,
13058
12783
  repositoryDescription: __expectString(output.repositoryDescription),
@@ -13132,14 +12857,10 @@ var deserializeAws_json1_1RepositoryNotFoundList = function (output, context) {
13132
12857
  };
13133
12858
  var deserializeAws_json1_1RepositoryTrigger = function (output, context) {
13134
12859
  return {
13135
- branches: output.branches !== undefined && output.branches !== null
13136
- ? deserializeAws_json1_1BranchNameList(output.branches, context)
13137
- : undefined,
12860
+ branches: output.branches != null ? deserializeAws_json1_1BranchNameList(output.branches, context) : undefined,
13138
12861
  customData: __expectString(output.customData),
13139
12862
  destinationArn: __expectString(output.destinationArn),
13140
- events: output.events !== undefined && output.events !== null
13141
- ? deserializeAws_json1_1RepositoryTriggerEventList(output.events, context)
13142
- : undefined,
12863
+ events: output.events != null ? deserializeAws_json1_1RepositoryTriggerEventList(output.events, context) : undefined,
13143
12864
  name: __expectString(output.name),
13144
12865
  };
13145
12866
  };
@@ -13332,10 +13053,10 @@ var deserializeAws_json1_1TargetsRequiredException = function (output, context)
13332
13053
  };
13333
13054
  var deserializeAws_json1_1TestRepositoryTriggersOutput = function (output, context) {
13334
13055
  return {
13335
- failedExecutions: output.failedExecutions !== undefined && output.failedExecutions !== null
13056
+ failedExecutions: output.failedExecutions != null
13336
13057
  ? deserializeAws_json1_1RepositoryTriggerExecutionFailureList(output.failedExecutions, context)
13337
13058
  : undefined,
13338
- successfulExecutions: output.successfulExecutions !== undefined && output.successfulExecutions !== null
13059
+ successfulExecutions: output.successfulExecutions != null
13339
13060
  ? deserializeAws_json1_1RepositoryTriggerNameList(output.successfulExecutions, context)
13340
13061
  : undefined,
13341
13062
  };
@@ -13362,58 +13083,48 @@ var deserializeAws_json1_1TooManyTagsException = function (output, context) {
13362
13083
  };
13363
13084
  var deserializeAws_json1_1UpdateApprovalRuleTemplateContentOutput = function (output, context) {
13364
13085
  return {
13365
- approvalRuleTemplate: output.approvalRuleTemplate !== undefined && output.approvalRuleTemplate !== null
13086
+ approvalRuleTemplate: output.approvalRuleTemplate != null
13366
13087
  ? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
13367
13088
  : undefined,
13368
13089
  };
13369
13090
  };
13370
13091
  var deserializeAws_json1_1UpdateApprovalRuleTemplateDescriptionOutput = function (output, context) {
13371
13092
  return {
13372
- approvalRuleTemplate: output.approvalRuleTemplate !== undefined && output.approvalRuleTemplate !== null
13093
+ approvalRuleTemplate: output.approvalRuleTemplate != null
13373
13094
  ? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
13374
13095
  : undefined,
13375
13096
  };
13376
13097
  };
13377
13098
  var deserializeAws_json1_1UpdateApprovalRuleTemplateNameOutput = function (output, context) {
13378
13099
  return {
13379
- approvalRuleTemplate: output.approvalRuleTemplate !== undefined && output.approvalRuleTemplate !== null
13100
+ approvalRuleTemplate: output.approvalRuleTemplate != null
13380
13101
  ? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
13381
13102
  : undefined,
13382
13103
  };
13383
13104
  };
13384
13105
  var deserializeAws_json1_1UpdateCommentOutput = function (output, context) {
13385
13106
  return {
13386
- comment: output.comment !== undefined && output.comment !== null
13387
- ? deserializeAws_json1_1Comment(output.comment, context)
13388
- : undefined,
13107
+ comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
13389
13108
  };
13390
13109
  };
13391
13110
  var deserializeAws_json1_1UpdatePullRequestApprovalRuleContentOutput = function (output, context) {
13392
13111
  return {
13393
- approvalRule: output.approvalRule !== undefined && output.approvalRule !== null
13394
- ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context)
13395
- : undefined,
13112
+ approvalRule: output.approvalRule != null ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context) : undefined,
13396
13113
  };
13397
13114
  };
13398
13115
  var deserializeAws_json1_1UpdatePullRequestDescriptionOutput = function (output, context) {
13399
13116
  return {
13400
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
13401
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
13402
- : undefined,
13117
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
13403
13118
  };
13404
13119
  };
13405
13120
  var deserializeAws_json1_1UpdatePullRequestStatusOutput = function (output, context) {
13406
13121
  return {
13407
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
13408
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
13409
- : undefined,
13122
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
13410
13123
  };
13411
13124
  };
13412
13125
  var deserializeAws_json1_1UpdatePullRequestTitleOutput = function (output, context) {
13413
13126
  return {
13414
- pullRequest: output.pullRequest !== undefined && output.pullRequest !== null
13415
- ? deserializeAws_json1_1PullRequest(output.pullRequest, context)
13416
- : undefined,
13127
+ pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
13417
13128
  };
13418
13129
  };
13419
13130
  var deserializeAws_json1_1UserInfo = function (output, context) {
@@ -13479,6 +13190,9 @@ var loadRestJsonErrorCode = function (output, data) {
13479
13190
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
13480
13191
  var sanitizeErrorCode = function (rawValue) {
13481
13192
  var cleanValue = rawValue;
13193
+ if (typeof cleanValue === "number") {
13194
+ cleanValue = cleanValue.toString();
13195
+ }
13482
13196
  if (cleanValue.indexOf(":") >= 0) {
13483
13197
  cleanValue = cleanValue.split(":")[0];
13484
13198
  }