@aws-sdk/client-backup-gateway 3.310.0 → 3.315.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/protocols/Aws_json1_0.js +193 -782
- package/dist-es/protocols/Aws_json1_0.js +194 -783
- package/package.json +6 -6
|
@@ -6,252 +6,177 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const BackupGatewayServiceException_1 = require("../models/BackupGatewayServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_AssociateGatewayToServerCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.0",
|
|
11
|
-
"x-amz-target": "BackupOnPremises_v20210101.AssociateGatewayToServer",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("AssociateGatewayToServer");
|
|
13
10
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_AssociateGatewayToServerCommand = se_AssociateGatewayToServerCommand;
|
|
18
15
|
const se_CreateGatewayCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.0",
|
|
21
|
-
"x-amz-target": "BackupOnPremises_v20210101.CreateGateway",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("CreateGateway");
|
|
23
17
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_CreateGatewayCommand = se_CreateGatewayCommand;
|
|
28
22
|
const se_DeleteGatewayCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.0",
|
|
31
|
-
"x-amz-target": "BackupOnPremises_v20210101.DeleteGateway",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("DeleteGateway");
|
|
33
24
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_DeleteGatewayCommand = se_DeleteGatewayCommand;
|
|
38
29
|
const se_DeleteHypervisorCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.0",
|
|
41
|
-
"x-amz-target": "BackupOnPremises_v20210101.DeleteHypervisor",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DeleteHypervisor");
|
|
43
31
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_DeleteHypervisorCommand = se_DeleteHypervisorCommand;
|
|
48
36
|
const se_DisassociateGatewayFromServerCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.0",
|
|
51
|
-
"x-amz-target": "BackupOnPremises_v20210101.DisassociateGatewayFromServer",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DisassociateGatewayFromServer");
|
|
53
38
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_DisassociateGatewayFromServerCommand = se_DisassociateGatewayFromServerCommand;
|
|
58
43
|
const se_GetBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.0",
|
|
61
|
-
"x-amz-target": "BackupOnPremises_v20210101.GetBandwidthRateLimitSchedule",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("GetBandwidthRateLimitSchedule");
|
|
63
45
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_GetBandwidthRateLimitScheduleCommand = se_GetBandwidthRateLimitScheduleCommand;
|
|
68
50
|
const se_GetGatewayCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.0",
|
|
71
|
-
"x-amz-target": "BackupOnPremises_v20210101.GetGateway",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("GetGateway");
|
|
73
52
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_GetGatewayCommand = se_GetGatewayCommand;
|
|
78
57
|
const se_GetHypervisorCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.0",
|
|
81
|
-
"x-amz-target": "BackupOnPremises_v20210101.GetHypervisor",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("GetHypervisor");
|
|
83
59
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_GetHypervisorCommand = se_GetHypervisorCommand;
|
|
88
64
|
const se_GetHypervisorPropertyMappingsCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.0",
|
|
91
|
-
"x-amz-target": "BackupOnPremises_v20210101.GetHypervisorPropertyMappings",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("GetHypervisorPropertyMappings");
|
|
93
66
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_GetHypervisorPropertyMappingsCommand = se_GetHypervisorPropertyMappingsCommand;
|
|
98
71
|
const se_GetVirtualMachineCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.0",
|
|
101
|
-
"x-amz-target": "BackupOnPremises_v20210101.GetVirtualMachine",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("GetVirtualMachine");
|
|
103
73
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_GetVirtualMachineCommand = se_GetVirtualMachineCommand;
|
|
108
78
|
const se_ImportHypervisorConfigurationCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.0",
|
|
111
|
-
"x-amz-target": "BackupOnPremises_v20210101.ImportHypervisorConfiguration",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("ImportHypervisorConfiguration");
|
|
113
80
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
115
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
83
|
};
|
|
117
84
|
exports.se_ImportHypervisorConfigurationCommand = se_ImportHypervisorConfigurationCommand;
|
|
118
85
|
const se_ListGatewaysCommand = async (input, context) => {
|
|
119
|
-
const headers =
|
|
120
|
-
"content-type": "application/x-amz-json-1.0",
|
|
121
|
-
"x-amz-target": "BackupOnPremises_v20210101.ListGateways",
|
|
122
|
-
};
|
|
86
|
+
const headers = sharedHeaders("ListGateways");
|
|
123
87
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
90
|
};
|
|
127
91
|
exports.se_ListGatewaysCommand = se_ListGatewaysCommand;
|
|
128
92
|
const se_ListHypervisorsCommand = async (input, context) => {
|
|
129
|
-
const headers =
|
|
130
|
-
"content-type": "application/x-amz-json-1.0",
|
|
131
|
-
"x-amz-target": "BackupOnPremises_v20210101.ListHypervisors",
|
|
132
|
-
};
|
|
93
|
+
const headers = sharedHeaders("ListHypervisors");
|
|
133
94
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
135
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
97
|
};
|
|
137
98
|
exports.se_ListHypervisorsCommand = se_ListHypervisorsCommand;
|
|
138
99
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-amz-json-1.0",
|
|
141
|
-
"x-amz-target": "BackupOnPremises_v20210101.ListTagsForResource",
|
|
142
|
-
};
|
|
100
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
143
101
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
104
|
};
|
|
147
105
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
148
106
|
const se_ListVirtualMachinesCommand = async (input, context) => {
|
|
149
|
-
const headers =
|
|
150
|
-
"content-type": "application/x-amz-json-1.0",
|
|
151
|
-
"x-amz-target": "BackupOnPremises_v20210101.ListVirtualMachines",
|
|
152
|
-
};
|
|
107
|
+
const headers = sharedHeaders("ListVirtualMachines");
|
|
153
108
|
let body;
|
|
154
|
-
body = JSON.stringify(
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_ListVirtualMachinesCommand = se_ListVirtualMachinesCommand;
|
|
158
113
|
const se_PutBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.0",
|
|
161
|
-
"x-amz-target": "BackupOnPremises_v20210101.PutBandwidthRateLimitSchedule",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("PutBandwidthRateLimitSchedule");
|
|
163
115
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_PutBandwidthRateLimitScheduleCommand = se_PutBandwidthRateLimitScheduleCommand;
|
|
168
120
|
const se_PutHypervisorPropertyMappingsCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.0",
|
|
171
|
-
"x-amz-target": "BackupOnPremises_v20210101.PutHypervisorPropertyMappings",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("PutHypervisorPropertyMappings");
|
|
173
122
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_PutHypervisorPropertyMappingsCommand = se_PutHypervisorPropertyMappingsCommand;
|
|
178
127
|
const se_PutMaintenanceStartTimeCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.0",
|
|
181
|
-
"x-amz-target": "BackupOnPremises_v20210101.PutMaintenanceStartTime",
|
|
182
|
-
};
|
|
128
|
+
const headers = sharedHeaders("PutMaintenanceStartTime");
|
|
183
129
|
let body;
|
|
184
|
-
body = JSON.stringify(
|
|
130
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
185
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
132
|
};
|
|
187
133
|
exports.se_PutMaintenanceStartTimeCommand = se_PutMaintenanceStartTimeCommand;
|
|
188
134
|
const se_StartVirtualMachinesMetadataSyncCommand = async (input, context) => {
|
|
189
|
-
const headers =
|
|
190
|
-
"content-type": "application/x-amz-json-1.0",
|
|
191
|
-
"x-amz-target": "BackupOnPremises_v20210101.StartVirtualMachinesMetadataSync",
|
|
192
|
-
};
|
|
135
|
+
const headers = sharedHeaders("StartVirtualMachinesMetadataSync");
|
|
193
136
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
139
|
};
|
|
197
140
|
exports.se_StartVirtualMachinesMetadataSyncCommand = se_StartVirtualMachinesMetadataSyncCommand;
|
|
198
141
|
const se_TagResourceCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-amz-json-1.0",
|
|
201
|
-
"x-amz-target": "BackupOnPremises_v20210101.TagResource",
|
|
202
|
-
};
|
|
142
|
+
const headers = sharedHeaders("TagResource");
|
|
203
143
|
let body;
|
|
204
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
205
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
146
|
};
|
|
207
147
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
208
148
|
const se_TestHypervisorConfigurationCommand = async (input, context) => {
|
|
209
|
-
const headers =
|
|
210
|
-
"content-type": "application/x-amz-json-1.0",
|
|
211
|
-
"x-amz-target": "BackupOnPremises_v20210101.TestHypervisorConfiguration",
|
|
212
|
-
};
|
|
149
|
+
const headers = sharedHeaders("TestHypervisorConfiguration");
|
|
213
150
|
let body;
|
|
214
|
-
body = JSON.stringify(
|
|
151
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
215
152
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
153
|
};
|
|
217
154
|
exports.se_TestHypervisorConfigurationCommand = se_TestHypervisorConfigurationCommand;
|
|
218
155
|
const se_UntagResourceCommand = async (input, context) => {
|
|
219
|
-
const headers =
|
|
220
|
-
"content-type": "application/x-amz-json-1.0",
|
|
221
|
-
"x-amz-target": "BackupOnPremises_v20210101.UntagResource",
|
|
222
|
-
};
|
|
156
|
+
const headers = sharedHeaders("UntagResource");
|
|
223
157
|
let body;
|
|
224
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
160
|
};
|
|
227
161
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
228
162
|
const se_UpdateGatewayInformationCommand = async (input, context) => {
|
|
229
|
-
const headers =
|
|
230
|
-
"content-type": "application/x-amz-json-1.0",
|
|
231
|
-
"x-amz-target": "BackupOnPremises_v20210101.UpdateGatewayInformation",
|
|
232
|
-
};
|
|
163
|
+
const headers = sharedHeaders("UpdateGatewayInformation");
|
|
233
164
|
let body;
|
|
234
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
235
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
167
|
};
|
|
237
168
|
exports.se_UpdateGatewayInformationCommand = se_UpdateGatewayInformationCommand;
|
|
238
169
|
const se_UpdateGatewaySoftwareNowCommand = async (input, context) => {
|
|
239
|
-
const headers =
|
|
240
|
-
"content-type": "application/x-amz-json-1.0",
|
|
241
|
-
"x-amz-target": "BackupOnPremises_v20210101.UpdateGatewaySoftwareNow",
|
|
242
|
-
};
|
|
170
|
+
const headers = sharedHeaders("UpdateGatewaySoftwareNow");
|
|
243
171
|
let body;
|
|
244
|
-
body = JSON.stringify(
|
|
172
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
245
173
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
174
|
};
|
|
247
175
|
exports.se_UpdateGatewaySoftwareNowCommand = se_UpdateGatewaySoftwareNowCommand;
|
|
248
176
|
const se_UpdateHypervisorCommand = async (input, context) => {
|
|
249
|
-
const headers =
|
|
250
|
-
"content-type": "application/x-amz-json-1.0",
|
|
251
|
-
"x-amz-target": "BackupOnPremises_v20210101.UpdateHypervisor",
|
|
252
|
-
};
|
|
177
|
+
const headers = sharedHeaders("UpdateHypervisor");
|
|
253
178
|
let body;
|
|
254
|
-
body = JSON.stringify(
|
|
179
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
255
180
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
181
|
};
|
|
257
182
|
exports.se_UpdateHypervisorCommand = se_UpdateHypervisorCommand;
|
|
@@ -261,12 +186,12 @@ const de_AssociateGatewayToServerCommand = async (output, context) => {
|
|
|
261
186
|
}
|
|
262
187
|
const data = await parseBody(output.body, context);
|
|
263
188
|
let contents = {};
|
|
264
|
-
contents =
|
|
189
|
+
contents = (0, smithy_client_1._json)(data);
|
|
265
190
|
const response = {
|
|
266
191
|
$metadata: deserializeMetadata(output),
|
|
267
192
|
...contents,
|
|
268
193
|
};
|
|
269
|
-
return
|
|
194
|
+
return response;
|
|
270
195
|
};
|
|
271
196
|
exports.de_AssociateGatewayToServerCommand = de_AssociateGatewayToServerCommand;
|
|
272
197
|
const de_AssociateGatewayToServerCommandError = async (output, context) => {
|
|
@@ -290,10 +215,9 @@ const de_AssociateGatewayToServerCommandError = async (output, context) => {
|
|
|
290
215
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
291
216
|
default:
|
|
292
217
|
const parsedBody = parsedOutput.body;
|
|
293
|
-
|
|
218
|
+
return throwDefaultError({
|
|
294
219
|
output,
|
|
295
220
|
parsedBody,
|
|
296
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
297
221
|
errorCode,
|
|
298
222
|
});
|
|
299
223
|
}
|
|
@@ -304,12 +228,12 @@ const de_CreateGatewayCommand = async (output, context) => {
|
|
|
304
228
|
}
|
|
305
229
|
const data = await parseBody(output.body, context);
|
|
306
230
|
let contents = {};
|
|
307
|
-
contents =
|
|
231
|
+
contents = (0, smithy_client_1._json)(data);
|
|
308
232
|
const response = {
|
|
309
233
|
$metadata: deserializeMetadata(output),
|
|
310
234
|
...contents,
|
|
311
235
|
};
|
|
312
|
-
return
|
|
236
|
+
return response;
|
|
313
237
|
};
|
|
314
238
|
exports.de_CreateGatewayCommand = de_CreateGatewayCommand;
|
|
315
239
|
const de_CreateGatewayCommandError = async (output, context) => {
|
|
@@ -330,10 +254,9 @@ const de_CreateGatewayCommandError = async (output, context) => {
|
|
|
330
254
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
331
255
|
default:
|
|
332
256
|
const parsedBody = parsedOutput.body;
|
|
333
|
-
|
|
257
|
+
return throwDefaultError({
|
|
334
258
|
output,
|
|
335
259
|
parsedBody,
|
|
336
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
337
260
|
errorCode,
|
|
338
261
|
});
|
|
339
262
|
}
|
|
@@ -344,12 +267,12 @@ const de_DeleteGatewayCommand = async (output, context) => {
|
|
|
344
267
|
}
|
|
345
268
|
const data = await parseBody(output.body, context);
|
|
346
269
|
let contents = {};
|
|
347
|
-
contents =
|
|
270
|
+
contents = (0, smithy_client_1._json)(data);
|
|
348
271
|
const response = {
|
|
349
272
|
$metadata: deserializeMetadata(output),
|
|
350
273
|
...contents,
|
|
351
274
|
};
|
|
352
|
-
return
|
|
275
|
+
return response;
|
|
353
276
|
};
|
|
354
277
|
exports.de_DeleteGatewayCommand = de_DeleteGatewayCommand;
|
|
355
278
|
const de_DeleteGatewayCommandError = async (output, context) => {
|
|
@@ -373,10 +296,9 @@ const de_DeleteGatewayCommandError = async (output, context) => {
|
|
|
373
296
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
374
297
|
default:
|
|
375
298
|
const parsedBody = parsedOutput.body;
|
|
376
|
-
|
|
299
|
+
return throwDefaultError({
|
|
377
300
|
output,
|
|
378
301
|
parsedBody,
|
|
379
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
380
302
|
errorCode,
|
|
381
303
|
});
|
|
382
304
|
}
|
|
@@ -387,12 +309,12 @@ const de_DeleteHypervisorCommand = async (output, context) => {
|
|
|
387
309
|
}
|
|
388
310
|
const data = await parseBody(output.body, context);
|
|
389
311
|
let contents = {};
|
|
390
|
-
contents =
|
|
312
|
+
contents = (0, smithy_client_1._json)(data);
|
|
391
313
|
const response = {
|
|
392
314
|
$metadata: deserializeMetadata(output),
|
|
393
315
|
...contents,
|
|
394
316
|
};
|
|
395
|
-
return
|
|
317
|
+
return response;
|
|
396
318
|
};
|
|
397
319
|
exports.de_DeleteHypervisorCommand = de_DeleteHypervisorCommand;
|
|
398
320
|
const de_DeleteHypervisorCommandError = async (output, context) => {
|
|
@@ -422,10 +344,9 @@ const de_DeleteHypervisorCommandError = async (output, context) => {
|
|
|
422
344
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
423
345
|
default:
|
|
424
346
|
const parsedBody = parsedOutput.body;
|
|
425
|
-
|
|
347
|
+
return throwDefaultError({
|
|
426
348
|
output,
|
|
427
349
|
parsedBody,
|
|
428
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
429
350
|
errorCode,
|
|
430
351
|
});
|
|
431
352
|
}
|
|
@@ -436,12 +357,12 @@ const de_DisassociateGatewayFromServerCommand = async (output, context) => {
|
|
|
436
357
|
}
|
|
437
358
|
const data = await parseBody(output.body, context);
|
|
438
359
|
let contents = {};
|
|
439
|
-
contents =
|
|
360
|
+
contents = (0, smithy_client_1._json)(data);
|
|
440
361
|
const response = {
|
|
441
362
|
$metadata: deserializeMetadata(output),
|
|
442
363
|
...contents,
|
|
443
364
|
};
|
|
444
|
-
return
|
|
365
|
+
return response;
|
|
445
366
|
};
|
|
446
367
|
exports.de_DisassociateGatewayFromServerCommand = de_DisassociateGatewayFromServerCommand;
|
|
447
368
|
const de_DisassociateGatewayFromServerCommandError = async (output, context) => {
|
|
@@ -468,10 +389,9 @@ const de_DisassociateGatewayFromServerCommandError = async (output, context) =>
|
|
|
468
389
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
469
390
|
default:
|
|
470
391
|
const parsedBody = parsedOutput.body;
|
|
471
|
-
|
|
392
|
+
return throwDefaultError({
|
|
472
393
|
output,
|
|
473
394
|
parsedBody,
|
|
474
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
475
395
|
errorCode,
|
|
476
396
|
});
|
|
477
397
|
}
|
|
@@ -482,12 +402,12 @@ const de_GetBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
|
482
402
|
}
|
|
483
403
|
const data = await parseBody(output.body, context);
|
|
484
404
|
let contents = {};
|
|
485
|
-
contents =
|
|
405
|
+
contents = (0, smithy_client_1._json)(data);
|
|
486
406
|
const response = {
|
|
487
407
|
$metadata: deserializeMetadata(output),
|
|
488
408
|
...contents,
|
|
489
409
|
};
|
|
490
|
-
return
|
|
410
|
+
return response;
|
|
491
411
|
};
|
|
492
412
|
exports.de_GetBandwidthRateLimitScheduleCommand = de_GetBandwidthRateLimitScheduleCommand;
|
|
493
413
|
const de_GetBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
@@ -511,10 +431,9 @@ const de_GetBandwidthRateLimitScheduleCommandError = async (output, context) =>
|
|
|
511
431
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
512
432
|
default:
|
|
513
433
|
const parsedBody = parsedOutput.body;
|
|
514
|
-
|
|
434
|
+
return throwDefaultError({
|
|
515
435
|
output,
|
|
516
436
|
parsedBody,
|
|
517
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
518
437
|
errorCode,
|
|
519
438
|
});
|
|
520
439
|
}
|
|
@@ -530,7 +449,7 @@ const de_GetGatewayCommand = async (output, context) => {
|
|
|
530
449
|
$metadata: deserializeMetadata(output),
|
|
531
450
|
...contents,
|
|
532
451
|
};
|
|
533
|
-
return
|
|
452
|
+
return response;
|
|
534
453
|
};
|
|
535
454
|
exports.de_GetGatewayCommand = de_GetGatewayCommand;
|
|
536
455
|
const de_GetGatewayCommandError = async (output, context) => {
|
|
@@ -554,10 +473,9 @@ const de_GetGatewayCommandError = async (output, context) => {
|
|
|
554
473
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
555
474
|
default:
|
|
556
475
|
const parsedBody = parsedOutput.body;
|
|
557
|
-
|
|
476
|
+
return throwDefaultError({
|
|
558
477
|
output,
|
|
559
478
|
parsedBody,
|
|
560
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
561
479
|
errorCode,
|
|
562
480
|
});
|
|
563
481
|
}
|
|
@@ -573,7 +491,7 @@ const de_GetHypervisorCommand = async (output, context) => {
|
|
|
573
491
|
$metadata: deserializeMetadata(output),
|
|
574
492
|
...contents,
|
|
575
493
|
};
|
|
576
|
-
return
|
|
494
|
+
return response;
|
|
577
495
|
};
|
|
578
496
|
exports.de_GetHypervisorCommand = de_GetHypervisorCommand;
|
|
579
497
|
const de_GetHypervisorCommandError = async (output, context) => {
|
|
@@ -597,10 +515,9 @@ const de_GetHypervisorCommandError = async (output, context) => {
|
|
|
597
515
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
598
516
|
default:
|
|
599
517
|
const parsedBody = parsedOutput.body;
|
|
600
|
-
|
|
518
|
+
return throwDefaultError({
|
|
601
519
|
output,
|
|
602
520
|
parsedBody,
|
|
603
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
604
521
|
errorCode,
|
|
605
522
|
});
|
|
606
523
|
}
|
|
@@ -611,12 +528,12 @@ const de_GetHypervisorPropertyMappingsCommand = async (output, context) => {
|
|
|
611
528
|
}
|
|
612
529
|
const data = await parseBody(output.body, context);
|
|
613
530
|
let contents = {};
|
|
614
|
-
contents =
|
|
531
|
+
contents = (0, smithy_client_1._json)(data);
|
|
615
532
|
const response = {
|
|
616
533
|
$metadata: deserializeMetadata(output),
|
|
617
534
|
...contents,
|
|
618
535
|
};
|
|
619
|
-
return
|
|
536
|
+
return response;
|
|
620
537
|
};
|
|
621
538
|
exports.de_GetHypervisorPropertyMappingsCommand = de_GetHypervisorPropertyMappingsCommand;
|
|
622
539
|
const de_GetHypervisorPropertyMappingsCommandError = async (output, context) => {
|
|
@@ -640,10 +557,9 @@ const de_GetHypervisorPropertyMappingsCommandError = async (output, context) =>
|
|
|
640
557
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
641
558
|
default:
|
|
642
559
|
const parsedBody = parsedOutput.body;
|
|
643
|
-
|
|
560
|
+
return throwDefaultError({
|
|
644
561
|
output,
|
|
645
562
|
parsedBody,
|
|
646
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
647
563
|
errorCode,
|
|
648
564
|
});
|
|
649
565
|
}
|
|
@@ -659,7 +575,7 @@ const de_GetVirtualMachineCommand = async (output, context) => {
|
|
|
659
575
|
$metadata: deserializeMetadata(output),
|
|
660
576
|
...contents,
|
|
661
577
|
};
|
|
662
|
-
return
|
|
578
|
+
return response;
|
|
663
579
|
};
|
|
664
580
|
exports.de_GetVirtualMachineCommand = de_GetVirtualMachineCommand;
|
|
665
581
|
const de_GetVirtualMachineCommandError = async (output, context) => {
|
|
@@ -683,10 +599,9 @@ const de_GetVirtualMachineCommandError = async (output, context) => {
|
|
|
683
599
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
684
600
|
default:
|
|
685
601
|
const parsedBody = parsedOutput.body;
|
|
686
|
-
|
|
602
|
+
return throwDefaultError({
|
|
687
603
|
output,
|
|
688
604
|
parsedBody,
|
|
689
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
690
605
|
errorCode,
|
|
691
606
|
});
|
|
692
607
|
}
|
|
@@ -697,12 +612,12 @@ const de_ImportHypervisorConfigurationCommand = async (output, context) => {
|
|
|
697
612
|
}
|
|
698
613
|
const data = await parseBody(output.body, context);
|
|
699
614
|
let contents = {};
|
|
700
|
-
contents =
|
|
615
|
+
contents = (0, smithy_client_1._json)(data);
|
|
701
616
|
const response = {
|
|
702
617
|
$metadata: deserializeMetadata(output),
|
|
703
618
|
...contents,
|
|
704
619
|
};
|
|
705
|
-
return
|
|
620
|
+
return response;
|
|
706
621
|
};
|
|
707
622
|
exports.de_ImportHypervisorConfigurationCommand = de_ImportHypervisorConfigurationCommand;
|
|
708
623
|
const de_ImportHypervisorConfigurationCommandError = async (output, context) => {
|
|
@@ -729,10 +644,9 @@ const de_ImportHypervisorConfigurationCommandError = async (output, context) =>
|
|
|
729
644
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
730
645
|
default:
|
|
731
646
|
const parsedBody = parsedOutput.body;
|
|
732
|
-
|
|
647
|
+
return throwDefaultError({
|
|
733
648
|
output,
|
|
734
649
|
parsedBody,
|
|
735
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
736
650
|
errorCode,
|
|
737
651
|
});
|
|
738
652
|
}
|
|
@@ -748,7 +662,7 @@ const de_ListGatewaysCommand = async (output, context) => {
|
|
|
748
662
|
$metadata: deserializeMetadata(output),
|
|
749
663
|
...contents,
|
|
750
664
|
};
|
|
751
|
-
return
|
|
665
|
+
return response;
|
|
752
666
|
};
|
|
753
667
|
exports.de_ListGatewaysCommand = de_ListGatewaysCommand;
|
|
754
668
|
const de_ListGatewaysCommandError = async (output, context) => {
|
|
@@ -769,10 +683,9 @@ const de_ListGatewaysCommandError = async (output, context) => {
|
|
|
769
683
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
770
684
|
default:
|
|
771
685
|
const parsedBody = parsedOutput.body;
|
|
772
|
-
|
|
686
|
+
return throwDefaultError({
|
|
773
687
|
output,
|
|
774
688
|
parsedBody,
|
|
775
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
776
689
|
errorCode,
|
|
777
690
|
});
|
|
778
691
|
}
|
|
@@ -783,12 +696,12 @@ const de_ListHypervisorsCommand = async (output, context) => {
|
|
|
783
696
|
}
|
|
784
697
|
const data = await parseBody(output.body, context);
|
|
785
698
|
let contents = {};
|
|
786
|
-
contents =
|
|
699
|
+
contents = (0, smithy_client_1._json)(data);
|
|
787
700
|
const response = {
|
|
788
701
|
$metadata: deserializeMetadata(output),
|
|
789
702
|
...contents,
|
|
790
703
|
};
|
|
791
|
-
return
|
|
704
|
+
return response;
|
|
792
705
|
};
|
|
793
706
|
exports.de_ListHypervisorsCommand = de_ListHypervisorsCommand;
|
|
794
707
|
const de_ListHypervisorsCommandError = async (output, context) => {
|
|
@@ -809,10 +722,9 @@ const de_ListHypervisorsCommandError = async (output, context) => {
|
|
|
809
722
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
810
723
|
default:
|
|
811
724
|
const parsedBody = parsedOutput.body;
|
|
812
|
-
|
|
725
|
+
return throwDefaultError({
|
|
813
726
|
output,
|
|
814
727
|
parsedBody,
|
|
815
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
816
728
|
errorCode,
|
|
817
729
|
});
|
|
818
730
|
}
|
|
@@ -823,12 +735,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
823
735
|
}
|
|
824
736
|
const data = await parseBody(output.body, context);
|
|
825
737
|
let contents = {};
|
|
826
|
-
contents =
|
|
738
|
+
contents = (0, smithy_client_1._json)(data);
|
|
827
739
|
const response = {
|
|
828
740
|
$metadata: deserializeMetadata(output),
|
|
829
741
|
...contents,
|
|
830
742
|
};
|
|
831
|
-
return
|
|
743
|
+
return response;
|
|
832
744
|
};
|
|
833
745
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
834
746
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -852,10 +764,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
852
764
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
853
765
|
default:
|
|
854
766
|
const parsedBody = parsedOutput.body;
|
|
855
|
-
|
|
767
|
+
return throwDefaultError({
|
|
856
768
|
output,
|
|
857
769
|
parsedBody,
|
|
858
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
859
770
|
errorCode,
|
|
860
771
|
});
|
|
861
772
|
}
|
|
@@ -871,7 +782,7 @@ const de_ListVirtualMachinesCommand = async (output, context) => {
|
|
|
871
782
|
$metadata: deserializeMetadata(output),
|
|
872
783
|
...contents,
|
|
873
784
|
};
|
|
874
|
-
return
|
|
785
|
+
return response;
|
|
875
786
|
};
|
|
876
787
|
exports.de_ListVirtualMachinesCommand = de_ListVirtualMachinesCommand;
|
|
877
788
|
const de_ListVirtualMachinesCommandError = async (output, context) => {
|
|
@@ -892,10 +803,9 @@ const de_ListVirtualMachinesCommandError = async (output, context) => {
|
|
|
892
803
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
893
804
|
default:
|
|
894
805
|
const parsedBody = parsedOutput.body;
|
|
895
|
-
|
|
806
|
+
return throwDefaultError({
|
|
896
807
|
output,
|
|
897
808
|
parsedBody,
|
|
898
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
899
809
|
errorCode,
|
|
900
810
|
});
|
|
901
811
|
}
|
|
@@ -906,12 +816,12 @@ const de_PutBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
|
906
816
|
}
|
|
907
817
|
const data = await parseBody(output.body, context);
|
|
908
818
|
let contents = {};
|
|
909
|
-
contents =
|
|
819
|
+
contents = (0, smithy_client_1._json)(data);
|
|
910
820
|
const response = {
|
|
911
821
|
$metadata: deserializeMetadata(output),
|
|
912
822
|
...contents,
|
|
913
823
|
};
|
|
914
|
-
return
|
|
824
|
+
return response;
|
|
915
825
|
};
|
|
916
826
|
exports.de_PutBandwidthRateLimitScheduleCommand = de_PutBandwidthRateLimitScheduleCommand;
|
|
917
827
|
const de_PutBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
@@ -935,10 +845,9 @@ const de_PutBandwidthRateLimitScheduleCommandError = async (output, context) =>
|
|
|
935
845
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
936
846
|
default:
|
|
937
847
|
const parsedBody = parsedOutput.body;
|
|
938
|
-
|
|
848
|
+
return throwDefaultError({
|
|
939
849
|
output,
|
|
940
850
|
parsedBody,
|
|
941
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
942
851
|
errorCode,
|
|
943
852
|
});
|
|
944
853
|
}
|
|
@@ -949,12 +858,12 @@ const de_PutHypervisorPropertyMappingsCommand = async (output, context) => {
|
|
|
949
858
|
}
|
|
950
859
|
const data = await parseBody(output.body, context);
|
|
951
860
|
let contents = {};
|
|
952
|
-
contents =
|
|
861
|
+
contents = (0, smithy_client_1._json)(data);
|
|
953
862
|
const response = {
|
|
954
863
|
$metadata: deserializeMetadata(output),
|
|
955
864
|
...contents,
|
|
956
865
|
};
|
|
957
|
-
return
|
|
866
|
+
return response;
|
|
958
867
|
};
|
|
959
868
|
exports.de_PutHypervisorPropertyMappingsCommand = de_PutHypervisorPropertyMappingsCommand;
|
|
960
869
|
const de_PutHypervisorPropertyMappingsCommandError = async (output, context) => {
|
|
@@ -984,10 +893,9 @@ const de_PutHypervisorPropertyMappingsCommandError = async (output, context) =>
|
|
|
984
893
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
985
894
|
default:
|
|
986
895
|
const parsedBody = parsedOutput.body;
|
|
987
|
-
|
|
896
|
+
return throwDefaultError({
|
|
988
897
|
output,
|
|
989
898
|
parsedBody,
|
|
990
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
991
899
|
errorCode,
|
|
992
900
|
});
|
|
993
901
|
}
|
|
@@ -998,12 +906,12 @@ const de_PutMaintenanceStartTimeCommand = async (output, context) => {
|
|
|
998
906
|
}
|
|
999
907
|
const data = await parseBody(output.body, context);
|
|
1000
908
|
let contents = {};
|
|
1001
|
-
contents =
|
|
909
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1002
910
|
const response = {
|
|
1003
911
|
$metadata: deserializeMetadata(output),
|
|
1004
912
|
...contents,
|
|
1005
913
|
};
|
|
1006
|
-
return
|
|
914
|
+
return response;
|
|
1007
915
|
};
|
|
1008
916
|
exports.de_PutMaintenanceStartTimeCommand = de_PutMaintenanceStartTimeCommand;
|
|
1009
917
|
const de_PutMaintenanceStartTimeCommandError = async (output, context) => {
|
|
@@ -1030,10 +938,9 @@ const de_PutMaintenanceStartTimeCommandError = async (output, context) => {
|
|
|
1030
938
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1031
939
|
default:
|
|
1032
940
|
const parsedBody = parsedOutput.body;
|
|
1033
|
-
|
|
941
|
+
return throwDefaultError({
|
|
1034
942
|
output,
|
|
1035
943
|
parsedBody,
|
|
1036
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1037
944
|
errorCode,
|
|
1038
945
|
});
|
|
1039
946
|
}
|
|
@@ -1044,12 +951,12 @@ const de_StartVirtualMachinesMetadataSyncCommand = async (output, context) => {
|
|
|
1044
951
|
}
|
|
1045
952
|
const data = await parseBody(output.body, context);
|
|
1046
953
|
let contents = {};
|
|
1047
|
-
contents =
|
|
954
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1048
955
|
const response = {
|
|
1049
956
|
$metadata: deserializeMetadata(output),
|
|
1050
957
|
...contents,
|
|
1051
958
|
};
|
|
1052
|
-
return
|
|
959
|
+
return response;
|
|
1053
960
|
};
|
|
1054
961
|
exports.de_StartVirtualMachinesMetadataSyncCommand = de_StartVirtualMachinesMetadataSyncCommand;
|
|
1055
962
|
const de_StartVirtualMachinesMetadataSyncCommandError = async (output, context) => {
|
|
@@ -1076,10 +983,9 @@ const de_StartVirtualMachinesMetadataSyncCommandError = async (output, context)
|
|
|
1076
983
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1077
984
|
default:
|
|
1078
985
|
const parsedBody = parsedOutput.body;
|
|
1079
|
-
|
|
986
|
+
return throwDefaultError({
|
|
1080
987
|
output,
|
|
1081
988
|
parsedBody,
|
|
1082
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1083
989
|
errorCode,
|
|
1084
990
|
});
|
|
1085
991
|
}
|
|
@@ -1090,12 +996,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1090
996
|
}
|
|
1091
997
|
const data = await parseBody(output.body, context);
|
|
1092
998
|
let contents = {};
|
|
1093
|
-
contents =
|
|
999
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1094
1000
|
const response = {
|
|
1095
1001
|
$metadata: deserializeMetadata(output),
|
|
1096
1002
|
...contents,
|
|
1097
1003
|
};
|
|
1098
|
-
return
|
|
1004
|
+
return response;
|
|
1099
1005
|
};
|
|
1100
1006
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1101
1007
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1119,10 +1025,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1119
1025
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1120
1026
|
default:
|
|
1121
1027
|
const parsedBody = parsedOutput.body;
|
|
1122
|
-
|
|
1028
|
+
return throwDefaultError({
|
|
1123
1029
|
output,
|
|
1124
1030
|
parsedBody,
|
|
1125
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1126
1031
|
errorCode,
|
|
1127
1032
|
});
|
|
1128
1033
|
}
|
|
@@ -1133,12 +1038,12 @@ const de_TestHypervisorConfigurationCommand = async (output, context) => {
|
|
|
1133
1038
|
}
|
|
1134
1039
|
const data = await parseBody(output.body, context);
|
|
1135
1040
|
let contents = {};
|
|
1136
|
-
contents =
|
|
1041
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1137
1042
|
const response = {
|
|
1138
1043
|
$metadata: deserializeMetadata(output),
|
|
1139
1044
|
...contents,
|
|
1140
1045
|
};
|
|
1141
|
-
return
|
|
1046
|
+
return response;
|
|
1142
1047
|
};
|
|
1143
1048
|
exports.de_TestHypervisorConfigurationCommand = de_TestHypervisorConfigurationCommand;
|
|
1144
1049
|
const de_TestHypervisorConfigurationCommandError = async (output, context) => {
|
|
@@ -1165,10 +1070,9 @@ const de_TestHypervisorConfigurationCommandError = async (output, context) => {
|
|
|
1165
1070
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1166
1071
|
default:
|
|
1167
1072
|
const parsedBody = parsedOutput.body;
|
|
1168
|
-
|
|
1073
|
+
return throwDefaultError({
|
|
1169
1074
|
output,
|
|
1170
1075
|
parsedBody,
|
|
1171
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1172
1076
|
errorCode,
|
|
1173
1077
|
});
|
|
1174
1078
|
}
|
|
@@ -1179,12 +1083,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1179
1083
|
}
|
|
1180
1084
|
const data = await parseBody(output.body, context);
|
|
1181
1085
|
let contents = {};
|
|
1182
|
-
contents =
|
|
1086
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1183
1087
|
const response = {
|
|
1184
1088
|
$metadata: deserializeMetadata(output),
|
|
1185
1089
|
...contents,
|
|
1186
1090
|
};
|
|
1187
|
-
return
|
|
1091
|
+
return response;
|
|
1188
1092
|
};
|
|
1189
1093
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1190
1094
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1208,10 +1112,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1208
1112
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1209
1113
|
default:
|
|
1210
1114
|
const parsedBody = parsedOutput.body;
|
|
1211
|
-
|
|
1115
|
+
return throwDefaultError({
|
|
1212
1116
|
output,
|
|
1213
1117
|
parsedBody,
|
|
1214
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1215
1118
|
errorCode,
|
|
1216
1119
|
});
|
|
1217
1120
|
}
|
|
@@ -1222,12 +1125,12 @@ const de_UpdateGatewayInformationCommand = async (output, context) => {
|
|
|
1222
1125
|
}
|
|
1223
1126
|
const data = await parseBody(output.body, context);
|
|
1224
1127
|
let contents = {};
|
|
1225
|
-
contents =
|
|
1128
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1226
1129
|
const response = {
|
|
1227
1130
|
$metadata: deserializeMetadata(output),
|
|
1228
1131
|
...contents,
|
|
1229
1132
|
};
|
|
1230
|
-
return
|
|
1133
|
+
return response;
|
|
1231
1134
|
};
|
|
1232
1135
|
exports.de_UpdateGatewayInformationCommand = de_UpdateGatewayInformationCommand;
|
|
1233
1136
|
const de_UpdateGatewayInformationCommandError = async (output, context) => {
|
|
@@ -1254,10 +1157,9 @@ const de_UpdateGatewayInformationCommandError = async (output, context) => {
|
|
|
1254
1157
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1255
1158
|
default:
|
|
1256
1159
|
const parsedBody = parsedOutput.body;
|
|
1257
|
-
|
|
1160
|
+
return throwDefaultError({
|
|
1258
1161
|
output,
|
|
1259
1162
|
parsedBody,
|
|
1260
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1261
1163
|
errorCode,
|
|
1262
1164
|
});
|
|
1263
1165
|
}
|
|
@@ -1268,12 +1170,12 @@ const de_UpdateGatewaySoftwareNowCommand = async (output, context) => {
|
|
|
1268
1170
|
}
|
|
1269
1171
|
const data = await parseBody(output.body, context);
|
|
1270
1172
|
let contents = {};
|
|
1271
|
-
contents =
|
|
1173
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1272
1174
|
const response = {
|
|
1273
1175
|
$metadata: deserializeMetadata(output),
|
|
1274
1176
|
...contents,
|
|
1275
1177
|
};
|
|
1276
|
-
return
|
|
1178
|
+
return response;
|
|
1277
1179
|
};
|
|
1278
1180
|
exports.de_UpdateGatewaySoftwareNowCommand = de_UpdateGatewaySoftwareNowCommand;
|
|
1279
1181
|
const de_UpdateGatewaySoftwareNowCommandError = async (output, context) => {
|
|
@@ -1297,10 +1199,9 @@ const de_UpdateGatewaySoftwareNowCommandError = async (output, context) => {
|
|
|
1297
1199
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1298
1200
|
default:
|
|
1299
1201
|
const parsedBody = parsedOutput.body;
|
|
1300
|
-
|
|
1202
|
+
return throwDefaultError({
|
|
1301
1203
|
output,
|
|
1302
1204
|
parsedBody,
|
|
1303
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1304
1205
|
errorCode,
|
|
1305
1206
|
});
|
|
1306
1207
|
}
|
|
@@ -1311,12 +1212,12 @@ const de_UpdateHypervisorCommand = async (output, context) => {
|
|
|
1311
1212
|
}
|
|
1312
1213
|
const data = await parseBody(output.body, context);
|
|
1313
1214
|
let contents = {};
|
|
1314
|
-
contents =
|
|
1215
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1315
1216
|
const response = {
|
|
1316
1217
|
$metadata: deserializeMetadata(output),
|
|
1317
1218
|
...contents,
|
|
1318
1219
|
};
|
|
1319
|
-
return
|
|
1220
|
+
return response;
|
|
1320
1221
|
};
|
|
1321
1222
|
exports.de_UpdateHypervisorCommand = de_UpdateHypervisorCommand;
|
|
1322
1223
|
const de_UpdateHypervisorCommandError = async (output, context) => {
|
|
@@ -1346,17 +1247,16 @@ const de_UpdateHypervisorCommandError = async (output, context) => {
|
|
|
1346
1247
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1347
1248
|
default:
|
|
1348
1249
|
const parsedBody = parsedOutput.body;
|
|
1349
|
-
|
|
1250
|
+
return throwDefaultError({
|
|
1350
1251
|
output,
|
|
1351
1252
|
parsedBody,
|
|
1352
|
-
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1353
1253
|
errorCode,
|
|
1354
1254
|
});
|
|
1355
1255
|
}
|
|
1356
1256
|
};
|
|
1357
1257
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1358
1258
|
const body = parsedOutput.body;
|
|
1359
|
-
const deserialized =
|
|
1259
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1360
1260
|
const exception = new models_0_1.AccessDeniedException({
|
|
1361
1261
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1362
1262
|
...deserialized,
|
|
@@ -1365,7 +1265,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1365
1265
|
};
|
|
1366
1266
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1367
1267
|
const body = parsedOutput.body;
|
|
1368
|
-
const deserialized =
|
|
1268
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1369
1269
|
const exception = new models_0_1.ConflictException({
|
|
1370
1270
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1371
1271
|
...deserialized,
|
|
@@ -1374,7 +1274,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1374
1274
|
};
|
|
1375
1275
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1376
1276
|
const body = parsedOutput.body;
|
|
1377
|
-
const deserialized =
|
|
1277
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1378
1278
|
const exception = new models_0_1.InternalServerException({
|
|
1379
1279
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1380
1280
|
...deserialized,
|
|
@@ -1383,7 +1283,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1383
1283
|
};
|
|
1384
1284
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1385
1285
|
const body = parsedOutput.body;
|
|
1386
|
-
const deserialized =
|
|
1286
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1387
1287
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1388
1288
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1389
1289
|
...deserialized,
|
|
@@ -1392,7 +1292,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1392
1292
|
};
|
|
1393
1293
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1394
1294
|
const body = parsedOutput.body;
|
|
1395
|
-
const deserialized =
|
|
1295
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1396
1296
|
const exception = new models_0_1.ThrottlingException({
|
|
1397
1297
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1398
1298
|
...deserialized,
|
|
@@ -1401,607 +1301,111 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1401
1301
|
};
|
|
1402
1302
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1403
1303
|
const body = parsedOutput.body;
|
|
1404
|
-
const deserialized =
|
|
1304
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1405
1305
|
const exception = new models_0_1.ValidationException({
|
|
1406
1306
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1407
1307
|
...deserialized,
|
|
1408
1308
|
});
|
|
1409
1309
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1410
1310
|
};
|
|
1411
|
-
const se_AssociateGatewayToServerInput = (input, context) => {
|
|
1412
|
-
return {
|
|
1413
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1414
|
-
...(input.ServerArn != null && { ServerArn: input.ServerArn }),
|
|
1415
|
-
};
|
|
1416
|
-
};
|
|
1417
|
-
const se_BandwidthRateLimitInterval = (input, context) => {
|
|
1418
|
-
return {
|
|
1419
|
-
...(input.AverageUploadRateLimitInBitsPerSec != null && {
|
|
1420
|
-
AverageUploadRateLimitInBitsPerSec: input.AverageUploadRateLimitInBitsPerSec,
|
|
1421
|
-
}),
|
|
1422
|
-
...(input.DaysOfWeek != null && { DaysOfWeek: se_DaysOfWeek(input.DaysOfWeek, context) }),
|
|
1423
|
-
...(input.EndHourOfDay != null && { EndHourOfDay: input.EndHourOfDay }),
|
|
1424
|
-
...(input.EndMinuteOfHour != null && { EndMinuteOfHour: input.EndMinuteOfHour }),
|
|
1425
|
-
...(input.StartHourOfDay != null && { StartHourOfDay: input.StartHourOfDay }),
|
|
1426
|
-
...(input.StartMinuteOfHour != null && { StartMinuteOfHour: input.StartMinuteOfHour }),
|
|
1427
|
-
};
|
|
1428
|
-
};
|
|
1429
|
-
const se_BandwidthRateLimitIntervals = (input, context) => {
|
|
1430
|
-
return input
|
|
1431
|
-
.filter((e) => e != null)
|
|
1432
|
-
.map((entry) => {
|
|
1433
|
-
return se_BandwidthRateLimitInterval(entry, context);
|
|
1434
|
-
});
|
|
1435
|
-
};
|
|
1436
|
-
const se_CreateGatewayInput = (input, context) => {
|
|
1437
|
-
return {
|
|
1438
|
-
...(input.ActivationKey != null && { ActivationKey: input.ActivationKey }),
|
|
1439
|
-
...(input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1440
|
-
...(input.GatewayType != null && { GatewayType: input.GatewayType }),
|
|
1441
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1442
|
-
};
|
|
1443
|
-
};
|
|
1444
|
-
const se_DaysOfWeek = (input, context) => {
|
|
1445
|
-
return input
|
|
1446
|
-
.filter((e) => e != null)
|
|
1447
|
-
.map((entry) => {
|
|
1448
|
-
return entry;
|
|
1449
|
-
});
|
|
1450
|
-
};
|
|
1451
|
-
const se_DeleteGatewayInput = (input, context) => {
|
|
1452
|
-
return {
|
|
1453
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1454
|
-
};
|
|
1455
|
-
};
|
|
1456
|
-
const se_DeleteHypervisorInput = (input, context) => {
|
|
1457
|
-
return {
|
|
1458
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1459
|
-
};
|
|
1460
|
-
};
|
|
1461
|
-
const se_DisassociateGatewayFromServerInput = (input, context) => {
|
|
1462
|
-
return {
|
|
1463
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1464
|
-
};
|
|
1465
|
-
};
|
|
1466
|
-
const se_GetBandwidthRateLimitScheduleInput = (input, context) => {
|
|
1467
|
-
return {
|
|
1468
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1469
|
-
};
|
|
1470
|
-
};
|
|
1471
|
-
const se_GetGatewayInput = (input, context) => {
|
|
1472
|
-
return {
|
|
1473
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1474
|
-
};
|
|
1475
|
-
};
|
|
1476
|
-
const se_GetHypervisorInput = (input, context) => {
|
|
1477
|
-
return {
|
|
1478
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1479
|
-
};
|
|
1480
|
-
};
|
|
1481
|
-
const se_GetHypervisorPropertyMappingsInput = (input, context) => {
|
|
1482
|
-
return {
|
|
1483
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1484
|
-
};
|
|
1485
|
-
};
|
|
1486
|
-
const se_GetVirtualMachineInput = (input, context) => {
|
|
1487
|
-
return {
|
|
1488
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1489
|
-
};
|
|
1490
|
-
};
|
|
1491
|
-
const se_ImportHypervisorConfigurationInput = (input, context) => {
|
|
1492
|
-
return {
|
|
1493
|
-
...(input.Host != null && { Host: input.Host }),
|
|
1494
|
-
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
1495
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1496
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1497
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1498
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1499
|
-
};
|
|
1500
|
-
};
|
|
1501
|
-
const se_ListGatewaysInput = (input, context) => {
|
|
1502
|
-
return {
|
|
1503
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1504
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
|
-
const se_ListHypervisorsInput = (input, context) => {
|
|
1508
|
-
return {
|
|
1509
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1510
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1511
|
-
};
|
|
1512
|
-
};
|
|
1513
|
-
const se_ListTagsForResourceInput = (input, context) => {
|
|
1514
|
-
return {
|
|
1515
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1516
|
-
};
|
|
1517
|
-
};
|
|
1518
|
-
const se_ListVirtualMachinesInput = (input, context) => {
|
|
1519
|
-
return {
|
|
1520
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1521
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1522
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1523
|
-
};
|
|
1524
|
-
};
|
|
1525
|
-
const se_PutBandwidthRateLimitScheduleInput = (input, context) => {
|
|
1526
|
-
return {
|
|
1527
|
-
...(input.BandwidthRateLimitIntervals != null && {
|
|
1528
|
-
BandwidthRateLimitIntervals: se_BandwidthRateLimitIntervals(input.BandwidthRateLimitIntervals, context),
|
|
1529
|
-
}),
|
|
1530
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1531
|
-
};
|
|
1532
|
-
};
|
|
1533
|
-
const se_PutHypervisorPropertyMappingsInput = (input, context) => {
|
|
1534
|
-
return {
|
|
1535
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1536
|
-
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1537
|
-
...(input.VmwareToAwsTagMappings != null && {
|
|
1538
|
-
VmwareToAwsTagMappings: se_VmwareToAwsTagMappings(input.VmwareToAwsTagMappings, context),
|
|
1539
|
-
}),
|
|
1540
|
-
};
|
|
1541
|
-
};
|
|
1542
|
-
const se_PutMaintenanceStartTimeInput = (input, context) => {
|
|
1543
|
-
return {
|
|
1544
|
-
...(input.DayOfMonth != null && { DayOfMonth: input.DayOfMonth }),
|
|
1545
|
-
...(input.DayOfWeek != null && { DayOfWeek: input.DayOfWeek }),
|
|
1546
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1547
|
-
...(input.HourOfDay != null && { HourOfDay: input.HourOfDay }),
|
|
1548
|
-
...(input.MinuteOfHour != null && { MinuteOfHour: input.MinuteOfHour }),
|
|
1549
|
-
};
|
|
1550
|
-
};
|
|
1551
|
-
const se_StartVirtualMachinesMetadataSyncInput = (input, context) => {
|
|
1552
|
-
return {
|
|
1553
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1554
|
-
};
|
|
1555
|
-
};
|
|
1556
|
-
const se_Tag = (input, context) => {
|
|
1557
|
-
return {
|
|
1558
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1559
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1560
|
-
};
|
|
1561
|
-
};
|
|
1562
|
-
const se_TagKeys = (input, context) => {
|
|
1563
|
-
return input
|
|
1564
|
-
.filter((e) => e != null)
|
|
1565
|
-
.map((entry) => {
|
|
1566
|
-
return entry;
|
|
1567
|
-
});
|
|
1568
|
-
};
|
|
1569
|
-
const se_TagResourceInput = (input, context) => {
|
|
1570
|
-
return {
|
|
1571
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1572
|
-
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
1573
|
-
};
|
|
1574
|
-
};
|
|
1575
|
-
const se_Tags = (input, context) => {
|
|
1576
|
-
return input
|
|
1577
|
-
.filter((e) => e != null)
|
|
1578
|
-
.map((entry) => {
|
|
1579
|
-
return se_Tag(entry, context);
|
|
1580
|
-
});
|
|
1581
|
-
};
|
|
1582
|
-
const se_TestHypervisorConfigurationInput = (input, context) => {
|
|
1583
|
-
return {
|
|
1584
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1585
|
-
...(input.Host != null && { Host: input.Host }),
|
|
1586
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1587
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1588
|
-
};
|
|
1589
|
-
};
|
|
1590
|
-
const se_UntagResourceInput = (input, context) => {
|
|
1591
|
-
return {
|
|
1592
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1593
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeys(input.TagKeys, context) }),
|
|
1594
|
-
};
|
|
1595
|
-
};
|
|
1596
|
-
const se_UpdateGatewayInformationInput = (input, context) => {
|
|
1597
|
-
return {
|
|
1598
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1599
|
-
...(input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1600
|
-
};
|
|
1601
|
-
};
|
|
1602
|
-
const se_UpdateGatewaySoftwareNowInput = (input, context) => {
|
|
1603
|
-
return {
|
|
1604
|
-
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1605
|
-
};
|
|
1606
|
-
};
|
|
1607
|
-
const se_UpdateHypervisorInput = (input, context) => {
|
|
1608
|
-
return {
|
|
1609
|
-
...(input.Host != null && { Host: input.Host }),
|
|
1610
|
-
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1611
|
-
...(input.LogGroupArn != null && { LogGroupArn: input.LogGroupArn }),
|
|
1612
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1613
|
-
...(input.Password != null && { Password: input.Password }),
|
|
1614
|
-
...(input.Username != null && { Username: input.Username }),
|
|
1615
|
-
};
|
|
1616
|
-
};
|
|
1617
|
-
const se_VmwareToAwsTagMapping = (input, context) => {
|
|
1618
|
-
return {
|
|
1619
|
-
...(input.AwsTagKey != null && { AwsTagKey: input.AwsTagKey }),
|
|
1620
|
-
...(input.AwsTagValue != null && { AwsTagValue: input.AwsTagValue }),
|
|
1621
|
-
...(input.VmwareCategory != null && { VmwareCategory: input.VmwareCategory }),
|
|
1622
|
-
...(input.VmwareTagName != null && { VmwareTagName: input.VmwareTagName }),
|
|
1623
|
-
};
|
|
1624
|
-
};
|
|
1625
|
-
const se_VmwareToAwsTagMappings = (input, context) => {
|
|
1626
|
-
return input
|
|
1627
|
-
.filter((e) => e != null)
|
|
1628
|
-
.map((entry) => {
|
|
1629
|
-
return se_VmwareToAwsTagMapping(entry, context);
|
|
1630
|
-
});
|
|
1631
|
-
};
|
|
1632
|
-
const de_AccessDeniedException = (output, context) => {
|
|
1633
|
-
return {
|
|
1634
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1635
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1636
|
-
};
|
|
1637
|
-
};
|
|
1638
|
-
const de_AssociateGatewayToServerOutput = (output, context) => {
|
|
1639
|
-
return {
|
|
1640
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1641
|
-
};
|
|
1642
|
-
};
|
|
1643
|
-
const de_BandwidthRateLimitInterval = (output, context) => {
|
|
1644
|
-
return {
|
|
1645
|
-
AverageUploadRateLimitInBitsPerSec: (0, smithy_client_1.expectLong)(output.AverageUploadRateLimitInBitsPerSec),
|
|
1646
|
-
DaysOfWeek: output.DaysOfWeek != null ? de_DaysOfWeek(output.DaysOfWeek, context) : undefined,
|
|
1647
|
-
EndHourOfDay: (0, smithy_client_1.expectInt32)(output.EndHourOfDay),
|
|
1648
|
-
EndMinuteOfHour: (0, smithy_client_1.expectInt32)(output.EndMinuteOfHour),
|
|
1649
|
-
StartHourOfDay: (0, smithy_client_1.expectInt32)(output.StartHourOfDay),
|
|
1650
|
-
StartMinuteOfHour: (0, smithy_client_1.expectInt32)(output.StartMinuteOfHour),
|
|
1651
|
-
};
|
|
1652
|
-
};
|
|
1653
|
-
const de_BandwidthRateLimitIntervals = (output, context) => {
|
|
1654
|
-
const retVal = (output || [])
|
|
1655
|
-
.filter((e) => e != null)
|
|
1656
|
-
.map((entry) => {
|
|
1657
|
-
if (entry === null) {
|
|
1658
|
-
return null;
|
|
1659
|
-
}
|
|
1660
|
-
return de_BandwidthRateLimitInterval(entry, context);
|
|
1661
|
-
});
|
|
1662
|
-
return retVal;
|
|
1663
|
-
};
|
|
1664
|
-
const de_ConflictException = (output, context) => {
|
|
1665
|
-
return {
|
|
1666
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1667
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1668
|
-
};
|
|
1669
|
-
};
|
|
1670
|
-
const de_CreateGatewayOutput = (output, context) => {
|
|
1671
|
-
return {
|
|
1672
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1673
|
-
};
|
|
1674
|
-
};
|
|
1675
|
-
const de_DaysOfWeek = (output, context) => {
|
|
1676
|
-
const retVal = (output || [])
|
|
1677
|
-
.filter((e) => e != null)
|
|
1678
|
-
.map((entry) => {
|
|
1679
|
-
if (entry === null) {
|
|
1680
|
-
return null;
|
|
1681
|
-
}
|
|
1682
|
-
return (0, smithy_client_1.expectInt32)(entry);
|
|
1683
|
-
});
|
|
1684
|
-
return retVal;
|
|
1685
|
-
};
|
|
1686
|
-
const de_DeleteGatewayOutput = (output, context) => {
|
|
1687
|
-
return {
|
|
1688
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1689
|
-
};
|
|
1690
|
-
};
|
|
1691
|
-
const de_DeleteHypervisorOutput = (output, context) => {
|
|
1692
|
-
return {
|
|
1693
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1694
|
-
};
|
|
1695
|
-
};
|
|
1696
|
-
const de_DisassociateGatewayFromServerOutput = (output, context) => {
|
|
1697
|
-
return {
|
|
1698
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1699
|
-
};
|
|
1700
|
-
};
|
|
1701
1311
|
const de_Gateway = (output, context) => {
|
|
1702
|
-
return {
|
|
1703
|
-
GatewayArn:
|
|
1704
|
-
GatewayDisplayName:
|
|
1705
|
-
GatewayType:
|
|
1706
|
-
HypervisorId:
|
|
1707
|
-
LastSeenTime:
|
|
1708
|
-
|
|
1709
|
-
: undefined,
|
|
1710
|
-
};
|
|
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
|
+
});
|
|
1711
1319
|
};
|
|
1712
1320
|
const de_GatewayDetails = (output, context) => {
|
|
1713
|
-
return {
|
|
1714
|
-
GatewayArn:
|
|
1715
|
-
GatewayDisplayName:
|
|
1716
|
-
GatewayType:
|
|
1717
|
-
HypervisorId:
|
|
1718
|
-
LastSeenTime:
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NextUpdateAvailabilityTime)))
|
|
1724
|
-
: undefined,
|
|
1725
|
-
VpcEndpoint: (0, smithy_client_1.expectString)(output.VpcEndpoint),
|
|
1726
|
-
};
|
|
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
|
+
});
|
|
1727
1331
|
};
|
|
1728
1332
|
const de_Gateways = (output, context) => {
|
|
1729
1333
|
const retVal = (output || [])
|
|
1730
1334
|
.filter((e) => e != null)
|
|
1731
1335
|
.map((entry) => {
|
|
1732
|
-
if (entry === null) {
|
|
1733
|
-
return null;
|
|
1734
|
-
}
|
|
1735
1336
|
return de_Gateway(entry, context);
|
|
1736
1337
|
});
|
|
1737
1338
|
return retVal;
|
|
1738
1339
|
};
|
|
1739
|
-
const de_GetBandwidthRateLimitScheduleOutput = (output, context) => {
|
|
1740
|
-
return {
|
|
1741
|
-
BandwidthRateLimitIntervals: output.BandwidthRateLimitIntervals != null
|
|
1742
|
-
? de_BandwidthRateLimitIntervals(output.BandwidthRateLimitIntervals, context)
|
|
1743
|
-
: undefined,
|
|
1744
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1745
|
-
};
|
|
1746
|
-
};
|
|
1747
1340
|
const de_GetGatewayOutput = (output, context) => {
|
|
1748
|
-
return {
|
|
1749
|
-
Gateway:
|
|
1750
|
-
};
|
|
1341
|
+
return (0, smithy_client_1.take)(output, {
|
|
1342
|
+
Gateway: (_) => de_GatewayDetails(_, context),
|
|
1343
|
+
});
|
|
1751
1344
|
};
|
|
1752
1345
|
const de_GetHypervisorOutput = (output, context) => {
|
|
1753
|
-
return {
|
|
1754
|
-
Hypervisor:
|
|
1755
|
-
};
|
|
1756
|
-
};
|
|
1757
|
-
const de_GetHypervisorPropertyMappingsOutput = (output, context) => {
|
|
1758
|
-
return {
|
|
1759
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1760
|
-
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
1761
|
-
VmwareToAwsTagMappings: output.VmwareToAwsTagMappings != null
|
|
1762
|
-
? de_VmwareToAwsTagMappings(output.VmwareToAwsTagMappings, context)
|
|
1763
|
-
: undefined,
|
|
1764
|
-
};
|
|
1346
|
+
return (0, smithy_client_1.take)(output, {
|
|
1347
|
+
Hypervisor: (_) => de_HypervisorDetails(_, context),
|
|
1348
|
+
});
|
|
1765
1349
|
};
|
|
1766
1350
|
const de_GetVirtualMachineOutput = (output, context) => {
|
|
1767
|
-
return {
|
|
1768
|
-
VirtualMachine:
|
|
1769
|
-
};
|
|
1770
|
-
};
|
|
1771
|
-
const de_Hypervisor = (output, context) => {
|
|
1772
|
-
return {
|
|
1773
|
-
Host: (0, smithy_client_1.expectString)(output.Host),
|
|
1774
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1775
|
-
KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
|
|
1776
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1777
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1778
|
-
};
|
|
1351
|
+
return (0, smithy_client_1.take)(output, {
|
|
1352
|
+
VirtualMachine: (_) => de_VirtualMachineDetails(_, context),
|
|
1353
|
+
});
|
|
1779
1354
|
};
|
|
1780
1355
|
const de_HypervisorDetails = (output, context) => {
|
|
1781
|
-
return {
|
|
1782
|
-
Host:
|
|
1783
|
-
HypervisorArn:
|
|
1784
|
-
KmsKeyArn:
|
|
1785
|
-
LastSuccessfulMetadataSyncTime:
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1792
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1793
|
-
};
|
|
1794
|
-
};
|
|
1795
|
-
const de_Hypervisors = (output, context) => {
|
|
1796
|
-
const retVal = (output || [])
|
|
1797
|
-
.filter((e) => e != null)
|
|
1798
|
-
.map((entry) => {
|
|
1799
|
-
if (entry === null) {
|
|
1800
|
-
return null;
|
|
1801
|
-
}
|
|
1802
|
-
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,
|
|
1803
1366
|
});
|
|
1804
|
-
return retVal;
|
|
1805
|
-
};
|
|
1806
|
-
const de_ImportHypervisorConfigurationOutput = (output, context) => {
|
|
1807
|
-
return {
|
|
1808
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1809
|
-
};
|
|
1810
|
-
};
|
|
1811
|
-
const de_InternalServerException = (output, context) => {
|
|
1812
|
-
return {
|
|
1813
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1814
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1815
|
-
};
|
|
1816
1367
|
};
|
|
1817
1368
|
const de_ListGatewaysOutput = (output, context) => {
|
|
1818
|
-
return {
|
|
1819
|
-
Gateways:
|
|
1820
|
-
NextToken:
|
|
1821
|
-
};
|
|
1822
|
-
};
|
|
1823
|
-
const de_ListHypervisorsOutput = (output, context) => {
|
|
1824
|
-
return {
|
|
1825
|
-
Hypervisors: output.Hypervisors != null ? de_Hypervisors(output.Hypervisors, context) : undefined,
|
|
1826
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1827
|
-
};
|
|
1828
|
-
};
|
|
1829
|
-
const de_ListTagsForResourceOutput = (output, context) => {
|
|
1830
|
-
return {
|
|
1831
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1832
|
-
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
1833
|
-
};
|
|
1369
|
+
return (0, smithy_client_1.take)(output, {
|
|
1370
|
+
Gateways: (_) => de_Gateways(_, context),
|
|
1371
|
+
NextToken: smithy_client_1.expectString,
|
|
1372
|
+
});
|
|
1834
1373
|
};
|
|
1835
1374
|
const de_ListVirtualMachinesOutput = (output, context) => {
|
|
1836
|
-
return {
|
|
1837
|
-
NextToken:
|
|
1838
|
-
VirtualMachines:
|
|
1839
|
-
};
|
|
1840
|
-
};
|
|
1841
|
-
const de_MaintenanceStartTime = (output, context) => {
|
|
1842
|
-
return {
|
|
1843
|
-
DayOfMonth: (0, smithy_client_1.expectInt32)(output.DayOfMonth),
|
|
1844
|
-
DayOfWeek: (0, smithy_client_1.expectInt32)(output.DayOfWeek),
|
|
1845
|
-
HourOfDay: (0, smithy_client_1.expectInt32)(output.HourOfDay),
|
|
1846
|
-
MinuteOfHour: (0, smithy_client_1.expectInt32)(output.MinuteOfHour),
|
|
1847
|
-
};
|
|
1848
|
-
};
|
|
1849
|
-
const de_PutBandwidthRateLimitScheduleOutput = (output, context) => {
|
|
1850
|
-
return {
|
|
1851
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1852
|
-
};
|
|
1853
|
-
};
|
|
1854
|
-
const de_PutHypervisorPropertyMappingsOutput = (output, context) => {
|
|
1855
|
-
return {
|
|
1856
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1857
|
-
};
|
|
1858
|
-
};
|
|
1859
|
-
const de_PutMaintenanceStartTimeOutput = (output, context) => {
|
|
1860
|
-
return {
|
|
1861
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1862
|
-
};
|
|
1863
|
-
};
|
|
1864
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1865
|
-
return {
|
|
1866
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1867
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1868
|
-
};
|
|
1869
|
-
};
|
|
1870
|
-
const de_StartVirtualMachinesMetadataSyncOutput = (output, context) => {
|
|
1871
|
-
return {
|
|
1872
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1873
|
-
};
|
|
1874
|
-
};
|
|
1875
|
-
const de_Tag = (output, context) => {
|
|
1876
|
-
return {
|
|
1877
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1878
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1879
|
-
};
|
|
1880
|
-
};
|
|
1881
|
-
const de_TagResourceOutput = (output, context) => {
|
|
1882
|
-
return {
|
|
1883
|
-
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
1884
|
-
};
|
|
1885
|
-
};
|
|
1886
|
-
const de_Tags = (output, context) => {
|
|
1887
|
-
const retVal = (output || [])
|
|
1888
|
-
.filter((e) => e != null)
|
|
1889
|
-
.map((entry) => {
|
|
1890
|
-
if (entry === null) {
|
|
1891
|
-
return null;
|
|
1892
|
-
}
|
|
1893
|
-
return de_Tag(entry, context);
|
|
1375
|
+
return (0, smithy_client_1.take)(output, {
|
|
1376
|
+
NextToken: smithy_client_1.expectString,
|
|
1377
|
+
VirtualMachines: (_) => de_VirtualMachines(_, context),
|
|
1894
1378
|
});
|
|
1895
|
-
return retVal;
|
|
1896
|
-
};
|
|
1897
|
-
const de_TestHypervisorConfigurationOutput = (output, context) => {
|
|
1898
|
-
return {};
|
|
1899
|
-
};
|
|
1900
|
-
const de_ThrottlingException = (output, context) => {
|
|
1901
|
-
return {
|
|
1902
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1903
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1904
|
-
};
|
|
1905
|
-
};
|
|
1906
|
-
const de_UntagResourceOutput = (output, context) => {
|
|
1907
|
-
return {
|
|
1908
|
-
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
1909
|
-
};
|
|
1910
|
-
};
|
|
1911
|
-
const de_UpdateGatewayInformationOutput = (output, context) => {
|
|
1912
|
-
return {
|
|
1913
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1914
|
-
};
|
|
1915
|
-
};
|
|
1916
|
-
const de_UpdateGatewaySoftwareNowOutput = (output, context) => {
|
|
1917
|
-
return {
|
|
1918
|
-
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1919
|
-
};
|
|
1920
|
-
};
|
|
1921
|
-
const de_UpdateHypervisorOutput = (output, context) => {
|
|
1922
|
-
return {
|
|
1923
|
-
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
const de_ValidationException = (output, context) => {
|
|
1927
|
-
return {
|
|
1928
|
-
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1929
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1930
|
-
};
|
|
1931
1379
|
};
|
|
1932
1380
|
const de_VirtualMachine = (output, context) => {
|
|
1933
|
-
return {
|
|
1934
|
-
HostName:
|
|
1935
|
-
HypervisorId:
|
|
1936
|
-
LastBackupDate:
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1942
|
-
};
|
|
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
|
+
});
|
|
1943
1389
|
};
|
|
1944
1390
|
const de_VirtualMachineDetails = (output, context) => {
|
|
1945
|
-
return {
|
|
1946
|
-
HostName:
|
|
1947
|
-
HypervisorId:
|
|
1948
|
-
LastBackupDate:
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
VmwareTags: output.VmwareTags != null ? de_VmwareTags(output.VmwareTags, context) : undefined,
|
|
1955
|
-
};
|
|
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
|
+
});
|
|
1956
1400
|
};
|
|
1957
1401
|
const de_VirtualMachines = (output, context) => {
|
|
1958
1402
|
const retVal = (output || [])
|
|
1959
1403
|
.filter((e) => e != null)
|
|
1960
1404
|
.map((entry) => {
|
|
1961
|
-
if (entry === null) {
|
|
1962
|
-
return null;
|
|
1963
|
-
}
|
|
1964
1405
|
return de_VirtualMachine(entry, context);
|
|
1965
1406
|
});
|
|
1966
1407
|
return retVal;
|
|
1967
1408
|
};
|
|
1968
|
-
const de_VmwareTag = (output, context) => {
|
|
1969
|
-
return {
|
|
1970
|
-
VmwareCategory: (0, smithy_client_1.expectString)(output.VmwareCategory),
|
|
1971
|
-
VmwareTagDescription: (0, smithy_client_1.expectString)(output.VmwareTagDescription),
|
|
1972
|
-
VmwareTagName: (0, smithy_client_1.expectString)(output.VmwareTagName),
|
|
1973
|
-
};
|
|
1974
|
-
};
|
|
1975
|
-
const de_VmwareTags = (output, context) => {
|
|
1976
|
-
const retVal = (output || [])
|
|
1977
|
-
.filter((e) => e != null)
|
|
1978
|
-
.map((entry) => {
|
|
1979
|
-
if (entry === null) {
|
|
1980
|
-
return null;
|
|
1981
|
-
}
|
|
1982
|
-
return de_VmwareTag(entry, context);
|
|
1983
|
-
});
|
|
1984
|
-
return retVal;
|
|
1985
|
-
};
|
|
1986
|
-
const de_VmwareToAwsTagMapping = (output, context) => {
|
|
1987
|
-
return {
|
|
1988
|
-
AwsTagKey: (0, smithy_client_1.expectString)(output.AwsTagKey),
|
|
1989
|
-
AwsTagValue: (0, smithy_client_1.expectString)(output.AwsTagValue),
|
|
1990
|
-
VmwareCategory: (0, smithy_client_1.expectString)(output.VmwareCategory),
|
|
1991
|
-
VmwareTagName: (0, smithy_client_1.expectString)(output.VmwareTagName),
|
|
1992
|
-
};
|
|
1993
|
-
};
|
|
1994
|
-
const de_VmwareToAwsTagMappings = (output, context) => {
|
|
1995
|
-
const retVal = (output || [])
|
|
1996
|
-
.filter((e) => e != null)
|
|
1997
|
-
.map((entry) => {
|
|
1998
|
-
if (entry === null) {
|
|
1999
|
-
return null;
|
|
2000
|
-
}
|
|
2001
|
-
return de_VmwareToAwsTagMapping(entry, context);
|
|
2002
|
-
});
|
|
2003
|
-
return retVal;
|
|
2004
|
-
};
|
|
2005
1409
|
const deserializeMetadata = (output) => ({
|
|
2006
1410
|
httpStatusCode: output.statusCode,
|
|
2007
1411
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2015,6 +1419,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2015
1419
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2016
1420
|
};
|
|
2017
1421
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1422
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(BackupGatewayServiceException_1.BackupGatewayServiceException);
|
|
2018
1423
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2019
1424
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2020
1425
|
const contents = {
|
|
@@ -2033,6 +1438,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2033
1438
|
}
|
|
2034
1439
|
return new protocol_http_1.HttpRequest(contents);
|
|
2035
1440
|
};
|
|
1441
|
+
function sharedHeaders(operation) {
|
|
1442
|
+
return {
|
|
1443
|
+
"content-type": "application/x-amz-json-1.0",
|
|
1444
|
+
"x-amz-target": `BackupOnPremises_v20210101.${operation}`,
|
|
1445
|
+
};
|
|
1446
|
+
}
|
|
2036
1447
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2037
1448
|
if (encoded.length) {
|
|
2038
1449
|
return JSON.parse(encoded);
|