@aws-sdk/client-backup-gateway 3.183.0 → 3.186.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 +19 -0
- package/dist-cjs/protocols/Aws_json1_0.js +2 -2
- package/dist-es/BackupGateway.js +85 -78
- package/dist-es/BackupGatewayClient.js +28 -22
- package/dist-es/commands/AssociateGatewayToServerCommand.js +28 -21
- package/dist-es/commands/CreateGatewayCommand.js +28 -21
- package/dist-es/commands/DeleteGatewayCommand.js +28 -21
- package/dist-es/commands/DeleteHypervisorCommand.js +28 -21
- package/dist-es/commands/DisassociateGatewayFromServerCommand.js +28 -21
- package/dist-es/commands/GetGatewayCommand.js +28 -21
- package/dist-es/commands/GetVirtualMachineCommand.js +28 -21
- package/dist-es/commands/ImportHypervisorConfigurationCommand.js +28 -21
- package/dist-es/commands/ListGatewaysCommand.js +28 -21
- package/dist-es/commands/ListHypervisorsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListVirtualMachinesCommand.js +28 -21
- package/dist-es/commands/PutMaintenanceStartTimeCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/TestHypervisorConfigurationCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateGatewayInformationCommand.js +28 -21
- package/dist-es/commands/UpdateGatewaySoftwareNowCommand.js +28 -21
- package/dist-es/commands/UpdateHypervisorCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/BackupGatewayServiceException.js +10 -5
- package/dist-es/models/models_0.js +124 -219
- package/dist-es/pagination/ListGatewaysPaginator.js +68 -25
- package/dist-es/pagination/ListHypervisorsPaginator.js +68 -25
- package/dist-es/pagination/ListVirtualMachinesPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_0.js +1627 -1232
- 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 +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-backup-gateway
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-backup-gateway
|
|
@@ -1472,10 +1472,10 @@ const deserializeAws_json1_0VirtualMachines = (output, context) => {
|
|
|
1472
1472
|
return retVal;
|
|
1473
1473
|
};
|
|
1474
1474
|
const deserializeMetadata = (output) => {
|
|
1475
|
-
var _a;
|
|
1475
|
+
var _a, _b;
|
|
1476
1476
|
return ({
|
|
1477
1477
|
httpStatusCode: output.statusCode,
|
|
1478
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
1478
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1479
1479
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1480
1480
|
cfId: output.headers["x-amz-cf-id"],
|
|
1481
1481
|
});
|
package/dist-es/BackupGateway.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { BackupGatewayClient } from "./BackupGatewayClient";
|
|
2
3
|
import { AssociateGatewayToServerCommand, } from "./commands/AssociateGatewayToServerCommand";
|
|
3
4
|
import { CreateGatewayCommand, } from "./commands/CreateGatewayCommand";
|
|
@@ -18,271 +19,277 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
18
19
|
import { UpdateGatewayInformationCommand, } from "./commands/UpdateGatewayInformationCommand";
|
|
19
20
|
import { UpdateGatewaySoftwareNowCommand, } from "./commands/UpdateGatewaySoftwareNowCommand";
|
|
20
21
|
import { UpdateHypervisorCommand, } from "./commands/UpdateHypervisorCommand";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
var BackupGateway = (function (_super) {
|
|
23
|
+
__extends(BackupGateway, _super);
|
|
24
|
+
function BackupGateway() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
BackupGateway.prototype.associateGatewayToServer = function (args, optionsOrCb, cb) {
|
|
28
|
+
var command = new AssociateGatewayToServerCommand(args);
|
|
24
29
|
if (typeof optionsOrCb === "function") {
|
|
25
30
|
this.send(command, optionsOrCb);
|
|
26
31
|
}
|
|
27
32
|
else if (typeof cb === "function") {
|
|
28
33
|
if (typeof optionsOrCb !== "object")
|
|
29
|
-
throw new Error(
|
|
34
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
30
35
|
this.send(command, optionsOrCb || {}, cb);
|
|
31
36
|
}
|
|
32
37
|
else {
|
|
33
38
|
return this.send(command, optionsOrCb);
|
|
34
39
|
}
|
|
35
|
-
}
|
|
36
|
-
createGateway(args, optionsOrCb, cb) {
|
|
37
|
-
|
|
40
|
+
};
|
|
41
|
+
BackupGateway.prototype.createGateway = function (args, optionsOrCb, cb) {
|
|
42
|
+
var command = new CreateGatewayCommand(args);
|
|
38
43
|
if (typeof optionsOrCb === "function") {
|
|
39
44
|
this.send(command, optionsOrCb);
|
|
40
45
|
}
|
|
41
46
|
else if (typeof cb === "function") {
|
|
42
47
|
if (typeof optionsOrCb !== "object")
|
|
43
|
-
throw new Error(
|
|
48
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
44
49
|
this.send(command, optionsOrCb || {}, cb);
|
|
45
50
|
}
|
|
46
51
|
else {
|
|
47
52
|
return this.send(command, optionsOrCb);
|
|
48
53
|
}
|
|
49
|
-
}
|
|
50
|
-
deleteGateway(args, optionsOrCb, cb) {
|
|
51
|
-
|
|
54
|
+
};
|
|
55
|
+
BackupGateway.prototype.deleteGateway = function (args, optionsOrCb, cb) {
|
|
56
|
+
var command = new DeleteGatewayCommand(args);
|
|
52
57
|
if (typeof optionsOrCb === "function") {
|
|
53
58
|
this.send(command, optionsOrCb);
|
|
54
59
|
}
|
|
55
60
|
else if (typeof cb === "function") {
|
|
56
61
|
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(
|
|
62
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
58
63
|
this.send(command, optionsOrCb || {}, cb);
|
|
59
64
|
}
|
|
60
65
|
else {
|
|
61
66
|
return this.send(command, optionsOrCb);
|
|
62
67
|
}
|
|
63
|
-
}
|
|
64
|
-
deleteHypervisor(args, optionsOrCb, cb) {
|
|
65
|
-
|
|
68
|
+
};
|
|
69
|
+
BackupGateway.prototype.deleteHypervisor = function (args, optionsOrCb, cb) {
|
|
70
|
+
var command = new DeleteHypervisorCommand(args);
|
|
66
71
|
if (typeof optionsOrCb === "function") {
|
|
67
72
|
this.send(command, optionsOrCb);
|
|
68
73
|
}
|
|
69
74
|
else if (typeof cb === "function") {
|
|
70
75
|
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(
|
|
76
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
72
77
|
this.send(command, optionsOrCb || {}, cb);
|
|
73
78
|
}
|
|
74
79
|
else {
|
|
75
80
|
return this.send(command, optionsOrCb);
|
|
76
81
|
}
|
|
77
|
-
}
|
|
78
|
-
disassociateGatewayFromServer(args, optionsOrCb, cb) {
|
|
79
|
-
|
|
82
|
+
};
|
|
83
|
+
BackupGateway.prototype.disassociateGatewayFromServer = function (args, optionsOrCb, cb) {
|
|
84
|
+
var command = new DisassociateGatewayFromServerCommand(args);
|
|
80
85
|
if (typeof optionsOrCb === "function") {
|
|
81
86
|
this.send(command, optionsOrCb);
|
|
82
87
|
}
|
|
83
88
|
else if (typeof cb === "function") {
|
|
84
89
|
if (typeof optionsOrCb !== "object")
|
|
85
|
-
throw new Error(
|
|
90
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
86
91
|
this.send(command, optionsOrCb || {}, cb);
|
|
87
92
|
}
|
|
88
93
|
else {
|
|
89
94
|
return this.send(command, optionsOrCb);
|
|
90
95
|
}
|
|
91
|
-
}
|
|
92
|
-
getGateway(args, optionsOrCb, cb) {
|
|
93
|
-
|
|
96
|
+
};
|
|
97
|
+
BackupGateway.prototype.getGateway = function (args, optionsOrCb, cb) {
|
|
98
|
+
var command = new GetGatewayCommand(args);
|
|
94
99
|
if (typeof optionsOrCb === "function") {
|
|
95
100
|
this.send(command, optionsOrCb);
|
|
96
101
|
}
|
|
97
102
|
else if (typeof cb === "function") {
|
|
98
103
|
if (typeof optionsOrCb !== "object")
|
|
99
|
-
throw new Error(
|
|
104
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
100
105
|
this.send(command, optionsOrCb || {}, cb);
|
|
101
106
|
}
|
|
102
107
|
else {
|
|
103
108
|
return this.send(command, optionsOrCb);
|
|
104
109
|
}
|
|
105
|
-
}
|
|
106
|
-
getVirtualMachine(args, optionsOrCb, cb) {
|
|
107
|
-
|
|
110
|
+
};
|
|
111
|
+
BackupGateway.prototype.getVirtualMachine = function (args, optionsOrCb, cb) {
|
|
112
|
+
var command = new GetVirtualMachineCommand(args);
|
|
108
113
|
if (typeof optionsOrCb === "function") {
|
|
109
114
|
this.send(command, optionsOrCb);
|
|
110
115
|
}
|
|
111
116
|
else if (typeof cb === "function") {
|
|
112
117
|
if (typeof optionsOrCb !== "object")
|
|
113
|
-
throw new Error(
|
|
118
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
114
119
|
this.send(command, optionsOrCb || {}, cb);
|
|
115
120
|
}
|
|
116
121
|
else {
|
|
117
122
|
return this.send(command, optionsOrCb);
|
|
118
123
|
}
|
|
119
|
-
}
|
|
120
|
-
importHypervisorConfiguration(args, optionsOrCb, cb) {
|
|
121
|
-
|
|
124
|
+
};
|
|
125
|
+
BackupGateway.prototype.importHypervisorConfiguration = function (args, optionsOrCb, cb) {
|
|
126
|
+
var command = new ImportHypervisorConfigurationCommand(args);
|
|
122
127
|
if (typeof optionsOrCb === "function") {
|
|
123
128
|
this.send(command, optionsOrCb);
|
|
124
129
|
}
|
|
125
130
|
else if (typeof cb === "function") {
|
|
126
131
|
if (typeof optionsOrCb !== "object")
|
|
127
|
-
throw new Error(
|
|
132
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
128
133
|
this.send(command, optionsOrCb || {}, cb);
|
|
129
134
|
}
|
|
130
135
|
else {
|
|
131
136
|
return this.send(command, optionsOrCb);
|
|
132
137
|
}
|
|
133
|
-
}
|
|
134
|
-
listGateways(args, optionsOrCb, cb) {
|
|
135
|
-
|
|
138
|
+
};
|
|
139
|
+
BackupGateway.prototype.listGateways = function (args, optionsOrCb, cb) {
|
|
140
|
+
var command = new ListGatewaysCommand(args);
|
|
136
141
|
if (typeof optionsOrCb === "function") {
|
|
137
142
|
this.send(command, optionsOrCb);
|
|
138
143
|
}
|
|
139
144
|
else if (typeof cb === "function") {
|
|
140
145
|
if (typeof optionsOrCb !== "object")
|
|
141
|
-
throw new Error(
|
|
146
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
142
147
|
this.send(command, optionsOrCb || {}, cb);
|
|
143
148
|
}
|
|
144
149
|
else {
|
|
145
150
|
return this.send(command, optionsOrCb);
|
|
146
151
|
}
|
|
147
|
-
}
|
|
148
|
-
listHypervisors(args, optionsOrCb, cb) {
|
|
149
|
-
|
|
152
|
+
};
|
|
153
|
+
BackupGateway.prototype.listHypervisors = function (args, optionsOrCb, cb) {
|
|
154
|
+
var command = new ListHypervisorsCommand(args);
|
|
150
155
|
if (typeof optionsOrCb === "function") {
|
|
151
156
|
this.send(command, optionsOrCb);
|
|
152
157
|
}
|
|
153
158
|
else if (typeof cb === "function") {
|
|
154
159
|
if (typeof optionsOrCb !== "object")
|
|
155
|
-
throw new Error(
|
|
160
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
156
161
|
this.send(command, optionsOrCb || {}, cb);
|
|
157
162
|
}
|
|
158
163
|
else {
|
|
159
164
|
return this.send(command, optionsOrCb);
|
|
160
165
|
}
|
|
161
|
-
}
|
|
162
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
163
|
-
|
|
166
|
+
};
|
|
167
|
+
BackupGateway.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
168
|
+
var command = new ListTagsForResourceCommand(args);
|
|
164
169
|
if (typeof optionsOrCb === "function") {
|
|
165
170
|
this.send(command, optionsOrCb);
|
|
166
171
|
}
|
|
167
172
|
else if (typeof cb === "function") {
|
|
168
173
|
if (typeof optionsOrCb !== "object")
|
|
169
|
-
throw new Error(
|
|
174
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
170
175
|
this.send(command, optionsOrCb || {}, cb);
|
|
171
176
|
}
|
|
172
177
|
else {
|
|
173
178
|
return this.send(command, optionsOrCb);
|
|
174
179
|
}
|
|
175
|
-
}
|
|
176
|
-
listVirtualMachines(args, optionsOrCb, cb) {
|
|
177
|
-
|
|
180
|
+
};
|
|
181
|
+
BackupGateway.prototype.listVirtualMachines = function (args, optionsOrCb, cb) {
|
|
182
|
+
var command = new ListVirtualMachinesCommand(args);
|
|
178
183
|
if (typeof optionsOrCb === "function") {
|
|
179
184
|
this.send(command, optionsOrCb);
|
|
180
185
|
}
|
|
181
186
|
else if (typeof cb === "function") {
|
|
182
187
|
if (typeof optionsOrCb !== "object")
|
|
183
|
-
throw new Error(
|
|
188
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
184
189
|
this.send(command, optionsOrCb || {}, cb);
|
|
185
190
|
}
|
|
186
191
|
else {
|
|
187
192
|
return this.send(command, optionsOrCb);
|
|
188
193
|
}
|
|
189
|
-
}
|
|
190
|
-
putMaintenanceStartTime(args, optionsOrCb, cb) {
|
|
191
|
-
|
|
194
|
+
};
|
|
195
|
+
BackupGateway.prototype.putMaintenanceStartTime = function (args, optionsOrCb, cb) {
|
|
196
|
+
var command = new PutMaintenanceStartTimeCommand(args);
|
|
192
197
|
if (typeof optionsOrCb === "function") {
|
|
193
198
|
this.send(command, optionsOrCb);
|
|
194
199
|
}
|
|
195
200
|
else if (typeof cb === "function") {
|
|
196
201
|
if (typeof optionsOrCb !== "object")
|
|
197
|
-
throw new Error(
|
|
202
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
198
203
|
this.send(command, optionsOrCb || {}, cb);
|
|
199
204
|
}
|
|
200
205
|
else {
|
|
201
206
|
return this.send(command, optionsOrCb);
|
|
202
207
|
}
|
|
203
|
-
}
|
|
204
|
-
tagResource(args, optionsOrCb, cb) {
|
|
205
|
-
|
|
208
|
+
};
|
|
209
|
+
BackupGateway.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
210
|
+
var command = new TagResourceCommand(args);
|
|
206
211
|
if (typeof optionsOrCb === "function") {
|
|
207
212
|
this.send(command, optionsOrCb);
|
|
208
213
|
}
|
|
209
214
|
else if (typeof cb === "function") {
|
|
210
215
|
if (typeof optionsOrCb !== "object")
|
|
211
|
-
throw new Error(
|
|
216
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
212
217
|
this.send(command, optionsOrCb || {}, cb);
|
|
213
218
|
}
|
|
214
219
|
else {
|
|
215
220
|
return this.send(command, optionsOrCb);
|
|
216
221
|
}
|
|
217
|
-
}
|
|
218
|
-
testHypervisorConfiguration(args, optionsOrCb, cb) {
|
|
219
|
-
|
|
222
|
+
};
|
|
223
|
+
BackupGateway.prototype.testHypervisorConfiguration = function (args, optionsOrCb, cb) {
|
|
224
|
+
var command = new TestHypervisorConfigurationCommand(args);
|
|
220
225
|
if (typeof optionsOrCb === "function") {
|
|
221
226
|
this.send(command, optionsOrCb);
|
|
222
227
|
}
|
|
223
228
|
else if (typeof cb === "function") {
|
|
224
229
|
if (typeof optionsOrCb !== "object")
|
|
225
|
-
throw new Error(
|
|
230
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
226
231
|
this.send(command, optionsOrCb || {}, cb);
|
|
227
232
|
}
|
|
228
233
|
else {
|
|
229
234
|
return this.send(command, optionsOrCb);
|
|
230
235
|
}
|
|
231
|
-
}
|
|
232
|
-
untagResource(args, optionsOrCb, cb) {
|
|
233
|
-
|
|
236
|
+
};
|
|
237
|
+
BackupGateway.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
238
|
+
var command = new UntagResourceCommand(args);
|
|
234
239
|
if (typeof optionsOrCb === "function") {
|
|
235
240
|
this.send(command, optionsOrCb);
|
|
236
241
|
}
|
|
237
242
|
else if (typeof cb === "function") {
|
|
238
243
|
if (typeof optionsOrCb !== "object")
|
|
239
|
-
throw new Error(
|
|
244
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
240
245
|
this.send(command, optionsOrCb || {}, cb);
|
|
241
246
|
}
|
|
242
247
|
else {
|
|
243
248
|
return this.send(command, optionsOrCb);
|
|
244
249
|
}
|
|
245
|
-
}
|
|
246
|
-
updateGatewayInformation(args, optionsOrCb, cb) {
|
|
247
|
-
|
|
250
|
+
};
|
|
251
|
+
BackupGateway.prototype.updateGatewayInformation = function (args, optionsOrCb, cb) {
|
|
252
|
+
var command = new UpdateGatewayInformationCommand(args);
|
|
248
253
|
if (typeof optionsOrCb === "function") {
|
|
249
254
|
this.send(command, optionsOrCb);
|
|
250
255
|
}
|
|
251
256
|
else if (typeof cb === "function") {
|
|
252
257
|
if (typeof optionsOrCb !== "object")
|
|
253
|
-
throw new Error(
|
|
258
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
254
259
|
this.send(command, optionsOrCb || {}, cb);
|
|
255
260
|
}
|
|
256
261
|
else {
|
|
257
262
|
return this.send(command, optionsOrCb);
|
|
258
263
|
}
|
|
259
|
-
}
|
|
260
|
-
updateGatewaySoftwareNow(args, optionsOrCb, cb) {
|
|
261
|
-
|
|
264
|
+
};
|
|
265
|
+
BackupGateway.prototype.updateGatewaySoftwareNow = function (args, optionsOrCb, cb) {
|
|
266
|
+
var command = new UpdateGatewaySoftwareNowCommand(args);
|
|
262
267
|
if (typeof optionsOrCb === "function") {
|
|
263
268
|
this.send(command, optionsOrCb);
|
|
264
269
|
}
|
|
265
270
|
else if (typeof cb === "function") {
|
|
266
271
|
if (typeof optionsOrCb !== "object")
|
|
267
|
-
throw new Error(
|
|
272
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
268
273
|
this.send(command, optionsOrCb || {}, cb);
|
|
269
274
|
}
|
|
270
275
|
else {
|
|
271
276
|
return this.send(command, optionsOrCb);
|
|
272
277
|
}
|
|
273
|
-
}
|
|
274
|
-
updateHypervisor(args, optionsOrCb, cb) {
|
|
275
|
-
|
|
278
|
+
};
|
|
279
|
+
BackupGateway.prototype.updateHypervisor = function (args, optionsOrCb, cb) {
|
|
280
|
+
var command = new UpdateHypervisorCommand(args);
|
|
276
281
|
if (typeof optionsOrCb === "function") {
|
|
277
282
|
this.send(command, optionsOrCb);
|
|
278
283
|
}
|
|
279
284
|
else if (typeof cb === "function") {
|
|
280
285
|
if (typeof optionsOrCb !== "object")
|
|
281
|
-
throw new Error(
|
|
286
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
282
287
|
this.send(command, optionsOrCb || {}, cb);
|
|
283
288
|
}
|
|
284
289
|
else {
|
|
285
290
|
return this.send(command, optionsOrCb);
|
|
286
291
|
}
|
|
287
|
-
}
|
|
288
|
-
|
|
292
|
+
};
|
|
293
|
+
return BackupGateway;
|
|
294
|
+
}(BackupGatewayClient));
|
|
295
|
+
export { BackupGateway };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var BackupGatewayClient = (function (_super) {
|
|
13
|
+
__extends(BackupGatewayClient, _super);
|
|
14
|
+
function BackupGatewayClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
BackupGatewayClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return BackupGatewayClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { BackupGatewayClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { AssociateGatewayToServerInputFilterSensitiveLog, AssociateGatewayToServerOutputFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_0AssociateGatewayToServerCommand, serializeAws_json1_0AssociateGatewayToServerCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var AssociateGatewayToServerCommand = (function (_super) {
|
|
7
|
+
__extends(AssociateGatewayToServerCommand, _super);
|
|
8
|
+
function AssociateGatewayToServerCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
AssociateGatewayToServerCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "BackupGatewayClient";
|
|
18
|
+
var commandName = "AssociateGatewayToServerCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: AssociateGatewayToServerInputFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: AssociateGatewayToServerOutputFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AssociateGatewayToServerCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_0AssociateGatewayToServerCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
AssociateGatewayToServerCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_0AssociateGatewayToServerCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return AssociateGatewayToServerCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AssociateGatewayToServerCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateGatewayInputFilterSensitiveLog, CreateGatewayOutputFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_0CreateGatewayCommand, serializeAws_json1_0CreateGatewayCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateGatewayCommand = (function (_super) {
|
|
7
|
+
__extends(CreateGatewayCommand, _super);
|
|
8
|
+
function CreateGatewayCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateGatewayCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "BackupGatewayClient";
|
|
18
|
+
var commandName = "CreateGatewayCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateGatewayInputFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateGatewayOutputFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateGatewayCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_0CreateGatewayCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateGatewayCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_0CreateGatewayCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateGatewayCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateGatewayCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteGatewayInputFilterSensitiveLog, DeleteGatewayOutputFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_0DeleteGatewayCommand, serializeAws_json1_0DeleteGatewayCommand, } from "../protocols/Aws_json1_0";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DeleteGatewayCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteGatewayCommand, _super);
|
|
8
|
+
function DeleteGatewayCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DeleteGatewayCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "BackupGatewayClient";
|
|
18
|
+
var commandName = "DeleteGatewayCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DeleteGatewayInputFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DeleteGatewayOutputFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteGatewayCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_0DeleteGatewayCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DeleteGatewayCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_0DeleteGatewayCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DeleteGatewayCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteGatewayCommand };
|