@aws-sdk/client-backup-gateway 3.926.0 → 3.928.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.
Files changed (49) hide show
  1. package/dist-cjs/index.js +612 -905
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/BackupGatewayClient.js +2 -0
  4. package/dist-es/commands/AssociateGatewayToServerCommand.js +3 -9
  5. package/dist-es/commands/CreateGatewayCommand.js +3 -9
  6. package/dist-es/commands/DeleteGatewayCommand.js +3 -9
  7. package/dist-es/commands/DeleteHypervisorCommand.js +3 -9
  8. package/dist-es/commands/DisassociateGatewayFromServerCommand.js +3 -9
  9. package/dist-es/commands/GetBandwidthRateLimitScheduleCommand.js +3 -9
  10. package/dist-es/commands/GetGatewayCommand.js +3 -9
  11. package/dist-es/commands/GetHypervisorCommand.js +3 -9
  12. package/dist-es/commands/GetHypervisorPropertyMappingsCommand.js +3 -9
  13. package/dist-es/commands/GetVirtualMachineCommand.js +3 -9
  14. package/dist-es/commands/ImportHypervisorConfigurationCommand.js +3 -10
  15. package/dist-es/commands/ListGatewaysCommand.js +3 -9
  16. package/dist-es/commands/ListHypervisorsCommand.js +3 -9
  17. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  18. package/dist-es/commands/ListVirtualMachinesCommand.js +3 -9
  19. package/dist-es/commands/PutBandwidthRateLimitScheduleCommand.js +3 -9
  20. package/dist-es/commands/PutHypervisorPropertyMappingsCommand.js +3 -9
  21. package/dist-es/commands/PutMaintenanceStartTimeCommand.js +3 -9
  22. package/dist-es/commands/StartVirtualMachinesMetadataSyncCommand.js +3 -9
  23. package/dist-es/commands/TagResourceCommand.js +3 -9
  24. package/dist-es/commands/TestHypervisorConfigurationCommand.js +3 -10
  25. package/dist-es/commands/UntagResourceCommand.js +3 -9
  26. package/dist-es/commands/UpdateGatewayInformationCommand.js +3 -9
  27. package/dist-es/commands/UpdateGatewaySoftwareNowCommand.js +3 -9
  28. package/dist-es/commands/UpdateHypervisorCommand.js +3 -10
  29. package/dist-es/models/models_0.js +0 -16
  30. package/dist-es/runtimeConfig.shared.js +7 -0
  31. package/dist-es/schemas/schemas_0.js +544 -0
  32. package/dist-types/BackupGatewayClient.d.ts +10 -1
  33. package/dist-types/models/models_0.d.ts +0 -12
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  35. package/dist-types/runtimeConfig.d.ts +1 -0
  36. package/dist-types/runtimeConfig.native.d.ts +1 -0
  37. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  38. package/dist-types/schemas/schemas_0.d.ts +105 -0
  39. package/dist-types/ts3.4/BackupGatewayClient.d.ts +4 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +0 -9
  41. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  42. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  43. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  44. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  45. package/dist-types/ts3.4/schemas/schemas_0.d.ts +111 -0
  46. package/package.json +5 -5
  47. package/dist-es/protocols/Aws_json1_0.js +0 -698
  48. package/dist-types/protocols/Aws_json1_0.d.ts +0 -227
  49. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -305
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class BackupGatewayClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class BackupGatewayClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class BackupGatewayServiceException extends smithyClient.ServiceException {
113
+ let BackupGatewayServiceException$1 = class BackupGatewayServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, BackupGatewayServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class AccessDeniedException extends BackupGatewayServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends BackupGatewayServiceException$1 {
121
121
  name = "AccessDeniedException";
122
122
  $fault = "client";
123
123
  ErrorCode;
@@ -132,8 +132,8 @@ class AccessDeniedException extends BackupGatewayServiceException {
132
132
  this.ErrorCode = opts.ErrorCode;
133
133
  this.Message = opts.Message;
134
134
  }
135
- }
136
- class ConflictException extends BackupGatewayServiceException {
135
+ };
136
+ let ConflictException$1 = class ConflictException extends BackupGatewayServiceException$1 {
137
137
  name = "ConflictException";
138
138
  $fault = "client";
139
139
  ErrorCode;
@@ -148,8 +148,8 @@ class ConflictException extends BackupGatewayServiceException {
148
148
  this.ErrorCode = opts.ErrorCode;
149
149
  this.Message = opts.Message;
150
150
  }
151
- }
152
- class InternalServerException extends BackupGatewayServiceException {
151
+ };
152
+ let InternalServerException$1 = class InternalServerException extends BackupGatewayServiceException$1 {
153
153
  name = "InternalServerException";
154
154
  $fault = "server";
155
155
  ErrorCode;
@@ -164,8 +164,8 @@ class InternalServerException extends BackupGatewayServiceException {
164
164
  this.ErrorCode = opts.ErrorCode;
165
165
  this.Message = opts.Message;
166
166
  }
167
- }
168
- class ThrottlingException extends BackupGatewayServiceException {
167
+ };
168
+ let ThrottlingException$1 = class ThrottlingException extends BackupGatewayServiceException$1 {
169
169
  name = "ThrottlingException";
170
170
  $fault = "client";
171
171
  ErrorCode;
@@ -180,8 +180,8 @@ class ThrottlingException extends BackupGatewayServiceException {
180
180
  this.ErrorCode = opts.ErrorCode;
181
181
  this.Message = opts.Message;
182
182
  }
183
- }
184
- class ValidationException extends BackupGatewayServiceException {
183
+ };
184
+ let ValidationException$1 = class ValidationException extends BackupGatewayServiceException$1 {
185
185
  name = "ValidationException";
186
186
  $fault = "client";
187
187
  ErrorCode;
@@ -196,8 +196,8 @@ class ValidationException extends BackupGatewayServiceException {
196
196
  this.ErrorCode = opts.ErrorCode;
197
197
  this.Message = opts.Message;
198
198
  }
199
- }
200
- class ResourceNotFoundException extends BackupGatewayServiceException {
199
+ };
200
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends BackupGatewayServiceException$1 {
201
201
  name = "ResourceNotFoundException";
202
202
  $fault = "client";
203
203
  ErrorCode;
@@ -212,7 +212,7 @@ class ResourceNotFoundException extends BackupGatewayServiceException {
212
212
  this.ErrorCode = opts.ErrorCode;
213
213
  this.Message = opts.Message;
214
214
  }
215
- }
215
+ };
216
216
  const GatewayType = {
217
217
  BACKUP_VM: "BACKUP_VM",
218
218
  };
@@ -229,726 +229,556 @@ const HypervisorState = {
229
229
  ONLINE: "ONLINE",
230
230
  PENDING: "PENDING",
231
231
  };
232
- const TestHypervisorConfigurationInputFilterSensitiveLog = (obj) => ({
233
- ...obj,
234
- ...(obj.Username && { Username: smithyClient.SENSITIVE_STRING }),
235
- ...(obj.Password && { Password: smithyClient.SENSITIVE_STRING }),
236
- });
237
- const ImportHypervisorConfigurationInputFilterSensitiveLog = (obj) => ({
238
- ...obj,
239
- ...(obj.Username && { Username: smithyClient.SENSITIVE_STRING }),
240
- ...(obj.Password && { Password: smithyClient.SENSITIVE_STRING }),
241
- });
242
- const UpdateHypervisorInputFilterSensitiveLog = (obj) => ({
243
- ...obj,
244
- ...(obj.Username && { Username: smithyClient.SENSITIVE_STRING }),
245
- ...(obj.Password && { Password: smithyClient.SENSITIVE_STRING }),
246
- });
247
232
 
