@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
|
@@ -11,770 +11,539 @@ const CodeCommitServiceException_1 = require("../models/CodeCommitServiceExcepti
|
|
|
11
11
|
const models_0_1 = require("../models/models_0");
|
|
12
12
|
const models_1_1 = require("../models/models_1");
|
|
13
13
|
const se_AssociateApprovalRuleTemplateWithRepositoryCommand = async (input, context) => {
|
|
14
|
-
const headers =
|
|
15
|
-
"content-type": "application/x-amz-json-1.1",
|
|
16
|
-
"x-amz-target": "CodeCommit_20150413.AssociateApprovalRuleTemplateWithRepository",
|
|
17
|
-
};
|
|
14
|
+
const headers = sharedHeaders("AssociateApprovalRuleTemplateWithRepository");
|
|
18
15
|
let body;
|
|
19
16
|
body = JSON.stringify(se_AssociateApprovalRuleTemplateWithRepositoryInput(input, context));
|
|
20
17
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
18
|
};
|
|
22
19
|
exports.se_AssociateApprovalRuleTemplateWithRepositoryCommand = se_AssociateApprovalRuleTemplateWithRepositoryCommand;
|
|
23
20
|
const se_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "CodeCommit_20150413.BatchAssociateApprovalRuleTemplateWithRepositories",
|
|
27
|
-
};
|
|
21
|
+
const headers = sharedHeaders("BatchAssociateApprovalRuleTemplateWithRepositories");
|
|
28
22
|
let body;
|
|
29
23
|
body = JSON.stringify(se_BatchAssociateApprovalRuleTemplateWithRepositoriesInput(input, context));
|
|
30
24
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
25
|
};
|
|
32
26
|
exports.se_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand = se_BatchAssociateApprovalRuleTemplateWithRepositoriesCommand;
|
|
33
27
|
const se_BatchDescribeMergeConflictsCommand = async (input, context) => {
|
|
34
|
-
const headers =
|
|
35
|
-
"content-type": "application/x-amz-json-1.1",
|
|
36
|
-
"x-amz-target": "CodeCommit_20150413.BatchDescribeMergeConflicts",
|
|
37
|
-
};
|
|
28
|
+
const headers = sharedHeaders("BatchDescribeMergeConflicts");
|
|
38
29
|
let body;
|
|
39
30
|
body = JSON.stringify(se_BatchDescribeMergeConflictsInput(input, context));
|
|
40
31
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
32
|
};
|
|
42
33
|
exports.se_BatchDescribeMergeConflictsCommand = se_BatchDescribeMergeConflictsCommand;
|
|
43
34
|
const se_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = async (input, context) => {
|
|
44
|
-
const headers =
|
|
45
|
-
"content-type": "application/x-amz-json-1.1",
|
|
46
|
-
"x-amz-target": "CodeCommit_20150413.BatchDisassociateApprovalRuleTemplateFromRepositories",
|
|
47
|
-
};
|
|
35
|
+
const headers = sharedHeaders("BatchDisassociateApprovalRuleTemplateFromRepositories");
|
|
48
36
|
let body;
|
|
49
37
|
body = JSON.stringify(se_BatchDisassociateApprovalRuleTemplateFromRepositoriesInput(input, context));
|
|
50
38
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
39
|
};
|
|
52
40
|
exports.se_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand = se_BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand;
|
|
53
41
|
const se_BatchGetCommitsCommand = async (input, context) => {
|
|
54
|
-
const headers =
|
|
55
|
-
"content-type": "application/x-amz-json-1.1",
|
|
56
|
-
"x-amz-target": "CodeCommit_20150413.BatchGetCommits",
|
|
57
|
-
};
|
|
42
|
+
const headers = sharedHeaders("BatchGetCommits");
|
|
58
43
|
let body;
|
|
59
44
|
body = JSON.stringify(se_BatchGetCommitsInput(input, context));
|
|
60
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
61
46
|
};
|
|
62
47
|
exports.se_BatchGetCommitsCommand = se_BatchGetCommitsCommand;
|
|
63
48
|
const se_BatchGetRepositoriesCommand = async (input, context) => {
|
|
64
|
-
const headers =
|
|
65
|
-
"content-type": "application/x-amz-json-1.1",
|
|
66
|
-
"x-amz-target": "CodeCommit_20150413.BatchGetRepositories",
|
|
67
|
-
};
|
|
49
|
+
const headers = sharedHeaders("BatchGetRepositories");
|
|
68
50
|
let body;
|
|
69
51
|
body = JSON.stringify(se_BatchGetRepositoriesInput(input, context));
|
|
70
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
53
|
};
|
|
72
54
|
exports.se_BatchGetRepositoriesCommand = se_BatchGetRepositoriesCommand;
|
|
73
55
|
const se_CreateApprovalRuleTemplateCommand = async (input, context) => {
|
|
74
|
-
const headers =
|
|
75
|
-
"content-type": "application/x-amz-json-1.1",
|
|
76
|
-
"x-amz-target": "CodeCommit_20150413.CreateApprovalRuleTemplate",
|
|
77
|
-
};
|
|
56
|
+
const headers = sharedHeaders("CreateApprovalRuleTemplate");
|
|
78
57
|
let body;
|
|
79
58
|
body = JSON.stringify(se_CreateApprovalRuleTemplateInput(input, context));
|
|
80
59
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
81
60
|
};
|
|
82
61
|
exports.se_CreateApprovalRuleTemplateCommand = se_CreateApprovalRuleTemplateCommand;
|
|
83
62
|
const se_CreateBranchCommand = async (input, context) => {
|
|
84
|
-
const headers =
|
|
85
|
-
"content-type": "application/x-amz-json-1.1",
|
|
86
|
-
"x-amz-target": "CodeCommit_20150413.CreateBranch",
|
|
87
|
-
};
|
|
63
|
+
const headers = sharedHeaders("CreateBranch");
|
|
88
64
|
let body;
|
|
89
65
|
body = JSON.stringify(se_CreateBranchInput(input, context));
|
|
90
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
67
|
};
|
|
92
68
|
exports.se_CreateBranchCommand = se_CreateBranchCommand;
|
|
93
69
|
const se_CreateCommitCommand = async (input, context) => {
|
|
94
|
-
const headers =
|
|
95
|
-
"content-type": "application/x-amz-json-1.1",
|
|
96
|
-
"x-amz-target": "CodeCommit_20150413.CreateCommit",
|
|
97
|
-
};
|
|
70
|
+
const headers = sharedHeaders("CreateCommit");
|
|
98
71
|
let body;
|
|
99
72
|
body = JSON.stringify(se_CreateCommitInput(input, context));
|
|
100
73
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
74
|
};
|
|
102
75
|
exports.se_CreateCommitCommand = se_CreateCommitCommand;
|
|
103
76
|
const se_CreatePullRequestCommand = async (input, context) => {
|
|
104
|
-
const headers =
|
|
105
|
-
"content-type": "application/x-amz-json-1.1",
|
|
106
|
-
"x-amz-target": "CodeCommit_20150413.CreatePullRequest",
|
|
107
|
-
};
|
|
77
|
+
const headers = sharedHeaders("CreatePullRequest");
|
|
108
78
|
let body;
|
|
109
79
|
body = JSON.stringify(se_CreatePullRequestInput(input, context));
|
|
110
80
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
81
|
};
|
|
112
82
|
exports.se_CreatePullRequestCommand = se_CreatePullRequestCommand;
|
|
113
83
|
const se_CreatePullRequestApprovalRuleCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "CodeCommit_20150413.CreatePullRequestApprovalRule",
|
|
117
|
-
};
|
|
84
|
+
const headers = sharedHeaders("CreatePullRequestApprovalRule");
|
|
118
85
|
let body;
|
|
119
86
|
body = JSON.stringify(se_CreatePullRequestApprovalRuleInput(input, context));
|
|
120
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
88
|
};
|
|
122
89
|
exports.se_CreatePullRequestApprovalRuleCommand = se_CreatePullRequestApprovalRuleCommand;
|
|
123
90
|
const se_CreateRepositoryCommand = async (input, context) => {
|
|
124
|
-
const headers =
|
|
125
|
-
"content-type": "application/x-amz-json-1.1",
|
|
126
|
-
"x-amz-target": "CodeCommit_20150413.CreateRepository",
|
|
127
|
-
};
|
|
91
|
+
const headers = sharedHeaders("CreateRepository");
|
|
128
92
|
let body;
|
|
129
93
|
body = JSON.stringify(se_CreateRepositoryInput(input, context));
|
|
130
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
95
|
};
|
|
132
96
|
exports.se_CreateRepositoryCommand = se_CreateRepositoryCommand;
|
|
133
97
|
const se_CreateUnreferencedMergeCommitCommand = async (input, context) => {
|
|
134
|
-
const headers =
|
|
135
|
-
"content-type": "application/x-amz-json-1.1",
|
|
136
|
-
"x-amz-target": "CodeCommit_20150413.CreateUnreferencedMergeCommit",
|
|
137
|
-
};
|
|
98
|
+
const headers = sharedHeaders("CreateUnreferencedMergeCommit");
|
|
138
99
|
let body;
|
|
139
100
|
body = JSON.stringify(se_CreateUnreferencedMergeCommitInput(input, context));
|
|
140
101
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
102
|
};
|
|
142
103
|
exports.se_CreateUnreferencedMergeCommitCommand = se_CreateUnreferencedMergeCommitCommand;
|
|
143
104
|
const se_DeleteApprovalRuleTemplateCommand = async (input, context) => {
|
|
144
|
-
const headers =
|
|
145
|
-
"content-type": "application/x-amz-json-1.1",
|
|
146
|
-
"x-amz-target": "CodeCommit_20150413.DeleteApprovalRuleTemplate",
|
|
147
|
-
};
|
|
105
|
+
const headers = sharedHeaders("DeleteApprovalRuleTemplate");
|
|
148
106
|
let body;
|
|
149
107
|
body = JSON.stringify(se_DeleteApprovalRuleTemplateInput(input, context));
|
|
150
108
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
151
109
|
};
|
|
152
110
|
exports.se_DeleteApprovalRuleTemplateCommand = se_DeleteApprovalRuleTemplateCommand;
|
|
153
111
|
const se_DeleteBranchCommand = async (input, context) => {
|
|
154
|
-
const headers =
|
|
155
|
-
"content-type": "application/x-amz-json-1.1",
|
|
156
|
-
"x-amz-target": "CodeCommit_20150413.DeleteBranch",
|
|
157
|
-
};
|
|
112
|
+
const headers = sharedHeaders("DeleteBranch");
|
|
158
113
|
let body;
|
|
159
114
|
body = JSON.stringify(se_DeleteBranchInput(input, context));
|
|
160
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
116
|
};
|
|
162
117
|
exports.se_DeleteBranchCommand = se_DeleteBranchCommand;
|
|
163
118
|
const se_DeleteCommentContentCommand = async (input, context) => {
|
|
164
|
-
const headers =
|
|
165
|
-
"content-type": "application/x-amz-json-1.1",
|
|
166
|
-
"x-amz-target": "CodeCommit_20150413.DeleteCommentContent",
|
|
167
|
-
};
|
|
119
|
+
const headers = sharedHeaders("DeleteCommentContent");
|
|
168
120
|
let body;
|
|
169
121
|
body = JSON.stringify(se_DeleteCommentContentInput(input, context));
|
|
170
122
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
171
123
|
};
|
|
172
124
|
exports.se_DeleteCommentContentCommand = se_DeleteCommentContentCommand;
|
|
173
125
|
const se_DeleteFileCommand = async (input, context) => {
|
|
174
|
-
const headers =
|
|
175
|
-
"content-type": "application/x-amz-json-1.1",
|
|
176
|
-
"x-amz-target": "CodeCommit_20150413.DeleteFile",
|
|
177
|
-
};
|
|
126
|
+
const headers = sharedHeaders("DeleteFile");
|
|
178
127
|
let body;
|
|
179
128
|
body = JSON.stringify(se_DeleteFileInput(input, context));
|
|
180
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
181
130
|
};
|
|
182
131
|
exports.se_DeleteFileCommand = se_DeleteFileCommand;
|
|
183
132
|
const se_DeletePullRequestApprovalRuleCommand = async (input, context) => {
|
|
184
|
-
const headers =
|
|
185
|
-
"content-type": "application/x-amz-json-1.1",
|
|
186
|
-
"x-amz-target": "CodeCommit_20150413.DeletePullRequestApprovalRule",
|
|
187
|
-
};
|
|
133
|
+
const headers = sharedHeaders("DeletePullRequestApprovalRule");
|
|
188
134
|
let body;
|
|
189
135
|
body = JSON.stringify(se_DeletePullRequestApprovalRuleInput(input, context));
|
|
190
136
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
137
|
};
|
|
192
138
|
exports.se_DeletePullRequestApprovalRuleCommand = se_DeletePullRequestApprovalRuleCommand;
|
|
193
139
|
const se_DeleteRepositoryCommand = async (input, context) => {
|
|
194
|
-
const headers =
|
|
195
|
-
"content-type": "application/x-amz-json-1.1",
|
|
196
|
-
"x-amz-target": "CodeCommit_20150413.DeleteRepository",
|
|
197
|
-
};
|
|
140
|
+
const headers = sharedHeaders("DeleteRepository");
|
|
198
141
|
let body;
|
|
199
142
|
body = JSON.stringify(se_DeleteRepositoryInput(input, context));
|
|
200
143
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
201
144
|
};
|
|
202
145
|
exports.se_DeleteRepositoryCommand = se_DeleteRepositoryCommand;
|
|
203
146
|
const se_DescribeMergeConflictsCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "CodeCommit_20150413.DescribeMergeConflicts",
|
|
207
|
-
};
|
|
147
|
+
const headers = sharedHeaders("DescribeMergeConflicts");
|
|
208
148
|
let body;
|
|
209
149
|
body = JSON.stringify(se_DescribeMergeConflictsInput(input, context));
|
|
210
150
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
151
|
};
|
|
212
152
|
exports.se_DescribeMergeConflictsCommand = se_DescribeMergeConflictsCommand;
|
|
213
153
|
const se_DescribePullRequestEventsCommand = async (input, context) => {
|
|
214
|
-
const headers =
|
|
215
|
-
"content-type": "application/x-amz-json-1.1",
|
|
216
|
-
"x-amz-target": "CodeCommit_20150413.DescribePullRequestEvents",
|
|
217
|
-
};
|
|
154
|
+
const headers = sharedHeaders("DescribePullRequestEvents");
|
|
218
155
|
let body;
|
|
219
156
|
body = JSON.stringify(se_DescribePullRequestEventsInput(input, context));
|
|
220
157
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
158
|
};
|
|
222
159
|
exports.se_DescribePullRequestEventsCommand = se_DescribePullRequestEventsCommand;
|
|
223
160
|
const se_DisassociateApprovalRuleTemplateFromRepositoryCommand = async (input, context) => {
|
|
224
|
-
const headers =
|
|
225
|
-
"content-type": "application/x-amz-json-1.1",
|
|
226
|
-
"x-amz-target": "CodeCommit_20150413.DisassociateApprovalRuleTemplateFromRepository",
|
|
227
|
-
};
|
|
161
|
+
const headers = sharedHeaders("DisassociateApprovalRuleTemplateFromRepository");
|
|
228
162
|
let body;
|
|
229
163
|
body = JSON.stringify(se_DisassociateApprovalRuleTemplateFromRepositoryInput(input, context));
|
|
230
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
165
|
};
|
|
232
166
|
exports.se_DisassociateApprovalRuleTemplateFromRepositoryCommand = se_DisassociateApprovalRuleTemplateFromRepositoryCommand;
|
|
233
167
|
const se_EvaluatePullRequestApprovalRulesCommand = async (input, context) => {
|
|
234
|
-
const headers =
|
|
235
|
-
"content-type": "application/x-amz-json-1.1",
|
|
236
|
-
"x-amz-target": "CodeCommit_20150413.EvaluatePullRequestApprovalRules",
|
|
237
|
-
};
|
|
168
|
+
const headers = sharedHeaders("EvaluatePullRequestApprovalRules");
|
|
238
169
|
let body;
|
|
239
170
|
body = JSON.stringify(se_EvaluatePullRequestApprovalRulesInput(input, context));
|
|
240
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
241
172
|
};
|
|
242
173
|
exports.se_EvaluatePullRequestApprovalRulesCommand = se_EvaluatePullRequestApprovalRulesCommand;
|
|
243
174
|
const se_GetApprovalRuleTemplateCommand = async (input, context) => {
|
|
244
|
-
const headers =
|
|
245
|
-
"content-type": "application/x-amz-json-1.1",
|
|
246
|
-
"x-amz-target": "CodeCommit_20150413.GetApprovalRuleTemplate",
|
|
247
|
-
};
|
|
175
|
+
const headers = sharedHeaders("GetApprovalRuleTemplate");
|
|
248
176
|
let body;
|
|
249
177
|
body = JSON.stringify(se_GetApprovalRuleTemplateInput(input, context));
|
|
250
178
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
179
|
};
|
|
252
180
|
exports.se_GetApprovalRuleTemplateCommand = se_GetApprovalRuleTemplateCommand;
|
|
253
181
|
const se_GetBlobCommand = async (input, context) => {
|
|
254
|
-
const headers =
|
|
255
|
-
"content-type": "application/x-amz-json-1.1",
|
|
256
|
-
"x-amz-target": "CodeCommit_20150413.GetBlob",
|
|
257
|
-
};
|
|
182
|
+
const headers = sharedHeaders("GetBlob");
|
|
258
183
|
let body;
|
|
259
184
|
body = JSON.stringify(se_GetBlobInput(input, context));
|
|
260
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
186
|
};
|
|
262
187
|
exports.se_GetBlobCommand = se_GetBlobCommand;
|
|
263
188
|
const se_GetBranchCommand = async (input, context) => {
|
|
264
|
-
const headers =
|
|
265
|
-
"content-type": "application/x-amz-json-1.1",
|
|
266
|
-
"x-amz-target": "CodeCommit_20150413.GetBranch",
|
|
267
|
-
};
|
|
189
|
+
const headers = sharedHeaders("GetBranch");
|
|
268
190
|
let body;
|
|
269
191
|
body = JSON.stringify(se_GetBranchInput(input, context));
|
|
270
192
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
271
193
|
};
|
|
272
194
|
exports.se_GetBranchCommand = se_GetBranchCommand;
|
|
273
195
|
const se_GetCommentCommand = async (input, context) => {
|
|
274
|
-
const headers =
|
|
275
|
-
"content-type": "application/x-amz-json-1.1",
|
|
276
|
-
"x-amz-target": "CodeCommit_20150413.GetComment",
|
|
277
|
-
};
|
|
196
|
+
const headers = sharedHeaders("GetComment");
|
|
278
197
|
let body;
|
|
279
198
|
body = JSON.stringify(se_GetCommentInput(input, context));
|
|
280
199
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
200
|
};
|
|
282
201
|
exports.se_GetCommentCommand = se_GetCommentCommand;
|
|
283
202
|
const se_GetCommentReactionsCommand = async (input, context) => {
|
|
284
|
-
const headers =
|
|
285
|
-
"content-type": "application/x-amz-json-1.1",
|
|
286
|
-
"x-amz-target": "CodeCommit_20150413.GetCommentReactions",
|
|
287
|
-
};
|
|
203
|
+
const headers = sharedHeaders("GetCommentReactions");
|
|
288
204
|
let body;
|
|
289
205
|
body = JSON.stringify(se_GetCommentReactionsInput(input, context));
|
|
290
206
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
291
207
|
};
|
|
292
208
|
exports.se_GetCommentReactionsCommand = se_GetCommentReactionsCommand;
|
|
293
209
|
const se_GetCommentsForComparedCommitCommand = async (input, context) => {
|
|
294
|
-
const headers =
|
|
295
|
-
"content-type": "application/x-amz-json-1.1",
|
|
296
|
-
"x-amz-target": "CodeCommit_20150413.GetCommentsForComparedCommit",
|
|
297
|
-
};
|
|
210
|
+
const headers = sharedHeaders("GetCommentsForComparedCommit");
|
|
298
211
|
let body;
|
|
299
212
|
body = JSON.stringify(se_GetCommentsForComparedCommitInput(input, context));
|
|
300
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
214
|
};
|
|
302
215
|
exports.se_GetCommentsForComparedCommitCommand = se_GetCommentsForComparedCommitCommand;
|
|
303
216
|
const se_GetCommentsForPullRequestCommand = async (input, context) => {
|
|
304
|
-
const headers =
|
|
305
|
-
"content-type": "application/x-amz-json-1.1",
|
|
306
|
-
"x-amz-target": "CodeCommit_20150413.GetCommentsForPullRequest",
|
|
307
|
-
};
|
|
217
|
+
const headers = sharedHeaders("GetCommentsForPullRequest");
|
|
308
218
|
let body;
|
|
309
219
|
body = JSON.stringify(se_GetCommentsForPullRequestInput(input, context));
|
|
310
220
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
311
221
|
};
|
|
312
222
|
exports.se_GetCommentsForPullRequestCommand = se_GetCommentsForPullRequestCommand;
|
|
313
223
|
const se_GetCommitCommand = async (input, context) => {
|
|
314
|
-
const headers =
|
|
315
|
-
"content-type": "application/x-amz-json-1.1",
|
|
316
|
-
"x-amz-target": "CodeCommit_20150413.GetCommit",
|
|
317
|
-
};
|
|
224
|
+
const headers = sharedHeaders("GetCommit");
|
|
318
225
|
let body;
|
|
319
226
|
body = JSON.stringify(se_GetCommitInput(input, context));
|
|
320
227
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
321
228
|
};
|
|
322
229
|
exports.se_GetCommitCommand = se_GetCommitCommand;
|
|
323
230
|
const se_GetDifferencesCommand = async (input, context) => {
|
|
324
|
-
const headers =
|
|
325
|
-
"content-type": "application/x-amz-json-1.1",
|
|
326
|
-
"x-amz-target": "CodeCommit_20150413.GetDifferences",
|
|
327
|
-
};
|
|
231
|
+
const headers = sharedHeaders("GetDifferences");
|
|
328
232
|
let body;
|
|
329
233
|
body = JSON.stringify(se_GetDifferencesInput(input, context));
|
|
330
234
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
235
|
};
|
|
332
236
|
exports.se_GetDifferencesCommand = se_GetDifferencesCommand;
|
|
333
237
|
const se_GetFileCommand = async (input, context) => {
|
|
334
|
-
const headers =
|
|
335
|
-
"content-type": "application/x-amz-json-1.1",
|
|
336
|
-
"x-amz-target": "CodeCommit_20150413.GetFile",
|
|
337
|
-
};
|
|
238
|
+
const headers = sharedHeaders("GetFile");
|
|
338
239
|
let body;
|
|
339
240
|
body = JSON.stringify(se_GetFileInput(input, context));
|
|
340
241
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
242
|
};
|
|
342
243
|
exports.se_GetFileCommand = se_GetFileCommand;
|
|
343
244
|
const se_GetFolderCommand = async (input, context) => {
|
|
344
|
-
const headers =
|
|
345
|
-
"content-type": "application/x-amz-json-1.1",
|
|
346
|
-
"x-amz-target": "CodeCommit_20150413.GetFolder",
|
|
347
|
-
};
|
|
245
|
+
const headers = sharedHeaders("GetFolder");
|
|
348
246
|
let body;
|
|
349
247
|
body = JSON.stringify(se_GetFolderInput(input, context));
|
|
350
248
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
351
249
|
};
|
|
352
250
|
exports.se_GetFolderCommand = se_GetFolderCommand;
|
|
353
251
|
const se_GetMergeCommitCommand = async (input, context) => {
|
|
354
|
-
const headers =
|
|
355
|
-
"content-type": "application/x-amz-json-1.1",
|
|
356
|
-
"x-amz-target": "CodeCommit_20150413.GetMergeCommit",
|
|
357
|
-
};
|
|
252
|
+
const headers = sharedHeaders("GetMergeCommit");
|
|
358
253
|
let body;
|
|
359
254
|
body = JSON.stringify(se_GetMergeCommitInput(input, context));
|
|
360
255
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
361
256
|
};
|
|
362
257
|
exports.se_GetMergeCommitCommand = se_GetMergeCommitCommand;
|
|
363
258
|
const se_GetMergeConflictsCommand = async (input, context) => {
|
|
364
|
-
const headers =
|
|
365
|
-
"content-type": "application/x-amz-json-1.1",
|
|
366
|
-
"x-amz-target": "CodeCommit_20150413.GetMergeConflicts",
|
|
367
|
-
};
|
|
259
|
+
const headers = sharedHeaders("GetMergeConflicts");
|
|
368
260
|
let body;
|
|
369
261
|
body = JSON.stringify(se_GetMergeConflictsInput(input, context));
|
|
370
262
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
371
263
|
};
|
|
372
264
|
exports.se_GetMergeConflictsCommand = se_GetMergeConflictsCommand;
|
|
373
265
|
const se_GetMergeOptionsCommand = async (input, context) => {
|
|
374
|
-
const headers =
|
|
375
|
-
"content-type": "application/x-amz-json-1.1",
|
|
376
|
-
"x-amz-target": "CodeCommit_20150413.GetMergeOptions",
|
|
377
|
-
};
|
|
266
|
+
const headers = sharedHeaders("GetMergeOptions");
|
|
378
267
|
let body;
|
|
379
268
|
body = JSON.stringify(se_GetMergeOptionsInput(input, context));
|
|
380
269
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
381
270
|
};
|
|
382
271
|
exports.se_GetMergeOptionsCommand = se_GetMergeOptionsCommand;
|
|
383
272
|
const se_GetPullRequestCommand = async (input, context) => {
|
|
384
|
-
const headers =
|
|
385
|
-
"content-type": "application/x-amz-json-1.1",
|
|
386
|
-
"x-amz-target": "CodeCommit_20150413.GetPullRequest",
|
|
387
|
-
};
|
|
273
|
+
const headers = sharedHeaders("GetPullRequest");
|
|
388
274
|
let body;
|
|
389
275
|
body = JSON.stringify(se_GetPullRequestInput(input, context));
|
|
390
276
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
391
277
|
};
|
|
392
278
|
exports.se_GetPullRequestCommand = se_GetPullRequestCommand;
|
|
393
279
|
const se_GetPullRequestApprovalStatesCommand = async (input, context) => {
|
|
394
|
-
const headers =
|
|
395
|
-
"content-type": "application/x-amz-json-1.1",
|
|
396
|
-
"x-amz-target": "CodeCommit_20150413.GetPullRequestApprovalStates",
|
|
397
|
-
};
|
|
280
|
+
const headers = sharedHeaders("GetPullRequestApprovalStates");
|
|
398
281
|
let body;
|
|
399
282
|
body = JSON.stringify(se_GetPullRequestApprovalStatesInput(input, context));
|
|
400
283
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
284
|
};
|
|
402
285
|
exports.se_GetPullRequestApprovalStatesCommand = se_GetPullRequestApprovalStatesCommand;
|
|
403
286
|
const se_GetPullRequestOverrideStateCommand = async (input, context) => {
|
|
404
|
-
const headers =
|
|
405
|
-
"content-type": "application/x-amz-json-1.1",
|
|
406
|
-
"x-amz-target": "CodeCommit_20150413.GetPullRequestOverrideState",
|
|
407
|
-
};
|
|
287
|
+
const headers = sharedHeaders("GetPullRequestOverrideState");
|
|
408
288
|
let body;
|
|
409
289
|
body = JSON.stringify(se_GetPullRequestOverrideStateInput(input, context));
|
|
410
290
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
411
291
|
};
|
|
412
292
|
exports.se_GetPullRequestOverrideStateCommand = se_GetPullRequestOverrideStateCommand;
|
|
413
293
|
const se_GetRepositoryCommand = async (input, context) => {
|
|
414
|
-
const headers =
|
|
415
|
-
"content-type": "application/x-amz-json-1.1",
|
|
416
|
-
"x-amz-target": "CodeCommit_20150413.GetRepository",
|
|
417
|
-
};
|
|
294
|
+
const headers = sharedHeaders("GetRepository");
|
|
418
295
|
let body;
|
|
419
296
|
body = JSON.stringify(se_GetRepositoryInput(input, context));
|
|
420
297
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
421
298
|
};
|
|
422
299
|
exports.se_GetRepositoryCommand = se_GetRepositoryCommand;
|
|
423
300
|
const se_GetRepositoryTriggersCommand = async (input, context) => {
|
|
424
|
-
const headers =
|
|
425
|
-
"content-type": "application/x-amz-json-1.1",
|
|
426
|
-
"x-amz-target": "CodeCommit_20150413.GetRepositoryTriggers",
|
|
427
|
-
};
|
|
301
|
+
const headers = sharedHeaders("GetRepositoryTriggers");
|
|
428
302
|
let body;
|
|
429
303
|
body = JSON.stringify(se_GetRepositoryTriggersInput(input, context));
|
|
430
304
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
431
305
|
};
|
|
432
306
|
exports.se_GetRepositoryTriggersCommand = se_GetRepositoryTriggersCommand;
|
|
433
307
|
const se_ListApprovalRuleTemplatesCommand = async (input, context) => {
|
|
434
|
-
const headers =
|
|
435
|
-
"content-type": "application/x-amz-json-1.1",
|
|
436
|
-
"x-amz-target": "CodeCommit_20150413.ListApprovalRuleTemplates",
|
|
437
|
-
};
|
|
308
|
+
const headers = sharedHeaders("ListApprovalRuleTemplates");
|
|
438
309
|
let body;
|
|
439
310
|
body = JSON.stringify(se_ListApprovalRuleTemplatesInput(input, context));
|
|
440
311
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
441
312
|
};
|
|
442
313
|
exports.se_ListApprovalRuleTemplatesCommand = se_ListApprovalRuleTemplatesCommand;
|
|
443
314
|
const se_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = async (input, context) => {
|
|
444
|
-
const headers =
|
|
445
|
-
"content-type": "application/x-amz-json-1.1",
|
|
446
|
-
"x-amz-target": "CodeCommit_20150413.ListAssociatedApprovalRuleTemplatesForRepository",
|
|
447
|
-
};
|
|
315
|
+
const headers = sharedHeaders("ListAssociatedApprovalRuleTemplatesForRepository");
|
|
448
316
|
let body;
|
|
449
317
|
body = JSON.stringify(se_ListAssociatedApprovalRuleTemplatesForRepositoryInput(input, context));
|
|
450
318
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
451
319
|
};
|
|
452
320
|
exports.se_ListAssociatedApprovalRuleTemplatesForRepositoryCommand = se_ListAssociatedApprovalRuleTemplatesForRepositoryCommand;
|
|
453
321
|
const se_ListBranchesCommand = async (input, context) => {
|
|
454
|
-
const headers =
|
|
455
|
-
"content-type": "application/x-amz-json-1.1",
|
|
456
|
-
"x-amz-target": "CodeCommit_20150413.ListBranches",
|
|
457
|
-
};
|
|
322
|
+
const headers = sharedHeaders("ListBranches");
|
|
458
323
|
let body;
|
|
459
324
|
body = JSON.stringify(se_ListBranchesInput(input, context));
|
|
460
325
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
461
326
|
};
|
|
462
327
|
exports.se_ListBranchesCommand = se_ListBranchesCommand;
|
|
463
328
|
const se_ListPullRequestsCommand = async (input, context) => {
|
|
464
|
-
const headers =
|
|
465
|
-
"content-type": "application/x-amz-json-1.1",
|
|
466
|
-
"x-amz-target": "CodeCommit_20150413.ListPullRequests",
|
|
467
|
-
};
|
|
329
|
+
const headers = sharedHeaders("ListPullRequests");
|
|
468
330
|
let body;
|
|
469
331
|
body = JSON.stringify(se_ListPullRequestsInput(input, context));
|
|
470
332
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
471
333
|
};
|
|
472
334
|
exports.se_ListPullRequestsCommand = se_ListPullRequestsCommand;
|
|
473
335
|
const se_ListRepositoriesCommand = async (input, context) => {
|
|
474
|
-
const headers =
|
|
475
|
-
"content-type": "application/x-amz-json-1.1",
|
|
476
|
-
"x-amz-target": "CodeCommit_20150413.ListRepositories",
|
|
477
|
-
};
|
|
336
|
+
const headers = sharedHeaders("ListRepositories");
|
|
478
337
|
let body;
|
|
479
338
|
body = JSON.stringify(se_ListRepositoriesInput(input, context));
|
|
480
339
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
481
340
|
};
|
|
482
341
|
exports.se_ListRepositoriesCommand = se_ListRepositoriesCommand;
|
|
483
342
|
const se_ListRepositoriesForApprovalRuleTemplateCommand = async (input, context) => {
|
|
484
|
-
const headers =
|
|
485
|
-
"content-type": "application/x-amz-json-1.1",
|
|
486
|
-
"x-amz-target": "CodeCommit_20150413.ListRepositoriesForApprovalRuleTemplate",
|
|
487
|
-
};
|
|
343
|
+
const headers = sharedHeaders("ListRepositoriesForApprovalRuleTemplate");
|
|
488
344
|
let body;
|
|
489
345
|
body = JSON.stringify(se_ListRepositoriesForApprovalRuleTemplateInput(input, context));
|
|
490
346
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
491
347
|
};
|
|
492
348
|
exports.se_ListRepositoriesForApprovalRuleTemplateCommand = se_ListRepositoriesForApprovalRuleTemplateCommand;
|
|
493
349
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
494
|
-
const headers =
|
|
495
|
-
"content-type": "application/x-amz-json-1.1",
|
|
496
|
-
"x-amz-target": "CodeCommit_20150413.ListTagsForResource",
|
|
497
|
-
};
|
|
350
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
498
351
|
let body;
|
|
499
352
|
body = JSON.stringify(se_ListTagsForResourceInput(input, context));
|
|
500
353
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
501
354
|
};
|
|
502
355
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
503
356
|
const se_MergeBranchesByFastForwardCommand = async (input, context) => {
|
|
504
|
-
const headers =
|
|
505
|
-
"content-type": "application/x-amz-json-1.1",
|
|
506
|
-
"x-amz-target": "CodeCommit_20150413.MergeBranchesByFastForward",
|
|
507
|
-
};
|
|
357
|
+
const headers = sharedHeaders("MergeBranchesByFastForward");
|
|
508
358
|
let body;
|
|
509
359
|
body = JSON.stringify(se_MergeBranchesByFastForwardInput(input, context));
|
|
510
360
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
511
361
|
};
|
|
512
362
|
exports.se_MergeBranchesByFastForwardCommand = se_MergeBranchesByFastForwardCommand;
|
|
513
363
|
const se_MergeBranchesBySquashCommand = async (input, context) => {
|
|
514
|
-
const headers =
|
|
515
|
-
"content-type": "application/x-amz-json-1.1",
|
|
516
|
-
"x-amz-target": "CodeCommit_20150413.MergeBranchesBySquash",
|
|
517
|
-
};
|
|
364
|
+
const headers = sharedHeaders("MergeBranchesBySquash");
|
|
518
365
|
let body;
|
|
519
366
|
body = JSON.stringify(se_MergeBranchesBySquashInput(input, context));
|
|
520
367
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
521
368
|
};
|
|
522
369
|
exports.se_MergeBranchesBySquashCommand = se_MergeBranchesBySquashCommand;
|
|
523
370
|
const se_MergeBranchesByThreeWayCommand = async (input, context) => {
|
|
524
|
-
const headers =
|
|
525
|
-
"content-type": "application/x-amz-json-1.1",
|
|
526
|
-
"x-amz-target": "CodeCommit_20150413.MergeBranchesByThreeWay",
|
|
527
|
-
};
|
|
371
|
+
const headers = sharedHeaders("MergeBranchesByThreeWay");
|
|
528
372
|
let body;
|
|
529
373
|
body = JSON.stringify(se_MergeBranchesByThreeWayInput(input, context));
|
|
530
374
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
531
375
|
};
|
|
532
376
|
exports.se_MergeBranchesByThreeWayCommand = se_MergeBranchesByThreeWayCommand;
|
|
533
377
|
const se_MergePullRequestByFastForwardCommand = async (input, context) => {
|
|
534
|
-
const headers =
|
|
535
|
-
"content-type": "application/x-amz-json-1.1",
|
|
536
|
-
"x-amz-target": "CodeCommit_20150413.MergePullRequestByFastForward",
|
|
537
|
-
};
|
|
378
|
+
const headers = sharedHeaders("MergePullRequestByFastForward");
|
|
538
379
|
let body;
|
|
539
380
|
body = JSON.stringify(se_MergePullRequestByFastForwardInput(input, context));
|
|
540
381
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
541
382
|
};
|
|
542
383
|
exports.se_MergePullRequestByFastForwardCommand = se_MergePullRequestByFastForwardCommand;
|
|
543
384
|
const se_MergePullRequestBySquashCommand = async (input, context) => {
|
|
544
|
-
const headers =
|
|
545
|
-
"content-type": "application/x-amz-json-1.1",
|
|
546
|
-
"x-amz-target": "CodeCommit_20150413.MergePullRequestBySquash",
|
|
547
|
-
};
|
|
385
|
+
const headers = sharedHeaders("MergePullRequestBySquash");
|
|
548
386
|
let body;
|
|
549
387
|
body = JSON.stringify(se_MergePullRequestBySquashInput(input, context));
|
|
550
388
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
551
389
|
};
|
|
552
390
|
exports.se_MergePullRequestBySquashCommand = se_MergePullRequestBySquashCommand;
|
|
553
391
|
const se_MergePullRequestByThreeWayCommand = async (input, context) => {
|
|
554
|
-
const headers =
|
|
555
|
-
"content-type": "application/x-amz-json-1.1",
|
|
556
|
-
"x-amz-target": "CodeCommit_20150413.MergePullRequestByThreeWay",
|
|
557
|
-
};
|
|
392
|
+
const headers = sharedHeaders("MergePullRequestByThreeWay");
|
|
558
393
|
let body;
|
|
559
394
|
body = JSON.stringify(se_MergePullRequestByThreeWayInput(input, context));
|
|
560
395
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
561
396
|
};
|
|
562
397
|
exports.se_MergePullRequestByThreeWayCommand = se_MergePullRequestByThreeWayCommand;
|
|
563
398
|
const se_OverridePullRequestApprovalRulesCommand = async (input, context) => {
|
|
564
|
-
const headers =
|
|
565
|
-
"content-type": "application/x-amz-json-1.1",
|
|
566
|
-
"x-amz-target": "CodeCommit_20150413.OverridePullRequestApprovalRules",
|
|
567
|
-
};
|
|
399
|
+
const headers = sharedHeaders("OverridePullRequestApprovalRules");
|
|
568
400
|
let body;
|
|
569
401
|
body = JSON.stringify(se_OverridePullRequestApprovalRulesInput(input, context));
|
|
570
402
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
571
403
|
};
|
|
572
404
|
exports.se_OverridePullRequestApprovalRulesCommand = se_OverridePullRequestApprovalRulesCommand;
|
|
573
405
|
const se_PostCommentForComparedCommitCommand = async (input, context) => {
|
|
574
|
-
const headers =
|
|
575
|
-
"content-type": "application/x-amz-json-1.1",
|
|
576
|
-
"x-amz-target": "CodeCommit_20150413.PostCommentForComparedCommit",
|
|
577
|
-
};
|
|
406
|
+
const headers = sharedHeaders("PostCommentForComparedCommit");
|
|
578
407
|
let body;
|
|
579
408
|
body = JSON.stringify(se_PostCommentForComparedCommitInput(input, context));
|
|
580
409
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
581
410
|
};
|
|
582
411
|
exports.se_PostCommentForComparedCommitCommand = se_PostCommentForComparedCommitCommand;
|
|
583
412
|
const se_PostCommentForPullRequestCommand = async (input, context) => {
|
|
584
|
-
const headers =
|
|
585
|
-
"content-type": "application/x-amz-json-1.1",
|
|
586
|
-
"x-amz-target": "CodeCommit_20150413.PostCommentForPullRequest",
|
|
587
|
-
};
|
|
413
|
+
const headers = sharedHeaders("PostCommentForPullRequest");
|
|
588
414
|
let body;
|
|
589
415
|
body = JSON.stringify(se_PostCommentForPullRequestInput(input, context));
|
|
590
416
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
591
417
|
};
|
|
592
418
|
exports.se_PostCommentForPullRequestCommand = se_PostCommentForPullRequestCommand;
|
|
593
419
|
const se_PostCommentReplyCommand = async (input, context) => {
|
|
594
|
-
const headers =
|
|
595
|
-
"content-type": "application/x-amz-json-1.1",
|
|
596
|
-
"x-amz-target": "CodeCommit_20150413.PostCommentReply",
|
|
597
|
-
};
|
|
420
|
+
const headers = sharedHeaders("PostCommentReply");
|
|
598
421
|
let body;
|
|
599
422
|
body = JSON.stringify(se_PostCommentReplyInput(input, context));
|
|
600
423
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
601
424
|
};
|
|
602
425
|
exports.se_PostCommentReplyCommand = se_PostCommentReplyCommand;
|
|
603
426
|
const se_PutCommentReactionCommand = async (input, context) => {
|
|
604
|
-
const headers =
|
|
605
|
-
"content-type": "application/x-amz-json-1.1",
|
|
606
|
-
"x-amz-target": "CodeCommit_20150413.PutCommentReaction",
|
|
607
|
-
};
|
|
427
|
+
const headers = sharedHeaders("PutCommentReaction");
|
|
608
428
|
let body;
|
|
609
429
|
body = JSON.stringify(se_PutCommentReactionInput(input, context));
|
|
610
430
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
611
431
|
};
|
|
612
432
|
exports.se_PutCommentReactionCommand = se_PutCommentReactionCommand;
|
|
613
433
|
const se_PutFileCommand = async (input, context) => {
|
|
614
|
-
const headers =
|
|
615
|
-
"content-type": "application/x-amz-json-1.1",
|
|
616
|
-
"x-amz-target": "CodeCommit_20150413.PutFile",
|
|
617
|
-
};
|
|
434
|
+
const headers = sharedHeaders("PutFile");
|
|
618
435
|
let body;
|
|
619
436
|
body = JSON.stringify(se_PutFileInput(input, context));
|
|
620
437
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
621
438
|
};
|
|
622
439
|
exports.se_PutFileCommand = se_PutFileCommand;
|
|
623
440
|
const se_PutRepositoryTriggersCommand = async (input, context) => {
|
|
624
|
-
const headers =
|
|
625
|
-
"content-type": "application/x-amz-json-1.1",
|
|
626
|
-
"x-amz-target": "CodeCommit_20150413.PutRepositoryTriggers",
|
|
627
|
-
};
|
|
441
|
+
const headers = sharedHeaders("PutRepositoryTriggers");
|
|
628
442
|
let body;
|
|
629
443
|
body = JSON.stringify(se_PutRepositoryTriggersInput(input, context));
|
|
630
444
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
631
445
|
};
|
|
632
446
|
exports.se_PutRepositoryTriggersCommand = se_PutRepositoryTriggersCommand;
|
|
633
447
|
const se_TagResourceCommand = async (input, context) => {
|
|
634
|
-
const headers =
|
|
635
|
-
"content-type": "application/x-amz-json-1.1",
|
|
636
|
-
"x-amz-target": "CodeCommit_20150413.TagResource",
|
|
637
|
-
};
|
|
448
|
+
const headers = sharedHeaders("TagResource");
|
|
638
449
|
let body;
|
|
639
450
|
body = JSON.stringify(se_TagResourceInput(input, context));
|
|
640
451
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
641
452
|
};
|
|
642
453
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
643
454
|
const se_TestRepositoryTriggersCommand = async (input, context) => {
|
|
644
|
-
const headers =
|
|
645
|
-
"content-type": "application/x-amz-json-1.1",
|
|
646
|
-
"x-amz-target": "CodeCommit_20150413.TestRepositoryTriggers",
|
|
647
|
-
};
|
|
455
|
+
const headers = sharedHeaders("TestRepositoryTriggers");
|
|
648
456
|
let body;
|
|
649
457
|
body = JSON.stringify(se_TestRepositoryTriggersInput(input, context));
|
|
650
458
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
651
459
|
};
|
|
652
460
|
exports.se_TestRepositoryTriggersCommand = se_TestRepositoryTriggersCommand;
|
|
653
461
|
const se_UntagResourceCommand = async (input, context) => {
|
|
654
|
-
const headers =
|
|
655
|
-
"content-type": "application/x-amz-json-1.1",
|
|
656
|
-
"x-amz-target": "CodeCommit_20150413.UntagResource",
|
|
657
|
-
};
|
|
462
|
+
const headers = sharedHeaders("UntagResource");
|
|
658
463
|
let body;
|
|
659
464
|
body = JSON.stringify(se_UntagResourceInput(input, context));
|
|
660
465
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
661
466
|
};
|
|
662
467
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
663
468
|
const se_UpdateApprovalRuleTemplateContentCommand = async (input, context) => {
|
|
664
|
-
const headers =
|
|
665
|
-
"content-type": "application/x-amz-json-1.1",
|
|
666
|
-
"x-amz-target": "CodeCommit_20150413.UpdateApprovalRuleTemplateContent",
|
|
667
|
-
};
|
|
469
|
+
const headers = sharedHeaders("UpdateApprovalRuleTemplateContent");
|
|
668
470
|
let body;
|
|
669
471
|
body = JSON.stringify(se_UpdateApprovalRuleTemplateContentInput(input, context));
|
|
670
472
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
671
473
|
};
|
|
672
474
|
exports.se_UpdateApprovalRuleTemplateContentCommand = se_UpdateApprovalRuleTemplateContentCommand;
|
|
673
475
|
const se_UpdateApprovalRuleTemplateDescriptionCommand = async (input, context) => {
|
|
674
|
-
const headers =
|
|
675
|
-
"content-type": "application/x-amz-json-1.1",
|
|
676
|
-
"x-amz-target": "CodeCommit_20150413.UpdateApprovalRuleTemplateDescription",
|
|
677
|
-
};
|
|
476
|
+
const headers = sharedHeaders("UpdateApprovalRuleTemplateDescription");
|
|
678
477
|
let body;
|
|
679
478
|
body = JSON.stringify(se_UpdateApprovalRuleTemplateDescriptionInput(input, context));
|
|
680
479
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
681
480
|
};
|
|
682
481
|
exports.se_UpdateApprovalRuleTemplateDescriptionCommand = se_UpdateApprovalRuleTemplateDescriptionCommand;
|
|
683
482
|
const se_UpdateApprovalRuleTemplateNameCommand = async (input, context) => {
|
|
684
|
-
const headers =
|
|
685
|
-
"content-type": "application/x-amz-json-1.1",
|
|
686
|
-
"x-amz-target": "CodeCommit_20150413.UpdateApprovalRuleTemplateName",
|
|
687
|
-
};
|
|
483
|
+
const headers = sharedHeaders("UpdateApprovalRuleTemplateName");
|
|
688
484
|
let body;
|
|
689
485
|
body = JSON.stringify(se_UpdateApprovalRuleTemplateNameInput(input, context));
|
|
690
486
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
691
487
|
};
|
|
692
488
|
exports.se_UpdateApprovalRuleTemplateNameCommand = se_UpdateApprovalRuleTemplateNameCommand;
|
|
693
489
|
const se_UpdateCommentCommand = async (input, context) => {
|
|
694
|
-
const headers =
|
|
695
|
-
"content-type": "application/x-amz-json-1.1",
|
|
696
|
-
"x-amz-target": "CodeCommit_20150413.UpdateComment",
|
|
697
|
-
};
|
|
490
|
+
const headers = sharedHeaders("UpdateComment");
|
|
698
491
|
let body;
|
|
699
492
|
body = JSON.stringify(se_UpdateCommentInput(input, context));
|
|
700
493
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
701
494
|
};
|
|
702
495
|
exports.se_UpdateCommentCommand = se_UpdateCommentCommand;
|
|
703
496
|
const se_UpdateDefaultBranchCommand = async (input, context) => {
|
|
704
|
-
const headers =
|
|
705
|
-
"content-type": "application/x-amz-json-1.1",
|
|
706
|
-
"x-amz-target": "CodeCommit_20150413.UpdateDefaultBranch",
|
|
707
|
-
};
|
|
497
|
+
const headers = sharedHeaders("UpdateDefaultBranch");
|
|
708
498
|
let body;
|
|
709
499
|
body = JSON.stringify(se_UpdateDefaultBranchInput(input, context));
|
|
710
500
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
711
501
|
};
|
|
712
502
|
exports.se_UpdateDefaultBranchCommand = se_UpdateDefaultBranchCommand;
|
|
713
503
|
const se_UpdatePullRequestApprovalRuleContentCommand = async (input, context) => {
|
|
714
|
-
const headers =
|
|
715
|
-
"content-type": "application/x-amz-json-1.1",
|
|
716
|
-
"x-amz-target": "CodeCommit_20150413.UpdatePullRequestApprovalRuleContent",
|
|
717
|
-
};
|
|
504
|
+
const headers = sharedHeaders("UpdatePullRequestApprovalRuleContent");
|
|
718
505
|
let body;
|
|
719
506
|
body = JSON.stringify(se_UpdatePullRequestApprovalRuleContentInput(input, context));
|
|
720
507
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
721
508
|
};
|
|
722
509
|
exports.se_UpdatePullRequestApprovalRuleContentCommand = se_UpdatePullRequestApprovalRuleContentCommand;
|
|
723
510
|
const se_UpdatePullRequestApprovalStateCommand = async (input, context) => {
|
|
724
|
-
const headers =
|
|
725
|
-
"content-type": "application/x-amz-json-1.1",
|
|
726
|
-
"x-amz-target": "CodeCommit_20150413.UpdatePullRequestApprovalState",
|
|
727
|
-
};
|
|
511
|
+
const headers = sharedHeaders("UpdatePullRequestApprovalState");
|
|
728
512
|
let body;
|
|
729
513
|
body = JSON.stringify(se_UpdatePullRequestApprovalStateInput(input, context));
|
|
730
514
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
731
515
|
};
|
|
732
516
|
exports.se_UpdatePullRequestApprovalStateCommand = se_UpdatePullRequestApprovalStateCommand;
|
|
733
517
|
const se_UpdatePullRequestDescriptionCommand = async (input, context) => {
|
|
734
|
-
const headers =
|
|
735
|
-
"content-type": "application/x-amz-json-1.1",
|
|
736
|
-
"x-amz-target": "CodeCommit_20150413.UpdatePullRequestDescription",
|
|
737
|
-
};
|
|
518
|
+
const headers = sharedHeaders("UpdatePullRequestDescription");
|
|
738
519
|
let body;
|
|
739
520
|
body = JSON.stringify(se_UpdatePullRequestDescriptionInput(input, context));
|
|
740
521
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
741
522
|
};
|
|
742
523
|
exports.se_UpdatePullRequestDescriptionCommand = se_UpdatePullRequestDescriptionCommand;
|
|
743
524
|
const se_UpdatePullRequestStatusCommand = async (input, context) => {
|
|
744
|
-
const headers =
|
|
745
|
-
"content-type": "application/x-amz-json-1.1",
|
|
746
|
-
"x-amz-target": "CodeCommit_20150413.UpdatePullRequestStatus",
|
|
747
|
-
};
|
|
525
|
+
const headers = sharedHeaders("UpdatePullRequestStatus");
|
|
748
526
|
let body;
|
|
749
527
|
body = JSON.stringify(se_UpdatePullRequestStatusInput(input, context));
|
|
750
528
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
751
529
|
};
|
|
752
530
|
exports.se_UpdatePullRequestStatusCommand = se_UpdatePullRequestStatusCommand;
|
|
753
531
|
const se_UpdatePullRequestTitleCommand = async (input, context) => {
|
|
754
|
-
const headers =
|
|
755
|
-
"content-type": "application/x-amz-json-1.1",
|
|
756
|
-
"x-amz-target": "CodeCommit_20150413.UpdatePullRequestTitle",
|
|
757
|
-
};
|
|
532
|
+
const headers = sharedHeaders("UpdatePullRequestTitle");
|
|
758
533
|
let body;
|
|
759
534
|
body = JSON.stringify(se_UpdatePullRequestTitleInput(input, context));
|
|
760
535
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
761
536
|
};
|
|
762
537
|
exports.se_UpdatePullRequestTitleCommand = se_UpdatePullRequestTitleCommand;
|
|
763
538
|
const se_UpdateRepositoryDescriptionCommand = async (input, context) => {
|
|
764
|
-
const headers =
|
|
765
|
-
"content-type": "application/x-amz-json-1.1",
|
|
766
|
-
"x-amz-target": "CodeCommit_20150413.UpdateRepositoryDescription",
|
|
767
|
-
};
|
|
539
|
+
const headers = sharedHeaders("UpdateRepositoryDescription");
|
|
768
540
|
let body;
|
|
769
541
|
body = JSON.stringify(se_UpdateRepositoryDescriptionInput(input, context));
|
|
770
542
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
771
543
|
};
|
|
772
544
|
exports.se_UpdateRepositoryDescriptionCommand = se_UpdateRepositoryDescriptionCommand;
|
|
773
545
|
const se_UpdateRepositoryNameCommand = async (input, context) => {
|
|
774
|
-
const headers =
|
|
775
|
-
"content-type": "application/x-amz-json-1.1",
|
|
776
|
-
"x-amz-target": "CodeCommit_20150413.UpdateRepositoryName",
|
|
777
|
-
};
|
|
546
|
+
const headers = sharedHeaders("UpdateRepositoryName");
|
|
778
547
|
let body;
|
|
779
548
|
body = JSON.stringify(se_UpdateRepositoryNameInput(input, context));
|
|
780
549
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -11053,6 +10822,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
11053
10822
|
}
|
|
11054
10823
|
return new protocol_http_1.HttpRequest(contents);
|
|
11055
10824
|
};
|
|
10825
|
+
function sharedHeaders(operation) {
|
|
10826
|
+
return {
|
|
10827
|
+
"content-type": "application/x-amz-json-1.1",
|
|
10828
|
+
"x-amz-target": `CodeCommit_20150413.${operation}`,
|
|
10829
|
+
};
|
|
10830
|
+
}
|
|
11056
10831
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
11057
10832
|
if (encoded.length) {
|
|
11058
10833
|
return JSON.parse(encoded);
|