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