248
- const se_AssociateGatewayToServerCommand = async (input, context) => {
249
- const headers = sharedHeaders("AssociateGatewayToServer");
250
- let body;
251
- body = JSON.stringify(smithyClient._json(input));
252
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
- };
254
- const se_CreateGatewayCommand = async (input, context) => {
255
- const headers = sharedHeaders("CreateGateway");
256
- let body;
257
- body = JSON.stringify(smithyClient._json(input));
258
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
- };
260
- const se_DeleteGatewayCommand = async (input, context) => {
261
- const headers = sharedHeaders("DeleteGateway");
262
- let body;
263
- body = JSON.stringify(smithyClient._json(input));
264
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
- };
266
- const se_DeleteHypervisorCommand = async (input, context) => {
267
- const headers = sharedHeaders("DeleteHypervisor");
268
- let body;
269
- body = JSON.stringify(smithyClient._json(input));
270
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
271
- };
272
- const se_DisassociateGatewayFromServerCommand = async (input, context) => {
273
- const headers = sharedHeaders("DisassociateGatewayFromServer");
274
- let body;
275
- body = JSON.stringify(smithyClient._json(input));
276
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
277
- };
278
- const se_GetBandwidthRateLimitScheduleCommand = async (input, context) => {
279
- const headers = sharedHeaders("GetBandwidthRateLimitSchedule");
280
- let body;
281
- body = JSON.stringify(smithyClient._json(input));
282
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
283
- };
284
- const se_GetGatewayCommand = async (input, context) => {
285
- const headers = sharedHeaders("GetGateway");
286
- let body;
287
- body = JSON.stringify(smithyClient._json(input));
288
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
289
- };
290
- const se_GetHypervisorCommand = async (input, context) => {
291
- const headers = sharedHeaders("GetHypervisor");
292
- let body;
293
- body = JSON.stringify(smithyClient._json(input));
294
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
- };
296
- const se_GetHypervisorPropertyMappingsCommand = async (input, context) => {
297
- const headers = sharedHeaders("GetHypervisorPropertyMappings");
298
- let body;
299
- body = JSON.stringify(smithyClient._json(input));
300
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
- };
302
- const se_GetVirtualMachineCommand = async (input, context) => {
303
- const headers = sharedHeaders("GetVirtualMachine");
304
- let body;
305
- body = JSON.stringify(smithyClient._json(input));
306
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
307
- };
308
- const se_ImportHypervisorConfigurationCommand = async (input, context) => {
309
- const headers = sharedHeaders("ImportHypervisorConfiguration");
310
- let body;
311
- body = JSON.stringify(smithyClient._json(input));
312
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
313
- };
314
- const se_ListGatewaysCommand = async (input, context) => {
315
- const headers = sharedHeaders("ListGateways");
316
- let body;
317
- body = JSON.stringify(smithyClient._json(input));
318
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
319
- };
320
- const se_ListHypervisorsCommand = async (input, context) => {
321
- const headers = sharedHeaders("ListHypervisors");
322
- let body;
323
- body = JSON.stringify(smithyClient._json(input));
324
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
325
- };
326
- const se_ListTagsForResourceCommand = async (input, context) => {
327
- const headers = sharedHeaders("ListTagsForResource");
328
- let body;
329
- body = JSON.stringify(smithyClient._json(input));
330
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
331
- };
332
- const se_ListVirtualMachinesCommand = async (input, context) => {
333
- const headers = sharedHeaders("ListVirtualMachines");
334
- let body;
335
- body = JSON.stringify(smithyClient._json(input));
336
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
- };
338
- const se_PutBandwidthRateLimitScheduleCommand = async (input, context) => {
339
- const headers = sharedHeaders("PutBandwidthRateLimitSchedule");
340
- let body;
341
- body = JSON.stringify(smithyClient._json(input));
342
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
343
- };
344
- const se_PutHypervisorPropertyMappingsCommand = async (input, context) => {
345
- const headers = sharedHeaders("PutHypervisorPropertyMappings");
346
- let body;
347
- body = JSON.stringify(smithyClient._json(input));
348
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
349
- };
350
- const se_PutMaintenanceStartTimeCommand = async (input, context) => {
351
- const headers = sharedHeaders("PutMaintenanceStartTime");
352
- let body;
353
- body = JSON.stringify(smithyClient._json(input));
354
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
355
- };
356
- const se_StartVirtualMachinesMetadataSyncCommand = async (input, context) => {
357
- const headers = sharedHeaders("StartVirtualMachinesMetadataSync");
358
- let body;
359
- body = JSON.stringify(smithyClient._json(input));
360
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
361
- };
362
- const se_TagResourceCommand = async (input, context) => {
363
- const headers = sharedHeaders("TagResource");
364
- let body;
365
- body = JSON.stringify(smithyClient._json(input));
366
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
367
- };
368
- const se_TestHypervisorConfigurationCommand = async (input, context) => {
369
- const headers = sharedHeaders("TestHypervisorConfiguration");
370
- let body;
371
- body = JSON.stringify(smithyClient._json(input));
372
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
373
- };
374
- const se_UntagResourceCommand = async (input, context) => {
375
- const headers = sharedHeaders("UntagResource");
376
- let body;
377
- body = JSON.stringify(smithyClient._json(input));
378
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
- };
380
- const se_UpdateGatewayInformationCommand = async (input, context) => {
381
- const headers = sharedHeaders("UpdateGatewayInformation");
382
- let body;
383
- body = JSON.stringify(smithyClient._json(input));
384
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
385
- };
386
- const se_UpdateGatewaySoftwareNowCommand = async (input, context) => {
387
- const headers = sharedHeaders("UpdateGatewaySoftwareNow");
388
- let body;
389
- body = JSON.stringify(smithyClient._json(input));
390
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
391
- };
392
- const se_UpdateHypervisorCommand = async (input, context) => {
393
- const headers = sharedHeaders("UpdateHypervisor");
394
- let body;
395
- body = JSON.stringify(smithyClient._json(input));
396
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
397
- };
398
- const de_AssociateGatewayToServerCommand = async (output, context) => {
399
- if (output.statusCode >= 300) {
400
- return de_CommandError(output, context);
401
- }
402
- const data = await core$1.parseJsonBody(output.body, context);
403
- let contents = {};
404
- contents = smithyClient._json(data);
405
- const response = {
406
- $metadata: deserializeMetadata(output),
407
- ...contents,
408
- };
409
- return response;
410
- };
411
- const de_CreateGatewayCommand = async (output, context) => {
412
- if (output.statusCode >= 300) {
413
- return de_CommandError(output, context);
414
- }
415
- const data = await core$1.parseJsonBody(output.body, context);
416
- let contents = {};
417
- contents = smithyClient._json(data);
418
- const response = {
419
- $metadata: deserializeMetadata(output),
420
- ...contents,
421
- };
422
- return response;
423
- };
424
- const de_DeleteGatewayCommand = async (output, context) => {
425
- if (output.statusCode >= 300) {
426
- return de_CommandError(output, context);
427
- }
428
- const data = await core$1.parseJsonBody(output.body, context);
429
- let contents = {};
430
- contents = smithyClient._json(data);
431
- const response = {
432
- $metadata: deserializeMetadata(output),
433
- ...contents,
434
- };
435
- return response;
436
- };
437
- const de_DeleteHypervisorCommand = async (output, context) => {
438
- if (output.statusCode >= 300) {
439
- return de_CommandError(output, context);
440
- }
441
- const data = await core$1.parseJsonBody(output.body, context);
442
- let contents = {};
443
- contents = smithyClient._json(data);
444
- const response = {
445
- $metadata: deserializeMetadata(output),
446
- ...contents,
447
- };
448
- return response;
449
- };
450
- const de_DisassociateGatewayFromServerCommand = async (output, context) => {
451
- if (output.statusCode >= 300) {
452
- return de_CommandError(output, context);
453
- }
454
- const data = await core$1.parseJsonBody(output.body, context);
455
- let contents = {};
456
- contents = smithyClient._json(data);
457
- const response = {
458
- $metadata: deserializeMetadata(output),
459
- ...contents,
460
- };
461
- return response;
462
- };
463
- const de_GetBandwidthRateLimitScheduleCommand = async (output, context) => {
464
- if (output.statusCode >= 300) {
465
- return de_CommandError(output, context);
466
- }
467
- const data = await core$1.parseJsonBody(output.body, context);
468
- let contents = {};
469
- contents = smithyClient._json(data);
470
- const response = {
471
- $metadata: deserializeMetadata(output),
472
- ...contents,
473
- };
474
- return response;
475
- };
476
- const de_GetGatewayCommand = async (output, context) => {
477
- if (output.statusCode >= 300) {
478
- return de_CommandError(output, context);
479
- }
480
- const data = await core$1.parseJsonBody(output.body, context);
481
- let contents = {};
482
- contents = de_GetGatewayOutput(data);
483
- const response = {
484
- $metadata: deserializeMetadata(output),
485
- ...contents,
486
- };
487
- return response;
488
- };
489
- const de_GetHypervisorCommand = async (output, context) => {
490
- if (output.statusCode >= 300) {
491
- return de_CommandError(output, context);
492
- }
493
- const data = await core$1.parseJsonBody(output.body, context);
494
- let contents = {};
495
- contents = de_GetHypervisorOutput(data);
496
- const response = {
497
- $metadata: deserializeMetadata(output),
498
- ...contents,
499
- };
500
- return response;
501
- };
502
- const de_GetHypervisorPropertyMappingsCommand = async (output, context) => {
503
- if (output.statusCode >= 300) {
504
- return de_CommandError(output, context);
505
- }
506
- const data = await core$1.parseJsonBody(output.body, context);
507
- let contents = {};
508
- contents = smithyClient._json(data);
509
- const response = {
510
- $metadata: deserializeMetadata(output),
511
- ...contents,
512
- };
513
- return response;
514
- };
515
- const de_GetVirtualMachineCommand = async (output, context) => {
516
- if (output.statusCode >= 300) {
517
- return de_CommandError(output, context);
518
- }
519
- const data = await core$1.parseJsonBody(output.body, context);
520
- let contents = {};
521
- contents = de_GetVirtualMachineOutput(data);
522
- const response = {
523
- $metadata: deserializeMetadata(output),
524
- ...contents,
525
- };
526
- return response;
527
- };
528
- const de_ImportHypervisorConfigurationCommand = async (output, context) => {
529
- if (output.statusCode >= 300) {
530
- return de_CommandError(output, context);
531
- }
532
- const data = await core$1.parseJsonBody(output.body, context);
533
- let contents = {};
534
- contents = smithyClient._json(data);
535
- const response = {
536
- $metadata: deserializeMetadata(output),
537
- ...contents,
538
- };
539
- return response;
540
- };
541
- const de_ListGatewaysCommand = async (output, context) => {
542
- if (output.statusCode >= 300) {
543
- return de_CommandError(output, context);
544
- }
545
- const data = await core$1.parseJsonBody(output.body, context);
546
- let contents = {};
547
- contents = de_ListGatewaysOutput(data);
548
- const response = {
549
- $metadata: deserializeMetadata(output),
550
- ...contents,
551
- };
552
- return response;
553
- };
554
- const de_ListHypervisorsCommand = async (output, context) => {
555
- if (output.statusCode >= 300) {
556
- return de_CommandError(output, context);
557
- }
558
- const data = await core$1.parseJsonBody(output.body, context);
559
- let contents = {};
560
- contents = smithyClient._json(data);
561
- const response = {
562
- $metadata: deserializeMetadata(output),
563
- ...contents,
564
- };
565
- return response;
566
- };
567
- const de_ListTagsForResourceCommand = async (output, context) => {
568
- if (output.statusCode >= 300) {
569
- return de_CommandError(output, context);
570
- }
571
- const data = await core$1.parseJsonBody(output.body, context);
572
- let contents = {};
573
- contents = smithyClient._json(data);
574
- const response = {
575
- $metadata: deserializeMetadata(output),
576
- ...contents,
577
- };
578
- return response;
579
- };
580
- const de_ListVirtualMachinesCommand = async (output, context) => {
581
- if (output.statusCode >= 300) {
582
- return de_CommandError(output, context);
583
- }
584
- const data = await core$1.parseJsonBody(output.body, context);
585
- let contents = {};
586
- contents = de_ListVirtualMachinesOutput(data);
587
- const response = {
588
- $metadata: deserializeMetadata(output),
589
- ...contents,
590
- };
591
- return response;
592
- };
593
- const de_PutBandwidthRateLimitScheduleCommand = async (output, context) => {
594
- if (output.statusCode >= 300) {
595
- return de_CommandError(output, context);
596
- }
597
- const data = await core$1.parseJsonBody(output.body, context);
598
- let contents = {};
599
- contents = smithyClient._json(data);
600
- const response = {
601
- $metadata: deserializeMetadata(output),
602
- ...contents,
603
- };
604
- return response;
605
- };
606
- const de_PutHypervisorPropertyMappingsCommand = async (output, context) => {
607
- if (output.statusCode >= 300) {
608
- return de_CommandError(output, context);
609
- }
610
- const data = await core$1.parseJsonBody(output.body, context);
611
- let contents = {};
612
- contents = smithyClient._json(data);
613
- const response = {
614
- $metadata: deserializeMetadata(output),
615
- ...contents,
616
- };
617
- return response;
618
- };
619
- const de_PutMaintenanceStartTimeCommand = async (output, context) => {
620
- if (output.statusCode >= 300) {
621
- return de_CommandError(output, context);
622
- }
623
- const data = await core$1.parseJsonBody(output.body, context);
624
- let contents = {};
625
- contents = smithyClient._json(data);
626
- const response = {
627
- $metadata: deserializeMetadata(output),
628
- ...contents,
629
- };
630
- return response;
631
- };
632
- const de_StartVirtualMachinesMetadataSyncCommand = async (output, context) => {
633
- if (output.statusCode >= 300) {
634
- return de_CommandError(output, context);
635
- }
636
- const data = await core$1.parseJsonBody(output.body, context);
637
- let contents = {};
638
- contents = smithyClient._json(data);
639
- const response = {
640
- $metadata: deserializeMetadata(output),
641
- ...contents,
642
- };
643
- return response;
644
- };
645
- const de_TagResourceCommand = async (output, context) => {
646
- if (output.statusCode >= 300) {
647
- return de_CommandError(output, context);
648
- }
649
- const data = await core$1.parseJsonBody(output.body, context);
650
- let contents = {};
651
- contents = smithyClient._json(data);
652
- const response = {
653
- $metadata: deserializeMetadata(output),
654
- ...contents,
655
- };
656
- return response;
657
- };
658
- const de_TestHypervisorConfigurationCommand = async (output, context) => {
659
- if (output.statusCode >= 300) {
660
- return de_CommandError(output, context);
661
- }
662
- const data = await core$1.parseJsonBody(output.body, context);
663
- let contents = {};
664
- contents = smithyClient._json(data);
665
- const response = {
666
- $metadata: deserializeMetadata(output),
667
- ...contents,
668
- };
669
- return response;
670
- };
671
- const de_UntagResourceCommand = async (output, context) => {
672
- if (output.statusCode >= 300) {
673
- return de_CommandError(output, context);
674
- }
675
- const data = await core$1.parseJsonBody(output.body, context);
676
- let contents = {};
677
- contents = smithyClient._json(data);
678
- const response = {
679
- $metadata: deserializeMetadata(output),
680
- ...contents,
681
- };
682
- return response;
683
- };
684
- const de_UpdateGatewayInformationCommand = async (output, context) => {
685
- if (output.statusCode >= 300) {
686
- return de_CommandError(output, context);
687
- }
688
- const data = await core$1.parseJsonBody(output.body, context);
689
- let contents = {};
690
- contents = smithyClient._json(data);
691
- const response = {
692
- $metadata: deserializeMetadata(output),
693
- ...contents,
694
- };
695
- return response;
696
- };
697
- const de_UpdateGatewaySoftwareNowCommand = async (output, context) => {
698
- if (output.statusCode >= 300) {
699
- return de_CommandError(output, context);
700
- }
701
- const data = await core$1.parseJsonBody(output.body, context);
702
- let contents = {};
703
- contents = smithyClient._json(data);
704
- const response = {
705
- $metadata: deserializeMetadata(output),
706
- ...contents,
707
- };
708
- return response;
709
- };
710
- const de_UpdateHypervisorCommand = async (output, context) => {
711
- if (output.statusCode >= 300) {
712
- return de_CommandError(output, context);
713
- }
714
- const data = await core$1.parseJsonBody(output.body, context);
715
- let contents = {};
716
- contents = smithyClient._json(data);
717
- const response = {
718
- $metadata: deserializeMetadata(output),
719
- ...contents,
720
- };
721
- return response;
722
- };
723
- const de_CommandError = async (output, context) => {
724
- const parsedOutput = {
725
- ...output,
726
- body: await core$1.parseJsonErrorBody(output.body, context),
727
- };
728
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
729
- switch (errorCode) {
730
- case "ConflictException":
731
- case "com.amazonaws.backupgateway#ConflictException":
732
- throw await de_ConflictExceptionRes(parsedOutput);
733
- case "InternalServerException":
734
- case "com.amazonaws.backupgateway#InternalServerException":
735
- throw await de_InternalServerExceptionRes(parsedOutput);
736
- case "ThrottlingException":
737
- case "com.amazonaws.backupgateway#ThrottlingException":
738
- throw await de_ThrottlingExceptionRes(parsedOutput);
739
- case "ValidationException":
740
- case "com.amazonaws.backupgateway#ValidationException":
741
- throw await de_ValidationExceptionRes(parsedOutput);
742
- case "ResourceNotFoundException":
743
- case "com.amazonaws.backupgateway#ResourceNotFoundException":
744
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
745
- case "AccessDeniedException":
746
- case "com.amazonaws.backupgateway#AccessDeniedException":
747
- throw await de_AccessDeniedExceptionRes(parsedOutput);
748
- default:
749
- const parsedBody = parsedOutput.body;
750
- return throwDefaultError({
751
- output,
752
- parsedBody,
753
- errorCode,
754
- });
755
- }
756
- };
757
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
758
- const body = parsedOutput.body;
759
- const deserialized = smithyClient._json(body);
760
- const exception = new AccessDeniedException({
761
- $metadata: deserializeMetadata(parsedOutput),
762
- ...deserialized,
763
- });
764
- return smithyClient.decorateServiceException(exception, body);
765
- };
766
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
767
- const body = parsedOutput.body;
768
- const deserialized = smithyClient._json(body);
769
- const exception = new ConflictException({
770
- $metadata: deserializeMetadata(parsedOutput),
771
- ...deserialized,
772
- });
773
- return smithyClient.decorateServiceException(exception, body);
774
- };
775
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
776
- const body = parsedOutput.body;
777
- const deserialized = smithyClient._json(body);
778
- const exception = new InternalServerException({
779
- $metadata: deserializeMetadata(parsedOutput),
780
- ...deserialized,
781
- });
782
- return smithyClient.decorateServiceException(exception, body);
783
- };
784
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
785
- const body = parsedOutput.body;
786
- const deserialized = smithyClient._json(body);
787
- const exception = new ResourceNotFoundException({
788
- $metadata: deserializeMetadata(parsedOutput),
789
- ...deserialized,
790
- });
791
- return smithyClient.decorateServiceException(exception, body);
792
- };
793
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
794
- const body = parsedOutput.body;
795
- const deserialized = smithyClient._json(body);
796
- const exception = new ThrottlingException({
797
- $metadata: deserializeMetadata(parsedOutput),
798
- ...deserialized,
799
- });
800
- return smithyClient.decorateServiceException(exception, body);
801
- };
802
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
803
- const body = parsedOutput.body;
804
- const deserialized = smithyClient._json(body);
805
- const exception = new ValidationException({
806
- $metadata: deserializeMetadata(parsedOutput),
807
- ...deserialized,
808
- });
809
- return smithyClient.decorateServiceException(exception, body);
810
- };
811
- const de_Gateway = (output, context) => {
812
- return smithyClient.take(output, {
813
- GatewayArn: smithyClient.expectString,
814
- GatewayDisplayName: smithyClient.expectString,
815
- GatewayType: smithyClient.expectString,
816
- HypervisorId: smithyClient.expectString,
817
- LastSeenTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
818
- });
819
- };
820
- const de_GatewayDetails = (output, context) => {
821
- return smithyClient.take(output, {
822
- GatewayArn: smithyClient.expectString,
823
- GatewayDisplayName: smithyClient.expectString,
824
- GatewayType: smithyClient.expectString,
825
- HypervisorId: smithyClient.expectString,
826
- LastSeenTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
827
- MaintenanceStartTime: smithyClient._json,
828
- NextUpdateAvailabilityTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
829
- VpcEndpoint: smithyClient.expectString,
830
- });
831
- };
832
- const de_Gateways = (output, context) => {
833
- const retVal = (output || [])
834
- .filter((e) => e != null)
835
- .map((entry) => {
836
- return de_Gateway(entry);
837
- });
838
- return retVal;
839
- };
840
- const de_GetGatewayOutput = (output, context) => {
841
- return smithyClient.take(output, {
842
- Gateway: (_) => de_GatewayDetails(_),
843
- });
844
- };
845
- const de_GetHypervisorOutput = (output, context) => {
846
- return smithyClient.take(output, {
847
- Hypervisor: (_) => de_HypervisorDetails(_),
848
- });
849
- };
850
- const de_GetVirtualMachineOutput = (output, context) => {
851
- return smithyClient.take(output, {
852
- VirtualMachine: (_) => de_VirtualMachineDetails(_),
853
- });
854
- };
855
- const de_HypervisorDetails = (output, context) => {
856
- return smithyClient.take(output, {
857
- Host: smithyClient.expectString,
858
- HypervisorArn: smithyClient.expectString,
859
- KmsKeyArn: smithyClient.expectString,
860
- LastSuccessfulMetadataSyncTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
861
- LatestMetadataSyncStatus: smithyClient.expectString,
862
- LatestMetadataSyncStatusMessage: smithyClient.expectString,
863
- LogGroupArn: smithyClient.expectString,
864
- Name: smithyClient.expectString,
865
- State: smithyClient.expectString,
866
- });
867
- };
868
- const de_ListGatewaysOutput = (output, context) => {
869
- return smithyClient.take(output, {
870
- Gateways: (_) => de_Gateways(_),
871
- NextToken: smithyClient.expectString,
872
- });
873
- };
874
- const de_ListVirtualMachinesOutput = (output, context) => {
875
- return smithyClient.take(output, {
876
- NextToken: smithyClient.expectString,
877
- VirtualMachines: (_) => de_VirtualMachines(_),
878
- });
879
- };
880
- const de_VirtualMachine = (output, context) => {
881
- return smithyClient.take(output, {
882
- HostName: smithyClient.expectString,
883
- HypervisorId: smithyClient.expectString,
884
- LastBackupDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
885
- Name: smithyClient.expectString,
886
- Path: smithyClient.expectString,
887
- ResourceArn: smithyClient.expectString,
888
- });
889
- };
890
- const de_VirtualMachineDetails = (output, context) => {
891
- return smithyClient.take(output, {
892
- HostName: smithyClient.expectString,
893
- HypervisorId: smithyClient.expectString,
894
- LastBackupDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
895
- Name: smithyClient.expectString,
896
- Path: smithyClient.expectString,
897
- ResourceArn: smithyClient.expectString,
898
- VmwareTags: smithyClient._json,
899
- });
900
- };
901
- const de_VirtualMachines = (output, context) => {
902
- const retVal = (output || [])
903
- .filter((e) => e != null)
904
- .map((entry) => {
905
- return de_VirtualMachine(entry);
906
- });
907
- return retVal;
908
- };
909
- const deserializeMetadata = (output) => ({
910
- httpStatusCode: output.statusCode,
911
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
912
- extendedRequestId: output.headers["x-amz-id-2"],
913
- cfId: output.headers["x-amz-cf-id"],
914
- });
915
- const throwDefaultError = smithyClient.withBaseException(BackupGatewayServiceException);
916
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
917
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
918
- const contents = {
919
- protocol,
920
- hostname,
921
- port,
922
- method: "POST",
923
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
924
- headers,
925
- };
926
- if (body !== undefined) {
927
- contents.body = body;
928
- }
929
- return new protocolHttp.HttpRequest(contents);
930
- };
931
- function sharedHeaders(operation) {
932
- return {
933
- "content-type": "application/x-amz-json-1.0",
934
- "x-amz-target": `BackupOnPremises_v20210101.${operation}`,
935
- };
936
- }
233
+ const _ADE = "AccessDeniedException";
234
+ const _AGTS = "AssociateGatewayToServer";
235
+ const _AGTSI = "AssociateGatewayToServerInput";
236
+ const _AGTSO = "AssociateGatewayToServerOutput";
237
+ const _AK = "ActivationKey";
238
+ const _ATK = "AwsTagKey";
239
+ const _ATV = "AwsTagValue";
240
+ const _AURLIBPS = "AverageUploadRateLimitInBitsPerSec";
241
+ const _BRLI = "BandwidthRateLimitInterval";
242
+ const _BRLIa = "BandwidthRateLimitIntervals";
243
+ const _CE = "ConflictException";
244
+ const _CG = "CreateGateway";
245
+ const _CGI = "CreateGatewayInput";
246
+ const _CGO = "CreateGatewayOutput";
247
+ const _DG = "DeleteGateway";
248
+ const _DGFS = "DisassociateGatewayFromServer";
249
+ const _DGFSI = "DisassociateGatewayFromServerInput";
250
+ const _DGFSO = "DisassociateGatewayFromServerOutput";
251
+ const _DGI = "DeleteGatewayInput";
252
+ const _DGO = "DeleteGatewayOutput";
253
+ const _DH = "DeleteHypervisor";
254
+ const _DHI = "DeleteHypervisorInput";
255
+ const _DHO = "DeleteHypervisorOutput";
256
+ const _DOM = "DayOfMonth";
257
+ const _DOW = "DaysOfWeek";
258
+ const _DOWa = "DayOfWeek";
259
+ const _EC = "ErrorCode";
260
+ const _EHOD = "EndHourOfDay";
261
+ const _EMOH = "EndMinuteOfHour";
262
+ const _G = "Gateway";
263
+ const _GA = "GatewayArn";
264
+ const _GBRLS = "GetBandwidthRateLimitSchedule";
265
+ const _GBRLSI = "GetBandwidthRateLimitScheduleInput";
266
+ const _GBRLSO = "GetBandwidthRateLimitScheduleOutput";
267
+ const _GD = "GatewayDetails";
268
+ const _GDN = "GatewayDisplayName";
269
+ const _GG = "GetGateway";
270
+ const _GGI = "GetGatewayInput";
271
+ const _GGO = "GetGatewayOutput";
272
+ const _GH = "GetHypervisor";
273
+ const _GHI = "GetHypervisorInput";
274
+ const _GHO = "GetHypervisorOutput";
275
+ const _GHPM = "GetHypervisorPropertyMappings";
276
+ const _GHPMI = "GetHypervisorPropertyMappingsInput";
277
+ const _GHPMO = "GetHypervisorPropertyMappingsOutput";
278
+ const _GT = "GatewayType";
279
+ const _GVM = "GetVirtualMachine";
280
+ const _GVMI = "GetVirtualMachineInput";
281
+ const _GVMO = "GetVirtualMachineOutput";
282
+ const _Ga = "Gateways";
283
+ const _H = "Hypervisor";
284
+ const _HA = "HypervisorArn";
285
+ const _HD = "HypervisorDetails";
286
+ const _HI = "HypervisorId";
287
+ const _HN = "HostName";
288
+ const _HOD = "HourOfDay";
289
+ const _Ho = "Host";
290
+ const _Hy = "Hypervisors";
291
+ const _IHC = "ImportHypervisorConfiguration";
292
+ const _IHCI = "ImportHypervisorConfigurationInput";
293
+ const _IHCO = "ImportHypervisorConfigurationOutput";
294
+ const _IRA = "IamRoleArn";
295
+ const _ISE = "InternalServerException";
296
+ const _K = "Key";
297
+ const _KKA = "KmsKeyArn";
298
+ const _LBD = "LastBackupDate";
299
+ const _LG = "ListGateways";
300
+ const _LGA = "LogGroupArn";
301
+ const _LGI = "ListGatewaysInput";
302
+ const _LGO = "ListGatewaysOutput";
303
+ const _LH = "ListHypervisors";
304
+ const _LHI = "ListHypervisorsInput";
305
+ const _LHO = "ListHypervisorsOutput";
306
+ const _LMSS = "LatestMetadataSyncStatus";
307
+ const _LMSSM = "LatestMetadataSyncStatusMessage";
308
+ const _LSMST = "LastSuccessfulMetadataSyncTime";
309
+ const _LST = "LastSeenTime";
310
+ const _LTFR = "ListTagsForResource";
311
+ const _LTFRI = "ListTagsForResourceInput";
312
+ const _LTFRO = "ListTagsForResourceOutput";
313
+ const _LVM = "ListVirtualMachines";
314
+ const _LVMI = "ListVirtualMachinesInput";
315
+ const _LVMO = "ListVirtualMachinesOutput";
316
+ const _M = "Message";
317
+ const _MOH = "MinuteOfHour";
318
+ const _MR = "MaxResults";
319
+ const _MST = "MaintenanceStartTime";
320
+ const _N = "Name";
321
+ const _NT = "NextToken";
322
+ const _NUAT = "NextUpdateAvailabilityTime";
323
+ const _P = "Password";
324
+ const _PBRLS = "PutBandwidthRateLimitSchedule";
325
+ const _PBRLSI = "PutBandwidthRateLimitScheduleInput";
326
+ const _PBRLSO = "PutBandwidthRateLimitScheduleOutput";
327
+ const _PHPM = "PutHypervisorPropertyMappings";
328
+ const _PHPMI = "PutHypervisorPropertyMappingsInput";
329
+ const _PHPMO = "PutHypervisorPropertyMappingsOutput";
330
+ const _PMST = "PutMaintenanceStartTime";
331
+ const _PMSTI = "PutMaintenanceStartTimeInput";
332
+ const _PMSTO = "PutMaintenanceStartTimeOutput";
333
+ const _Pa = "Path";
334
+ const _RA = "ResourceArn";
335
+ const _RARN = "ResourceARN";
336
+ const _RNFE = "ResourceNotFoundException";
337
+ const _S = "State";
338
+ const _SA = "ServerArn";
339
+ const _SHOD = "StartHourOfDay";
340
+ const _SMOH = "StartMinuteOfHour";
341
+ const _SVMMS = "StartVirtualMachinesMetadataSync";
342
+ const _SVMMSI = "StartVirtualMachinesMetadataSyncInput";
343
+ const _SVMMSO = "StartVirtualMachinesMetadataSyncOutput";
344
+ const _T = "Tags";
345
+ const _TE = "ThrottlingException";
346
+ const _THC = "TestHypervisorConfiguration";
347
+ const _THCI = "TestHypervisorConfigurationInput";
348
+ const _THCO = "TestHypervisorConfigurationOutput";
349
+ const _TK = "TagKeys";
350
+ const _TR = "TagResource";
351
+ const _TRI = "TagResourceInput";
352
+ const _TRO = "TagResourceOutput";
353
+ const _Ta = "Tag";
354
+ const _U = "Username";
355
+ const _UGI = "UpdateGatewayInformation";
356
+ const _UGII = "UpdateGatewayInformationInput";
357
+ const _UGIO = "UpdateGatewayInformationOutput";
358
+ const _UGSN = "UpdateGatewaySoftwareNow";
359
+ const _UGSNI = "UpdateGatewaySoftwareNowInput";
360
+ const _UGSNO = "UpdateGatewaySoftwareNowOutput";
361
+ const _UH = "UpdateHypervisor";
362
+ const _UHI = "UpdateHypervisorInput";
363
+ const _UHO = "UpdateHypervisorOutput";
364
+ const _UR = "UntagResource";
365
+ const _URI = "UntagResourceInput";
366
+ const _URO = "UntagResourceOutput";
367
+ const _V = "Value";
368
+ const _VC = "VmwareCategory";
369
+ const _VE = "VpcEndpoint";
370
+ const _VEa = "ValidationException";
371
+ const _VM = "VirtualMachine";
372
+ const _VMD = "VirtualMachineDetails";
373
+ const _VMi = "VirtualMachines";
374
+ const _VT = "VmwareTags";
375
+ const _VTATM = "VmwareToAwsTagMappings";
376
+ const _VTATMm = "VmwareToAwsTagMapping";
377
+ const _VTD = "VmwareTagDescription";
378
+ const _VTN = "VmwareTagName";
379
+ const _VTm = "VmwareTag";
380
+ const _c = "client";
381
+ const _e = "error";
382
+ const _hE = "httpError";
383
+ const _s = "server";
384
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.backupgateway";
385
+ const n0 = "com.amazonaws.backupgateway";
386
+ var Password = [0, n0, _P, 8, 0];
387
+ var Username = [0, n0, _U, 8, 0];
388
+ var AccessDeniedException = [
389
+ -3,
390
+ n0,
391
+ _ADE,
392
+ {
393
+ [_e]: _c,
394
+ [_hE]: 403,
395
+ },
396
+ [_EC, _M],
397
+ [0, 0],
398
+ ];
399
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
400
+ var AssociateGatewayToServerInput = [3, n0, _AGTSI, 0, [_GA, _SA], [0, 0]];
401
+ var AssociateGatewayToServerOutput = [3, n0, _AGTSO, 0, [_GA], [0]];
402
+ var BandwidthRateLimitInterval = [
403
+ 3,
404
+ n0,
405
+ _BRLI,
406
+ 0,
407
+ [_AURLIBPS, _SHOD, _EHOD, _SMOH, _EMOH, _DOW],
408
+ [1, 1, 1, 1, 1, 64 | 1],
409
+ ];
410
+ var ConflictException = [
411
+ -3,
412
+ n0,
413
+ _CE,
414
+ {
415
+ [_e]: _c,
416
+ [_hE]: 409,
417
+ },
418
+ [_EC, _M],
419
+ [0, 0],
420
+ ];
421
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
422
+ var CreateGatewayInput = [3, n0, _CGI, 0, [_AK, _GDN, _GT, _T], [0, 0, 0, () => Tags]];
423
+ var CreateGatewayOutput = [3, n0, _CGO, 0, [_GA], [0]];
424
+ var DeleteGatewayInput = [3, n0, _DGI, 0, [_GA], [0]];
425
+ var DeleteGatewayOutput = [3, n0, _DGO, 0, [_GA], [0]];
426
+ var DeleteHypervisorInput = [3, n0, _DHI, 0, [_HA], [0]];
427
+ var DeleteHypervisorOutput = [3, n0, _DHO, 0, [_HA], [0]];
428
+ var DisassociateGatewayFromServerInput = [3, n0, _DGFSI, 0, [_GA], [0]];
429
+ var DisassociateGatewayFromServerOutput = [3, n0, _DGFSO, 0, [_GA], [0]];
430
+ var Gateway = [3, n0, _G, 0, [_GA, _GDN, _GT, _HI, _LST], [0, 0, 0, 0, 4]];
431
+ var GatewayDetails = [
432
+ 3,
433
+ n0,
434
+ _GD,
435
+ 0,
436
+ [_GA, _GDN, _GT, _HI, _LST, _MST, _NUAT, _VE],
437
+ [0, 0, 0, 0, 4, () => MaintenanceStartTime, 4, 0],
438
+ ];
439
+ var GetBandwidthRateLimitScheduleInput = [3, n0, _GBRLSI, 0, [_GA], [0]];
440
+ var GetBandwidthRateLimitScheduleOutput = [
441
+ 3,
442
+ n0,
443
+ _GBRLSO,
444
+ 0,
445
+ [_GA, _BRLIa],
446
+ [0, () => BandwidthRateLimitIntervals],
447
+ ];
448
+ var GetGatewayInput = [3, n0, _GGI, 0, [_GA], [0]];
449
+ var GetGatewayOutput = [3, n0, _GGO, 0, [_G], [() => GatewayDetails]];
450
+ var GetHypervisorInput = [3, n0, _GHI, 0, [_HA], [0]];
451
+ var GetHypervisorOutput = [3, n0, _GHO, 0, [_H], [() => HypervisorDetails]];
452
+ var GetHypervisorPropertyMappingsInput = [3, n0, _GHPMI, 0, [_HA], [0]];
453
+ var GetHypervisorPropertyMappingsOutput = [
454
+ 3,
455
+ n0,
456
+ _GHPMO,
457
+ 0,
458
+ [_HA, _VTATM, _IRA],
459
+ [0, () => VmwareToAwsTagMappings, 0],
460
+ ];
461
+ var GetVirtualMachineInput = [3, n0, _GVMI, 0, [_RA], [0]];
462
+ var GetVirtualMachineOutput = [3, n0, _GVMO, 0, [_VM], [() => VirtualMachineDetails]];
463
+ var Hypervisor = [3, n0, _H, 0, [_Ho, _HA, _KKA, _N, _S], [0, 0, 0, 0, 0]];
464
+ var HypervisorDetails = [
465
+ 3,
466
+ n0,
467
+ _HD,
468
+ 0,
469
+ [_Ho, _HA, _KKA, _N, _LGA, _S, _LSMST, _LMSSM, _LMSS],
470
+ [0, 0, 0, 0, 0, 0, 4, 0, 0],
471
+ ];
472
+ var ImportHypervisorConfigurationInput = [
473
+ 3,
474
+ n0,
475
+ _IHCI,
476
+ 0,
477
+ [_N, _Ho, _U, _P, _KKA, _T],
478
+ [0, 0, [() => Username, 0], [() => Password, 0], 0, () => Tags],
479
+ ];
480
+ var ImportHypervisorConfigurationOutput = [3, n0, _IHCO, 0, [_HA], [0]];
481
+ var InternalServerException = [
482
+ -3,
483
+ n0,
484
+ _ISE,
485
+ {
486
+ [_e]: _s,
487
+ [_hE]: 500,
488
+ },
489
+ [_EC, _M],
490
+ [0, 0],
491
+ ];
492
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
493
+ var ListGatewaysInput = [3, n0, _LGI, 0, [_MR, _NT], [1, 0]];
494
+ var ListGatewaysOutput = [3, n0, _LGO, 0, [_Ga, _NT], [() => Gateways, 0]];
495
+ var ListHypervisorsInput = [3, n0, _LHI, 0, [_MR, _NT], [1, 0]];
496
+ var ListHypervisorsOutput = [3, n0, _LHO, 0, [_Hy, _NT], [() => Hypervisors, 0]];
497
+ var ListTagsForResourceInput = [3, n0, _LTFRI, 0, [_RA], [0]];
498
+ var ListTagsForResourceOutput = [3, n0, _LTFRO, 0, [_RA, _T], [0, () => Tags]];
499
+ var ListVirtualMachinesInput = [3, n0, _LVMI, 0, [_HA, _MR, _NT], [0, 1, 0]];
500
+ var ListVirtualMachinesOutput = [
501
+ 3,
502
+ n0,
503
+ _LVMO,
504
+ 0,
505
+ [_VMi, _NT],
506
+ [() => VirtualMachines, 0],
507
+ ];
508
+ var MaintenanceStartTime = [3, n0, _MST, 0, [_DOM, _DOWa, _HOD, _MOH], [1, 1, 1, 1]];
509
+ var PutBandwidthRateLimitScheduleInput = [
510
+ 3,
511
+ n0,
512
+ _PBRLSI,
513
+ 0,
514
+ [_GA, _BRLIa],
515
+ [0, () => BandwidthRateLimitIntervals],
516
+ ];
517
+ var PutBandwidthRateLimitScheduleOutput = [3, n0, _PBRLSO, 0, [_GA], [0]];
518
+ var PutHypervisorPropertyMappingsInput = [
519
+ 3,
520
+ n0,
521
+ _PHPMI,
522
+ 0,
523
+ [_HA, _VTATM, _IRA],
524
+ [0, () => VmwareToAwsTagMappings, 0],
525
+ ];
526
+ var PutHypervisorPropertyMappingsOutput = [3, n0, _PHPMO, 0, [_HA], [0]];
527
+ var PutMaintenanceStartTimeInput = [
528
+ 3,
529
+ n0,
530
+ _PMSTI,
531
+ 0,
532
+ [_GA, _HOD, _MOH, _DOWa, _DOM],
533
+ [0, 1, 1, 1, 1],
534
+ ];
535
+ var PutMaintenanceStartTimeOutput = [3, n0, _PMSTO, 0, [_GA], [0]];
536
+ var ResourceNotFoundException = [
537
+ -3,
538
+ n0,
539
+ _RNFE,
540
+ {
541
+ [_e]: _c,
542
+ [_hE]: 404,
543
+ },
544
+ [_EC, _M],
545
+ [0, 0],
546
+ ];
547
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
548
+ var StartVirtualMachinesMetadataSyncInput = [3, n0, _SVMMSI, 0, [_HA], [0]];
549
+ var StartVirtualMachinesMetadataSyncOutput = [3, n0, _SVMMSO, 0, [_HA], [0]];
550
+ var Tag = [3, n0, _Ta, 0, [_K, _V], [0, 0]];
551
+ var TagResourceInput = [3, n0, _TRI, 0, [_RARN, _T], [0, () => Tags]];
552
+ var TagResourceOutput = [3, n0, _TRO, 0, [_RARN], [0]];
553
+ var TestHypervisorConfigurationInput = [
554
+ 3,
555
+ n0,
556
+ _THCI,
557
+ 0,
558
+ [_GA, _Ho, _U, _P],
559
+ [0, 0, [() => Username, 0], [() => Password, 0]],
560
+ ];
561
+ var TestHypervisorConfigurationOutput = [3, n0, _THCO, 0, [], []];
562
+ var ThrottlingException = [
563
+ -3,
564
+ n0,
565
+ _TE,
566
+ {
567
+ [_e]: _c,
568
+ [_hE]: 429,
569
+ },
570
+ [_EC, _M],
571
+ [0, 0],
572
+ ];
573
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
574
+ var UntagResourceInput = [3, n0, _URI, 0, [_RARN, _TK], [0, 64 | 0]];
575
+ var UntagResourceOutput = [3, n0, _URO, 0, [_RARN], [0]];
576
+ var UpdateGatewayInformationInput = [3, n0, _UGII, 0, [_GA, _GDN], [0, 0]];
577
+ var UpdateGatewayInformationOutput = [3, n0, _UGIO, 0, [_GA], [0]];
578
+ var UpdateGatewaySoftwareNowInput = [3, n0, _UGSNI, 0, [_GA], [0]];
579
+ var UpdateGatewaySoftwareNowOutput = [3, n0, _UGSNO, 0, [_GA], [0]];
580
+ var UpdateHypervisorInput = [
581
+ 3,
582
+ n0,
583
+ _UHI,
584
+ 0,
585
+ [_HA, _Ho, _U, _P, _N, _LGA],
586
+ [0, 0, [() => Username, 0], [() => Password, 0], 0, 0],
587
+ ];
588
+ var UpdateHypervisorOutput = [3, n0, _UHO, 0, [_HA], [0]];
589
+ var ValidationException = [
590
+ -3,
591
+ n0,
592
+ _VEa,
593
+ {
594
+ [_e]: _c,
595
+ [_hE]: 400,
596
+ },
597
+ [_EC, _M],
598
+ [0, 0],
599
+ ];
600
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
601
+ var VirtualMachine = [3, n0, _VM, 0, [_HN, _HI, _N, _Pa, _RA, _LBD], [0, 0, 0, 0, 0, 4]];
602
+ var VirtualMachineDetails = [
603
+ 3,
604
+ n0,
605
+ _VMD,
606
+ 0,
607
+ [_HN, _HI, _N, _Pa, _RA, _LBD, _VT],
608
+ [0, 0, 0, 0, 0, 4, () => VmwareTags],
609
+ ];
610
+ var VmwareTag = [3, n0, _VTm, 0, [_VC, _VTN, _VTD], [0, 0, 0]];
611
+ var VmwareToAwsTagMapping = [3, n0, _VTATMm, 0, [_VC, _VTN, _ATK, _ATV], [0, 0, 0, 0]];
612
+ var BackupGatewayServiceException = [-3, _sm, "BackupGatewayServiceException", 0, [], []];
613
+ schema.TypeRegistry.for(_sm).registerError(BackupGatewayServiceException, BackupGatewayServiceException$1);
614
+ var BandwidthRateLimitIntervals = [1, n0, _BRLIa, 0, () => BandwidthRateLimitInterval];
615
+ var Gateways = [1, n0, _Ga, 0, () => Gateway];
616
+ var Hypervisors = [1, n0, _Hy, 0, () => Hypervisor];
617
+ var Tags = [1, n0, _T, 0, () => Tag];
618
+ var VirtualMachines = [1, n0, _VMi, 0, () => VirtualMachine];
619
+ var VmwareTags = [1, n0, _VT, 0, () => VmwareTag];
620
+ var VmwareToAwsTagMappings = [1, n0, _VTATM, 0, () => VmwareToAwsTagMapping];
621
+ var AssociateGatewayToServer = [
622
+ 9,
623
+ n0,
624
+ _AGTS,
625
+ 0,
626
+ () => AssociateGatewayToServerInput,
627
+ () => AssociateGatewayToServerOutput,
628
+ ];
629
+ var CreateGateway = [9, n0, _CG, 0, () => CreateGatewayInput, () => CreateGatewayOutput];
630
+ var DeleteGateway = [9, n0, _DG, 2, () => DeleteGatewayInput, () => DeleteGatewayOutput];
631
+ var DeleteHypervisor = [
632
+ 9,
633
+ n0,
634
+ _DH,
635
+ 2,
636
+ () => DeleteHypervisorInput,
637
+ () => DeleteHypervisorOutput,
638
+ ];
639
+ var DisassociateGatewayFromServer = [
640
+ 9,
641
+ n0,
642
+ _DGFS,
643
+ 0,
644
+ () => DisassociateGatewayFromServerInput,
645
+ () => DisassociateGatewayFromServerOutput,
646
+ ];
647
+ var GetBandwidthRateLimitSchedule = [
648
+ 9,
649
+ n0,
650
+ _GBRLS,
651
+ 0,
652
+ () => GetBandwidthRateLimitScheduleInput,
653
+ () => GetBandwidthRateLimitScheduleOutput,
654
+ ];
655
+ var GetGateway = [9, n0, _GG, 0, () => GetGatewayInput, () => GetGatewayOutput];
656
+ var GetHypervisor = [9, n0, _GH, 0, () => GetHypervisorInput, () => GetHypervisorOutput];
657
+ var GetHypervisorPropertyMappings = [
658
+ 9,
659
+ n0,
660
+ _GHPM,
661
+ 0,
662
+ () => GetHypervisorPropertyMappingsInput,
663
+ () => GetHypervisorPropertyMappingsOutput,
664
+ ];
665
+ var GetVirtualMachine = [
666
+ 9,
667
+ n0,
668
+ _GVM,
669
+ 0,
670
+ () => GetVirtualMachineInput,
671
+ () => GetVirtualMachineOutput,
672
+ ];
673
+ var ImportHypervisorConfiguration = [
674
+ 9,
675
+ n0,
676
+ _IHC,
677
+ 0,
678
+ () => ImportHypervisorConfigurationInput,
679
+ () => ImportHypervisorConfigurationOutput,
680
+ ];
681
+ var ListGateways = [9, n0, _LG, 0, () => ListGatewaysInput, () => ListGatewaysOutput];
682
+ var ListHypervisors = [
683
+ 9,
684
+ n0,
685
+ _LH,
686
+ 0,
687
+ () => ListHypervisorsInput,
688
+ () => ListHypervisorsOutput,
689
+ ];
690
+ var ListTagsForResource = [
691
+ 9,
692
+ n0,
693
+ _LTFR,
694
+ 0,
695
+ () => ListTagsForResourceInput,
696
+ () => ListTagsForResourceOutput,
697
+ ];
698
+ var ListVirtualMachines = [
699
+ 9,
700
+ n0,
701
+ _LVM,
702
+ 0,
703
+ () => ListVirtualMachinesInput,
704
+ () => ListVirtualMachinesOutput,
705
+ ];
706
+ var PutBandwidthRateLimitSchedule = [
707
+ 9,
708
+ n0,
709
+ _PBRLS,
710
+ 2,
711
+ () => PutBandwidthRateLimitScheduleInput,
712
+ () => PutBandwidthRateLimitScheduleOutput,
713
+ ];
714
+ var PutHypervisorPropertyMappings = [
715
+ 9,
716
+ n0,
717
+ _PHPM,
718
+ 2,
719
+ () => PutHypervisorPropertyMappingsInput,
720
+ () => PutHypervisorPropertyMappingsOutput,
721
+ ];
722
+ var PutMaintenanceStartTime = [
723
+ 9,
724
+ n0,
725
+ _PMST,
726
+ 0,
727
+ () => PutMaintenanceStartTimeInput,
728
+ () => PutMaintenanceStartTimeOutput,
729
+ ];
730
+ var StartVirtualMachinesMetadataSync = [
731
+ 9,
732
+ n0,
733
+ _SVMMS,
734
+ 0,
735
+ () => StartVirtualMachinesMetadataSyncInput,
736
+ () => StartVirtualMachinesMetadataSyncOutput,
737
+ ];
738
+ var TagResource = [9, n0, _TR, 0, () => TagResourceInput, () => TagResourceOutput];
739
+ var TestHypervisorConfiguration = [
740
+ 9,
741
+ n0,
742
+ _THC,
743
+ 0,
744
+ () => TestHypervisorConfigurationInput,
745
+ () => TestHypervisorConfigurationOutput,
746
+ ];
747
+ var UntagResource = [9, n0, _UR, 0, () => UntagResourceInput, () => UntagResourceOutput];
748
+ var UpdateGatewayInformation = [
749
+ 9,
750
+ n0,
751
+ _UGI,
752
+ 0,
753
+ () => UpdateGatewayInformationInput,
754
+ () => UpdateGatewayInformationOutput,
755
+ ];
756
+ var UpdateGatewaySoftwareNow = [
757
+ 9,
758
+ n0,
759
+ _UGSN,
760
+ 0,
761
+ () => UpdateGatewaySoftwareNowInput,
762
+ () => UpdateGatewaySoftwareNowOutput,
763
+ ];
764
+ var UpdateHypervisor = [
765
+ 9,
766
+ n0,
767
+ _UH,
768
+ 0,
769
+ () => UpdateHypervisorInput,
770
+ () => UpdateHypervisorOutput,
771
+ ];
937
772
 
