@aws-sdk/client-backup-gateway 3.231.0 → 3.232.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/BackupGateway.js +90 -0
- package/dist-cjs/commands/GetBandwidthRateLimitScheduleCommand.js +46 -0
- package/dist-cjs/commands/GetHypervisorCommand.js +46 -0
- package/dist-cjs/commands/GetHypervisorPropertyMappingsCommand.js +46 -0
- package/dist-cjs/commands/PutBandwidthRateLimitScheduleCommand.js +46 -0
- package/dist-cjs/commands/PutHypervisorPropertyMappingsCommand.js +46 -0
- package/dist-cjs/commands/StartVirtualMachinesMetadataSyncCommand.js +46 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +1 -10
- package/dist-cjs/models/models_0.js +78 -6
- package/dist-cjs/protocols/Aws_json1_0.js +538 -1
- package/dist-es/BackupGateway.js +90 -0
- package/dist-es/commands/GetBandwidthRateLimitScheduleCommand.js +42 -0
- package/dist-es/commands/GetHypervisorCommand.js +42 -0
- package/dist-es/commands/GetHypervisorPropertyMappingsCommand.js +42 -0
- package/dist-es/commands/PutBandwidthRateLimitScheduleCommand.js +42 -0
- package/dist-es/commands/PutHypervisorPropertyMappingsCommand.js +42 -0
- package/dist-es/commands/StartVirtualMachinesMetadataSyncCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +1 -10
- package/dist-es/models/models_0.js +60 -4
- package/dist-es/protocols/Aws_json1_0.js +526 -1
- package/dist-types/BackupGateway.d.ts +54 -0
- package/dist-types/BackupGatewayClient.d.ts +8 -2
- package/dist-types/commands/GetBandwidthRateLimitScheduleCommand.d.ts +40 -0
- package/dist-types/commands/GetHypervisorCommand.d.ts +39 -0
- package/dist-types/commands/GetHypervisorPropertyMappingsCommand.d.ts +39 -0
- package/dist-types/commands/PutBandwidthRateLimitScheduleCommand.d.ts +40 -0
- package/dist-types/commands/PutHypervisorPropertyMappingsCommand.d.ts +39 -0
- package/dist-types/commands/StartVirtualMachinesMetadataSyncCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +355 -22
- package/dist-types/protocols/Aws_json1_0.d.ts +18 -0
- package/dist-types/ts3.4/BackupGateway.d.ts +102 -0
- package/dist-types/ts3.4/BackupGatewayClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetBandwidthRateLimitScheduleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetHypervisorCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetHypervisorPropertyMappingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutBandwidthRateLimitScheduleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutHypervisorPropertyMappingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartVirtualMachinesMetadataSyncCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +142 -15
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +72 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_json1_0UpdateHypervisorCommand = exports.deserializeAws_json1_0UpdateGatewaySoftwareNowCommand = exports.deserializeAws_json1_0UpdateGatewayInformationCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TestHypervisorConfigurationCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0PutMaintenanceStartTimeCommand = exports.deserializeAws_json1_0ListVirtualMachinesCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListHypervisorsCommand = exports.deserializeAws_json1_0ListGatewaysCommand = exports.deserializeAws_json1_0ImportHypervisorConfigurationCommand = exports.deserializeAws_json1_0GetVirtualMachineCommand = exports.deserializeAws_json1_0GetGatewayCommand = exports.deserializeAws_json1_0DisassociateGatewayFromServerCommand = exports.deserializeAws_json1_0DeleteHypervisorCommand = exports.deserializeAws_json1_0DeleteGatewayCommand = exports.deserializeAws_json1_0CreateGatewayCommand = exports.deserializeAws_json1_0AssociateGatewayToServerCommand = exports.serializeAws_json1_0UpdateHypervisorCommand = exports.serializeAws_json1_0UpdateGatewaySoftwareNowCommand = exports.serializeAws_json1_0UpdateGatewayInformationCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TestHypervisorConfigurationCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0PutMaintenanceStartTimeCommand = exports.serializeAws_json1_0ListVirtualMachinesCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListHypervisorsCommand = exports.serializeAws_json1_0ListGatewaysCommand = exports.serializeAws_json1_0ImportHypervisorConfigurationCommand = exports.serializeAws_json1_0GetVirtualMachineCommand = exports.serializeAws_json1_0GetGatewayCommand = exports.serializeAws_json1_0DisassociateGatewayFromServerCommand = exports.serializeAws_json1_0DeleteHypervisorCommand = exports.serializeAws_json1_0DeleteGatewayCommand = exports.serializeAws_json1_0CreateGatewayCommand = exports.serializeAws_json1_0AssociateGatewayToServerCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_0UpdateHypervisorCommand = exports.deserializeAws_json1_0UpdateGatewaySoftwareNowCommand = exports.deserializeAws_json1_0UpdateGatewayInformationCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TestHypervisorConfigurationCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0StartVirtualMachinesMetadataSyncCommand = exports.deserializeAws_json1_0PutMaintenanceStartTimeCommand = exports.deserializeAws_json1_0PutHypervisorPropertyMappingsCommand = exports.deserializeAws_json1_0PutBandwidthRateLimitScheduleCommand = exports.deserializeAws_json1_0ListVirtualMachinesCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListHypervisorsCommand = exports.deserializeAws_json1_0ListGatewaysCommand = exports.deserializeAws_json1_0ImportHypervisorConfigurationCommand = exports.deserializeAws_json1_0GetVirtualMachineCommand = exports.deserializeAws_json1_0GetHypervisorPropertyMappingsCommand = exports.deserializeAws_json1_0GetHypervisorCommand = exports.deserializeAws_json1_0GetGatewayCommand = exports.deserializeAws_json1_0GetBandwidthRateLimitScheduleCommand = exports.deserializeAws_json1_0DisassociateGatewayFromServerCommand = exports.deserializeAws_json1_0DeleteHypervisorCommand = exports.deserializeAws_json1_0DeleteGatewayCommand = exports.deserializeAws_json1_0CreateGatewayCommand = exports.deserializeAws_json1_0AssociateGatewayToServerCommand = exports.serializeAws_json1_0UpdateHypervisorCommand = exports.serializeAws_json1_0UpdateGatewaySoftwareNowCommand = exports.serializeAws_json1_0UpdateGatewayInformationCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TestHypervisorConfigurationCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0StartVirtualMachinesMetadataSyncCommand = exports.serializeAws_json1_0PutMaintenanceStartTimeCommand = exports.serializeAws_json1_0PutHypervisorPropertyMappingsCommand = exports.serializeAws_json1_0PutBandwidthRateLimitScheduleCommand = exports.serializeAws_json1_0ListVirtualMachinesCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListHypervisorsCommand = exports.serializeAws_json1_0ListGatewaysCommand = exports.serializeAws_json1_0ImportHypervisorConfigurationCommand = exports.serializeAws_json1_0GetVirtualMachineCommand = exports.serializeAws_json1_0GetHypervisorPropertyMappingsCommand = exports.serializeAws_json1_0GetHypervisorCommand = exports.serializeAws_json1_0GetGatewayCommand = exports.serializeAws_json1_0GetBandwidthRateLimitScheduleCommand = exports.serializeAws_json1_0DisassociateGatewayFromServerCommand = exports.serializeAws_json1_0DeleteHypervisorCommand = exports.serializeAws_json1_0DeleteGatewayCommand = exports.serializeAws_json1_0CreateGatewayCommand = exports.serializeAws_json1_0AssociateGatewayToServerCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const BackupGatewayServiceException_1 = require("../models/BackupGatewayServiceException");
|
|
@@ -55,6 +55,16 @@ const serializeAws_json1_0DisassociateGatewayFromServerCommand = async (input, c
|
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
57
|
exports.serializeAws_json1_0DisassociateGatewayFromServerCommand = serializeAws_json1_0DisassociateGatewayFromServerCommand;
|
|
58
|
+
const serializeAws_json1_0GetBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
59
|
+
const headers = {
|
|
60
|
+
"content-type": "application/x-amz-json-1.0",
|
|
61
|
+
"x-amz-target": "BackupOnPremises_v20210101.GetBandwidthRateLimitSchedule",
|
|
62
|
+
};
|
|
63
|
+
let body;
|
|
64
|
+
body = JSON.stringify(serializeAws_json1_0GetBandwidthRateLimitScheduleInput(input, context));
|
|
65
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
+
};
|
|
67
|
+
exports.serializeAws_json1_0GetBandwidthRateLimitScheduleCommand = serializeAws_json1_0GetBandwidthRateLimitScheduleCommand;
|
|
58
68
|
const serializeAws_json1_0GetGatewayCommand = async (input, context) => {
|
|
59
69
|
const headers = {
|
|
60
70
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -65,6 +75,26 @@ const serializeAws_json1_0GetGatewayCommand = async (input, context) => {
|
|
|
65
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
76
|
};
|
|
67
77
|
exports.serializeAws_json1_0GetGatewayCommand = serializeAws_json1_0GetGatewayCommand;
|
|
78
|
+
const serializeAws_json1_0GetHypervisorCommand = async (input, context) => {
|
|
79
|
+
const headers = {
|
|
80
|
+
"content-type": "application/x-amz-json-1.0",
|
|
81
|
+
"x-amz-target": "BackupOnPremises_v20210101.GetHypervisor",
|
|
82
|
+
};
|
|
83
|
+
let body;
|
|
84
|
+
body = JSON.stringify(serializeAws_json1_0GetHypervisorInput(input, context));
|
|
85
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
+
};
|
|
87
|
+
exports.serializeAws_json1_0GetHypervisorCommand = serializeAws_json1_0GetHypervisorCommand;
|
|
88
|
+
const serializeAws_json1_0GetHypervisorPropertyMappingsCommand = async (input, context) => {
|
|
89
|
+
const headers = {
|
|
90
|
+
"content-type": "application/x-amz-json-1.0",
|
|
91
|
+
"x-amz-target": "BackupOnPremises_v20210101.GetHypervisorPropertyMappings",
|
|
92
|
+
};
|
|
93
|
+
let body;
|
|
94
|
+
body = JSON.stringify(serializeAws_json1_0GetHypervisorPropertyMappingsInput(input, context));
|
|
95
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
+
};
|
|
97
|
+
exports.serializeAws_json1_0GetHypervisorPropertyMappingsCommand = serializeAws_json1_0GetHypervisorPropertyMappingsCommand;
|
|
68
98
|
const serializeAws_json1_0GetVirtualMachineCommand = async (input, context) => {
|
|
69
99
|
const headers = {
|
|
70
100
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -125,6 +155,26 @@ const serializeAws_json1_0ListVirtualMachinesCommand = async (input, context) =>
|
|
|
125
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
156
|
};
|
|
127
157
|
exports.serializeAws_json1_0ListVirtualMachinesCommand = serializeAws_json1_0ListVirtualMachinesCommand;
|
|
158
|
+
const serializeAws_json1_0PutBandwidthRateLimitScheduleCommand = async (input, context) => {
|
|
159
|
+
const headers = {
|
|
160
|
+
"content-type": "application/x-amz-json-1.0",
|
|
161
|
+
"x-amz-target": "BackupOnPremises_v20210101.PutBandwidthRateLimitSchedule",
|
|
162
|
+
};
|
|
163
|
+
let body;
|
|
164
|
+
body = JSON.stringify(serializeAws_json1_0PutBandwidthRateLimitScheduleInput(input, context));
|
|
165
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
+
};
|
|
167
|
+
exports.serializeAws_json1_0PutBandwidthRateLimitScheduleCommand = serializeAws_json1_0PutBandwidthRateLimitScheduleCommand;
|
|
168
|
+
const serializeAws_json1_0PutHypervisorPropertyMappingsCommand = async (input, context) => {
|
|
169
|
+
const headers = {
|
|
170
|
+
"content-type": "application/x-amz-json-1.0",
|
|
171
|
+
"x-amz-target": "BackupOnPremises_v20210101.PutHypervisorPropertyMappings",
|
|
172
|
+
};
|
|
173
|
+
let body;
|
|
174
|
+
body = JSON.stringify(serializeAws_json1_0PutHypervisorPropertyMappingsInput(input, context));
|
|
175
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
+
};
|
|
177
|
+
exports.serializeAws_json1_0PutHypervisorPropertyMappingsCommand = serializeAws_json1_0PutHypervisorPropertyMappingsCommand;
|
|
128
178
|
const serializeAws_json1_0PutMaintenanceStartTimeCommand = async (input, context) => {
|
|
129
179
|
const headers = {
|
|
130
180
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -135,6 +185,16 @@ const serializeAws_json1_0PutMaintenanceStartTimeCommand = async (input, context
|
|
|
135
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
186
|
};
|
|
137
187
|
exports.serializeAws_json1_0PutMaintenanceStartTimeCommand = serializeAws_json1_0PutMaintenanceStartTimeCommand;
|
|
188
|
+
const serializeAws_json1_0StartVirtualMachinesMetadataSyncCommand = async (input, context) => {
|
|
189
|
+
const headers = {
|
|
190
|
+
"content-type": "application/x-amz-json-1.0",
|
|
191
|
+
"x-amz-target": "BackupOnPremises_v20210101.StartVirtualMachinesMetadataSync",
|
|
192
|
+
};
|
|
193
|
+
let body;
|
|
194
|
+
body = JSON.stringify(serializeAws_json1_0StartVirtualMachinesMetadataSyncInput(input, context));
|
|
195
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
|
+
};
|
|
197
|
+
exports.serializeAws_json1_0StartVirtualMachinesMetadataSyncCommand = serializeAws_json1_0StartVirtualMachinesMetadataSyncCommand;
|
|
138
198
|
const serializeAws_json1_0TagResourceCommand = async (input, context) => {
|
|
139
199
|
const headers = {
|
|
140
200
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -345,6 +405,9 @@ const deserializeAws_json1_0DeleteHypervisorCommandError = async (output, contex
|
|
|
345
405
|
case "AccessDeniedException":
|
|
346
406
|
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
347
407
|
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
408
|
+
case "ConflictException":
|
|
409
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
410
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
348
411
|
case "InternalServerException":
|
|
349
412
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
350
413
|
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -413,6 +476,49 @@ const deserializeAws_json1_0DisassociateGatewayFromServerCommandError = async (o
|
|
|
413
476
|
});
|
|
414
477
|
}
|
|
415
478
|
};
|
|
479
|
+
const deserializeAws_json1_0GetBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
480
|
+
if (output.statusCode >= 300) {
|
|
481
|
+
return deserializeAws_json1_0GetBandwidthRateLimitScheduleCommandError(output, context);
|
|
482
|
+
}
|
|
483
|
+
const data = await parseBody(output.body, context);
|
|
484
|
+
let contents = {};
|
|
485
|
+
contents = deserializeAws_json1_0GetBandwidthRateLimitScheduleOutput(data, context);
|
|
486
|
+
const response = {
|
|
487
|
+
$metadata: deserializeMetadata(output),
|
|
488
|
+
...contents,
|
|
489
|
+
};
|
|
490
|
+
return Promise.resolve(response);
|
|
491
|
+
};
|
|
492
|
+
exports.deserializeAws_json1_0GetBandwidthRateLimitScheduleCommand = deserializeAws_json1_0GetBandwidthRateLimitScheduleCommand;
|
|
493
|
+
const deserializeAws_json1_0GetBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
494
|
+
const parsedOutput = {
|
|
495
|
+
...output,
|
|
496
|
+
body: await parseErrorBody(output.body, context),
|
|
497
|
+
};
|
|
498
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
499
|
+
switch (errorCode) {
|
|
500
|
+
case "InternalServerException":
|
|
501
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
502
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
503
|
+
case "ResourceNotFoundException":
|
|
504
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
505
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
506
|
+
case "ThrottlingException":
|
|
507
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
508
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
509
|
+
case "ValidationException":
|
|
510
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
511
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
512
|
+
default:
|
|
513
|
+
const parsedBody = parsedOutput.body;
|
|
514
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
515
|
+
output,
|
|
516
|
+
parsedBody,
|
|
517
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
518
|
+
errorCode,
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
};
|
|
416
522
|
const deserializeAws_json1_0GetGatewayCommand = async (output, context) => {
|
|
417
523
|
if (output.statusCode >= 300) {
|
|
418
524
|
return deserializeAws_json1_0GetGatewayCommandError(output, context);
|
|
@@ -456,6 +562,92 @@ const deserializeAws_json1_0GetGatewayCommandError = async (output, context) =>
|
|
|
456
562
|
});
|
|
457
563
|
}
|
|
458
564
|
};
|
|
565
|
+
const deserializeAws_json1_0GetHypervisorCommand = async (output, context) => {
|
|
566
|
+
if (output.statusCode >= 300) {
|
|
567
|
+
return deserializeAws_json1_0GetHypervisorCommandError(output, context);
|
|
568
|
+
}
|
|
569
|
+
const data = await parseBody(output.body, context);
|
|
570
|
+
let contents = {};
|
|
571
|
+
contents = deserializeAws_json1_0GetHypervisorOutput(data, context);
|
|
572
|
+
const response = {
|
|
573
|
+
$metadata: deserializeMetadata(output),
|
|
574
|
+
...contents,
|
|
575
|
+
};
|
|
576
|
+
return Promise.resolve(response);
|
|
577
|
+
};
|
|
578
|
+
exports.deserializeAws_json1_0GetHypervisorCommand = deserializeAws_json1_0GetHypervisorCommand;
|
|
579
|
+
const deserializeAws_json1_0GetHypervisorCommandError = async (output, context) => {
|
|
580
|
+
const parsedOutput = {
|
|
581
|
+
...output,
|
|
582
|
+
body: await parseErrorBody(output.body, context),
|
|
583
|
+
};
|
|
584
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
|
+
switch (errorCode) {
|
|
586
|
+
case "InternalServerException":
|
|
587
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
588
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
589
|
+
case "ResourceNotFoundException":
|
|
590
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
591
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
592
|
+
case "ThrottlingException":
|
|
593
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
594
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
595
|
+
case "ValidationException":
|
|
596
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
597
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
598
|
+
default:
|
|
599
|
+
const parsedBody = parsedOutput.body;
|
|
600
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
601
|
+
output,
|
|
602
|
+
parsedBody,
|
|
603
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
604
|
+
errorCode,
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
const deserializeAws_json1_0GetHypervisorPropertyMappingsCommand = async (output, context) => {
|
|
609
|
+
if (output.statusCode >= 300) {
|
|
610
|
+
return deserializeAws_json1_0GetHypervisorPropertyMappingsCommandError(output, context);
|
|
611
|
+
}
|
|
612
|
+
const data = await parseBody(output.body, context);
|
|
613
|
+
let contents = {};
|
|
614
|
+
contents = deserializeAws_json1_0GetHypervisorPropertyMappingsOutput(data, context);
|
|
615
|
+
const response = {
|
|
616
|
+
$metadata: deserializeMetadata(output),
|
|
617
|
+
...contents,
|
|
618
|
+
};
|
|
619
|
+
return Promise.resolve(response);
|
|
620
|
+
};
|
|
621
|
+
exports.deserializeAws_json1_0GetHypervisorPropertyMappingsCommand = deserializeAws_json1_0GetHypervisorPropertyMappingsCommand;
|
|
622
|
+
const deserializeAws_json1_0GetHypervisorPropertyMappingsCommandError = async (output, context) => {
|
|
623
|
+
const parsedOutput = {
|
|
624
|
+
...output,
|
|
625
|
+
body: await parseErrorBody(output.body, context),
|
|
626
|
+
};
|
|
627
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
628
|
+
switch (errorCode) {
|
|
629
|
+
case "InternalServerException":
|
|
630
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
631
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
632
|
+
case "ResourceNotFoundException":
|
|
633
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
634
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
635
|
+
case "ThrottlingException":
|
|
636
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
637
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
638
|
+
case "ValidationException":
|
|
639
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
640
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
641
|
+
default:
|
|
642
|
+
const parsedBody = parsedOutput.body;
|
|
643
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
644
|
+
output,
|
|
645
|
+
parsedBody,
|
|
646
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
647
|
+
errorCode,
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
};
|
|
459
651
|
const deserializeAws_json1_0GetVirtualMachineCommand = async (output, context) => {
|
|
460
652
|
if (output.statusCode >= 300) {
|
|
461
653
|
return deserializeAws_json1_0GetVirtualMachineCommandError(output, context);
|
|
@@ -523,6 +715,9 @@ const deserializeAws_json1_0ImportHypervisorConfigurationCommandError = async (o
|
|
|
523
715
|
case "AccessDeniedException":
|
|
524
716
|
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
525
717
|
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
718
|
+
case "ConflictException":
|
|
719
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
720
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
526
721
|
case "InternalServerException":
|
|
527
722
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
528
723
|
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -705,6 +900,98 @@ const deserializeAws_json1_0ListVirtualMachinesCommandError = async (output, con
|
|
|
705
900
|
});
|
|
706
901
|
}
|
|
707
902
|
};
|
|
903
|
+
const deserializeAws_json1_0PutBandwidthRateLimitScheduleCommand = async (output, context) => {
|
|
904
|
+
if (output.statusCode >= 300) {
|
|
905
|
+
return deserializeAws_json1_0PutBandwidthRateLimitScheduleCommandError(output, context);
|
|
906
|
+
}
|
|
907
|
+
const data = await parseBody(output.body, context);
|
|
908
|
+
let contents = {};
|
|
909
|
+
contents = deserializeAws_json1_0PutBandwidthRateLimitScheduleOutput(data, context);
|
|
910
|
+
const response = {
|
|
911
|
+
$metadata: deserializeMetadata(output),
|
|
912
|
+
...contents,
|
|
913
|
+
};
|
|
914
|
+
return Promise.resolve(response);
|
|
915
|
+
};
|
|
916
|
+
exports.deserializeAws_json1_0PutBandwidthRateLimitScheduleCommand = deserializeAws_json1_0PutBandwidthRateLimitScheduleCommand;
|
|
917
|
+
const deserializeAws_json1_0PutBandwidthRateLimitScheduleCommandError = async (output, context) => {
|
|
918
|
+
const parsedOutput = {
|
|
919
|
+
...output,
|
|
920
|
+
body: await parseErrorBody(output.body, context),
|
|
921
|
+
};
|
|
922
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
+
switch (errorCode) {
|
|
924
|
+
case "InternalServerException":
|
|
925
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
926
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
927
|
+
case "ResourceNotFoundException":
|
|
928
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
929
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
930
|
+
case "ThrottlingException":
|
|
931
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
932
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
933
|
+
case "ValidationException":
|
|
934
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
935
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
936
|
+
default:
|
|
937
|
+
const parsedBody = parsedOutput.body;
|
|
938
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
939
|
+
output,
|
|
940
|
+
parsedBody,
|
|
941
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
942
|
+
errorCode,
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
const deserializeAws_json1_0PutHypervisorPropertyMappingsCommand = async (output, context) => {
|
|
947
|
+
if (output.statusCode >= 300) {
|
|
948
|
+
return deserializeAws_json1_0PutHypervisorPropertyMappingsCommandError(output, context);
|
|
949
|
+
}
|
|
950
|
+
const data = await parseBody(output.body, context);
|
|
951
|
+
let contents = {};
|
|
952
|
+
contents = deserializeAws_json1_0PutHypervisorPropertyMappingsOutput(data, context);
|
|
953
|
+
const response = {
|
|
954
|
+
$metadata: deserializeMetadata(output),
|
|
955
|
+
...contents,
|
|
956
|
+
};
|
|
957
|
+
return Promise.resolve(response);
|
|
958
|
+
};
|
|
959
|
+
exports.deserializeAws_json1_0PutHypervisorPropertyMappingsCommand = deserializeAws_json1_0PutHypervisorPropertyMappingsCommand;
|
|
960
|
+
const deserializeAws_json1_0PutHypervisorPropertyMappingsCommandError = async (output, context) => {
|
|
961
|
+
const parsedOutput = {
|
|
962
|
+
...output,
|
|
963
|
+
body: await parseErrorBody(output.body, context),
|
|
964
|
+
};
|
|
965
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
+
switch (errorCode) {
|
|
967
|
+
case "AccessDeniedException":
|
|
968
|
+
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
969
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
970
|
+
case "ConflictException":
|
|
971
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
972
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
973
|
+
case "InternalServerException":
|
|
974
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
975
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
976
|
+
case "ResourceNotFoundException":
|
|
977
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
978
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
979
|
+
case "ThrottlingException":
|
|
980
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
981
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
982
|
+
case "ValidationException":
|
|
983
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
984
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
985
|
+
default:
|
|
986
|
+
const parsedBody = parsedOutput.body;
|
|
987
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
988
|
+
output,
|
|
989
|
+
parsedBody,
|
|
990
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
991
|
+
errorCode,
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
};
|
|
708
995
|
const deserializeAws_json1_0PutMaintenanceStartTimeCommand = async (output, context) => {
|
|
709
996
|
if (output.statusCode >= 300) {
|
|
710
997
|
return deserializeAws_json1_0PutMaintenanceStartTimeCommandError(output, context);
|
|
@@ -751,6 +1038,52 @@ const deserializeAws_json1_0PutMaintenanceStartTimeCommandError = async (output,
|
|
|
751
1038
|
});
|
|
752
1039
|
}
|
|
753
1040
|
};
|
|
1041
|
+
const deserializeAws_json1_0StartVirtualMachinesMetadataSyncCommand = async (output, context) => {
|
|
1042
|
+
if (output.statusCode >= 300) {
|
|
1043
|
+
return deserializeAws_json1_0StartVirtualMachinesMetadataSyncCommandError(output, context);
|
|
1044
|
+
}
|
|
1045
|
+
const data = await parseBody(output.body, context);
|
|
1046
|
+
let contents = {};
|
|
1047
|
+
contents = deserializeAws_json1_0StartVirtualMachinesMetadataSyncOutput(data, context);
|
|
1048
|
+
const response = {
|
|
1049
|
+
$metadata: deserializeMetadata(output),
|
|
1050
|
+
...contents,
|
|
1051
|
+
};
|
|
1052
|
+
return Promise.resolve(response);
|
|
1053
|
+
};
|
|
1054
|
+
exports.deserializeAws_json1_0StartVirtualMachinesMetadataSyncCommand = deserializeAws_json1_0StartVirtualMachinesMetadataSyncCommand;
|
|
1055
|
+
const deserializeAws_json1_0StartVirtualMachinesMetadataSyncCommandError = async (output, context) => {
|
|
1056
|
+
const parsedOutput = {
|
|
1057
|
+
...output,
|
|
1058
|
+
body: await parseErrorBody(output.body, context),
|
|
1059
|
+
};
|
|
1060
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
+
switch (errorCode) {
|
|
1062
|
+
case "AccessDeniedException":
|
|
1063
|
+
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
1064
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1065
|
+
case "InternalServerException":
|
|
1066
|
+
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1067
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1068
|
+
case "ResourceNotFoundException":
|
|
1069
|
+
case "com.amazonaws.backupgateway#ResourceNotFoundException":
|
|
1070
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1071
|
+
case "ThrottlingException":
|
|
1072
|
+
case "com.amazonaws.backupgateway#ThrottlingException":
|
|
1073
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1074
|
+
case "ValidationException":
|
|
1075
|
+
case "com.amazonaws.backupgateway#ValidationException":
|
|
1076
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1077
|
+
default:
|
|
1078
|
+
const parsedBody = parsedOutput.body;
|
|
1079
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1080
|
+
output,
|
|
1081
|
+
parsedBody,
|
|
1082
|
+
exceptionCtor: BackupGatewayServiceException_1.BackupGatewayServiceException,
|
|
1083
|
+
errorCode,
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
};
|
|
754
1087
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
755
1088
|
if (output.statusCode >= 300) {
|
|
756
1089
|
return deserializeAws_json1_0TagResourceCommandError(output, context);
|
|
@@ -996,6 +1329,9 @@ const deserializeAws_json1_0UpdateHypervisorCommandError = async (output, contex
|
|
|
996
1329
|
case "AccessDeniedException":
|
|
997
1330
|
case "com.amazonaws.backupgateway#AccessDeniedException":
|
|
998
1331
|
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1332
|
+
case "ConflictException":
|
|
1333
|
+
case "com.amazonaws.backupgateway#ConflictException":
|
|
1334
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
999
1335
|
case "InternalServerException":
|
|
1000
1336
|
case "com.amazonaws.backupgateway#InternalServerException":
|
|
1001
1337
|
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -1078,6 +1414,25 @@ const serializeAws_json1_0AssociateGatewayToServerInput = (input, context) => {
|
|
|
1078
1414
|
...(input.ServerArn != null && { ServerArn: input.ServerArn }),
|
|
1079
1415
|
};
|
|
1080
1416
|
};
|
|
1417
|
+
const serializeAws_json1_0BandwidthRateLimitInterval = (input, context) => {
|
|
1418
|
+
return {
|
|
1419
|
+
...(input.AverageUploadRateLimitInBitsPerSec != null && {
|
|
1420
|
+
AverageUploadRateLimitInBitsPerSec: input.AverageUploadRateLimitInBitsPerSec,
|
|
1421
|
+
}),
|
|
1422
|
+
...(input.DaysOfWeek != null && { DaysOfWeek: serializeAws_json1_0DaysOfWeek(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 serializeAws_json1_0BandwidthRateLimitIntervals = (input, context) => {
|
|
1430
|
+
return input
|
|
1431
|
+
.filter((e) => e != null)
|
|
1432
|
+
.map((entry) => {
|
|
1433
|
+
return serializeAws_json1_0BandwidthRateLimitInterval(entry, context);
|
|
1434
|
+
});
|
|
1435
|
+
};
|
|
1081
1436
|
const serializeAws_json1_0CreateGatewayInput = (input, context) => {
|
|
1082
1437
|
return {
|
|
1083
1438
|
...(input.ActivationKey != null && { ActivationKey: input.ActivationKey }),
|
|
@@ -1086,6 +1441,13 @@ const serializeAws_json1_0CreateGatewayInput = (input, context) => {
|
|
|
1086
1441
|
...(input.Tags != null && { Tags: serializeAws_json1_0Tags(input.Tags, context) }),
|
|
1087
1442
|
};
|
|
1088
1443
|
};
|
|
1444
|
+
const serializeAws_json1_0DaysOfWeek = (input, context) => {
|
|
1445
|
+
return input
|
|
1446
|
+
.filter((e) => e != null)
|
|
1447
|
+
.map((entry) => {
|
|
1448
|
+
return entry;
|
|
1449
|
+
});
|
|
1450
|
+
};
|
|
1089
1451
|
const serializeAws_json1_0DeleteGatewayInput = (input, context) => {
|
|
1090
1452
|
return {
|
|
1091
1453
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
@@ -1101,11 +1463,26 @@ const serializeAws_json1_0DisassociateGatewayFromServerInput = (input, context)
|
|
|
1101
1463
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1102
1464
|
};
|
|
1103
1465
|
};
|
|
1466
|
+
const serializeAws_json1_0GetBandwidthRateLimitScheduleInput = (input, context) => {
|
|
1467
|
+
return {
|
|
1468
|
+
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1104
1471
|
const serializeAws_json1_0GetGatewayInput = (input, context) => {
|
|
1105
1472
|
return {
|
|
1106
1473
|
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1107
1474
|
};
|
|
1108
1475
|
};
|
|
1476
|
+
const serializeAws_json1_0GetHypervisorInput = (input, context) => {
|
|
1477
|
+
return {
|
|
1478
|
+
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1481
|
+
const serializeAws_json1_0GetHypervisorPropertyMappingsInput = (input, context) => {
|
|
1482
|
+
return {
|
|
1483
|
+
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1109
1486
|
const serializeAws_json1_0GetVirtualMachineInput = (input, context) => {
|
|
1110
1487
|
return {
|
|
1111
1488
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
@@ -1145,6 +1522,23 @@ const serializeAws_json1_0ListVirtualMachinesInput = (input, context) => {
|
|
|
1145
1522
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1146
1523
|
};
|
|
1147
1524
|
};
|
|
1525
|
+
const serializeAws_json1_0PutBandwidthRateLimitScheduleInput = (input, context) => {
|
|
1526
|
+
return {
|
|
1527
|
+
...(input.BandwidthRateLimitIntervals != null && {
|
|
1528
|
+
BandwidthRateLimitIntervals: serializeAws_json1_0BandwidthRateLimitIntervals(input.BandwidthRateLimitIntervals, context),
|
|
1529
|
+
}),
|
|
1530
|
+
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1531
|
+
};
|
|
1532
|
+
};
|
|
1533
|
+
const serializeAws_json1_0PutHypervisorPropertyMappingsInput = (input, context) => {
|
|
1534
|
+
return {
|
|
1535
|
+
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1536
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1537
|
+
...(input.VmwareToAwsTagMappings != null && {
|
|
1538
|
+
VmwareToAwsTagMappings: serializeAws_json1_0VmwareToAwsTagMappings(input.VmwareToAwsTagMappings, context),
|
|
1539
|
+
}),
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1148
1542
|
const serializeAws_json1_0PutMaintenanceStartTimeInput = (input, context) => {
|
|
1149
1543
|
return {
|
|
1150
1544
|
...(input.DayOfMonth != null && { DayOfMonth: input.DayOfMonth }),
|
|
@@ -1154,6 +1548,11 @@ const serializeAws_json1_0PutMaintenanceStartTimeInput = (input, context) => {
|
|
|
1154
1548
|
...(input.MinuteOfHour != null && { MinuteOfHour: input.MinuteOfHour }),
|
|
1155
1549
|
};
|
|
1156
1550
|
};
|
|
1551
|
+
const serializeAws_json1_0StartVirtualMachinesMetadataSyncInput = (input, context) => {
|
|
1552
|
+
return {
|
|
1553
|
+
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1554
|
+
};
|
|
1555
|
+
};
|
|
1157
1556
|
const serializeAws_json1_0Tag = (input, context) => {
|
|
1158
1557
|
return {
|
|
1159
1558
|
...(input.Key != null && { Key: input.Key }),
|
|
@@ -1209,11 +1608,27 @@ const serializeAws_json1_0UpdateHypervisorInput = (input, context) => {
|
|
|
1209
1608
|
return {
|
|
1210
1609
|
...(input.Host != null && { Host: input.Host }),
|
|
1211
1610
|
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1611
|
+
...(input.LogGroupArn != null && { LogGroupArn: input.LogGroupArn }),
|
|
1212
1612
|
...(input.Name != null && { Name: input.Name }),
|
|
1213
1613
|
...(input.Password != null && { Password: input.Password }),
|
|
1214
1614
|
...(input.Username != null && { Username: input.Username }),
|
|
1215
1615
|
};
|
|
1216
1616
|
};
|
|
1617
|
+
const serializeAws_json1_0VmwareToAwsTagMapping = (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 serializeAws_json1_0VmwareToAwsTagMappings = (input, context) => {
|
|
1626
|
+
return input
|
|
1627
|
+
.filter((e) => e != null)
|
|
1628
|
+
.map((entry) => {
|
|
1629
|
+
return serializeAws_json1_0VmwareToAwsTagMapping(entry, context);
|
|
1630
|
+
});
|
|
1631
|
+
};
|
|
1217
1632
|
const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
1218
1633
|
return {
|
|
1219
1634
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
@@ -1225,6 +1640,27 @@ const deserializeAws_json1_0AssociateGatewayToServerOutput = (output, context) =
|
|
|
1225
1640
|
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1226
1641
|
};
|
|
1227
1642
|
};
|
|
1643
|
+
const deserializeAws_json1_0BandwidthRateLimitInterval = (output, context) => {
|
|
1644
|
+
return {
|
|
1645
|
+
AverageUploadRateLimitInBitsPerSec: (0, smithy_client_1.expectLong)(output.AverageUploadRateLimitInBitsPerSec),
|
|
1646
|
+
DaysOfWeek: output.DaysOfWeek != null ? deserializeAws_json1_0DaysOfWeek(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 deserializeAws_json1_0BandwidthRateLimitIntervals = (output, context) => {
|
|
1654
|
+
const retVal = (output || [])
|
|
1655
|
+
.filter((e) => e != null)
|
|
1656
|
+
.map((entry) => {
|
|
1657
|
+
if (entry === null) {
|
|
1658
|
+
return null;
|
|
1659
|
+
}
|
|
1660
|
+
return deserializeAws_json1_0BandwidthRateLimitInterval(entry, context);
|
|
1661
|
+
});
|
|
1662
|
+
return retVal;
|
|
1663
|
+
};
|
|
1228
1664
|
const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
1229
1665
|
return {
|
|
1230
1666
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
@@ -1236,6 +1672,17 @@ const deserializeAws_json1_0CreateGatewayOutput = (output, context) => {
|
|
|
1236
1672
|
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1237
1673
|
};
|
|
1238
1674
|
};
|
|
1675
|
+
const deserializeAws_json1_0DaysOfWeek = (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
|
+
};
|
|
1239
1686
|
const deserializeAws_json1_0DeleteGatewayOutput = (output, context) => {
|
|
1240
1687
|
return {
|
|
1241
1688
|
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
@@ -1291,11 +1738,33 @@ const deserializeAws_json1_0Gateways = (output, context) => {
|
|
|
1291
1738
|
});
|
|
1292
1739
|
return retVal;
|
|
1293
1740
|
};
|
|
1741
|
+
const deserializeAws_json1_0GetBandwidthRateLimitScheduleOutput = (output, context) => {
|
|
1742
|
+
return {
|
|
1743
|
+
BandwidthRateLimitIntervals: output.BandwidthRateLimitIntervals != null
|
|
1744
|
+
? deserializeAws_json1_0BandwidthRateLimitIntervals(output.BandwidthRateLimitIntervals, context)
|
|
1745
|
+
: undefined,
|
|
1746
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1747
|
+
};
|
|
1748
|
+
};
|
|
1294
1749
|
const deserializeAws_json1_0GetGatewayOutput = (output, context) => {
|
|
1295
1750
|
return {
|
|
1296
1751
|
Gateway: output.Gateway != null ? deserializeAws_json1_0GatewayDetails(output.Gateway, context) : undefined,
|
|
1297
1752
|
};
|
|
1298
1753
|
};
|
|
1754
|
+
const deserializeAws_json1_0GetHypervisorOutput = (output, context) => {
|
|
1755
|
+
return {
|
|
1756
|
+
Hypervisor: output.Hypervisor != null ? deserializeAws_json1_0HypervisorDetails(output.Hypervisor, context) : undefined,
|
|
1757
|
+
};
|
|
1758
|
+
};
|
|
1759
|
+
const deserializeAws_json1_0GetHypervisorPropertyMappingsOutput = (output, context) => {
|
|
1760
|
+
return {
|
|
1761
|
+
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1762
|
+
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
1763
|
+
VmwareToAwsTagMappings: output.VmwareToAwsTagMappings != null
|
|
1764
|
+
? deserializeAws_json1_0VmwareToAwsTagMappings(output.VmwareToAwsTagMappings, context)
|
|
1765
|
+
: undefined,
|
|
1766
|
+
};
|
|
1767
|
+
};
|
|
1299
1768
|
const deserializeAws_json1_0GetVirtualMachineOutput = (output, context) => {
|
|
1300
1769
|
return {
|
|
1301
1770
|
VirtualMachine: output.VirtualMachine != null
|
|
@@ -1312,6 +1781,21 @@ const deserializeAws_json1_0Hypervisor = (output, context) => {
|
|
|
1312
1781
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1313
1782
|
};
|
|
1314
1783
|
};
|
|
1784
|
+
const deserializeAws_json1_0HypervisorDetails = (output, context) => {
|
|
1785
|
+
return {
|
|
1786
|
+
Host: (0, smithy_client_1.expectString)(output.Host),
|
|
1787
|
+
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1788
|
+
KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
|
|
1789
|
+
LastSuccessfulMetadataSyncTime: output.LastSuccessfulMetadataSyncTime != null
|
|
1790
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSuccessfulMetadataSyncTime)))
|
|
1791
|
+
: undefined,
|
|
1792
|
+
LatestMetadataSyncStatus: (0, smithy_client_1.expectString)(output.LatestMetadataSyncStatus),
|
|
1793
|
+
LatestMetadataSyncStatusMessage: (0, smithy_client_1.expectString)(output.LatestMetadataSyncStatusMessage),
|
|
1794
|
+
LogGroupArn: (0, smithy_client_1.expectString)(output.LogGroupArn),
|
|
1795
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1796
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1797
|
+
};
|
|
1798
|
+
};
|
|
1315
1799
|
const deserializeAws_json1_0Hypervisors = (output, context) => {
|
|
1316
1800
|
const retVal = (output || [])
|
|
1317
1801
|
.filter((e) => e != null)
|
|
@@ -1368,6 +1852,16 @@ const deserializeAws_json1_0MaintenanceStartTime = (output, context) => {
|
|
|
1368
1852
|
MinuteOfHour: (0, smithy_client_1.expectInt32)(output.MinuteOfHour),
|
|
1369
1853
|
};
|
|
1370
1854
|
};
|
|
1855
|
+
const deserializeAws_json1_0PutBandwidthRateLimitScheduleOutput = (output, context) => {
|
|
1856
|
+
return {
|
|
1857
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1860
|
+
const deserializeAws_json1_0PutHypervisorPropertyMappingsOutput = (output, context) => {
|
|
1861
|
+
return {
|
|
1862
|
+
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1863
|
+
};
|
|
1864
|
+
};
|
|
1371
1865
|
const deserializeAws_json1_0PutMaintenanceStartTimeOutput = (output, context) => {
|
|
1372
1866
|
return {
|
|
1373
1867
|
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
@@ -1379,6 +1873,11 @@ const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
|
1379
1873
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1380
1874
|
};
|
|
1381
1875
|
};
|
|
1876
|
+
const deserializeAws_json1_0StartVirtualMachinesMetadataSyncOutput = (output, context) => {
|
|
1877
|
+
return {
|
|
1878
|
+
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1382
1881
|
const deserializeAws_json1_0Tag = (output, context) => {
|
|
1383
1882
|
return {
|
|
1384
1883
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
@@ -1458,6 +1957,7 @@ const deserializeAws_json1_0VirtualMachineDetails = (output, context) => {
|
|
|
1458
1957
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1459
1958
|
Path: (0, smithy_client_1.expectString)(output.Path),
|
|
1460
1959
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1960
|
+
VmwareTags: output.VmwareTags != null ? deserializeAws_json1_0VmwareTags(output.VmwareTags, context) : undefined,
|
|
1461
1961
|
};
|
|
1462
1962
|
};
|
|
1463
1963
|
const deserializeAws_json1_0VirtualMachines = (output, context) => {
|
|
@@ -1471,6 +1971,43 @@ const deserializeAws_json1_0VirtualMachines = (output, context) => {
|
|
|
1471
1971
|
});
|
|
1472
1972
|
return retVal;
|
|
1473
1973
|
};
|
|
1974
|
+
const deserializeAws_json1_0VmwareTag = (output, context) => {
|
|
1975
|
+
return {
|
|
1976
|
+
VmwareCategory: (0, smithy_client_1.expectString)(output.VmwareCategory),
|
|
1977
|
+
VmwareTagDescription: (0, smithy_client_1.expectString)(output.VmwareTagDescription),
|
|
1978
|
+
VmwareTagName: (0, smithy_client_1.expectString)(output.VmwareTagName),
|
|
1979
|
+
};
|
|
1980
|
+
};
|
|
1981
|
+
const deserializeAws_json1_0VmwareTags = (output, context) => {
|
|
1982
|
+
const retVal = (output || [])
|
|
1983
|
+
.filter((e) => e != null)
|
|
1984
|
+
.map((entry) => {
|
|
1985
|
+
if (entry === null) {
|
|
1986
|
+
return null;
|
|
1987
|
+
}
|
|
1988
|
+
return deserializeAws_json1_0VmwareTag(entry, context);
|
|
1989
|
+
});
|
|
1990
|
+
return retVal;
|
|
1991
|
+
};
|
|
1992
|
+
const deserializeAws_json1_0VmwareToAwsTagMapping = (output, context) => {
|
|
1993
|
+
return {
|
|
1994
|
+
AwsTagKey: (0, smithy_client_1.expectString)(output.AwsTagKey),
|
|
1995
|
+
AwsTagValue: (0, smithy_client_1.expectString)(output.AwsTagValue),
|
|
1996
|
+
VmwareCategory: (0, smithy_client_1.expectString)(output.VmwareCategory),
|
|
1997
|
+
VmwareTagName: (0, smithy_client_1.expectString)(output.VmwareTagName),
|
|
1998
|
+
};
|
|
1999
|
+
};
|
|
2000
|
+
const deserializeAws_json1_0VmwareToAwsTagMappings = (output, context) => {
|
|
2001
|
+
const retVal = (output || [])
|
|
2002
|
+
.filter((e) => e != null)
|
|
2003
|
+
.map((entry) => {
|
|
2004
|
+
if (entry === null) {
|
|
2005
|
+
return null;
|
|
2006
|
+
}
|
|
2007
|
+
return deserializeAws_json1_0VmwareToAwsTagMapping(entry, context);
|
|
2008
|
+
});
|
|
2009
|
+
return retVal;
|
|
2010
|
+
};
|
|
1474
2011
|
const deserializeMetadata = (output) => ({
|
|
1475
2012
|
httpStatusCode: output.statusCode,
|
|
1476
2013
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|