@aws-sdk/client-backup-gateway 3.121.0 → 3.130.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +58 -64
- package/dist-es/protocols/Aws_json1_0.js +31 -37
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-backup-gateway
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-backup-gateway
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -1012,85 +1012,84 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
|
|
|
1012
1012
|
};
|
|
1013
1013
|
const serializeAws_json1_0AssociateGatewayToServerInput = (input, context) => {
|
|
1014
1014
|
return {
|
|
1015
|
-
...(input.GatewayArn
|
|
1016
|
-
...(input.ServerArn
|
|
1015
|
+
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1016
|
+
...(input.ServerArn != null && { ServerArn: input.ServerArn }),
|
|
1017
1017
|
};
|
|
1018
1018
|
};
|
|
1019
1019
|
const serializeAws_json1_0CreateGatewayInput = (input, context) => {
|
|
1020
1020
|
return {
|
|
1021
|
-
...(input.ActivationKey
|
|
1022
|
-
...(input.GatewayDisplayName
|
|
1023
|
-
|
|
1024
|
-
...(input.
|
|
1025
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0Tags(input.Tags, context) }),
|
|
1021
|
+
...(input.ActivationKey != null && { ActivationKey: input.ActivationKey }),
|
|
1022
|
+
...(input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1023
|
+
...(input.GatewayType != null && { GatewayType: input.GatewayType }),
|
|
1024
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0Tags(input.Tags, context) }),
|
|
1026
1025
|
};
|
|
1027
1026
|
};
|
|
1028
1027
|
const serializeAws_json1_0DeleteGatewayInput = (input, context) => {
|
|
1029
1028
|
return {
|
|
1030
|
-
...(input.GatewayArn
|
|
1029
|
+
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1031
1030
|
};
|
|
1032
1031
|
};
|
|
1033
1032
|
const serializeAws_json1_0DeleteHypervisorInput = (input, context) => {
|
|
1034
1033
|
return {
|
|
1035
|
-
...(input.HypervisorArn
|
|
1034
|
+
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1036
1035
|
};
|
|
1037
1036
|
};
|
|
1038
1037
|
const serializeAws_json1_0DisassociateGatewayFromServerInput = (input, context) => {
|
|
1039
1038
|
return {
|
|
1040
|
-
...(input.GatewayArn
|
|
1039
|
+
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1041
1040
|
};
|
|
1042
1041
|
};
|
|
1043
1042
|
const serializeAws_json1_0GetGatewayInput = (input, context) => {
|
|
1044
1043
|
return {
|
|
1045
|
-
...(input.GatewayArn
|
|
1044
|
+
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1046
1045
|
};
|
|
1047
1046
|
};
|
|
1048
1047
|
const serializeAws_json1_0ImportHypervisorConfigurationInput = (input, context) => {
|
|
1049
1048
|
return {
|
|
1050
|
-
...(input.Host
|
|
1051
|
-
...(input.KmsKeyArn
|
|
1052
|
-
...(input.Name
|
|
1053
|
-
...(input.Password
|
|
1054
|
-
...(input.Tags
|
|
1055
|
-
...(input.Username
|
|
1049
|
+
...(input.Host != null && { Host: input.Host }),
|
|
1050
|
+
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
1051
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1052
|
+
...(input.Password != null && { Password: input.Password }),
|
|
1053
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0Tags(input.Tags, context) }),
|
|
1054
|
+
...(input.Username != null && { Username: input.Username }),
|
|
1056
1055
|
};
|
|
1057
1056
|
};
|
|
1058
1057
|
const serializeAws_json1_0ListGatewaysInput = (input, context) => {
|
|
1059
1058
|
return {
|
|
1060
|
-
...(input.MaxResults
|
|
1061
|
-
...(input.NextToken
|
|
1059
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1060
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1062
1061
|
};
|
|
1063
1062
|
};
|
|
1064
1063
|
const serializeAws_json1_0ListHypervisorsInput = (input, context) => {
|
|
1065
1064
|
return {
|
|
1066
|
-
...(input.MaxResults
|
|
1067
|
-
...(input.NextToken
|
|
1065
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1066
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1068
1067
|
};
|
|
1069
1068
|
};
|
|
1070
1069
|
const serializeAws_json1_0ListTagsForResourceInput = (input, context) => {
|
|
1071
1070
|
return {
|
|
1072
|
-
...(input.ResourceArn
|
|
1071
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1073
1072
|
};
|
|
1074
1073
|
};
|
|
1075
1074
|
const serializeAws_json1_0ListVirtualMachinesInput = (input, context) => {
|
|
1076
1075
|
return {
|
|
1077
|
-
...(input.MaxResults
|
|
1078
|
-
...(input.NextToken
|
|
1076
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1077
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1079
1078
|
};
|
|
1080
1079
|
};
|
|
1081
1080
|
const serializeAws_json1_0PutMaintenanceStartTimeInput = (input, context) => {
|
|
1082
1081
|
return {
|
|
1083
|
-
...(input.DayOfMonth
|
|
1084
|
-
...(input.DayOfWeek
|
|
1085
|
-
...(input.GatewayArn
|
|
1086
|
-
...(input.HourOfDay
|
|
1087
|
-
...(input.MinuteOfHour
|
|
1082
|
+
...(input.DayOfMonth != null && { DayOfMonth: input.DayOfMonth }),
|
|
1083
|
+
...(input.DayOfWeek != null && { DayOfWeek: input.DayOfWeek }),
|
|
1084
|
+
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1085
|
+
...(input.HourOfDay != null && { HourOfDay: input.HourOfDay }),
|
|
1086
|
+
...(input.MinuteOfHour != null && { MinuteOfHour: input.MinuteOfHour }),
|
|
1088
1087
|
};
|
|
1089
1088
|
};
|
|
1090
1089
|
const serializeAws_json1_0Tag = (input, context) => {
|
|
1091
1090
|
return {
|
|
1092
|
-
...(input.Key
|
|
1093
|
-
...(input.Value
|
|
1091
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1092
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1094
1093
|
};
|
|
1095
1094
|
};
|
|
1096
1095
|
const serializeAws_json1_0TagKeys = (input, context) => {
|
|
@@ -1105,8 +1104,8 @@ const serializeAws_json1_0TagKeys = (input, context) => {
|
|
|
1105
1104
|
};
|
|
1106
1105
|
const serializeAws_json1_0TagResourceInput = (input, context) => {
|
|
1107
1106
|
return {
|
|
1108
|
-
...(input.ResourceARN
|
|
1109
|
-
...(input.Tags
|
|
1107
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1108
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0Tags(input.Tags, context) }),
|
|
1110
1109
|
};
|
|
1111
1110
|
};
|
|
1112
1111
|
const serializeAws_json1_0Tags = (input, context) => {
|
|
@@ -1121,38 +1120,36 @@ const serializeAws_json1_0Tags = (input, context) => {
|
|
|
1121
1120
|
};
|
|
1122
1121
|
const serializeAws_json1_0TestHypervisorConfigurationInput = (input, context) => {
|
|
1123
1122
|
return {
|
|
1124
|
-
...(input.GatewayArn
|
|
1125
|
-
...(input.Host
|
|
1126
|
-
...(input.Password
|
|
1127
|
-
...(input.Username
|
|
1123
|
+
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1124
|
+
...(input.Host != null && { Host: input.Host }),
|
|
1125
|
+
...(input.Password != null && { Password: input.Password }),
|
|
1126
|
+
...(input.Username != null && { Username: input.Username }),
|
|
1128
1127
|
};
|
|
1129
1128
|
};
|
|
1130
1129
|
const serializeAws_json1_0UntagResourceInput = (input, context) => {
|
|
1131
1130
|
return {
|
|
1132
|
-
...(input.ResourceARN
|
|
1133
|
-
...(input.TagKeys
|
|
1134
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeys(input.TagKeys, context) }),
|
|
1131
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1132
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeys(input.TagKeys, context) }),
|
|
1135
1133
|
};
|
|
1136
1134
|
};
|
|
1137
1135
|
const serializeAws_json1_0UpdateGatewayInformationInput = (input, context) => {
|
|
1138
1136
|
return {
|
|
1139
|
-
...(input.GatewayArn
|
|
1140
|
-
...(input.GatewayDisplayName
|
|
1141
|
-
input.GatewayDisplayName !== null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1137
|
+
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1138
|
+
...(input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }),
|
|
1142
1139
|
};
|
|
1143
1140
|
};
|
|
1144
1141
|
const serializeAws_json1_0UpdateGatewaySoftwareNowInput = (input, context) => {
|
|
1145
1142
|
return {
|
|
1146
|
-
...(input.GatewayArn
|
|
1143
|
+
...(input.GatewayArn != null && { GatewayArn: input.GatewayArn }),
|
|
1147
1144
|
};
|
|
1148
1145
|
};
|
|
1149
1146
|
const serializeAws_json1_0UpdateHypervisorInput = (input, context) => {
|
|
1150
1147
|
return {
|
|
1151
|
-
...(input.Host
|
|
1152
|
-
...(input.HypervisorArn
|
|
1153
|
-
...(input.Name
|
|
1154
|
-
...(input.Password
|
|
1155
|
-
...(input.Username
|
|
1148
|
+
...(input.Host != null && { Host: input.Host }),
|
|
1149
|
+
...(input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }),
|
|
1150
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1151
|
+
...(input.Password != null && { Password: input.Password }),
|
|
1152
|
+
...(input.Username != null && { Username: input.Username }),
|
|
1156
1153
|
};
|
|
1157
1154
|
};
|
|
1158
1155
|
const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
@@ -1198,7 +1195,7 @@ const deserializeAws_json1_0Gateway = (output, context) => {
|
|
|
1198
1195
|
GatewayDisplayName: (0, smithy_client_1.expectString)(output.GatewayDisplayName),
|
|
1199
1196
|
GatewayType: (0, smithy_client_1.expectString)(output.GatewayType),
|
|
1200
1197
|
HypervisorId: (0, smithy_client_1.expectString)(output.HypervisorId),
|
|
1201
|
-
LastSeenTime: output.LastSeenTime
|
|
1198
|
+
LastSeenTime: output.LastSeenTime != null
|
|
1202
1199
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSeenTime)))
|
|
1203
1200
|
: undefined,
|
|
1204
1201
|
};
|
|
@@ -1209,10 +1206,10 @@ const deserializeAws_json1_0GatewayDetails = (output, context) => {
|
|
|
1209
1206
|
GatewayDisplayName: (0, smithy_client_1.expectString)(output.GatewayDisplayName),
|
|
1210
1207
|
GatewayType: (0, smithy_client_1.expectString)(output.GatewayType),
|
|
1211
1208
|
HypervisorId: (0, smithy_client_1.expectString)(output.HypervisorId),
|
|
1212
|
-
LastSeenTime: output.LastSeenTime
|
|
1209
|
+
LastSeenTime: output.LastSeenTime != null
|
|
1213
1210
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSeenTime)))
|
|
1214
1211
|
: undefined,
|
|
1215
|
-
NextUpdateAvailabilityTime: output.NextUpdateAvailabilityTime
|
|
1212
|
+
NextUpdateAvailabilityTime: output.NextUpdateAvailabilityTime != null
|
|
1216
1213
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NextUpdateAvailabilityTime)))
|
|
1217
1214
|
: undefined,
|
|
1218
1215
|
VpcEndpoint: (0, smithy_client_1.expectString)(output.VpcEndpoint),
|
|
@@ -1231,9 +1228,7 @@ const deserializeAws_json1_0Gateways = (output, context) => {
|
|
|
1231
1228
|
};
|
|
1232
1229
|
const deserializeAws_json1_0GetGatewayOutput = (output, context) => {
|
|
1233
1230
|
return {
|
|
1234
|
-
Gateway: output.Gateway
|
|
1235
|
-
? deserializeAws_json1_0GatewayDetails(output.Gateway, context)
|
|
1236
|
-
: undefined,
|
|
1231
|
+
Gateway: output.Gateway != null ? deserializeAws_json1_0GatewayDetails(output.Gateway, context) : undefined,
|
|
1237
1232
|
};
|
|
1238
1233
|
};
|
|
1239
1234
|
const deserializeAws_json1_0Hypervisor = (output, context) => {
|
|
@@ -1269,30 +1264,26 @@ const deserializeAws_json1_0InternalServerException = (output, context) => {
|
|
|
1269
1264
|
};
|
|
1270
1265
|
const deserializeAws_json1_0ListGatewaysOutput = (output, context) => {
|
|
1271
1266
|
return {
|
|
1272
|
-
Gateways: output.Gateways
|
|
1273
|
-
? deserializeAws_json1_0Gateways(output.Gateways, context)
|
|
1274
|
-
: undefined,
|
|
1267
|
+
Gateways: output.Gateways != null ? deserializeAws_json1_0Gateways(output.Gateways, context) : undefined,
|
|
1275
1268
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1276
1269
|
};
|
|
1277
1270
|
};
|
|
1278
1271
|
const deserializeAws_json1_0ListHypervisorsOutput = (output, context) => {
|
|
1279
1272
|
return {
|
|
1280
|
-
Hypervisors: output.Hypervisors
|
|
1281
|
-
? deserializeAws_json1_0Hypervisors(output.Hypervisors, context)
|
|
1282
|
-
: undefined,
|
|
1273
|
+
Hypervisors: output.Hypervisors != null ? deserializeAws_json1_0Hypervisors(output.Hypervisors, context) : undefined,
|
|
1283
1274
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1284
1275
|
};
|
|
1285
1276
|
};
|
|
1286
1277
|
const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
|
|
1287
1278
|
return {
|
|
1288
1279
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1289
|
-
Tags: output.Tags
|
|
1280
|
+
Tags: output.Tags != null ? deserializeAws_json1_0Tags(output.Tags, context) : undefined,
|
|
1290
1281
|
};
|
|
1291
1282
|
};
|
|
1292
1283
|
const deserializeAws_json1_0ListVirtualMachinesOutput = (output, context) => {
|
|
1293
1284
|
return {
|
|
1294
1285
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1295
|
-
VirtualMachines: output.VirtualMachines
|
|
1286
|
+
VirtualMachines: output.VirtualMachines != null
|
|
1296
1287
|
? deserializeAws_json1_0VirtualMachines(output.VirtualMachines, context)
|
|
1297
1288
|
: undefined,
|
|
1298
1289
|
};
|
|
@@ -1363,7 +1354,7 @@ const deserializeAws_json1_0VirtualMachine = (output, context) => {
|
|
|
1363
1354
|
return {
|
|
1364
1355
|
HostName: (0, smithy_client_1.expectString)(output.HostName),
|
|
1365
1356
|
HypervisorId: (0, smithy_client_1.expectString)(output.HypervisorId),
|
|
1366
|
-
LastBackupDate: output.LastBackupDate
|
|
1357
|
+
LastBackupDate: output.LastBackupDate != null
|
|
1367
1358
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastBackupDate)))
|
|
1368
1359
|
: undefined,
|
|
1369
1360
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -1426,6 +1417,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1426
1417
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1427
1418
|
const sanitizeErrorCode = (rawValue) => {
|
|
1428
1419
|
let cleanValue = rawValue;
|
|
1420
|
+
if (typeof cleanValue === "number") {
|
|
1421
|
+
cleanValue = cleanValue.toString();
|
|
1422
|
+
}
|
|
1429
1423
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1430
1424
|
cleanValue = cleanValue.split(":")[0];
|
|
1431
1425
|
}
|
|
@@ -1317,44 +1317,43 @@ var deserializeAws_json1_0ValidationExceptionResponse = function (parsedOutput,
|
|
|
1317
1317
|
});
|
|
1318
1318
|
}); };
|
|
1319
1319
|
var serializeAws_json1_0AssociateGatewayToServerInput = function (input, context) {
|
|
1320
|
-
return __assign(__assign({}, (input.GatewayArn
|
|
1320
|
+
return __assign(__assign({}, (input.GatewayArn != null && { GatewayArn: input.GatewayArn })), (input.ServerArn != null && { ServerArn: input.ServerArn }));
|
|
1321
1321
|
};
|
|
1322
1322
|
var serializeAws_json1_0CreateGatewayInput = function (input, context) {
|
|
1323
|
-
return __assign(__assign(__assign(__assign({}, (input.ActivationKey
|
|
1324
|
-
input.GatewayDisplayName !== null && { GatewayDisplayName: input.GatewayDisplayName })), (input.GatewayType !== undefined && input.GatewayType !== null && { GatewayType: input.GatewayType })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0Tags(input.Tags, context) }));
|
|
1323
|
+
return __assign(__assign(__assign(__assign({}, (input.ActivationKey != null && { ActivationKey: input.ActivationKey })), (input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName })), (input.GatewayType != null && { GatewayType: input.GatewayType })), (input.Tags != null && { Tags: serializeAws_json1_0Tags(input.Tags, context) }));
|
|
1325
1324
|
};
|
|
1326
1325
|
var serializeAws_json1_0DeleteGatewayInput = function (input, context) {
|
|
1327
|
-
return __assign({}, (input.GatewayArn
|
|
1326
|
+
return __assign({}, (input.GatewayArn != null && { GatewayArn: input.GatewayArn }));
|
|
1328
1327
|
};
|
|
1329
1328
|
var serializeAws_json1_0DeleteHypervisorInput = function (input, context) {
|
|
1330
|
-
return __assign({}, (input.HypervisorArn
|
|
1329
|
+
return __assign({}, (input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn }));
|
|
1331
1330
|
};
|
|
1332
1331
|
var serializeAws_json1_0DisassociateGatewayFromServerInput = function (input, context) {
|
|
1333
|
-
return __assign({}, (input.GatewayArn
|
|
1332
|
+
return __assign({}, (input.GatewayArn != null && { GatewayArn: input.GatewayArn }));
|
|
1334
1333
|
};
|
|
1335
1334
|
var serializeAws_json1_0GetGatewayInput = function (input, context) {
|
|
1336
|
-
return __assign({}, (input.GatewayArn
|
|
1335
|
+
return __assign({}, (input.GatewayArn != null && { GatewayArn: input.GatewayArn }));
|
|
1337
1336
|
};
|
|
1338
1337
|
var serializeAws_json1_0ImportHypervisorConfigurationInput = function (input, context) {
|
|
1339
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Host
|
|
1338
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Host != null && { Host: input.Host })), (input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn })), (input.Name != null && { Name: input.Name })), (input.Password != null && { Password: input.Password })), (input.Tags != null && { Tags: serializeAws_json1_0Tags(input.Tags, context) })), (input.Username != null && { Username: input.Username }));
|
|
1340
1339
|
};
|
|
1341
1340
|
var serializeAws_json1_0ListGatewaysInput = function (input, context) {
|
|
1342
|
-
return __assign(__assign({}, (input.MaxResults
|
|
1341
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1343
1342
|
};
|
|
1344
1343
|
var serializeAws_json1_0ListHypervisorsInput = function (input, context) {
|
|
1345
|
-
return __assign(__assign({}, (input.MaxResults
|
|
1344
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1346
1345
|
};
|
|
1347
1346
|
var serializeAws_json1_0ListTagsForResourceInput = function (input, context) {
|
|
1348
|
-
return __assign({}, (input.ResourceArn
|
|
1347
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
1349
1348
|
};
|
|
1350
1349
|
var serializeAws_json1_0ListVirtualMachinesInput = function (input, context) {
|
|
1351
|
-
return __assign(__assign({}, (input.MaxResults
|
|
1350
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1352
1351
|
};
|
|
1353
1352
|
var serializeAws_json1_0PutMaintenanceStartTimeInput = function (input, context) {
|
|
1354
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.DayOfMonth
|
|
1353
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.DayOfMonth != null && { DayOfMonth: input.DayOfMonth })), (input.DayOfWeek != null && { DayOfWeek: input.DayOfWeek })), (input.GatewayArn != null && { GatewayArn: input.GatewayArn })), (input.HourOfDay != null && { HourOfDay: input.HourOfDay })), (input.MinuteOfHour != null && { MinuteOfHour: input.MinuteOfHour }));
|
|
1355
1354
|
};
|
|
1356
1355
|
var serializeAws_json1_0Tag = function (input, context) {
|
|
1357
|
-
return __assign(__assign({}, (input.Key
|
|
1356
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
1358
1357
|
};
|
|
1359
1358
|
var serializeAws_json1_0TagKeys = function (input, context) {
|
|
1360
1359
|
return input
|
|
@@ -1367,7 +1366,7 @@ var serializeAws_json1_0TagKeys = function (input, context) {
|
|
|
1367
1366
|
});
|
|
1368
1367
|
};
|
|
1369
1368
|
var serializeAws_json1_0TagResourceInput = function (input, context) {
|
|
1370
|
-
return __assign(__assign({}, (input.ResourceARN
|
|
1369
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_0Tags(input.Tags, context) }));
|
|
1371
1370
|
};
|
|
1372
1371
|
var serializeAws_json1_0Tags = function (input, context) {
|
|
1373
1372
|
return input
|
|
@@ -1380,21 +1379,19 @@ var serializeAws_json1_0Tags = function (input, context) {
|
|
|
1380
1379
|
});
|
|
1381
1380
|
};
|
|
1382
1381
|
var serializeAws_json1_0TestHypervisorConfigurationInput = function (input, context) {
|
|
1383
|
-
return __assign(__assign(__assign(__assign({}, (input.GatewayArn
|
|
1382
|
+
return __assign(__assign(__assign(__assign({}, (input.GatewayArn != null && { GatewayArn: input.GatewayArn })), (input.Host != null && { Host: input.Host })), (input.Password != null && { Password: input.Password })), (input.Username != null && { Username: input.Username }));
|
|
1384
1383
|
};
|
|
1385
1384
|
var serializeAws_json1_0UntagResourceInput = function (input, context) {
|
|
1386
|
-
return __assign(__assign({}, (input.ResourceARN
|
|
1387
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeys(input.TagKeys, context) }));
|
|
1385
|
+
return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeys(input.TagKeys, context) }));
|
|
1388
1386
|
};
|
|
1389
1387
|
var serializeAws_json1_0UpdateGatewayInformationInput = function (input, context) {
|
|
1390
|
-
return __assign(__assign({}, (input.GatewayArn
|
|
1391
|
-
input.GatewayDisplayName !== null && { GatewayDisplayName: input.GatewayDisplayName }));
|
|
1388
|
+
return __assign(__assign({}, (input.GatewayArn != null && { GatewayArn: input.GatewayArn })), (input.GatewayDisplayName != null && { GatewayDisplayName: input.GatewayDisplayName }));
|
|
1392
1389
|
};
|
|
1393
1390
|
var serializeAws_json1_0UpdateGatewaySoftwareNowInput = function (input, context) {
|
|
1394
|
-
return __assign({}, (input.GatewayArn
|
|
1391
|
+
return __assign({}, (input.GatewayArn != null && { GatewayArn: input.GatewayArn }));
|
|
1395
1392
|
};
|
|
1396
1393
|
var serializeAws_json1_0UpdateHypervisorInput = function (input, context) {
|
|
1397
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Host
|
|
1394
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Host != null && { Host: input.Host })), (input.HypervisorArn != null && { HypervisorArn: input.HypervisorArn })), (input.Name != null && { Name: input.Name })), (input.Password != null && { Password: input.Password })), (input.Username != null && { Username: input.Username }));
|
|
1398
1395
|
};
|
|
1399
1396
|
var deserializeAws_json1_0AccessDeniedException = function (output, context) {
|
|
1400
1397
|
return {
|
|
@@ -1439,7 +1436,7 @@ var deserializeAws_json1_0Gateway = function (output, context) {
|
|
|
1439
1436
|
GatewayDisplayName: __expectString(output.GatewayDisplayName),
|
|
1440
1437
|
GatewayType: __expectString(output.GatewayType),
|
|
1441
1438
|
HypervisorId: __expectString(output.HypervisorId),
|
|
1442
|
-
LastSeenTime: output.LastSeenTime
|
|
1439
|
+
LastSeenTime: output.LastSeenTime != null
|
|
1443
1440
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSeenTime)))
|
|
1444
1441
|
: undefined,
|
|
1445
1442
|
};
|
|
@@ -1450,10 +1447,10 @@ var deserializeAws_json1_0GatewayDetails = function (output, context) {
|
|
|
1450
1447
|
GatewayDisplayName: __expectString(output.GatewayDisplayName),
|
|
1451
1448
|
GatewayType: __expectString(output.GatewayType),
|
|
1452
1449
|
HypervisorId: __expectString(output.HypervisorId),
|
|
1453
|
-
LastSeenTime: output.LastSeenTime
|
|
1450
|
+
LastSeenTime: output.LastSeenTime != null
|
|
1454
1451
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSeenTime)))
|
|
1455
1452
|
: undefined,
|
|
1456
|
-
NextUpdateAvailabilityTime: output.NextUpdateAvailabilityTime
|
|
1453
|
+
NextUpdateAvailabilityTime: output.NextUpdateAvailabilityTime != null
|
|
1457
1454
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.NextUpdateAvailabilityTime)))
|
|
1458
1455
|
: undefined,
|
|
1459
1456
|
VpcEndpoint: __expectString(output.VpcEndpoint),
|
|
@@ -1472,9 +1469,7 @@ var deserializeAws_json1_0Gateways = function (output, context) {
|
|
|
1472
1469
|
};
|
|
1473
1470
|
var deserializeAws_json1_0GetGatewayOutput = function (output, context) {
|
|
1474
1471
|
return {
|
|
1475
|
-
Gateway: output.Gateway
|
|
1476
|
-
? deserializeAws_json1_0GatewayDetails(output.Gateway, context)
|
|
1477
|
-
: undefined,
|
|
1472
|
+
Gateway: output.Gateway != null ? deserializeAws_json1_0GatewayDetails(output.Gateway, context) : undefined,
|
|
1478
1473
|
};
|
|
1479
1474
|
};
|
|
1480
1475
|
var deserializeAws_json1_0Hypervisor = function (output, context) {
|
|
@@ -1510,30 +1505,26 @@ var deserializeAws_json1_0InternalServerException = function (output, context) {
|
|
|
1510
1505
|
};
|
|
1511
1506
|
var deserializeAws_json1_0ListGatewaysOutput = function (output, context) {
|
|
1512
1507
|
return {
|
|
1513
|
-
Gateways: output.Gateways
|
|
1514
|
-
? deserializeAws_json1_0Gateways(output.Gateways, context)
|
|
1515
|
-
: undefined,
|
|
1508
|
+
Gateways: output.Gateways != null ? deserializeAws_json1_0Gateways(output.Gateways, context) : undefined,
|
|
1516
1509
|
NextToken: __expectString(output.NextToken),
|
|
1517
1510
|
};
|
|
1518
1511
|
};
|
|
1519
1512
|
var deserializeAws_json1_0ListHypervisorsOutput = function (output, context) {
|
|
1520
1513
|
return {
|
|
1521
|
-
Hypervisors: output.Hypervisors
|
|
1522
|
-
? deserializeAws_json1_0Hypervisors(output.Hypervisors, context)
|
|
1523
|
-
: undefined,
|
|
1514
|
+
Hypervisors: output.Hypervisors != null ? deserializeAws_json1_0Hypervisors(output.Hypervisors, context) : undefined,
|
|
1524
1515
|
NextToken: __expectString(output.NextToken),
|
|
1525
1516
|
};
|
|
1526
1517
|
};
|
|
1527
1518
|
var deserializeAws_json1_0ListTagsForResourceOutput = function (output, context) {
|
|
1528
1519
|
return {
|
|
1529
1520
|
ResourceArn: __expectString(output.ResourceArn),
|
|
1530
|
-
Tags: output.Tags
|
|
1521
|
+
Tags: output.Tags != null ? deserializeAws_json1_0Tags(output.Tags, context) : undefined,
|
|
1531
1522
|
};
|
|
1532
1523
|
};
|
|
1533
1524
|
var deserializeAws_json1_0ListVirtualMachinesOutput = function (output, context) {
|
|
1534
1525
|
return {
|
|
1535
1526
|
NextToken: __expectString(output.NextToken),
|
|
1536
|
-
VirtualMachines: output.VirtualMachines
|
|
1527
|
+
VirtualMachines: output.VirtualMachines != null
|
|
1537
1528
|
? deserializeAws_json1_0VirtualMachines(output.VirtualMachines, context)
|
|
1538
1529
|
: undefined,
|
|
1539
1530
|
};
|
|
@@ -1604,7 +1595,7 @@ var deserializeAws_json1_0VirtualMachine = function (output, context) {
|
|
|
1604
1595
|
return {
|
|
1605
1596
|
HostName: __expectString(output.HostName),
|
|
1606
1597
|
HypervisorId: __expectString(output.HypervisorId),
|
|
1607
|
-
LastBackupDate: output.LastBackupDate
|
|
1598
|
+
LastBackupDate: output.LastBackupDate != null
|
|
1608
1599
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastBackupDate)))
|
|
1609
1600
|
: undefined,
|
|
1610
1601
|
Name: __expectString(output.Name),
|
|
@@ -1679,6 +1670,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1679
1670
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1680
1671
|
var sanitizeErrorCode = function (rawValue) {
|
|
1681
1672
|
var cleanValue = rawValue;
|
|
1673
|
+
if (typeof cleanValue === "number") {
|
|
1674
|
+
cleanValue = cleanValue.toString();
|
|
1675
|
+
}
|
|
1682
1676
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1683
1677
|
cleanValue = cleanValue.split(":")[0];
|
|
1684
1678
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-backup-gateway",
|
|
3
3
|
"description": "AWS SDK for JavaScript Backup Gateway Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|