938
773
  class AssociateGatewayToServerCommand extends smithyClient.Command
939
774
  .classBuilder()
940
775
  .ep(commonParams)
941
776
  .m(function (Command, cs, config, o) {
942
- return [
943
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
944
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
945
- ];
777
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
946
778
  })
947
779
  .s("BackupOnPremises_v20210101", "AssociateGatewayToServer", {})
948
780
  .n("BackupGatewayClient", "AssociateGatewayToServerCommand")
949
- .f(void 0, void 0)
950
- .ser(se_AssociateGatewayToServerCommand)
951
- .de(de_AssociateGatewayToServerCommand)
781
+ .sc(AssociateGatewayToServer)
952
782
  .build() {
953
783
  }
954
784
 
@@ -956,16 +786,11 @@ class CreateGatewayCommand extends smithyClient.Command
956
786
  .classBuilder()
957
787
  .ep(commonParams)
958
788
  .m(function (Command, cs, config, o) {
959
- return [
960
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
961
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
962
- ];
789
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
963
790
  })
964
791
  .s("BackupOnPremises_v20210101", "CreateGateway", {})
965
792
  .n("BackupGatewayClient", "CreateGatewayCommand")
966
- .f(void 0, void 0)
967
- .ser(se_CreateGatewayCommand)
968
- .de(de_CreateGatewayCommand)
793
+ .sc(CreateGateway)
969
794
  .build() {
970
795
  }
