@aws-sdk/client-backup-gateway 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/BackupGateway.js +29 -350
- package/dist-cjs/protocols/Aws_json1_0.js +162 -682
- package/dist-es/BackupGateway.js +29 -350
- package/dist-es/protocols/Aws_json1_0.js +163 -683
- package/dist-types/BackupGateway.d.ts +40 -90
- package/dist-types/ts3.4/BackupGateway.d.ts +4 -1
- package/package.json +6 -6
|
@@ -8,175 +8,175 @@ const models_0_1 = require("../models/models_0");
|
|
|
8
8
|
const se_AssociateGatewayToServerCommand = async (input, context) => {
|
|
9
9
|
const headers = sharedHeaders("AssociateGatewayToServer");
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
14
|
exports.se_AssociateGatewayToServerCommand = se_AssociateGatewayToServerCommand;
|
|
15
15
|
const se_CreateGatewayCommand = async (input, context) => {
|
|
16
16
|
const headers = sharedHeaders("CreateGateway");
|
|
17
17
|
let body;
|
|
18
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
20
|
};
|
|
21
21
|
exports.se_CreateGatewayCommand = se_CreateGatewayCommand;
|
|
22
22
|
const se_DeleteGatewayCommand = async (input, context) => {
|
|
23
23
|
const headers = sharedHeaders("DeleteGateway");
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
28
|
exports.se_DeleteGatewayCommand = se_DeleteGatewayCommand;
|
|
29
29
|
const se_DeleteHypervisorCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DeleteHypervisor");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
exports.se_DeleteHypervisorCommand = se_DeleteHypervisorCommand;
|
|
36
36
|
const se_DisassociateGatewayFromServerCommand = async (input, context) => {
|
|
37
37
|
const headers = sharedHeaders("DisassociateGatewayFromServer");
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
42
|
exports.se_DisassociateGatewayFromServerCommand = se_DisassociateGatewayFromServerCommand;
|
|
43
43
|
const se_GetBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
44
44
|
const headers = sharedHeaders("GetBandwidthRateLimitSchedule");
|
|
45
45
|
let body;
|
|
46
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
48
|
};
|
|
49
49
|
exports.se_GetBandwidthRateLimitScheduleCommand = se_GetBandwidthRateLimitScheduleCommand;
|
|
50
50
|
const se_GetGatewayCommand = async (input, context) => {
|
|
51
51
|
const headers = sharedHeaders("GetGateway");
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
55
|
};
|
|
56
56
|
exports.se_GetGatewayCommand = se_GetGatewayCommand;
|
|
57
57
|
const se_GetHypervisorCommand = async (input, context) => {
|
|
58
58
|
const headers = sharedHeaders("GetHypervisor");
|
|
59
59
|
let body;
|
|
60
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
62
|
};
|
|
63
63
|
exports.se_GetHypervisorCommand = se_GetHypervisorCommand;
|
|
64
64
|
const se_GetHypervisorPropertyMappingsCommand = async (input, context) => {
|
|
65
65
|
const headers = sharedHeaders("GetHypervisorPropertyMappings");
|
|
66
66
|
let body;
|
|
67
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
69
|
};
|
|
70
70
|
exports.se_GetHypervisorPropertyMappingsCommand = se_GetHypervisorPropertyMappingsCommand;
|
|
71
71
|
const se_GetVirtualMachineCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("GetVirtualMachine");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
exports.se_GetVirtualMachineCommand = se_GetVirtualMachineCommand;
|
|
78
78
|
const se_ImportHypervisorConfigurationCommand = async (input, context) => {
|
|
79
79
|
const headers = sharedHeaders("ImportHypervisorConfiguration");
|
|
80
80
|
let body;
|
|
81
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
83
|
};
|
|
84
84
|
exports.se_ImportHypervisorConfigurationCommand = se_ImportHypervisorConfigurationCommand;
|
|
85
85
|
const se_ListGatewaysCommand = async (input, context) => {
|
|
86
86
|
const headers = sharedHeaders("ListGateways");
|
|
87
87
|
let body;
|
|
88
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
89
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
90
|
};
|
|
91
91
|
exports.se_ListGatewaysCommand = se_ListGatewaysCommand;
|
|
92
92
|
const se_ListHypervisorsCommand = async (input, context) => {
|
|
93
93
|
const headers = sharedHeaders("ListHypervisors");
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
98
|
exports.se_ListHypervisorsCommand = se_ListHypervisorsCommand;
|
|
99
99
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
100
100
|
const headers = sharedHeaders("ListTagsForResource");
|
|
101
101
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
103
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
104
|
};
|
|
105
105
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
106
106
|
const se_ListVirtualMachinesCommand = async (input, context) => {
|
|
107
107
|
const headers = sharedHeaders("ListVirtualMachines");
|
|
108
108
|
let body;
|
|
109
|
-
body = JSON.stringify(
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
110
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
111
|
};
|
|
112
112
|
exports.se_ListVirtualMachinesCommand = se_ListVirtualMachinesCommand;
|
|
113
113
|
const se_PutBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("PutBandwidthRateLimitSchedule");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
exports.se_PutBandwidthRateLimitScheduleCommand = se_PutBandwidthRateLimitScheduleCommand;
|
|
120
120
|
const se_PutHypervisorPropertyMappingsCommand = async (input, context) => {
|
|
121
121
|
const headers = sharedHeaders("PutHypervisorPropertyMappings");
|
|
122
122
|
let body;
|
|
123
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
125
|
};
|
|
126
126
|
exports.se_PutHypervisorPropertyMappingsCommand = se_PutHypervisorPropertyMappingsCommand;
|
|
127
127
|
const se_PutMaintenanceStartTimeCommand = async (input, context) => {
|
|
128
128
|
const headers = sharedHeaders("PutMaintenanceStartTime");
|
|
129
129
|
let body;
|
|
130
|
-
body = JSON.stringify(
|
|
130
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
131
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
132
|
};
|
|
133
133
|
exports.se_PutMaintenanceStartTimeCommand = se_PutMaintenanceStartTimeCommand;
|
|
134
134
|
const se_StartVirtualMachinesMetadataSyncCommand = async (input, context) => {
|
|
135
135
|
const headers = sharedHeaders("StartVirtualMachinesMetadataSync");
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
140
|
exports.se_StartVirtualMachinesMetadataSyncCommand = se_StartVirtualMachinesMetadataSyncCommand;
|
|
141
141
|
const se_TagResourceCommand = async (input, context) => {
|
|
142
142
|
const headers = sharedHeaders("TagResource");
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
146
|
};
|
|
147
147
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
148
148
|
const se_TestHypervisorConfigurationCommand = async (input, context) => {
|
|
149
149
|
const headers = sharedHeaders("TestHypervisorConfiguration");
|
|
150
150
|
let body;
|
|
151
|
-
body = JSON.stringify(
|
|
151
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
152
152
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
153
153
|
};
|
|
154
154
|
exports.se_TestHypervisorConfigurationCommand = se_TestHypervisorConfigurationCommand;
|
|
155
155
|
const se_UntagResourceCommand = async (input, context) => {
|
|
156
156
|
const headers = sharedHeaders("UntagResource");
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
159
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
160
|
};
|
|
161
161
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
162
162
|
const se_UpdateGatewayInformationCommand = async (input, context) => {
|
|
163
163
|
const headers = sharedHeaders("UpdateGatewayInformation");
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
168
|
exports.se_UpdateGatewayInformationCommand = se_UpdateGatewayInformationCommand;
|
|
169
169
|
const se_UpdateGatewaySoftwareNowCommand = async (input, context) => {
|
|
170
170
|
const headers = sharedHeaders("UpdateGatewaySoftwareNow");
|
|
171
171
|
let body;
|
|
172
|
-
body = JSON.stringify(
|
|
172
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
173
173
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
174
|
};
|
|
175
175
|
exports.se_UpdateGatewaySoftwareNowCommand = se_UpdateGatewaySoftwareNowCommand;
|
|
176
176
|
const se_UpdateHypervisorCommand = async (input, context) => {
|
|
177
177
|
const headers = sharedHeaders("UpdateHypervisor");
|
|
178
178
|
let body;
|
|
179
|
-
body = JSON.stringify(
|
|
179
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
180
180
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
181
181
|
};
|
|
182
182
|
exports.se_UpdateHypervisorCommand = se_UpdateHypervisorCommand;
|
|
@@ -186,12 +186,12 @@ const de_AssociateGatewayToServerCommand = async (output, context) => {
|
|
|
186
186
|
}
|
|
187
187
|
const data = await parseBody(output.body, context);
|
|
188
188
|
let contents = {};
|
|
189
|
-
contents =
|
|
189
|
+
contents = (0, smithy_client_1._json)(data);
|
|
190
190
|
const response = {
|
|
191
191
|
$metadata: deserializeMetadata(output),
|
|
192
192
|
...contents,
|
|
193
193
|
};
|
|
194
|
-
return
|
|
194
|
+
return response;
|
|
195
195
|
};
|
|
196
196
|
exports.de_AssociateGatewayToServerCommand = de_AssociateGatewayToServerCommand;
|
|
197
197
|
const de_AssociateGatewayToServerCommandError = async (output, context) => {
|
|
@@ -215,10 +215,9 @@ const de_AssociateGatewayToServerCommandError = async (output, context) => {
|
|
|
215
215
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
216
216
|
default:
|
|
217
217
|
const parsedBody = parsedOutput.body;
|
|
218
|
-
|
|
218
|
+
return throwDefaultError({
|
|
219
219
|
output,
|
|
220
220
|
parsedBody,
|
|
221
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
222
221
|
errorCode,
|
|
223
222
|
});
|
|
224
223
|
}
|
|
@@ -229,12 +228,12 @@ const de_CreateGatewayCommand = async (output, context) => {
|
|
|
229
228
|
}
|
|
230
229
|
const data = await parseBody(output.body, context);
|
|
231
230
|
let contents = {};
|
|
232
|
-
contents =
|
|
231
|
+
contents = (0, smithy_client_1._json)(data);
|
|
233
232
|
const response = {
|
|
234
233
|
$metadata: deserializeMetadata(output),
|
|
235
234
|
...contents,
|
|
236
235
|
};
|
|
237
|
-
return
|
|
236
|
+
return response;
|
|
238
237
|
};
|
|
239
238
|
exports.de_CreateGatewayCommand = de_CreateGatewayCommand;
|
|
240
239
|
const de_CreateGatewayCommandError = async (output, context) => {
|
|
@@ -255,10 +254,9 @@ const de_CreateGatewayCommandError = async (output, context) => {
|
|
|
255
254
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
256
255
|
default:
|
|
257
256
|
const parsedBody = parsedOutput.body;
|
|
258
|
-
|
|
257
|
+
return throwDefaultError({
|
|
259
258
|
output,
|
|
260
259
|
parsedBody,
|
|
261
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
262
260
|
errorCode,
|
|
263
261
|
});
|
|
264
262
|
}
|
|
@@ -269,12 +267,12 @@ const de_DeleteGatewayCommand = async (output, context) => {
|
|
|
269
267
|
}
|
|
270
268
|
const data = await parseBody(output.body, context);
|
|
271
269
|
let contents = {};
|
|
272
|
-
contents =
|
|
270
|
+
contents = (0, smithy_client_1._json)(data);
|
|
273
271
|
const response = {
|
|
274
272
|
$metadata: deserializeMetadata(output),
|
|
275
273
|
...contents,
|
|
276
274
|
};
|
|
277
|
-
return
|
|
275
|
+
return response;
|
|
278
276
|
};
|
|
279
277
|
exports.de_DeleteGatewayCommand = de_DeleteGatewayCommand;
|
|
280
278
|
const de_DeleteGatewayCommandError = async (output, context) => {
|
|
@@ -298,10 +296,9 @@ const de_DeleteGatewayCommandError = async (output, context) => {
|
|
|
298
296
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
299
297
|
default:
|
|
300
298
|
const parsedBody = parsedOutput.body;
|
|
301
|
-
|
|
299
|
+
return throwDefaultError({
|
|
302
300
|
output,
|
|
303
301
|
parsedBody,
|
|
304
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
305
302
|
errorCode,
|
|
306
303
|
});
|
|
307
304
|
}
|
|
@@ -312,12 +309,12 @@ const de_DeleteHypervisorCommand = async (output, context) => {
|
|
|
312
309
|
}
|
|
313
310
|
const data = await parseBody(output.body, context);
|
|
314
311
|
let contents = {};
|
|
315
|
-
contents =
|
|
312
|
+
contents = (0, smithy_client_1._json)(data);
|
|
316
313
|
const response = {
|
|
317
314
|
$metadata: deserializeMetadata(output),
|
|
318
315
|
...contents,
|
|
319
316
|
};
|
|
320
|
-
return
|
|
317
|
+
return response;
|
|
321
318
|
};
|
|
322
319
|
exports.de_DeleteHypervisorCommand = de_DeleteHypervisorCommand;
|
|
323
320
|
const de_DeleteHypervisorCommandError = async (output, context) => {
|
|
@@ -347,10 +344,9 @@ const de_DeleteHypervisorCommandError = async (output, context) => {
|
|
|
347
344
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
348
345
|
default:
|
|
349
346
|
const parsedBody = parsedOutput.body;
|
|
350
|
-
|
|
347
|
+
return throwDefaultError({
|
|
351
348
|
output,
|
|
352
349
|
parsedBody,
|
|
353
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
354
350
|
errorCode,
|
|
355
351
|
});
|
|
356
352
|
}
|
|
@@ -361,12 +357,12 @@ const de_DisassociateGatewayFromServerCommand = async (output, context) => {
|
|
|
361
357
|
}
|
|
362
358
|
const data = await parseBody(output.body, context);
|
|
363
359
|
let contents = {};
|
|
364
|
-
contents =
|
|
360
|
+
contents = (0, smithy_client_1._json)(data);
|
|
365
361
|
const response = {
|
|
366
362
|
$metadata: deserializeMetadata(output),
|
|
367
363
|
...contents,
|
|
368
364
|
};
|
|
369
|
-
return
|
|
365
|
+
return response;
|
|
370
366
|
};
|
|
371
367
|
exports.de_DisassociateGatewayFromServerCommand = de_DisassociateGatewayFromServerCommand;
|
|
372
368
|
const de_DisassociateGatewayFromServerCommandError = async (output, context) => {
|
|
@@ -393,10 +389,9 @@ const de_DisassociateGatewayFromServerCommandError = async (output, context) =>
|
|
|
393
389
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
394
390
|
default:
|
|
395
391
|
const parsedBody = parsedOutput.body;
|
|
396
|
-
|
|
392
|
+
return throwDefaultError({
|
|
397
393
|
output,
|
|
398
394
|
parsedBody,
|
|
399
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
400
395
|
errorCode,
|
|
401
396
|
});
|
|
402
397
|
}
|
|
@@ -407,12 +402,12 @@ const de_GetBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
|
407
402
|
}
|
|
408
403
|
const data = await parseBody(output.body, context);
|
|
409
404
|
let contents = {};
|
|
410
|
-
contents =
|
|
405
|
+
contents = (0, smithy_client_1._json)(data);
|
|
411
406
|
const response = {
|
|
412
407
|
$metadata: deserializeMetadata(output),
|
|
413
408
|
...contents,
|
|
414
409
|
};
|
|
415
|
-
return
|
|
410
|
+
return response;
|
|
416
411
|
};
|
|
417
412
|
exports.de_GetBandwidthRateLimitScheduleCommand = de_GetBandwidthRateLimitScheduleCommand;
|
|
418
413
|
const de_GetBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
@@ -436,10 +431,9 @@ const de_GetBandwidthRateLimitScheduleCommandError = async (output, context) =>
|
|
|
436
431
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
437
432
|
default:
|
|
438
433
|
const parsedBody = parsedOutput.body;
|
|
439
|
-
|
|
434
|
+
return throwDefaultError({
|
|
440
435
|
output,
|
|
441
436
|
parsedBody,
|
|
442
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
443
437
|
errorCode,
|
|
444
438
|
});
|
|
445
439
|
}
|
|
@@ -455,7 +449,7 @@ const de_GetGatewayCommand = async (output, context) => {
|
|
|
455
449
|
$metadata: deserializeMetadata(output),
|
|
456
450
|
...contents,
|
|
457
451
|
};
|
|
458
|
-
return
|
|
452
|
+
return response;
|
|
459
453
|
};
|
|
460
454
|
exports.de_GetGatewayCommand = de_GetGatewayCommand;
|
|
461
455
|
const de_GetGatewayCommandError = async (output, context) => {
|
|
@@ -479,10 +473,9 @@ const de_GetGatewayCommandError = async (output, context) => {
|
|
|
479
473
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
480
474
|
default:
|
|
481
475
|
const parsedBody = parsedOutput.body;
|
|
482
|
-
|
|
476
|
+
return throwDefaultError({
|
|
483
477
|
output,
|
|
484
478
|
parsedBody,
|
|
485
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
486
479
|
errorCode,
|
|
487
480
|
});
|
|
488
481
|
}
|
|
@@ -498,7 +491,7 @@ const de_GetHypervisorCommand = async (output, context) => {
|
|
|
498
491
|
$metadata: deserializeMetadata(output),
|
|
499
492
|
...contents,
|
|
500
493
|
};
|
|
501
|
-
return
|
|
494
|
+
return response;
|
|
502
495
|
};
|
|
503
496
|
exports.de_GetHypervisorCommand = de_GetHypervisorCommand;
|
|
504
497
|
const de_GetHypervisorCommandError = async (output, context) => {
|
|
@@ -522,10 +515,9 @@ const de_GetHypervisorCommandError = async (output, context) => {
|
|
|
522
515
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
523
516
|
default:
|
|
524
517
|
const parsedBody = parsedOutput.body;
|
|
525
|
-
|
|
518
|
+
return throwDefaultError({
|
|
526
519
|
output,
|
|
527
520
|
parsedBody,
|
|
528
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
529
521
|
errorCode,
|
|
530
522
|
});
|
|
531
523
|
}
|
|
@@ -536,12 +528,12 @@ const de_GetHypervisorPropertyMappingsCommand = async (output, context) => {
|
|
|
536
528
|
}
|
|
537
529
|
const data = await parseBody(output.body, context);
|
|
538
530
|
let contents = {};
|
|
539
|
-
contents =
|
|
531
|
+
contents = (0, smithy_client_1._json)(data);
|
|
540
532
|
const response = {
|
|
541
533
|
$metadata: deserializeMetadata(output),
|
|
542
534
|
...contents,
|
|
543
535
|
};
|
|
544
|
-
return
|
|
536
|
+
return response;
|
|
545
537
|
};
|
|
546
538
|
exports.de_GetHypervisorPropertyMappingsCommand = de_GetHypervisorPropertyMappingsCommand;
|
|
547
539
|
const de_GetHypervisorPropertyMappingsCommandError = async (output, context) => {
|
|
@@ -565,10 +557,9 @@ const de_GetHypervisorPropertyMappingsCommandError = async (output, context) =>
|
|
|
565
557
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
566
558
|
default:
|
|
567
559
|
const parsedBody = parsedOutput.body;
|
|
568
|
-
|
|
560
|
+
return throwDefaultError({
|
|
569
561
|
output,
|
|
570
562
|
parsedBody,
|
|
571
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
572
563
|
errorCode,
|
|
573
564
|
});
|
|
574
565
|
}
|
|
@@ -584,7 +575,7 @@ const de_GetVirtualMachineCommand = async (output, context) => {
|
|
|
584
575
|
$metadata: deserializeMetadata(output),
|
|
585
576
|
...contents,
|
|
586
577
|
};
|
|
587
|
-
return
|
|
578
|
+
return response;
|
|
588
579
|
};
|
|
589
580
|
exports.de_GetVirtualMachineCommand = de_GetVirtualMachineCommand;
|
|
590
581
|
const de_GetVirtualMachineCommandError = async (output, context) => {
|
|
@@ -608,10 +599,9 @@ const de_GetVirtualMachineCommandError = async (output, context) => {
|
|
|
608
599
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
609
600
|
default:
|
|
610
601
|
const parsedBody = parsedOutput.body;
|
|
611
|
-
|
|
602
|
+
return throwDefaultError({
|
|
612
603
|
output,
|
|
613
604
|
parsedBody,
|
|
614
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
615
605
|
errorCode,
|
|
616
606
|
});
|
|
617
607
|
}
|
|
@@ -622,12 +612,12 @@ const de_ImportHypervisorConfigurationCommand = async (output, context) => {
|
|
|
622
612
|
}
|
|
623
613
|
const data = await parseBody(output.body, context);
|
|
624
614
|
let contents = {};
|
|
625
|
-
contents =
|
|
615
|
+
contents = (0, smithy_client_1._json)(data);
|
|
626
616
|
const response = {
|
|
627
617
|
$metadata: deserializeMetadata(output),
|
|
628
618
|
...contents,
|
|
629
619
|
};
|
|
630
|
-
return
|
|
620
|
+
return response;
|
|
631
621
|
};
|
|
632
622
|
exports.de_ImportHypervisorConfigurationCommand = de_ImportHypervisorConfigurationCommand;
|
|
633
623
|
const de_ImportHypervisorConfigurationCommandError = async (output, context) => {
|
|
@@ -654,10 +644,9 @@ const de_ImportHypervisorConfigurationCommandError = async (output, context) =>
|
|
|
654
644
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
655
645
|
default:
|
|
656
646
|
const parsedBody = parsedOutput.body;
|
|
657
|
-
|
|
647
|
+
return throwDefaultError({
|
|
658
648
|
output,
|
|
659
649
|
parsedBody,
|
|
660
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
661
650
|
errorCode,
|
|
662
651
|
});
|
|
663
652
|
}
|
|
@@ -673,7 +662,7 @@ const de_ListGatewaysCommand = async (output, context) => {
|
|
|
673
662
|
$metadata: deserializeMetadata(output),
|
|
674
663
|
...contents,
|
|
675
664
|
};
|
|
676
|
-
return
|
|
665
|
+
return response;
|
|
677
666
|
};
|
|
678
667
|
exports.de_ListGatewaysCommand = de_ListGatewaysCommand;
|
|
679
668
|
const de_ListGatewaysCommandError = async (output, context) => {
|
|
@@ -694,10 +683,9 @@ const de_ListGatewaysCommandError = async (output, context) => {
|
|
|
694
683
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
695
684
|
default:
|
|
696
685
|
const parsedBody = parsedOutput.body;
|
|
697
|
-
|
|
686
|
+
return throwDefaultError({
|
|
698
687
|
output,
|
|
699
688
|
parsedBody,
|
|
700
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
701
689
|
errorCode,
|
|
702
690
|
});
|
|
703
691
|
}
|
|
@@ -708,12 +696,12 @@ const de_ListHypervisorsCommand = async (output, context) => {
|
|
|
708
696
|
}
|
|
709
697
|
const data = await parseBody(output.body, context);
|
|
710
698
|
let contents = {};
|
|
711
|
-
contents =
|
|
699
|
+
contents = (0, smithy_client_1._json)(data);
|
|
712
700
|
const response = {
|
|
713
701
|
$metadata: deserializeMetadata(output),
|
|
714
702
|
...contents,
|
|
715
703
|
};
|
|
716
|
-
return
|
|
704
|
+
return response;
|
|
717
705
|
};
|
|
718
706
|
exports.de_ListHypervisorsCommand = de_ListHypervisorsCommand;
|
|
719
707
|
const de_ListHypervisorsCommandError = async (output, context) => {
|
|
@@ -734,10 +722,9 @@ const de_ListHypervisorsCommandError = async (output, context) => {
|
|
|
734
722
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
735
723
|
default:
|
|
736
724
|
const parsedBody = parsedOutput.body;
|
|
737
|
-
|
|
725
|
+
return throwDefaultError({
|
|
738
726
|
output,
|
|
739
727
|
parsedBody,
|
|
740
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
741
728
|
errorCode,
|
|
742
729
|
});
|
|
743
730
|
}
|
|
@@ -748,12 +735,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
748
735
|
}
|
|
749
736
|
const data = await parseBody(output.body, context);
|
|
750
737
|
let contents = {};
|
|
751
|
-
contents =
|
|
738
|
+
contents = (0, smithy_client_1._json)(data);
|
|
752
739
|
const response = {
|
|
753
740
|
$metadata: deserializeMetadata(output),
|
|
754
741
|
...contents,
|
|
755
742
|
};
|
|
756
|
-
return
|
|
743
|
+
return response;
|
|
757
744
|
};
|
|
758
745
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
759
746
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -777,10 +764,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
777
764
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
778
765
|
default:
|
|
779
766
|
const parsedBody = parsedOutput.body;
|
|
780
|
-
|
|
767
|
+
return throwDefaultError({
|
|
781
768
|
output,
|
|
782
769
|
parsedBody,
|
|
783
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
784
770
|
errorCode,
|
|
785
771
|
});
|
|
786
772
|
}
|
|
@@ -796,7 +782,7 @@ const de_ListVirtualMachinesCommand = async (output, context) => {
|
|
|
796
782
|
$metadata: deserializeMetadata(output),
|
|
797
783
|
...contents,
|
|
798
784
|
};
|
|
799
|
-
return
|
|
785
|
+
return response;
|
|
800
786
|
};
|
|
801
787
|
exports.de_ListVirtualMachinesCommand = de_ListVirtualMachinesCommand;
|
|
802
788
|
const de_ListVirtualMachinesCommandError = async (output, context) => {
|
|
@@ -817,10 +803,9 @@ const de_ListVirtualMachinesCommandError = async (output, context) => {
|
|
|
817
803
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
818
804
|
default:
|
|
819
805
|
const parsedBody = parsedOutput.body;
|
|
820
|
-
|
|
806
|
+
return throwDefaultError({
|
|
821
807
|
output,
|
|
822
808
|
parsedBody,
|
|
823
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
824
809
|
errorCode,
|
|
825
810
|
});
|
|
826
811
|
}
|
|
@@ -831,12 +816,12 @@ const de_PutBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
|
831
816
|
}
|
|
832
817
|
const data = await parseBody(output.body, context);
|
|
833
818
|
let contents = {};
|
|
834
|
-
contents =
|
|
819
|
+
contents = (0, smithy_client_1._json)(data);
|
|
835
820
|
const response = {
|
|
836
821
|
$metadata: deserializeMetadata(output),
|
|
837
822
|
...contents,
|
|
838
823
|
};
|
|
839
|
-
return
|
|
824
|
+
return response;
|
|
840
825
|
};
|
|
841
826
|
exports.de_PutBandwidthRateLimitScheduleCommand = de_PutBandwidthRateLimitScheduleCommand;
|
|
842
827
|
const de_PutBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
@@ -860,10 +845,9 @@ const de_PutBandwidthRateLimitScheduleCommandError = async (output, context) =>
|
|
|
860
845
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
861
846
|
default:
|
|
862
847
|
const parsedBody = parsedOutput.body;
|
|
863
|
-
|
|
848
|
+
return throwDefaultError({
|
|
864
849
|
output,
|
|
865
850
|
parsedBody,
|
|
866
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
867
851
|
errorCode,
|
|
868
852
|
});
|
|
869
853
|
}
|
|
@@ -874,12 +858,12 @@ const de_PutHypervisorPropertyMappingsCommand = async (output, context) => {
|
|
|
874
858
|
}
|
|
875
859
|
const data = await parseBody(output.body, context);
|
|
876
860
|
let contents = {};
|
|
877
|
-
contents =
|
|
861
|
+
contents = (0, smithy_client_1._json)(data);
|
|
878
862
|
const response = {
|
|
879
863
|
$metadata: deserializeMetadata(output),
|
|
880
864
|
...contents,
|
|
881
865
|
};
|
|
882
|
-
return
|
|
866
|
+
return response;
|
|
883
867
|
};
|
|
884
868
|
exports.de_PutHypervisorPropertyMappingsCommand = de_PutHypervisorPropertyMappingsCommand;
|
|
885
869
|
const de_PutHypervisorPropertyMappingsCommandError = async (output, context) => {
|
|
@@ -909,10 +893,9 @@ const de_PutHypervisorPropertyMappingsCommandError = async (output, context) =>
|
|
|
909
893
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
910
894
|
default:
|
|
911
895
|
const parsedBody = parsedOutput.body;
|
|
912
|
-
|
|
896
|
+
return throwDefaultError({
|
|
913
897
|
output,
|
|
914
898
|
parsedBody,
|
|
915
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
916
899
|
errorCode,
|
|
917
900
|
});
|
|
918
901
|
}
|
|
@@ -923,12 +906,12 @@ const de_PutMaintenanceStartTimeCommand = async (output, context) => {
|
|
|
923
906
|
}
|
|
924
907
|
const data = await parseBody(output.body, context);
|
|
925
908
|
let contents = {};
|
|
926
|
-
contents =
|
|
909
|
+
contents = (0, smithy_client_1._json)(data);
|
|
927
910
|
const response = {
|
|
928
911
|
$metadata: deserializeMetadata(output),
|
|
929
912
|
...contents,
|
|
930
913
|
};
|
|
931
|
-
return
|
|
914
|
+
return response;
|
|
932
915
|
};
|
|
933
916
|
exports.de_PutMaintenanceStartTimeCommand = de_PutMaintenanceStartTimeCommand;
|
|
934
917
|
const de_PutMaintenanceStartTimeCommandError = async (output, context) => {
|
|
@@ -955,10 +938,9 @@ const de_PutMaintenanceStartTimeCommandError = async (output, context) => {
|
|
|
955
938
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
956
939
|
default:
|
|
957
940
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
|
|
941
|
+
return throwDefaultError({
|
|
959
942
|
output,
|
|
960
943
|
parsedBody,
|
|
961
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
962
944
|
errorCode,
|
|
963
945
|
});
|
|
964
946
|
}
|
|
@@ -969,12 +951,12 @@ const de_StartVirtualMachinesMetadataSyncCommand = async (output, context) => {
|
|
|
969
951
|
}
|
|
970
952
|
const data = await parseBody(output.body, context);
|
|
971
953
|
let contents = {};
|
|
972
|
-
contents =
|
|
954
|
+
contents = (0, smithy_client_1._json)(data);
|
|
973
955
|
const response = {
|
|
974
956
|
$metadata: deserializeMetadata(output),
|
|
975
957
|
...contents,
|
|
976
958
|
};
|
|
977
|
-
return
|
|
959
|
+
return response;
|
|
978
960
|
};
|
|
979
961
|
exports.de_StartVirtualMachinesMetadataSyncCommand = de_StartVirtualMachinesMetadataSyncCommand;
|
|
980
962
|
const de_StartVirtualMachinesMetadataSyncCommandError = async (output, context) => {
|
|
@@ -1001,10 +983,9 @@ const de_StartVirtualMachinesMetadataSyncCommandError = async (output, context)
|
|
|
1001
983
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1002
984
|
default:
|
|
1003
985
|
const parsedBody = parsedOutput.body;
|
|
1004
|
-
|
|
986
|
+
return throwDefaultError({
|
|
1005
987
|
output,
|
|
1006
988
|
parsedBody,
|
|
1007
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1008
989
|
errorCode,
|
|
1009
990
|
});
|
|
1010
991
|
}
|
|
@@ -1015,12 +996,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1015
996
|
}
|
|
1016
997
|
const data = await parseBody(output.body, context);
|
|
1017
998
|
let contents = {};
|
|
1018
|
-
contents =
|
|
999
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1019
1000
|
const response = {
|
|
1020
1001
|
$metadata: deserializeMetadata(output),
|
|
1021
1002
|
...contents,
|
|
1022
1003
|
};
|
|
1023
|
-
return
|
|
1004
|
+
return response;
|
|
1024
1005
|
};
|
|
1025
1006
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1026
1007
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1044,10 +1025,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1044
1025
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1045
1026
|
default:
|
|
1046
1027
|
const parsedBody = parsedOutput.body;
|
|
1047
|
-
|
|
1028
|
+
return throwDefaultError({
|
|
1048
1029
|
output,
|
|
1049
1030
|
parsedBody,
|
|
1050
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1051
1031
|
errorCode,
|
|
1052
1032
|
});
|
|
1053
1033
|
}
|
|
@@ -1058,12 +1038,12 @@ const de_TestHypervisorConfigurationCommand = async (output, context) => {
|
|
|
1058
1038
|
}
|
|
1059
1039
|
const data = await parseBody(output.body, context);
|
|
1060
1040
|
let contents = {};
|
|
1061
|
-
contents =
|
|
1041
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1062
1042
|
const response = {
|
|
1063
1043
|
$metadata: deserializeMetadata(output),
|
|
1064
1044
|
...contents,
|
|
1065
1045
|
};
|
|
1066
|
-
return
|
|
1046
|
+
return response;
|
|
1067
1047
|
};
|
|
1068
1048
|
exports.de_TestHypervisorConfigurationCommand = de_TestHypervisorConfigurationCommand;
|
|
1069
1049
|
const de_TestHypervisorConfigurationCommandError = async (output, context) => {
|
|
@@ -1090,10 +1070,9 @@ const de_TestHypervisorConfigurationCommandError = async (output, context) => {
|
|
|
1090
1070
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1091
1071
|
default:
|
|
1092
1072
|
const parsedBody = parsedOutput.body;
|
|
1093
|
-
|
|
1073
|
+
return throwDefaultError({
|
|
1094
1074
|
output,
|
|
1095
1075
|
parsedBody,
|
|
1096
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1097
1076
|
errorCode,
|
|
1098
1077
|
});
|
|
1099
1078
|
}
|
|
@@ -1104,12 +1083,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1104
1083
|
}
|
|
1105
1084
|
const data = await parseBody(output.body, context);
|
|
1106
1085
|
let contents = {};
|
|
1107
|
-
contents =
|
|
1086
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1108
1087
|
const response = {
|
|
1109
1088
|
$metadata: deserializeMetadata(output),
|
|
1110
1089
|
...contents,
|
|
1111
1090
|
};
|
|
1112
|
-
return
|
|
1091
|
+
return response;
|
|
1113
1092
|
};
|
|
1114
1093
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1115
1094
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1133,10 +1112,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1133
1112
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1134
1113
|
default:
|
|
1135
1114
|
const parsedBody = parsedOutput.body;
|
|
1136
|
-
|
|
1115
|
+
return throwDefaultError({
|
|
1137
1116
|
output,
|
|
1138
1117
|
parsedBody,
|
|
1139
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1140
1118
|
errorCode,
|
|
1141
1119
|
});
|
|
1142
1120
|
}
|
|
@@ -1147,12 +1125,12 @@ const de_UpdateGatewayInformationCommand = async (output, context) => {
|
|
|
1147
1125
|
}
|
|
1148
1126
|
const data = await parseBody(output.body, context);
|
|
1149
1127
|
let contents = {};
|
|
1150
|
-
contents =
|
|
1128
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1151
1129
|
const response = {
|
|
1152
1130
|
$metadata: deserializeMetadata(output),
|
|
1153
1131
|
...contents,
|
|
1154
1132
|
};
|
|
1155
|
-
return
|
|
1133
|
+
return response;
|
|
1156
1134
|
};
|
|
1157
1135
|
exports.de_UpdateGatewayInformationCommand = de_UpdateGatewayInformationCommand;
|
|
1158
1136
|
const de_UpdateGatewayInformationCommandError = async (output, context) => {
|
|
@@ -1179,10 +1157,9 @@ const de_UpdateGatewayInformationCommandError = async (output, context) => {
|
|
|
1179
1157
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1180
1158
|
default:
|
|
1181
1159
|
const parsedBody = parsedOutput.body;
|
|
1182
|
-
|
|
1160
|
+
return throwDefaultError({
|
|
1183
1161
|
output,
|
|
1184
1162
|
parsedBody,
|
|
1185
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1186
1163
|
errorCode,
|
|
1187
1164
|
});
|
|
1188
1165
|
}
|
|
@@ -1193,12 +1170,12 @@ const de_UpdateGatewaySoftwareNowCommand = async (output, context) => {
|
|
|
1193
1170
|
}
|
|
1194
1171
|
const data = await parseBody(output.body, context);
|
|
1195
1172
|
let contents = {};
|
|
1196
|
-
contents =
|
|
1173
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1197
1174
|
const response = {
|
|
1198
1175
|
$metadata: deserializeMetadata(output),
|
|
1199
1176
|
...contents,
|
|
1200
1177
|
};
|
|
1201
|
-
return
|
|
1178
|
+
return response;
|
|
1202
1179
|
};
|
|
1203
1180
|
exports.de_UpdateGatewaySoftwareNowCommand = de_UpdateGatewaySoftwareNowCommand;
|
|
1204
1181
|
const de_UpdateGatewaySoftwareNowCommandError = async (output, context) => {
|
|
@@ -1222,10 +1199,9 @@ const de_UpdateGatewaySoftwareNowCommandError = async (output, context) => {
|
|
|
1222
1199
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1223
1200
|
default:
|
|
1224
1201
|
const parsedBody = parsedOutput.body;
|
|
1225
|
-
|
|
1202
|
+
return throwDefaultError({
|
|
1226
1203
|
output,
|
|
1227
1204
|
parsedBody,
|
|
1228
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1229
1205
|
errorCode,
|
|
1230
1206
|
});
|
|
1231
1207
|
}
|
|
@@ -1236,12 +1212,12 @@ const de_UpdateHypervisorCommand = async (output, context) => {
|
|
|
1236
1212
|
}
|
|
1237
1213
|
const data = await parseBody(output.body, context);
|
|
1238
1214
|
let contents = {};
|
|
1239
|
-
contents =
|
|
1215
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1240
1216
|
const response = {
|
|
1241
1217
|
$metadata: deserializeMetadata(output),
|
|
1242
1218
|
...contents,
|
|
1243
1219
|
};
|
|
1244
|
-
return
|
|
1220
|
+
return response;
|
|
1245
1221
|
};
|
|
1246
1222
|
exports.de_UpdateHypervisorCommand = de_UpdateHypervisorCommand;
|
|
1247
1223
|
const de_UpdateHypervisorCommandError = async (output, context) => {
|
|
@@ -1271,17 +1247,16 @@ const de_UpdateHypervisorCommandError = async (output, context) => {
|
|
|
1271
1247
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1272
1248
|
default:
|
|
1273
1249
|
const parsedBody = parsedOutput.body;
|
|
1274
|
-
|
|
1250
|
+
return throwDefaultError({
|
|
1275
1251
|
output,
|
|
1276
1252
|
parsedBody,
|
|
1277
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1278
1253
|
errorCode,
|
|
1279
1254
|
});
|
|
1280
1255
|
}
|
|
1281
1256
|
};
|
|
1282
1257
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1283
1258
|
const body = parsedOutput.body;
|
|
1284
|
-
const deserialized =
|
|
1259
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1285
1260
|
const exception = new models_0_1.AccessDeniedException({
|
|
1286
1261
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1287
1262
|
...deserialized,
|
|
@@ -1290,7 +1265,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1290
1265
|
};
|
|
1291
1266
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1292
1267
|
const body = parsedOutput.body;
|
|
1293
|
-
const deserialized =
|
|
1268
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1294
1269
|
const exception = new models_0_1.ConflictException({
|
|
1295
1270
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1296
1271
|
...deserialized,
|
|
@@ -1299,7 +1274,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1299
1274
|
};
|
|
1300
1275
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1301
1276
|
const body = parsedOutput.body;
|
|
1302
|
-
const deserialized =
|
|
1277
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1303
1278
|
const exception = new models_0_1.InternalServerException({
|
|
1304
1279
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1305
1280
|
...deserialized,
|
|
@@ -1308,7 +1283,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1308
1283
|
};
|
|
1309
1284
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1310
1285
|
const body = parsedOutput.body;
|
|
1311
|
-
const deserialized =
|
|
1286
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1312
1287
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1313
1288
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1314
1289
|
...deserialized,
|
|
@@ -1317,7 +1292,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1317
1292
|
};
|
|
1318
1293
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1319
1294
|
const body = parsedOutput.body;
|
|
1320
|
-
const deserialized =
|
|
1295
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1321
1296
|
const exception = new models_0_1.ThrottlingException({
|
|
1322
1297
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1323
1298
|
...deserialized,
|
|
@@ -1326,607 +1301,111 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1326
1301
|
};
|
|
1327
1302
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1328
1303
|
const body = parsedOutput.body;
|
|
1329
|
-
const deserialized =
|
|
1304
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1330
1305
|
const exception = new models_0_1.ValidationException({
|
|
1331
1306
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1332
1307
|
...deserialized,
|
|
1333
1308
|
});
|
|
1334
1309
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1335
1310
|
};
|
|
1336
|
-
const se_AssociateGatewayToServerInput = (input, context) => {
|
|
1337
|
-
return {
|
|
1338
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1339
|
-
...(input.ServerArn != null && { ServerArn: input.ServerArn }),
|
|
1340
|
-
};
|
|
1341
|
-
};
|
|
1342
|
-
const se_BandwidthRateLimitInterval = (input, context) => {
|
|
1343
|
-
return {
|
|
1344
|
-
...(input.AverageUploadRateLimitInBitsPerSec != null && {
|
|
1345
|
-
AverageUploadRateLimitInBitsPerSec: input.AverageUploadRateLimitInBitsPerSec,
|
|
1346
|
-
}),
|
|
1347
|
-
...(input.DaysOfWeek != null && { DaysOfWeek: se_DaysOfWeek(input.DaysOfWeek, context) }),
|
|
1348
|
-
...(input.EndHourOfDay != null && { EndHourOfDay: input.EndHourOfDay }),
|
|
1349
|
-
...(input.EndMinuteOfHour != null && { EndMinuteOfHour: input.EndMinuteOfHour }),
|
|
1350
|
-
...(input.StartHourOfDay != null && { StartHourOfDay: input.StartHourOfDay }),
|
|
1351
|
-
...(input.StartMinuteOfHour != null && { StartMinuteOfHour: input.StartMinuteOfHour }),
|
|
1352
|
-
};
|
|
1353
|
-
};
|
|
1354
|
-
const se_BandwidthRateLimitIntervals = (input, context) => {
|
|
1355
|
-
return input
|
|
1356
|
-
.filter((e) => e != null)
|
|
1357
|
-
.map((entry) => {
|
|
1358
|
-
return se_BandwidthRateLimitInterval(entry, context);
|
|
1359
|
-
});
|
|
1360
|
-
};
|
|
1361
|
-
const se_CreateGatewayInput = (input, context) => {
|
|
1362
|
-
return {
|
|
1363
|
-
...(input.ActivationKey != null && { ActivationKey: input.ActivationKey }),
|
|
1364
|
-
...(input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1365
|
-
...(input.GatewayType != null && { GatewayType: input.GatewayType }),
|
|
1366
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1367
|
-
};
|
|
1368
|
-
};
|
|
1369
|
-
const se_DaysOfWeek = (input, context) => {
|
|
1370
|
-
return input
|
|
1371
|
-
.filter((e) => e != null)
|
|
1372
|
-
.map((entry) => {
|
|
1373
|
-
return entry;
|
|
1374
|
-
});
|
|
1375
|
-
};
|
|
1376
|
-
const se_DeleteGatewayInput = (input, context) => {
|
|
1377
|
-
return {
|
|
1378
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1379
|
-
};
|
|
1380
|
-
};
|
|
1381
|
-
const se_DeleteHypervisorInput = (input, context) => {
|
|
1382
|
-
return {
|
|
1383
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1384
|
-
};
|
|
1385
|
-
};
|
|
1386
|
-
const se_DisassociateGatewayFromServerInput = (input, context) => {
|
|
1387
|
-
return {
|
|
1388
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1389
|
-
};
|
|
1390
|
-
};
|
|
1391
|
-
const se_GetBandwidthRateLimitScheduleInput = (input, context) => {
|
|
1392
|
-
return {
|
|
1393
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1394
|
-
};
|
|
1395
|
-
};
|
|
1396
|
-
const se_GetGatewayInput = (input, context) => {
|
|
1397
|
-
return {
|
|
1398
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1399
|
-
};
|
|
1400
|
-
};
|
|
1401
|
-
const se_GetHypervisorInput = (input, context) => {
|
|
1402
|
-
return {
|
|
1403
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1404
|
-
};
|
|
1405
|
-
};
|
|
1406
|
-
const se_GetHypervisorPropertyMappingsInput = (input, context) => {
|
|
1407
|
-
return {
|
|
1408
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1409
|
-
};
|
|
1410
|
-
};
|
|
1411
|
-
const se_GetVirtualMachineInput = (input, context) => {
|
|
1412
|
-
return {
|
|
1413
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1414
|
-
};
|
|
1415
|
-
};
|
|
1416
|
-
const se_ImportHypervisorConfigurationInput = (input, context) => {
|
|
1417
|
-
return {
|
|
1418
|
-
...(input.Host != null && { Host: input.Host }),
|
|
1419
|
-
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
1420
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1421
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1422
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1423
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1424
|
-
};
|
|
1425
|
-
};
|
|
1426
|
-
const se_ListGatewaysInput = (input, context) => {
|
|
1427
|
-
return {
|
|
1428
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1429
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1430
|
-
};
|
|
1431
|
-
};
|
|
1432
|
-
const se_ListHypervisorsInput = (input, context) => {
|
|
1433
|
-
return {
|
|
1434
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1435
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1436
|
-
};
|
|
1437
|
-
};
|
|
1438
|
-
const se_ListTagsForResourceInput = (input, context) => {
|
|
1439
|
-
return {
|
|
1440
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1441
|
-
};
|
|
1442
|
-
};
|
|
1443
|
-
const se_ListVirtualMachinesInput = (input, context) => {
|
|
1444
|
-
return {
|
|
1445
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1446
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1447
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1448
|
-
};
|
|
1449
|
-
};
|
|
1450
|
-
const se_PutBandwidthRateLimitScheduleInput = (input, context) => {
|
|
1451
|
-
return {
|
|
1452
|
-
...(input.BandwidthRateLimitIntervals != null && {
|
|
1453
|
-
BandwidthRateLimitIntervals: se_BandwidthRateLimitIntervals(input.BandwidthRateLimitIntervals, context),
|
|
1454
|
-
}),
|
|
1455
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1456
|
-
};
|
|
1457
|
-
};
|
|
1458
|
-
const se_PutHypervisorPropertyMappingsInput = (input, context) => {
|
|
1459
|
-
return {
|
|
1460
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1461
|
-
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1462
|
-
...(input.VmwareToAwsTagMappings != null && {
|
|
1463
|
-
VmwareToAwsTagMappings: se_VmwareToAwsTagMappings(input.VmwareToAwsTagMappings, context),
|
|
1464
|
-
}),
|
|
1465
|
-
};
|
|
1466
|
-
};
|
|
1467
|
-
const se_PutMaintenanceStartTimeInput = (input, context) => {
|
|
1468
|
-
return {
|
|
1469
|
-
...(input.DayOfMonth != null && { DayOfMonth: input.DayOfMonth }),
|
|
1470
|
-
...(input.DayOfWeek != null && { DayOfWeek: input.DayOfWeek }),
|
|
1471
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1472
|
-
...(input.HourOfDay != null && { HourOfDay: input.HourOfDay }),
|
|
1473
|
-
...(input.MinuteOfHour != null && { MinuteOfHour: input.MinuteOfHour }),
|
|
1474
|
-
};
|
|
1475
|
-
};
|
|
1476
|
-
const se_StartVirtualMachinesMetadataSyncInput = (input, context) => {
|
|
1477
|
-
return {
|
|
1478
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1479
|
-
};
|
|
1480
|
-
};
|
|
1481
|
-
const se_Tag = (input, context) => {
|
|
1482
|
-
return {
|
|
1483
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1484
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1485
|
-
};
|
|
1486
|
-
};
|
|
1487
|
-
const se_TagKeys = (input, context) => {
|
|
1488
|
-
return input
|
|
1489
|
-
.filter((e) => e != null)
|
|
1490
|
-
.map((entry) => {
|
|
1491
|
-
return entry;
|
|
1492
|
-
});
|
|
1493
|
-
};
|
|
1494
|
-
const se_TagResourceInput = (input, context) => {
|
|
1495
|
-
return {
|
|
1496
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1497
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1498
|
-
};
|
|
1499
|
-
};
|
|
1500
|
-
const se_Tags = (input, context) => {
|
|
1501
|
-
return input
|
|
1502
|
-
.filter((e) => e != null)
|
|
1503
|
-
.map((entry) => {
|
|
1504
|
-
return se_Tag(entry, context);
|
|
1505
|
-
});
|
|
1506
|
-
};
|
|
1507
|
-
const se_TestHypervisorConfigurationInput = (input, context) => {
|
|
1508
|
-
return {
|
|
1509
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1510
|
-
...(input.Host != null && { Host: input.Host }),
|
|
1511
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1512
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1513
|
-
};
|
|
1514
|
-
};
|
|
1515
|
-
const se_UntagResourceInput = (input, context) => {
|
|
1516
|
-
return {
|
|
1517
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1518
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
|
|
1519
|
-
};
|
|
1520
|
-
};
|
|
1521
|
-
const se_UpdateGatewayInformationInput = (input, context) => {
|
|
1522
|
-
return {
|
|
1523
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1524
|
-
...(input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1525
|
-
};
|
|
1526
|
-
};
|
|
1527
|
-
const se_UpdateGatewaySoftwareNowInput = (input, context) => {
|
|
1528
|
-
return {
|
|
1529
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1530
|
-
};
|
|
1531
|
-
};
|
|
1532
|
-
const se_UpdateHypervisorInput = (input, context) => {
|
|
1533
|
-
return {
|
|
1534
|
-
...(input.Host != null && { Host: input.Host }),
|
|
1535
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1536
|
-
...(input.LogGroupArn != null && { LogGroupArn: input.LogGroupArn }),
|
|
1537
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1538
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1539
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1540
|
-
};
|
|
1541
|
-
};
|
|
1542
|
-
const se_VmwareToAwsTagMapping = (input, context) => {
|
|
1543
|
-
return {
|
|
1544
|
-
...(input.AwsTagKey != null && { AwsTagKey: input.AwsTagKey }),
|
|
1545
|
-
...(input.AwsTagValue != null && { AwsTagValue: input.AwsTagValue }),
|
|
1546
|
-
...(input.VmwareCategory != null && { VmwareCategory: input.VmwareCategory }),
|
|
1547
|
-
...(input.VmwareTagName != null && { VmwareTagName: input.VmwareTagName }),
|
|
1548
|
-
};
|
|
1549
|
-
};
|
|
1550
|
-
const se_VmwareToAwsTagMappings = (input, context) => {
|
|
1551
|
-
return input
|
|
1552
|
-
.filter((e) => e != null)
|
|
1553
|
-
.map((entry) => {
|
|
1554
|
-
return se_VmwareToAwsTagMapping(entry, context);
|
|
1555
|
-
});
|
|
1556
|
-
};
|
|
1557
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1558
|
-
return {
|
|
1559
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1560
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1561
|
-
};
|
|
1562
|
-
};
|
|
1563
|
-
const de_AssociateGatewayToServerOutput = (output, context) => {
|
|
1564
|
-
return {
|
|
1565
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1566
|
-
};
|
|
1567
|
-
};
|
|
1568
|
-
const de_BandwidthRateLimitInterval = (output, context) => {
|
|
1569
|
-
return {
|
|
1570
|
-
AverageUploadRateLimitInBitsPerSec: (0, smithy_client_1.expectLong)(output.AverageUploadRateLimitInBitsPerSec),
|
|
1571
|
-
DaysOfWeek: output.DaysOfWeek != null ? de_DaysOfWeek(output.DaysOfWeek, context) : undefined,
|
|
1572
|
-
EndHourOfDay: (0, smithy_client_1.expectInt32)(output.EndHourOfDay),
|
|
1573
|
-
EndMinuteOfHour: (0, smithy_client_1.expectInt32)(output.EndMinuteOfHour),
|
|
1574
|
-
StartHourOfDay: (0, smithy_client_1.expectInt32)(output.StartHourOfDay),
|
|
1575
|
-
StartMinuteOfHour: (0, smithy_client_1.expectInt32)(output.StartMinuteOfHour),
|
|
1576
|
-
};
|
|
1577
|
-
};
|
|
1578
|
-
const de_BandwidthRateLimitIntervals = (output, context) => {
|
|
1579
|
-
const retVal = (output || [])
|
|
1580
|
-
.filter((e) => e != null)
|
|
1581
|
-
.map((entry) => {
|
|
1582
|
-
if (entry === null) {
|
|
1583
|
-
return null;
|
|
1584
|
-
}
|
|
1585
|
-
return de_BandwidthRateLimitInterval(entry, context);
|
|
1586
|
-
});
|
|
1587
|
-
return retVal;
|
|
1588
|
-
};
|
|
1589
|
-
const de_ConflictException = (output, context) => {
|
|
1590
|
-
return {
|
|
1591
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1592
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1593
|
-
};
|
|
1594
|
-
};
|
|
1595
|
-
const de_CreateGatewayOutput = (output, context) => {
|
|
1596
|
-
return {
|
|
1597
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1598
|
-
};
|
|
1599
|
-
};
|
|
1600
|
-
const de_DaysOfWeek = (output, context) => {
|
|
1601
|
-
const retVal = (output || [])
|
|
1602
|
-
.filter((e) => e != null)
|
|
1603
|
-
.map((entry) => {
|
|
1604
|
-
if (entry === null) {
|
|
1605
|
-
return null;
|
|
1606
|
-
}
|
|
1607
|
-
return (0, smithy_client_1.expectInt32)(entry);
|
|
1608
|
-
});
|
|
1609
|
-
return retVal;
|
|
1610
|
-
};
|
|
1611
|
-
const de_DeleteGatewayOutput = (output, context) => {
|
|
1612
|
-
return {
|
|
1613
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1614
|
-
};
|
|
1615
|
-
};
|
|
1616
|
-
const de_DeleteHypervisorOutput = (output, context) => {
|
|
1617
|
-
return {
|
|
1618
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1619
|
-
};
|
|
1620
|
-
};
|
|
1621
|
-
const de_DisassociateGatewayFromServerOutput = (output, context) => {
|
|
1622
|
-
return {
|
|
1623
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1624
|
-
};
|
|
1625
|
-
};
|
|
1626
1311
|
const de_Gateway = (output, context) => {
|
|
1627
|
-
return {
|
|
1628
|
-
GatewayArn:
|
|
1629
|
-
GatewayDisplayName:
|
|
1630
|
-
GatewayType:
|
|
1631
|
-
HypervisorId:
|
|
1632
|
-
LastSeenTime:
|
|
1633
|
-
|
|
1634
|
-
: undefined,
|
|
1635
|
-
};
|
|
1312
|
+
return (0, smithy_client_1.take)(output, {
|
|
1313
|
+
GatewayArn: smithy_client_1.expectString,
|
|
1314
|
+
GatewayDisplayName: smithy_client_1.expectString,
|
|
1315
|
+
GatewayType: smithy_client_1.expectString,
|
|
1316
|
+
HypervisorId: smithy_client_1.expectString,
|
|
1317
|
+
LastSeenTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1318
|
+
});
|
|
1636
1319
|
};
|
|
1637
1320
|
const de_GatewayDetails = (output, context) => {
|
|
1638
|
-
return {
|
|
1639
|
-
GatewayArn:
|
|
1640
|
-
GatewayDisplayName:
|
|
1641
|
-
GatewayType:
|
|
1642
|
-
HypervisorId:
|
|
1643
|
-
LastSeenTime:
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NextUpdateAvailabilityTime)))
|
|
1649
|
-
: undefined,
|
|
1650
|
-
VpcEndpoint: (0, smithy_client_1.expectString)(output.VpcEndpoint),
|
|
1651
|
-
};
|
|
1321
|
+
return (0, smithy_client_1.take)(output, {
|
|
1322
|
+
GatewayArn: smithy_client_1.expectString,
|
|
1323
|
+
GatewayDisplayName: smithy_client_1.expectString,
|
|
1324
|
+
GatewayType: smithy_client_1.expectString,
|
|
1325
|
+
HypervisorId: smithy_client_1.expectString,
|
|
1326
|
+
LastSeenTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1327
|
+
MaintenanceStartTime: smithy_client_1._json,
|
|
1328
|
+
NextUpdateAvailabilityTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1329
|
+
VpcEndpoint: smithy_client_1.expectString,
|
|
1330
|
+
});
|
|
1652
1331
|
};
|
|
1653
1332
|
const de_Gateways = (output, context) => {
|
|
1654
1333
|
const retVal = (output || [])
|
|
1655
1334
|
.filter((e) => e != null)
|
|
1656
1335
|
.map((entry) => {
|
|
1657
|
-
if (entry === null) {
|
|
1658
|
-
return null;
|
|
1659
|
-
}
|
|
1660
1336
|
return de_Gateway(entry, context);
|
|
1661
1337
|
});
|
|
1662
1338
|
return retVal;
|
|
1663
1339
|
};
|
|
1664
|
-
const de_GetBandwidthRateLimitScheduleOutput = (output, context) => {
|
|
1665
|
-
return {
|
|
1666
|
-
BandwidthRateLimitIntervals: output.BandwidthRateLimitIntervals != null
|
|
1667
|
-
? de_BandwidthRateLimitIntervals(output.BandwidthRateLimitIntervals, context)
|
|
1668
|
-
: undefined,
|
|
1669
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1670
|
-
};
|
|
1671
|
-
};
|
|
1672
1340
|
const de_GetGatewayOutput = (output, context) => {
|
|
1673
|
-
return {
|
|
1674
|
-
Gateway:
|
|
1675
|
-
};
|
|
1341
|
+
return (0, smithy_client_1.take)(output, {
|
|
1342
|
+
Gateway: (_) => de_GatewayDetails(_, context),
|
|
1343
|
+
});
|
|
1676
1344
|
};
|
|
1677
1345
|
const de_GetHypervisorOutput = (output, context) => {
|
|
1678
|
-
return {
|
|
1679
|
-
Hypervisor:
|
|
1680
|
-
};
|
|
1681
|
-
};
|
|
1682
|
-
const de_GetHypervisorPropertyMappingsOutput = (output, context) => {
|
|
1683
|
-
return {
|
|
1684
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1685
|
-
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
1686
|
-
VmwareToAwsTagMappings: output.VmwareToAwsTagMappings != null
|
|
1687
|
-
? de_VmwareToAwsTagMappings(output.VmwareToAwsTagMappings, context)
|
|
1688
|
-
: undefined,
|
|
1689
|
-
};
|
|
1346
|
+
return (0, smithy_client_1.take)(output, {
|
|
1347
|
+
Hypervisor: (_) => de_HypervisorDetails(_, context),
|
|
1348
|
+
});
|
|
1690
1349
|
};
|
|
1691
1350
|
const de_GetVirtualMachineOutput = (output, context) => {
|
|
1692
|
-
return {
|
|
1693
|
-
VirtualMachine:
|
|
1694
|
-
};
|
|
1695
|
-
};
|
|
1696
|
-
const de_Hypervisor = (output, context) => {
|
|
1697
|
-
return {
|
|
1698
|
-
Host: (0, smithy_client_1.expectString)(output.Host),
|
|
1699
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1700
|
-
KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
|
|
1701
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1702
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1703
|
-
};
|
|
1351
|
+
return (0, smithy_client_1.take)(output, {
|
|
1352
|
+
VirtualMachine: (_) => de_VirtualMachineDetails(_, context),
|
|
1353
|
+
});
|
|
1704
1354
|
};
|
|
1705
1355
|
const de_HypervisorDetails = (output, context) => {
|
|
1706
|
-
return {
|
|
1707
|
-
Host:
|
|
1708
|
-
HypervisorArn:
|
|
1709
|
-
KmsKeyArn:
|
|
1710
|
-
LastSuccessfulMetadataSyncTime:
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1717
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1718
|
-
};
|
|
1719
|
-
};
|
|
1720
|
-
const de_Hypervisors = (output, context) => {
|
|
1721
|
-
const retVal = (output || [])
|
|
1722
|
-
.filter((e) => e != null)
|
|
1723
|
-
.map((entry) => {
|
|
1724
|
-
if (entry === null) {
|
|
1725
|
-
return null;
|
|
1726
|
-
}
|
|
1727
|
-
return de_Hypervisor(entry, context);
|
|
1356
|
+
return (0, smithy_client_1.take)(output, {
|
|
1357
|
+
Host: smithy_client_1.expectString,
|
|
1358
|
+
HypervisorArn: smithy_client_1.expectString,
|
|
1359
|
+
KmsKeyArn: smithy_client_1.expectString,
|
|
1360
|
+
LastSuccessfulMetadataSyncTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1361
|
+
LatestMetadataSyncStatus: smithy_client_1.expectString,
|
|
1362
|
+
LatestMetadataSyncStatusMessage: smithy_client_1.expectString,
|
|
1363
|
+
LogGroupArn: smithy_client_1.expectString,
|
|
1364
|
+
Name: smithy_client_1.expectString,
|
|
1365
|
+
State: smithy_client_1.expectString,
|
|
1728
1366
|
});
|
|
1729
|
-
return retVal;
|
|
1730
|
-
};
|
|
1731
|
-
const de_ImportHypervisorConfigurationOutput = (output, context) => {
|
|
1732
|
-
return {
|
|
1733
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1734
|
-
};
|
|
1735
|
-
};
|
|
1736
|
-
const de_InternalServerException = (output, context) => {
|
|
1737
|
-
return {
|
|
1738
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1739
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1740
|
-
};
|
|
1741
1367
|
};
|
|
1742
1368
|
const de_ListGatewaysOutput = (output, context) => {
|
|
1743
|
-
return {
|
|
1744
|
-
Gateways:
|
|
1745
|
-
NextToken:
|
|
1746
|
-
};
|
|
1747
|
-
};
|
|
1748
|
-
const de_ListHypervisorsOutput = (output, context) => {
|
|
1749
|
-
return {
|
|
1750
|
-
Hypervisors: output.Hypervisors != null ? de_Hypervisors(output.Hypervisors, context) : undefined,
|
|
1751
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1752
|
-
};
|
|
1753
|
-
};
|
|
1754
|
-
const de_ListTagsForResourceOutput = (output, context) => {
|
|
1755
|
-
return {
|
|
1756
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1757
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
1758
|
-
};
|
|
1369
|
+
return (0, smithy_client_1.take)(output, {
|
|
1370
|
+
Gateways: (_) => de_Gateways(_, context),
|
|
1371
|
+
NextToken: smithy_client_1.expectString,
|
|
1372
|
+
});
|
|
1759
1373
|
};
|
|
1760
1374
|
const de_ListVirtualMachinesOutput = (output, context) => {
|
|
1761
|
-
return {
|
|
1762
|
-
NextToken:
|
|
1763
|
-
VirtualMachines:
|
|
1764
|
-
};
|
|
1765
|
-
};
|
|
1766
|
-
const de_MaintenanceStartTime = (output, context) => {
|
|
1767
|
-
return {
|
|
1768
|
-
DayOfMonth: (0, smithy_client_1.expectInt32)(output.DayOfMonth),
|
|
1769
|
-
DayOfWeek: (0, smithy_client_1.expectInt32)(output.DayOfWeek),
|
|
1770
|
-
HourOfDay: (0, smithy_client_1.expectInt32)(output.HourOfDay),
|
|
1771
|
-
MinuteOfHour: (0, smithy_client_1.expectInt32)(output.MinuteOfHour),
|
|
1772
|
-
};
|
|
1773
|
-
};
|
|
1774
|
-
const de_PutBandwidthRateLimitScheduleOutput = (output, context) => {
|
|
1775
|
-
return {
|
|
1776
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1777
|
-
};
|
|
1778
|
-
};
|
|
1779
|
-
const de_PutHypervisorPropertyMappingsOutput = (output, context) => {
|
|
1780
|
-
return {
|
|
1781
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1782
|
-
};
|
|
1783
|
-
};
|
|
1784
|
-
const de_PutMaintenanceStartTimeOutput = (output, context) => {
|
|
1785
|
-
return {
|
|
1786
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1787
|
-
};
|
|
1788
|
-
};
|
|
1789
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1790
|
-
return {
|
|
1791
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1792
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1793
|
-
};
|
|
1794
|
-
};
|
|
1795
|
-
const de_StartVirtualMachinesMetadataSyncOutput = (output, context) => {
|
|
1796
|
-
return {
|
|
1797
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1798
|
-
};
|
|
1799
|
-
};
|
|
1800
|
-
const de_Tag = (output, context) => {
|
|
1801
|
-
return {
|
|
1802
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1803
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1804
|
-
};
|
|
1805
|
-
};
|
|
1806
|
-
const de_TagResourceOutput = (output, context) => {
|
|
1807
|
-
return {
|
|
1808
|
-
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
1809
|
-
};
|
|
1810
|
-
};
|
|
1811
|
-
const de_Tags = (output, context) => {
|
|
1812
|
-
const retVal = (output || [])
|
|
1813
|
-
.filter((e) => e != null)
|
|
1814
|
-
.map((entry) => {
|
|
1815
|
-
if (entry === null) {
|
|
1816
|
-
return null;
|
|
1817
|
-
}
|
|
1818
|
-
return de_Tag(entry, context);
|
|
1375
|
+
return (0, smithy_client_1.take)(output, {
|
|
1376
|
+
NextToken: smithy_client_1.expectString,
|
|
1377
|
+
VirtualMachines: (_) => de_VirtualMachines(_, context),
|
|
1819
1378
|
});
|
|
1820
|
-
return retVal;
|
|
1821
|
-
};
|
|
1822
|
-
const de_TestHypervisorConfigurationOutput = (output, context) => {
|
|
1823
|
-
return {};
|
|
1824
|
-
};
|
|
1825
|
-
const de_ThrottlingException = (output, context) => {
|
|
1826
|
-
return {
|
|
1827
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1828
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1829
|
-
};
|
|
1830
|
-
};
|
|
1831
|
-
const de_UntagResourceOutput = (output, context) => {
|
|
1832
|
-
return {
|
|
1833
|
-
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
1834
|
-
};
|
|
1835
|
-
};
|
|
1836
|
-
const de_UpdateGatewayInformationOutput = (output, context) => {
|
|
1837
|
-
return {
|
|
1838
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1839
|
-
};
|
|
1840
|
-
};
|
|
1841
|
-
const de_UpdateGatewaySoftwareNowOutput = (output, context) => {
|
|
1842
|
-
return {
|
|
1843
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1844
|
-
};
|
|
1845
|
-
};
|
|
1846
|
-
const de_UpdateHypervisorOutput = (output, context) => {
|
|
1847
|
-
return {
|
|
1848
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1849
|
-
};
|
|
1850
|
-
};
|
|
1851
|
-
const de_ValidationException = (output, context) => {
|
|
1852
|
-
return {
|
|
1853
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1854
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1855
|
-
};
|
|
1856
1379
|
};
|
|
1857
1380
|
const de_VirtualMachine = (output, context) => {
|
|
1858
|
-
return {
|
|
1859
|
-
HostName:
|
|
1860
|
-
HypervisorId:
|
|
1861
|
-
LastBackupDate:
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1867
|
-
};
|
|
1381
|
+
return (0, smithy_client_1.take)(output, {
|
|
1382
|
+
HostName: smithy_client_1.expectString,
|
|
1383
|
+
HypervisorId: smithy_client_1.expectString,
|
|
1384
|
+
LastBackupDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1385
|
+
Name: smithy_client_1.expectString,
|
|
1386
|
+
Path: smithy_client_1.expectString,
|
|
1387
|
+
ResourceArn: smithy_client_1.expectString,
|
|
1388
|
+
});
|
|
1868
1389
|
};
|
|
1869
1390
|
const de_VirtualMachineDetails = (output, context) => {
|
|
1870
|
-
return {
|
|
1871
|
-
HostName:
|
|
1872
|
-
HypervisorId:
|
|
1873
|
-
LastBackupDate:
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
VmwareTags: output.VmwareTags != null ? de_VmwareTags(output.VmwareTags, context) : undefined,
|
|
1880
|
-
};
|
|
1391
|
+
return (0, smithy_client_1.take)(output, {
|
|
1392
|
+
HostName: smithy_client_1.expectString,
|
|
1393
|
+
HypervisorId: smithy_client_1.expectString,
|
|
1394
|
+
LastBackupDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1395
|
+
Name: smithy_client_1.expectString,
|
|
1396
|
+
Path: smithy_client_1.expectString,
|
|
1397
|
+
ResourceArn: smithy_client_1.expectString,
|
|
1398
|
+
VmwareTags: smithy_client_1._json,
|
|
1399
|
+
});
|
|
1881
1400
|
};
|
|
1882
1401
|
const de_VirtualMachines = (output, context) => {
|
|
1883
1402
|
const retVal = (output || [])
|
|
1884
1403
|
.filter((e) => e != null)
|
|
1885
1404
|
.map((entry) => {
|
|
1886
|
-
if (entry === null) {
|
|
1887
|
-
return null;
|
|
1888
|
-
}
|
|
1889
1405
|
return de_VirtualMachine(entry, context);
|
|
1890
1406
|
});
|
|
1891
1407
|
return retVal;
|
|
1892
1408
|
};
|
|
1893
|
-
const de_VmwareTag = (output, context) => {
|
|
1894
|
-
return {
|
|
1895
|
-
VmwareCategory: (0, smithy_client_1.expectString)(output.VmwareCategory),
|
|
1896
|
-
VmwareTagDescription: (0, smithy_client_1.expectString)(output.VmwareTagDescription),
|
|
1897
|
-
VmwareTagName: (0, smithy_client_1.expectString)(output.VmwareTagName),
|
|
1898
|
-
};
|
|
1899
|
-
};
|
|
1900
|
-
const de_VmwareTags = (output, context) => {
|
|
1901
|
-
const retVal = (output || [])
|
|
1902
|
-
.filter((e) => e != null)
|
|
1903
|
-
.map((entry) => {
|
|
1904
|
-
if (entry === null) {
|
|
1905
|
-
return null;
|
|
1906
|
-
}
|
|
1907
|
-
return de_VmwareTag(entry, context);
|
|
1908
|
-
});
|
|
1909
|
-
return retVal;
|
|
1910
|
-
};
|
|
1911
|
-
const de_VmwareToAwsTagMapping = (output, context) => {
|
|
1912
|
-
return {
|
|
1913
|
-
AwsTagKey: (0, smithy_client_1.expectString)(output.AwsTagKey),
|
|
1914
|
-
AwsTagValue: (0, smithy_client_1.expectString)(output.AwsTagValue),
|
|
1915
|
-
VmwareCategory: (0, smithy_client_1.expectString)(output.VmwareCategory),
|
|
1916
|
-
VmwareTagName: (0, smithy_client_1.expectString)(output.VmwareTagName),
|
|
1917
|
-
};
|
|
1918
|
-
};
|
|
1919
|
-
const de_VmwareToAwsTagMappings = (output, context) => {
|
|
1920
|
-
const retVal = (output || [])
|
|
1921
|
-
.filter((e) => e != null)
|
|
1922
|
-
.map((entry) => {
|
|
1923
|
-
if (entry === null) {
|
|
1924
|
-
return null;
|
|
1925
|
-
}
|
|
1926
|
-
return de_VmwareToAwsTagMapping(entry, context);
|
|
1927
|
-
});
|
|
1928
|
-
return retVal;
|
|
1929
|
-
};
|
|
1930
1409
|
const deserializeMetadata = (output) => ({
|
|
1931
1410
|
httpStatusCode: output.statusCode,
|
|
1932
1411
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1940,6 +1419,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1940
1419
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1941
1420
|
};
|
|
1942
1421
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1422
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(BackupGatewayServiceException_1.BackupGatewayServiceException);
|
|
1943
1423
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1944
1424
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1945
1425
|
const contents = {
|