@aws-sdk/client-backup-gateway 3.490.0 → 3.496.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 +1 -61
- package/dist-cjs/BackupGatewayClient.js +1 -43
- package/dist-cjs/commands/AssociateGatewayToServerCommand.js +1 -28
- package/dist-cjs/commands/CreateGatewayCommand.js +1 -28
- package/dist-cjs/commands/DeleteGatewayCommand.js +1 -28
- package/dist-cjs/commands/DeleteHypervisorCommand.js +1 -28
- package/dist-cjs/commands/DisassociateGatewayFromServerCommand.js +1 -28
- package/dist-cjs/commands/GetBandwidthRateLimitScheduleCommand.js +1 -28
- package/dist-cjs/commands/GetGatewayCommand.js +1 -28
- package/dist-cjs/commands/GetHypervisorCommand.js +1 -28
- package/dist-cjs/commands/GetHypervisorPropertyMappingsCommand.js +1 -28
- package/dist-cjs/commands/GetVirtualMachineCommand.js +1 -28
- package/dist-cjs/commands/ImportHypervisorConfigurationCommand.js +1 -29
- package/dist-cjs/commands/ListGatewaysCommand.js +1 -28
- package/dist-cjs/commands/ListHypervisorsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListVirtualMachinesCommand.js +1 -28
- package/dist-cjs/commands/PutBandwidthRateLimitScheduleCommand.js +1 -28
- package/dist-cjs/commands/PutHypervisorPropertyMappingsCommand.js +1 -28
- package/dist-cjs/commands/PutMaintenanceStartTimeCommand.js +1 -28
- package/dist-cjs/commands/StartVirtualMachinesMetadataSyncCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/TestHypervisorConfigurationCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateGatewayInformationCommand.js +1 -28
- package/dist-cjs/commands/UpdateGatewaySoftwareNowCommand.js +1 -28
- package/dist-cjs/commands/UpdateHypervisorCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -28
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2269 -11
- package/dist-cjs/models/BackupGatewayServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -129
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListGatewaysPaginator.js +1 -7
- package/dist-cjs/pagination/ListHypervisorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListVirtualMachinesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_json1_0.js +1 -1480
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2270 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
AssociateGatewayToServerCommand: () => AssociateGatewayToServerCommand,
|
|
26
|
+
BackupGateway: () => BackupGateway,
|
|
27
|
+
BackupGatewayClient: () => BackupGatewayClient,
|
|
28
|
+
BackupGatewayServiceException: () => BackupGatewayServiceException,
|
|
29
|
+
ConflictException: () => ConflictException,
|
|
30
|
+
CreateGatewayCommand: () => CreateGatewayCommand,
|
|
31
|
+
DeleteGatewayCommand: () => DeleteGatewayCommand,
|
|
32
|
+
DeleteHypervisorCommand: () => DeleteHypervisorCommand,
|
|
33
|
+
DisassociateGatewayFromServerCommand: () => DisassociateGatewayFromServerCommand,
|
|
34
|
+
GatewayType: () => GatewayType,
|
|
35
|
+
GetBandwidthRateLimitScheduleCommand: () => GetBandwidthRateLimitScheduleCommand,
|
|
36
|
+
GetGatewayCommand: () => GetGatewayCommand,
|
|
37
|
+
GetHypervisorCommand: () => GetHypervisorCommand,
|
|
38
|
+
GetHypervisorPropertyMappingsCommand: () => GetHypervisorPropertyMappingsCommand,
|
|
39
|
+
GetVirtualMachineCommand: () => GetVirtualMachineCommand,
|
|
40
|
+
HypervisorState: () => HypervisorState,
|
|
41
|
+
ImportHypervisorConfigurationCommand: () => ImportHypervisorConfigurationCommand,
|
|
42
|
+
ImportHypervisorConfigurationInputFilterSensitiveLog: () => ImportHypervisorConfigurationInputFilterSensitiveLog,
|
|
43
|
+
InternalServerException: () => InternalServerException,
|
|
44
|
+
ListGatewaysCommand: () => ListGatewaysCommand,
|
|
45
|
+
ListHypervisorsCommand: () => ListHypervisorsCommand,
|
|
46
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
47
|
+
ListVirtualMachinesCommand: () => ListVirtualMachinesCommand,
|
|
48
|
+
PutBandwidthRateLimitScheduleCommand: () => PutBandwidthRateLimitScheduleCommand,
|
|
49
|
+
PutHypervisorPropertyMappingsCommand: () => PutHypervisorPropertyMappingsCommand,
|
|
50
|
+
PutMaintenanceStartTimeCommand: () => PutMaintenanceStartTimeCommand,
|
|
51
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
52
|
+
StartVirtualMachinesMetadataSyncCommand: () => StartVirtualMachinesMetadataSyncCommand,
|
|
53
|
+
SyncMetadataStatus: () => SyncMetadataStatus,
|
|
54
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
55
|
+
TestHypervisorConfigurationCommand: () => TestHypervisorConfigurationCommand,
|
|
56
|
+
TestHypervisorConfigurationInputFilterSensitiveLog: () => TestHypervisorConfigurationInputFilterSensitiveLog,
|
|
57
|
+
ThrottlingException: () => ThrottlingException,
|
|
58
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
59
|
+
UpdateGatewayInformationCommand: () => UpdateGatewayInformationCommand,
|
|
60
|
+
UpdateGatewaySoftwareNowCommand: () => UpdateGatewaySoftwareNowCommand,
|
|
61
|
+
UpdateHypervisorCommand: () => UpdateHypervisorCommand,
|
|
62
|
+
UpdateHypervisorInputFilterSensitiveLog: () => UpdateHypervisorInputFilterSensitiveLog,
|
|
63
|
+
ValidationException: () => ValidationException,
|
|
64
|
+
__Client: () => import_smithy_client.Client,
|
|
65
|
+
paginateListGateways: () => paginateListGateways,
|
|
66
|
+
paginateListHypervisors: () => paginateListHypervisors,
|
|
67
|
+
paginateListVirtualMachines: () => paginateListVirtualMachines
|
|
68
|
+
});
|
|
69
|
+
module.exports = __toCommonJS(src_exports);
|
|
70
|
+
|
|
71
|
+
// src/BackupGatewayClient.ts
|
|
72
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
73
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
74
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
75
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
76
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
77
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
78
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
79
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
80
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// src/endpoint/EndpointParameters.ts
|
|
84
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
85
|
+
return {
|
|
86
|
+
...options,
|
|
87
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
88
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
89
|
+
defaultSigningName: "backup-gateway"
|
|
90
|
+
};
|
|
91
|
+
}, "resolveClientEndpointParameters");
|
|
92
|
+
var commonParams = {
|
|
93
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
94
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
95
|
+
Region: { type: "builtInParams", name: "region" },
|
|
96
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
// src/BackupGatewayClient.ts
|
|
100
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
101
|
+
|
|
102
|
+
// src/runtimeExtensions.ts
|
|
103
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
104
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
105
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
106
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
107
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
108
|
+
const extensionConfiguration = {
|
|
109
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
110
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
111
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
112
|
+
};
|
|
113
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
114
|
+
return {
|
|
115
|
+
...runtimeConfig,
|
|
116
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
117
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
118
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
119
|
+
};
|
|
120
|
+
}, "resolveRuntimeExtensions");
|
|
121
|
+
|
|
122
|
+
// src/BackupGatewayClient.ts
|
|
123
|
+
var _BackupGatewayClient = class _BackupGatewayClient extends import_smithy_client.Client {
|
|
124
|
+
constructor(...[configuration]) {
|
|
125
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
126
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
127
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
128
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
129
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
130
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
131
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
132
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
133
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
134
|
+
super(_config_8);
|
|
135
|
+
this.config = _config_8;
|
|
136
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
137
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
141
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
142
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
146
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
147
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
148
|
+
*/
|
|
149
|
+
destroy() {
|
|
150
|
+
super.destroy();
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
__name(_BackupGatewayClient, "BackupGatewayClient");
|
|
154
|
+
var BackupGatewayClient = _BackupGatewayClient;
|
|
155
|
+
|
|
156
|
+
// src/BackupGateway.ts
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
// src/commands/AssociateGatewayToServerCommand.ts
|
|
160
|
+
|
|
161
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
162
|
+
|
|
163
|
+
var import_types = require("@smithy/types");
|
|
164
|
+
|
|
165
|
+
// src/protocols/Aws_json1_0.ts
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
// src/models/BackupGatewayServiceException.ts
|
|
170
|
+
|
|
171
|
+
var _BackupGatewayServiceException = class _BackupGatewayServiceException extends import_smithy_client.ServiceException {
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
*/
|
|
175
|
+
constructor(options) {
|
|
176
|
+
super(options);
|
|
177
|
+
Object.setPrototypeOf(this, _BackupGatewayServiceException.prototype);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
__name(_BackupGatewayServiceException, "BackupGatewayServiceException");
|
|
181
|
+
var BackupGatewayServiceException = _BackupGatewayServiceException;
|
|
182
|
+
|
|
183
|
+
// src/models/models_0.ts
|
|
184
|
+
|
|
185
|
+
var _AccessDeniedException = class _AccessDeniedException extends BackupGatewayServiceException {
|
|
186
|
+
/**
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
constructor(opts) {
|
|
190
|
+
super({
|
|
191
|
+
name: "AccessDeniedException",
|
|
192
|
+
$fault: "client",
|
|
193
|
+
...opts
|
|
194
|
+
});
|
|
195
|
+
this.name = "AccessDeniedException";
|
|
196
|
+
this.$fault = "client";
|
|
197
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
198
|
+
this.ErrorCode = opts.ErrorCode;
|
|
199
|
+
this.Message = opts.Message;
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
203
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
204
|
+
var _ConflictException = class _ConflictException extends BackupGatewayServiceException {
|
|
205
|
+
/**
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
constructor(opts) {
|
|
209
|
+
super({
|
|
210
|
+
name: "ConflictException",
|
|
211
|
+
$fault: "client",
|
|
212
|
+
...opts
|
|
213
|
+
});
|
|
214
|
+
this.name = "ConflictException";
|
|
215
|
+
this.$fault = "client";
|
|
216
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
217
|
+
this.ErrorCode = opts.ErrorCode;
|
|
218
|
+
this.Message = opts.Message;
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
__name(_ConflictException, "ConflictException");
|
|
222
|
+
var ConflictException = _ConflictException;
|
|
223
|
+
var _InternalServerException = class _InternalServerException extends BackupGatewayServiceException {
|
|
224
|
+
/**
|
|
225
|
+
* @internal
|
|
226
|
+
*/
|
|
227
|
+
constructor(opts) {
|
|
228
|
+
super({
|
|
229
|
+
name: "InternalServerException",
|
|
230
|
+
$fault: "server",
|
|
231
|
+
...opts
|
|
232
|
+
});
|
|
233
|
+
this.name = "InternalServerException";
|
|
234
|
+
this.$fault = "server";
|
|
235
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
236
|
+
this.ErrorCode = opts.ErrorCode;
|
|
237
|
+
this.Message = opts.Message;
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
__name(_InternalServerException, "InternalServerException");
|
|
241
|
+
var InternalServerException = _InternalServerException;
|
|
242
|
+
var _ThrottlingException = class _ThrottlingException extends BackupGatewayServiceException {
|
|
243
|
+
/**
|
|
244
|
+
* @internal
|
|
245
|
+
*/
|
|
246
|
+
constructor(opts) {
|
|
247
|
+
super({
|
|
248
|
+
name: "ThrottlingException",
|
|
249
|
+
$fault: "client",
|
|
250
|
+
...opts
|
|
251
|
+
});
|
|
252
|
+
this.name = "ThrottlingException";
|
|
253
|
+
this.$fault = "client";
|
|
254
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
255
|
+
this.ErrorCode = opts.ErrorCode;
|
|
256
|
+
this.Message = opts.Message;
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
260
|
+
var ThrottlingException = _ThrottlingException;
|
|
261
|
+
var _ValidationException = class _ValidationException extends BackupGatewayServiceException {
|
|
262
|
+
/**
|
|
263
|
+
* @internal
|
|
264
|
+
*/
|
|
265
|
+
constructor(opts) {
|
|
266
|
+
super({
|
|
267
|
+
name: "ValidationException",
|
|
268
|
+
$fault: "client",
|
|
269
|
+
...opts
|
|
270
|
+
});
|
|
271
|
+
this.name = "ValidationException";
|
|
272
|
+
this.$fault = "client";
|
|
273
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
274
|
+
this.ErrorCode = opts.ErrorCode;
|
|
275
|
+
this.Message = opts.Message;
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
__name(_ValidationException, "ValidationException");
|
|
279
|
+
var ValidationException = _ValidationException;
|
|
280
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends BackupGatewayServiceException {
|
|
281
|
+
/**
|
|
282
|
+
* @internal
|
|
283
|
+
*/
|
|
284
|
+
constructor(opts) {
|
|
285
|
+
super({
|
|
286
|
+
name: "ResourceNotFoundException",
|
|
287
|
+
$fault: "client",
|
|
288
|
+
...opts
|
|
289
|
+
});
|
|
290
|
+
this.name = "ResourceNotFoundException";
|
|
291
|
+
this.$fault = "client";
|
|
292
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
293
|
+
this.ErrorCode = opts.ErrorCode;
|
|
294
|
+
this.Message = opts.Message;
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
298
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
299
|
+
var GatewayType = {
|
|
300
|
+
BACKUP_VM: "BACKUP_VM"
|
|
301
|
+
};
|
|
302
|
+
var SyncMetadataStatus = {
|
|
303
|
+
CREATED: "CREATED",
|
|
304
|
+
FAILED: "FAILED",
|
|
305
|
+
PARTIALLY_FAILED: "PARTIALLY_FAILED",
|
|
306
|
+
RUNNING: "RUNNING",
|
|
307
|
+
SUCCEEDED: "SUCCEEDED"
|
|
308
|
+
};
|
|
309
|
+
var HypervisorState = {
|
|
310
|
+
ERROR: "ERROR",
|
|
311
|
+
OFFLINE: "OFFLINE",
|
|
312
|
+
ONLINE: "ONLINE",
|
|
313
|
+
PENDING: "PENDING"
|
|
314
|
+
};
|
|
315
|
+
var TestHypervisorConfigurationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
316
|
+
...obj,
|
|
317
|
+
...obj.Username && { Username: import_smithy_client.SENSITIVE_STRING },
|
|
318
|
+
...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING }
|
|
319
|
+
}), "TestHypervisorConfigurationInputFilterSensitiveLog");
|
|
320
|
+
var ImportHypervisorConfigurationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
321
|
+
...obj,
|
|
322
|
+
...obj.Username && { Username: import_smithy_client.SENSITIVE_STRING },
|
|
323
|
+
...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING }
|
|
324
|
+
}), "ImportHypervisorConfigurationInputFilterSensitiveLog");
|
|
325
|
+
var UpdateHypervisorInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
326
|
+
...obj,
|
|
327
|
+
...obj.Username && { Username: import_smithy_client.SENSITIVE_STRING },
|
|
328
|
+
...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING }
|
|
329
|
+
}), "UpdateHypervisorInputFilterSensitiveLog");
|
|
330
|
+
|
|
331
|
+
// src/protocols/Aws_json1_0.ts
|
|
332
|
+
var se_AssociateGatewayToServerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
333
|
+
const headers = sharedHeaders("AssociateGatewayToServer");
|
|
334
|
+
let body;
|
|
335
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
336
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
337
|
+
}, "se_AssociateGatewayToServerCommand");
|
|
338
|
+
var se_CreateGatewayCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
339
|
+
const headers = sharedHeaders("CreateGateway");
|
|
340
|
+
let body;
|
|
341
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
342
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
343
|
+
}, "se_CreateGatewayCommand");
|
|
344
|
+
var se_DeleteGatewayCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
345
|
+
const headers = sharedHeaders("DeleteGateway");
|
|
346
|
+
let body;
|
|
347
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
348
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
349
|
+
}, "se_DeleteGatewayCommand");
|
|
350
|
+
var se_DeleteHypervisorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
351
|
+
const headers = sharedHeaders("DeleteHypervisor");
|
|
352
|
+
let body;
|
|
353
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
354
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
355
|
+
}, "se_DeleteHypervisorCommand");
|
|
356
|
+
var se_DisassociateGatewayFromServerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
357
|
+
const headers = sharedHeaders("DisassociateGatewayFromServer");
|
|
358
|
+
let body;
|
|
359
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
360
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
361
|
+
}, "se_DisassociateGatewayFromServerCommand");
|
|
362
|
+
var se_GetBandwidthRateLimitScheduleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
363
|
+
const headers = sharedHeaders("GetBandwidthRateLimitSchedule");
|
|
364
|
+
let body;
|
|
365
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
366
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
367
|
+
}, "se_GetBandwidthRateLimitScheduleCommand");
|
|
368
|
+
var se_GetGatewayCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
369
|
+
const headers = sharedHeaders("GetGateway");
|
|
370
|
+
let body;
|
|
371
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
372
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
373
|
+
}, "se_GetGatewayCommand");
|
|
374
|
+
var se_GetHypervisorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
375
|
+
const headers = sharedHeaders("GetHypervisor");
|
|
376
|
+
let body;
|
|
377
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
378
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
379
|
+
}, "se_GetHypervisorCommand");
|
|
380
|
+
var se_GetHypervisorPropertyMappingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
381
|
+
const headers = sharedHeaders("GetHypervisorPropertyMappings");
|
|
382
|
+
let body;
|
|
383
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
384
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
385
|
+
}, "se_GetHypervisorPropertyMappingsCommand");
|
|
386
|
+
var se_GetVirtualMachineCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
387
|
+
const headers = sharedHeaders("GetVirtualMachine");
|
|
388
|
+
let body;
|
|
389
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
390
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
391
|
+
}, "se_GetVirtualMachineCommand");
|
|
392
|
+
var se_ImportHypervisorConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
393
|
+
const headers = sharedHeaders("ImportHypervisorConfiguration");
|
|
394
|
+
let body;
|
|
395
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
396
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
397
|
+
}, "se_ImportHypervisorConfigurationCommand");
|
|
398
|
+
var se_ListGatewaysCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
399
|
+
const headers = sharedHeaders("ListGateways");
|
|
400
|
+
let body;
|
|
401
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
402
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
403
|
+
}, "se_ListGatewaysCommand");
|
|
404
|
+
var se_ListHypervisorsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
405
|
+
const headers = sharedHeaders("ListHypervisors");
|
|
406
|
+
let body;
|
|
407
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
408
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
409
|
+
}, "se_ListHypervisorsCommand");
|
|
410
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
411
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
412
|
+
let body;
|
|
413
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
414
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
415
|
+
}, "se_ListTagsForResourceCommand");
|
|
416
|
+
var se_ListVirtualMachinesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
417
|
+
const headers = sharedHeaders("ListVirtualMachines");
|
|
418
|
+
let body;
|
|
419
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
420
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
421
|
+
}, "se_ListVirtualMachinesCommand");
|
|
422
|
+
var se_PutBandwidthRateLimitScheduleCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
423
|
+
const headers = sharedHeaders("PutBandwidthRateLimitSchedule");
|
|
424
|
+
let body;
|
|
425
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
426
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
427
|
+
}, "se_PutBandwidthRateLimitScheduleCommand");
|
|
428
|
+
var se_PutHypervisorPropertyMappingsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
429
|
+
const headers = sharedHeaders("PutHypervisorPropertyMappings");
|
|
430
|
+
let body;
|
|
431
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
432
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
433
|
+
}, "se_PutHypervisorPropertyMappingsCommand");
|
|
434
|
+
var se_PutMaintenanceStartTimeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
435
|
+
const headers = sharedHeaders("PutMaintenanceStartTime");
|
|
436
|
+
let body;
|
|
437
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
438
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
439
|
+
}, "se_PutMaintenanceStartTimeCommand");
|
|
440
|
+
var se_StartVirtualMachinesMetadataSyncCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
441
|
+
const headers = sharedHeaders("StartVirtualMachinesMetadataSync");
|
|
442
|
+
let body;
|
|
443
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
444
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
445
|
+
}, "se_StartVirtualMachinesMetadataSyncCommand");
|
|
446
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
447
|
+
const headers = sharedHeaders("TagResource");
|
|
448
|
+
let body;
|
|
449
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
450
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
451
|
+
}, "se_TagResourceCommand");
|
|
452
|
+
var se_TestHypervisorConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
453
|
+
const headers = sharedHeaders("TestHypervisorConfiguration");
|
|
454
|
+
let body;
|
|
455
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
456
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
457
|
+
}, "se_TestHypervisorConfigurationCommand");
|
|
458
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
459
|
+
const headers = sharedHeaders("UntagResource");
|
|
460
|
+
let body;
|
|
461
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
462
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
463
|
+
}, "se_UntagResourceCommand");
|
|
464
|
+
var se_UpdateGatewayInformationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
465
|
+
const headers = sharedHeaders("UpdateGatewayInformation");
|
|
466
|
+
let body;
|
|
467
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
468
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
469
|
+
}, "se_UpdateGatewayInformationCommand");
|
|
470
|
+
var se_UpdateGatewaySoftwareNowCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
471
|
+
const headers = sharedHeaders("UpdateGatewaySoftwareNow");
|
|
472
|
+
let body;
|
|
473
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
474
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
475
|
+
}, "se_UpdateGatewaySoftwareNowCommand");
|
|
476
|
+
var se_UpdateHypervisorCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
477
|
+
const headers = sharedHeaders("UpdateHypervisor");
|
|
478
|
+
let body;
|
|
479
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
480
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
481
|
+
}, "se_UpdateHypervisorCommand");
|
|
482
|
+
var de_AssociateGatewayToServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
483
|
+
if (output.statusCode >= 300) {
|
|
484
|
+
return de_AssociateGatewayToServerCommandError(output, context);
|
|
485
|
+
}
|
|
486
|
+
const data = await parseBody(output.body, context);
|
|
487
|
+
let contents = {};
|
|
488
|
+
contents = (0, import_smithy_client._json)(data);
|
|
489
|
+
const response = {
|
|
490
|
+
$metadata: deserializeMetadata(output),
|
|
491
|
+
...contents
|
|
492
|
+
};
|
|
493
|
+
return response;
|
|
494
|
+
}, "de_AssociateGatewayToServerCommand");
|
|
495
|
+
var de_AssociateGatewayToServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
496
|
+
const parsedOutput = {
|
|
497
|
+
...output,
|
|
498
|
+
body: await parseErrorBody(output.body, context)
|
|
499
|
+
};
|
|
500
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
|
+
switch (errorCode) {
|
|
502
|
+
case "ConflictException":
|
|
503
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
504
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
505
|
+
case "InternalServerException":
|
|
506
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
507
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
508
|
+
case "ThrottlingException":
|
|
509
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
510
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
511
|
+
case "ValidationException":
|
|
512
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
513
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
514
|
+
default:
|
|
515
|
+
const parsedBody = parsedOutput.body;
|
|
516
|
+
return throwDefaultError({
|
|
517
|
+
output,
|
|
518
|
+
parsedBody,
|
|
519
|
+
errorCode
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
}, "de_AssociateGatewayToServerCommandError");
|
|
523
|
+
var de_CreateGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
524
|
+
if (output.statusCode >= 300) {
|
|
525
|
+
return de_CreateGatewayCommandError(output, context);
|
|
526
|
+
}
|
|
527
|
+
const data = await parseBody(output.body, context);
|
|
528
|
+
let contents = {};
|
|
529
|
+
contents = (0, import_smithy_client._json)(data);
|
|
530
|
+
const response = {
|
|
531
|
+
$metadata: deserializeMetadata(output),
|
|
532
|
+
...contents
|
|
533
|
+
};
|
|
534
|
+
return response;
|
|
535
|
+
}, "de_CreateGatewayCommand");
|
|
536
|
+
var de_CreateGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
537
|
+
const parsedOutput = {
|
|
538
|
+
...output,
|
|
539
|
+
body: await parseErrorBody(output.body, context)
|
|
540
|
+
};
|
|
541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
|
+
switch (errorCode) {
|
|
543
|
+
case "InternalServerException":
|
|
544
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
545
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
546
|
+
case "ThrottlingException":
|
|
547
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
548
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
549
|
+
case "ValidationException":
|
|
550
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
551
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
552
|
+
default:
|
|
553
|
+
const parsedBody = parsedOutput.body;
|
|
554
|
+
return throwDefaultError({
|
|
555
|
+
output,
|
|
556
|
+
parsedBody,
|
|
557
|
+
errorCode
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
}, "de_CreateGatewayCommandError");
|
|
561
|
+
var de_DeleteGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
562
|
+
if (output.statusCode >= 300) {
|
|
563
|
+
return de_DeleteGatewayCommandError(output, context);
|
|
564
|
+
}
|
|
565
|
+
const data = await parseBody(output.body, context);
|
|
566
|
+
let contents = {};
|
|
567
|
+
contents = (0, import_smithy_client._json)(data);
|
|
568
|
+
const response = {
|
|
569
|
+
$metadata: deserializeMetadata(output),
|
|
570
|
+
...contents
|
|
571
|
+
};
|
|
572
|
+
return response;
|
|
573
|
+
}, "de_DeleteGatewayCommand");
|
|
574
|
+
var de_DeleteGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
575
|
+
const parsedOutput = {
|
|
576
|
+
...output,
|
|
577
|
+
body: await parseErrorBody(output.body, context)
|
|
578
|
+
};
|
|
579
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
580
|
+
switch (errorCode) {
|
|
581
|
+
case "InternalServerException":
|
|
582
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
583
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
584
|
+
case "ResourceNotFoundException":
|
|
585
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
586
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
587
|
+
case "ThrottlingException":
|
|
588
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
589
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
590
|
+
case "ValidationException":
|
|
591
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
592
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
593
|
+
default:
|
|
594
|
+
const parsedBody = parsedOutput.body;
|
|
595
|
+
return throwDefaultError({
|
|
596
|
+
output,
|
|
597
|
+
parsedBody,
|
|
598
|
+
errorCode
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
}, "de_DeleteGatewayCommandError");
|
|
602
|
+
var de_DeleteHypervisorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
603
|
+
if (output.statusCode >= 300) {
|
|
604
|
+
return de_DeleteHypervisorCommandError(output, context);
|
|
605
|
+
}
|
|
606
|
+
const data = await parseBody(output.body, context);
|
|
607
|
+
let contents = {};
|
|
608
|
+
contents = (0, import_smithy_client._json)(data);
|
|
609
|
+
const response = {
|
|
610
|
+
$metadata: deserializeMetadata(output),
|
|
611
|
+
...contents
|
|
612
|
+
};
|
|
613
|
+
return response;
|
|
614
|
+
}, "de_DeleteHypervisorCommand");
|
|
615
|
+
var de_DeleteHypervisorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
616
|
+
const parsedOutput = {
|
|
617
|
+
...output,
|
|
618
|
+
body: await parseErrorBody(output.body, context)
|
|
619
|
+
};
|
|
620
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
|
+
switch (errorCode) {
|
|
622
|
+
case "AccessDeniedException":
|
|
623
|
+
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
624
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
625
|
+
case "ConflictException":
|
|
626
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
627
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
628
|
+
case "InternalServerException":
|
|
629
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
630
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
631
|
+
case "ResourceNotFoundException":
|
|
632
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
633
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
634
|
+
case "ThrottlingException":
|
|
635
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
636
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
637
|
+
case "ValidationException":
|
|
638
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
639
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
640
|
+
default:
|
|
641
|
+
const parsedBody = parsedOutput.body;
|
|
642
|
+
return throwDefaultError({
|
|
643
|
+
output,
|
|
644
|
+
parsedBody,
|
|
645
|
+
errorCode
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
}, "de_DeleteHypervisorCommandError");
|
|
649
|
+
var de_DisassociateGatewayFromServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
650
|
+
if (output.statusCode >= 300) {
|
|
651
|
+
return de_DisassociateGatewayFromServerCommandError(output, context);
|
|
652
|
+
}
|
|
653
|
+
const data = await parseBody(output.body, context);
|
|
654
|
+
let contents = {};
|
|
655
|
+
contents = (0, import_smithy_client._json)(data);
|
|
656
|
+
const response = {
|
|
657
|
+
$metadata: deserializeMetadata(output),
|
|
658
|
+
...contents
|
|
659
|
+
};
|
|
660
|
+
return response;
|
|
661
|
+
}, "de_DisassociateGatewayFromServerCommand");
|
|
662
|
+
var de_DisassociateGatewayFromServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
663
|
+
const parsedOutput = {
|
|
664
|
+
...output,
|
|
665
|
+
body: await parseErrorBody(output.body, context)
|
|
666
|
+
};
|
|
667
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
|
+
switch (errorCode) {
|
|
669
|
+
case "ConflictException":
|
|
670
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
671
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
672
|
+
case "InternalServerException":
|
|
673
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
674
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
675
|
+
case "ResourceNotFoundException":
|
|
676
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
677
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
678
|
+
case "ThrottlingException":
|
|
679
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
680
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
681
|
+
case "ValidationException":
|
|
682
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
683
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
|
+
default:
|
|
685
|
+
const parsedBody = parsedOutput.body;
|
|
686
|
+
return throwDefaultError({
|
|
687
|
+
output,
|
|
688
|
+
parsedBody,
|
|
689
|
+
errorCode
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
}, "de_DisassociateGatewayFromServerCommandError");
|
|
693
|
+
var de_GetBandwidthRateLimitScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
694
|
+
if (output.statusCode >= 300) {
|
|
695
|
+
return de_GetBandwidthRateLimitScheduleCommandError(output, context);
|
|
696
|
+
}
|
|
697
|
+
const data = await parseBody(output.body, context);
|
|
698
|
+
let contents = {};
|
|
699
|
+
contents = (0, import_smithy_client._json)(data);
|
|
700
|
+
const response = {
|
|
701
|
+
$metadata: deserializeMetadata(output),
|
|
702
|
+
...contents
|
|
703
|
+
};
|
|
704
|
+
return response;
|
|
705
|
+
}, "de_GetBandwidthRateLimitScheduleCommand");
|
|
706
|
+
var de_GetBandwidthRateLimitScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
707
|
+
const parsedOutput = {
|
|
708
|
+
...output,
|
|
709
|
+
body: await parseErrorBody(output.body, context)
|
|
710
|
+
};
|
|
711
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
712
|
+
switch (errorCode) {
|
|
713
|
+
case "InternalServerException":
|
|
714
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
715
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
716
|
+
case "ResourceNotFoundException":
|
|
717
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
718
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
719
|
+
case "ThrottlingException":
|
|
720
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
721
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
722
|
+
case "ValidationException":
|
|
723
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
724
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
+
default:
|
|
726
|
+
const parsedBody = parsedOutput.body;
|
|
727
|
+
return throwDefaultError({
|
|
728
|
+
output,
|
|
729
|
+
parsedBody,
|
|
730
|
+
errorCode
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
}, "de_GetBandwidthRateLimitScheduleCommandError");
|
|
734
|
+
var de_GetGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
735
|
+
if (output.statusCode >= 300) {
|
|
736
|
+
return de_GetGatewayCommandError(output, context);
|
|
737
|
+
}
|
|
738
|
+
const data = await parseBody(output.body, context);
|
|
739
|
+
let contents = {};
|
|
740
|
+
contents = de_GetGatewayOutput(data, context);
|
|
741
|
+
const response = {
|
|
742
|
+
$metadata: deserializeMetadata(output),
|
|
743
|
+
...contents
|
|
744
|
+
};
|
|
745
|
+
return response;
|
|
746
|
+
}, "de_GetGatewayCommand");
|
|
747
|
+
var de_GetGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
748
|
+
const parsedOutput = {
|
|
749
|
+
...output,
|
|
750
|
+
body: await parseErrorBody(output.body, context)
|
|
751
|
+
};
|
|
752
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
753
|
+
switch (errorCode) {
|
|
754
|
+
case "InternalServerException":
|
|
755
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
756
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
757
|
+
case "ResourceNotFoundException":
|
|
758
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
759
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
760
|
+
case "ThrottlingException":
|
|
761
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
762
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
763
|
+
case "ValidationException":
|
|
764
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
765
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
766
|
+
default:
|
|
767
|
+
const parsedBody = parsedOutput.body;
|
|
768
|
+
return throwDefaultError({
|
|
769
|
+
output,
|
|
770
|
+
parsedBody,
|
|
771
|
+
errorCode
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
}, "de_GetGatewayCommandError");
|
|
775
|
+
var de_GetHypervisorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
776
|
+
if (output.statusCode >= 300) {
|
|
777
|
+
return de_GetHypervisorCommandError(output, context);
|
|
778
|
+
}
|
|
779
|
+
const data = await parseBody(output.body, context);
|
|
780
|
+
let contents = {};
|
|
781
|
+
contents = de_GetHypervisorOutput(data, context);
|
|
782
|
+
const response = {
|
|
783
|
+
$metadata: deserializeMetadata(output),
|
|
784
|
+
...contents
|
|
785
|
+
};
|
|
786
|
+
return response;
|
|
787
|
+
}, "de_GetHypervisorCommand");
|
|
788
|
+
var de_GetHypervisorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
789
|
+
const parsedOutput = {
|
|
790
|
+
...output,
|
|
791
|
+
body: await parseErrorBody(output.body, context)
|
|
792
|
+
};
|
|
793
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
794
|
+
switch (errorCode) {
|
|
795
|
+
case "InternalServerException":
|
|
796
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
797
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
798
|
+
case "ResourceNotFoundException":
|
|
799
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
800
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
801
|
+
case "ThrottlingException":
|
|
802
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
803
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
804
|
+
case "ValidationException":
|
|
805
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
806
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
807
|
+
default:
|
|
808
|
+
const parsedBody = parsedOutput.body;
|
|
809
|
+
return throwDefaultError({
|
|
810
|
+
output,
|
|
811
|
+
parsedBody,
|
|
812
|
+
errorCode
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
}, "de_GetHypervisorCommandError");
|
|
816
|
+
var de_GetHypervisorPropertyMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
817
|
+
if (output.statusCode >= 300) {
|
|
818
|
+
return de_GetHypervisorPropertyMappingsCommandError(output, context);
|
|
819
|
+
}
|
|
820
|
+
const data = await parseBody(output.body, context);
|
|
821
|
+
let contents = {};
|
|
822
|
+
contents = (0, import_smithy_client._json)(data);
|
|
823
|
+
const response = {
|
|
824
|
+
$metadata: deserializeMetadata(output),
|
|
825
|
+
...contents
|
|
826
|
+
};
|
|
827
|
+
return response;
|
|
828
|
+
}, "de_GetHypervisorPropertyMappingsCommand");
|
|
829
|
+
var de_GetHypervisorPropertyMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
830
|
+
const parsedOutput = {
|
|
831
|
+
...output,
|
|
832
|
+
body: await parseErrorBody(output.body, context)
|
|
833
|
+
};
|
|
834
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
|
+
switch (errorCode) {
|
|
836
|
+
case "InternalServerException":
|
|
837
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
838
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
839
|
+
case "ResourceNotFoundException":
|
|
840
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
841
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
842
|
+
case "ThrottlingException":
|
|
843
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
844
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
845
|
+
case "ValidationException":
|
|
846
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
847
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
848
|
+
default:
|
|
849
|
+
const parsedBody = parsedOutput.body;
|
|
850
|
+
return throwDefaultError({
|
|
851
|
+
output,
|
|
852
|
+
parsedBody,
|
|
853
|
+
errorCode
|
|
854
|
+
});
|
|
855
|
+
}
|
|
856
|
+
}, "de_GetHypervisorPropertyMappingsCommandError");
|
|
857
|
+
var de_GetVirtualMachineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
858
|
+
if (output.statusCode >= 300) {
|
|
859
|
+
return de_GetVirtualMachineCommandError(output, context);
|
|
860
|
+
}
|
|
861
|
+
const data = await parseBody(output.body, context);
|
|
862
|
+
let contents = {};
|
|
863
|
+
contents = de_GetVirtualMachineOutput(data, context);
|
|
864
|
+
const response = {
|
|
865
|
+
$metadata: deserializeMetadata(output),
|
|
866
|
+
...contents
|
|
867
|
+
};
|
|
868
|
+
return response;
|
|
869
|
+
}, "de_GetVirtualMachineCommand");
|
|
870
|
+
var de_GetVirtualMachineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
|
+
const parsedOutput = {
|
|
872
|
+
...output,
|
|
873
|
+
body: await parseErrorBody(output.body, context)
|
|
874
|
+
};
|
|
875
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
|
+
switch (errorCode) {
|
|
877
|
+
case "InternalServerException":
|
|
878
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
879
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
880
|
+
case "ResourceNotFoundException":
|
|
881
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
882
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
883
|
+
case "ThrottlingException":
|
|
884
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
885
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
886
|
+
case "ValidationException":
|
|
887
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
888
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
889
|
+
default:
|
|
890
|
+
const parsedBody = parsedOutput.body;
|
|
891
|
+
return throwDefaultError({
|
|
892
|
+
output,
|
|
893
|
+
parsedBody,
|
|
894
|
+
errorCode
|
|
895
|
+
});
|
|
896
|
+
}
|
|
897
|
+
}, "de_GetVirtualMachineCommandError");
|
|
898
|
+
var de_ImportHypervisorConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
899
|
+
if (output.statusCode >= 300) {
|
|
900
|
+
return de_ImportHypervisorConfigurationCommandError(output, context);
|
|
901
|
+
}
|
|
902
|
+
const data = await parseBody(output.body, context);
|
|
903
|
+
let contents = {};
|
|
904
|
+
contents = (0, import_smithy_client._json)(data);
|
|
905
|
+
const response = {
|
|
906
|
+
$metadata: deserializeMetadata(output),
|
|
907
|
+
...contents
|
|
908
|
+
};
|
|
909
|
+
return response;
|
|
910
|
+
}, "de_ImportHypervisorConfigurationCommand");
|
|
911
|
+
var de_ImportHypervisorConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
912
|
+
const parsedOutput = {
|
|
913
|
+
...output,
|
|
914
|
+
body: await parseErrorBody(output.body, context)
|
|
915
|
+
};
|
|
916
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
|
+
switch (errorCode) {
|
|
918
|
+
case "AccessDeniedException":
|
|
919
|
+
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
920
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
921
|
+
case "ConflictException":
|
|
922
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
923
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
924
|
+
case "InternalServerException":
|
|
925
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
926
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
927
|
+
case "ThrottlingException":
|
|
928
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
929
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
930
|
+
case "ValidationException":
|
|
931
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
932
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
933
|
+
default:
|
|
934
|
+
const parsedBody = parsedOutput.body;
|
|
935
|
+
return throwDefaultError({
|
|
936
|
+
output,
|
|
937
|
+
parsedBody,
|
|
938
|
+
errorCode
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
}, "de_ImportHypervisorConfigurationCommandError");
|
|
942
|
+
var de_ListGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
943
|
+
if (output.statusCode >= 300) {
|
|
944
|
+
return de_ListGatewaysCommandError(output, context);
|
|
945
|
+
}
|
|
946
|
+
const data = await parseBody(output.body, context);
|
|
947
|
+
let contents = {};
|
|
948
|
+
contents = de_ListGatewaysOutput(data, context);
|
|
949
|
+
const response = {
|
|
950
|
+
$metadata: deserializeMetadata(output),
|
|
951
|
+
...contents
|
|
952
|
+
};
|
|
953
|
+
return response;
|
|
954
|
+
}, "de_ListGatewaysCommand");
|
|
955
|
+
var de_ListGatewaysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
956
|
+
const parsedOutput = {
|
|
957
|
+
...output,
|
|
958
|
+
body: await parseErrorBody(output.body, context)
|
|
959
|
+
};
|
|
960
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
+
switch (errorCode) {
|
|
962
|
+
case "InternalServerException":
|
|
963
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
964
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
965
|
+
case "ThrottlingException":
|
|
966
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
967
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
968
|
+
case "ValidationException":
|
|
969
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
970
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
971
|
+
default:
|
|
972
|
+
const parsedBody = parsedOutput.body;
|
|
973
|
+
return throwDefaultError({
|
|
974
|
+
output,
|
|
975
|
+
parsedBody,
|
|
976
|
+
errorCode
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
}, "de_ListGatewaysCommandError");
|
|
980
|
+
var de_ListHypervisorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
981
|
+
if (output.statusCode >= 300) {
|
|
982
|
+
return de_ListHypervisorsCommandError(output, context);
|
|
983
|
+
}
|
|
984
|
+
const data = await parseBody(output.body, context);
|
|
985
|
+
let contents = {};
|
|
986
|
+
contents = (0, import_smithy_client._json)(data);
|
|
987
|
+
const response = {
|
|
988
|
+
$metadata: deserializeMetadata(output),
|
|
989
|
+
...contents
|
|
990
|
+
};
|
|
991
|
+
return response;
|
|
992
|
+
}, "de_ListHypervisorsCommand");
|
|
993
|
+
var de_ListHypervisorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
994
|
+
const parsedOutput = {
|
|
995
|
+
...output,
|
|
996
|
+
body: await parseErrorBody(output.body, context)
|
|
997
|
+
};
|
|
998
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
+
switch (errorCode) {
|
|
1000
|
+
case "InternalServerException":
|
|
1001
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1002
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1003
|
+
case "ThrottlingException":
|
|
1004
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1005
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1006
|
+
case "ValidationException":
|
|
1007
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1008
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1009
|
+
default:
|
|
1010
|
+
const parsedBody = parsedOutput.body;
|
|
1011
|
+
return throwDefaultError({
|
|
1012
|
+
output,
|
|
1013
|
+
parsedBody,
|
|
1014
|
+
errorCode
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
}, "de_ListHypervisorsCommandError");
|
|
1018
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1019
|
+
if (output.statusCode >= 300) {
|
|
1020
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1021
|
+
}
|
|
1022
|
+
const data = await parseBody(output.body, context);
|
|
1023
|
+
let contents = {};
|
|
1024
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1025
|
+
const response = {
|
|
1026
|
+
$metadata: deserializeMetadata(output),
|
|
1027
|
+
...contents
|
|
1028
|
+
};
|
|
1029
|
+
return response;
|
|
1030
|
+
}, "de_ListTagsForResourceCommand");
|
|
1031
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1032
|
+
const parsedOutput = {
|
|
1033
|
+
...output,
|
|
1034
|
+
body: await parseErrorBody(output.body, context)
|
|
1035
|
+
};
|
|
1036
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
|
+
switch (errorCode) {
|
|
1038
|
+
case "InternalServerException":
|
|
1039
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1040
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1041
|
+
case "ResourceNotFoundException":
|
|
1042
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1043
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1044
|
+
case "ThrottlingException":
|
|
1045
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1046
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1047
|
+
case "ValidationException":
|
|
1048
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1049
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1050
|
+
default:
|
|
1051
|
+
const parsedBody = parsedOutput.body;
|
|
1052
|
+
return throwDefaultError({
|
|
1053
|
+
output,
|
|
1054
|
+
parsedBody,
|
|
1055
|
+
errorCode
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1059
|
+
var de_ListVirtualMachinesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1060
|
+
if (output.statusCode >= 300) {
|
|
1061
|
+
return de_ListVirtualMachinesCommandError(output, context);
|
|
1062
|
+
}
|
|
1063
|
+
const data = await parseBody(output.body, context);
|
|
1064
|
+
let contents = {};
|
|
1065
|
+
contents = de_ListVirtualMachinesOutput(data, context);
|
|
1066
|
+
const response = {
|
|
1067
|
+
$metadata: deserializeMetadata(output),
|
|
1068
|
+
...contents
|
|
1069
|
+
};
|
|
1070
|
+
return response;
|
|
1071
|
+
}, "de_ListVirtualMachinesCommand");
|
|
1072
|
+
var de_ListVirtualMachinesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1073
|
+
const parsedOutput = {
|
|
1074
|
+
...output,
|
|
1075
|
+
body: await parseErrorBody(output.body, context)
|
|
1076
|
+
};
|
|
1077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
|
+
switch (errorCode) {
|
|
1079
|
+
case "InternalServerException":
|
|
1080
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1081
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1082
|
+
case "ThrottlingException":
|
|
1083
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1084
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1085
|
+
case "ValidationException":
|
|
1086
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1087
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1088
|
+
default:
|
|
1089
|
+
const parsedBody = parsedOutput.body;
|
|
1090
|
+
return throwDefaultError({
|
|
1091
|
+
output,
|
|
1092
|
+
parsedBody,
|
|
1093
|
+
errorCode
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
1096
|
+
}, "de_ListVirtualMachinesCommandError");
|
|
1097
|
+
var de_PutBandwidthRateLimitScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1098
|
+
if (output.statusCode >= 300) {
|
|
1099
|
+
return de_PutBandwidthRateLimitScheduleCommandError(output, context);
|
|
1100
|
+
}
|
|
1101
|
+
const data = await parseBody(output.body, context);
|
|
1102
|
+
let contents = {};
|
|
1103
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1104
|
+
const response = {
|
|
1105
|
+
$metadata: deserializeMetadata(output),
|
|
1106
|
+
...contents
|
|
1107
|
+
};
|
|
1108
|
+
return response;
|
|
1109
|
+
}, "de_PutBandwidthRateLimitScheduleCommand");
|
|
1110
|
+
var de_PutBandwidthRateLimitScheduleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1111
|
+
const parsedOutput = {
|
|
1112
|
+
...output,
|
|
1113
|
+
body: await parseErrorBody(output.body, context)
|
|
1114
|
+
};
|
|
1115
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1116
|
+
switch (errorCode) {
|
|
1117
|
+
case "InternalServerException":
|
|
1118
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1119
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1120
|
+
case "ResourceNotFoundException":
|
|
1121
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1122
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1123
|
+
case "ThrottlingException":
|
|
1124
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1125
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1126
|
+
case "ValidationException":
|
|
1127
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1128
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1129
|
+
default:
|
|
1130
|
+
const parsedBody = parsedOutput.body;
|
|
1131
|
+
return throwDefaultError({
|
|
1132
|
+
output,
|
|
1133
|
+
parsedBody,
|
|
1134
|
+
errorCode
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
}, "de_PutBandwidthRateLimitScheduleCommandError");
|
|
1138
|
+
var de_PutHypervisorPropertyMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1139
|
+
if (output.statusCode >= 300) {
|
|
1140
|
+
return de_PutHypervisorPropertyMappingsCommandError(output, context);
|
|
1141
|
+
}
|
|
1142
|
+
const data = await parseBody(output.body, context);
|
|
1143
|
+
let contents = {};
|
|
1144
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1145
|
+
const response = {
|
|
1146
|
+
$metadata: deserializeMetadata(output),
|
|
1147
|
+
...contents
|
|
1148
|
+
};
|
|
1149
|
+
return response;
|
|
1150
|
+
}, "de_PutHypervisorPropertyMappingsCommand");
|
|
1151
|
+
var de_PutHypervisorPropertyMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1152
|
+
const parsedOutput = {
|
|
1153
|
+
...output,
|
|
1154
|
+
body: await parseErrorBody(output.body, context)
|
|
1155
|
+
};
|
|
1156
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
|
+
switch (errorCode) {
|
|
1158
|
+
case "AccessDeniedException":
|
|
1159
|
+
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
1160
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1161
|
+
case "ConflictException":
|
|
1162
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
1163
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1164
|
+
case "InternalServerException":
|
|
1165
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1166
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1167
|
+
case "ResourceNotFoundException":
|
|
1168
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1169
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1170
|
+
case "ThrottlingException":
|
|
1171
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1172
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1173
|
+
case "ValidationException":
|
|
1174
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1175
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1176
|
+
default:
|
|
1177
|
+
const parsedBody = parsedOutput.body;
|
|
1178
|
+
return throwDefaultError({
|
|
1179
|
+
output,
|
|
1180
|
+
parsedBody,
|
|
1181
|
+
errorCode
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
}, "de_PutHypervisorPropertyMappingsCommandError");
|
|
1185
|
+
var de_PutMaintenanceStartTimeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1186
|
+
if (output.statusCode >= 300) {
|
|
1187
|
+
return de_PutMaintenanceStartTimeCommandError(output, context);
|
|
1188
|
+
}
|
|
1189
|
+
const data = await parseBody(output.body, context);
|
|
1190
|
+
let contents = {};
|
|
1191
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1192
|
+
const response = {
|
|
1193
|
+
$metadata: deserializeMetadata(output),
|
|
1194
|
+
...contents
|
|
1195
|
+
};
|
|
1196
|
+
return response;
|
|
1197
|
+
}, "de_PutMaintenanceStartTimeCommand");
|
|
1198
|
+
var de_PutMaintenanceStartTimeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1199
|
+
const parsedOutput = {
|
|
1200
|
+
...output,
|
|
1201
|
+
body: await parseErrorBody(output.body, context)
|
|
1202
|
+
};
|
|
1203
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
+
switch (errorCode) {
|
|
1205
|
+
case "ConflictException":
|
|
1206
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
1207
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1208
|
+
case "InternalServerException":
|
|
1209
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1210
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1211
|
+
case "ResourceNotFoundException":
|
|
1212
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1213
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1214
|
+
case "ThrottlingException":
|
|
1215
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1216
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1217
|
+
case "ValidationException":
|
|
1218
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1219
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1220
|
+
default:
|
|
1221
|
+
const parsedBody = parsedOutput.body;
|
|
1222
|
+
return throwDefaultError({
|
|
1223
|
+
output,
|
|
1224
|
+
parsedBody,
|
|
1225
|
+
errorCode
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
}, "de_PutMaintenanceStartTimeCommandError");
|
|
1229
|
+
var de_StartVirtualMachinesMetadataSyncCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1230
|
+
if (output.statusCode >= 300) {
|
|
1231
|
+
return de_StartVirtualMachinesMetadataSyncCommandError(output, context);
|
|
1232
|
+
}
|
|
1233
|
+
const data = await parseBody(output.body, context);
|
|
1234
|
+
let contents = {};
|
|
1235
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1236
|
+
const response = {
|
|
1237
|
+
$metadata: deserializeMetadata(output),
|
|
1238
|
+
...contents
|
|
1239
|
+
};
|
|
1240
|
+
return response;
|
|
1241
|
+
}, "de_StartVirtualMachinesMetadataSyncCommand");
|
|
1242
|
+
var de_StartVirtualMachinesMetadataSyncCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1243
|
+
const parsedOutput = {
|
|
1244
|
+
...output,
|
|
1245
|
+
body: await parseErrorBody(output.body, context)
|
|
1246
|
+
};
|
|
1247
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
|
+
switch (errorCode) {
|
|
1249
|
+
case "AccessDeniedException":
|
|
1250
|
+
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
1251
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1252
|
+
case "InternalServerException":
|
|
1253
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1254
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1255
|
+
case "ResourceNotFoundException":
|
|
1256
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1257
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1258
|
+
case "ThrottlingException":
|
|
1259
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1260
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1261
|
+
case "ValidationException":
|
|
1262
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1263
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1264
|
+
default:
|
|
1265
|
+
const parsedBody = parsedOutput.body;
|
|
1266
|
+
return throwDefaultError({
|
|
1267
|
+
output,
|
|
1268
|
+
parsedBody,
|
|
1269
|
+
errorCode
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
}, "de_StartVirtualMachinesMetadataSyncCommandError");
|
|
1273
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1274
|
+
if (output.statusCode >= 300) {
|
|
1275
|
+
return de_TagResourceCommandError(output, context);
|
|
1276
|
+
}
|
|
1277
|
+
const data = await parseBody(output.body, context);
|
|
1278
|
+
let contents = {};
|
|
1279
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1280
|
+
const response = {
|
|
1281
|
+
$metadata: deserializeMetadata(output),
|
|
1282
|
+
...contents
|
|
1283
|
+
};
|
|
1284
|
+
return response;
|
|
1285
|
+
}, "de_TagResourceCommand");
|
|
1286
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1287
|
+
const parsedOutput = {
|
|
1288
|
+
...output,
|
|
1289
|
+
body: await parseErrorBody(output.body, context)
|
|
1290
|
+
};
|
|
1291
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
|
+
switch (errorCode) {
|
|
1293
|
+
case "InternalServerException":
|
|
1294
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1295
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1296
|
+
case "ResourceNotFoundException":
|
|
1297
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1298
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1299
|
+
case "ThrottlingException":
|
|
1300
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1301
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1302
|
+
case "ValidationException":
|
|
1303
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1304
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1305
|
+
default:
|
|
1306
|
+
const parsedBody = parsedOutput.body;
|
|
1307
|
+
return throwDefaultError({
|
|
1308
|
+
output,
|
|
1309
|
+
parsedBody,
|
|
1310
|
+
errorCode
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
1313
|
+
}, "de_TagResourceCommandError");
|
|
1314
|
+
var de_TestHypervisorConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1315
|
+
if (output.statusCode >= 300) {
|
|
1316
|
+
return de_TestHypervisorConfigurationCommandError(output, context);
|
|
1317
|
+
}
|
|
1318
|
+
const data = await parseBody(output.body, context);
|
|
1319
|
+
let contents = {};
|
|
1320
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1321
|
+
const response = {
|
|
1322
|
+
$metadata: deserializeMetadata(output),
|
|
1323
|
+
...contents
|
|
1324
|
+
};
|
|
1325
|
+
return response;
|
|
1326
|
+
}, "de_TestHypervisorConfigurationCommand");
|
|
1327
|
+
var de_TestHypervisorConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1328
|
+
const parsedOutput = {
|
|
1329
|
+
...output,
|
|
1330
|
+
body: await parseErrorBody(output.body, context)
|
|
1331
|
+
};
|
|
1332
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
+
switch (errorCode) {
|
|
1334
|
+
case "ConflictException":
|
|
1335
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
1336
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1337
|
+
case "InternalServerException":
|
|
1338
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1339
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1340
|
+
case "ResourceNotFoundException":
|
|
1341
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1342
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1343
|
+
case "ThrottlingException":
|
|
1344
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1345
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1346
|
+
case "ValidationException":
|
|
1347
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1348
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1349
|
+
default:
|
|
1350
|
+
const parsedBody = parsedOutput.body;
|
|
1351
|
+
return throwDefaultError({
|
|
1352
|
+
output,
|
|
1353
|
+
parsedBody,
|
|
1354
|
+
errorCode
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
}, "de_TestHypervisorConfigurationCommandError");
|
|
1358
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1359
|
+
if (output.statusCode >= 300) {
|
|
1360
|
+
return de_UntagResourceCommandError(output, context);
|
|
1361
|
+
}
|
|
1362
|
+
const data = await parseBody(output.body, context);
|
|
1363
|
+
let contents = {};
|
|
1364
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1365
|
+
const response = {
|
|
1366
|
+
$metadata: deserializeMetadata(output),
|
|
1367
|
+
...contents
|
|
1368
|
+
};
|
|
1369
|
+
return response;
|
|
1370
|
+
}, "de_UntagResourceCommand");
|
|
1371
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1372
|
+
const parsedOutput = {
|
|
1373
|
+
...output,
|
|
1374
|
+
body: await parseErrorBody(output.body, context)
|
|
1375
|
+
};
|
|
1376
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
+
switch (errorCode) {
|
|
1378
|
+
case "InternalServerException":
|
|
1379
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1380
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1381
|
+
case "ResourceNotFoundException":
|
|
1382
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1383
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1384
|
+
case "ThrottlingException":
|
|
1385
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1386
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1387
|
+
case "ValidationException":
|
|
1388
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1389
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1390
|
+
default:
|
|
1391
|
+
const parsedBody = parsedOutput.body;
|
|
1392
|
+
return throwDefaultError({
|
|
1393
|
+
output,
|
|
1394
|
+
parsedBody,
|
|
1395
|
+
errorCode
|
|
1396
|
+
});
|
|
1397
|
+
}
|
|
1398
|
+
}, "de_UntagResourceCommandError");
|
|
1399
|
+
var de_UpdateGatewayInformationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1400
|
+
if (output.statusCode >= 300) {
|
|
1401
|
+
return de_UpdateGatewayInformationCommandError(output, context);
|
|
1402
|
+
}
|
|
1403
|
+
const data = await parseBody(output.body, context);
|
|
1404
|
+
let contents = {};
|
|
1405
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1406
|
+
const response = {
|
|
1407
|
+
$metadata: deserializeMetadata(output),
|
|
1408
|
+
...contents
|
|
1409
|
+
};
|
|
1410
|
+
return response;
|
|
1411
|
+
}, "de_UpdateGatewayInformationCommand");
|
|
1412
|
+
var de_UpdateGatewayInformationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1413
|
+
const parsedOutput = {
|
|
1414
|
+
...output,
|
|
1415
|
+
body: await parseErrorBody(output.body, context)
|
|
1416
|
+
};
|
|
1417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
+
switch (errorCode) {
|
|
1419
|
+
case "ConflictException":
|
|
1420
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
1421
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1422
|
+
case "InternalServerException":
|
|
1423
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1424
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1425
|
+
case "ResourceNotFoundException":
|
|
1426
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1427
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1428
|
+
case "ThrottlingException":
|
|
1429
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1430
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1431
|
+
case "ValidationException":
|
|
1432
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1433
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1434
|
+
default:
|
|
1435
|
+
const parsedBody = parsedOutput.body;
|
|
1436
|
+
return throwDefaultError({
|
|
1437
|
+
output,
|
|
1438
|
+
parsedBody,
|
|
1439
|
+
errorCode
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
}, "de_UpdateGatewayInformationCommandError");
|
|
1443
|
+
var de_UpdateGatewaySoftwareNowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1444
|
+
if (output.statusCode >= 300) {
|
|
1445
|
+
return de_UpdateGatewaySoftwareNowCommandError(output, context);
|
|
1446
|
+
}
|
|
1447
|
+
const data = await parseBody(output.body, context);
|
|
1448
|
+
let contents = {};
|
|
1449
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1450
|
+
const response = {
|
|
1451
|
+
$metadata: deserializeMetadata(output),
|
|
1452
|
+
...contents
|
|
1453
|
+
};
|
|
1454
|
+
return response;
|
|
1455
|
+
}, "de_UpdateGatewaySoftwareNowCommand");
|
|
1456
|
+
var de_UpdateGatewaySoftwareNowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1457
|
+
const parsedOutput = {
|
|
1458
|
+
...output,
|
|
1459
|
+
body: await parseErrorBody(output.body, context)
|
|
1460
|
+
};
|
|
1461
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
|
+
switch (errorCode) {
|
|
1463
|
+
case "InternalServerException":
|
|
1464
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1465
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1466
|
+
case "ResourceNotFoundException":
|
|
1467
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1468
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1469
|
+
case "ThrottlingException":
|
|
1470
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1471
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1472
|
+
case "ValidationException":
|
|
1473
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1474
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1475
|
+
default:
|
|
1476
|
+
const parsedBody = parsedOutput.body;
|
|
1477
|
+
return throwDefaultError({
|
|
1478
|
+
output,
|
|
1479
|
+
parsedBody,
|
|
1480
|
+
errorCode
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
}, "de_UpdateGatewaySoftwareNowCommandError");
|
|
1484
|
+
var de_UpdateHypervisorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1485
|
+
if (output.statusCode >= 300) {
|
|
1486
|
+
return de_UpdateHypervisorCommandError(output, context);
|
|
1487
|
+
}
|
|
1488
|
+
const data = await parseBody(output.body, context);
|
|
1489
|
+
let contents = {};
|
|
1490
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1491
|
+
const response = {
|
|
1492
|
+
$metadata: deserializeMetadata(output),
|
|
1493
|
+
...contents
|
|
1494
|
+
};
|
|
1495
|
+
return response;
|
|
1496
|
+
}, "de_UpdateHypervisorCommand");
|
|
1497
|
+
var de_UpdateHypervisorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1498
|
+
const parsedOutput = {
|
|
1499
|
+
...output,
|
|
1500
|
+
body: await parseErrorBody(output.body, context)
|
|
1501
|
+
};
|
|
1502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
|
+
switch (errorCode) {
|
|
1504
|
+
case "AccessDeniedException":
|
|
1505
|
+
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
1506
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1507
|
+
case "ConflictException":
|
|
1508
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
1509
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1510
|
+
case "InternalServerException":
|
|
1511
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1512
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1513
|
+
case "ResourceNotFoundException":
|
|
1514
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1515
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1516
|
+
case "ThrottlingException":
|
|
1517
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1518
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1519
|
+
case "ValidationException":
|
|
1520
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1521
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1522
|
+
default:
|
|
1523
|
+
const parsedBody = parsedOutput.body;
|
|
1524
|
+
return throwDefaultError({
|
|
1525
|
+
output,
|
|
1526
|
+
parsedBody,
|
|
1527
|
+
errorCode
|
|
1528
|
+
});
|
|
1529
|
+
}
|
|
1530
|
+
}, "de_UpdateHypervisorCommandError");
|
|
1531
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1532
|
+
const body = parsedOutput.body;
|
|
1533
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1534
|
+
const exception = new AccessDeniedException({
|
|
1535
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1536
|
+
...deserialized
|
|
1537
|
+
});
|
|
1538
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1539
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1540
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1541
|
+
const body = parsedOutput.body;
|
|
1542
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1543
|
+
const exception = new ConflictException({
|
|
1544
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1545
|
+
...deserialized
|
|
1546
|
+
});
|
|
1547
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1548
|
+
}, "de_ConflictExceptionRes");
|
|
1549
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1550
|
+
const body = parsedOutput.body;
|
|
1551
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1552
|
+
const exception = new InternalServerException({
|
|
1553
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1554
|
+
...deserialized
|
|
1555
|
+
});
|
|
1556
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1557
|
+
}, "de_InternalServerExceptionRes");
|
|
1558
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1559
|
+
const body = parsedOutput.body;
|
|
1560
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1561
|
+
const exception = new ResourceNotFoundException({
|
|
1562
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1563
|
+
...deserialized
|
|
1564
|
+
});
|
|
1565
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1566
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1567
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1568
|
+
const body = parsedOutput.body;
|
|
1569
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1570
|
+
const exception = new ThrottlingException({
|
|
1571
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1572
|
+
...deserialized
|
|
1573
|
+
});
|
|
1574
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1575
|
+
}, "de_ThrottlingExceptionRes");
|
|
1576
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1577
|
+
const body = parsedOutput.body;
|
|
1578
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1579
|
+
const exception = new ValidationException({
|
|
1580
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1581
|
+
...deserialized
|
|
1582
|
+
});
|
|
1583
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1584
|
+
}, "de_ValidationExceptionRes");
|
|
1585
|
+
var de_Gateway = /* @__PURE__ */ __name((output, context) => {
|
|
1586
|
+
return (0, import_smithy_client.take)(output, {
|
|
1587
|
+
GatewayArn: import_smithy_client.expectString,
|
|
1588
|
+
GatewayDisplayName: import_smithy_client.expectString,
|
|
1589
|
+
GatewayType: import_smithy_client.expectString,
|
|
1590
|
+
HypervisorId: import_smithy_client.expectString,
|
|
1591
|
+
LastSeenTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1592
|
+
});
|
|
1593
|
+
}, "de_Gateway");
|
|
1594
|
+
var de_GatewayDetails = /* @__PURE__ */ __name((output, context) => {
|
|
1595
|
+
return (0, import_smithy_client.take)(output, {
|
|
1596
|
+
GatewayArn: import_smithy_client.expectString,
|
|
1597
|
+
GatewayDisplayName: import_smithy_client.expectString,
|
|
1598
|
+
GatewayType: import_smithy_client.expectString,
|
|
1599
|
+
HypervisorId: import_smithy_client.expectString,
|
|
1600
|
+
LastSeenTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1601
|
+
MaintenanceStartTime: import_smithy_client._json,
|
|
1602
|
+
NextUpdateAvailabilityTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1603
|
+
VpcEndpoint: import_smithy_client.expectString
|
|
1604
|
+
});
|
|
1605
|
+
}, "de_GatewayDetails");
|
|
1606
|
+
var de_Gateways = /* @__PURE__ */ __name((output, context) => {
|
|
1607
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1608
|
+
return de_Gateway(entry, context);
|
|
1609
|
+
});
|
|
1610
|
+
return retVal;
|
|
1611
|
+
}, "de_Gateways");
|
|
1612
|
+
var de_GetGatewayOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1613
|
+
return (0, import_smithy_client.take)(output, {
|
|
1614
|
+
Gateway: (_) => de_GatewayDetails(_, context)
|
|
1615
|
+
});
|
|
1616
|
+
}, "de_GetGatewayOutput");
|
|
1617
|
+
var de_GetHypervisorOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1618
|
+
return (0, import_smithy_client.take)(output, {
|
|
1619
|
+
Hypervisor: (_) => de_HypervisorDetails(_, context)
|
|
1620
|
+
});
|
|
1621
|
+
}, "de_GetHypervisorOutput");
|
|
1622
|
+
var de_GetVirtualMachineOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1623
|
+
return (0, import_smithy_client.take)(output, {
|
|
1624
|
+
VirtualMachine: (_) => de_VirtualMachineDetails(_, context)
|
|
1625
|
+
});
|
|
1626
|
+
}, "de_GetVirtualMachineOutput");
|
|
1627
|
+
var de_HypervisorDetails = /* @__PURE__ */ __name((output, context) => {
|
|
1628
|
+
return (0, import_smithy_client.take)(output, {
|
|
1629
|
+
Host: import_smithy_client.expectString,
|
|
1630
|
+
HypervisorArn: import_smithy_client.expectString,
|
|
1631
|
+
KmsKeyArn: import_smithy_client.expectString,
|
|
1632
|
+
LastSuccessfulMetadataSyncTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1633
|
+
LatestMetadataSyncStatus: import_smithy_client.expectString,
|
|
1634
|
+
LatestMetadataSyncStatusMessage: import_smithy_client.expectString,
|
|
1635
|
+
LogGroupArn: import_smithy_client.expectString,
|
|
1636
|
+
Name: import_smithy_client.expectString,
|
|
1637
|
+
State: import_smithy_client.expectString
|
|
1638
|
+
});
|
|
1639
|
+
}, "de_HypervisorDetails");
|
|
1640
|
+
var de_ListGatewaysOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1641
|
+
return (0, import_smithy_client.take)(output, {
|
|
1642
|
+
Gateways: (_) => de_Gateways(_, context),
|
|
1643
|
+
NextToken: import_smithy_client.expectString
|
|
1644
|
+
});
|
|
1645
|
+
}, "de_ListGatewaysOutput");
|
|
1646
|
+
var de_ListVirtualMachinesOutput = /* @__PURE__ */ __name((output, context) => {
|
|
1647
|
+
return (0, import_smithy_client.take)(output, {
|
|
1648
|
+
NextToken: import_smithy_client.expectString,
|
|
1649
|
+
VirtualMachines: (_) => de_VirtualMachines(_, context)
|
|
1650
|
+
});
|
|
1651
|
+
}, "de_ListVirtualMachinesOutput");
|
|
1652
|
+
var de_VirtualMachine = /* @__PURE__ */ __name((output, context) => {
|
|
1653
|
+
return (0, import_smithy_client.take)(output, {
|
|
1654
|
+
HostName: import_smithy_client.expectString,
|
|
1655
|
+
HypervisorId: import_smithy_client.expectString,
|
|
1656
|
+
LastBackupDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1657
|
+
Name: import_smithy_client.expectString,
|
|
1658
|
+
Path: import_smithy_client.expectString,
|
|
1659
|
+
ResourceArn: import_smithy_client.expectString
|
|
1660
|
+
});
|
|
1661
|
+
}, "de_VirtualMachine");
|
|
1662
|
+
var de_VirtualMachineDetails = /* @__PURE__ */ __name((output, context) => {
|
|
1663
|
+
return (0, import_smithy_client.take)(output, {
|
|
1664
|
+
HostName: import_smithy_client.expectString,
|
|
1665
|
+
HypervisorId: import_smithy_client.expectString,
|
|
1666
|
+
LastBackupDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1667
|
+
Name: import_smithy_client.expectString,
|
|
1668
|
+
Path: import_smithy_client.expectString,
|
|
1669
|
+
ResourceArn: import_smithy_client.expectString,
|
|
1670
|
+
VmwareTags: import_smithy_client._json
|
|
1671
|
+
});
|
|
1672
|
+
}, "de_VirtualMachineDetails");
|
|
1673
|
+
var de_VirtualMachines = /* @__PURE__ */ __name((output, context) => {
|
|
1674
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1675
|
+
return de_VirtualMachine(entry, context);
|
|
1676
|
+
});
|
|
1677
|
+
return retVal;
|
|
1678
|
+
}, "de_VirtualMachines");
|
|
1679
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1680
|
+
httpStatusCode: output.statusCode,
|
|
1681
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1682
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1683
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1684
|
+
}), "deserializeMetadata");
|
|
1685
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1686
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(BackupGatewayServiceException);
|
|
1687
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1688
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1689
|
+
const contents = {
|
|
1690
|
+
protocol,
|
|
1691
|
+
hostname,
|
|
1692
|
+
port,
|
|
1693
|
+
method: "POST",
|
|
1694
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1695
|
+
headers
|
|
1696
|
+
};
|
|
1697
|
+
if (resolvedHostname !== void 0) {
|
|
1698
|
+
contents.hostname = resolvedHostname;
|
|
1699
|
+
}
|
|
1700
|
+
if (body !== void 0) {
|
|
1701
|
+
contents.body = body;
|
|
1702
|
+
}
|
|
1703
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
1704
|
+
}, "buildHttpRpcRequest");
|
|
1705
|
+
function sharedHeaders(operation) {
|
|
1706
|
+
return {
|
|
1707
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1708
|
+
"x-amz-target": `BackupOnPremises_v20210101.${operation}`
|
|
1709
|
+
};
|
|
1710
|
+
}
|
|
1711
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
1712
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1713
|
+
if (encoded.length) {
|
|
1714
|
+
return JSON.parse(encoded);
|
|
1715
|
+
}
|
|
1716
|
+
return {};
|
|
1717
|
+
}), "parseBody");
|
|
1718
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1719
|
+
const value = await parseBody(errorBody, context);
|
|
1720
|
+
value.message = value.message ?? value.Message;
|
|
1721
|
+
return value;
|
|
1722
|
+
}, "parseErrorBody");
|
|
1723
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1724
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1725
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1726
|
+
let cleanValue = rawValue;
|
|
1727
|
+
if (typeof cleanValue === "number") {
|
|
1728
|
+
cleanValue = cleanValue.toString();
|
|
1729
|
+
}
|
|
1730
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1731
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1732
|
+
}
|
|
1733
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1734
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1735
|
+
}
|
|
1736
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1737
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1738
|
+
}
|
|
1739
|
+
return cleanValue;
|
|
1740
|
+
}, "sanitizeErrorCode");
|
|
1741
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1742
|
+
if (headerKey !== void 0) {
|
|
1743
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1744
|
+
}
|
|
1745
|
+
if (data.code !== void 0) {
|
|
1746
|
+
return sanitizeErrorCode(data.code);
|
|
1747
|
+
}
|
|
1748
|
+
if (data["__type"] !== void 0) {
|
|
1749
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1750
|
+
}
|
|
1751
|
+
}, "loadRestJsonErrorCode");
|
|
1752
|
+
|
|
1753
|
+
// src/commands/AssociateGatewayToServerCommand.ts
|
|
1754
|
+
var _AssociateGatewayToServerCommand = class _AssociateGatewayToServerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1755
|
+
...commonParams
|
|
1756
|
+
}).m(function(Command, cs, config, o) {
|
|
1757
|
+
return [
|
|
1758
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1759
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1760
|
+
];
|
|
1761
|
+
}).s("BackupOnPremises_v20210101", "AssociateGatewayToServer", {}).n("BackupGatewayClient", "AssociateGatewayToServerCommand").f(void 0, void 0).ser(se_AssociateGatewayToServerCommand).de(de_AssociateGatewayToServerCommand).build() {
|
|
1762
|
+
};
|
|
1763
|
+
__name(_AssociateGatewayToServerCommand, "AssociateGatewayToServerCommand");
|
|
1764
|
+
var AssociateGatewayToServerCommand = _AssociateGatewayToServerCommand;
|
|
1765
|
+
|
|
1766
|
+
// src/commands/CreateGatewayCommand.ts
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
|
|
1771
|
+
var _CreateGatewayCommand = class _CreateGatewayCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1772
|
+
...commonParams
|
|
1773
|
+
}).m(function(Command, cs, config, o) {
|
|
1774
|
+
return [
|
|
1775
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1776
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1777
|
+
];
|
|
1778
|
+
}).s("BackupOnPremises_v20210101", "CreateGateway", {}).n("BackupGatewayClient", "CreateGatewayCommand").f(void 0, void 0).ser(se_CreateGatewayCommand).de(de_CreateGatewayCommand).build() {
|
|
1779
|
+
};
|
|
1780
|
+
__name(_CreateGatewayCommand, "CreateGatewayCommand");
|
|
1781
|
+
var CreateGatewayCommand = _CreateGatewayCommand;
|
|
1782
|
+
|
|
1783
|
+
// src/commands/DeleteGatewayCommand.ts
|
|
1784
|
+
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
var _DeleteGatewayCommand = class _DeleteGatewayCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1789
|
+
...commonParams
|
|
1790
|
+
}).m(function(Command, cs, config, o) {
|
|
1791
|
+
return [
|
|
1792
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1793
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1794
|
+
];
|
|
1795
|
+
}).s("BackupOnPremises_v20210101", "DeleteGateway", {}).n("BackupGatewayClient", "DeleteGatewayCommand").f(void 0, void 0).ser(se_DeleteGatewayCommand).de(de_DeleteGatewayCommand).build() {
|
|
1796
|
+
};
|
|
1797
|
+
__name(_DeleteGatewayCommand, "DeleteGatewayCommand");
|
|
1798
|
+
var DeleteGatewayCommand = _DeleteGatewayCommand;
|
|
1799
|
+
|
|
1800
|
+
// src/commands/DeleteHypervisorCommand.ts
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
var _DeleteHypervisorCommand = class _DeleteHypervisorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1806
|
+
...commonParams
|
|
1807
|
+
}).m(function(Command, cs, config, o) {
|
|
1808
|
+
return [
|
|
1809
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1810
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1811
|
+
];
|
|
1812
|
+
}).s("BackupOnPremises_v20210101", "DeleteHypervisor", {}).n("BackupGatewayClient", "DeleteHypervisorCommand").f(void 0, void 0).ser(se_DeleteHypervisorCommand).de(de_DeleteHypervisorCommand).build() {
|
|
1813
|
+
};
|
|
1814
|
+
__name(_DeleteHypervisorCommand, "DeleteHypervisorCommand");
|
|
1815
|
+
var DeleteHypervisorCommand = _DeleteHypervisorCommand;
|
|
1816
|
+
|
|
1817
|
+
// src/commands/DisassociateGatewayFromServerCommand.ts
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
var _DisassociateGatewayFromServerCommand = class _DisassociateGatewayFromServerCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1823
|
+
...commonParams
|
|
1824
|
+
}).m(function(Command, cs, config, o) {
|
|
1825
|
+
return [
|
|
1826
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1827
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1828
|
+
];
|
|
1829
|
+
}).s("BackupOnPremises_v20210101", "DisassociateGatewayFromServer", {}).n("BackupGatewayClient", "DisassociateGatewayFromServerCommand").f(void 0, void 0).ser(se_DisassociateGatewayFromServerCommand).de(de_DisassociateGatewayFromServerCommand).build() {
|
|
1830
|
+
};
|
|
1831
|
+
__name(_DisassociateGatewayFromServerCommand, "DisassociateGatewayFromServerCommand");
|
|
1832
|
+
var DisassociateGatewayFromServerCommand = _DisassociateGatewayFromServerCommand;
|
|
1833
|
+
|
|
1834
|
+
// src/commands/GetBandwidthRateLimitScheduleCommand.ts
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
|
|
1839
|
+
var _GetBandwidthRateLimitScheduleCommand = class _GetBandwidthRateLimitScheduleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1840
|
+
...commonParams
|
|
1841
|
+
}).m(function(Command, cs, config, o) {
|
|
1842
|
+
return [
|
|
1843
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1844
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1845
|
+
];
|
|
1846
|
+
}).s("BackupOnPremises_v20210101", "GetBandwidthRateLimitSchedule", {}).n("BackupGatewayClient", "GetBandwidthRateLimitScheduleCommand").f(void 0, void 0).ser(se_GetBandwidthRateLimitScheduleCommand).de(de_GetBandwidthRateLimitScheduleCommand).build() {
|
|
1847
|
+
};
|
|
1848
|
+
__name(_GetBandwidthRateLimitScheduleCommand, "GetBandwidthRateLimitScheduleCommand");
|
|
1849
|
+
var GetBandwidthRateLimitScheduleCommand = _GetBandwidthRateLimitScheduleCommand;
|
|
1850
|
+
|
|
1851
|
+
// src/commands/GetGatewayCommand.ts
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
var _GetGatewayCommand = class _GetGatewayCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1857
|
+
...commonParams
|
|
1858
|
+
}).m(function(Command, cs, config, o) {
|
|
1859
|
+
return [
|
|
1860
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1861
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1862
|
+
];
|
|
1863
|
+
}).s("BackupOnPremises_v20210101", "GetGateway", {}).n("BackupGatewayClient", "GetGatewayCommand").f(void 0, void 0).ser(se_GetGatewayCommand).de(de_GetGatewayCommand).build() {
|
|
1864
|
+
};
|
|
1865
|
+
__name(_GetGatewayCommand, "GetGatewayCommand");
|
|
1866
|
+
var GetGatewayCommand = _GetGatewayCommand;
|
|
1867
|
+
|
|
1868
|
+
// src/commands/GetHypervisorCommand.ts
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
var _GetHypervisorCommand = class _GetHypervisorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1874
|
+
...commonParams
|
|
1875
|
+
}).m(function(Command, cs, config, o) {
|
|
1876
|
+
return [
|
|
1877
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1878
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1879
|
+
];
|
|
1880
|
+
}).s("BackupOnPremises_v20210101", "GetHypervisor", {}).n("BackupGatewayClient", "GetHypervisorCommand").f(void 0, void 0).ser(se_GetHypervisorCommand).de(de_GetHypervisorCommand).build() {
|
|
1881
|
+
};
|
|
1882
|
+
__name(_GetHypervisorCommand, "GetHypervisorCommand");
|
|
1883
|
+
var GetHypervisorCommand = _GetHypervisorCommand;
|
|
1884
|
+
|
|
1885
|
+
// src/commands/GetHypervisorPropertyMappingsCommand.ts
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
var _GetHypervisorPropertyMappingsCommand = class _GetHypervisorPropertyMappingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1891
|
+
...commonParams
|
|
1892
|
+
}).m(function(Command, cs, config, o) {
|
|
1893
|
+
return [
|
|
1894
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1895
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1896
|
+
];
|
|
1897
|
+
}).s("BackupOnPremises_v20210101", "GetHypervisorPropertyMappings", {}).n("BackupGatewayClient", "GetHypervisorPropertyMappingsCommand").f(void 0, void 0).ser(se_GetHypervisorPropertyMappingsCommand).de(de_GetHypervisorPropertyMappingsCommand).build() {
|
|
1898
|
+
};
|
|
1899
|
+
__name(_GetHypervisorPropertyMappingsCommand, "GetHypervisorPropertyMappingsCommand");
|
|
1900
|
+
var GetHypervisorPropertyMappingsCommand = _GetHypervisorPropertyMappingsCommand;
|
|
1901
|
+
|
|
1902
|
+
// src/commands/GetVirtualMachineCommand.ts
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
var _GetVirtualMachineCommand = class _GetVirtualMachineCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1908
|
+
...commonParams
|
|
1909
|
+
}).m(function(Command, cs, config, o) {
|
|
1910
|
+
return [
|
|
1911
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1912
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1913
|
+
];
|
|
1914
|
+
}).s("BackupOnPremises_v20210101", "GetVirtualMachine", {}).n("BackupGatewayClient", "GetVirtualMachineCommand").f(void 0, void 0).ser(se_GetVirtualMachineCommand).de(de_GetVirtualMachineCommand).build() {
|
|
1915
|
+
};
|
|
1916
|
+
__name(_GetVirtualMachineCommand, "GetVirtualMachineCommand");
|
|
1917
|
+
var GetVirtualMachineCommand = _GetVirtualMachineCommand;
|
|
1918
|
+
|
|
1919
|
+
// src/commands/ImportHypervisorConfigurationCommand.ts
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
var _ImportHypervisorConfigurationCommand = class _ImportHypervisorConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1925
|
+
...commonParams
|
|
1926
|
+
}).m(function(Command, cs, config, o) {
|
|
1927
|
+
return [
|
|
1928
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1929
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1930
|
+
];
|
|
1931
|
+
}).s("BackupOnPremises_v20210101", "ImportHypervisorConfiguration", {}).n("BackupGatewayClient", "ImportHypervisorConfigurationCommand").f(ImportHypervisorConfigurationInputFilterSensitiveLog, void 0).ser(se_ImportHypervisorConfigurationCommand).de(de_ImportHypervisorConfigurationCommand).build() {
|
|
1932
|
+
};
|
|
1933
|
+
__name(_ImportHypervisorConfigurationCommand, "ImportHypervisorConfigurationCommand");
|
|
1934
|
+
var ImportHypervisorConfigurationCommand = _ImportHypervisorConfigurationCommand;
|
|
1935
|
+
|
|
1936
|
+
// src/commands/ListGatewaysCommand.ts
|
|
1937
|
+
|
|
1938
|
+
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
var _ListGatewaysCommand = class _ListGatewaysCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1942
|
+
...commonParams
|
|
1943
|
+
}).m(function(Command, cs, config, o) {
|
|
1944
|
+
return [
|
|
1945
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1946
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1947
|
+
];
|
|
1948
|
+
}).s("BackupOnPremises_v20210101", "ListGateways", {}).n("BackupGatewayClient", "ListGatewaysCommand").f(void 0, void 0).ser(se_ListGatewaysCommand).de(de_ListGatewaysCommand).build() {
|
|
1949
|
+
};
|
|
1950
|
+
__name(_ListGatewaysCommand, "ListGatewaysCommand");
|
|
1951
|
+
var ListGatewaysCommand = _ListGatewaysCommand;
|
|
1952
|
+
|
|
1953
|
+
// src/commands/ListHypervisorsCommand.ts
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
|
|
1958
|
+
var _ListHypervisorsCommand = class _ListHypervisorsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1959
|
+
...commonParams
|
|
1960
|
+
}).m(function(Command, cs, config, o) {
|
|
1961
|
+
return [
|
|
1962
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1963
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1964
|
+
];
|
|
1965
|
+
}).s("BackupOnPremises_v20210101", "ListHypervisors", {}).n("BackupGatewayClient", "ListHypervisorsCommand").f(void 0, void 0).ser(se_ListHypervisorsCommand).de(de_ListHypervisorsCommand).build() {
|
|
1966
|
+
};
|
|
1967
|
+
__name(_ListHypervisorsCommand, "ListHypervisorsCommand");
|
|
1968
|
+
var ListHypervisorsCommand = _ListHypervisorsCommand;
|
|
1969
|
+
|
|
1970
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
1971
|
+
|
|
1972
|
+
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1976
|
+
...commonParams
|
|
1977
|
+
}).m(function(Command, cs, config, o) {
|
|
1978
|
+
return [
|
|
1979
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1980
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1981
|
+
];
|
|
1982
|
+
}).s("BackupOnPremises_v20210101", "ListTagsForResource", {}).n("BackupGatewayClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1983
|
+
};
|
|
1984
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
1985
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
1986
|
+
|
|
1987
|
+
// src/commands/ListVirtualMachinesCommand.ts
|
|
1988
|
+
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
|
|
1992
|
+
var _ListVirtualMachinesCommand = class _ListVirtualMachinesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1993
|
+
...commonParams
|
|
1994
|
+
}).m(function(Command, cs, config, o) {
|
|
1995
|
+
return [
|
|
1996
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1997
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1998
|
+
];
|
|
1999
|
+
}).s("BackupOnPremises_v20210101", "ListVirtualMachines", {}).n("BackupGatewayClient", "ListVirtualMachinesCommand").f(void 0, void 0).ser(se_ListVirtualMachinesCommand).de(de_ListVirtualMachinesCommand).build() {
|
|
2000
|
+
};
|
|
2001
|
+
__name(_ListVirtualMachinesCommand, "ListVirtualMachinesCommand");
|
|
2002
|
+
var ListVirtualMachinesCommand = _ListVirtualMachinesCommand;
|
|
2003
|
+
|
|
2004
|
+
// src/commands/PutBandwidthRateLimitScheduleCommand.ts
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
var _PutBandwidthRateLimitScheduleCommand = class _PutBandwidthRateLimitScheduleCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2010
|
+
...commonParams
|
|
2011
|
+
}).m(function(Command, cs, config, o) {
|
|
2012
|
+
return [
|
|
2013
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2014
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2015
|
+
];
|
|
2016
|
+
}).s("BackupOnPremises_v20210101", "PutBandwidthRateLimitSchedule", {}).n("BackupGatewayClient", "PutBandwidthRateLimitScheduleCommand").f(void 0, void 0).ser(se_PutBandwidthRateLimitScheduleCommand).de(de_PutBandwidthRateLimitScheduleCommand).build() {
|
|
2017
|
+
};
|
|
2018
|
+
__name(_PutBandwidthRateLimitScheduleCommand, "PutBandwidthRateLimitScheduleCommand");
|
|
2019
|
+
var PutBandwidthRateLimitScheduleCommand = _PutBandwidthRateLimitScheduleCommand;
|
|
2020
|
+
|
|
2021
|
+
// src/commands/PutHypervisorPropertyMappingsCommand.ts
|
|
2022
|
+
|
|
2023
|
+
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
var _PutHypervisorPropertyMappingsCommand = class _PutHypervisorPropertyMappingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2027
|
+
...commonParams
|
|
2028
|
+
}).m(function(Command, cs, config, o) {
|
|
2029
|
+
return [
|
|
2030
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2031
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2032
|
+
];
|
|
2033
|
+
}).s("BackupOnPremises_v20210101", "PutHypervisorPropertyMappings", {}).n("BackupGatewayClient", "PutHypervisorPropertyMappingsCommand").f(void 0, void 0).ser(se_PutHypervisorPropertyMappingsCommand).de(de_PutHypervisorPropertyMappingsCommand).build() {
|
|
2034
|
+
};
|
|
2035
|
+
__name(_PutHypervisorPropertyMappingsCommand, "PutHypervisorPropertyMappingsCommand");
|
|
2036
|
+
var PutHypervisorPropertyMappingsCommand = _PutHypervisorPropertyMappingsCommand;
|
|
2037
|
+
|
|
2038
|
+
// src/commands/PutMaintenanceStartTimeCommand.ts
|
|
2039
|
+
|
|
2040
|
+
|
|
2041
|
+
|
|
2042
|
+
|
|
2043
|
+
var _PutMaintenanceStartTimeCommand = class _PutMaintenanceStartTimeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2044
|
+
...commonParams
|
|
2045
|
+
}).m(function(Command, cs, config, o) {
|
|
2046
|
+
return [
|
|
2047
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2048
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2049
|
+
];
|
|
2050
|
+
}).s("BackupOnPremises_v20210101", "PutMaintenanceStartTime", {}).n("BackupGatewayClient", "PutMaintenanceStartTimeCommand").f(void 0, void 0).ser(se_PutMaintenanceStartTimeCommand).de(de_PutMaintenanceStartTimeCommand).build() {
|
|
2051
|
+
};
|
|
2052
|
+
__name(_PutMaintenanceStartTimeCommand, "PutMaintenanceStartTimeCommand");
|
|
2053
|
+
var PutMaintenanceStartTimeCommand = _PutMaintenanceStartTimeCommand;
|
|
2054
|
+
|
|
2055
|
+
// src/commands/StartVirtualMachinesMetadataSyncCommand.ts
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
var _StartVirtualMachinesMetadataSyncCommand = class _StartVirtualMachinesMetadataSyncCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2061
|
+
...commonParams
|
|
2062
|
+
}).m(function(Command, cs, config, o) {
|
|
2063
|
+
return [
|
|
2064
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2065
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2066
|
+
];
|
|
2067
|
+
}).s("BackupOnPremises_v20210101", "StartVirtualMachinesMetadataSync", {}).n("BackupGatewayClient", "StartVirtualMachinesMetadataSyncCommand").f(void 0, void 0).ser(se_StartVirtualMachinesMetadataSyncCommand).de(de_StartVirtualMachinesMetadataSyncCommand).build() {
|
|
2068
|
+
};
|
|
2069
|
+
__name(_StartVirtualMachinesMetadataSyncCommand, "StartVirtualMachinesMetadataSyncCommand");
|
|
2070
|
+
var StartVirtualMachinesMetadataSyncCommand = _StartVirtualMachinesMetadataSyncCommand;
|
|
2071
|
+
|
|
2072
|
+
// src/commands/TagResourceCommand.ts
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2078
|
+
...commonParams
|
|
2079
|
+
}).m(function(Command, cs, config, o) {
|
|
2080
|
+
return [
|
|
2081
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2082
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2083
|
+
];
|
|
2084
|
+
}).s("BackupOnPremises_v20210101", "TagResource", {}).n("BackupGatewayClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2085
|
+
};
|
|
2086
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2087
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2088
|
+
|
|
2089
|
+
// src/commands/TestHypervisorConfigurationCommand.ts
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
var _TestHypervisorConfigurationCommand = class _TestHypervisorConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2095
|
+
...commonParams
|
|
2096
|
+
}).m(function(Command, cs, config, o) {
|
|
2097
|
+
return [
|
|
2098
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2099
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2100
|
+
];
|
|
2101
|
+
}).s("BackupOnPremises_v20210101", "TestHypervisorConfiguration", {}).n("BackupGatewayClient", "TestHypervisorConfigurationCommand").f(TestHypervisorConfigurationInputFilterSensitiveLog, void 0).ser(se_TestHypervisorConfigurationCommand).de(de_TestHypervisorConfigurationCommand).build() {
|
|
2102
|
+
};
|
|
2103
|
+
__name(_TestHypervisorConfigurationCommand, "TestHypervisorConfigurationCommand");
|
|
2104
|
+
var TestHypervisorConfigurationCommand = _TestHypervisorConfigurationCommand;
|
|
2105
|
+
|
|
2106
|
+
// src/commands/UntagResourceCommand.ts
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2112
|
+
...commonParams
|
|
2113
|
+
}).m(function(Command, cs, config, o) {
|
|
2114
|
+
return [
|
|
2115
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2116
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2117
|
+
];
|
|
2118
|
+
}).s("BackupOnPremises_v20210101", "UntagResource", {}).n("BackupGatewayClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2119
|
+
};
|
|
2120
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2121
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2122
|
+
|
|
2123
|
+
// src/commands/UpdateGatewayInformationCommand.ts
|
|
2124
|
+
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
var _UpdateGatewayInformationCommand = class _UpdateGatewayInformationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2129
|
+
...commonParams
|
|
2130
|
+
}).m(function(Command, cs, config, o) {
|
|
2131
|
+
return [
|
|
2132
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2133
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2134
|
+
];
|
|
2135
|
+
}).s("BackupOnPremises_v20210101", "UpdateGatewayInformation", {}).n("BackupGatewayClient", "UpdateGatewayInformationCommand").f(void 0, void 0).ser(se_UpdateGatewayInformationCommand).de(de_UpdateGatewayInformationCommand).build() {
|
|
2136
|
+
};
|
|
2137
|
+
__name(_UpdateGatewayInformationCommand, "UpdateGatewayInformationCommand");
|
|
2138
|
+
var UpdateGatewayInformationCommand = _UpdateGatewayInformationCommand;
|
|
2139
|
+
|
|
2140
|
+
// src/commands/UpdateGatewaySoftwareNowCommand.ts
|
|
2141
|
+
|
|
2142
|
+
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
var _UpdateGatewaySoftwareNowCommand = class _UpdateGatewaySoftwareNowCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2146
|
+
...commonParams
|
|
2147
|
+
}).m(function(Command, cs, config, o) {
|
|
2148
|
+
return [
|
|
2149
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2150
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2151
|
+
];
|
|
2152
|
+
}).s("BackupOnPremises_v20210101", "UpdateGatewaySoftwareNow", {}).n("BackupGatewayClient", "UpdateGatewaySoftwareNowCommand").f(void 0, void 0).ser(se_UpdateGatewaySoftwareNowCommand).de(de_UpdateGatewaySoftwareNowCommand).build() {
|
|
2153
|
+
};
|
|
2154
|
+
__name(_UpdateGatewaySoftwareNowCommand, "UpdateGatewaySoftwareNowCommand");
|
|
2155
|
+
var UpdateGatewaySoftwareNowCommand = _UpdateGatewaySoftwareNowCommand;
|
|
2156
|
+
|
|
2157
|
+
// src/commands/UpdateHypervisorCommand.ts
|
|
2158
|
+
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
var _UpdateHypervisorCommand = class _UpdateHypervisorCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2163
|
+
...commonParams
|
|
2164
|
+
}).m(function(Command, cs, config, o) {
|
|
2165
|
+
return [
|
|
2166
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2167
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2168
|
+
];
|
|
2169
|
+
}).s("BackupOnPremises_v20210101", "UpdateHypervisor", {}).n("BackupGatewayClient", "UpdateHypervisorCommand").f(UpdateHypervisorInputFilterSensitiveLog, void 0).ser(se_UpdateHypervisorCommand).de(de_UpdateHypervisorCommand).build() {
|
|
2170
|
+
};
|
|
2171
|
+
__name(_UpdateHypervisorCommand, "UpdateHypervisorCommand");
|
|
2172
|
+
var UpdateHypervisorCommand = _UpdateHypervisorCommand;
|
|
2173
|
+
|
|
2174
|
+
// src/BackupGateway.ts
|
|
2175
|
+
var commands = {
|
|
2176
|
+
AssociateGatewayToServerCommand,
|
|
2177
|
+
CreateGatewayCommand,
|
|
2178
|
+
DeleteGatewayCommand,
|
|
2179
|
+
DeleteHypervisorCommand,
|
|
2180
|
+
DisassociateGatewayFromServerCommand,
|
|
2181
|
+
GetBandwidthRateLimitScheduleCommand,
|
|
2182
|
+
GetGatewayCommand,
|
|
2183
|
+
GetHypervisorCommand,
|
|
2184
|
+
GetHypervisorPropertyMappingsCommand,
|
|
2185
|
+
GetVirtualMachineCommand,
|
|
2186
|
+
ImportHypervisorConfigurationCommand,
|
|
2187
|
+
ListGatewaysCommand,
|
|
2188
|
+
ListHypervisorsCommand,
|
|
2189
|
+
ListTagsForResourceCommand,
|
|
2190
|
+
ListVirtualMachinesCommand,
|
|
2191
|
+
PutBandwidthRateLimitScheduleCommand,
|
|
2192
|
+
PutHypervisorPropertyMappingsCommand,
|
|
2193
|
+
PutMaintenanceStartTimeCommand,
|
|
2194
|
+
StartVirtualMachinesMetadataSyncCommand,
|
|
2195
|
+
TagResourceCommand,
|
|
2196
|
+
TestHypervisorConfigurationCommand,
|
|
2197
|
+
UntagResourceCommand,
|
|
2198
|
+
UpdateGatewayInformationCommand,
|
|
2199
|
+
UpdateGatewaySoftwareNowCommand,
|
|
2200
|
+
UpdateHypervisorCommand
|
|
2201
|
+
};
|
|
2202
|
+
var _BackupGateway = class _BackupGateway extends BackupGatewayClient {
|
|
2203
|
+
};
|
|
2204
|
+
__name(_BackupGateway, "BackupGateway");
|
|
2205
|
+
var BackupGateway = _BackupGateway;
|
|
2206
|
+
(0, import_smithy_client.createAggregatedClient)(commands, BackupGateway);
|
|
2207
|
+
|
|
2208
|
+
// src/pagination/ListGatewaysPaginator.ts
|
|
2209
|
+
var import_core = require("@smithy/core");
|
|
2210
|
+
var paginateListGateways = (0, import_core.createPaginator)(BackupGatewayClient, ListGatewaysCommand, "NextToken", "NextToken", "MaxResults");
|
|
2211
|
+
|
|
2212
|
+
// src/pagination/ListHypervisorsPaginator.ts
|
|
2213
|
+
|
|
2214
|
+
var paginateListHypervisors = (0, import_core.createPaginator)(BackupGatewayClient, ListHypervisorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2215
|
+
|
|
2216
|
+
// src/pagination/ListVirtualMachinesPaginator.ts
|
|
2217
|
+
|
|
2218
|
+
var paginateListVirtualMachines = (0, import_core.createPaginator)(BackupGatewayClient, ListVirtualMachinesCommand, "NextToken", "NextToken", "MaxResults");
|
|
2219
|
+
|
|
2220
|
+
// src/index.ts
|
|
2221
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2222
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2223
|
+
|
|
2224
|
+
0 && (module.exports = {
|
|
2225
|
+
AccessDeniedException,
|
|
2226
|
+
AssociateGatewayToServerCommand,
|
|
2227
|
+
BackupGateway,
|
|
2228
|
+
BackupGatewayClient,
|
|
2229
|
+
BackupGatewayServiceException,
|
|
2230
|
+
ConflictException,
|
|
2231
|
+
CreateGatewayCommand,
|
|
2232
|
+
DeleteGatewayCommand,
|
|
2233
|
+
DeleteHypervisorCommand,
|
|
2234
|
+
DisassociateGatewayFromServerCommand,
|
|
2235
|
+
GatewayType,
|
|
2236
|
+
GetBandwidthRateLimitScheduleCommand,
|
|
2237
|
+
GetGatewayCommand,
|
|
2238
|
+
GetHypervisorCommand,
|
|
2239
|
+
GetHypervisorPropertyMappingsCommand,
|
|
2240
|
+
GetVirtualMachineCommand,
|
|
2241
|
+
HypervisorState,
|
|
2242
|
+
ImportHypervisorConfigurationCommand,
|
|
2243
|
+
ImportHypervisorConfigurationInputFilterSensitiveLog,
|
|
2244
|
+
InternalServerException,
|
|
2245
|
+
ListGatewaysCommand,
|
|
2246
|
+
ListHypervisorsCommand,
|
|
2247
|
+
ListTagsForResourceCommand,
|
|
2248
|
+
ListVirtualMachinesCommand,
|
|
2249
|
+
PutBandwidthRateLimitScheduleCommand,
|
|
2250
|
+
PutHypervisorPropertyMappingsCommand,
|
|
2251
|
+
PutMaintenanceStartTimeCommand,
|
|
2252
|
+
ResourceNotFoundException,
|
|
2253
|
+
StartVirtualMachinesMetadataSyncCommand,
|
|
2254
|
+
SyncMetadataStatus,
|
|
2255
|
+
TagResourceCommand,
|
|
2256
|
+
TestHypervisorConfigurationCommand,
|
|
2257
|
+
TestHypervisorConfigurationInputFilterSensitiveLog,
|
|
2258
|
+
ThrottlingException,
|
|
2259
|
+
UntagResourceCommand,
|
|
2260
|
+
UpdateGatewayInformationCommand,
|
|
2261
|
+
UpdateGatewaySoftwareNowCommand,
|
|
2262
|
+
UpdateHypervisorCommand,
|
|
2263
|
+
UpdateHypervisorInputFilterSensitiveLog,
|
|
2264
|
+
ValidationException,
|
|
2265
|
+
__Client,
|
|
2266
|
+
paginateListGateways,
|
|
2267
|
+
paginateListHypervisors,
|
|
2268
|
+
paginateListVirtualMachines
|
|
2269
|
+
});
|
|
2270
|
+
|