971
796
 
@@ -973,16 +798,11 @@ class DeleteGatewayCommand extends smithyClient.Command
973
798
  .classBuilder()
974
799
  .ep(commonParams)
975
800
  .m(function (Command, cs, config, o) {
976
- return [
977
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
978
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
979
- ];
801
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
980
802
  })
981
803
  .s("BackupOnPremises_v20210101", "DeleteGateway", {})
982
804
  .n("BackupGatewayClient", "DeleteGatewayCommand")
983
- .f(void 0, void 0)
984
- .ser(se_DeleteGatewayCommand)
985
- .de(de_DeleteGatewayCommand)
805
+ .sc(DeleteGateway)
986
806
  .build() {
987
807
  }
988
808
 
@@ -990,16 +810,11 @@ class DeleteHypervisorCommand extends smithyClient.Command
990
810
  .classBuilder()
991
811
  .ep(commonParams)
992
812
  .m(function (Command, cs, config, o) {
993
- return [
994
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
995
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
996
- ];
813
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
997
814
  })
998
815
  .s("BackupOnPremises_v20210101", "DeleteHypervisor", {})
999
816
  .n("BackupGatewayClient", "DeleteHypervisorCommand")
1000
- .f(void 0, void 0)
1001
- .ser(se_DeleteHypervisorCommand)
1002
- .de(de_DeleteHypervisorCommand)
817
+ .sc(DeleteHypervisor)
1003
818
  .build() {
1004
819
  }
