@aws-sdk/client-codecommit 3.309.0 → 3.312.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/dist-cjs/protocols/Aws_json1_1.js +83 -308
- package/dist-es/protocols/Aws_json1_1.js +83 -308
- package/package.json +35 -35
|
@@ -5,694 +5,463 @@ import { CodeCommitServiceException as __BaseException } from "../models/CodeCom
|
|
|
5
5
|
import { ActorDoesNotExistException, ApprovalRuleContentRequiredException, ApprovalRuleDoesNotExistException, ApprovalRuleNameAlreadyExistsException, ApprovalRuleNameRequiredException, ApprovalRuleTemplateContentRequiredException, ApprovalRuleTemplateDoesNotExistException, ApprovalRuleTemplateInUseException, ApprovalRuleTemplateNameAlreadyExistsException, ApprovalRuleTemplateNameRequiredException, ApprovalStateRequiredException, AuthorDoesNotExistException, BeforeCommitIdAndAfterCommitIdAreSameException, BlobIdDoesNotExistException, BlobIdRequiredException, BranchDoesNotExistException, BranchNameExistsException, BranchNameIsTagNameException, BranchNameRequiredException, CannotDeleteApprovalRuleFromTemplateException, CannotModifyApprovalRuleFromTemplateException, ClientRequestTokenRequiredException, CommentDeletedException, CommentDoesNotExistException, CommentIdRequiredException, CommitDoesNotExistException, CommitIdDoesNotExistException, CommitIdRequiredException, CommitIdsLimitExceededException, CommitIdsListRequiredException, CommitMessageLengthExceededException, CommitRequiredException, ConcurrentReferenceUpdateException, DefaultBranchCannotBeDeletedException, DirectoryNameConflictsWithFileNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileContentAndSourceFileSpecifiedException, FileContentSizeLimitExceededException, FileDoesNotExistException, FileEntryRequiredException, FileModeRequiredException, FileNameConflictsWithDirectoryNameException, FilePathConflictsWithSubmodulePathException, FileTooLargeException, FolderContentSizeLimitExceededException, FolderDoesNotExistException, IdempotencyParameterMismatchException, InvalidActorArnException, InvalidApprovalRuleContentException, InvalidApprovalRuleNameException, InvalidApprovalRuleTemplateContentException, InvalidApprovalRuleTemplateDescriptionException, InvalidApprovalRuleTemplateNameException, InvalidAuthorArnException, InvalidBlobIdException, InvalidBranchNameException, InvalidClientRequestTokenException, InvalidCommentIdException, InvalidCommitException, InvalidCommitIdException, InvalidConflictDetailLevelException, InvalidConflictResolutionException, InvalidConflictResolutionStrategyException, InvalidContinuationTokenException, InvalidDeletionParameterException, InvalidDescriptionException, InvalidDestinationCommitSpecifierException, InvalidEmailException, InvalidFileModeException, InvalidMaxConflictFilesException, InvalidMaxMergeHunksException, InvalidMaxResultsException, InvalidMergeOptionException, InvalidOrderException, InvalidParentCommitIdException, InvalidPathException, InvalidPullRequestEventTypeException, InvalidPullRequestIdException, InvalidPullRequestStatusException, InvalidReactionUserArnException, InvalidReferenceNameException, InvalidReplacementContentException, InvalidReplacementTypeException, InvalidRepositoryDescriptionException, InvalidRepositoryNameException, InvalidRevisionIdException, InvalidSortByException, InvalidSourceCommitSpecifierException, InvalidSystemTagUsageException, InvalidTagsMapException, InvalidTargetException, InvalidTargetsException, InvalidTitleException, ManualMergeRequiredException, MaximumConflictResolutionEntriesExceededException, MaximumFileContentToLoadExceededException, MaximumFileEntriesExceededException, MaximumItemsToCompareExceededException, MaximumOpenPullRequestsExceededException, MaximumRepositoryNamesExceededException, MaximumRuleTemplatesAssociatedWithRepositoryException, MergeOptionRequiredException, MultipleConflictResolutionEntriesException, MultipleRepositoriesInPullRequestException, NameLengthExceededException, NoChangeException, NumberOfRulesExceededException, NumberOfRuleTemplatesExceededException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, ParentCommitIdRequiredException, PathDoesNotExistException, PathRequiredException, PullRequestAlreadyClosedException, PullRequestDoesNotExistException, PullRequestIdRequiredException, PutFileEntryConflictException, ReferenceDoesNotExistException, ReferenceNameRequiredException, ReferenceTypeNotSupportedException, ReplacementContentRequiredException, ReplacementTypeRequiredException, RepositoryDoesNotExistException, RepositoryLimitExceededException, RepositoryNameExistsException, RepositoryNameRequiredException, RepositoryNamesRequiredException, RepositoryNotAssociatedWithPullRequestException, RestrictedSourceFileException, RevisionIdRequiredException, RevisionNotCurrentException, SamePathRequestException, SourceAndDestinationAreSameException, SourceFileOrContentRequiredException, TagPolicyException, TargetRequiredException, TargetsRequiredException, TipsDivergenceExceededException, TitleRequiredException, TooManyTagsException, } from "../models/models_0";
|
|
6
6
|
import { CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentNotCreatedByCallerException, FileContentRequiredException, InvalidApprovalStateException, InvalidFileLocationException, InvalidFilePositionException, InvalidOverrideStatusException, InvalidPullRequestStatusUpdateException, InvalidReactionValueException, InvalidRelativeFileVersionEnumException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerCustomDataException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerEventsException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerRegionException, InvalidResourceArnException, InvalidRuleContentSha256Exception, InvalidTagKeysListException, InvalidTargetBranchException, MaximumBranchesExceededException, MaximumNumberOfApprovalsExceededException, MaximumRepositoryTriggersExceededException, OverrideAlreadySetException, OverrideStatusRequiredException, PullRequestApprovalRulesNotSatisfiedException, PullRequestCannotBeApprovedByAuthorException, PullRequestStatusRequiredException, ReactionLimitExceededException, ReactionValueRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerEventsListRequiredException, RepositoryTriggerNameRequiredException, RepositoryTriggersListRequiredException, ResourceArnRequiredException, SameFileContentException, TagKeysListRequiredException, TagsMapRequiredException, TipOfSourceReferenceIsDifferentException, } from "../models/models_1";
|
|
7
7
|
export const se_AssociateApprovalRuleTemplateWithRepositoryCommand = async (input, context) => {
|
|
8
|
-
const headers =
|
|
9
|
-
"content-type": "application/x-amz-json-1.1",
|
|
10
|
-
"x-amz-target": "CodeCommit_20150413.AssociateApprovalRuleTemplateWithRepository",
|
|
11
|
-
};
|
|
8
|
+
const headers = sharedHeaders("AssociateApprovalRuleTemplateWithRepository");
|
|
12
9
|
let body;
|
|
13
10
|
body = JSON.stringify(se_AssociateApprovalRuleTemplateWithRepositoryInput(input, context));
|
|
14
11
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
12
|
};
|
|
16
13
|
export const se_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = async (input, context) => {
|
|
17
|
-
const headers =
|
|
18
|
-
"content-type": "application/x-amz-json-1.1",
|
|
19
|
-
"x-amz-target": "CodeCommit_20150413.BatchAssociateApprovalRuleTemplateWithRepositories",
|
|
20
|
-
};
|
|
14
|
+
const headers = sharedHeaders("BatchAssociateApprovalRuleTemplateWithRepositories");
|
|
21
15
|
let body;
|
|
22
16
|
body = JSON.stringify(se_BatchAssociateApprovalRuleTemplateWithRepositoriesInput(input, context));
|
|
23
17
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
18
|
};
|
|
25
19
|
export const se_BatchDescribeMergeConflictsCommand = async (input, context) => {
|
|
26
|
-
const headers =
|
|
27
|
-
"content-type": "application/x-amz-json-1.1",
|
|
28
|
-
"x-amz-target": "CodeCommit_20150413.BatchDescribeMergeConflicts",
|
|
29
|
-
};
|
|
20
|
+
const headers = sharedHeaders("BatchDescribeMergeConflicts");
|
|
30
21
|
let body;
|
|
31
22
|
body = JSON.stringify(se_BatchDescribeMergeConflictsInput(input, context));
|
|
32
23
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
33
24
|
};
|
|
34
25
|
export const se_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = async (input, context) => {
|
|
35
|
-
const headers =
|
|
36
|
-
"content-type": "application/x-amz-json-1.1",
|
|
37
|
-
"x-amz-target": "CodeCommit_20150413.BatchDisassociateApprovalRuleTemplateFromRepositories",
|
|
38
|
-
};
|
|
26
|
+
const headers = sharedHeaders("BatchDisassociateApprovalRuleTemplateFromRepositories");
|
|
39
27
|
let body;
|
|
40
28
|
body = JSON.stringify(se_BatchDisassociateApprovalRuleTemplateFromRepositoriesInput(input, context));
|
|
41
29
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
30
|
};
|
|
43
31
|
export const se_BatchGetCommitsCommand = async (input, context) => {
|
|
44
|
-
const headers =
|
|
45
|
-
"content-type": "application/x-amz-json-1.1",
|
|
46
|
-
"x-amz-target": "CodeCommit_20150413.BatchGetCommits",
|
|
47
|
-
};
|
|
32
|
+
const headers = sharedHeaders("BatchGetCommits");
|
|
48
33
|
let body;
|
|
49
34
|
body = JSON.stringify(se_BatchGetCommitsInput(input, context));
|
|
50
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
36
|
};
|
|
52
37
|
export const se_BatchGetRepositoriesCommand = async (input, context) => {
|
|
53
|
-
const headers =
|
|
54
|
-
"content-type": "application/x-amz-json-1.1",
|
|
55
|
-
"x-amz-target": "CodeCommit_20150413.BatchGetRepositories",
|
|
56
|
-
};
|
|
38
|
+
const headers = sharedHeaders("BatchGetRepositories");
|
|
57
39
|
let body;
|
|
58
40
|
body = JSON.stringify(se_BatchGetRepositoriesInput(input, context));
|
|
59
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
42
|
};
|
|
61
43
|
export const se_CreateApprovalRuleTemplateCommand = async (input, context) => {
|
|
62
|
-
const headers =
|
|
63
|
-
"content-type": "application/x-amz-json-1.1",
|
|
64
|
-
"x-amz-target": "CodeCommit_20150413.CreateApprovalRuleTemplate",
|
|
65
|
-
};
|
|
44
|
+
const headers = sharedHeaders("CreateApprovalRuleTemplate");
|
|
66
45
|
let body;
|
|
67
46
|
body = JSON.stringify(se_CreateApprovalRuleTemplateInput(input, context));
|
|
68
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
48
|
};
|
|
70
49
|
export const se_CreateBranchCommand = async (input, context) => {
|
|
71
|
-
const headers =
|
|
72
|
-
"content-type": "application/x-amz-json-1.1",
|
|
73
|
-
"x-amz-target": "CodeCommit_20150413.CreateBranch",
|
|
74
|
-
};
|
|
50
|
+
const headers = sharedHeaders("CreateBranch");
|
|
75
51
|
let body;
|
|
76
52
|
body = JSON.stringify(se_CreateBranchInput(input, context));
|
|
77
53
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
54
|
};
|
|
79
55
|
export const se_CreateCommitCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "CodeCommit_20150413.CreateCommit",
|
|
83
|
-
};
|
|
56
|
+
const headers = sharedHeaders("CreateCommit");
|
|
84
57
|
let body;
|
|
85
58
|
body = JSON.stringify(se_CreateCommitInput(input, context));
|
|
86
59
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
60
|
};
|
|
88
61
|
export const se_CreatePullRequestCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "CodeCommit_20150413.CreatePullRequest",
|
|
92
|
-
};
|
|
62
|
+
const headers = sharedHeaders("CreatePullRequest");
|
|
93
63
|
let body;
|
|
94
64
|
body = JSON.stringify(se_CreatePullRequestInput(input, context));
|
|
95
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
66
|
};
|
|
97
67
|
export const se_CreatePullRequestApprovalRuleCommand = async (input, context) => {
|
|
98
|
-
const headers =
|
|
99
|
-
"content-type": "application/x-amz-json-1.1",
|
|
100
|
-
"x-amz-target": "CodeCommit_20150413.CreatePullRequestApprovalRule",
|
|
101
|
-
};
|
|
68
|
+
const headers = sharedHeaders("CreatePullRequestApprovalRule");
|
|
102
69
|
let body;
|
|
103
70
|
body = JSON.stringify(se_CreatePullRequestApprovalRuleInput(input, context));
|
|
104
71
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
72
|
};
|
|
106
73
|
export const se_CreateRepositoryCommand = async (input, context) => {
|
|
107
|
-
const headers =
|
|
108
|
-
"content-type": "application/x-amz-json-1.1",
|
|
109
|
-
"x-amz-target": "CodeCommit_20150413.CreateRepository",
|
|
110
|
-
};
|
|
74
|
+
const headers = sharedHeaders("CreateRepository");
|
|
111
75
|
let body;
|
|
112
76
|
body = JSON.stringify(se_CreateRepositoryInput(input, context));
|
|
113
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
78
|
};
|
|
115
79
|
export const se_CreateUnreferencedMergeCommitCommand = async (input, context) => {
|
|
116
|
-
const headers =
|
|
117
|
-
"content-type": "application/x-amz-json-1.1",
|
|
118
|
-
"x-amz-target": "CodeCommit_20150413.CreateUnreferencedMergeCommit",
|
|
119
|
-
};
|
|
80
|
+
const headers = sharedHeaders("CreateUnreferencedMergeCommit");
|
|
120
81
|
let body;
|
|
121
82
|
body = JSON.stringify(se_CreateUnreferencedMergeCommitInput(input, context));
|
|
122
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
123
84
|
};
|
|
124
85
|
export const se_DeleteApprovalRuleTemplateCommand = async (input, context) => {
|
|
125
|
-
const headers =
|
|
126
|
-
"content-type": "application/x-amz-json-1.1",
|
|
127
|
-
"x-amz-target": "CodeCommit_20150413.DeleteApprovalRuleTemplate",
|
|
128
|
-
};
|
|
86
|
+
const headers = sharedHeaders("DeleteApprovalRuleTemplate");
|
|
129
87
|
let body;
|
|
130
88
|
body = JSON.stringify(se_DeleteApprovalRuleTemplateInput(input, context));
|
|
131
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
90
|
};
|
|
133
91
|
export const se_DeleteBranchCommand = async (input, context) => {
|
|
134
|
-
const headers =
|
|
135
|
-
"content-type": "application/x-amz-json-1.1",
|
|
136
|
-
"x-amz-target": "CodeCommit_20150413.DeleteBranch",
|
|
137
|
-
};
|
|
92
|
+
const headers = sharedHeaders("DeleteBranch");
|
|
138
93
|
let body;
|
|
139
94
|
body = JSON.stringify(se_DeleteBranchInput(input, context));
|
|
140
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
96
|
};
|
|
142
97
|
export const se_DeleteCommentContentCommand = async (input, context) => {
|
|
143
|
-
const headers =
|
|
144
|
-
"content-type": "application/x-amz-json-1.1",
|
|
145
|
-
"x-amz-target": "CodeCommit_20150413.DeleteCommentContent",
|
|
146
|
-
};
|
|
98
|
+
const headers = sharedHeaders("DeleteCommentContent");
|
|
147
99
|
let body;
|
|
148
100
|
body = JSON.stringify(se_DeleteCommentContentInput(input, context));
|
|
149
101
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
102
|
};
|
|
151
103
|
export const se_DeleteFileCommand = async (input, context) => {
|
|
152
|
-
const headers =
|
|
153
|
-
"content-type": "application/x-amz-json-1.1",
|
|
154
|
-
"x-amz-target": "CodeCommit_20150413.DeleteFile",
|
|
155
|
-
};
|
|
104
|
+
const headers = sharedHeaders("DeleteFile");
|
|
156
105
|
let body;
|
|
157
106
|
body = JSON.stringify(se_DeleteFileInput(input, context));
|
|
158
107
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
159
108
|
};
|
|
160
109
|
export const se_DeletePullRequestApprovalRuleCommand = async (input, context) => {
|
|
161
|
-
const headers =
|
|
162
|
-
"content-type": "application/x-amz-json-1.1",
|
|
163
|
-
"x-amz-target": "CodeCommit_20150413.DeletePullRequestApprovalRule",
|
|
164
|
-
};
|
|
110
|
+
const headers = sharedHeaders("DeletePullRequestApprovalRule");
|
|
165
111
|
let body;
|
|
166
112
|
body = JSON.stringify(se_DeletePullRequestApprovalRuleInput(input, context));
|
|
167
113
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
114
|
};
|
|
169
115
|
export const se_DeleteRepositoryCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "CodeCommit_20150413.DeleteRepository",
|
|
173
|
-
};
|
|
116
|
+
const headers = sharedHeaders("DeleteRepository");
|
|
174
117
|
let body;
|
|
175
118
|
body = JSON.stringify(se_DeleteRepositoryInput(input, context));
|
|
176
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
120
|
};
|
|
178
121
|
export const se_DescribeMergeConflictsCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "CodeCommit_20150413.DescribeMergeConflicts",
|
|
182
|
-
};
|
|
122
|
+
const headers = sharedHeaders("DescribeMergeConflicts");
|
|
183
123
|
let body;
|
|
184
124
|
body = JSON.stringify(se_DescribeMergeConflictsInput(input, context));
|
|
185
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
126
|
};
|
|
187
127
|
export const se_DescribePullRequestEventsCommand = async (input, context) => {
|
|
188
|
-
const headers =
|
|
189
|
-
"content-type": "application/x-amz-json-1.1",
|
|
190
|
-
"x-amz-target": "CodeCommit_20150413.DescribePullRequestEvents",
|
|
191
|
-
};
|
|
128
|
+
const headers = sharedHeaders("DescribePullRequestEvents");
|
|
192
129
|
let body;
|
|
193
130
|
body = JSON.stringify(se_DescribePullRequestEventsInput(input, context));
|
|
194
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
195
132
|
};
|
|
196
133
|
export const se_DisassociateApprovalRuleTemplateFromRepositoryCommand = async (input, context) => {
|
|
197
|
-
const headers =
|
|
198
|
-
"content-type": "application/x-amz-json-1.1",
|
|
199
|
-
"x-amz-target": "CodeCommit_20150413.DisassociateApprovalRuleTemplateFromRepository",
|
|
200
|
-
};
|
|
134
|
+
const headers = sharedHeaders("DisassociateApprovalRuleTemplateFromRepository");
|
|
201
135
|
let body;
|
|
202
136
|
body = JSON.stringify(se_DisassociateApprovalRuleTemplateFromRepositoryInput(input, context));
|
|
203
137
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
138
|
};
|
|
205
139
|
export const se_EvaluatePullRequestApprovalRulesCommand = async (input, context) => {
|
|
206
|
-
const headers =
|
|
207
|
-
"content-type": "application/x-amz-json-1.1",
|
|
208
|
-
"x-amz-target": "CodeCommit_20150413.EvaluatePullRequestApprovalRules",
|
|
209
|
-
};
|
|
140
|
+
const headers = sharedHeaders("EvaluatePullRequestApprovalRules");
|
|
210
141
|
let body;
|
|
211
142
|
body = JSON.stringify(se_EvaluatePullRequestApprovalRulesInput(input, context));
|
|
212
143
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
213
144
|
};
|
|
214
145
|
export const se_GetApprovalRuleTemplateCommand = async (input, context) => {
|
|
215
|
-
const headers =
|
|
216
|
-
"content-type": "application/x-amz-json-1.1",
|
|
217
|
-
"x-amz-target": "CodeCommit_20150413.GetApprovalRuleTemplate",
|
|
218
|
-
};
|
|
146
|
+
const headers = sharedHeaders("GetApprovalRuleTemplate");
|
|
219
147
|
let body;
|
|
220
148
|
body = JSON.stringify(se_GetApprovalRuleTemplateInput(input, context));
|
|
221
149
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
150
|
};
|
|
223
151
|
export const se_GetBlobCommand = async (input, context) => {
|
|
224
|
-
const headers =
|
|
225
|
-
"content-type": "application/x-amz-json-1.1",
|
|
226
|
-
"x-amz-target": "CodeCommit_20150413.GetBlob",
|
|
227
|
-
};
|
|
152
|
+
const headers = sharedHeaders("GetBlob");
|
|
228
153
|
let body;
|
|
229
154
|
body = JSON.stringify(se_GetBlobInput(input, context));
|
|
230
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
156
|
};
|
|
232
157
|
export const se_GetBranchCommand = async (input, context) => {
|
|
233
|
-
const headers =
|
|
234
|
-
"content-type": "application/x-amz-json-1.1",
|
|
235
|
-
"x-amz-target": "CodeCommit_20150413.GetBranch",
|
|
236
|
-
};
|
|
158
|
+
const headers = sharedHeaders("GetBranch");
|
|
237
159
|
let body;
|
|
238
160
|
body = JSON.stringify(se_GetBranchInput(input, context));
|
|
239
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
162
|
};
|
|
241
163
|
export const se_GetCommentCommand = async (input, context) => {
|
|
242
|
-
const headers =
|
|
243
|
-
"content-type": "application/x-amz-json-1.1",
|
|
244
|
-
"x-amz-target": "CodeCommit_20150413.GetComment",
|
|
245
|
-
};
|
|
164
|
+
const headers = sharedHeaders("GetComment");
|
|
246
165
|
let body;
|
|
247
166
|
body = JSON.stringify(se_GetCommentInput(input, context));
|
|
248
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
249
168
|
};
|
|
250
169
|
export const se_GetCommentReactionsCommand = async (input, context) => {
|
|
251
|
-
const headers =
|
|
252
|
-
"content-type": "application/x-amz-json-1.1",
|
|
253
|
-
"x-amz-target": "CodeCommit_20150413.GetCommentReactions",
|
|
254
|
-
};
|
|
170
|
+
const headers = sharedHeaders("GetCommentReactions");
|
|
255
171
|
let body;
|
|
256
172
|
body = JSON.stringify(se_GetCommentReactionsInput(input, context));
|
|
257
173
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
174
|
};
|
|
259
175
|
export const se_GetCommentsForComparedCommitCommand = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.1",
|
|
262
|
-
"x-amz-target": "CodeCommit_20150413.GetCommentsForComparedCommit",
|
|
263
|
-
};
|
|
176
|
+
const headers = sharedHeaders("GetCommentsForComparedCommit");
|
|
264
177
|
let body;
|
|
265
178
|
body = JSON.stringify(se_GetCommentsForComparedCommitInput(input, context));
|
|
266
179
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
180
|
};
|
|
268
181
|
export const se_GetCommentsForPullRequestCommand = async (input, context) => {
|
|
269
|
-
const headers =
|
|
270
|
-
"content-type": "application/x-amz-json-1.1",
|
|
271
|
-
"x-amz-target": "CodeCommit_20150413.GetCommentsForPullRequest",
|
|
272
|
-
};
|
|
182
|
+
const headers = sharedHeaders("GetCommentsForPullRequest");
|
|
273
183
|
let body;
|
|
274
184
|
body = JSON.stringify(se_GetCommentsForPullRequestInput(input, context));
|
|
275
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
186
|
};
|
|
277
187
|
export const se_GetCommitCommand = async (input, context) => {
|
|
278
|
-
const headers =
|
|
279
|
-
"content-type": "application/x-amz-json-1.1",
|
|
280
|
-
"x-amz-target": "CodeCommit_20150413.GetCommit",
|
|
281
|
-
};
|
|
188
|
+
const headers = sharedHeaders("GetCommit");
|
|
282
189
|
let body;
|
|
283
190
|
body = JSON.stringify(se_GetCommitInput(input, context));
|
|
284
191
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
285
192
|
};
|
|
286
193
|
export const se_GetDifferencesCommand = async (input, context) => {
|
|
287
|
-
const headers =
|
|
288
|
-
"content-type": "application/x-amz-json-1.1",
|
|
289
|
-
"x-amz-target": "CodeCommit_20150413.GetDifferences",
|
|
290
|
-
};
|
|
194
|
+
const headers = sharedHeaders("GetDifferences");
|
|
291
195
|
let body;
|
|
292
196
|
body = JSON.stringify(se_GetDifferencesInput(input, context));
|
|
293
197
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
198
|
};
|
|
295
199
|
export const se_GetFileCommand = async (input, context) => {
|
|
296
|
-
const headers =
|
|
297
|
-
"content-type": "application/x-amz-json-1.1",
|
|
298
|
-
"x-amz-target": "CodeCommit_20150413.GetFile",
|
|
299
|
-
};
|
|
200
|
+
const headers = sharedHeaders("GetFile");
|
|
300
201
|
let body;
|
|
301
202
|
body = JSON.stringify(se_GetFileInput(input, context));
|
|
302
203
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
204
|
};
|
|
304
205
|
export const se_GetFolderCommand = async (input, context) => {
|
|
305
|
-
const headers =
|
|
306
|
-
"content-type": "application/x-amz-json-1.1",
|
|
307
|
-
"x-amz-target": "CodeCommit_20150413.GetFolder",
|
|
308
|
-
};
|
|
206
|
+
const headers = sharedHeaders("GetFolder");
|
|
309
207
|
let body;
|
|
310
208
|
body = JSON.stringify(se_GetFolderInput(input, context));
|
|
311
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
312
210
|
};
|
|
313
211
|
export const se_GetMergeCommitCommand = async (input, context) => {
|
|
314
|
-
const headers =
|
|
315
|
-
"content-type": "application/x-amz-json-1.1",
|
|
316
|
-
"x-amz-target": "CodeCommit_20150413.GetMergeCommit",
|
|
317
|
-
};
|
|
212
|
+
const headers = sharedHeaders("GetMergeCommit");
|
|
318
213
|
let body;
|
|
319
214
|
body = JSON.stringify(se_GetMergeCommitInput(input, context));
|
|
320
215
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
321
216
|
};
|
|
322
217
|
export const se_GetMergeConflictsCommand = async (input, context) => {
|
|
323
|
-
const headers =
|
|
324
|
-
"content-type": "application/x-amz-json-1.1",
|
|
325
|
-
"x-amz-target": "CodeCommit_20150413.GetMergeConflicts",
|
|
326
|
-
};
|
|
218
|
+
const headers = sharedHeaders("GetMergeConflicts");
|
|
327
219
|
let body;
|
|
328
220
|
body = JSON.stringify(se_GetMergeConflictsInput(input, context));
|
|
329
221
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
222
|
};
|
|
331
223
|
export const se_GetMergeOptionsCommand = async (input, context) => {
|
|
332
|
-
const headers =
|
|
333
|
-
"content-type": "application/x-amz-json-1.1",
|
|
334
|
-
"x-amz-target": "CodeCommit_20150413.GetMergeOptions",
|
|
335
|
-
};
|
|
224
|
+
const headers = sharedHeaders("GetMergeOptions");
|
|
336
225
|
let body;
|
|
337
226
|
body = JSON.stringify(se_GetMergeOptionsInput(input, context));
|
|
338
227
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
339
228
|
};
|
|
340
229
|
export const se_GetPullRequestCommand = async (input, context) => {
|
|
341
|
-
const headers =
|
|
342
|
-
"content-type": "application/x-amz-json-1.1",
|
|
343
|
-
"x-amz-target": "CodeCommit_20150413.GetPullRequest",
|
|
344
|
-
};
|
|
230
|
+
const headers = sharedHeaders("GetPullRequest");
|
|
345
231
|
let body;
|
|
346
232
|
body = JSON.stringify(se_GetPullRequestInput(input, context));
|
|
347
233
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
348
234
|
};
|
|
349
235
|
export const se_GetPullRequestApprovalStatesCommand = async (input, context) => {
|
|
350
|
-
const headers =
|
|
351
|
-
"content-type": "application/x-amz-json-1.1",
|
|
352
|
-
"x-amz-target": "CodeCommit_20150413.GetPullRequestApprovalStates",
|
|
353
|
-
};
|
|
236
|
+
const headers = sharedHeaders("GetPullRequestApprovalStates");
|
|
354
237
|
let body;
|
|
355
238
|
body = JSON.stringify(se_GetPullRequestApprovalStatesInput(input, context));
|
|
356
239
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
240
|
};
|
|
358
241
|
export const se_GetPullRequestOverrideStateCommand = async (input, context) => {
|
|
359
|
-
const headers =
|
|
360
|
-
"content-type": "application/x-amz-json-1.1",
|
|
361
|
-
"x-amz-target": "CodeCommit_20150413.GetPullRequestOverrideState",
|
|
362
|
-
};
|
|
242
|
+
const headers = sharedHeaders("GetPullRequestOverrideState");
|
|
363
243
|
let body;
|
|
364
244
|
body = JSON.stringify(se_GetPullRequestOverrideStateInput(input, context));
|
|
365
245
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
246
|
};
|
|
367
247
|
export const se_GetRepositoryCommand = async (input, context) => {
|
|
368
|
-
const headers =
|
|
369
|
-
"content-type": "application/x-amz-json-1.1",
|
|
370
|
-
"x-amz-target": "CodeCommit_20150413.GetRepository",
|
|
371
|
-
};
|
|
248
|
+
const headers = sharedHeaders("GetRepository");
|
|
372
249
|
let body;
|
|
373
250
|
body = JSON.stringify(se_GetRepositoryInput(input, context));
|
|
374
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
375
252
|
};
|
|
376
253
|
export const se_GetRepositoryTriggersCommand = async (input, context) => {
|
|
377
|
-
const headers =
|
|
378
|
-
"content-type": "application/x-amz-json-1.1",
|
|
379
|
-
"x-amz-target": "CodeCommit_20150413.GetRepositoryTriggers",
|
|
380
|
-
};
|
|
254
|
+
const headers = sharedHeaders("GetRepositoryTriggers");
|
|
381
255
|
let body;
|
|
382
256
|
body = JSON.stringify(se_GetRepositoryTriggersInput(input, context));
|
|
383
257
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
384
258
|
};
|
|
385
259
|
export const se_ListApprovalRuleTemplatesCommand = async (input, context) => {
|
|
386
|
-
const headers =
|
|
387
|
-
"content-type": "application/x-amz-json-1.1",
|
|
388
|
-
"x-amz-target": "CodeCommit_20150413.ListApprovalRuleTemplates",
|
|
389
|
-
};
|
|
260
|
+
const headers = sharedHeaders("ListApprovalRuleTemplates");
|
|
390
261
|
let body;
|
|
391
262
|
body = JSON.stringify(se_ListApprovalRuleTemplatesInput(input, context));
|
|
392
263
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
393
264
|
};
|
|
394
265
|
export const se_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = async (input, context) => {
|
|
395
|
-
const headers =
|
|
396
|
-
"content-type": "application/x-amz-json-1.1",
|
|
397
|
-
"x-amz-target": "CodeCommit_20150413.ListAssociatedApprovalRuleTemplatesForRepository",
|
|
398
|
-
};
|
|
266
|
+
const headers = sharedHeaders("ListAssociatedApprovalRuleTemplatesForRepository");
|
|
399
267
|
let body;
|
|
400
268
|
body = JSON.stringify(se_ListAssociatedApprovalRuleTemplatesForRepositoryInput(input, context));
|
|
401
269
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
402
270
|
};
|
|
403
271
|
export const se_ListBranchesCommand = async (input, context) => {
|
|
404
|
-
const headers =
|
|
405
|
-
"content-type": "application/x-amz-json-1.1",
|
|
406
|
-
"x-amz-target": "CodeCommit_20150413.ListBranches",
|
|
407
|
-
};
|
|
272
|
+
const headers = sharedHeaders("ListBranches");
|
|
408
273
|
let body;
|
|
409
274
|
body = JSON.stringify(se_ListBranchesInput(input, context));
|
|
410
275
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
411
276
|
};
|
|
412
277
|
export const se_ListPullRequestsCommand = async (input, context) => {
|
|
413
|
-
const headers =
|
|
414
|
-
"content-type": "application/x-amz-json-1.1",
|
|
415
|
-
"x-amz-target": "CodeCommit_20150413.ListPullRequests",
|
|
416
|
-
};
|
|
278
|
+
const headers = sharedHeaders("ListPullRequests");
|
|
417
279
|
let body;
|
|
418
280
|
body = JSON.stringify(se_ListPullRequestsInput(input, context));
|
|
419
281
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
420
282
|
};
|
|
421
283
|
export const se_ListRepositoriesCommand = async (input, context) => {
|
|
422
|
-
const headers =
|
|
423
|
-
"content-type": "application/x-amz-json-1.1",
|
|
424
|
-
"x-amz-target": "CodeCommit_20150413.ListRepositories",
|
|
425
|
-
};
|
|
284
|
+
const headers = sharedHeaders("ListRepositories");
|
|
426
285
|
let body;
|
|
427
286
|
body = JSON.stringify(se_ListRepositoriesInput(input, context));
|
|
428
287
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
288
|
};
|
|
430
289
|
export const se_ListRepositoriesForApprovalRuleTemplateCommand = async (input, context) => {
|
|
431
|
-
const headers =
|
|
432
|
-
"content-type": "application/x-amz-json-1.1",
|
|
433
|
-
"x-amz-target": "CodeCommit_20150413.ListRepositoriesForApprovalRuleTemplate",
|
|
434
|
-
};
|
|
290
|
+
const headers = sharedHeaders("ListRepositoriesForApprovalRuleTemplate");
|
|
435
291
|
let body;
|
|
436
292
|
body = JSON.stringify(se_ListRepositoriesForApprovalRuleTemplateInput(input, context));
|
|
437
293
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
294
|
};
|
|
439
295
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
440
|
-
const headers =
|
|
441
|
-
"content-type": "application/x-amz-json-1.1",
|
|
442
|
-
"x-amz-target": "CodeCommit_20150413.ListTagsForResource",
|
|
443
|
-
};
|
|
296
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
444
297
|
let body;
|
|
445
298
|
body = JSON.stringify(se_ListTagsForResourceInput(input, context));
|
|
446
299
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
300
|
};
|
|
448
301
|
export const se_MergeBranchesByFastForwardCommand = async (input, context) => {
|
|
449
|
-
const headers =
|
|
450
|
-
"content-type": "application/x-amz-json-1.1",
|
|
451
|
-
"x-amz-target": "CodeCommit_20150413.MergeBranchesByFastForward",
|
|
452
|
-
};
|
|
302
|
+
const headers = sharedHeaders("MergeBranchesByFastForward");
|
|
453
303
|
let body;
|
|
454
304
|
body = JSON.stringify(se_MergeBranchesByFastForwardInput(input, context));
|
|
455
305
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
456
306
|
};
|
|
457
307
|
export const se_MergeBranchesBySquashCommand = async (input, context) => {
|
|
458
|
-
const headers =
|
|
459
|
-
"content-type": "application/x-amz-json-1.1",
|
|
460
|
-
"x-amz-target": "CodeCommit_20150413.MergeBranchesBySquash",
|
|
461
|
-
};
|
|
308
|
+
const headers = sharedHeaders("MergeBranchesBySquash");
|
|
462
309
|
let body;
|
|
463
310
|
body = JSON.stringify(se_MergeBranchesBySquashInput(input, context));
|
|
464
311
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
465
312
|
};
|
|
466
313
|
export const se_MergeBranchesByThreeWayCommand = async (input, context) => {
|
|
467
|
-
const headers =
|
|
468
|
-
"content-type": "application/x-amz-json-1.1",
|
|
469
|
-
"x-amz-target": "CodeCommit_20150413.MergeBranchesByThreeWay",
|
|
470
|
-
};
|
|
314
|
+
const headers = sharedHeaders("MergeBranchesByThreeWay");
|
|
471
315
|
let body;
|
|
472
316
|
body = JSON.stringify(se_MergeBranchesByThreeWayInput(input, context));
|
|
473
317
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
474
318
|
};
|
|
475
319
|
export const se_MergePullRequestByFastForwardCommand = async (input, context) => {
|
|
476
|
-
const headers =
|
|
477
|
-
"content-type": "application/x-amz-json-1.1",
|
|
478
|
-
"x-amz-target": "CodeCommit_20150413.MergePullRequestByFastForward",
|
|
479
|
-
};
|
|
320
|
+
const headers = sharedHeaders("MergePullRequestByFastForward");
|
|
480
321
|
let body;
|
|
481
322
|
body = JSON.stringify(se_MergePullRequestByFastForwardInput(input, context));
|
|
482
323
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
483
324
|
};
|
|
484
325
|
export const se_MergePullRequestBySquashCommand = async (input, context) => {
|
|
485
|
-
const headers =
|
|
486
|
-
"content-type": "application/x-amz-json-1.1",
|
|
487
|
-
"x-amz-target": "CodeCommit_20150413.MergePullRequestBySquash",
|
|
488
|
-
};
|
|
326
|
+
const headers = sharedHeaders("MergePullRequestBySquash");
|
|
489
327
|
let body;
|
|
490
328
|
body = JSON.stringify(se_MergePullRequestBySquashInput(input, context));
|
|
491
329
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
492
330
|
};
|
|
493
331
|
export const se_MergePullRequestByThreeWayCommand = async (input, context) => {
|
|
494
|
-
const headers =
|
|
495
|
-
"content-type": "application/x-amz-json-1.1",
|
|
496
|
-
"x-amz-target": "CodeCommit_20150413.MergePullRequestByThreeWay",
|
|
497
|
-
};
|
|
332
|
+
const headers = sharedHeaders("MergePullRequestByThreeWay");
|
|
498
333
|
let body;
|
|
499
334
|
body = JSON.stringify(se_MergePullRequestByThreeWayInput(input, context));
|
|
500
335
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
501
336
|
};
|
|
502
337
|
export const se_OverridePullRequestApprovalRulesCommand = async (input, context) => {
|
|
503
|
-
const headers =
|
|
504
|
-
"content-type": "application/x-amz-json-1.1",
|
|
505
|
-
"x-amz-target": "CodeCommit_20150413.OverridePullRequestApprovalRules",
|
|
506
|
-
};
|
|
338
|
+
const headers = sharedHeaders("OverridePullRequestApprovalRules");
|
|
507
339
|
let body;
|
|
508
340
|
body = JSON.stringify(se_OverridePullRequestApprovalRulesInput(input, context));
|
|
509
341
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
510
342
|
};
|
|
511
343
|
export const se_PostCommentForComparedCommitCommand = async (input, context) => {
|
|
512
|
-
const headers =
|
|
513
|
-
"content-type": "application/x-amz-json-1.1",
|
|
514
|
-
"x-amz-target": "CodeCommit_20150413.PostCommentForComparedCommit",
|
|
515
|
-
};
|
|
344
|
+
const headers = sharedHeaders("PostCommentForComparedCommit");
|
|
516
345
|
let body;
|
|
517
346
|
body = JSON.stringify(se_PostCommentForComparedCommitInput(input, context));
|
|
518
347
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
519
348
|
};
|
|
520
349
|
export const se_PostCommentForPullRequestCommand = async (input, context) => {
|
|
521
|
-
const headers =
|
|
522
|
-
"content-type": "application/x-amz-json-1.1",
|
|
523
|
-
"x-amz-target": "CodeCommit_20150413.PostCommentForPullRequest",
|
|
524
|
-
};
|
|
350
|
+
const headers = sharedHeaders("PostCommentForPullRequest");
|
|
525
351
|
let body;
|
|
526
352
|
body = JSON.stringify(se_PostCommentForPullRequestInput(input, context));
|
|
527
353
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
528
354
|
};
|
|
529
355
|
export const se_PostCommentReplyCommand = async (input, context) => {
|
|
530
|
-
const headers =
|
|
531
|
-
"content-type": "application/x-amz-json-1.1",
|
|
532
|
-
"x-amz-target": "CodeCommit_20150413.PostCommentReply",
|
|
533
|
-
};
|
|
356
|
+
const headers = sharedHeaders("PostCommentReply");
|
|
534
357
|
let body;
|
|
535
358
|
body = JSON.stringify(se_PostCommentReplyInput(input, context));
|
|
536
359
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
537
360
|
};
|
|
538
361
|
export const se_PutCommentReactionCommand = async (input, context) => {
|
|
539
|
-
const headers =
|
|
540
|
-
"content-type": "application/x-amz-json-1.1",
|
|
541
|
-
"x-amz-target": "CodeCommit_20150413.PutCommentReaction",
|
|
542
|
-
};
|
|
362
|
+
const headers = sharedHeaders("PutCommentReaction");
|
|
543
363
|
let body;
|
|
544
364
|
body = JSON.stringify(se_PutCommentReactionInput(input, context));
|
|
545
365
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
546
366
|
};
|
|
547
367
|
export const se_PutFileCommand = async (input, context) => {
|
|
548
|
-
const headers =
|
|
549
|
-
"content-type": "application/x-amz-json-1.1",
|
|
550
|
-
"x-amz-target": "CodeCommit_20150413.PutFile",
|
|
551
|
-
};
|
|
368
|
+
const headers = sharedHeaders("PutFile");
|
|
552
369
|
let body;
|
|
553
370
|
body = JSON.stringify(se_PutFileInput(input, context));
|
|
554
371
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
555
372
|
};
|
|
556
373
|
export const se_PutRepositoryTriggersCommand = async (input, context) => {
|
|
557
|
-
const headers =
|
|
558
|
-
"content-type": "application/x-amz-json-1.1",
|
|
559
|
-
"x-amz-target": "CodeCommit_20150413.PutRepositoryTriggers",
|
|
560
|
-
};
|
|
374
|
+
const headers = sharedHeaders("PutRepositoryTriggers");
|
|
561
375
|
let body;
|
|
562
376
|
body = JSON.stringify(se_PutRepositoryTriggersInput(input, context));
|
|
563
377
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
564
378
|
};
|
|
565
379
|
export const se_TagResourceCommand = async (input, context) => {
|
|
566
|
-
const headers =
|
|
567
|
-
"content-type": "application/x-amz-json-1.1",
|
|
568
|
-
"x-amz-target": "CodeCommit_20150413.TagResource",
|
|
569
|
-
};
|
|
380
|
+
const headers = sharedHeaders("TagResource");
|
|
570
381
|
let body;
|
|
571
382
|
body = JSON.stringify(se_TagResourceInput(input, context));
|
|
572
383
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
573
384
|
};
|
|
574
385
|
export const se_TestRepositoryTriggersCommand = async (input, context) => {
|
|
575
|
-
const headers =
|
|
576
|
-
"content-type": "application/x-amz-json-1.1",
|
|
577
|
-
"x-amz-target": "CodeCommit_20150413.TestRepositoryTriggers",
|
|
578
|
-
};
|
|
386
|
+
const headers = sharedHeaders("TestRepositoryTriggers");
|
|
579
387
|
let body;
|
|
580
388
|
body = JSON.stringify(se_TestRepositoryTriggersInput(input, context));
|
|
581
389
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
582
390
|
};
|
|
583
391
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
584
|
-
const headers =
|
|
585
|
-
"content-type": "application/x-amz-json-1.1",
|
|
586
|
-
"x-amz-target": "CodeCommit_20150413.UntagResource",
|
|
587
|
-
};
|
|
392
|
+
const headers = sharedHeaders("UntagResource");
|
|
588
393
|
let body;
|
|
589
394
|
body = JSON.stringify(se_UntagResourceInput(input, context));
|
|
590
395
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
591
396
|
};
|
|
592
397
|
export const se_UpdateApprovalRuleTemplateContentCommand = async (input, context) => {
|
|
593
|
-
const headers =
|
|
594
|
-
"content-type": "application/x-amz-json-1.1",
|
|
595
|
-
"x-amz-target": "CodeCommit_20150413.UpdateApprovalRuleTemplateContent",
|
|
596
|
-
};
|
|
398
|
+
const headers = sharedHeaders("UpdateApprovalRuleTemplateContent");
|
|
597
399
|
let body;
|
|
598
400
|
body = JSON.stringify(se_UpdateApprovalRuleTemplateContentInput(input, context));
|
|
599
401
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
600
402
|
};
|
|
601
403
|
export const se_UpdateApprovalRuleTemplateDescriptionCommand = async (input, context) => {
|
|
602
|
-
const headers =
|
|
603
|
-
"content-type": "application/x-amz-json-1.1",
|
|
604
|
-
"x-amz-target": "CodeCommit_20150413.UpdateApprovalRuleTemplateDescription",
|
|
605
|
-
};
|
|
404
|
+
const headers = sharedHeaders("UpdateApprovalRuleTemplateDescription");
|
|
606
405
|
let body;
|
|
607
406
|
body = JSON.stringify(se_UpdateApprovalRuleTemplateDescriptionInput(input, context));
|
|
608
407
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
609
408
|
};
|
|
610
409
|
export const se_UpdateApprovalRuleTemplateNameCommand = async (input, context) => {
|
|
611
|
-
const headers =
|
|
612
|
-
"content-type": "application/x-amz-json-1.1",
|
|
613
|
-
"x-amz-target": "CodeCommit_20150413.UpdateApprovalRuleTemplateName",
|
|
614
|
-
};
|
|
410
|
+
const headers = sharedHeaders("UpdateApprovalRuleTemplateName");
|
|
615
411
|
let body;
|
|
616
412
|
body = JSON.stringify(se_UpdateApprovalRuleTemplateNameInput(input, context));
|
|
617
413
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
618
414
|
};
|
|
619
415
|
export const se_UpdateCommentCommand = async (input, context) => {
|
|
620
|
-
const headers =
|
|
621
|
-
"content-type": "application/x-amz-json-1.1",
|
|
622
|
-
"x-amz-target": "CodeCommit_20150413.UpdateComment",
|
|
623
|
-
};
|
|
416
|
+
const headers = sharedHeaders("UpdateComment");
|
|
624
417
|
let body;
|
|
625
418
|
body = JSON.stringify(se_UpdateCommentInput(input, context));
|
|
626
419
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
627
420
|
};
|
|
628
421
|
export const se_UpdateDefaultBranchCommand = async (input, context) => {
|
|
629
|
-
const headers =
|
|
630
|
-
"content-type": "application/x-amz-json-1.1",
|
|
631
|
-
"x-amz-target": "CodeCommit_20150413.UpdateDefaultBranch",
|
|
632
|
-
};
|
|
422
|
+
const headers = sharedHeaders("UpdateDefaultBranch");
|
|
633
423
|
let body;
|
|
634
424
|
body = JSON.stringify(se_UpdateDefaultBranchInput(input, context));
|
|
635
425
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
636
426
|
};
|
|
637
427
|
export const se_UpdatePullRequestApprovalRuleContentCommand = async (input, context) => {
|
|
638
|
-
const headers =
|
|
639
|
-
"content-type": "application/x-amz-json-1.1",
|
|
640
|
-
"x-amz-target": "CodeCommit_20150413.UpdatePullRequestApprovalRuleContent",
|
|
641
|
-
};
|
|
428
|
+
const headers = sharedHeaders("UpdatePullRequestApprovalRuleContent");
|
|
642
429
|
let body;
|
|
643
430
|
body = JSON.stringify(se_UpdatePullRequestApprovalRuleContentInput(input, context));
|
|
644
431
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
645
432
|
};
|
|
646
433
|
export const se_UpdatePullRequestApprovalStateCommand = async (input, context) => {
|
|
647
|
-
const headers =
|
|
648
|
-
"content-type": "application/x-amz-json-1.1",
|
|
649
|
-
"x-amz-target": "CodeCommit_20150413.UpdatePullRequestApprovalState",
|
|
650
|
-
};
|
|
434
|
+
const headers = sharedHeaders("UpdatePullRequestApprovalState");
|
|
651
435
|
let body;
|
|
652
436
|
body = JSON.stringify(se_UpdatePullRequestApprovalStateInput(input, context));
|
|
653
437
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
654
438
|
};
|
|
655
439
|
export const se_UpdatePullRequestDescriptionCommand = async (input, context) => {
|
|
656
|
-
const headers =
|
|
657
|
-
"content-type": "application/x-amz-json-1.1",
|
|
658
|
-
"x-amz-target": "CodeCommit_20150413.UpdatePullRequestDescription",
|
|
659
|
-
};
|
|
440
|
+
const headers = sharedHeaders("UpdatePullRequestDescription");
|
|
660
441
|
let body;
|
|
661
442
|
body = JSON.stringify(se_UpdatePullRequestDescriptionInput(input, context));
|
|
662
443
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
663
444
|
};
|
|
664
445
|
export const se_UpdatePullRequestStatusCommand = async (input, context) => {
|
|
665
|
-
const headers =
|
|
666
|
-
"content-type": "application/x-amz-json-1.1",
|
|
667
|
-
"x-amz-target": "CodeCommit_20150413.UpdatePullRequestStatus",
|
|
668
|
-
};
|
|
446
|
+
const headers = sharedHeaders("UpdatePullRequestStatus");
|
|
669
447
|
let body;
|
|
670
448
|
body = JSON.stringify(se_UpdatePullRequestStatusInput(input, context));
|
|
671
449
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
672
450
|
};
|
|
673
451
|
export const se_UpdatePullRequestTitleCommand = async (input, context) => {
|
|
674
|
-
const headers =
|
|
675
|
-
"content-type": "application/x-amz-json-1.1",
|
|
676
|
-
"x-amz-target": "CodeCommit_20150413.UpdatePullRequestTitle",
|
|
677
|
-
};
|
|
452
|
+
const headers = sharedHeaders("UpdatePullRequestTitle");
|
|
678
453
|
let body;
|
|
679
454
|
body = JSON.stringify(se_UpdatePullRequestTitleInput(input, context));
|
|
680
455
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
681
456
|
};
|
|
682
457
|
export const se_UpdateRepositoryDescriptionCommand = async (input, context) => {
|
|
683
|
-
const headers =
|
|
684
|
-
"content-type": "application/x-amz-json-1.1",
|
|
685
|
-
"x-amz-target": "CodeCommit_20150413.UpdateRepositoryDescription",
|
|
686
|
-
};
|
|
458
|
+
const headers = sharedHeaders("UpdateRepositoryDescription");
|
|
687
459
|
let body;
|
|
688
460
|
body = JSON.stringify(se_UpdateRepositoryDescriptionInput(input, context));
|
|
689
461
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
690
462
|
};
|
|
691
463
|
export const se_UpdateRepositoryNameCommand = async (input, context) => {
|
|
692
|
-
const headers =
|
|
693
|
-
"content-type": "application/x-amz-json-1.1",
|
|
694
|
-
"x-amz-target": "CodeCommit_20150413.UpdateRepositoryName",
|
|
695
|
-
};
|
|
464
|
+
const headers = sharedHeaders("UpdateRepositoryName");
|
|
696
465
|
let body;
|
|
697
466
|
body = JSON.stringify(se_UpdateRepositoryNameInput(input, context));
|
|
698
467
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -10893,6 +10662,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
10893
10662
|
}
|
|
10894
10663
|
return new __HttpRequest(contents);
|
|
10895
10664
|
};
|
|
10665
|
+
function sharedHeaders(operation) {
|
|
10666
|
+
return {
|
|
10667
|
+
"content-type": "application/x-amz-json-1.1",
|
|
10668
|
+
"x-amz-target": `CodeCommit_20150413.${operation}`,
|
|
10669
|
+
};
|
|
10670
|
+
}
|
|
10896
10671
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
10897
10672
|
if (encoded.length) {
|
|
10898
10673
|
return JSON.parse(encoded);
|