@aws-sdk/client-backup-gateway 3.312.0 → 3.316.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/BackupGateway.js +29 -350
- package/dist-cjs/protocols/Aws_json1_0.js +162 -682
- package/dist-es/BackupGateway.js +29 -350
- package/dist-es/protocols/Aws_json1_0.js +163 -683
- package/dist-types/BackupGateway.d.ts +40 -90
- package/dist-types/ts3.4/BackupGateway.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BackupGateway = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const BackupGatewayClient_1 = require("./BackupGatewayClient");
|
|
5
6
|
const AssociateGatewayToServerCommand_1 = require("./commands/AssociateGatewayToServerCommand");
|
|
6
7
|
const CreateGatewayCommand_1 = require("./commands/CreateGatewayCommand");
|
|
@@ -27,356 +28,34 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
|
27
28
|
const UpdateGatewayInformationCommand_1 = require("./commands/UpdateGatewayInformationCommand");
|
|
28
29
|
const UpdateGatewaySoftwareNowCommand_1 = require("./commands/UpdateGatewaySoftwareNowCommand");
|
|
29
30
|
const UpdateHypervisorCommand_1 = require("./commands/UpdateHypervisorCommand");
|
|
31
|
+
const commands = {
|
|
32
|
+
AssociateGatewayToServerCommand: AssociateGatewayToServerCommand_1.AssociateGatewayToServerCommand,
|
|
33
|
+
CreateGatewayCommand: CreateGatewayCommand_1.CreateGatewayCommand,
|
|
34
|
+
DeleteGatewayCommand: DeleteGatewayCommand_1.DeleteGatewayCommand,
|
|
35
|
+
DeleteHypervisorCommand: DeleteHypervisorCommand_1.DeleteHypervisorCommand,
|
|
36
|
+
DisassociateGatewayFromServerCommand: DisassociateGatewayFromServerCommand_1.DisassociateGatewayFromServerCommand,
|
|
37
|
+
GetBandwidthRateLimitScheduleCommand: GetBandwidthRateLimitScheduleCommand_1.GetBandwidthRateLimitScheduleCommand,
|
|
38
|
+
GetGatewayCommand: GetGatewayCommand_1.GetGatewayCommand,
|
|
39
|
+
GetHypervisorCommand: GetHypervisorCommand_1.GetHypervisorCommand,
|
|
40
|
+
GetHypervisorPropertyMappingsCommand: GetHypervisorPropertyMappingsCommand_1.GetHypervisorPropertyMappingsCommand,
|
|
41
|
+
GetVirtualMachineCommand: GetVirtualMachineCommand_1.GetVirtualMachineCommand,
|
|
42
|
+
ImportHypervisorConfigurationCommand: ImportHypervisorConfigurationCommand_1.ImportHypervisorConfigurationCommand,
|
|
43
|
+
ListGatewaysCommand: ListGatewaysCommand_1.ListGatewaysCommand,
|
|
44
|
+
ListHypervisorsCommand: ListHypervisorsCommand_1.ListHypervisorsCommand,
|
|
45
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
46
|
+
ListVirtualMachinesCommand: ListVirtualMachinesCommand_1.ListVirtualMachinesCommand,
|
|
47
|
+
PutBandwidthRateLimitScheduleCommand: PutBandwidthRateLimitScheduleCommand_1.PutBandwidthRateLimitScheduleCommand,
|
|
48
|
+
PutHypervisorPropertyMappingsCommand: PutHypervisorPropertyMappingsCommand_1.PutHypervisorPropertyMappingsCommand,
|
|
49
|
+
PutMaintenanceStartTimeCommand: PutMaintenanceStartTimeCommand_1.PutMaintenanceStartTimeCommand,
|
|
50
|
+
StartVirtualMachinesMetadataSyncCommand: StartVirtualMachinesMetadataSyncCommand_1.StartVirtualMachinesMetadataSyncCommand,
|
|
51
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
52
|
+
TestHypervisorConfigurationCommand: TestHypervisorConfigurationCommand_1.TestHypervisorConfigurationCommand,
|
|
53
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
54
|
+
UpdateGatewayInformationCommand: UpdateGatewayInformationCommand_1.UpdateGatewayInformationCommand,
|
|
55
|
+
UpdateGatewaySoftwareNowCommand: UpdateGatewaySoftwareNowCommand_1.UpdateGatewaySoftwareNowCommand,
|
|
56
|
+
UpdateHypervisorCommand: UpdateHypervisorCommand_1.UpdateHypervisorCommand,
|
|
57
|
+
};
|
|
30
58
|
class BackupGateway extends BackupGatewayClient_1.BackupGatewayClient {
|
|
31
|
-
associateGatewayToServer(args, optionsOrCb, cb) {
|
|
32
|
-
const command = new AssociateGatewayToServerCommand_1.AssociateGatewayToServerCommand(args);
|
|
33
|
-
if (typeof optionsOrCb === "function") {
|
|
34
|
-
this.send(command, optionsOrCb);
|
|
35
|
-
}
|
|
36
|
-
else if (typeof cb === "function") {
|
|
37
|
-
if (typeof optionsOrCb !== "object")
|
|
38
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
39
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
createGateway(args, optionsOrCb, cb) {
|
|
46
|
-
const command = new CreateGatewayCommand_1.CreateGatewayCommand(args);
|
|
47
|
-
if (typeof optionsOrCb === "function") {
|
|
48
|
-
this.send(command, optionsOrCb);
|
|
49
|
-
}
|
|
50
|
-
else if (typeof cb === "function") {
|
|
51
|
-
if (typeof optionsOrCb !== "object")
|
|
52
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
53
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
deleteGateway(args, optionsOrCb, cb) {
|
|
60
|
-
const command = new DeleteGatewayCommand_1.DeleteGatewayCommand(args);
|
|
61
|
-
if (typeof optionsOrCb === "function") {
|
|
62
|
-
this.send(command, optionsOrCb);
|
|
63
|
-
}
|
|
64
|
-
else if (typeof cb === "function") {
|
|
65
|
-
if (typeof optionsOrCb !== "object")
|
|
66
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
67
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
return this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
deleteHypervisor(args, optionsOrCb, cb) {
|
|
74
|
-
const command = new DeleteHypervisorCommand_1.DeleteHypervisorCommand(args);
|
|
75
|
-
if (typeof optionsOrCb === "function") {
|
|
76
|
-
this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
else if (typeof cb === "function") {
|
|
79
|
-
if (typeof optionsOrCb !== "object")
|
|
80
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
81
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
return this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
disassociateGatewayFromServer(args, optionsOrCb, cb) {
|
|
88
|
-
const command = new DisassociateGatewayFromServerCommand_1.DisassociateGatewayFromServerCommand(args);
|
|
89
|
-
if (typeof optionsOrCb === "function") {
|
|
90
|
-
this.send(command, optionsOrCb);
|
|
91
|
-
}
|
|
92
|
-
else if (typeof cb === "function") {
|
|
93
|
-
if (typeof optionsOrCb !== "object")
|
|
94
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
95
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
return this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
getBandwidthRateLimitSchedule(args, optionsOrCb, cb) {
|
|
102
|
-
const command = new GetBandwidthRateLimitScheduleCommand_1.GetBandwidthRateLimitScheduleCommand(args);
|
|
103
|
-
if (typeof optionsOrCb === "function") {
|
|
104
|
-
this.send(command, optionsOrCb);
|
|
105
|
-
}
|
|
106
|
-
else if (typeof cb === "function") {
|
|
107
|
-
if (typeof optionsOrCb !== "object")
|
|
108
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
109
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
getGateway(args, optionsOrCb, cb) {
|
|
116
|
-
const command = new GetGatewayCommand_1.GetGatewayCommand(args);
|
|
117
|
-
if (typeof optionsOrCb === "function") {
|
|
118
|
-
this.send(command, optionsOrCb);
|
|
119
|
-
}
|
|
120
|
-
else if (typeof cb === "function") {
|
|
121
|
-
if (typeof optionsOrCb !== "object")
|
|
122
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
123
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
return this.send(command, optionsOrCb);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
getHypervisor(args, optionsOrCb, cb) {
|
|
130
|
-
const command = new GetHypervisorCommand_1.GetHypervisorCommand(args);
|
|
131
|
-
if (typeof optionsOrCb === "function") {
|
|
132
|
-
this.send(command, optionsOrCb);
|
|
133
|
-
}
|
|
134
|
-
else if (typeof cb === "function") {
|
|
135
|
-
if (typeof optionsOrCb !== "object")
|
|
136
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
137
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
return this.send(command, optionsOrCb);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
getHypervisorPropertyMappings(args, optionsOrCb, cb) {
|
|
144
|
-
const command = new GetHypervisorPropertyMappingsCommand_1.GetHypervisorPropertyMappingsCommand(args);
|
|
145
|
-
if (typeof optionsOrCb === "function") {
|
|
146
|
-
this.send(command, optionsOrCb);
|
|
147
|
-
}
|
|
148
|
-
else if (typeof cb === "function") {
|
|
149
|
-
if (typeof optionsOrCb !== "object")
|
|
150
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
151
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
return this.send(command, optionsOrCb);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
getVirtualMachine(args, optionsOrCb, cb) {
|
|
158
|
-
const command = new GetVirtualMachineCommand_1.GetVirtualMachineCommand(args);
|
|
159
|
-
if (typeof optionsOrCb === "function") {
|
|
160
|
-
this.send(command, optionsOrCb);
|
|
161
|
-
}
|
|
162
|
-
else if (typeof cb === "function") {
|
|
163
|
-
if (typeof optionsOrCb !== "object")
|
|
164
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
165
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
return this.send(command, optionsOrCb);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
importHypervisorConfiguration(args, optionsOrCb, cb) {
|
|
172
|
-
const command = new ImportHypervisorConfigurationCommand_1.ImportHypervisorConfigurationCommand(args);
|
|
173
|
-
if (typeof optionsOrCb === "function") {
|
|
174
|
-
this.send(command, optionsOrCb);
|
|
175
|
-
}
|
|
176
|
-
else if (typeof cb === "function") {
|
|
177
|
-
if (typeof optionsOrCb !== "object")
|
|
178
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
179
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
return this.send(command, optionsOrCb);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
listGateways(args, optionsOrCb, cb) {
|
|
186
|
-
const command = new ListGatewaysCommand_1.ListGatewaysCommand(args);
|
|
187
|
-
if (typeof optionsOrCb === "function") {
|
|
188
|
-
this.send(command, optionsOrCb);
|
|
189
|
-
}
|
|
190
|
-
else if (typeof cb === "function") {
|
|
191
|
-
if (typeof optionsOrCb !== "object")
|
|
192
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
193
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
return this.send(command, optionsOrCb);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
listHypervisors(args, optionsOrCb, cb) {
|
|
200
|
-
const command = new ListHypervisorsCommand_1.ListHypervisorsCommand(args);
|
|
201
|
-
if (typeof optionsOrCb === "function") {
|
|
202
|
-
this.send(command, optionsOrCb);
|
|
203
|
-
}
|
|
204
|
-
else if (typeof cb === "function") {
|
|
205
|
-
if (typeof optionsOrCb !== "object")
|
|
206
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
207
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
return this.send(command, optionsOrCb);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
214
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
215
|
-
if (typeof optionsOrCb === "function") {
|
|
216
|
-
this.send(command, optionsOrCb);
|
|
217
|
-
}
|
|
218
|
-
else if (typeof cb === "function") {
|
|
219
|
-
if (typeof optionsOrCb !== "object")
|
|
220
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
221
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
return this.send(command, optionsOrCb);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
listVirtualMachines(args, optionsOrCb, cb) {
|
|
228
|
-
const command = new ListVirtualMachinesCommand_1.ListVirtualMachinesCommand(args);
|
|
229
|
-
if (typeof optionsOrCb === "function") {
|
|
230
|
-
this.send(command, optionsOrCb);
|
|
231
|
-
}
|
|
232
|
-
else if (typeof cb === "function") {
|
|
233
|
-
if (typeof optionsOrCb !== "object")
|
|
234
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
235
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
return this.send(command, optionsOrCb);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
putBandwidthRateLimitSchedule(args, optionsOrCb, cb) {
|
|
242
|
-
const command = new PutBandwidthRateLimitScheduleCommand_1.PutBandwidthRateLimitScheduleCommand(args);
|
|
243
|
-
if (typeof optionsOrCb === "function") {
|
|
244
|
-
this.send(command, optionsOrCb);
|
|
245
|
-
}
|
|
246
|
-
else if (typeof cb === "function") {
|
|
247
|
-
if (typeof optionsOrCb !== "object")
|
|
248
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
249
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
return this.send(command, optionsOrCb);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
putHypervisorPropertyMappings(args, optionsOrCb, cb) {
|
|
256
|
-
const command = new PutHypervisorPropertyMappingsCommand_1.PutHypervisorPropertyMappingsCommand(args);
|
|
257
|
-
if (typeof optionsOrCb === "function") {
|
|
258
|
-
this.send(command, optionsOrCb);
|
|
259
|
-
}
|
|
260
|
-
else if (typeof cb === "function") {
|
|
261
|
-
if (typeof optionsOrCb !== "object")
|
|
262
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
263
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
264
|
-
}
|
|
265
|
-
else {
|
|
266
|
-
return this.send(command, optionsOrCb);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
putMaintenanceStartTime(args, optionsOrCb, cb) {
|
|
270
|
-
const command = new PutMaintenanceStartTimeCommand_1.PutMaintenanceStartTimeCommand(args);
|
|
271
|
-
if (typeof optionsOrCb === "function") {
|
|
272
|
-
this.send(command, optionsOrCb);
|
|
273
|
-
}
|
|
274
|
-
else if (typeof cb === "function") {
|
|
275
|
-
if (typeof optionsOrCb !== "object")
|
|
276
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
277
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
return this.send(command, optionsOrCb);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
startVirtualMachinesMetadataSync(args, optionsOrCb, cb) {
|
|
284
|
-
const command = new StartVirtualMachinesMetadataSyncCommand_1.StartVirtualMachinesMetadataSyncCommand(args);
|
|
285
|
-
if (typeof optionsOrCb === "function") {
|
|
286
|
-
this.send(command, optionsOrCb);
|
|
287
|
-
}
|
|
288
|
-
else if (typeof cb === "function") {
|
|
289
|
-
if (typeof optionsOrCb !== "object")
|
|
290
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
291
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
return this.send(command, optionsOrCb);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
tagResource(args, optionsOrCb, cb) {
|
|
298
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
299
|
-
if (typeof optionsOrCb === "function") {
|
|
300
|
-
this.send(command, optionsOrCb);
|
|
301
|
-
}
|
|
302
|
-
else if (typeof cb === "function") {
|
|
303
|
-
if (typeof optionsOrCb !== "object")
|
|
304
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
305
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
306
|
-
}
|
|
307
|
-
else {
|
|
308
|
-
return this.send(command, optionsOrCb);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
testHypervisorConfiguration(args, optionsOrCb, cb) {
|
|
312
|
-
const command = new TestHypervisorConfigurationCommand_1.TestHypervisorConfigurationCommand(args);
|
|
313
|
-
if (typeof optionsOrCb === "function") {
|
|
314
|
-
this.send(command, optionsOrCb);
|
|
315
|
-
}
|
|
316
|
-
else if (typeof cb === "function") {
|
|
317
|
-
if (typeof optionsOrCb !== "object")
|
|
318
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
319
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
return this.send(command, optionsOrCb);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
untagResource(args, optionsOrCb, cb) {
|
|
326
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
327
|
-
if (typeof optionsOrCb === "function") {
|
|
328
|
-
this.send(command, optionsOrCb);
|
|
329
|
-
}
|
|
330
|
-
else if (typeof cb === "function") {
|
|
331
|
-
if (typeof optionsOrCb !== "object")
|
|
332
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
333
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
return this.send(command, optionsOrCb);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
updateGatewayInformation(args, optionsOrCb, cb) {
|
|
340
|
-
const command = new UpdateGatewayInformationCommand_1.UpdateGatewayInformationCommand(args);
|
|
341
|
-
if (typeof optionsOrCb === "function") {
|
|
342
|
-
this.send(command, optionsOrCb);
|
|
343
|
-
}
|
|
344
|
-
else if (typeof cb === "function") {
|
|
345
|
-
if (typeof optionsOrCb !== "object")
|
|
346
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
347
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
348
|
-
}
|
|
349
|
-
else {
|
|
350
|
-
return this.send(command, optionsOrCb);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
updateGatewaySoftwareNow(args, optionsOrCb, cb) {
|
|
354
|
-
const command = new UpdateGatewaySoftwareNowCommand_1.UpdateGatewaySoftwareNowCommand(args);
|
|
355
|
-
if (typeof optionsOrCb === "function") {
|
|
356
|
-
this.send(command, optionsOrCb);
|
|
357
|
-
}
|
|
358
|
-
else if (typeof cb === "function") {
|
|
359
|
-
if (typeof optionsOrCb !== "object")
|
|
360
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
361
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
return this.send(command, optionsOrCb);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
updateHypervisor(args, optionsOrCb, cb) {
|
|
368
|
-
const command = new UpdateHypervisorCommand_1.UpdateHypervisorCommand(args);
|
|
369
|
-
if (typeof optionsOrCb === "function") {
|
|
370
|
-
this.send(command, optionsOrCb);
|
|
371
|
-
}
|
|
372
|
-
else if (typeof cb === "function") {
|
|
373
|
-
if (typeof optionsOrCb !== "object")
|
|
374
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
375
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
return this.send(command, optionsOrCb);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
59
|
}
|
|
382
60
|
exports.BackupGateway = BackupGateway;
|
|
61
|
+
(0, smithy_client_1.createAggregatedClient)(commands, BackupGateway);
|