1005
820
 
@@ -1007,16 +822,11 @@ class DisassociateGatewayFromServerCommand extends smithyClient.Command
1007
822
  .classBuilder()
1008
823
  .ep(commonParams)
1009
824
  .m(function (Command, cs, config, o) {
1010
- return [
1011
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1012
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1013
- ];
825
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1014
826
  })
1015
827
  .s("BackupOnPremises_v20210101", "DisassociateGatewayFromServer", {})
1016
828
  .n("BackupGatewayClient", "DisassociateGatewayFromServerCommand")
1017
- .f(void 0, void 0)
1018
- .ser(se_DisassociateGatewayFromServerCommand)
1019
- .de(de_DisassociateGatewayFromServerCommand)
829
+ .sc(DisassociateGatewayFromServer)
1020
830
  .build() {
1021
831
  }
1022
832
 
@@ -1024,16 +834,11 @@ class GetBandwidthRateLimitScheduleCommand extends smithyClient.Command
1024
834
  .classBuilder()
1025
835
  .ep(commonParams)
1026
836
  .m(function (Command, cs, config, o) {
1027
- return [
1028
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1029
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1030
- ];
837
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1031
838
  })
1032
839
  .s("BackupOnPremises_v20210101", "GetBandwidthRateLimitSchedule", {})
