@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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +439 -725
- package/dist-es/protocols/Aws_json1_1.js +225 -511
- package/package.json +26 -26
|
@@ -8242,65 +8242,49 @@ const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput,
|
|
|
8242
8242
|
};
|
|
8243
8243
|
const serializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryInput = (input, context) => {
|
|
8244
8244
|
return {
|
|
8245
|
-
...(input.approvalRuleTemplateName
|
|
8246
|
-
|
|
8247
|
-
...(input.repositoryName !== undefined &&
|
|
8248
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8245
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8246
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8249
8247
|
};
|
|
8250
8248
|
};
|
|
8251
8249
|
const serializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesInput = (input, context) => {
|
|
8252
8250
|
return {
|
|
8253
|
-
...(input.approvalRuleTemplateName
|
|
8254
|
-
|
|
8255
|
-
...(input.repositoryNames !== undefined &&
|
|
8256
|
-
input.repositoryNames !== null && {
|
|
8251
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8252
|
+
...(input.repositoryNames != null && {
|
|
8257
8253
|
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
8258
8254
|
}),
|
|
8259
8255
|
};
|
|
8260
8256
|
};
|
|
8261
8257
|
const serializeAws_json1_1BatchDescribeMergeConflictsInput = (input, context) => {
|
|
8262
8258
|
return {
|
|
8263
|
-
...(input.conflictDetailLevel
|
|
8264
|
-
|
|
8265
|
-
...(input.
|
|
8266
|
-
|
|
8267
|
-
...(input.
|
|
8268
|
-
|
|
8269
|
-
...(input.
|
|
8270
|
-
|
|
8271
|
-
...(input.
|
|
8272
|
-
|
|
8273
|
-
...(input.maxMergeHunks !== undefined && input.maxMergeHunks !== null && { maxMergeHunks: input.maxMergeHunks }),
|
|
8274
|
-
...(input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption }),
|
|
8275
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
8276
|
-
...(input.repositoryName !== undefined &&
|
|
8277
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8278
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8279
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8259
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8260
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8261
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8262
|
+
...(input.filePaths != null && { filePaths: serializeAws_json1_1FilePaths(input.filePaths, context) }),
|
|
8263
|
+
...(input.maxConflictFiles != null && { maxConflictFiles: input.maxConflictFiles }),
|
|
8264
|
+
...(input.maxMergeHunks != null && { maxMergeHunks: input.maxMergeHunks }),
|
|
8265
|
+
...(input.mergeOption != null && { mergeOption: input.mergeOption }),
|
|
8266
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8267
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8268
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8280
8269
|
};
|
|
8281
8270
|
};
|
|
8282
8271
|
const serializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesInput = (input, context) => {
|
|
8283
8272
|
return {
|
|
8284
|
-
...(input.approvalRuleTemplateName
|
|
8285
|
-
|
|
8286
|
-
...(input.repositoryNames !== undefined &&
|
|
8287
|
-
input.repositoryNames !== null && {
|
|
8273
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8274
|
+
...(input.repositoryNames != null && {
|
|
8288
8275
|
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
8289
8276
|
}),
|
|
8290
8277
|
};
|
|
8291
8278
|
};
|
|
8292
8279
|
const serializeAws_json1_1BatchGetCommitsInput = (input, context) => {
|
|
8293
8280
|
return {
|
|
8294
|
-
...(input.commitIds
|
|
8295
|
-
|
|
8296
|
-
...(input.repositoryName !== undefined &&
|
|
8297
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8281
|
+
...(input.commitIds != null && { commitIds: serializeAws_json1_1CommitIdsInputList(input.commitIds, context) }),
|
|
8282
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8298
8283
|
};
|
|
8299
8284
|
};
|
|
8300
8285
|
const serializeAws_json1_1BatchGetRepositoriesInput = (input, context) => {
|
|
8301
8286
|
return {
|
|
8302
|
-
...(input.repositoryNames
|
|
8303
|
-
input.repositoryNames !== null && {
|
|
8287
|
+
...(input.repositoryNames != null && {
|
|
8304
8288
|
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
8305
8289
|
}),
|
|
8306
8290
|
};
|
|
@@ -8327,128 +8311,107 @@ const serializeAws_json1_1CommitIdsInputList = (input, context) => {
|
|
|
8327
8311
|
};
|
|
8328
8312
|
const serializeAws_json1_1ConflictResolution = (input, context) => {
|
|
8329
8313
|
return {
|
|
8330
|
-
...(input.deleteFiles
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8314
|
+
...(input.deleteFiles != null && {
|
|
8315
|
+
deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context),
|
|
8316
|
+
}),
|
|
8317
|
+
...(input.replaceContents != null && {
|
|
8334
8318
|
replaceContents: serializeAws_json1_1ReplaceContentEntries(input.replaceContents, context),
|
|
8335
8319
|
}),
|
|
8336
|
-
...(input.setFileModes
|
|
8337
|
-
input.setFileModes !== null && {
|
|
8320
|
+
...(input.setFileModes != null && {
|
|
8338
8321
|
setFileModes: serializeAws_json1_1SetFileModeEntries(input.setFileModes, context),
|
|
8339
8322
|
}),
|
|
8340
8323
|
};
|
|
8341
8324
|
};
|
|
8342
8325
|
const serializeAws_json1_1CreateApprovalRuleTemplateInput = (input, context) => {
|
|
8343
8326
|
return {
|
|
8344
|
-
...(input.approvalRuleTemplateContent
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8327
|
+
...(input.approvalRuleTemplateContent != null && {
|
|
8328
|
+
approvalRuleTemplateContent: input.approvalRuleTemplateContent,
|
|
8329
|
+
}),
|
|
8330
|
+
...(input.approvalRuleTemplateDescription != null && {
|
|
8348
8331
|
approvalRuleTemplateDescription: input.approvalRuleTemplateDescription,
|
|
8349
8332
|
}),
|
|
8350
|
-
...(input.approvalRuleTemplateName
|
|
8351
|
-
input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8333
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8352
8334
|
};
|
|
8353
8335
|
};
|
|
8354
8336
|
const serializeAws_json1_1CreateBranchInput = (input, context) => {
|
|
8355
8337
|
return {
|
|
8356
|
-
...(input.branchName
|
|
8357
|
-
...(input.commitId
|
|
8358
|
-
...(input.repositoryName
|
|
8359
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8338
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8339
|
+
...(input.commitId != null && { commitId: input.commitId }),
|
|
8340
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8360
8341
|
};
|
|
8361
8342
|
};
|
|
8362
8343
|
const serializeAws_json1_1CreateCommitInput = (input, context) => {
|
|
8363
8344
|
return {
|
|
8364
|
-
...(input.authorName
|
|
8365
|
-
...(input.branchName
|
|
8366
|
-
...(input.commitMessage
|
|
8367
|
-
...(input.deleteFiles
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
...(input.
|
|
8371
|
-
|
|
8372
|
-
...(input.parentCommitId
|
|
8373
|
-
|
|
8374
|
-
...(input.
|
|
8375
|
-
|
|
8376
|
-
...(input.repositoryName !== undefined &&
|
|
8377
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8378
|
-
...(input.setFileModes !== undefined &&
|
|
8379
|
-
input.setFileModes !== null && {
|
|
8345
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8346
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8347
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8348
|
+
...(input.deleteFiles != null && {
|
|
8349
|
+
deleteFiles: serializeAws_json1_1DeleteFileEntries(input.deleteFiles, context),
|
|
8350
|
+
}),
|
|
8351
|
+
...(input.email != null && { email: input.email }),
|
|
8352
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8353
|
+
...(input.parentCommitId != null && { parentCommitId: input.parentCommitId }),
|
|
8354
|
+
...(input.putFiles != null && { putFiles: serializeAws_json1_1PutFileEntries(input.putFiles, context) }),
|
|
8355
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8356
|
+
...(input.setFileModes != null && {
|
|
8380
8357
|
setFileModes: serializeAws_json1_1SetFileModeEntries(input.setFileModes, context),
|
|
8381
8358
|
}),
|
|
8382
8359
|
};
|
|
8383
8360
|
};
|
|
8384
8361
|
const serializeAws_json1_1CreatePullRequestApprovalRuleInput = (input, context) => {
|
|
8385
8362
|
return {
|
|
8386
|
-
...(input.approvalRuleContent
|
|
8387
|
-
|
|
8388
|
-
...(input.
|
|
8389
|
-
input.approvalRuleName !== null && { approvalRuleName: input.approvalRuleName }),
|
|
8390
|
-
...(input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }),
|
|
8363
|
+
...(input.approvalRuleContent != null && { approvalRuleContent: input.approvalRuleContent }),
|
|
8364
|
+
...(input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName }),
|
|
8365
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8391
8366
|
};
|
|
8392
8367
|
};
|
|
8393
8368
|
const serializeAws_json1_1CreatePullRequestInput = (input, context) => {
|
|
8394
8369
|
var _a;
|
|
8395
8370
|
return {
|
|
8396
8371
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
8397
|
-
...(input.description
|
|
8398
|
-
...(input.targets
|
|
8399
|
-
|
|
8400
|
-
...(input.title !== undefined && input.title !== null && { title: input.title }),
|
|
8372
|
+
...(input.description != null && { description: input.description }),
|
|
8373
|
+
...(input.targets != null && { targets: serializeAws_json1_1TargetList(input.targets, context) }),
|
|
8374
|
+
...(input.title != null && { title: input.title }),
|
|
8401
8375
|
};
|
|
8402
8376
|
};
|
|
8403
8377
|
const serializeAws_json1_1CreateRepositoryInput = (input, context) => {
|
|
8404
8378
|
return {
|
|
8405
|
-
...(input.repositoryDescription
|
|
8406
|
-
|
|
8407
|
-
...(input.
|
|
8408
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8409
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }),
|
|
8379
|
+
...(input.repositoryDescription != null && { repositoryDescription: input.repositoryDescription }),
|
|
8380
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8381
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }),
|
|
8410
8382
|
};
|
|
8411
8383
|
};
|
|
8412
8384
|
const serializeAws_json1_1CreateUnreferencedMergeCommitInput = (input, context) => {
|
|
8413
8385
|
return {
|
|
8414
|
-
...(input.authorName
|
|
8415
|
-
...(input.commitMessage
|
|
8416
|
-
...(input.conflictDetailLevel
|
|
8417
|
-
|
|
8418
|
-
...(input.conflictResolution !== undefined &&
|
|
8419
|
-
input.conflictResolution !== null && {
|
|
8386
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8387
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8388
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8389
|
+
...(input.conflictResolution != null && {
|
|
8420
8390
|
conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
|
|
8421
8391
|
}),
|
|
8422
|
-
...(input.conflictResolutionStrategy
|
|
8423
|
-
|
|
8424
|
-
...(input.
|
|
8425
|
-
|
|
8426
|
-
...(input.
|
|
8427
|
-
...(input.
|
|
8428
|
-
|
|
8429
|
-
...(input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption }),
|
|
8430
|
-
...(input.repositoryName !== undefined &&
|
|
8431
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8432
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8433
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8392
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8393
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8394
|
+
...(input.email != null && { email: input.email }),
|
|
8395
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8396
|
+
...(input.mergeOption != null && { mergeOption: input.mergeOption }),
|
|
8397
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8398
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8434
8399
|
};
|
|
8435
8400
|
};
|
|
8436
8401
|
const serializeAws_json1_1DeleteApprovalRuleTemplateInput = (input, context) => {
|
|
8437
8402
|
return {
|
|
8438
|
-
...(input.approvalRuleTemplateName
|
|
8439
|
-
input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8403
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8440
8404
|
};
|
|
8441
8405
|
};
|
|
8442
8406
|
const serializeAws_json1_1DeleteBranchInput = (input, context) => {
|
|
8443
8407
|
return {
|
|
8444
|
-
...(input.branchName
|
|
8445
|
-
...(input.repositoryName
|
|
8446
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8408
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8409
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8447
8410
|
};
|
|
8448
8411
|
};
|
|
8449
8412
|
const serializeAws_json1_1DeleteCommentContentInput = (input, context) => {
|
|
8450
8413
|
return {
|
|
8451
|
-
...(input.commentId
|
|
8414
|
+
...(input.commentId != null && { commentId: input.commentId }),
|
|
8452
8415
|
};
|
|
8453
8416
|
};
|
|
8454
8417
|
const serializeAws_json1_1DeleteFileEntries = (input, context) => {
|
|
@@ -8463,77 +8426,64 @@ const serializeAws_json1_1DeleteFileEntries = (input, context) => {
|
|
|
8463
8426
|
};
|
|
8464
8427
|
const serializeAws_json1_1DeleteFileEntry = (input, context) => {
|
|
8465
8428
|
return {
|
|
8466
|
-
...(input.filePath
|
|
8429
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8467
8430
|
};
|
|
8468
8431
|
};
|
|
8469
8432
|
const serializeAws_json1_1DeleteFileInput = (input, context) => {
|
|
8470
8433
|
return {
|
|
8471
|
-
...(input.branchName
|
|
8472
|
-
...(input.commitMessage
|
|
8473
|
-
...(input.email
|
|
8474
|
-
...(input.filePath
|
|
8475
|
-
...(input.keepEmptyFolders
|
|
8476
|
-
|
|
8477
|
-
...(input.
|
|
8478
|
-
...(input.
|
|
8479
|
-
input.parentCommitId !== null && { parentCommitId: input.parentCommitId }),
|
|
8480
|
-
...(input.repositoryName !== undefined &&
|
|
8481
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8434
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8435
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8436
|
+
...(input.email != null && { email: input.email }),
|
|
8437
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8438
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8439
|
+
...(input.name != null && { name: input.name }),
|
|
8440
|
+
...(input.parentCommitId != null && { parentCommitId: input.parentCommitId }),
|
|
8441
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8482
8442
|
};
|
|
8483
8443
|
};
|
|
8484
8444
|
const serializeAws_json1_1DeletePullRequestApprovalRuleInput = (input, context) => {
|
|
8485
8445
|
return {
|
|
8486
|
-
...(input.approvalRuleName
|
|
8487
|
-
|
|
8488
|
-
...(input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }),
|
|
8446
|
+
...(input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName }),
|
|
8447
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8489
8448
|
};
|
|
8490
8449
|
};
|
|
8491
8450
|
const serializeAws_json1_1DeleteRepositoryInput = (input, context) => {
|
|
8492
8451
|
return {
|
|
8493
|
-
...(input.repositoryName
|
|
8494
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8452
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8495
8453
|
};
|
|
8496
8454
|
};
|
|
8497
8455
|
const serializeAws_json1_1DescribeMergeConflictsInput = (input, context) => {
|
|
8498
8456
|
return {
|
|
8499
|
-
...(input.conflictDetailLevel
|
|
8500
|
-
|
|
8501
|
-
...(input.
|
|
8502
|
-
|
|
8503
|
-
...(input.
|
|
8504
|
-
|
|
8505
|
-
...(input.
|
|
8506
|
-
...(input.
|
|
8507
|
-
...(input.
|
|
8508
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
8509
|
-
...(input.repositoryName !== undefined &&
|
|
8510
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8511
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8512
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8457
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8458
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8459
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8460
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8461
|
+
...(input.maxMergeHunks != null && { maxMergeHunks: input.maxMergeHunks }),
|
|
8462
|
+
...(input.mergeOption != null && { mergeOption: input.mergeOption }),
|
|
8463
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8464
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8465
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8513
8466
|
};
|
|
8514
8467
|
};
|
|
8515
8468
|
const serializeAws_json1_1DescribePullRequestEventsInput = (input, context) => {
|
|
8516
8469
|
return {
|
|
8517
|
-
...(input.actorArn
|
|
8518
|
-
...(input.maxResults
|
|
8519
|
-
...(input.nextToken
|
|
8520
|
-
...(input.pullRequestEventType
|
|
8521
|
-
|
|
8522
|
-
...(input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }),
|
|
8470
|
+
...(input.actorArn != null && { actorArn: input.actorArn }),
|
|
8471
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8472
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8473
|
+
...(input.pullRequestEventType != null && { pullRequestEventType: input.pullRequestEventType }),
|
|
8474
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8523
8475
|
};
|
|
8524
8476
|
};
|
|
8525
8477
|
const serializeAws_json1_1DisassociateApprovalRuleTemplateFromRepositoryInput = (input, context) => {
|
|
8526
8478
|
return {
|
|
8527
|
-
...(input.approvalRuleTemplateName
|
|
8528
|
-
|
|
8529
|
-
...(input.repositoryName !== undefined &&
|
|
8530
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8479
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8480
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8531
8481
|
};
|
|
8532
8482
|
};
|
|
8533
8483
|
const serializeAws_json1_1EvaluatePullRequestApprovalRulesInput = (input, context) => {
|
|
8534
8484
|
return {
|
|
8535
|
-
...(input.pullRequestId
|
|
8536
|
-
...(input.revisionId
|
|
8485
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8486
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
8537
8487
|
};
|
|
8538
8488
|
};
|
|
8539
8489
|
const serializeAws_json1_1FilePaths = (input, context) => {
|
|
@@ -8548,397 +8498,319 @@ const serializeAws_json1_1FilePaths = (input, context) => {
|
|
|
8548
8498
|
};
|
|
8549
8499
|
const serializeAws_json1_1GetApprovalRuleTemplateInput = (input, context) => {
|
|
8550
8500
|
return {
|
|
8551
|
-
...(input.approvalRuleTemplateName
|
|
8552
|
-
input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8501
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8553
8502
|
};
|
|
8554
8503
|
};
|
|
8555
8504
|
const serializeAws_json1_1GetBlobInput = (input, context) => {
|
|
8556
8505
|
return {
|
|
8557
|
-
...(input.blobId
|
|
8558
|
-
...(input.repositoryName
|
|
8559
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8506
|
+
...(input.blobId != null && { blobId: input.blobId }),
|
|
8507
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8560
8508
|
};
|
|
8561
8509
|
};
|
|
8562
8510
|
const serializeAws_json1_1GetBranchInput = (input, context) => {
|
|
8563
8511
|
return {
|
|
8564
|
-
...(input.branchName
|
|
8565
|
-
...(input.repositoryName
|
|
8566
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8512
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8513
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8567
8514
|
};
|
|
8568
8515
|
};
|
|
8569
8516
|
const serializeAws_json1_1GetCommentInput = (input, context) => {
|
|
8570
8517
|
return {
|
|
8571
|
-
...(input.commentId
|
|
8518
|
+
...(input.commentId != null && { commentId: input.commentId }),
|
|
8572
8519
|
};
|
|
8573
8520
|
};
|
|
8574
8521
|
const serializeAws_json1_1GetCommentReactionsInput = (input, context) => {
|
|
8575
8522
|
return {
|
|
8576
|
-
...(input.commentId
|
|
8577
|
-
...(input.maxResults
|
|
8578
|
-
...(input.nextToken
|
|
8579
|
-
...(input.reactionUserArn
|
|
8580
|
-
input.reactionUserArn !== null && { reactionUserArn: input.reactionUserArn }),
|
|
8523
|
+
...(input.commentId != null && { commentId: input.commentId }),
|
|
8524
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8525
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8526
|
+
...(input.reactionUserArn != null && { reactionUserArn: input.reactionUserArn }),
|
|
8581
8527
|
};
|
|
8582
8528
|
};
|
|
8583
8529
|
const serializeAws_json1_1GetCommentsForComparedCommitInput = (input, context) => {
|
|
8584
8530
|
return {
|
|
8585
|
-
...(input.afterCommitId
|
|
8586
|
-
...(input.beforeCommitId
|
|
8587
|
-
|
|
8588
|
-
...(input.
|
|
8589
|
-
...(input.
|
|
8590
|
-
...(input.repositoryName !== undefined &&
|
|
8591
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8531
|
+
...(input.afterCommitId != null && { afterCommitId: input.afterCommitId }),
|
|
8532
|
+
...(input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId }),
|
|
8533
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8534
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8535
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8592
8536
|
};
|
|
8593
8537
|
};
|
|
8594
8538
|
const serializeAws_json1_1GetCommentsForPullRequestInput = (input, context) => {
|
|
8595
8539
|
return {
|
|
8596
|
-
...(input.afterCommitId
|
|
8597
|
-
...(input.beforeCommitId
|
|
8598
|
-
|
|
8599
|
-
...(input.
|
|
8600
|
-
...(input.
|
|
8601
|
-
...(input.
|
|
8602
|
-
...(input.repositoryName !== undefined &&
|
|
8603
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8540
|
+
...(input.afterCommitId != null && { afterCommitId: input.afterCommitId }),
|
|
8541
|
+
...(input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId }),
|
|
8542
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8543
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8544
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8545
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8604
8546
|
};
|
|
8605
8547
|
};
|
|
8606
8548
|
const serializeAws_json1_1GetCommitInput = (input, context) => {
|
|
8607
8549
|
return {
|
|
8608
|
-
...(input.commitId
|
|
8609
|
-
...(input.repositoryName
|
|
8610
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8550
|
+
...(input.commitId != null && { commitId: input.commitId }),
|
|
8551
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8611
8552
|
};
|
|
8612
8553
|
};
|
|
8613
8554
|
const serializeAws_json1_1GetDifferencesInput = (input, context) => {
|
|
8614
8555
|
return {
|
|
8615
|
-
...(input.MaxResults
|
|
8616
|
-
...(input.NextToken
|
|
8617
|
-
...(input.afterCommitSpecifier
|
|
8618
|
-
|
|
8619
|
-
...(input.
|
|
8620
|
-
...(input.
|
|
8621
|
-
|
|
8622
|
-
...(input.beforePath !== undefined && input.beforePath !== null && { beforePath: input.beforePath }),
|
|
8623
|
-
...(input.repositoryName !== undefined &&
|
|
8624
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8556
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
8557
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
8558
|
+
...(input.afterCommitSpecifier != null && { afterCommitSpecifier: input.afterCommitSpecifier }),
|
|
8559
|
+
...(input.afterPath != null && { afterPath: input.afterPath }),
|
|
8560
|
+
...(input.beforeCommitSpecifier != null && { beforeCommitSpecifier: input.beforeCommitSpecifier }),
|
|
8561
|
+
...(input.beforePath != null && { beforePath: input.beforePath }),
|
|
8562
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8625
8563
|
};
|
|
8626
8564
|
};
|
|
8627
8565
|
const serializeAws_json1_1GetFileInput = (input, context) => {
|
|
8628
8566
|
return {
|
|
8629
|
-
...(input.commitSpecifier
|
|
8630
|
-
|
|
8631
|
-
...(input.
|
|
8632
|
-
...(input.repositoryName !== undefined &&
|
|
8633
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8567
|
+
...(input.commitSpecifier != null && { commitSpecifier: input.commitSpecifier }),
|
|
8568
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8569
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8634
8570
|
};
|
|
8635
8571
|
};
|
|
8636
8572
|
const serializeAws_json1_1GetFolderInput = (input, context) => {
|
|
8637
8573
|
return {
|
|
8638
|
-
...(input.commitSpecifier
|
|
8639
|
-
|
|
8640
|
-
...(input.
|
|
8641
|
-
...(input.repositoryName !== undefined &&
|
|
8642
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8574
|
+
...(input.commitSpecifier != null && { commitSpecifier: input.commitSpecifier }),
|
|
8575
|
+
...(input.folderPath != null && { folderPath: input.folderPath }),
|
|
8576
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8643
8577
|
};
|
|
8644
8578
|
};
|
|
8645
8579
|
const serializeAws_json1_1GetMergeCommitInput = (input, context) => {
|
|
8646
8580
|
return {
|
|
8647
|
-
...(input.conflictDetailLevel
|
|
8648
|
-
|
|
8649
|
-
...(input.
|
|
8650
|
-
|
|
8651
|
-
...(input.
|
|
8652
|
-
input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8653
|
-
...(input.repositoryName !== undefined &&
|
|
8654
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8655
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8656
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8581
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8582
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8583
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8584
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8585
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8657
8586
|
};
|
|
8658
8587
|
};
|
|
8659
8588
|
const serializeAws_json1_1GetMergeConflictsInput = (input, context) => {
|
|
8660
8589
|
return {
|
|
8661
|
-
...(input.conflictDetailLevel
|
|
8662
|
-
|
|
8663
|
-
...(input.
|
|
8664
|
-
|
|
8665
|
-
...(input.
|
|
8666
|
-
|
|
8667
|
-
...(input.
|
|
8668
|
-
|
|
8669
|
-
...(input.mergeOption !== undefined && input.mergeOption !== null && { mergeOption: input.mergeOption }),
|
|
8670
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
8671
|
-
...(input.repositoryName !== undefined &&
|
|
8672
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8673
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8674
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8590
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8591
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8592
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8593
|
+
...(input.maxConflictFiles != null && { maxConflictFiles: input.maxConflictFiles }),
|
|
8594
|
+
...(input.mergeOption != null && { mergeOption: input.mergeOption }),
|
|
8595
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8596
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8597
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8675
8598
|
};
|
|
8676
8599
|
};
|
|
8677
8600
|
const serializeAws_json1_1GetMergeOptionsInput = (input, context) => {
|
|
8678
8601
|
return {
|
|
8679
|
-
...(input.conflictDetailLevel
|
|
8680
|
-
|
|
8681
|
-
...(input.
|
|
8682
|
-
|
|
8683
|
-
...(input.
|
|
8684
|
-
input.destinationCommitSpecifier !== null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8685
|
-
...(input.repositoryName !== undefined &&
|
|
8686
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8687
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8688
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8602
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8603
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8604
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8605
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8606
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8689
8607
|
};
|
|
8690
8608
|
};
|
|
8691
8609
|
const serializeAws_json1_1GetPullRequestApprovalStatesInput = (input, context) => {
|
|
8692
8610
|
return {
|
|
8693
|
-
...(input.pullRequestId
|
|
8694
|
-
...(input.revisionId
|
|
8611
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8612
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
8695
8613
|
};
|
|
8696
8614
|
};
|
|
8697
8615
|
const serializeAws_json1_1GetPullRequestInput = (input, context) => {
|
|
8698
8616
|
return {
|
|
8699
|
-
...(input.pullRequestId
|
|
8617
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8700
8618
|
};
|
|
8701
8619
|
};
|
|
8702
8620
|
const serializeAws_json1_1GetPullRequestOverrideStateInput = (input, context) => {
|
|
8703
8621
|
return {
|
|
8704
|
-
...(input.pullRequestId
|
|
8705
|
-
...(input.revisionId
|
|
8622
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8623
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
8706
8624
|
};
|
|
8707
8625
|
};
|
|
8708
8626
|
const serializeAws_json1_1GetRepositoryInput = (input, context) => {
|
|
8709
8627
|
return {
|
|
8710
|
-
...(input.repositoryName
|
|
8711
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8628
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8712
8629
|
};
|
|
8713
8630
|
};
|
|
8714
8631
|
const serializeAws_json1_1GetRepositoryTriggersInput = (input, context) => {
|
|
8715
8632
|
return {
|
|
8716
|
-
...(input.repositoryName
|
|
8717
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8633
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8718
8634
|
};
|
|
8719
8635
|
};
|
|
8720
8636
|
const serializeAws_json1_1ListApprovalRuleTemplatesInput = (input, context) => {
|
|
8721
8637
|
return {
|
|
8722
|
-
...(input.maxResults
|
|
8723
|
-
...(input.nextToken
|
|
8638
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8639
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8724
8640
|
};
|
|
8725
8641
|
};
|
|
8726
8642
|
const serializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryInput = (input, context) => {
|
|
8727
8643
|
return {
|
|
8728
|
-
...(input.maxResults
|
|
8729
|
-
...(input.nextToken
|
|
8730
|
-
...(input.repositoryName
|
|
8731
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8644
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8645
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8646
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8732
8647
|
};
|
|
8733
8648
|
};
|
|
8734
8649
|
const serializeAws_json1_1ListBranchesInput = (input, context) => {
|
|
8735
8650
|
return {
|
|
8736
|
-
...(input.nextToken
|
|
8737
|
-
...(input.repositoryName
|
|
8738
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8651
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8652
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8739
8653
|
};
|
|
8740
8654
|
};
|
|
8741
8655
|
const serializeAws_json1_1ListPullRequestsInput = (input, context) => {
|
|
8742
8656
|
return {
|
|
8743
|
-
...(input.authorArn
|
|
8744
|
-
...(input.maxResults
|
|
8745
|
-
...(input.nextToken
|
|
8746
|
-
...(input.pullRequestStatus
|
|
8747
|
-
|
|
8748
|
-
...(input.repositoryName !== undefined &&
|
|
8749
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8657
|
+
...(input.authorArn != null && { authorArn: input.authorArn }),
|
|
8658
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8659
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8660
|
+
...(input.pullRequestStatus != null && { pullRequestStatus: input.pullRequestStatus }),
|
|
8661
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8750
8662
|
};
|
|
8751
8663
|
};
|
|
8752
8664
|
const serializeAws_json1_1ListRepositoriesForApprovalRuleTemplateInput = (input, context) => {
|
|
8753
8665
|
return {
|
|
8754
|
-
...(input.approvalRuleTemplateName
|
|
8755
|
-
|
|
8756
|
-
...(input.
|
|
8757
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
8666
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8667
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
8668
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8758
8669
|
};
|
|
8759
8670
|
};
|
|
8760
8671
|
const serializeAws_json1_1ListRepositoriesInput = (input, context) => {
|
|
8761
8672
|
return {
|
|
8762
|
-
...(input.nextToken
|
|
8763
|
-
...(input.order
|
|
8764
|
-
...(input.sortBy
|
|
8673
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8674
|
+
...(input.order != null && { order: input.order }),
|
|
8675
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
8765
8676
|
};
|
|
8766
8677
|
};
|
|
8767
8678
|
const serializeAws_json1_1ListTagsForResourceInput = (input, context) => {
|
|
8768
8679
|
return {
|
|
8769
|
-
...(input.nextToken
|
|
8770
|
-
...(input.resourceArn
|
|
8680
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
8681
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
8771
8682
|
};
|
|
8772
8683
|
};
|
|
8773
8684
|
const serializeAws_json1_1Location = (input, context) => {
|
|
8774
8685
|
return {
|
|
8775
|
-
...(input.filePath
|
|
8776
|
-
...(input.filePosition
|
|
8777
|
-
...(input.relativeFileVersion
|
|
8778
|
-
input.relativeFileVersion !== null && { relativeFileVersion: input.relativeFileVersion }),
|
|
8686
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8687
|
+
...(input.filePosition != null && { filePosition: input.filePosition }),
|
|
8688
|
+
...(input.relativeFileVersion != null && { relativeFileVersion: input.relativeFileVersion }),
|
|
8779
8689
|
};
|
|
8780
8690
|
};
|
|
8781
8691
|
const serializeAws_json1_1MergeBranchesByFastForwardInput = (input, context) => {
|
|
8782
8692
|
return {
|
|
8783
|
-
...(input.destinationCommitSpecifier
|
|
8784
|
-
|
|
8785
|
-
...(input.
|
|
8786
|
-
|
|
8787
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8788
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8789
|
-
...(input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }),
|
|
8693
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8694
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8695
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8696
|
+
...(input.targetBranch != null && { targetBranch: input.targetBranch }),
|
|
8790
8697
|
};
|
|
8791
8698
|
};
|
|
8792
8699
|
const serializeAws_json1_1MergeBranchesBySquashInput = (input, context) => {
|
|
8793
8700
|
return {
|
|
8794
|
-
...(input.authorName
|
|
8795
|
-
...(input.commitMessage
|
|
8796
|
-
...(input.conflictDetailLevel
|
|
8797
|
-
|
|
8798
|
-
...(input.conflictResolution !== undefined &&
|
|
8799
|
-
input.conflictResolution !== null && {
|
|
8701
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8702
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8703
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8704
|
+
...(input.conflictResolution != null && {
|
|
8800
8705
|
conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
|
|
8801
8706
|
}),
|
|
8802
|
-
...(input.conflictResolutionStrategy
|
|
8803
|
-
|
|
8804
|
-
...(input.
|
|
8805
|
-
|
|
8806
|
-
...(input.
|
|
8807
|
-
...(input.
|
|
8808
|
-
|
|
8809
|
-
...(input.repositoryName !== undefined &&
|
|
8810
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8811
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8812
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8813
|
-
...(input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }),
|
|
8707
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8708
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8709
|
+
...(input.email != null && { email: input.email }),
|
|
8710
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8711
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8712
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8713
|
+
...(input.targetBranch != null && { targetBranch: input.targetBranch }),
|
|
8814
8714
|
};
|
|
8815
8715
|
};
|
|
8816
8716
|
const serializeAws_json1_1MergeBranchesByThreeWayInput = (input, context) => {
|
|
8817
8717
|
return {
|
|
8818
|
-
...(input.authorName
|
|
8819
|
-
...(input.commitMessage
|
|
8820
|
-
...(input.conflictDetailLevel
|
|
8821
|
-
|
|
8822
|
-
...(input.conflictResolution !== undefined &&
|
|
8823
|
-
input.conflictResolution !== null && {
|
|
8718
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8719
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8720
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8721
|
+
...(input.conflictResolution != null && {
|
|
8824
8722
|
conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
|
|
8825
8723
|
}),
|
|
8826
|
-
...(input.conflictResolutionStrategy
|
|
8827
|
-
|
|
8828
|
-
...(input.
|
|
8829
|
-
|
|
8830
|
-
...(input.
|
|
8831
|
-
...(input.
|
|
8832
|
-
|
|
8833
|
-
...(input.repositoryName !== undefined &&
|
|
8834
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8835
|
-
...(input.sourceCommitSpecifier !== undefined &&
|
|
8836
|
-
input.sourceCommitSpecifier !== null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8837
|
-
...(input.targetBranch !== undefined && input.targetBranch !== null && { targetBranch: input.targetBranch }),
|
|
8724
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8725
|
+
...(input.destinationCommitSpecifier != null && { destinationCommitSpecifier: input.destinationCommitSpecifier }),
|
|
8726
|
+
...(input.email != null && { email: input.email }),
|
|
8727
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8728
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8729
|
+
...(input.sourceCommitSpecifier != null && { sourceCommitSpecifier: input.sourceCommitSpecifier }),
|
|
8730
|
+
...(input.targetBranch != null && { targetBranch: input.targetBranch }),
|
|
8838
8731
|
};
|
|
8839
8732
|
};
|
|
8840
8733
|
const serializeAws_json1_1MergePullRequestByFastForwardInput = (input, context) => {
|
|
8841
8734
|
return {
|
|
8842
|
-
...(input.pullRequestId
|
|
8843
|
-
...(input.repositoryName
|
|
8844
|
-
|
|
8845
|
-
...(input.sourceCommitId !== undefined &&
|
|
8846
|
-
input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }),
|
|
8735
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8736
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8737
|
+
...(input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }),
|
|
8847
8738
|
};
|
|
8848
8739
|
};
|
|
8849
8740
|
const serializeAws_json1_1MergePullRequestBySquashInput = (input, context) => {
|
|
8850
8741
|
return {
|
|
8851
|
-
...(input.authorName
|
|
8852
|
-
...(input.commitMessage
|
|
8853
|
-
...(input.conflictDetailLevel
|
|
8854
|
-
|
|
8855
|
-
...(input.conflictResolution !== undefined &&
|
|
8856
|
-
input.conflictResolution !== null && {
|
|
8742
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8743
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8744
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8745
|
+
...(input.conflictResolution != null && {
|
|
8857
8746
|
conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
|
|
8858
8747
|
}),
|
|
8859
|
-
...(input.conflictResolutionStrategy
|
|
8860
|
-
|
|
8861
|
-
...(input.
|
|
8862
|
-
...(input.
|
|
8863
|
-
|
|
8864
|
-
...(input.
|
|
8865
|
-
...(input.repositoryName !== undefined &&
|
|
8866
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8867
|
-
...(input.sourceCommitId !== undefined &&
|
|
8868
|
-
input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }),
|
|
8748
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8749
|
+
...(input.email != null && { email: input.email }),
|
|
8750
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8751
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8752
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8753
|
+
...(input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }),
|
|
8869
8754
|
};
|
|
8870
8755
|
};
|
|
8871
8756
|
const serializeAws_json1_1MergePullRequestByThreeWayInput = (input, context) => {
|
|
8872
8757
|
return {
|
|
8873
|
-
...(input.authorName
|
|
8874
|
-
...(input.commitMessage
|
|
8875
|
-
...(input.conflictDetailLevel
|
|
8876
|
-
|
|
8877
|
-
...(input.conflictResolution !== undefined &&
|
|
8878
|
-
input.conflictResolution !== null && {
|
|
8758
|
+
...(input.authorName != null && { authorName: input.authorName }),
|
|
8759
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8760
|
+
...(input.conflictDetailLevel != null && { conflictDetailLevel: input.conflictDetailLevel }),
|
|
8761
|
+
...(input.conflictResolution != null && {
|
|
8879
8762
|
conflictResolution: serializeAws_json1_1ConflictResolution(input.conflictResolution, context),
|
|
8880
8763
|
}),
|
|
8881
|
-
...(input.conflictResolutionStrategy
|
|
8882
|
-
|
|
8883
|
-
...(input.
|
|
8884
|
-
...(input.
|
|
8885
|
-
|
|
8886
|
-
...(input.
|
|
8887
|
-
...(input.repositoryName !== undefined &&
|
|
8888
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8889
|
-
...(input.sourceCommitId !== undefined &&
|
|
8890
|
-
input.sourceCommitId !== null && { sourceCommitId: input.sourceCommitId }),
|
|
8764
|
+
...(input.conflictResolutionStrategy != null && { conflictResolutionStrategy: input.conflictResolutionStrategy }),
|
|
8765
|
+
...(input.email != null && { email: input.email }),
|
|
8766
|
+
...(input.keepEmptyFolders != null && { keepEmptyFolders: input.keepEmptyFolders }),
|
|
8767
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8768
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8769
|
+
...(input.sourceCommitId != null && { sourceCommitId: input.sourceCommitId }),
|
|
8891
8770
|
};
|
|
8892
8771
|
};
|
|
8893
8772
|
const serializeAws_json1_1OverridePullRequestApprovalRulesInput = (input, context) => {
|
|
8894
8773
|
return {
|
|
8895
|
-
...(input.overrideStatus
|
|
8896
|
-
|
|
8897
|
-
...(input.
|
|
8898
|
-
...(input.revisionId !== undefined && input.revisionId !== null && { revisionId: input.revisionId }),
|
|
8774
|
+
...(input.overrideStatus != null && { overrideStatus: input.overrideStatus }),
|
|
8775
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8776
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
8899
8777
|
};
|
|
8900
8778
|
};
|
|
8901
8779
|
const serializeAws_json1_1PostCommentForComparedCommitInput = (input, context) => {
|
|
8902
8780
|
var _a;
|
|
8903
8781
|
return {
|
|
8904
|
-
...(input.afterCommitId
|
|
8905
|
-
...(input.beforeCommitId
|
|
8906
|
-
input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId }),
|
|
8782
|
+
...(input.afterCommitId != null && { afterCommitId: input.afterCommitId }),
|
|
8783
|
+
...(input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId }),
|
|
8907
8784
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
8908
|
-
...(input.content
|
|
8909
|
-
...(input.location
|
|
8910
|
-
|
|
8911
|
-
...(input.repositoryName !== undefined &&
|
|
8912
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8785
|
+
...(input.content != null && { content: input.content }),
|
|
8786
|
+
...(input.location != null && { location: serializeAws_json1_1Location(input.location, context) }),
|
|
8787
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8913
8788
|
};
|
|
8914
8789
|
};
|
|
8915
8790
|
const serializeAws_json1_1PostCommentForPullRequestInput = (input, context) => {
|
|
8916
8791
|
var _a;
|
|
8917
8792
|
return {
|
|
8918
|
-
...(input.afterCommitId
|
|
8919
|
-
...(input.beforeCommitId
|
|
8920
|
-
input.beforeCommitId !== null && { beforeCommitId: input.beforeCommitId }),
|
|
8793
|
+
...(input.afterCommitId != null && { afterCommitId: input.afterCommitId }),
|
|
8794
|
+
...(input.beforeCommitId != null && { beforeCommitId: input.beforeCommitId }),
|
|
8921
8795
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
8922
|
-
...(input.content
|
|
8923
|
-
...(input.location
|
|
8924
|
-
|
|
8925
|
-
...(input.
|
|
8926
|
-
...(input.repositoryName !== undefined &&
|
|
8927
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8796
|
+
...(input.content != null && { content: input.content }),
|
|
8797
|
+
...(input.location != null && { location: serializeAws_json1_1Location(input.location, context) }),
|
|
8798
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
8799
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8928
8800
|
};
|
|
8929
8801
|
};
|
|
8930
8802
|
const serializeAws_json1_1PostCommentReplyInput = (input, context) => {
|
|
8931
8803
|
var _a;
|
|
8932
8804
|
return {
|
|
8933
8805
|
clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
8934
|
-
...(input.content
|
|
8935
|
-
...(input.inReplyTo
|
|
8806
|
+
...(input.content != null && { content: input.content }),
|
|
8807
|
+
...(input.inReplyTo != null && { inReplyTo: input.inReplyTo }),
|
|
8936
8808
|
};
|
|
8937
8809
|
};
|
|
8938
8810
|
const serializeAws_json1_1PutCommentReactionInput = (input, context) => {
|
|
8939
8811
|
return {
|
|
8940
|
-
...(input.commentId
|
|
8941
|
-
...(input.reactionValue
|
|
8812
|
+
...(input.commentId != null && { commentId: input.commentId }),
|
|
8813
|
+
...(input.reactionValue != null && { reactionValue: input.reactionValue }),
|
|
8942
8814
|
};
|
|
8943
8815
|
};
|
|
8944
8816
|
const serializeAws_json1_1PutFileEntries = (input, context) => {
|
|
@@ -8953,36 +8825,29 @@ const serializeAws_json1_1PutFileEntries = (input, context) => {
|
|
|
8953
8825
|
};
|
|
8954
8826
|
const serializeAws_json1_1PutFileEntry = (input, context) => {
|
|
8955
8827
|
return {
|
|
8956
|
-
...(input.fileContent
|
|
8957
|
-
|
|
8958
|
-
...(input.
|
|
8959
|
-
...(input.
|
|
8960
|
-
...(input.sourceFile !== undefined &&
|
|
8961
|
-
input.sourceFile !== null && { sourceFile: serializeAws_json1_1SourceFileSpecifier(input.sourceFile, context) }),
|
|
8828
|
+
...(input.fileContent != null && { fileContent: context.base64Encoder(input.fileContent) }),
|
|
8829
|
+
...(input.fileMode != null && { fileMode: input.fileMode }),
|
|
8830
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8831
|
+
...(input.sourceFile != null && { sourceFile: serializeAws_json1_1SourceFileSpecifier(input.sourceFile, context) }),
|
|
8962
8832
|
};
|
|
8963
8833
|
};
|
|
8964
8834
|
const serializeAws_json1_1PutFileInput = (input, context) => {
|
|
8965
8835
|
return {
|
|
8966
|
-
...(input.branchName
|
|
8967
|
-
...(input.commitMessage
|
|
8968
|
-
...(input.email
|
|
8969
|
-
...(input.fileContent
|
|
8970
|
-
|
|
8971
|
-
...(input.
|
|
8972
|
-
...(input.
|
|
8973
|
-
...(input.
|
|
8974
|
-
...(input.
|
|
8975
|
-
input.parentCommitId !== null && { parentCommitId: input.parentCommitId }),
|
|
8976
|
-
...(input.repositoryName !== undefined &&
|
|
8977
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
8836
|
+
...(input.branchName != null && { branchName: input.branchName }),
|
|
8837
|
+
...(input.commitMessage != null && { commitMessage: input.commitMessage }),
|
|
8838
|
+
...(input.email != null && { email: input.email }),
|
|
8839
|
+
...(input.fileContent != null && { fileContent: context.base64Encoder(input.fileContent) }),
|
|
8840
|
+
...(input.fileMode != null && { fileMode: input.fileMode }),
|
|
8841
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8842
|
+
...(input.name != null && { name: input.name }),
|
|
8843
|
+
...(input.parentCommitId != null && { parentCommitId: input.parentCommitId }),
|
|
8844
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8978
8845
|
};
|
|
8979
8846
|
};
|
|
8980
8847
|
const serializeAws_json1_1PutRepositoryTriggersInput = (input, context) => {
|
|
8981
8848
|
return {
|
|
8982
|
-
...(input.repositoryName
|
|
8983
|
-
|
|
8984
|
-
...(input.triggers !== undefined &&
|
|
8985
|
-
input.triggers !== null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }),
|
|
8849
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8850
|
+
...(input.triggers != null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }),
|
|
8986
8851
|
};
|
|
8987
8852
|
};
|
|
8988
8853
|
const serializeAws_json1_1ReplaceContentEntries = (input, context) => {
|
|
@@ -8997,11 +8862,10 @@ const serializeAws_json1_1ReplaceContentEntries = (input, context) => {
|
|
|
8997
8862
|
};
|
|
8998
8863
|
const serializeAws_json1_1ReplaceContentEntry = (input, context) => {
|
|
8999
8864
|
return {
|
|
9000
|
-
...(input.content
|
|
9001
|
-
...(input.fileMode
|
|
9002
|
-
...(input.filePath
|
|
9003
|
-
...(input.replacementType
|
|
9004
|
-
input.replacementType !== null && { replacementType: input.replacementType }),
|
|
8865
|
+
...(input.content != null && { content: context.base64Encoder(input.content) }),
|
|
8866
|
+
...(input.fileMode != null && { fileMode: input.fileMode }),
|
|
8867
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8868
|
+
...(input.replacementType != null && { replacementType: input.replacementType }),
|
|
9005
8869
|
};
|
|
9006
8870
|
};
|
|
9007
8871
|
const serializeAws_json1_1RepositoryNameList = (input, context) => {
|
|
@@ -9016,14 +8880,11 @@ const serializeAws_json1_1RepositoryNameList = (input, context) => {
|
|
|
9016
8880
|
};
|
|
9017
8881
|
const serializeAws_json1_1RepositoryTrigger = (input, context) => {
|
|
9018
8882
|
return {
|
|
9019
|
-
...(input.branches
|
|
9020
|
-
|
|
9021
|
-
...(input.
|
|
9022
|
-
...(input.
|
|
9023
|
-
|
|
9024
|
-
...(input.events !== undefined &&
|
|
9025
|
-
input.events !== null && { events: serializeAws_json1_1RepositoryTriggerEventList(input.events, context) }),
|
|
9026
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
8883
|
+
...(input.branches != null && { branches: serializeAws_json1_1BranchNameList(input.branches, context) }),
|
|
8884
|
+
...(input.customData != null && { customData: input.customData }),
|
|
8885
|
+
...(input.destinationArn != null && { destinationArn: input.destinationArn }),
|
|
8886
|
+
...(input.events != null && { events: serializeAws_json1_1RepositoryTriggerEventList(input.events, context) }),
|
|
8887
|
+
...(input.name != null && { name: input.name }),
|
|
9027
8888
|
};
|
|
9028
8889
|
};
|
|
9029
8890
|
const serializeAws_json1_1RepositoryTriggerEventList = (input, context) => {
|
|
@@ -9058,14 +8919,14 @@ const serializeAws_json1_1SetFileModeEntries = (input, context) => {
|
|
|
9058
8919
|
};
|
|
9059
8920
|
const serializeAws_json1_1SetFileModeEntry = (input, context) => {
|
|
9060
8921
|
return {
|
|
9061
|
-
...(input.fileMode
|
|
9062
|
-
...(input.filePath
|
|
8922
|
+
...(input.fileMode != null && { fileMode: input.fileMode }),
|
|
8923
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
9063
8924
|
};
|
|
9064
8925
|
};
|
|
9065
8926
|
const serializeAws_json1_1SourceFileSpecifier = (input, context) => {
|
|
9066
8927
|
return {
|
|
9067
|
-
...(input.filePath
|
|
9068
|
-
...(input.isMove
|
|
8928
|
+
...(input.filePath != null && { filePath: input.filePath }),
|
|
8929
|
+
...(input.isMove != null && { isMove: input.isMove }),
|
|
9069
8930
|
};
|
|
9070
8931
|
};
|
|
9071
8932
|
const serializeAws_json1_1TagKeysList = (input, context) => {
|
|
@@ -9080,8 +8941,8 @@ const serializeAws_json1_1TagKeysList = (input, context) => {
|
|
|
9080
8941
|
};
|
|
9081
8942
|
const serializeAws_json1_1TagResourceInput = (input, context) => {
|
|
9082
8943
|
return {
|
|
9083
|
-
...(input.resourceArn
|
|
9084
|
-
...(input.tags
|
|
8944
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
8945
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagsMap(input.tags, context) }),
|
|
9085
8946
|
};
|
|
9086
8947
|
};
|
|
9087
8948
|
const serializeAws_json1_1TagsMap = (input, context) => {
|
|
@@ -9097,12 +8958,9 @@ const serializeAws_json1_1TagsMap = (input, context) => {
|
|
|
9097
8958
|
};
|
|
9098
8959
|
const serializeAws_json1_1Target = (input, context) => {
|
|
9099
8960
|
return {
|
|
9100
|
-
...(input.destinationReference
|
|
9101
|
-
|
|
9102
|
-
...(input.
|
|
9103
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
9104
|
-
...(input.sourceReference !== undefined &&
|
|
9105
|
-
input.sourceReference !== null && { sourceReference: input.sourceReference }),
|
|
8961
|
+
...(input.destinationReference != null && { destinationReference: input.destinationReference }),
|
|
8962
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8963
|
+
...(input.sourceReference != null && { sourceReference: input.sourceReference }),
|
|
9106
8964
|
};
|
|
9107
8965
|
};
|
|
9108
8966
|
const serializeAws_json1_1TargetList = (input, context) => {
|
|
@@ -9117,110 +8975,96 @@ const serializeAws_json1_1TargetList = (input, context) => {
|
|
|
9117
8975
|
};
|
|
9118
8976
|
const serializeAws_json1_1TestRepositoryTriggersInput = (input, context) => {
|
|
9119
8977
|
return {
|
|
9120
|
-
...(input.repositoryName
|
|
9121
|
-
|
|
9122
|
-
...(input.triggers !== undefined &&
|
|
9123
|
-
input.triggers !== null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }),
|
|
8978
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
8979
|
+
...(input.triggers != null && { triggers: serializeAws_json1_1RepositoryTriggersList(input.triggers, context) }),
|
|
9124
8980
|
};
|
|
9125
8981
|
};
|
|
9126
8982
|
const serializeAws_json1_1UntagResourceInput = (input, context) => {
|
|
9127
8983
|
return {
|
|
9128
|
-
...(input.resourceArn
|
|
9129
|
-
...(input.tagKeys
|
|
9130
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeysList(input.tagKeys, context) }),
|
|
8984
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
8985
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeysList(input.tagKeys, context) }),
|
|
9131
8986
|
};
|
|
9132
8987
|
};
|
|
9133
8988
|
const serializeAws_json1_1UpdateApprovalRuleTemplateContentInput = (input, context) => {
|
|
9134
8989
|
return {
|
|
9135
|
-
...(input.approvalRuleTemplateName
|
|
9136
|
-
|
|
9137
|
-
...(input.
|
|
9138
|
-
input.existingRuleContentSha256 !== null && { existingRuleContentSha256: input.existingRuleContentSha256 }),
|
|
9139
|
-
...(input.newRuleContent !== undefined &&
|
|
9140
|
-
input.newRuleContent !== null && { newRuleContent: input.newRuleContent }),
|
|
8990
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
8991
|
+
...(input.existingRuleContentSha256 != null && { existingRuleContentSha256: input.existingRuleContentSha256 }),
|
|
8992
|
+
...(input.newRuleContent != null && { newRuleContent: input.newRuleContent }),
|
|
9141
8993
|
};
|
|
9142
8994
|
};
|
|
9143
8995
|
const serializeAws_json1_1UpdateApprovalRuleTemplateDescriptionInput = (input, context) => {
|
|
9144
8996
|
return {
|
|
9145
|
-
...(input.approvalRuleTemplateDescription
|
|
9146
|
-
input.approvalRuleTemplateDescription !== null && {
|
|
8997
|
+
...(input.approvalRuleTemplateDescription != null && {
|
|
9147
8998
|
approvalRuleTemplateDescription: input.approvalRuleTemplateDescription,
|
|
9148
8999
|
}),
|
|
9149
|
-
...(input.approvalRuleTemplateName
|
|
9150
|
-
input.approvalRuleTemplateName !== null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
9000
|
+
...(input.approvalRuleTemplateName != null && { approvalRuleTemplateName: input.approvalRuleTemplateName }),
|
|
9151
9001
|
};
|
|
9152
9002
|
};
|
|
9153
9003
|
const serializeAws_json1_1UpdateApprovalRuleTemplateNameInput = (input, context) => {
|
|
9154
9004
|
return {
|
|
9155
|
-
...(input.newApprovalRuleTemplateName
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9005
|
+
...(input.newApprovalRuleTemplateName != null && {
|
|
9006
|
+
newApprovalRuleTemplateName: input.newApprovalRuleTemplateName,
|
|
9007
|
+
}),
|
|
9008
|
+
...(input.oldApprovalRuleTemplateName != null && {
|
|
9009
|
+
oldApprovalRuleTemplateName: input.oldApprovalRuleTemplateName,
|
|
9010
|
+
}),
|
|
9159
9011
|
};
|
|
9160
9012
|
};
|
|
9161
9013
|
const serializeAws_json1_1UpdateCommentInput = (input, context) => {
|
|
9162
9014
|
return {
|
|
9163
|
-
...(input.commentId
|
|
9164
|
-
...(input.content
|
|
9015
|
+
...(input.commentId != null && { commentId: input.commentId }),
|
|
9016
|
+
...(input.content != null && { content: input.content }),
|
|
9165
9017
|
};
|
|
9166
9018
|
};
|
|
9167
9019
|
const serializeAws_json1_1UpdateDefaultBranchInput = (input, context) => {
|
|
9168
9020
|
return {
|
|
9169
|
-
...(input.defaultBranchName
|
|
9170
|
-
|
|
9171
|
-
...(input.repositoryName !== undefined &&
|
|
9172
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
9021
|
+
...(input.defaultBranchName != null && { defaultBranchName: input.defaultBranchName }),
|
|
9022
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
9173
9023
|
};
|
|
9174
9024
|
};
|
|
9175
9025
|
const serializeAws_json1_1UpdatePullRequestApprovalRuleContentInput = (input, context) => {
|
|
9176
9026
|
return {
|
|
9177
|
-
...(input.approvalRuleName
|
|
9178
|
-
|
|
9179
|
-
...(input.
|
|
9180
|
-
|
|
9181
|
-
...(input.newRuleContent !== undefined &&
|
|
9182
|
-
input.newRuleContent !== null && { newRuleContent: input.newRuleContent }),
|
|
9183
|
-
...(input.pullRequestId !== undefined && input.pullRequestId !== null && { pullRequestId: input.pullRequestId }),
|
|
9027
|
+
...(input.approvalRuleName != null && { approvalRuleName: input.approvalRuleName }),
|
|
9028
|
+
...(input.existingRuleContentSha256 != null && { existingRuleContentSha256: input.existingRuleContentSha256 }),
|
|
9029
|
+
...(input.newRuleContent != null && { newRuleContent: input.newRuleContent }),
|
|
9030
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
9184
9031
|
};
|
|
9185
9032
|
};
|
|
9186
9033
|
const serializeAws_json1_1UpdatePullRequestApprovalStateInput = (input, context) => {
|
|
9187
9034
|
return {
|
|
9188
|
-
...(input.approvalState
|
|
9189
|
-
...(input.pullRequestId
|
|
9190
|
-
...(input.revisionId
|
|
9035
|
+
...(input.approvalState != null && { approvalState: input.approvalState }),
|
|
9036
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
9037
|
+
...(input.revisionId != null && { revisionId: input.revisionId }),
|
|
9191
9038
|
};
|
|
9192
9039
|
};
|
|
9193
9040
|
const serializeAws_json1_1UpdatePullRequestDescriptionInput = (input, context) => {
|
|
9194
9041
|
return {
|
|
9195
|
-
...(input.description
|
|
9196
|
-
...(input.pullRequestId
|
|
9042
|
+
...(input.description != null && { description: input.description }),
|
|
9043
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
9197
9044
|
};
|
|
9198
9045
|
};
|
|
9199
9046
|
const serializeAws_json1_1UpdatePullRequestStatusInput = (input, context) => {
|
|
9200
9047
|
return {
|
|
9201
|
-
...(input.pullRequestId
|
|
9202
|
-
...(input.pullRequestStatus
|
|
9203
|
-
input.pullRequestStatus !== null && { pullRequestStatus: input.pullRequestStatus }),
|
|
9048
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
9049
|
+
...(input.pullRequestStatus != null && { pullRequestStatus: input.pullRequestStatus }),
|
|
9204
9050
|
};
|
|
9205
9051
|
};
|
|
9206
9052
|
const serializeAws_json1_1UpdatePullRequestTitleInput = (input, context) => {
|
|
9207
9053
|
return {
|
|
9208
|
-
...(input.pullRequestId
|
|
9209
|
-
...(input.title
|
|
9054
|
+
...(input.pullRequestId != null && { pullRequestId: input.pullRequestId }),
|
|
9055
|
+
...(input.title != null && { title: input.title }),
|
|
9210
9056
|
};
|
|
9211
9057
|
};
|
|
9212
9058
|
const serializeAws_json1_1UpdateRepositoryDescriptionInput = (input, context) => {
|
|
9213
9059
|
return {
|
|
9214
|
-
...(input.repositoryDescription
|
|
9215
|
-
|
|
9216
|
-
...(input.repositoryName !== undefined &&
|
|
9217
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
9060
|
+
...(input.repositoryDescription != null && { repositoryDescription: input.repositoryDescription }),
|
|
9061
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
9218
9062
|
};
|
|
9219
9063
|
};
|
|
9220
9064
|
const serializeAws_json1_1UpdateRepositoryNameInput = (input, context) => {
|
|
9221
9065
|
return {
|
|
9222
|
-
...(input.newName
|
|
9223
|
-
...(input.oldName
|
|
9066
|
+
...(input.newName != null && { newName: input.newName }),
|
|
9067
|
+
...(input.oldName != null && { oldName: input.oldName }),
|
|
9224
9068
|
};
|
|
9225
9069
|
};
|
|
9226
9070
|
const deserializeAws_json1_1ActorDoesNotExistException = (output, context) => {
|
|
@@ -9250,14 +9094,14 @@ const deserializeAws_json1_1ApprovalRule = (output, context) => {
|
|
|
9250
9094
|
approvalRuleContent: (0, smithy_client_1.expectString)(output.approvalRuleContent),
|
|
9251
9095
|
approvalRuleId: (0, smithy_client_1.expectString)(output.approvalRuleId),
|
|
9252
9096
|
approvalRuleName: (0, smithy_client_1.expectString)(output.approvalRuleName),
|
|
9253
|
-
creationDate: output.creationDate
|
|
9097
|
+
creationDate: output.creationDate != null
|
|
9254
9098
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
9255
9099
|
: undefined,
|
|
9256
|
-
lastModifiedDate: output.lastModifiedDate
|
|
9100
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
9257
9101
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
|
|
9258
9102
|
: undefined,
|
|
9259
9103
|
lastModifiedUser: (0, smithy_client_1.expectString)(output.lastModifiedUser),
|
|
9260
|
-
originApprovalRuleTemplate: output.originApprovalRuleTemplate
|
|
9104
|
+
originApprovalRuleTemplate: output.originApprovalRuleTemplate != null
|
|
9261
9105
|
? deserializeAws_json1_1OriginApprovalRuleTemplate(output.originApprovalRuleTemplate, context)
|
|
9262
9106
|
: undefined,
|
|
9263
9107
|
ruleContentSha256: (0, smithy_client_1.expectString)(output.ruleContentSha256),
|
|
@@ -9335,10 +9179,10 @@ const deserializeAws_json1_1ApprovalRuleTemplate = (output, context) => {
|
|
|
9335
9179
|
approvalRuleTemplateDescription: (0, smithy_client_1.expectString)(output.approvalRuleTemplateDescription),
|
|
9336
9180
|
approvalRuleTemplateId: (0, smithy_client_1.expectString)(output.approvalRuleTemplateId),
|
|
9337
9181
|
approvalRuleTemplateName: (0, smithy_client_1.expectString)(output.approvalRuleTemplateName),
|
|
9338
|
-
creationDate: output.creationDate
|
|
9182
|
+
creationDate: output.creationDate != null
|
|
9339
9183
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
9340
9184
|
: undefined,
|
|
9341
|
-
lastModifiedDate: output.lastModifiedDate
|
|
9185
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
9342
9186
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
|
|
9343
9187
|
: undefined,
|
|
9344
9188
|
lastModifiedUser: (0, smithy_client_1.expectString)(output.lastModifiedUser),
|
|
@@ -9417,10 +9261,10 @@ const deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesEr
|
|
|
9417
9261
|
};
|
|
9418
9262
|
const deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesOutput = (output, context) => {
|
|
9419
9263
|
return {
|
|
9420
|
-
associatedRepositoryNames: output.associatedRepositoryNames
|
|
9264
|
+
associatedRepositoryNames: output.associatedRepositoryNames != null
|
|
9421
9265
|
? deserializeAws_json1_1RepositoryNameList(output.associatedRepositoryNames, context)
|
|
9422
9266
|
: undefined,
|
|
9423
|
-
errors: output.errors
|
|
9267
|
+
errors: output.errors != null
|
|
9424
9268
|
? deserializeAws_json1_1BatchAssociateApprovalRuleTemplateWithRepositoriesErrorsList(output.errors, context)
|
|
9425
9269
|
: undefined,
|
|
9426
9270
|
};
|
|
@@ -9446,11 +9290,9 @@ const deserializeAws_json1_1BatchDescribeMergeConflictsErrors = (output, context
|
|
|
9446
9290
|
const deserializeAws_json1_1BatchDescribeMergeConflictsOutput = (output, context) => {
|
|
9447
9291
|
return {
|
|
9448
9292
|
baseCommitId: (0, smithy_client_1.expectString)(output.baseCommitId),
|
|
9449
|
-
conflicts: output.conflicts
|
|
9450
|
-
? deserializeAws_json1_1Conflicts(output.conflicts, context)
|
|
9451
|
-
: undefined,
|
|
9293
|
+
conflicts: output.conflicts != null ? deserializeAws_json1_1Conflicts(output.conflicts, context) : undefined,
|
|
9452
9294
|
destinationCommitId: (0, smithy_client_1.expectString)(output.destinationCommitId),
|
|
9453
|
-
errors: output.errors
|
|
9295
|
+
errors: output.errors != null
|
|
9454
9296
|
? deserializeAws_json1_1BatchDescribeMergeConflictsErrors(output.errors, context)
|
|
9455
9297
|
: undefined,
|
|
9456
9298
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -9477,10 +9319,10 @@ const deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositorie
|
|
|
9477
9319
|
};
|
|
9478
9320
|
const deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput = (output, context) => {
|
|
9479
9321
|
return {
|
|
9480
|
-
disassociatedRepositoryNames: output.disassociatedRepositoryNames
|
|
9322
|
+
disassociatedRepositoryNames: output.disassociatedRepositoryNames != null
|
|
9481
9323
|
? deserializeAws_json1_1RepositoryNameList(output.disassociatedRepositoryNames, context)
|
|
9482
9324
|
: undefined,
|
|
9483
|
-
errors: output.errors
|
|
9325
|
+
errors: output.errors != null
|
|
9484
9326
|
? deserializeAws_json1_1BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorsList(output.errors, context)
|
|
9485
9327
|
: undefined,
|
|
9486
9328
|
};
|
|
@@ -9505,20 +9347,16 @@ const deserializeAws_json1_1BatchGetCommitsErrorsList = (output, context) => {
|
|
|
9505
9347
|
};
|
|
9506
9348
|
const deserializeAws_json1_1BatchGetCommitsOutput = (output, context) => {
|
|
9507
9349
|
return {
|
|
9508
|
-
commits: output.commits
|
|
9509
|
-
|
|
9510
|
-
: undefined,
|
|
9511
|
-
errors: output.errors !== undefined && output.errors !== null
|
|
9512
|
-
? deserializeAws_json1_1BatchGetCommitsErrorsList(output.errors, context)
|
|
9513
|
-
: undefined,
|
|
9350
|
+
commits: output.commits != null ? deserializeAws_json1_1CommitObjectsList(output.commits, context) : undefined,
|
|
9351
|
+
errors: output.errors != null ? deserializeAws_json1_1BatchGetCommitsErrorsList(output.errors, context) : undefined,
|
|
9514
9352
|
};
|
|
9515
9353
|
};
|
|
9516
9354
|
const deserializeAws_json1_1BatchGetRepositoriesOutput = (output, context) => {
|
|
9517
9355
|
return {
|
|
9518
|
-
repositories: output.repositories
|
|
9356
|
+
repositories: output.repositories != null
|
|
9519
9357
|
? deserializeAws_json1_1RepositoryMetadataList(output.repositories, context)
|
|
9520
9358
|
: undefined,
|
|
9521
|
-
repositoriesNotFound: output.repositoriesNotFound
|
|
9359
|
+
repositoriesNotFound: output.repositoriesNotFound != null
|
|
9522
9360
|
? deserializeAws_json1_1RepositoryNotFoundList(output.repositoriesNotFound, context)
|
|
9523
9361
|
: undefined,
|
|
9524
9362
|
};
|
|
@@ -9611,21 +9449,21 @@ const deserializeAws_json1_1ClientRequestTokenRequiredException = (output, conte
|
|
|
9611
9449
|
const deserializeAws_json1_1Comment = (output, context) => {
|
|
9612
9450
|
return {
|
|
9613
9451
|
authorArn: (0, smithy_client_1.expectString)(output.authorArn),
|
|
9614
|
-
callerReactions: output.callerReactions
|
|
9452
|
+
callerReactions: output.callerReactions != null
|
|
9615
9453
|
? deserializeAws_json1_1CallerReactions(output.callerReactions, context)
|
|
9616
9454
|
: undefined,
|
|
9617
9455
|
clientRequestToken: (0, smithy_client_1.expectString)(output.clientRequestToken),
|
|
9618
9456
|
commentId: (0, smithy_client_1.expectString)(output.commentId),
|
|
9619
9457
|
content: (0, smithy_client_1.expectString)(output.content),
|
|
9620
|
-
creationDate: output.creationDate
|
|
9458
|
+
creationDate: output.creationDate != null
|
|
9621
9459
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
9622
9460
|
: undefined,
|
|
9623
9461
|
deleted: (0, smithy_client_1.expectBoolean)(output.deleted),
|
|
9624
9462
|
inReplyTo: (0, smithy_client_1.expectString)(output.inReplyTo),
|
|
9625
|
-
lastModifiedDate: output.lastModifiedDate
|
|
9463
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
9626
9464
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
|
|
9627
9465
|
: undefined,
|
|
9628
|
-
reactionCounts: output.reactionCounts
|
|
9466
|
+
reactionCounts: output.reactionCounts != null
|
|
9629
9467
|
? deserializeAws_json1_1ReactionCountsMap(output.reactionCounts, context)
|
|
9630
9468
|
: undefined,
|
|
9631
9469
|
};
|
|
@@ -9677,12 +9515,8 @@ const deserializeAws_json1_1CommentsForComparedCommit = (output, context) => {
|
|
|
9677
9515
|
afterCommitId: (0, smithy_client_1.expectString)(output.afterCommitId),
|
|
9678
9516
|
beforeBlobId: (0, smithy_client_1.expectString)(output.beforeBlobId),
|
|
9679
9517
|
beforeCommitId: (0, smithy_client_1.expectString)(output.beforeCommitId),
|
|
9680
|
-
comments: output.comments
|
|
9681
|
-
|
|
9682
|
-
: undefined,
|
|
9683
|
-
location: output.location !== undefined && output.location !== null
|
|
9684
|
-
? deserializeAws_json1_1Location(output.location, context)
|
|
9685
|
-
: undefined,
|
|
9518
|
+
comments: output.comments != null ? deserializeAws_json1_1Comments(output.comments, context) : undefined,
|
|
9519
|
+
location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
|
|
9686
9520
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
9687
9521
|
};
|
|
9688
9522
|
};
|
|
@@ -9703,12 +9537,8 @@ const deserializeAws_json1_1CommentsForPullRequest = (output, context) => {
|
|
|
9703
9537
|
afterCommitId: (0, smithy_client_1.expectString)(output.afterCommitId),
|
|
9704
9538
|
beforeBlobId: (0, smithy_client_1.expectString)(output.beforeBlobId),
|
|
9705
9539
|
beforeCommitId: (0, smithy_client_1.expectString)(output.beforeCommitId),
|
|
9706
|
-
comments: output.comments
|
|
9707
|
-
|
|
9708
|
-
: undefined,
|
|
9709
|
-
location: output.location !== undefined && output.location !== null
|
|
9710
|
-
? deserializeAws_json1_1Location(output.location, context)
|
|
9711
|
-
: undefined,
|
|
9540
|
+
comments: output.comments != null ? deserializeAws_json1_1Comments(output.comments, context) : undefined,
|
|
9541
|
+
location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
|
|
9712
9542
|
pullRequestId: (0, smithy_client_1.expectString)(output.pullRequestId),
|
|
9713
9543
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
9714
9544
|
};
|
|
@@ -9727,17 +9557,11 @@ const deserializeAws_json1_1CommentsForPullRequestData = (output, context) => {
|
|
|
9727
9557
|
const deserializeAws_json1_1Commit = (output, context) => {
|
|
9728
9558
|
return {
|
|
9729
9559
|
additionalData: (0, smithy_client_1.expectString)(output.additionalData),
|
|
9730
|
-
author: output.author
|
|
9731
|
-
? deserializeAws_json1_1UserInfo(output.author, context)
|
|
9732
|
-
: undefined,
|
|
9560
|
+
author: output.author != null ? deserializeAws_json1_1UserInfo(output.author, context) : undefined,
|
|
9733
9561
|
commitId: (0, smithy_client_1.expectString)(output.commitId),
|
|
9734
|
-
committer: output.committer
|
|
9735
|
-
? deserializeAws_json1_1UserInfo(output.committer, context)
|
|
9736
|
-
: undefined,
|
|
9562
|
+
committer: output.committer != null ? deserializeAws_json1_1UserInfo(output.committer, context) : undefined,
|
|
9737
9563
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
9738
|
-
parents: output.parents
|
|
9739
|
-
? deserializeAws_json1_1ParentList(output.parents, context)
|
|
9740
|
-
: undefined,
|
|
9564
|
+
parents: output.parents != null ? deserializeAws_json1_1ParentList(output.parents, context) : undefined,
|
|
9741
9565
|
treeId: (0, smithy_client_1.expectString)(output.treeId),
|
|
9742
9566
|
};
|
|
9743
9567
|
};
|
|
@@ -9794,36 +9618,26 @@ const deserializeAws_json1_1ConcurrentReferenceUpdateException = (output, contex
|
|
|
9794
9618
|
};
|
|
9795
9619
|
const deserializeAws_json1_1Conflict = (output, context) => {
|
|
9796
9620
|
return {
|
|
9797
|
-
conflictMetadata: output.conflictMetadata
|
|
9621
|
+
conflictMetadata: output.conflictMetadata != null
|
|
9798
9622
|
? deserializeAws_json1_1ConflictMetadata(output.conflictMetadata, context)
|
|
9799
9623
|
: undefined,
|
|
9800
|
-
mergeHunks: output.mergeHunks
|
|
9801
|
-
? deserializeAws_json1_1MergeHunks(output.mergeHunks, context)
|
|
9802
|
-
: undefined,
|
|
9624
|
+
mergeHunks: output.mergeHunks != null ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context) : undefined,
|
|
9803
9625
|
};
|
|
9804
9626
|
};
|
|
9805
9627
|
const deserializeAws_json1_1ConflictMetadata = (output, context) => {
|
|
9806
9628
|
return {
|
|
9807
9629
|
contentConflict: (0, smithy_client_1.expectBoolean)(output.contentConflict),
|
|
9808
9630
|
fileModeConflict: (0, smithy_client_1.expectBoolean)(output.fileModeConflict),
|
|
9809
|
-
fileModes: output.fileModes
|
|
9810
|
-
? deserializeAws_json1_1FileModes(output.fileModes, context)
|
|
9811
|
-
: undefined,
|
|
9631
|
+
fileModes: output.fileModes != null ? deserializeAws_json1_1FileModes(output.fileModes, context) : undefined,
|
|
9812
9632
|
filePath: (0, smithy_client_1.expectString)(output.filePath),
|
|
9813
|
-
fileSizes: output.fileSizes
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
isBinaryFile: output.isBinaryFile !== undefined && output.isBinaryFile !== null
|
|
9817
|
-
? deserializeAws_json1_1IsBinaryFile(output.isBinaryFile, context)
|
|
9818
|
-
: undefined,
|
|
9819
|
-
mergeOperations: output.mergeOperations !== undefined && output.mergeOperations !== null
|
|
9633
|
+
fileSizes: output.fileSizes != null ? deserializeAws_json1_1FileSizes(output.fileSizes, context) : undefined,
|
|
9634
|
+
isBinaryFile: output.isBinaryFile != null ? deserializeAws_json1_1IsBinaryFile(output.isBinaryFile, context) : undefined,
|
|
9635
|
+
mergeOperations: output.mergeOperations != null
|
|
9820
9636
|
? deserializeAws_json1_1MergeOperations(output.mergeOperations, context)
|
|
9821
9637
|
: undefined,
|
|
9822
9638
|
numberOfConflicts: (0, smithy_client_1.expectInt32)(output.numberOfConflicts),
|
|
9823
9639
|
objectTypeConflict: (0, smithy_client_1.expectBoolean)(output.objectTypeConflict),
|
|
9824
|
-
objectTypes: output.objectTypes
|
|
9825
|
-
? deserializeAws_json1_1ObjectTypes(output.objectTypes, context)
|
|
9826
|
-
: undefined,
|
|
9640
|
+
objectTypes: output.objectTypes != null ? deserializeAws_json1_1ObjectTypes(output.objectTypes, context) : undefined,
|
|
9827
9641
|
};
|
|
9828
9642
|
};
|
|
9829
9643
|
const deserializeAws_json1_1ConflictMetadataList = (output, context) => {
|
|
@@ -9850,7 +9664,7 @@ const deserializeAws_json1_1Conflicts = (output, context) => {
|
|
|
9850
9664
|
};
|
|
9851
9665
|
const deserializeAws_json1_1CreateApprovalRuleTemplateOutput = (output, context) => {
|
|
9852
9666
|
return {
|
|
9853
|
-
approvalRuleTemplate: output.approvalRuleTemplate
|
|
9667
|
+
approvalRuleTemplate: output.approvalRuleTemplate != null
|
|
9854
9668
|
? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
|
|
9855
9669
|
: undefined,
|
|
9856
9670
|
};
|
|
@@ -9858,35 +9672,25 @@ const deserializeAws_json1_1CreateApprovalRuleTemplateOutput = (output, context)
|
|
|
9858
9672
|
const deserializeAws_json1_1CreateCommitOutput = (output, context) => {
|
|
9859
9673
|
return {
|
|
9860
9674
|
commitId: (0, smithy_client_1.expectString)(output.commitId),
|
|
9861
|
-
filesAdded: output.filesAdded
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
filesDeleted: output.filesDeleted !== undefined && output.filesDeleted !== null
|
|
9865
|
-
? deserializeAws_json1_1FilesMetadata(output.filesDeleted, context)
|
|
9866
|
-
: undefined,
|
|
9867
|
-
filesUpdated: output.filesUpdated !== undefined && output.filesUpdated !== null
|
|
9868
|
-
? deserializeAws_json1_1FilesMetadata(output.filesUpdated, context)
|
|
9869
|
-
: undefined,
|
|
9675
|
+
filesAdded: output.filesAdded != null ? deserializeAws_json1_1FilesMetadata(output.filesAdded, context) : undefined,
|
|
9676
|
+
filesDeleted: output.filesDeleted != null ? deserializeAws_json1_1FilesMetadata(output.filesDeleted, context) : undefined,
|
|
9677
|
+
filesUpdated: output.filesUpdated != null ? deserializeAws_json1_1FilesMetadata(output.filesUpdated, context) : undefined,
|
|
9870
9678
|
treeId: (0, smithy_client_1.expectString)(output.treeId),
|
|
9871
9679
|
};
|
|
9872
9680
|
};
|
|
9873
9681
|
const deserializeAws_json1_1CreatePullRequestApprovalRuleOutput = (output, context) => {
|
|
9874
9682
|
return {
|
|
9875
|
-
approvalRule: output.approvalRule
|
|
9876
|
-
? deserializeAws_json1_1ApprovalRule(output.approvalRule, context)
|
|
9877
|
-
: undefined,
|
|
9683
|
+
approvalRule: output.approvalRule != null ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context) : undefined,
|
|
9878
9684
|
};
|
|
9879
9685
|
};
|
|
9880
9686
|
const deserializeAws_json1_1CreatePullRequestOutput = (output, context) => {
|
|
9881
9687
|
return {
|
|
9882
|
-
pullRequest: output.pullRequest
|
|
9883
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
9884
|
-
: undefined,
|
|
9688
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
9885
9689
|
};
|
|
9886
9690
|
};
|
|
9887
9691
|
const deserializeAws_json1_1CreateRepositoryOutput = (output, context) => {
|
|
9888
9692
|
return {
|
|
9889
|
-
repositoryMetadata: output.repositoryMetadata
|
|
9693
|
+
repositoryMetadata: output.repositoryMetadata != null
|
|
9890
9694
|
? deserializeAws_json1_1RepositoryMetadata(output.repositoryMetadata, context)
|
|
9891
9695
|
: undefined,
|
|
9892
9696
|
};
|
|
@@ -9909,16 +9713,12 @@ const deserializeAws_json1_1DeleteApprovalRuleTemplateOutput = (output, context)
|
|
|
9909
9713
|
};
|
|
9910
9714
|
const deserializeAws_json1_1DeleteBranchOutput = (output, context) => {
|
|
9911
9715
|
return {
|
|
9912
|
-
deletedBranch: output.deletedBranch
|
|
9913
|
-
? deserializeAws_json1_1BranchInfo(output.deletedBranch, context)
|
|
9914
|
-
: undefined,
|
|
9716
|
+
deletedBranch: output.deletedBranch != null ? deserializeAws_json1_1BranchInfo(output.deletedBranch, context) : undefined,
|
|
9915
9717
|
};
|
|
9916
9718
|
};
|
|
9917
9719
|
const deserializeAws_json1_1DeleteCommentContentOutput = (output, context) => {
|
|
9918
9720
|
return {
|
|
9919
|
-
comment: output.comment
|
|
9920
|
-
? deserializeAws_json1_1Comment(output.comment, context)
|
|
9921
|
-
: undefined,
|
|
9721
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
9922
9722
|
};
|
|
9923
9723
|
};
|
|
9924
9724
|
const deserializeAws_json1_1DeleteFileOutput = (output, context) => {
|
|
@@ -9942,13 +9742,11 @@ const deserializeAws_json1_1DeleteRepositoryOutput = (output, context) => {
|
|
|
9942
9742
|
const deserializeAws_json1_1DescribeMergeConflictsOutput = (output, context) => {
|
|
9943
9743
|
return {
|
|
9944
9744
|
baseCommitId: (0, smithy_client_1.expectString)(output.baseCommitId),
|
|
9945
|
-
conflictMetadata: output.conflictMetadata
|
|
9745
|
+
conflictMetadata: output.conflictMetadata != null
|
|
9946
9746
|
? deserializeAws_json1_1ConflictMetadata(output.conflictMetadata, context)
|
|
9947
9747
|
: undefined,
|
|
9948
9748
|
destinationCommitId: (0, smithy_client_1.expectString)(output.destinationCommitId),
|
|
9949
|
-
mergeHunks: output.mergeHunks
|
|
9950
|
-
? deserializeAws_json1_1MergeHunks(output.mergeHunks, context)
|
|
9951
|
-
: undefined,
|
|
9749
|
+
mergeHunks: output.mergeHunks != null ? deserializeAws_json1_1MergeHunks(output.mergeHunks, context) : undefined,
|
|
9952
9750
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
9953
9751
|
sourceCommitId: (0, smithy_client_1.expectString)(output.sourceCommitId),
|
|
9954
9752
|
};
|
|
@@ -9956,19 +9754,15 @@ const deserializeAws_json1_1DescribeMergeConflictsOutput = (output, context) =>
|
|
|
9956
9754
|
const deserializeAws_json1_1DescribePullRequestEventsOutput = (output, context) => {
|
|
9957
9755
|
return {
|
|
9958
9756
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
9959
|
-
pullRequestEvents: output.pullRequestEvents
|
|
9757
|
+
pullRequestEvents: output.pullRequestEvents != null
|
|
9960
9758
|
? deserializeAws_json1_1PullRequestEventList(output.pullRequestEvents, context)
|
|
9961
9759
|
: undefined,
|
|
9962
9760
|
};
|
|
9963
9761
|
};
|
|
9964
9762
|
const deserializeAws_json1_1Difference = (output, context) => {
|
|
9965
9763
|
return {
|
|
9966
|
-
afterBlob: output.afterBlob
|
|
9967
|
-
|
|
9968
|
-
: undefined,
|
|
9969
|
-
beforeBlob: output.beforeBlob !== undefined && output.beforeBlob !== null
|
|
9970
|
-
? deserializeAws_json1_1BlobMetadata(output.beforeBlob, context)
|
|
9971
|
-
: undefined,
|
|
9764
|
+
afterBlob: output.afterBlob != null ? deserializeAws_json1_1BlobMetadata(output.afterBlob, context) : undefined,
|
|
9765
|
+
beforeBlob: output.beforeBlob != null ? deserializeAws_json1_1BlobMetadata(output.beforeBlob, context) : undefined,
|
|
9972
9766
|
changeType: (0, smithy_client_1.expectString)(output.changeType),
|
|
9973
9767
|
};
|
|
9974
9768
|
};
|
|
@@ -10015,17 +9809,15 @@ const deserializeAws_json1_1EncryptionKeyUnavailableException = (output, context
|
|
|
10015
9809
|
};
|
|
10016
9810
|
const deserializeAws_json1_1EvaluatePullRequestApprovalRulesOutput = (output, context) => {
|
|
10017
9811
|
return {
|
|
10018
|
-
evaluation: output.evaluation
|
|
10019
|
-
? deserializeAws_json1_1Evaluation(output.evaluation, context)
|
|
10020
|
-
: undefined,
|
|
9812
|
+
evaluation: output.evaluation != null ? deserializeAws_json1_1Evaluation(output.evaluation, context) : undefined,
|
|
10021
9813
|
};
|
|
10022
9814
|
};
|
|
10023
9815
|
const deserializeAws_json1_1Evaluation = (output, context) => {
|
|
10024
9816
|
return {
|
|
10025
|
-
approvalRulesNotSatisfied: output.approvalRulesNotSatisfied
|
|
9817
|
+
approvalRulesNotSatisfied: output.approvalRulesNotSatisfied != null
|
|
10026
9818
|
? deserializeAws_json1_1ApprovalRulesNotSatisfiedList(output.approvalRulesNotSatisfied, context)
|
|
10027
9819
|
: undefined,
|
|
10028
|
-
approvalRulesSatisfied: output.approvalRulesSatisfied
|
|
9820
|
+
approvalRulesSatisfied: output.approvalRulesSatisfied != null
|
|
10029
9821
|
? deserializeAws_json1_1ApprovalRulesSatisfiedList(output.approvalRulesSatisfied, context)
|
|
10030
9822
|
: undefined,
|
|
10031
9823
|
approved: (0, smithy_client_1.expectBoolean)(output.approved),
|
|
@@ -10158,41 +9950,37 @@ const deserializeAws_json1_1FolderList = (output, context) => {
|
|
|
10158
9950
|
};
|
|
10159
9951
|
const deserializeAws_json1_1GetApprovalRuleTemplateOutput = (output, context) => {
|
|
10160
9952
|
return {
|
|
10161
|
-
approvalRuleTemplate: output.approvalRuleTemplate
|
|
9953
|
+
approvalRuleTemplate: output.approvalRuleTemplate != null
|
|
10162
9954
|
? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
|
|
10163
9955
|
: undefined,
|
|
10164
9956
|
};
|
|
10165
9957
|
};
|
|
10166
9958
|
const deserializeAws_json1_1GetBlobOutput = (output, context) => {
|
|
10167
9959
|
return {
|
|
10168
|
-
content: output.content
|
|
9960
|
+
content: output.content != null ? context.base64Decoder(output.content) : undefined,
|
|
10169
9961
|
};
|
|
10170
9962
|
};
|
|
10171
9963
|
const deserializeAws_json1_1GetBranchOutput = (output, context) => {
|
|
10172
9964
|
return {
|
|
10173
|
-
branch: output.branch
|
|
10174
|
-
? deserializeAws_json1_1BranchInfo(output.branch, context)
|
|
10175
|
-
: undefined,
|
|
9965
|
+
branch: output.branch != null ? deserializeAws_json1_1BranchInfo(output.branch, context) : undefined,
|
|
10176
9966
|
};
|
|
10177
9967
|
};
|
|
10178
9968
|
const deserializeAws_json1_1GetCommentOutput = (output, context) => {
|
|
10179
9969
|
return {
|
|
10180
|
-
comment: output.comment
|
|
10181
|
-
? deserializeAws_json1_1Comment(output.comment, context)
|
|
10182
|
-
: undefined,
|
|
9970
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
10183
9971
|
};
|
|
10184
9972
|
};
|
|
10185
9973
|
const deserializeAws_json1_1GetCommentReactionsOutput = (output, context) => {
|
|
10186
9974
|
return {
|
|
10187
9975
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10188
|
-
reactionsForComment: output.reactionsForComment
|
|
9976
|
+
reactionsForComment: output.reactionsForComment != null
|
|
10189
9977
|
? deserializeAws_json1_1ReactionsForCommentList(output.reactionsForComment, context)
|
|
10190
9978
|
: undefined,
|
|
10191
9979
|
};
|
|
10192
9980
|
};
|
|
10193
9981
|
const deserializeAws_json1_1GetCommentsForComparedCommitOutput = (output, context) => {
|
|
10194
9982
|
return {
|
|
10195
|
-
commentsForComparedCommitData: output.commentsForComparedCommitData
|
|
9983
|
+
commentsForComparedCommitData: output.commentsForComparedCommitData != null
|
|
10196
9984
|
? deserializeAws_json1_1CommentsForComparedCommitData(output.commentsForComparedCommitData, context)
|
|
10197
9985
|
: undefined,
|
|
10198
9986
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -10200,7 +9988,7 @@ const deserializeAws_json1_1GetCommentsForComparedCommitOutput = (output, contex
|
|
|
10200
9988
|
};
|
|
10201
9989
|
const deserializeAws_json1_1GetCommentsForPullRequestOutput = (output, context) => {
|
|
10202
9990
|
return {
|
|
10203
|
-
commentsForPullRequestData: output.commentsForPullRequestData
|
|
9991
|
+
commentsForPullRequestData: output.commentsForPullRequestData != null
|
|
10204
9992
|
? deserializeAws_json1_1CommentsForPullRequestData(output.commentsForPullRequestData, context)
|
|
10205
9993
|
: undefined,
|
|
10206
9994
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -10208,26 +9996,20 @@ const deserializeAws_json1_1GetCommentsForPullRequestOutput = (output, context)
|
|
|
10208
9996
|
};
|
|
10209
9997
|
const deserializeAws_json1_1GetCommitOutput = (output, context) => {
|
|
10210
9998
|
return {
|
|
10211
|
-
commit: output.commit
|
|
10212
|
-
? deserializeAws_json1_1Commit(output.commit, context)
|
|
10213
|
-
: undefined,
|
|
9999
|
+
commit: output.commit != null ? deserializeAws_json1_1Commit(output.commit, context) : undefined,
|
|
10214
10000
|
};
|
|
10215
10001
|
};
|
|
10216
10002
|
const deserializeAws_json1_1GetDifferencesOutput = (output, context) => {
|
|
10217
10003
|
return {
|
|
10218
10004
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
10219
|
-
differences: output.differences
|
|
10220
|
-
? deserializeAws_json1_1DifferenceList(output.differences, context)
|
|
10221
|
-
: undefined,
|
|
10005
|
+
differences: output.differences != null ? deserializeAws_json1_1DifferenceList(output.differences, context) : undefined,
|
|
10222
10006
|
};
|
|
10223
10007
|
};
|
|
10224
10008
|
const deserializeAws_json1_1GetFileOutput = (output, context) => {
|
|
10225
10009
|
return {
|
|
10226
10010
|
blobId: (0, smithy_client_1.expectString)(output.blobId),
|
|
10227
10011
|
commitId: (0, smithy_client_1.expectString)(output.commitId),
|
|
10228
|
-
fileContent: output.fileContent
|
|
10229
|
-
? context.base64Decoder(output.fileContent)
|
|
10230
|
-
: undefined,
|
|
10012
|
+
fileContent: output.fileContent != null ? context.base64Decoder(output.fileContent) : undefined,
|
|
10231
10013
|
fileMode: (0, smithy_client_1.expectString)(output.fileMode),
|
|
10232
10014
|
filePath: (0, smithy_client_1.expectString)(output.filePath),
|
|
10233
10015
|
fileSize: (0, smithy_client_1.expectLong)(output.fileSize),
|
|
@@ -10236,19 +10018,11 @@ const deserializeAws_json1_1GetFileOutput = (output, context) => {
|
|
|
10236
10018
|
const deserializeAws_json1_1GetFolderOutput = (output, context) => {
|
|
10237
10019
|
return {
|
|
10238
10020
|
commitId: (0, smithy_client_1.expectString)(output.commitId),
|
|
10239
|
-
files: output.files
|
|
10240
|
-
? deserializeAws_json1_1FileList(output.files, context)
|
|
10241
|
-
: undefined,
|
|
10021
|
+
files: output.files != null ? deserializeAws_json1_1FileList(output.files, context) : undefined,
|
|
10242
10022
|
folderPath: (0, smithy_client_1.expectString)(output.folderPath),
|
|
10243
|
-
subFolders: output.subFolders
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
subModules: output.subModules !== undefined && output.subModules !== null
|
|
10247
|
-
? deserializeAws_json1_1SubModuleList(output.subModules, context)
|
|
10248
|
-
: undefined,
|
|
10249
|
-
symbolicLinks: output.symbolicLinks !== undefined && output.symbolicLinks !== null
|
|
10250
|
-
? deserializeAws_json1_1SymbolicLinkList(output.symbolicLinks, context)
|
|
10251
|
-
: undefined,
|
|
10023
|
+
subFolders: output.subFolders != null ? deserializeAws_json1_1FolderList(output.subFolders, context) : undefined,
|
|
10024
|
+
subModules: output.subModules != null ? deserializeAws_json1_1SubModuleList(output.subModules, context) : undefined,
|
|
10025
|
+
symbolicLinks: output.symbolicLinks != null ? deserializeAws_json1_1SymbolicLinkList(output.symbolicLinks, context) : undefined,
|
|
10252
10026
|
treeId: (0, smithy_client_1.expectString)(output.treeId),
|
|
10253
10027
|
};
|
|
10254
10028
|
};
|
|
@@ -10263,7 +10037,7 @@ const deserializeAws_json1_1GetMergeCommitOutput = (output, context) => {
|
|
|
10263
10037
|
const deserializeAws_json1_1GetMergeConflictsOutput = (output, context) => {
|
|
10264
10038
|
return {
|
|
10265
10039
|
baseCommitId: (0, smithy_client_1.expectString)(output.baseCommitId),
|
|
10266
|
-
conflictMetadataList: output.conflictMetadataList
|
|
10040
|
+
conflictMetadataList: output.conflictMetadataList != null
|
|
10267
10041
|
? deserializeAws_json1_1ConflictMetadataList(output.conflictMetadataList, context)
|
|
10268
10042
|
: undefined,
|
|
10269
10043
|
destinationCommitId: (0, smithy_client_1.expectString)(output.destinationCommitId),
|
|
@@ -10276,24 +10050,18 @@ const deserializeAws_json1_1GetMergeOptionsOutput = (output, context) => {
|
|
|
10276
10050
|
return {
|
|
10277
10051
|
baseCommitId: (0, smithy_client_1.expectString)(output.baseCommitId),
|
|
10278
10052
|
destinationCommitId: (0, smithy_client_1.expectString)(output.destinationCommitId),
|
|
10279
|
-
mergeOptions: output.mergeOptions
|
|
10280
|
-
? deserializeAws_json1_1MergeOptions(output.mergeOptions, context)
|
|
10281
|
-
: undefined,
|
|
10053
|
+
mergeOptions: output.mergeOptions != null ? deserializeAws_json1_1MergeOptions(output.mergeOptions, context) : undefined,
|
|
10282
10054
|
sourceCommitId: (0, smithy_client_1.expectString)(output.sourceCommitId),
|
|
10283
10055
|
};
|
|
10284
10056
|
};
|
|
10285
10057
|
const deserializeAws_json1_1GetPullRequestApprovalStatesOutput = (output, context) => {
|
|
10286
10058
|
return {
|
|
10287
|
-
approvals: output.approvals
|
|
10288
|
-
? deserializeAws_json1_1ApprovalList(output.approvals, context)
|
|
10289
|
-
: undefined,
|
|
10059
|
+
approvals: output.approvals != null ? deserializeAws_json1_1ApprovalList(output.approvals, context) : undefined,
|
|
10290
10060
|
};
|
|
10291
10061
|
};
|
|
10292
10062
|
const deserializeAws_json1_1GetPullRequestOutput = (output, context) => {
|
|
10293
10063
|
return {
|
|
10294
|
-
pullRequest: output.pullRequest
|
|
10295
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
10296
|
-
: undefined,
|
|
10064
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
10297
10065
|
};
|
|
10298
10066
|
};
|
|
10299
10067
|
const deserializeAws_json1_1GetPullRequestOverrideStateOutput = (output, context) => {
|
|
@@ -10304,7 +10072,7 @@ const deserializeAws_json1_1GetPullRequestOverrideStateOutput = (output, context
|
|
|
10304
10072
|
};
|
|
10305
10073
|
const deserializeAws_json1_1GetRepositoryOutput = (output, context) => {
|
|
10306
10074
|
return {
|
|
10307
|
-
repositoryMetadata: output.repositoryMetadata
|
|
10075
|
+
repositoryMetadata: output.repositoryMetadata != null
|
|
10308
10076
|
? deserializeAws_json1_1RepositoryMetadata(output.repositoryMetadata, context)
|
|
10309
10077
|
: undefined,
|
|
10310
10078
|
};
|
|
@@ -10312,9 +10080,7 @@ const deserializeAws_json1_1GetRepositoryOutput = (output, context) => {
|
|
|
10312
10080
|
const deserializeAws_json1_1GetRepositoryTriggersOutput = (output, context) => {
|
|
10313
10081
|
return {
|
|
10314
10082
|
configurationId: (0, smithy_client_1.expectString)(output.configurationId),
|
|
10315
|
-
triggers: output.triggers
|
|
10316
|
-
? deserializeAws_json1_1RepositoryTriggersList(output.triggers, context)
|
|
10317
|
-
: undefined,
|
|
10083
|
+
triggers: output.triggers != null ? deserializeAws_json1_1RepositoryTriggersList(output.triggers, context) : undefined,
|
|
10318
10084
|
};
|
|
10319
10085
|
};
|
|
10320
10086
|
const deserializeAws_json1_1IdempotencyParameterMismatchException = (output, context) => {
|
|
@@ -10646,7 +10412,7 @@ const deserializeAws_json1_1IsBinaryFile = (output, context) => {
|
|
|
10646
10412
|
};
|
|
10647
10413
|
const deserializeAws_json1_1ListApprovalRuleTemplatesOutput = (output, context) => {
|
|
10648
10414
|
return {
|
|
10649
|
-
approvalRuleTemplateNames: output.approvalRuleTemplateNames
|
|
10415
|
+
approvalRuleTemplateNames: output.approvalRuleTemplateNames != null
|
|
10650
10416
|
? deserializeAws_json1_1ApprovalRuleTemplateNameList(output.approvalRuleTemplateNames, context)
|
|
10651
10417
|
: undefined,
|
|
10652
10418
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -10654,7 +10420,7 @@ const deserializeAws_json1_1ListApprovalRuleTemplatesOutput = (output, context)
|
|
|
10654
10420
|
};
|
|
10655
10421
|
const deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryOutput = (output, context) => {
|
|
10656
10422
|
return {
|
|
10657
|
-
approvalRuleTemplateNames: output.approvalRuleTemplateNames
|
|
10423
|
+
approvalRuleTemplateNames: output.approvalRuleTemplateNames != null
|
|
10658
10424
|
? deserializeAws_json1_1ApprovalRuleTemplateNameList(output.approvalRuleTemplateNames, context)
|
|
10659
10425
|
: undefined,
|
|
10660
10426
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -10662,16 +10428,14 @@ const deserializeAws_json1_1ListAssociatedApprovalRuleTemplatesForRepositoryOutp
|
|
|
10662
10428
|
};
|
|
10663
10429
|
const deserializeAws_json1_1ListBranchesOutput = (output, context) => {
|
|
10664
10430
|
return {
|
|
10665
|
-
branches: output.branches
|
|
10666
|
-
? deserializeAws_json1_1BranchNameList(output.branches, context)
|
|
10667
|
-
: undefined,
|
|
10431
|
+
branches: output.branches != null ? deserializeAws_json1_1BranchNameList(output.branches, context) : undefined,
|
|
10668
10432
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10669
10433
|
};
|
|
10670
10434
|
};
|
|
10671
10435
|
const deserializeAws_json1_1ListPullRequestsOutput = (output, context) => {
|
|
10672
10436
|
return {
|
|
10673
10437
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10674
|
-
pullRequestIds: output.pullRequestIds
|
|
10438
|
+
pullRequestIds: output.pullRequestIds != null
|
|
10675
10439
|
? deserializeAws_json1_1PullRequestIdList(output.pullRequestIds, context)
|
|
10676
10440
|
: undefined,
|
|
10677
10441
|
};
|
|
@@ -10679,7 +10443,7 @@ const deserializeAws_json1_1ListPullRequestsOutput = (output, context) => {
|
|
|
10679
10443
|
const deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateOutput = (output, context) => {
|
|
10680
10444
|
return {
|
|
10681
10445
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10682
|
-
repositoryNames: output.repositoryNames
|
|
10446
|
+
repositoryNames: output.repositoryNames != null
|
|
10683
10447
|
? deserializeAws_json1_1RepositoryNameList(output.repositoryNames, context)
|
|
10684
10448
|
: undefined,
|
|
10685
10449
|
};
|
|
@@ -10687,7 +10451,7 @@ const deserializeAws_json1_1ListRepositoriesForApprovalRuleTemplateOutput = (out
|
|
|
10687
10451
|
const deserializeAws_json1_1ListRepositoriesOutput = (output, context) => {
|
|
10688
10452
|
return {
|
|
10689
10453
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10690
|
-
repositories: output.repositories
|
|
10454
|
+
repositories: output.repositories != null
|
|
10691
10455
|
? deserializeAws_json1_1RepositoryNameIdPairList(output.repositories, context)
|
|
10692
10456
|
: undefined,
|
|
10693
10457
|
};
|
|
@@ -10695,9 +10459,7 @@ const deserializeAws_json1_1ListRepositoriesOutput = (output, context) => {
|
|
|
10695
10459
|
const deserializeAws_json1_1ListTagsForResourceOutput = (output, context) => {
|
|
10696
10460
|
return {
|
|
10697
10461
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
10698
|
-
tags: output.tags
|
|
10699
|
-
? deserializeAws_json1_1TagsMap(output.tags, context)
|
|
10700
|
-
: undefined,
|
|
10462
|
+
tags: output.tags != null ? deserializeAws_json1_1TagsMap(output.tags, context) : undefined,
|
|
10701
10463
|
};
|
|
10702
10464
|
};
|
|
10703
10465
|
const deserializeAws_json1_1Location = (output, context) => {
|
|
@@ -10782,16 +10544,10 @@ const deserializeAws_json1_1MergeBranchesByThreeWayOutput = (output, context) =>
|
|
|
10782
10544
|
};
|
|
10783
10545
|
const deserializeAws_json1_1MergeHunk = (output, context) => {
|
|
10784
10546
|
return {
|
|
10785
|
-
base: output.base
|
|
10786
|
-
|
|
10787
|
-
: undefined,
|
|
10788
|
-
destination: output.destination !== undefined && output.destination !== null
|
|
10789
|
-
? deserializeAws_json1_1MergeHunkDetail(output.destination, context)
|
|
10790
|
-
: undefined,
|
|
10547
|
+
base: output.base != null ? deserializeAws_json1_1MergeHunkDetail(output.base, context) : undefined,
|
|
10548
|
+
destination: output.destination != null ? deserializeAws_json1_1MergeHunkDetail(output.destination, context) : undefined,
|
|
10791
10549
|
isConflict: (0, smithy_client_1.expectBoolean)(output.isConflict),
|
|
10792
|
-
source: output.source
|
|
10793
|
-
? deserializeAws_json1_1MergeHunkDetail(output.source, context)
|
|
10794
|
-
: undefined,
|
|
10550
|
+
source: output.source != null ? deserializeAws_json1_1MergeHunkDetail(output.source, context) : undefined,
|
|
10795
10551
|
};
|
|
10796
10552
|
};
|
|
10797
10553
|
const deserializeAws_json1_1MergeHunkDetail = (output, context) => {
|
|
@@ -10844,23 +10600,17 @@ const deserializeAws_json1_1MergeOptions = (output, context) => {
|
|
|
10844
10600
|
};
|
|
10845
10601
|
const deserializeAws_json1_1MergePullRequestByFastForwardOutput = (output, context) => {
|
|
10846
10602
|
return {
|
|
10847
|
-
pullRequest: output.pullRequest
|
|
10848
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
10849
|
-
: undefined,
|
|
10603
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
10850
10604
|
};
|
|
10851
10605
|
};
|
|
10852
10606
|
const deserializeAws_json1_1MergePullRequestBySquashOutput = (output, context) => {
|
|
10853
10607
|
return {
|
|
10854
|
-
pullRequest: output.pullRequest
|
|
10855
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
10856
|
-
: undefined,
|
|
10608
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
10857
10609
|
};
|
|
10858
10610
|
};
|
|
10859
10611
|
const deserializeAws_json1_1MergePullRequestByThreeWayOutput = (output, context) => {
|
|
10860
10612
|
return {
|
|
10861
|
-
pullRequest: output.pullRequest
|
|
10862
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
10863
|
-
: undefined,
|
|
10613
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
10864
10614
|
};
|
|
10865
10615
|
};
|
|
10866
10616
|
const deserializeAws_json1_1MultipleConflictResolutionEntriesException = (output, context) => {
|
|
@@ -10958,12 +10708,8 @@ const deserializeAws_json1_1PostCommentForComparedCommitOutput = (output, contex
|
|
|
10958
10708
|
afterCommitId: (0, smithy_client_1.expectString)(output.afterCommitId),
|
|
10959
10709
|
beforeBlobId: (0, smithy_client_1.expectString)(output.beforeBlobId),
|
|
10960
10710
|
beforeCommitId: (0, smithy_client_1.expectString)(output.beforeCommitId),
|
|
10961
|
-
comment: output.comment
|
|
10962
|
-
|
|
10963
|
-
: undefined,
|
|
10964
|
-
location: output.location !== undefined && output.location !== null
|
|
10965
|
-
? deserializeAws_json1_1Location(output.location, context)
|
|
10966
|
-
: undefined,
|
|
10711
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
10712
|
+
location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
|
|
10967
10713
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
10968
10714
|
};
|
|
10969
10715
|
};
|
|
@@ -10973,40 +10719,32 @@ const deserializeAws_json1_1PostCommentForPullRequestOutput = (output, context)
|
|
|
10973
10719
|
afterCommitId: (0, smithy_client_1.expectString)(output.afterCommitId),
|
|
10974
10720
|
beforeBlobId: (0, smithy_client_1.expectString)(output.beforeBlobId),
|
|
10975
10721
|
beforeCommitId: (0, smithy_client_1.expectString)(output.beforeCommitId),
|
|
10976
|
-
comment: output.comment
|
|
10977
|
-
|
|
10978
|
-
: undefined,
|
|
10979
|
-
location: output.location !== undefined && output.location !== null
|
|
10980
|
-
? deserializeAws_json1_1Location(output.location, context)
|
|
10981
|
-
: undefined,
|
|
10722
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
10723
|
+
location: output.location != null ? deserializeAws_json1_1Location(output.location, context) : undefined,
|
|
10982
10724
|
pullRequestId: (0, smithy_client_1.expectString)(output.pullRequestId),
|
|
10983
10725
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
10984
10726
|
};
|
|
10985
10727
|
};
|
|
10986
10728
|
const deserializeAws_json1_1PostCommentReplyOutput = (output, context) => {
|
|
10987
10729
|
return {
|
|
10988
|
-
comment: output.comment
|
|
10989
|
-
? deserializeAws_json1_1Comment(output.comment, context)
|
|
10990
|
-
: undefined,
|
|
10730
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
10991
10731
|
};
|
|
10992
10732
|
};
|
|
10993
10733
|
const deserializeAws_json1_1PullRequest = (output, context) => {
|
|
10994
10734
|
return {
|
|
10995
|
-
approvalRules: output.approvalRules
|
|
10996
|
-
? deserializeAws_json1_1ApprovalRulesList(output.approvalRules, context)
|
|
10997
|
-
: undefined,
|
|
10735
|
+
approvalRules: output.approvalRules != null ? deserializeAws_json1_1ApprovalRulesList(output.approvalRules, context) : undefined,
|
|
10998
10736
|
authorArn: (0, smithy_client_1.expectString)(output.authorArn),
|
|
10999
10737
|
clientRequestToken: (0, smithy_client_1.expectString)(output.clientRequestToken),
|
|
11000
|
-
creationDate: output.creationDate
|
|
10738
|
+
creationDate: output.creationDate != null
|
|
11001
10739
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
11002
10740
|
: undefined,
|
|
11003
10741
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
11004
|
-
lastActivityDate: output.lastActivityDate
|
|
10742
|
+
lastActivityDate: output.lastActivityDate != null
|
|
11005
10743
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastActivityDate)))
|
|
11006
10744
|
: undefined,
|
|
11007
10745
|
pullRequestId: (0, smithy_client_1.expectString)(output.pullRequestId),
|
|
11008
10746
|
pullRequestStatus: (0, smithy_client_1.expectString)(output.pullRequestStatus),
|
|
11009
|
-
pullRequestTargets: output.pullRequestTargets
|
|
10747
|
+
pullRequestTargets: output.pullRequestTargets != null
|
|
11010
10748
|
? deserializeAws_json1_1PullRequestTargetList(output.pullRequestTargets, context)
|
|
11011
10749
|
: undefined,
|
|
11012
10750
|
revisionId: (0, smithy_client_1.expectString)(output.revisionId),
|
|
@@ -11044,33 +10782,28 @@ const deserializeAws_json1_1PullRequestDoesNotExistException = (output, context)
|
|
|
11044
10782
|
const deserializeAws_json1_1PullRequestEvent = (output, context) => {
|
|
11045
10783
|
return {
|
|
11046
10784
|
actorArn: (0, smithy_client_1.expectString)(output.actorArn),
|
|
11047
|
-
approvalRuleEventMetadata: output.approvalRuleEventMetadata
|
|
10785
|
+
approvalRuleEventMetadata: output.approvalRuleEventMetadata != null
|
|
11048
10786
|
? deserializeAws_json1_1ApprovalRuleEventMetadata(output.approvalRuleEventMetadata, context)
|
|
11049
10787
|
: undefined,
|
|
11050
|
-
approvalRuleOverriddenEventMetadata: output.approvalRuleOverriddenEventMetadata
|
|
10788
|
+
approvalRuleOverriddenEventMetadata: output.approvalRuleOverriddenEventMetadata != null
|
|
11051
10789
|
? deserializeAws_json1_1ApprovalRuleOverriddenEventMetadata(output.approvalRuleOverriddenEventMetadata, context)
|
|
11052
10790
|
: undefined,
|
|
11053
|
-
approvalStateChangedEventMetadata: output.approvalStateChangedEventMetadata
|
|
10791
|
+
approvalStateChangedEventMetadata: output.approvalStateChangedEventMetadata != null
|
|
11054
10792
|
? deserializeAws_json1_1ApprovalStateChangedEventMetadata(output.approvalStateChangedEventMetadata, context)
|
|
11055
10793
|
: undefined,
|
|
11056
|
-
eventDate: output.eventDate
|
|
11057
|
-
|
|
11058
|
-
: undefined,
|
|
11059
|
-
pullRequestCreatedEventMetadata: output.pullRequestCreatedEventMetadata !== undefined && output.pullRequestCreatedEventMetadata !== null
|
|
10794
|
+
eventDate: output.eventDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventDate))) : undefined,
|
|
10795
|
+
pullRequestCreatedEventMetadata: output.pullRequestCreatedEventMetadata != null
|
|
11060
10796
|
? deserializeAws_json1_1PullRequestCreatedEventMetadata(output.pullRequestCreatedEventMetadata, context)
|
|
11061
10797
|
: undefined,
|
|
11062
10798
|
pullRequestEventType: (0, smithy_client_1.expectString)(output.pullRequestEventType),
|
|
11063
10799
|
pullRequestId: (0, smithy_client_1.expectString)(output.pullRequestId),
|
|
11064
|
-
pullRequestMergedStateChangedEventMetadata: output.pullRequestMergedStateChangedEventMetadata
|
|
11065
|
-
output.pullRequestMergedStateChangedEventMetadata !== null
|
|
10800
|
+
pullRequestMergedStateChangedEventMetadata: output.pullRequestMergedStateChangedEventMetadata != null
|
|
11066
10801
|
? deserializeAws_json1_1PullRequestMergedStateChangedEventMetadata(output.pullRequestMergedStateChangedEventMetadata, context)
|
|
11067
10802
|
: undefined,
|
|
11068
|
-
pullRequestSourceReferenceUpdatedEventMetadata: output.pullRequestSourceReferenceUpdatedEventMetadata
|
|
11069
|
-
output.pullRequestSourceReferenceUpdatedEventMetadata !== null
|
|
10803
|
+
pullRequestSourceReferenceUpdatedEventMetadata: output.pullRequestSourceReferenceUpdatedEventMetadata != null
|
|
11070
10804
|
? deserializeAws_json1_1PullRequestSourceReferenceUpdatedEventMetadata(output.pullRequestSourceReferenceUpdatedEventMetadata, context)
|
|
11071
10805
|
: undefined,
|
|
11072
|
-
pullRequestStatusChangedEventMetadata: output.pullRequestStatusChangedEventMetadata
|
|
11073
|
-
output.pullRequestStatusChangedEventMetadata !== null
|
|
10806
|
+
pullRequestStatusChangedEventMetadata: output.pullRequestStatusChangedEventMetadata != null
|
|
11074
10807
|
? deserializeAws_json1_1PullRequestStatusChangedEventMetadata(output.pullRequestStatusChangedEventMetadata, context)
|
|
11075
10808
|
: undefined,
|
|
11076
10809
|
};
|
|
@@ -11105,9 +10838,7 @@ const deserializeAws_json1_1PullRequestIdRequiredException = (output, context) =
|
|
|
11105
10838
|
const deserializeAws_json1_1PullRequestMergedStateChangedEventMetadata = (output, context) => {
|
|
11106
10839
|
return {
|
|
11107
10840
|
destinationReference: (0, smithy_client_1.expectString)(output.destinationReference),
|
|
11108
|
-
mergeMetadata: output.mergeMetadata
|
|
11109
|
-
? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context)
|
|
11110
|
-
: undefined,
|
|
10841
|
+
mergeMetadata: output.mergeMetadata != null ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context) : undefined,
|
|
11111
10842
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
11112
10843
|
};
|
|
11113
10844
|
};
|
|
@@ -11134,9 +10865,7 @@ const deserializeAws_json1_1PullRequestTarget = (output, context) => {
|
|
|
11134
10865
|
destinationCommit: (0, smithy_client_1.expectString)(output.destinationCommit),
|
|
11135
10866
|
destinationReference: (0, smithy_client_1.expectString)(output.destinationReference),
|
|
11136
10867
|
mergeBase: (0, smithy_client_1.expectString)(output.mergeBase),
|
|
11137
|
-
mergeMetadata: output.mergeMetadata
|
|
11138
|
-
? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context)
|
|
11139
|
-
: undefined,
|
|
10868
|
+
mergeMetadata: output.mergeMetadata != null ? deserializeAws_json1_1MergeMetadata(output.mergeMetadata, context) : undefined,
|
|
11140
10869
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
11141
10870
|
sourceCommit: (0, smithy_client_1.expectString)(output.sourceCommit),
|
|
11142
10871
|
sourceReference: (0, smithy_client_1.expectString)(output.sourceReference),
|
|
@@ -11183,12 +10912,8 @@ const deserializeAws_json1_1ReactionCountsMap = (output, context) => {
|
|
|
11183
10912
|
};
|
|
11184
10913
|
const deserializeAws_json1_1ReactionForComment = (output, context) => {
|
|
11185
10914
|
return {
|
|
11186
|
-
reaction: output.reaction
|
|
11187
|
-
|
|
11188
|
-
: undefined,
|
|
11189
|
-
reactionUsers: output.reactionUsers !== undefined && output.reactionUsers !== null
|
|
11190
|
-
? deserializeAws_json1_1ReactionUsersList(output.reactionUsers, context)
|
|
11191
|
-
: undefined,
|
|
10915
|
+
reaction: output.reaction != null ? deserializeAws_json1_1ReactionValueFormats(output.reaction, context) : undefined,
|
|
10916
|
+
reactionUsers: output.reactionUsers != null ? deserializeAws_json1_1ReactionUsersList(output.reactionUsers, context) : undefined,
|
|
11192
10917
|
reactionsFromDeletedUsersCount: (0, smithy_client_1.expectInt32)(output.reactionsFromDeletedUsersCount),
|
|
11193
10918
|
};
|
|
11194
10919
|
};
|
|
@@ -11272,11 +10997,11 @@ const deserializeAws_json1_1RepositoryMetadata = (output, context) => {
|
|
|
11272
10997
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
11273
10998
|
cloneUrlHttp: (0, smithy_client_1.expectString)(output.cloneUrlHttp),
|
|
11274
10999
|
cloneUrlSsh: (0, smithy_client_1.expectString)(output.cloneUrlSsh),
|
|
11275
|
-
creationDate: output.creationDate
|
|
11000
|
+
creationDate: output.creationDate != null
|
|
11276
11001
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
|
|
11277
11002
|
: undefined,
|
|
11278
11003
|
defaultBranch: (0, smithy_client_1.expectString)(output.defaultBranch),
|
|
11279
|
-
lastModifiedDate: output.lastModifiedDate
|
|
11004
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
11280
11005
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
|
|
11281
11006
|
: undefined,
|
|
11282
11007
|
repositoryDescription: (0, smithy_client_1.expectString)(output.repositoryDescription),
|
|
@@ -11356,14 +11081,10 @@ const deserializeAws_json1_1RepositoryNotFoundList = (output, context) => {
|
|
|
11356
11081
|
};
|
|
11357
11082
|
const deserializeAws_json1_1RepositoryTrigger = (output, context) => {
|
|
11358
11083
|
return {
|
|
11359
|
-
branches: output.branches
|
|
11360
|
-
? deserializeAws_json1_1BranchNameList(output.branches, context)
|
|
11361
|
-
: undefined,
|
|
11084
|
+
branches: output.branches != null ? deserializeAws_json1_1BranchNameList(output.branches, context) : undefined,
|
|
11362
11085
|
customData: (0, smithy_client_1.expectString)(output.customData),
|
|
11363
11086
|
destinationArn: (0, smithy_client_1.expectString)(output.destinationArn),
|
|
11364
|
-
events: output.events
|
|
11365
|
-
? deserializeAws_json1_1RepositoryTriggerEventList(output.events, context)
|
|
11366
|
-
: undefined,
|
|
11087
|
+
events: output.events != null ? deserializeAws_json1_1RepositoryTriggerEventList(output.events, context) : undefined,
|
|
11367
11088
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
11368
11089
|
};
|
|
11369
11090
|
};
|
|
@@ -11557,10 +11278,10 @@ const deserializeAws_json1_1TargetsRequiredException = (output, context) => {
|
|
|
11557
11278
|
};
|
|
11558
11279
|
const deserializeAws_json1_1TestRepositoryTriggersOutput = (output, context) => {
|
|
11559
11280
|
return {
|
|
11560
|
-
failedExecutions: output.failedExecutions
|
|
11281
|
+
failedExecutions: output.failedExecutions != null
|
|
11561
11282
|
? deserializeAws_json1_1RepositoryTriggerExecutionFailureList(output.failedExecutions, context)
|
|
11562
11283
|
: undefined,
|
|
11563
|
-
successfulExecutions: output.successfulExecutions
|
|
11284
|
+
successfulExecutions: output.successfulExecutions != null
|
|
11564
11285
|
? deserializeAws_json1_1RepositoryTriggerNameList(output.successfulExecutions, context)
|
|
11565
11286
|
: undefined,
|
|
11566
11287
|
};
|
|
@@ -11587,58 +11308,48 @@ const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
|
11587
11308
|
};
|
|
11588
11309
|
const deserializeAws_json1_1UpdateApprovalRuleTemplateContentOutput = (output, context) => {
|
|
11589
11310
|
return {
|
|
11590
|
-
approvalRuleTemplate: output.approvalRuleTemplate
|
|
11311
|
+
approvalRuleTemplate: output.approvalRuleTemplate != null
|
|
11591
11312
|
? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
|
|
11592
11313
|
: undefined,
|
|
11593
11314
|
};
|
|
11594
11315
|
};
|
|
11595
11316
|
const deserializeAws_json1_1UpdateApprovalRuleTemplateDescriptionOutput = (output, context) => {
|
|
11596
11317
|
return {
|
|
11597
|
-
approvalRuleTemplate: output.approvalRuleTemplate
|
|
11318
|
+
approvalRuleTemplate: output.approvalRuleTemplate != null
|
|
11598
11319
|
? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
|
|
11599
11320
|
: undefined,
|
|
11600
11321
|
};
|
|
11601
11322
|
};
|
|
11602
11323
|
const deserializeAws_json1_1UpdateApprovalRuleTemplateNameOutput = (output, context) => {
|
|
11603
11324
|
return {
|
|
11604
|
-
approvalRuleTemplate: output.approvalRuleTemplate
|
|
11325
|
+
approvalRuleTemplate: output.approvalRuleTemplate != null
|
|
11605
11326
|
? deserializeAws_json1_1ApprovalRuleTemplate(output.approvalRuleTemplate, context)
|
|
11606
11327
|
: undefined,
|
|
11607
11328
|
};
|
|
11608
11329
|
};
|
|
11609
11330
|
const deserializeAws_json1_1UpdateCommentOutput = (output, context) => {
|
|
11610
11331
|
return {
|
|
11611
|
-
comment: output.comment
|
|
11612
|
-
? deserializeAws_json1_1Comment(output.comment, context)
|
|
11613
|
-
: undefined,
|
|
11332
|
+
comment: output.comment != null ? deserializeAws_json1_1Comment(output.comment, context) : undefined,
|
|
11614
11333
|
};
|
|
11615
11334
|
};
|
|
11616
11335
|
const deserializeAws_json1_1UpdatePullRequestApprovalRuleContentOutput = (output, context) => {
|
|
11617
11336
|
return {
|
|
11618
|
-
approvalRule: output.approvalRule
|
|
11619
|
-
? deserializeAws_json1_1ApprovalRule(output.approvalRule, context)
|
|
11620
|
-
: undefined,
|
|
11337
|
+
approvalRule: output.approvalRule != null ? deserializeAws_json1_1ApprovalRule(output.approvalRule, context) : undefined,
|
|
11621
11338
|
};
|
|
11622
11339
|
};
|
|
11623
11340
|
const deserializeAws_json1_1UpdatePullRequestDescriptionOutput = (output, context) => {
|
|
11624
11341
|
return {
|
|
11625
|
-
pullRequest: output.pullRequest
|
|
11626
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
11627
|
-
: undefined,
|
|
11342
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
11628
11343
|
};
|
|
11629
11344
|
};
|
|
11630
11345
|
const deserializeAws_json1_1UpdatePullRequestStatusOutput = (output, context) => {
|
|
11631
11346
|
return {
|
|
11632
|
-
pullRequest: output.pullRequest
|
|
11633
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
11634
|
-
: undefined,
|
|
11347
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
11635
11348
|
};
|
|
11636
11349
|
};
|
|
11637
11350
|
const deserializeAws_json1_1UpdatePullRequestTitleOutput = (output, context) => {
|
|
11638
11351
|
return {
|
|
11639
|
-
pullRequest: output.pullRequest
|
|
11640
|
-
? deserializeAws_json1_1PullRequest(output.pullRequest, context)
|
|
11641
|
-
: undefined,
|
|
11352
|
+
pullRequest: output.pullRequest != null ? deserializeAws_json1_1PullRequest(output.pullRequest, context) : undefined,
|
|
11642
11353
|
};
|
|
11643
11354
|
};
|
|
11644
11355
|
const deserializeAws_json1_1UserInfo = (output, context) => {
|
|
@@ -11692,6 +11403,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
11692
11403
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
11693
11404
|
const sanitizeErrorCode = (rawValue) => {
|
|
11694
11405
|
let cleanValue = rawValue;
|
|
11406
|
+
if (typeof cleanValue === "number") {
|
|
11407
|
+
cleanValue = cleanValue.toString();
|
|
11408
|
+
}
|
|
11695
11409
|
if (cleanValue.indexOf(":") >= 0) {
|
|
11696
11410
|
cleanValue = cleanValue.split(":")[0];
|
|
11697
11411
|
}
|