@aws-sdk/client-codecommit 3.315.0 → 3.319.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/CodeCommit.js +81 -1078
- package/dist-cjs/protocols/Aws_json1_1.js +4 -4
- package/dist-es/CodeCommit.js +81 -1078
- package/dist-es/protocols/Aws_json1_1.js +4 -4
- package/dist-types/CodeCommit.d.ts +480 -653
- package/dist-types/ts3.4/CodeCommit.d.ts +4 -1
- package/package.json +8 -8
package/dist-cjs/CodeCommit.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CodeCommit = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CodeCommitClient_1 = require("./CodeCommitClient");
|
|
5
6
|
const AssociateApprovalRuleTemplateWithRepositoryCommand_1 = require("./commands/AssociateApprovalRuleTemplateWithRepositoryCommand");
|
|
6
7
|
const BatchAssociateApprovalRuleTemplateWithRepositoriesCommand_1 = require("./commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand");
|
|
@@ -79,1084 +80,86 @@ const UpdatePullRequestStatusCommand_1 = require("./commands/UpdatePullRequestSt
|
|
|
79
80
|
const UpdatePullRequestTitleCommand_1 = require("./commands/UpdatePullRequestTitleCommand");
|
|
80
81
|
const UpdateRepositoryDescriptionCommand_1 = require("./commands/UpdateRepositoryDescriptionCommand");
|
|
81
82
|
const UpdateRepositoryNameCommand_1 = require("./commands/UpdateRepositoryNameCommand");
|
|
83
|
+
const commands = {
|
|
84
|
+
AssociateApprovalRuleTemplateWithRepositoryCommand: AssociateApprovalRuleTemplateWithRepositoryCommand_1.AssociateApprovalRuleTemplateWithRepositoryCommand,
|
|
85
|
+
BatchAssociateApprovalRuleTemplateWithRepositoriesCommand: BatchAssociateApprovalRuleTemplateWithRepositoriesCommand_1.BatchAssociateApprovalRuleTemplateWithRepositoriesCommand,
|
|
86
|
+
BatchDescribeMergeConflictsCommand: BatchDescribeMergeConflictsCommand_1.BatchDescribeMergeConflictsCommand,
|
|
87
|
+
BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand: BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand_1.BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand,
|
|
88
|
+
BatchGetCommitsCommand: BatchGetCommitsCommand_1.BatchGetCommitsCommand,
|
|
89
|
+
BatchGetRepositoriesCommand: BatchGetRepositoriesCommand_1.BatchGetRepositoriesCommand,
|
|
90
|
+
CreateApprovalRuleTemplateCommand: CreateApprovalRuleTemplateCommand_1.CreateApprovalRuleTemplateCommand,
|
|
91
|
+
CreateBranchCommand: CreateBranchCommand_1.CreateBranchCommand,
|
|
92
|
+
CreateCommitCommand: CreateCommitCommand_1.CreateCommitCommand,
|
|
93
|
+
CreatePullRequestCommand: CreatePullRequestCommand_1.CreatePullRequestCommand,
|
|
94
|
+
CreatePullRequestApprovalRuleCommand: CreatePullRequestApprovalRuleCommand_1.CreatePullRequestApprovalRuleCommand,
|
|
95
|
+
CreateRepositoryCommand: CreateRepositoryCommand_1.CreateRepositoryCommand,
|
|
96
|
+
CreateUnreferencedMergeCommitCommand: CreateUnreferencedMergeCommitCommand_1.CreateUnreferencedMergeCommitCommand,
|
|
97
|
+
DeleteApprovalRuleTemplateCommand: DeleteApprovalRuleTemplateCommand_1.DeleteApprovalRuleTemplateCommand,
|
|
98
|
+
DeleteBranchCommand: DeleteBranchCommand_1.DeleteBranchCommand,
|
|
99
|
+
DeleteCommentContentCommand: DeleteCommentContentCommand_1.DeleteCommentContentCommand,
|
|
100
|
+
DeleteFileCommand: DeleteFileCommand_1.DeleteFileCommand,
|
|
101
|
+
DeletePullRequestApprovalRuleCommand: DeletePullRequestApprovalRuleCommand_1.DeletePullRequestApprovalRuleCommand,
|
|
102
|
+
DeleteRepositoryCommand: DeleteRepositoryCommand_1.DeleteRepositoryCommand,
|
|
103
|
+
DescribeMergeConflictsCommand: DescribeMergeConflictsCommand_1.DescribeMergeConflictsCommand,
|
|
104
|
+
DescribePullRequestEventsCommand: DescribePullRequestEventsCommand_1.DescribePullRequestEventsCommand,
|
|
105
|
+
DisassociateApprovalRuleTemplateFromRepositoryCommand: DisassociateApprovalRuleTemplateFromRepositoryCommand_1.DisassociateApprovalRuleTemplateFromRepositoryCommand,
|
|
106
|
+
EvaluatePullRequestApprovalRulesCommand: EvaluatePullRequestApprovalRulesCommand_1.EvaluatePullRequestApprovalRulesCommand,
|
|
107
|
+
GetApprovalRuleTemplateCommand: GetApprovalRuleTemplateCommand_1.GetApprovalRuleTemplateCommand,
|
|
108
|
+
GetBlobCommand: GetBlobCommand_1.GetBlobCommand,
|
|
109
|
+
GetBranchCommand: GetBranchCommand_1.GetBranchCommand,
|
|
110
|
+
GetCommentCommand: GetCommentCommand_1.GetCommentCommand,
|
|
111
|
+
GetCommentReactionsCommand: GetCommentReactionsCommand_1.GetCommentReactionsCommand,
|
|
112
|
+
GetCommentsForComparedCommitCommand: GetCommentsForComparedCommitCommand_1.GetCommentsForComparedCommitCommand,
|
|
113
|
+
GetCommentsForPullRequestCommand: GetCommentsForPullRequestCommand_1.GetCommentsForPullRequestCommand,
|
|
114
|
+
GetCommitCommand: GetCommitCommand_1.GetCommitCommand,
|
|
115
|
+
GetDifferencesCommand: GetDifferencesCommand_1.GetDifferencesCommand,
|
|
116
|
+
GetFileCommand: GetFileCommand_1.GetFileCommand,
|
|
117
|
+
GetFolderCommand: GetFolderCommand_1.GetFolderCommand,
|
|
118
|
+
GetMergeCommitCommand: GetMergeCommitCommand_1.GetMergeCommitCommand,
|
|
119
|
+
GetMergeConflictsCommand: GetMergeConflictsCommand_1.GetMergeConflictsCommand,
|
|
120
|
+
GetMergeOptionsCommand: GetMergeOptionsCommand_1.GetMergeOptionsCommand,
|
|
121
|
+
GetPullRequestCommand: GetPullRequestCommand_1.GetPullRequestCommand,
|
|
122
|
+
GetPullRequestApprovalStatesCommand: GetPullRequestApprovalStatesCommand_1.GetPullRequestApprovalStatesCommand,
|
|
123
|
+
GetPullRequestOverrideStateCommand: GetPullRequestOverrideStateCommand_1.GetPullRequestOverrideStateCommand,
|
|
124
|
+
GetRepositoryCommand: GetRepositoryCommand_1.GetRepositoryCommand,
|
|
125
|
+
GetRepositoryTriggersCommand: GetRepositoryTriggersCommand_1.GetRepositoryTriggersCommand,
|
|
126
|
+
ListApprovalRuleTemplatesCommand: ListApprovalRuleTemplatesCommand_1.ListApprovalRuleTemplatesCommand,
|
|
127
|
+
ListAssociatedApprovalRuleTemplatesForRepositoryCommand: ListAssociatedApprovalRuleTemplatesForRepositoryCommand_1.ListAssociatedApprovalRuleTemplatesForRepositoryCommand,
|
|
128
|
+
ListBranchesCommand: ListBranchesCommand_1.ListBranchesCommand,
|
|
129
|
+
ListPullRequestsCommand: ListPullRequestsCommand_1.ListPullRequestsCommand,
|
|
130
|
+
ListRepositoriesCommand: ListRepositoriesCommand_1.ListRepositoriesCommand,
|
|
131
|
+
ListRepositoriesForApprovalRuleTemplateCommand: ListRepositoriesForApprovalRuleTemplateCommand_1.ListRepositoriesForApprovalRuleTemplateCommand,
|
|
132
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
133
|
+
MergeBranchesByFastForwardCommand: MergeBranchesByFastForwardCommand_1.MergeBranchesByFastForwardCommand,
|
|
134
|
+
MergeBranchesBySquashCommand: MergeBranchesBySquashCommand_1.MergeBranchesBySquashCommand,
|
|
135
|
+
MergeBranchesByThreeWayCommand: MergeBranchesByThreeWayCommand_1.MergeBranchesByThreeWayCommand,
|
|
136
|
+
MergePullRequestByFastForwardCommand: MergePullRequestByFastForwardCommand_1.MergePullRequestByFastForwardCommand,
|
|
137
|
+
MergePullRequestBySquashCommand: MergePullRequestBySquashCommand_1.MergePullRequestBySquashCommand,
|
|
138
|
+
MergePullRequestByThreeWayCommand: MergePullRequestByThreeWayCommand_1.MergePullRequestByThreeWayCommand,
|
|
139
|
+
OverridePullRequestApprovalRulesCommand: OverridePullRequestApprovalRulesCommand_1.OverridePullRequestApprovalRulesCommand,
|
|
140
|
+
PostCommentForComparedCommitCommand: PostCommentForComparedCommitCommand_1.PostCommentForComparedCommitCommand,
|
|
141
|
+
PostCommentForPullRequestCommand: PostCommentForPullRequestCommand_1.PostCommentForPullRequestCommand,
|
|
142
|
+
PostCommentReplyCommand: PostCommentReplyCommand_1.PostCommentReplyCommand,
|
|
143
|
+
PutCommentReactionCommand: PutCommentReactionCommand_1.PutCommentReactionCommand,
|
|
144
|
+
PutFileCommand: PutFileCommand_1.PutFileCommand,
|
|
145
|
+
PutRepositoryTriggersCommand: PutRepositoryTriggersCommand_1.PutRepositoryTriggersCommand,
|
|
146
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
147
|
+
TestRepositoryTriggersCommand: TestRepositoryTriggersCommand_1.TestRepositoryTriggersCommand,
|
|
148
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
149
|
+
UpdateApprovalRuleTemplateContentCommand: UpdateApprovalRuleTemplateContentCommand_1.UpdateApprovalRuleTemplateContentCommand,
|
|
150
|
+
UpdateApprovalRuleTemplateDescriptionCommand: UpdateApprovalRuleTemplateDescriptionCommand_1.UpdateApprovalRuleTemplateDescriptionCommand,
|
|
151
|
+
UpdateApprovalRuleTemplateNameCommand: UpdateApprovalRuleTemplateNameCommand_1.UpdateApprovalRuleTemplateNameCommand,
|
|
152
|
+
UpdateCommentCommand: UpdateCommentCommand_1.UpdateCommentCommand,
|
|
153
|
+
UpdateDefaultBranchCommand: UpdateDefaultBranchCommand_1.UpdateDefaultBranchCommand,
|
|
154
|
+
UpdatePullRequestApprovalRuleContentCommand: UpdatePullRequestApprovalRuleContentCommand_1.UpdatePullRequestApprovalRuleContentCommand,
|
|
155
|
+
UpdatePullRequestApprovalStateCommand: UpdatePullRequestApprovalStateCommand_1.UpdatePullRequestApprovalStateCommand,
|
|
156
|
+
UpdatePullRequestDescriptionCommand: UpdatePullRequestDescriptionCommand_1.UpdatePullRequestDescriptionCommand,
|
|
157
|
+
UpdatePullRequestStatusCommand: UpdatePullRequestStatusCommand_1.UpdatePullRequestStatusCommand,
|
|
158
|
+
UpdatePullRequestTitleCommand: UpdatePullRequestTitleCommand_1.UpdatePullRequestTitleCommand,
|
|
159
|
+
UpdateRepositoryDescriptionCommand: UpdateRepositoryDescriptionCommand_1.UpdateRepositoryDescriptionCommand,
|
|
160
|
+
UpdateRepositoryNameCommand: UpdateRepositoryNameCommand_1.UpdateRepositoryNameCommand,
|
|
161
|
+
};
|
|
82
162
|
class CodeCommit extends CodeCommitClient_1.CodeCommitClient {
|
|
83
|
-
associateApprovalRuleTemplateWithRepository(args, optionsOrCb, cb) {
|
|
84
|
-
const command = new AssociateApprovalRuleTemplateWithRepositoryCommand_1.AssociateApprovalRuleTemplateWithRepositoryCommand(args);
|
|
85
|
-
if (typeof optionsOrCb === "function") {
|
|
86
|
-
this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
else if (typeof cb === "function") {
|
|
89
|
-
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
91
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
batchAssociateApprovalRuleTemplateWithRepositories(args, optionsOrCb, cb) {
|
|
98
|
-
const command = new BatchAssociateApprovalRuleTemplateWithRepositoriesCommand_1.BatchAssociateApprovalRuleTemplateWithRepositoriesCommand(args);
|
|
99
|
-
if (typeof optionsOrCb === "function") {
|
|
100
|
-
this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
else if (typeof cb === "function") {
|
|
103
|
-
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
105
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
return this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
batchDescribeMergeConflicts(args, optionsOrCb, cb) {
|
|
112
|
-
const command = new BatchDescribeMergeConflictsCommand_1.BatchDescribeMergeConflictsCommand(args);
|
|
113
|
-
if (typeof optionsOrCb === "function") {
|
|
114
|
-
this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
else if (typeof cb === "function") {
|
|
117
|
-
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
119
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
return this.send(command, optionsOrCb);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
batchDisassociateApprovalRuleTemplateFromRepositories(args, optionsOrCb, cb) {
|
|
126
|
-
const command = new BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand_1.BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand(args);
|
|
127
|
-
if (typeof optionsOrCb === "function") {
|
|
128
|
-
this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
else if (typeof cb === "function") {
|
|
131
|
-
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
return this.send(command, optionsOrCb);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
batchGetCommits(args, optionsOrCb, cb) {
|
|
140
|
-
const command = new BatchGetCommitsCommand_1.BatchGetCommitsCommand(args);
|
|
141
|
-
if (typeof optionsOrCb === "function") {
|
|
142
|
-
this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
else if (typeof cb === "function") {
|
|
145
|
-
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
147
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
return this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
batchGetRepositories(args, optionsOrCb, cb) {
|
|
154
|
-
const command = new BatchGetRepositoriesCommand_1.BatchGetRepositoriesCommand(args);
|
|
155
|
-
if (typeof optionsOrCb === "function") {
|
|
156
|
-
this.send(command, optionsOrCb);
|
|
157
|
-
}
|
|
158
|
-
else if (typeof cb === "function") {
|
|
159
|
-
if (typeof optionsOrCb !== "object")
|
|
160
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
161
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
return this.send(command, optionsOrCb);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
createApprovalRuleTemplate(args, optionsOrCb, cb) {
|
|
168
|
-
const command = new CreateApprovalRuleTemplateCommand_1.CreateApprovalRuleTemplateCommand(args);
|
|
169
|
-
if (typeof optionsOrCb === "function") {
|
|
170
|
-
this.send(command, optionsOrCb);
|
|
171
|
-
}
|
|
172
|
-
else if (typeof cb === "function") {
|
|
173
|
-
if (typeof optionsOrCb !== "object")
|
|
174
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
175
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
return this.send(command, optionsOrCb);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
createBranch(args, optionsOrCb, cb) {
|
|
182
|
-
const command = new CreateBranchCommand_1.CreateBranchCommand(args);
|
|
183
|
-
if (typeof optionsOrCb === "function") {
|
|
184
|
-
this.send(command, optionsOrCb);
|
|
185
|
-
}
|
|
186
|
-
else if (typeof cb === "function") {
|
|
187
|
-
if (typeof optionsOrCb !== "object")
|
|
188
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
189
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
return this.send(command, optionsOrCb);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
createCommit(args, optionsOrCb, cb) {
|
|
196
|
-
const command = new CreateCommitCommand_1.CreateCommitCommand(args);
|
|
197
|
-
if (typeof optionsOrCb === "function") {
|
|
198
|
-
this.send(command, optionsOrCb);
|
|
199
|
-
}
|
|
200
|
-
else if (typeof cb === "function") {
|
|
201
|
-
if (typeof optionsOrCb !== "object")
|
|
202
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
203
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
return this.send(command, optionsOrCb);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
createPullRequest(args, optionsOrCb, cb) {
|
|
210
|
-
const command = new CreatePullRequestCommand_1.CreatePullRequestCommand(args);
|
|
211
|
-
if (typeof optionsOrCb === "function") {
|
|
212
|
-
this.send(command, optionsOrCb);
|
|
213
|
-
}
|
|
214
|
-
else if (typeof cb === "function") {
|
|
215
|
-
if (typeof optionsOrCb !== "object")
|
|
216
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
217
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
return this.send(command, optionsOrCb);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
createPullRequestApprovalRule(args, optionsOrCb, cb) {
|
|
224
|
-
const command = new CreatePullRequestApprovalRuleCommand_1.CreatePullRequestApprovalRuleCommand(args);
|
|
225
|
-
if (typeof optionsOrCb === "function") {
|
|
226
|
-
this.send(command, optionsOrCb);
|
|
227
|
-
}
|
|
228
|
-
else if (typeof cb === "function") {
|
|
229
|
-
if (typeof optionsOrCb !== "object")
|
|
230
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
231
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
return this.send(command, optionsOrCb);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
createRepository(args, optionsOrCb, cb) {
|
|
238
|
-
const command = new CreateRepositoryCommand_1.CreateRepositoryCommand(args);
|
|
239
|
-
if (typeof optionsOrCb === "function") {
|
|
240
|
-
this.send(command, optionsOrCb);
|
|
241
|
-
}
|
|
242
|
-
else if (typeof cb === "function") {
|
|
243
|
-
if (typeof optionsOrCb !== "object")
|
|
244
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
245
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
return this.send(command, optionsOrCb);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
createUnreferencedMergeCommit(args, optionsOrCb, cb) {
|
|
252
|
-
const command = new CreateUnreferencedMergeCommitCommand_1.CreateUnreferencedMergeCommitCommand(args);
|
|
253
|
-
if (typeof optionsOrCb === "function") {
|
|
254
|
-
this.send(command, optionsOrCb);
|
|
255
|
-
}
|
|
256
|
-
else if (typeof cb === "function") {
|
|
257
|
-
if (typeof optionsOrCb !== "object")
|
|
258
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
259
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
return this.send(command, optionsOrCb);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
deleteApprovalRuleTemplate(args, optionsOrCb, cb) {
|
|
266
|
-
const command = new DeleteApprovalRuleTemplateCommand_1.DeleteApprovalRuleTemplateCommand(args);
|
|
267
|
-
if (typeof optionsOrCb === "function") {
|
|
268
|
-
this.send(command, optionsOrCb);
|
|
269
|
-
}
|
|
270
|
-
else if (typeof cb === "function") {
|
|
271
|
-
if (typeof optionsOrCb !== "object")
|
|
272
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
273
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
return this.send(command, optionsOrCb);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
deleteBranch(args, optionsOrCb, cb) {
|
|
280
|
-
const command = new DeleteBranchCommand_1.DeleteBranchCommand(args);
|
|
281
|
-
if (typeof optionsOrCb === "function") {
|
|
282
|
-
this.send(command, optionsOrCb);
|
|
283
|
-
}
|
|
284
|
-
else if (typeof cb === "function") {
|
|
285
|
-
if (typeof optionsOrCb !== "object")
|
|
286
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
287
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
return this.send(command, optionsOrCb);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
deleteCommentContent(args, optionsOrCb, cb) {
|
|
294
|
-
const command = new DeleteCommentContentCommand_1.DeleteCommentContentCommand(args);
|
|
295
|
-
if (typeof optionsOrCb === "function") {
|
|
296
|
-
this.send(command, optionsOrCb);
|
|
297
|
-
}
|
|
298
|
-
else if (typeof cb === "function") {
|
|
299
|
-
if (typeof optionsOrCb !== "object")
|
|
300
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
301
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
return this.send(command, optionsOrCb);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
deleteFile(args, optionsOrCb, cb) {
|
|
308
|
-
const command = new DeleteFileCommand_1.DeleteFileCommand(args);
|
|
309
|
-
if (typeof optionsOrCb === "function") {
|
|
310
|
-
this.send(command, optionsOrCb);
|
|
311
|
-
}
|
|
312
|
-
else if (typeof cb === "function") {
|
|
313
|
-
if (typeof optionsOrCb !== "object")
|
|
314
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
315
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
318
|
-
return this.send(command, optionsOrCb);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
deletePullRequestApprovalRule(args, optionsOrCb, cb) {
|
|
322
|
-
const command = new DeletePullRequestApprovalRuleCommand_1.DeletePullRequestApprovalRuleCommand(args);
|
|
323
|
-
if (typeof optionsOrCb === "function") {
|
|
324
|
-
this.send(command, optionsOrCb);
|
|
325
|
-
}
|
|
326
|
-
else if (typeof cb === "function") {
|
|
327
|
-
if (typeof optionsOrCb !== "object")
|
|
328
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
329
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
return this.send(command, optionsOrCb);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
deleteRepository(args, optionsOrCb, cb) {
|
|
336
|
-
const command = new DeleteRepositoryCommand_1.DeleteRepositoryCommand(args);
|
|
337
|
-
if (typeof optionsOrCb === "function") {
|
|
338
|
-
this.send(command, optionsOrCb);
|
|
339
|
-
}
|
|
340
|
-
else if (typeof cb === "function") {
|
|
341
|
-
if (typeof optionsOrCb !== "object")
|
|
342
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
343
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
344
|
-
}
|
|
345
|
-
else {
|
|
346
|
-
return this.send(command, optionsOrCb);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
describeMergeConflicts(args, optionsOrCb, cb) {
|
|
350
|
-
const command = new DescribeMergeConflictsCommand_1.DescribeMergeConflictsCommand(args);
|
|
351
|
-
if (typeof optionsOrCb === "function") {
|
|
352
|
-
this.send(command, optionsOrCb);
|
|
353
|
-
}
|
|
354
|
-
else if (typeof cb === "function") {
|
|
355
|
-
if (typeof optionsOrCb !== "object")
|
|
356
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
357
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
return this.send(command, optionsOrCb);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
describePullRequestEvents(args, optionsOrCb, cb) {
|
|
364
|
-
const command = new DescribePullRequestEventsCommand_1.DescribePullRequestEventsCommand(args);
|
|
365
|
-
if (typeof optionsOrCb === "function") {
|
|
366
|
-
this.send(command, optionsOrCb);
|
|
367
|
-
}
|
|
368
|
-
else if (typeof cb === "function") {
|
|
369
|
-
if (typeof optionsOrCb !== "object")
|
|
370
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
371
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
372
|
-
}
|
|
373
|
-
else {
|
|
374
|
-
return this.send(command, optionsOrCb);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
disassociateApprovalRuleTemplateFromRepository(args, optionsOrCb, cb) {
|
|
378
|
-
const command = new DisassociateApprovalRuleTemplateFromRepositoryCommand_1.DisassociateApprovalRuleTemplateFromRepositoryCommand(args);
|
|
379
|
-
if (typeof optionsOrCb === "function") {
|
|
380
|
-
this.send(command, optionsOrCb);
|
|
381
|
-
}
|
|
382
|
-
else if (typeof cb === "function") {
|
|
383
|
-
if (typeof optionsOrCb !== "object")
|
|
384
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
385
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
386
|
-
}
|
|
387
|
-
else {
|
|
388
|
-
return this.send(command, optionsOrCb);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
evaluatePullRequestApprovalRules(args, optionsOrCb, cb) {
|
|
392
|
-
const command = new EvaluatePullRequestApprovalRulesCommand_1.EvaluatePullRequestApprovalRulesCommand(args);
|
|
393
|
-
if (typeof optionsOrCb === "function") {
|
|
394
|
-
this.send(command, optionsOrCb);
|
|
395
|
-
}
|
|
396
|
-
else if (typeof cb === "function") {
|
|
397
|
-
if (typeof optionsOrCb !== "object")
|
|
398
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
399
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
400
|
-
}
|
|
401
|
-
else {
|
|
402
|
-
return this.send(command, optionsOrCb);
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
getApprovalRuleTemplate(args, optionsOrCb, cb) {
|
|
406
|
-
const command = new GetApprovalRuleTemplateCommand_1.GetApprovalRuleTemplateCommand(args);
|
|
407
|
-
if (typeof optionsOrCb === "function") {
|
|
408
|
-
this.send(command, optionsOrCb);
|
|
409
|
-
}
|
|
410
|
-
else if (typeof cb === "function") {
|
|
411
|
-
if (typeof optionsOrCb !== "object")
|
|
412
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
413
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
414
|
-
}
|
|
415
|
-
else {
|
|
416
|
-
return this.send(command, optionsOrCb);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
getBlob(args, optionsOrCb, cb) {
|
|
420
|
-
const command = new GetBlobCommand_1.GetBlobCommand(args);
|
|
421
|
-
if (typeof optionsOrCb === "function") {
|
|
422
|
-
this.send(command, optionsOrCb);
|
|
423
|
-
}
|
|
424
|
-
else if (typeof cb === "function") {
|
|
425
|
-
if (typeof optionsOrCb !== "object")
|
|
426
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
427
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
430
|
-
return this.send(command, optionsOrCb);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
getBranch(args, optionsOrCb, cb) {
|
|
434
|
-
const command = new GetBranchCommand_1.GetBranchCommand(args);
|
|
435
|
-
if (typeof optionsOrCb === "function") {
|
|
436
|
-
this.send(command, optionsOrCb);
|
|
437
|
-
}
|
|
438
|
-
else if (typeof cb === "function") {
|
|
439
|
-
if (typeof optionsOrCb !== "object")
|
|
440
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
441
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
442
|
-
}
|
|
443
|
-
else {
|
|
444
|
-
return this.send(command, optionsOrCb);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
getComment(args, optionsOrCb, cb) {
|
|
448
|
-
const command = new GetCommentCommand_1.GetCommentCommand(args);
|
|
449
|
-
if (typeof optionsOrCb === "function") {
|
|
450
|
-
this.send(command, optionsOrCb);
|
|
451
|
-
}
|
|
452
|
-
else if (typeof cb === "function") {
|
|
453
|
-
if (typeof optionsOrCb !== "object")
|
|
454
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
455
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
456
|
-
}
|
|
457
|
-
else {
|
|
458
|
-
return this.send(command, optionsOrCb);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
getCommentReactions(args, optionsOrCb, cb) {
|
|
462
|
-
const command = new GetCommentReactionsCommand_1.GetCommentReactionsCommand(args);
|
|
463
|
-
if (typeof optionsOrCb === "function") {
|
|
464
|
-
this.send(command, optionsOrCb);
|
|
465
|
-
}
|
|
466
|
-
else if (typeof cb === "function") {
|
|
467
|
-
if (typeof optionsOrCb !== "object")
|
|
468
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
469
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
470
|
-
}
|
|
471
|
-
else {
|
|
472
|
-
return this.send(command, optionsOrCb);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
getCommentsForComparedCommit(args, optionsOrCb, cb) {
|
|
476
|
-
const command = new GetCommentsForComparedCommitCommand_1.GetCommentsForComparedCommitCommand(args);
|
|
477
|
-
if (typeof optionsOrCb === "function") {
|
|
478
|
-
this.send(command, optionsOrCb);
|
|
479
|
-
}
|
|
480
|
-
else if (typeof cb === "function") {
|
|
481
|
-
if (typeof optionsOrCb !== "object")
|
|
482
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
483
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
484
|
-
}
|
|
485
|
-
else {
|
|
486
|
-
return this.send(command, optionsOrCb);
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
getCommentsForPullRequest(args, optionsOrCb, cb) {
|
|
490
|
-
const command = new GetCommentsForPullRequestCommand_1.GetCommentsForPullRequestCommand(args);
|
|
491
|
-
if (typeof optionsOrCb === "function") {
|
|
492
|
-
this.send(command, optionsOrCb);
|
|
493
|
-
}
|
|
494
|
-
else if (typeof cb === "function") {
|
|
495
|
-
if (typeof optionsOrCb !== "object")
|
|
496
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
497
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
498
|
-
}
|
|
499
|
-
else {
|
|
500
|
-
return this.send(command, optionsOrCb);
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
getCommit(args, optionsOrCb, cb) {
|
|
504
|
-
const command = new GetCommitCommand_1.GetCommitCommand(args);
|
|
505
|
-
if (typeof optionsOrCb === "function") {
|
|
506
|
-
this.send(command, optionsOrCb);
|
|
507
|
-
}
|
|
508
|
-
else if (typeof cb === "function") {
|
|
509
|
-
if (typeof optionsOrCb !== "object")
|
|
510
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
511
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
512
|
-
}
|
|
513
|
-
else {
|
|
514
|
-
return this.send(command, optionsOrCb);
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
getDifferences(args, optionsOrCb, cb) {
|
|
518
|
-
const command = new GetDifferencesCommand_1.GetDifferencesCommand(args);
|
|
519
|
-
if (typeof optionsOrCb === "function") {
|
|
520
|
-
this.send(command, optionsOrCb);
|
|
521
|
-
}
|
|
522
|
-
else if (typeof cb === "function") {
|
|
523
|
-
if (typeof optionsOrCb !== "object")
|
|
524
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
525
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
526
|
-
}
|
|
527
|
-
else {
|
|
528
|
-
return this.send(command, optionsOrCb);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
getFile(args, optionsOrCb, cb) {
|
|
532
|
-
const command = new GetFileCommand_1.GetFileCommand(args);
|
|
533
|
-
if (typeof optionsOrCb === "function") {
|
|
534
|
-
this.send(command, optionsOrCb);
|
|
535
|
-
}
|
|
536
|
-
else if (typeof cb === "function") {
|
|
537
|
-
if (typeof optionsOrCb !== "object")
|
|
538
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
539
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
540
|
-
}
|
|
541
|
-
else {
|
|
542
|
-
return this.send(command, optionsOrCb);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
getFolder(args, optionsOrCb, cb) {
|
|
546
|
-
const command = new GetFolderCommand_1.GetFolderCommand(args);
|
|
547
|
-
if (typeof optionsOrCb === "function") {
|
|
548
|
-
this.send(command, optionsOrCb);
|
|
549
|
-
}
|
|
550
|
-
else if (typeof cb === "function") {
|
|
551
|
-
if (typeof optionsOrCb !== "object")
|
|
552
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
553
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
554
|
-
}
|
|
555
|
-
else {
|
|
556
|
-
return this.send(command, optionsOrCb);
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
getMergeCommit(args, optionsOrCb, cb) {
|
|
560
|
-
const command = new GetMergeCommitCommand_1.GetMergeCommitCommand(args);
|
|
561
|
-
if (typeof optionsOrCb === "function") {
|
|
562
|
-
this.send(command, optionsOrCb);
|
|
563
|
-
}
|
|
564
|
-
else if (typeof cb === "function") {
|
|
565
|
-
if (typeof optionsOrCb !== "object")
|
|
566
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
567
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
568
|
-
}
|
|
569
|
-
else {
|
|
570
|
-
return this.send(command, optionsOrCb);
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
getMergeConflicts(args, optionsOrCb, cb) {
|
|
574
|
-
const command = new GetMergeConflictsCommand_1.GetMergeConflictsCommand(args);
|
|
575
|
-
if (typeof optionsOrCb === "function") {
|
|
576
|
-
this.send(command, optionsOrCb);
|
|
577
|
-
}
|
|
578
|
-
else if (typeof cb === "function") {
|
|
579
|
-
if (typeof optionsOrCb !== "object")
|
|
580
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
581
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
582
|
-
}
|
|
583
|
-
else {
|
|
584
|
-
return this.send(command, optionsOrCb);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
getMergeOptions(args, optionsOrCb, cb) {
|
|
588
|
-
const command = new GetMergeOptionsCommand_1.GetMergeOptionsCommand(args);
|
|
589
|
-
if (typeof optionsOrCb === "function") {
|
|
590
|
-
this.send(command, optionsOrCb);
|
|
591
|
-
}
|
|
592
|
-
else if (typeof cb === "function") {
|
|
593
|
-
if (typeof optionsOrCb !== "object")
|
|
594
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
595
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
596
|
-
}
|
|
597
|
-
else {
|
|
598
|
-
return this.send(command, optionsOrCb);
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
getPullRequest(args, optionsOrCb, cb) {
|
|
602
|
-
const command = new GetPullRequestCommand_1.GetPullRequestCommand(args);
|
|
603
|
-
if (typeof optionsOrCb === "function") {
|
|
604
|
-
this.send(command, optionsOrCb);
|
|
605
|
-
}
|
|
606
|
-
else if (typeof cb === "function") {
|
|
607
|
-
if (typeof optionsOrCb !== "object")
|
|
608
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
609
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
610
|
-
}
|
|
611
|
-
else {
|
|
612
|
-
return this.send(command, optionsOrCb);
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
getPullRequestApprovalStates(args, optionsOrCb, cb) {
|
|
616
|
-
const command = new GetPullRequestApprovalStatesCommand_1.GetPullRequestApprovalStatesCommand(args);
|
|
617
|
-
if (typeof optionsOrCb === "function") {
|
|
618
|
-
this.send(command, optionsOrCb);
|
|
619
|
-
}
|
|
620
|
-
else if (typeof cb === "function") {
|
|
621
|
-
if (typeof optionsOrCb !== "object")
|
|
622
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
623
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
624
|
-
}
|
|
625
|
-
else {
|
|
626
|
-
return this.send(command, optionsOrCb);
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
getPullRequestOverrideState(args, optionsOrCb, cb) {
|
|
630
|
-
const command = new GetPullRequestOverrideStateCommand_1.GetPullRequestOverrideStateCommand(args);
|
|
631
|
-
if (typeof optionsOrCb === "function") {
|
|
632
|
-
this.send(command, optionsOrCb);
|
|
633
|
-
}
|
|
634
|
-
else if (typeof cb === "function") {
|
|
635
|
-
if (typeof optionsOrCb !== "object")
|
|
636
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
637
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
638
|
-
}
|
|
639
|
-
else {
|
|
640
|
-
return this.send(command, optionsOrCb);
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
getRepository(args, optionsOrCb, cb) {
|
|
644
|
-
const command = new GetRepositoryCommand_1.GetRepositoryCommand(args);
|
|
645
|
-
if (typeof optionsOrCb === "function") {
|
|
646
|
-
this.send(command, optionsOrCb);
|
|
647
|
-
}
|
|
648
|
-
else if (typeof cb === "function") {
|
|
649
|
-
if (typeof optionsOrCb !== "object")
|
|
650
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
651
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
652
|
-
}
|
|
653
|
-
else {
|
|
654
|
-
return this.send(command, optionsOrCb);
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
getRepositoryTriggers(args, optionsOrCb, cb) {
|
|
658
|
-
const command = new GetRepositoryTriggersCommand_1.GetRepositoryTriggersCommand(args);
|
|
659
|
-
if (typeof optionsOrCb === "function") {
|
|
660
|
-
this.send(command, optionsOrCb);
|
|
661
|
-
}
|
|
662
|
-
else if (typeof cb === "function") {
|
|
663
|
-
if (typeof optionsOrCb !== "object")
|
|
664
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
665
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
666
|
-
}
|
|
667
|
-
else {
|
|
668
|
-
return this.send(command, optionsOrCb);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
listApprovalRuleTemplates(args, optionsOrCb, cb) {
|
|
672
|
-
const command = new ListApprovalRuleTemplatesCommand_1.ListApprovalRuleTemplatesCommand(args);
|
|
673
|
-
if (typeof optionsOrCb === "function") {
|
|
674
|
-
this.send(command, optionsOrCb);
|
|
675
|
-
}
|
|
676
|
-
else if (typeof cb === "function") {
|
|
677
|
-
if (typeof optionsOrCb !== "object")
|
|
678
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
679
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
680
|
-
}
|
|
681
|
-
else {
|
|
682
|
-
return this.send(command, optionsOrCb);
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
listAssociatedApprovalRuleTemplatesForRepository(args, optionsOrCb, cb) {
|
|
686
|
-
const command = new ListAssociatedApprovalRuleTemplatesForRepositoryCommand_1.ListAssociatedApprovalRuleTemplatesForRepositoryCommand(args);
|
|
687
|
-
if (typeof optionsOrCb === "function") {
|
|
688
|
-
this.send(command, optionsOrCb);
|
|
689
|
-
}
|
|
690
|
-
else if (typeof cb === "function") {
|
|
691
|
-
if (typeof optionsOrCb !== "object")
|
|
692
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
693
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
694
|
-
}
|
|
695
|
-
else {
|
|
696
|
-
return this.send(command, optionsOrCb);
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
listBranches(args, optionsOrCb, cb) {
|
|
700
|
-
const command = new ListBranchesCommand_1.ListBranchesCommand(args);
|
|
701
|
-
if (typeof optionsOrCb === "function") {
|
|
702
|
-
this.send(command, optionsOrCb);
|
|
703
|
-
}
|
|
704
|
-
else if (typeof cb === "function") {
|
|
705
|
-
if (typeof optionsOrCb !== "object")
|
|
706
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
707
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
708
|
-
}
|
|
709
|
-
else {
|
|
710
|
-
return this.send(command, optionsOrCb);
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
listPullRequests(args, optionsOrCb, cb) {
|
|
714
|
-
const command = new ListPullRequestsCommand_1.ListPullRequestsCommand(args);
|
|
715
|
-
if (typeof optionsOrCb === "function") {
|
|
716
|
-
this.send(command, optionsOrCb);
|
|
717
|
-
}
|
|
718
|
-
else if (typeof cb === "function") {
|
|
719
|
-
if (typeof optionsOrCb !== "object")
|
|
720
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
721
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
722
|
-
}
|
|
723
|
-
else {
|
|
724
|
-
return this.send(command, optionsOrCb);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
listRepositories(args, optionsOrCb, cb) {
|
|
728
|
-
const command = new ListRepositoriesCommand_1.ListRepositoriesCommand(args);
|
|
729
|
-
if (typeof optionsOrCb === "function") {
|
|
730
|
-
this.send(command, optionsOrCb);
|
|
731
|
-
}
|
|
732
|
-
else if (typeof cb === "function") {
|
|
733
|
-
if (typeof optionsOrCb !== "object")
|
|
734
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
735
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
736
|
-
}
|
|
737
|
-
else {
|
|
738
|
-
return this.send(command, optionsOrCb);
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
listRepositoriesForApprovalRuleTemplate(args, optionsOrCb, cb) {
|
|
742
|
-
const command = new ListRepositoriesForApprovalRuleTemplateCommand_1.ListRepositoriesForApprovalRuleTemplateCommand(args);
|
|
743
|
-
if (typeof optionsOrCb === "function") {
|
|
744
|
-
this.send(command, optionsOrCb);
|
|
745
|
-
}
|
|
746
|
-
else if (typeof cb === "function") {
|
|
747
|
-
if (typeof optionsOrCb !== "object")
|
|
748
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
749
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
750
|
-
}
|
|
751
|
-
else {
|
|
752
|
-
return this.send(command, optionsOrCb);
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
756
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
757
|
-
if (typeof optionsOrCb === "function") {
|
|
758
|
-
this.send(command, optionsOrCb);
|
|
759
|
-
}
|
|
760
|
-
else if (typeof cb === "function") {
|
|
761
|
-
if (typeof optionsOrCb !== "object")
|
|
762
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
763
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
764
|
-
}
|
|
765
|
-
else {
|
|
766
|
-
return this.send(command, optionsOrCb);
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
mergeBranchesByFastForward(args, optionsOrCb, cb) {
|
|
770
|
-
const command = new MergeBranchesByFastForwardCommand_1.MergeBranchesByFastForwardCommand(args);
|
|
771
|
-
if (typeof optionsOrCb === "function") {
|
|
772
|
-
this.send(command, optionsOrCb);
|
|
773
|
-
}
|
|
774
|
-
else if (typeof cb === "function") {
|
|
775
|
-
if (typeof optionsOrCb !== "object")
|
|
776
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
777
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
778
|
-
}
|
|
779
|
-
else {
|
|
780
|
-
return this.send(command, optionsOrCb);
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
mergeBranchesBySquash(args, optionsOrCb, cb) {
|
|
784
|
-
const command = new MergeBranchesBySquashCommand_1.MergeBranchesBySquashCommand(args);
|
|
785
|
-
if (typeof optionsOrCb === "function") {
|
|
786
|
-
this.send(command, optionsOrCb);
|
|
787
|
-
}
|
|
788
|
-
else if (typeof cb === "function") {
|
|
789
|
-
if (typeof optionsOrCb !== "object")
|
|
790
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
791
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
792
|
-
}
|
|
793
|
-
else {
|
|
794
|
-
return this.send(command, optionsOrCb);
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
mergeBranchesByThreeWay(args, optionsOrCb, cb) {
|
|
798
|
-
const command = new MergeBranchesByThreeWayCommand_1.MergeBranchesByThreeWayCommand(args);
|
|
799
|
-
if (typeof optionsOrCb === "function") {
|
|
800
|
-
this.send(command, optionsOrCb);
|
|
801
|
-
}
|
|
802
|
-
else if (typeof cb === "function") {
|
|
803
|
-
if (typeof optionsOrCb !== "object")
|
|
804
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
805
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
806
|
-
}
|
|
807
|
-
else {
|
|
808
|
-
return this.send(command, optionsOrCb);
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
mergePullRequestByFastForward(args, optionsOrCb, cb) {
|
|
812
|
-
const command = new MergePullRequestByFastForwardCommand_1.MergePullRequestByFastForwardCommand(args);
|
|
813
|
-
if (typeof optionsOrCb === "function") {
|
|
814
|
-
this.send(command, optionsOrCb);
|
|
815
|
-
}
|
|
816
|
-
else if (typeof cb === "function") {
|
|
817
|
-
if (typeof optionsOrCb !== "object")
|
|
818
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
819
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
820
|
-
}
|
|
821
|
-
else {
|
|
822
|
-
return this.send(command, optionsOrCb);
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
mergePullRequestBySquash(args, optionsOrCb, cb) {
|
|
826
|
-
const command = new MergePullRequestBySquashCommand_1.MergePullRequestBySquashCommand(args);
|
|
827
|
-
if (typeof optionsOrCb === "function") {
|
|
828
|
-
this.send(command, optionsOrCb);
|
|
829
|
-
}
|
|
830
|
-
else if (typeof cb === "function") {
|
|
831
|
-
if (typeof optionsOrCb !== "object")
|
|
832
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
833
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
834
|
-
}
|
|
835
|
-
else {
|
|
836
|
-
return this.send(command, optionsOrCb);
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
mergePullRequestByThreeWay(args, optionsOrCb, cb) {
|
|
840
|
-
const command = new MergePullRequestByThreeWayCommand_1.MergePullRequestByThreeWayCommand(args);
|
|
841
|
-
if (typeof optionsOrCb === "function") {
|
|
842
|
-
this.send(command, optionsOrCb);
|
|
843
|
-
}
|
|
844
|
-
else if (typeof cb === "function") {
|
|
845
|
-
if (typeof optionsOrCb !== "object")
|
|
846
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
847
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
848
|
-
}
|
|
849
|
-
else {
|
|
850
|
-
return this.send(command, optionsOrCb);
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
overridePullRequestApprovalRules(args, optionsOrCb, cb) {
|
|
854
|
-
const command = new OverridePullRequestApprovalRulesCommand_1.OverridePullRequestApprovalRulesCommand(args);
|
|
855
|
-
if (typeof optionsOrCb === "function") {
|
|
856
|
-
this.send(command, optionsOrCb);
|
|
857
|
-
}
|
|
858
|
-
else if (typeof cb === "function") {
|
|
859
|
-
if (typeof optionsOrCb !== "object")
|
|
860
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
861
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
862
|
-
}
|
|
863
|
-
else {
|
|
864
|
-
return this.send(command, optionsOrCb);
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
postCommentForComparedCommit(args, optionsOrCb, cb) {
|
|
868
|
-
const command = new PostCommentForComparedCommitCommand_1.PostCommentForComparedCommitCommand(args);
|
|
869
|
-
if (typeof optionsOrCb === "function") {
|
|
870
|
-
this.send(command, optionsOrCb);
|
|
871
|
-
}
|
|
872
|
-
else if (typeof cb === "function") {
|
|
873
|
-
if (typeof optionsOrCb !== "object")
|
|
874
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
875
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
876
|
-
}
|
|
877
|
-
else {
|
|
878
|
-
return this.send(command, optionsOrCb);
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
postCommentForPullRequest(args, optionsOrCb, cb) {
|
|
882
|
-
const command = new PostCommentForPullRequestCommand_1.PostCommentForPullRequestCommand(args);
|
|
883
|
-
if (typeof optionsOrCb === "function") {
|
|
884
|
-
this.send(command, optionsOrCb);
|
|
885
|
-
}
|
|
886
|
-
else if (typeof cb === "function") {
|
|
887
|
-
if (typeof optionsOrCb !== "object")
|
|
888
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
889
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
890
|
-
}
|
|
891
|
-
else {
|
|
892
|
-
return this.send(command, optionsOrCb);
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
postCommentReply(args, optionsOrCb, cb) {
|
|
896
|
-
const command = new PostCommentReplyCommand_1.PostCommentReplyCommand(args);
|
|
897
|
-
if (typeof optionsOrCb === "function") {
|
|
898
|
-
this.send(command, optionsOrCb);
|
|
899
|
-
}
|
|
900
|
-
else if (typeof cb === "function") {
|
|
901
|
-
if (typeof optionsOrCb !== "object")
|
|
902
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
903
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
904
|
-
}
|
|
905
|
-
else {
|
|
906
|
-
return this.send(command, optionsOrCb);
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
putCommentReaction(args, optionsOrCb, cb) {
|
|
910
|
-
const command = new PutCommentReactionCommand_1.PutCommentReactionCommand(args);
|
|
911
|
-
if (typeof optionsOrCb === "function") {
|
|
912
|
-
this.send(command, optionsOrCb);
|
|
913
|
-
}
|
|
914
|
-
else if (typeof cb === "function") {
|
|
915
|
-
if (typeof optionsOrCb !== "object")
|
|
916
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
917
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
918
|
-
}
|
|
919
|
-
else {
|
|
920
|
-
return this.send(command, optionsOrCb);
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
putFile(args, optionsOrCb, cb) {
|
|
924
|
-
const command = new PutFileCommand_1.PutFileCommand(args);
|
|
925
|
-
if (typeof optionsOrCb === "function") {
|
|
926
|
-
this.send(command, optionsOrCb);
|
|
927
|
-
}
|
|
928
|
-
else if (typeof cb === "function") {
|
|
929
|
-
if (typeof optionsOrCb !== "object")
|
|
930
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
931
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
932
|
-
}
|
|
933
|
-
else {
|
|
934
|
-
return this.send(command, optionsOrCb);
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
putRepositoryTriggers(args, optionsOrCb, cb) {
|
|
938
|
-
const command = new PutRepositoryTriggersCommand_1.PutRepositoryTriggersCommand(args);
|
|
939
|
-
if (typeof optionsOrCb === "function") {
|
|
940
|
-
this.send(command, optionsOrCb);
|
|
941
|
-
}
|
|
942
|
-
else if (typeof cb === "function") {
|
|
943
|
-
if (typeof optionsOrCb !== "object")
|
|
944
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
945
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
946
|
-
}
|
|
947
|
-
else {
|
|
948
|
-
return this.send(command, optionsOrCb);
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
tagResource(args, optionsOrCb, cb) {
|
|
952
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
953
|
-
if (typeof optionsOrCb === "function") {
|
|
954
|
-
this.send(command, optionsOrCb);
|
|
955
|
-
}
|
|
956
|
-
else if (typeof cb === "function") {
|
|
957
|
-
if (typeof optionsOrCb !== "object")
|
|
958
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
959
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
960
|
-
}
|
|
961
|
-
else {
|
|
962
|
-
return this.send(command, optionsOrCb);
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
testRepositoryTriggers(args, optionsOrCb, cb) {
|
|
966
|
-
const command = new TestRepositoryTriggersCommand_1.TestRepositoryTriggersCommand(args);
|
|
967
|
-
if (typeof optionsOrCb === "function") {
|
|
968
|
-
this.send(command, optionsOrCb);
|
|
969
|
-
}
|
|
970
|
-
else if (typeof cb === "function") {
|
|
971
|
-
if (typeof optionsOrCb !== "object")
|
|
972
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
973
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
974
|
-
}
|
|
975
|
-
else {
|
|
976
|
-
return this.send(command, optionsOrCb);
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
untagResource(args, optionsOrCb, cb) {
|
|
980
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
981
|
-
if (typeof optionsOrCb === "function") {
|
|
982
|
-
this.send(command, optionsOrCb);
|
|
983
|
-
}
|
|
984
|
-
else if (typeof cb === "function") {
|
|
985
|
-
if (typeof optionsOrCb !== "object")
|
|
986
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
987
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
988
|
-
}
|
|
989
|
-
else {
|
|
990
|
-
return this.send(command, optionsOrCb);
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
updateApprovalRuleTemplateContent(args, optionsOrCb, cb) {
|
|
994
|
-
const command = new UpdateApprovalRuleTemplateContentCommand_1.UpdateApprovalRuleTemplateContentCommand(args);
|
|
995
|
-
if (typeof optionsOrCb === "function") {
|
|
996
|
-
this.send(command, optionsOrCb);
|
|
997
|
-
}
|
|
998
|
-
else if (typeof cb === "function") {
|
|
999
|
-
if (typeof optionsOrCb !== "object")
|
|
1000
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1001
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1002
|
-
}
|
|
1003
|
-
else {
|
|
1004
|
-
return this.send(command, optionsOrCb);
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
updateApprovalRuleTemplateDescription(args, optionsOrCb, cb) {
|
|
1008
|
-
const command = new UpdateApprovalRuleTemplateDescriptionCommand_1.UpdateApprovalRuleTemplateDescriptionCommand(args);
|
|
1009
|
-
if (typeof optionsOrCb === "function") {
|
|
1010
|
-
this.send(command, optionsOrCb);
|
|
1011
|
-
}
|
|
1012
|
-
else if (typeof cb === "function") {
|
|
1013
|
-
if (typeof optionsOrCb !== "object")
|
|
1014
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1015
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1016
|
-
}
|
|
1017
|
-
else {
|
|
1018
|
-
return this.send(command, optionsOrCb);
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
updateApprovalRuleTemplateName(args, optionsOrCb, cb) {
|
|
1022
|
-
const command = new UpdateApprovalRuleTemplateNameCommand_1.UpdateApprovalRuleTemplateNameCommand(args);
|
|
1023
|
-
if (typeof optionsOrCb === "function") {
|
|
1024
|
-
this.send(command, optionsOrCb);
|
|
1025
|
-
}
|
|
1026
|
-
else if (typeof cb === "function") {
|
|
1027
|
-
if (typeof optionsOrCb !== "object")
|
|
1028
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1029
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1030
|
-
}
|
|
1031
|
-
else {
|
|
1032
|
-
return this.send(command, optionsOrCb);
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
updateComment(args, optionsOrCb, cb) {
|
|
1036
|
-
const command = new UpdateCommentCommand_1.UpdateCommentCommand(args);
|
|
1037
|
-
if (typeof optionsOrCb === "function") {
|
|
1038
|
-
this.send(command, optionsOrCb);
|
|
1039
|
-
}
|
|
1040
|
-
else if (typeof cb === "function") {
|
|
1041
|
-
if (typeof optionsOrCb !== "object")
|
|
1042
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1043
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1044
|
-
}
|
|
1045
|
-
else {
|
|
1046
|
-
return this.send(command, optionsOrCb);
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
updateDefaultBranch(args, optionsOrCb, cb) {
|
|
1050
|
-
const command = new UpdateDefaultBranchCommand_1.UpdateDefaultBranchCommand(args);
|
|
1051
|
-
if (typeof optionsOrCb === "function") {
|
|
1052
|
-
this.send(command, optionsOrCb);
|
|
1053
|
-
}
|
|
1054
|
-
else if (typeof cb === "function") {
|
|
1055
|
-
if (typeof optionsOrCb !== "object")
|
|
1056
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1057
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1058
|
-
}
|
|
1059
|
-
else {
|
|
1060
|
-
return this.send(command, optionsOrCb);
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
updatePullRequestApprovalRuleContent(args, optionsOrCb, cb) {
|
|
1064
|
-
const command = new UpdatePullRequestApprovalRuleContentCommand_1.UpdatePullRequestApprovalRuleContentCommand(args);
|
|
1065
|
-
if (typeof optionsOrCb === "function") {
|
|
1066
|
-
this.send(command, optionsOrCb);
|
|
1067
|
-
}
|
|
1068
|
-
else if (typeof cb === "function") {
|
|
1069
|
-
if (typeof optionsOrCb !== "object")
|
|
1070
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1071
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1072
|
-
}
|
|
1073
|
-
else {
|
|
1074
|
-
return this.send(command, optionsOrCb);
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
updatePullRequestApprovalState(args, optionsOrCb, cb) {
|
|
1078
|
-
const command = new UpdatePullRequestApprovalStateCommand_1.UpdatePullRequestApprovalStateCommand(args);
|
|
1079
|
-
if (typeof optionsOrCb === "function") {
|
|
1080
|
-
this.send(command, optionsOrCb);
|
|
1081
|
-
}
|
|
1082
|
-
else if (typeof cb === "function") {
|
|
1083
|
-
if (typeof optionsOrCb !== "object")
|
|
1084
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1085
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1086
|
-
}
|
|
1087
|
-
else {
|
|
1088
|
-
return this.send(command, optionsOrCb);
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
updatePullRequestDescription(args, optionsOrCb, cb) {
|
|
1092
|
-
const command = new UpdatePullRequestDescriptionCommand_1.UpdatePullRequestDescriptionCommand(args);
|
|
1093
|
-
if (typeof optionsOrCb === "function") {
|
|
1094
|
-
this.send(command, optionsOrCb);
|
|
1095
|
-
}
|
|
1096
|
-
else if (typeof cb === "function") {
|
|
1097
|
-
if (typeof optionsOrCb !== "object")
|
|
1098
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1099
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1100
|
-
}
|
|
1101
|
-
else {
|
|
1102
|
-
return this.send(command, optionsOrCb);
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
updatePullRequestStatus(args, optionsOrCb, cb) {
|
|
1106
|
-
const command = new UpdatePullRequestStatusCommand_1.UpdatePullRequestStatusCommand(args);
|
|
1107
|
-
if (typeof optionsOrCb === "function") {
|
|
1108
|
-
this.send(command, optionsOrCb);
|
|
1109
|
-
}
|
|
1110
|
-
else if (typeof cb === "function") {
|
|
1111
|
-
if (typeof optionsOrCb !== "object")
|
|
1112
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1113
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1114
|
-
}
|
|
1115
|
-
else {
|
|
1116
|
-
return this.send(command, optionsOrCb);
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
updatePullRequestTitle(args, optionsOrCb, cb) {
|
|
1120
|
-
const command = new UpdatePullRequestTitleCommand_1.UpdatePullRequestTitleCommand(args);
|
|
1121
|
-
if (typeof optionsOrCb === "function") {
|
|
1122
|
-
this.send(command, optionsOrCb);
|
|
1123
|
-
}
|
|
1124
|
-
else if (typeof cb === "function") {
|
|
1125
|
-
if (typeof optionsOrCb !== "object")
|
|
1126
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1127
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1128
|
-
}
|
|
1129
|
-
else {
|
|
1130
|
-
return this.send(command, optionsOrCb);
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
updateRepositoryDescription(args, optionsOrCb, cb) {
|
|
1134
|
-
const command = new UpdateRepositoryDescriptionCommand_1.UpdateRepositoryDescriptionCommand(args);
|
|
1135
|
-
if (typeof optionsOrCb === "function") {
|
|
1136
|
-
this.send(command, optionsOrCb);
|
|
1137
|
-
}
|
|
1138
|
-
else if (typeof cb === "function") {
|
|
1139
|
-
if (typeof optionsOrCb !== "object")
|
|
1140
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1141
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1142
|
-
}
|
|
1143
|
-
else {
|
|
1144
|
-
return this.send(command, optionsOrCb);
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
updateRepositoryName(args, optionsOrCb, cb) {
|
|
1148
|
-
const command = new UpdateRepositoryNameCommand_1.UpdateRepositoryNameCommand(args);
|
|
1149
|
-
if (typeof optionsOrCb === "function") {
|
|
1150
|
-
this.send(command, optionsOrCb);
|
|
1151
|
-
}
|
|
1152
|
-
else if (typeof cb === "function") {
|
|
1153
|
-
if (typeof optionsOrCb !== "object")
|
|
1154
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1155
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1156
|
-
}
|
|
1157
|
-
else {
|
|
1158
|
-
return this.send(command, optionsOrCb);
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
163
|
}
|
|
1162
164
|
exports.CodeCommit = CodeCommit;
|
|
165
|
+
(0, smithy_client_1.createAggregatedClient)(commands, CodeCommit);
|