1033
840
  .n("BackupGatewayClient", "GetBandwidthRateLimitScheduleCommand")
1034
- .f(void 0, void 0)
1035
- .ser(se_GetBandwidthRateLimitScheduleCommand)
1036
- .de(de_GetBandwidthRateLimitScheduleCommand)
841
+ .sc(GetBandwidthRateLimitSchedule)
1037
842
  .build() {
1038
843
  }
1039
844
 
@@ -1041,16 +846,11 @@ class GetGatewayCommand extends smithyClient.Command
1041
846
  .classBuilder()
1042
847
  .ep(commonParams)
1043
848
  .m(function (Command, cs, config, o) {
1044
- return [
1045
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1046
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1047
- ];
849
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1048
850
  })
1049
851
  .s("BackupOnPremises_v20210101", "GetGateway", {})
1050
852
  .n("BackupGatewayClient", "GetGatewayCommand")
1051
- .f(void 0, void 0)
1052
- .ser(se_GetGatewayCommand)
1053
- .de(de_GetGatewayCommand)
853
+ .sc(GetGateway)
1054
854
  .build() {
1055
855
  }
1056
856
 
@@ -1058,16 +858,11 @@ class GetHypervisorCommand extends smithyClient.Command
1058
858
  .classBuilder()
1059
859
  .ep(commonParams)
1060
860
  .m(function (Command, cs, config, o) {
1061
- return [
1062
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1063
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1064
- ];
861
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1065
862
  })
1066
863
  .s("BackupOnPremises_v20210101", "GetHypervisor", {})
1067
864
  .n("BackupGatewayClient", "GetHypervisorCommand")
1068
- .f(void 0, void 0)
1069
- .ser(se_GetHypervisorCommand)
1070
- .de(de_GetHypervisorCommand)
865
+ .sc(GetHypervisor)
1071
866
  .build() {
1072
867
  }
1073
868
 
@@ -1075,16 +870,11 @@ class GetHypervisorPropertyMappingsCommand extends smithyClient.Command
1075
870
  .classBuilder()
1076
871
  .ep(commonParams)
1077
872
  .m(function (Command, cs, config, o) {
1078
- return [
1079
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1080
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1081
- ];
873
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1082
874
  })
1083
875
  .s("BackupOnPremises_v20210101", "GetHypervisorPropertyMappings", {})
1084
876
  .n("BackupGatewayClient", "GetHypervisorPropertyMappingsCommand")
1085
- .f(void 0, void 0)
1086
- .ser(se_GetHypervisorPropertyMappingsCommand)
1087
- .de(de_GetHypervisorPropertyMappingsCommand)
877
+ .sc(GetHypervisorPropertyMappings)
1088
878
  .build() {
1089
879
  }
1090
880
 
@@ -1092,16 +882,11 @@ class GetVirtualMachineCommand extends smithyClient.Command
1092
882
  .classBuilder()
1093
883
  .ep(commonParams)
1094
884
  .m(function (Command, cs, config, o) {
1095
- return [
1096
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1097
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1098
- ];
885
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1099
886
  })
1100
887
  .s("BackupOnPremises_v20210101", "GetVirtualMachine", {})
1101
888
  .n("BackupGatewayClient", "GetVirtualMachineCommand")
1102
- .f(void 0, void 0)
1103
- .ser(se_GetVirtualMachineCommand)
1104
- .de(de_GetVirtualMachineCommand)
889
+ .sc(GetVirtualMachine)
1105
890
  .build() {
1106
891
  }
1107
892
 
@@ -1109,16 +894,11 @@ class ImportHypervisorConfigurationCommand extends smithyClient.Command
1109
894
  .classBuilder()
1110
895
  .ep(commonParams)
1111
896
  .m(function (Command, cs, config, o) {
1112
- return [
1113
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1114
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1115
- ];
897
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1116
898
  })
1117
899
  .s("BackupOnPremises_v20210101", "ImportHypervisorConfiguration", {})
1118
900
  .n("BackupGatewayClient", "ImportHypervisorConfigurationCommand")
1119
- .f(ImportHypervisorConfigurationInputFilterSensitiveLog, void 0)
1120
- .ser(se_ImportHypervisorConfigurationCommand)
1121
- .de(de_ImportHypervisorConfigurationCommand)
901
+ .sc(ImportHypervisorConfiguration)
1122
902
  .build() {
1123
903
  }
1124
904
 
@@ -1126,16 +906,11 @@ class ListGatewaysCommand extends smithyClient.Command
1126
906
  .classBuilder()
1127
907
  .ep(commonParams)
1128
908
  .m(function (Command, cs, config, o) {
1129
- return [
1130
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1131
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1132
- ];
909
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1133
910
  })
1134
911
  .s("BackupOnPremises_v20210101", "ListGateways", {})
1135
912
  .n("BackupGatewayClient", "ListGatewaysCommand")
1136
- .f(void 0, void 0)
1137
- .ser(se_ListGatewaysCommand)
1138
- .de(de_ListGatewaysCommand)
913
+ .sc(ListGateways)
1139
914
  .build() {
1140
915
  }
1141
916
 
@@ -1143,16 +918,11 @@ class ListHypervisorsCommand extends smithyClient.Command
1143
918
  .classBuilder()
1144
919
  .ep(commonParams)
1145
920
  .m(function (Command, cs, config, o) {
1146
- return [
1147
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1148
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1149
- ];
921
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1150
922
  })
1151
923
  .s("BackupOnPremises_v20210101", "ListHypervisors", {})
1152
924
  .n("BackupGatewayClient", "ListHypervisorsCommand")
1153
- .f(void 0, void 0)
1154
- .ser(se_ListHypervisorsCommand)
1155
- .de(de_ListHypervisorsCommand)
925
+ .sc(ListHypervisors)
1156
926
  .build() {
1157
927
  }
1158
928
 
@@ -1160,16 +930,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1160
930
  .classBuilder()
1161
931
  .ep(commonParams)
1162
932
  .m(function (Command, cs, config, o) {
1163
- return [
1164
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1165
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1166
- ];
933
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1167
934
  })
1168
935
  .s("BackupOnPremises_v20210101", "ListTagsForResource", {})
1169
936
  .n("BackupGatewayClient", "ListTagsForResourceCommand")
1170
- .f(void 0, void 0)
1171
- .ser(se_ListTagsForResourceCommand)
1172
- .de(de_ListTagsForResourceCommand)
937
+ .sc(ListTagsForResource)
1173
938
  .build() {
1174
939
  }
1175
940
 
@@ -1177,16 +942,11 @@ class ListVirtualMachinesCommand extends smithyClient.Command
1177
942
  .classBuilder()
1178
943
  .ep(commonParams)
1179
944
  .m(function (Command, cs, config, o) {
1180
- return [
1181
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1182
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1183
- ];
945
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1184
946
  })
1185
947
  .s("BackupOnPremises_v20210101", "ListVirtualMachines", {})
1186
948
  .n("BackupGatewayClient", "ListVirtualMachinesCommand")
1187
- .f(void 0, void 0)
1188
- .ser(se_ListVirtualMachinesCommand)
1189
- .de(de_ListVirtualMachinesCommand)
949
+ .sc(ListVirtualMachines)
1190
950
  .build() {
1191
951
  }
1192
952
 
@@ -1194,16 +954,11 @@ class PutBandwidthRateLimitScheduleCommand extends smithyClient.Command
1194
954
  .classBuilder()
1195
955
  .ep(commonParams)
1196
956
  .m(function (Command, cs, config, o) {
1197
- return [
1198
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1199
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1200
- ];
957
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1201
958
  })
1202
959
  .s("BackupOnPremises_v20210101", "PutBandwidthRateLimitSchedule", {})
1203
960
  .n("BackupGatewayClient", "PutBandwidthRateLimitScheduleCommand")
1204
- .f(void 0, void 0)
1205
- .ser(se_PutBandwidthRateLimitScheduleCommand)
1206
- .de(de_PutBandwidthRateLimitScheduleCommand)
961
+ .sc(PutBandwidthRateLimitSchedule)
1207
962
  .build() {
1208
963
  }
1209
964
 
@@ -1211,16 +966,11 @@ class PutHypervisorPropertyMappingsCommand extends smithyClient.Command
1211
966
  .classBuilder()
1212
967
  .ep(commonParams)
1213
968
  .m(function (Command, cs, config, o) {
1214
- return [
1215
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1216
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1217
- ];
969
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1218
970
  })
1219
971
  .s("BackupOnPremises_v20210101", "PutHypervisorPropertyMappings", {})
1220
972
  .n("BackupGatewayClient", "PutHypervisorPropertyMappingsCommand")
1221
- .f(void 0, void 0)
1222
- .ser(se_PutHypervisorPropertyMappingsCommand)
1223
- .de(de_PutHypervisorPropertyMappingsCommand)
973
+ .sc(PutHypervisorPropertyMappings)
1224
974
  .build() {
1225
975
  }
1226
976
 
@@ -1228,16 +978,11 @@ class PutMaintenanceStartTimeCommand extends smithyClient.Command
1228
978
  .classBuilder()
1229
979
  .ep(commonParams)
1230
980
  .m(function (Command, cs, config, o) {
1231
- return [
1232
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1233
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1234
- ];
981
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1235
982
  })
1236
983
  .s("BackupOnPremises_v20210101", "PutMaintenanceStartTime", {})
1237
984
  .n("BackupGatewayClient", "PutMaintenanceStartTimeCommand")
1238
- .f(void 0, void 0)
1239
- .ser(se_PutMaintenanceStartTimeCommand)
1240
- .de(de_PutMaintenanceStartTimeCommand)
985
+ .sc(PutMaintenanceStartTime)
1241
986
  .build() {
1242
987
  }
1243
988
 
@@ -1245,16 +990,11 @@ class StartVirtualMachinesMetadataSyncCommand extends smithyClient.Command
1245
990
  .classBuilder()
1246
991
  .ep(commonParams)
1247
992
  .m(function (Command, cs, config, o) {
1248
- return [
1249
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1250
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1251
- ];
993
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1252
994
  })
1253
995
  .s("BackupOnPremises_v20210101", "StartVirtualMachinesMetadataSync", {})
1254
996
  .n("BackupGatewayClient", "StartVirtualMachinesMetadataSyncCommand")
1255
- .f(void 0, void 0)
1256
- .ser(se_StartVirtualMachinesMetadataSyncCommand)
1257
- .de(de_StartVirtualMachinesMetadataSyncCommand)
997
+ .sc(StartVirtualMachinesMetadataSync)
1258
998
  .build() {
1259
999
  }
1260
1000
 
@@ -1262,16 +1002,11 @@ class TagResourceCommand extends smithyClient.Command
1262
1002
  .classBuilder()
1263
1003
  .ep(commonParams)
1264
1004
  .m(function (Command, cs, config, o) {
1265
- return [
1266
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1267
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1268
- ];
1005
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1269
1006
  })
1270
1007
  .s("BackupOnPremises_v20210101", "TagResource", {})
1271
1008
  .n("BackupGatewayClient", "TagResourceCommand")
1272
- .f(void 0, void 0)
1273
- .ser(se_TagResourceCommand)
1274
- .de(de_TagResourceCommand)
1009
+ .sc(TagResource)
1275
1010
  .build() {
1276
1011
  }
1277
1012
 
@@ -1279,16 +1014,11 @@ class TestHypervisorConfigurationCommand extends smithyClient.Command
1279
1014
  .classBuilder()
1280
1015
  .ep(commonParams)
1281
1016
  .m(function (Command, cs, config, o) {
1282
- return [
1283
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1284
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1285
- ];
1017
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1286
1018
  })
1287
1019
  .s("BackupOnPremises_v20210101", "TestHypervisorConfiguration", {})
1288
1020
  .n("BackupGatewayClient", "TestHypervisorConfigurationCommand")
1289
- .f(TestHypervisorConfigurationInputFilterSensitiveLog, void 0)
1290
- .ser(se_TestHypervisorConfigurationCommand)
1291
- .de(de_TestHypervisorConfigurationCommand)
1021
+ .sc(TestHypervisorConfiguration)
1292
1022
  .build() {
1293
1023
  }
1294
1024
 
@@ -1296,16 +1026,11 @@ class UntagResourceCommand extends smithyClient.Command
1296
1026
  .classBuilder()
1297
1027
  .ep(commonParams)
1298
1028
  .m(function (Command, cs, config, o) {
1299
- return [
1300
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1301
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1302
- ];
1029
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1303
1030
  })
1304
1031
  .s("BackupOnPremises_v20210101", "UntagResource", {})
1305
1032
  .n("BackupGatewayClient", "UntagResourceCommand")
1306
- .f(void 0, void 0)
1307
- .ser(se_UntagResourceCommand)
1308
- .de(de_UntagResourceCommand)
1033
+ .sc(UntagResource)
1309
1034
  .build() {
1310
1035
  }
1311
1036
 
@@ -1313,16 +1038,11 @@ class UpdateGatewayInformationCommand extends smithyClient.Command
1313
1038
  .classBuilder()
1314
1039
  .ep(commonParams)
1315
1040
  .m(function (Command, cs, config, o) {
1316
- return [
1317
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1318
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1319
- ];
1041
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1320
1042
  })
1321
1043
  .s("BackupOnPremises_v20210101", "UpdateGatewayInformation", {})
1322
1044
  .n("BackupGatewayClient", "UpdateGatewayInformationCommand")
1323
- .f(void 0, void 0)
1324
- .ser(se_UpdateGatewayInformationCommand)
1325
- .de(de_UpdateGatewayInformationCommand)
1045
+ .sc(UpdateGatewayInformation)
1326
1046
  .build() {
1327
1047
  }
1328
1048
 
@@ -1330,16 +1050,11 @@ class UpdateGatewaySoftwareNowCommand extends smithyClient.Command
1330
1050
  .classBuilder()
1331
1051
  .ep(commonParams)
1332
1052
  .m(function (Command, cs, config, o) {
1333
- return [
1334
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1335
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1336
- ];
1053
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1337
1054
  })
1338
1055
  .s("BackupOnPremises_v20210101", "UpdateGatewaySoftwareNow", {})
1339
1056
  .n("BackupGatewayClient", "UpdateGatewaySoftwareNowCommand")
1340
- .f(void 0, void 0)
1341
- .ser(se_UpdateGatewaySoftwareNowCommand)
1342
- .de(de_UpdateGatewaySoftwareNowCommand)
1057
+ .sc(UpdateGatewaySoftwareNow)
1343
1058
  .build() {
1344
1059
  }
1345
1060
 
@@ -1347,16 +1062,11 @@ class UpdateHypervisorCommand extends smithyClient.Command
1347
1062
  .classBuilder()
1348
1063
  .ep(commonParams)
1349
1064
  .m(function (Command, cs, config, o) {
1350
- return [
1351
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1352
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1353
- ];
1065
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1354
1066
  })
1355
1067
  .s("BackupOnPremises_v20210101", "UpdateHypervisor", {})
1356
1068
  .n("BackupGatewayClient", "UpdateHypervisorCommand")
1357
- .f(UpdateHypervisorInputFilterSensitiveLog, void 0)
1358
- .ser(se_UpdateHypervisorCommand)
1359
- .de(de_UpdateHypervisorCommand)
1069
+ .sc(UpdateHypervisor)
1360
1070
  .build() {
1361
1071
  }
1362
1072
 
@@ -1405,12 +1115,12 @@ Object.defineProperty(exports, "__Client", {
1405
1115
  enumerable: true,
1406
1116
  get: function () { return smithyClient.Client; }
1407
1117
  });
1408
- exports.AccessDeniedException = AccessDeniedException;
1118
+ exports.AccessDeniedException = AccessDeniedException$1;
1409
1119
  exports.AssociateGatewayToServerCommand = AssociateGatewayToServerCommand;
1410
1120
  exports.BackupGateway = BackupGateway;
1411
1121
  exports.BackupGatewayClient = BackupGatewayClient;
1412
- exports.BackupGatewayServiceException = BackupGatewayServiceException;
1413
- exports.ConflictException = ConflictException;
1122
+ exports.BackupGatewayServiceException = BackupGatewayServiceException$1;
1123
+ exports.ConflictException = ConflictException$1;
1414
1124
  exports.CreateGatewayCommand = CreateGatewayCommand;
1415
1125
  exports.DeleteGatewayCommand = DeleteGatewayCommand;
1416
1126
  exports.DeleteHypervisorCommand = DeleteHypervisorCommand;
@@ -1423,8 +1133,7 @@ exports.GetHypervisorPropertyMappingsCommand = GetHypervisorPropertyMappingsComm
1423
1133
  exports.GetVirtualMachineCommand = GetVirtualMachineCommand;
1424
1134
  exports.HypervisorState = HypervisorState;
1425
1135
  exports.ImportHypervisorConfigurationCommand = ImportHypervisorConfigurationCommand;
1426
- exports.ImportHypervisorConfigurationInputFilterSensitiveLog = ImportHypervisorConfigurationInputFilterSensitiveLog;
1427
- exports.InternalServerException = InternalServerException;
1136
+ exports.InternalServerException = InternalServerException$1;
1428
1137
  exports.ListGatewaysCommand = ListGatewaysCommand;
1429
1138
  exports.ListHypervisorsCommand = ListHypervisorsCommand;
1430
1139
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
@@ -1432,19 +1141,17 @@ exports.ListVirtualMachinesCommand = ListVirtualMachinesCommand;
1432
1141
  exports.PutBandwidthRateLimitScheduleCommand = PutBandwidthRateLimitScheduleCommand;
1433
1142
  exports.PutHypervisorPropertyMappingsCommand = PutHypervisorPropertyMappingsCommand;
1434
1143
  exports.PutMaintenanceStartTimeCommand = PutMaintenanceStartTimeCommand;
1435
- exports.ResourceNotFoundException = ResourceNotFoundException;
1144
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1436
1145
  exports.StartVirtualMachinesMetadataSyncCommand = StartVirtualMachinesMetadataSyncCommand;
1437
1146
  exports.SyncMetadataStatus = SyncMetadataStatus;
1438
1147
  exports.TagResourceCommand = TagResourceCommand;
1439
1148
  exports.TestHypervisorConfigurationCommand = TestHypervisorConfigurationCommand;
1440
- exports.TestHypervisorConfigurationInputFilterSensitiveLog = TestHypervisorConfigurationInputFilterSensitiveLog;
1441
- exports.ThrottlingException = ThrottlingException;
1149
+ exports.ThrottlingException = ThrottlingException$1;
1442
1150
  exports.UntagResourceCommand = UntagResourceCommand;
1443
1151
  exports.UpdateGatewayInformationCommand = UpdateGatewayInformationCommand;
1444
1152
  exports.UpdateGatewaySoftwareNowCommand = UpdateGatewaySoftwareNowCommand;
1445
1153
  exports.UpdateHypervisorCommand = UpdateHypervisorCommand;
1446
- exports.UpdateHypervisorInputFilterSensitiveLog = UpdateHypervisorInputFilterSensitiveLog;
1447
- exports.ValidationException = ValidationException;
1154
+ exports.ValidationException = ValidationException$1;
1448
1155
  exports.paginateListGateways = paginateListGateways;
1449
1156
  exports.paginateListHypervisors = paginateListHypervisors;
1450
1157
  exports.paginateListVirtualMachines = paginateListVirtualMachines;