@aws-sdk/client-device-farm 3.141.0 → 3.150.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_1.js +385 -655
- package/dist-es/protocols/Aws_json1_1.js +617 -656
- package/package.json +11 -6
|
@@ -797,7 +797,6 @@ const deserializeAws_json1_1CreateDevicePoolCommandError = async (output, contex
|
|
|
797
797
|
...output,
|
|
798
798
|
body: await parseBody(output.body, context),
|
|
799
799
|
};
|
|
800
|
-
let response;
|
|
801
800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
801
|
switch (errorCode) {
|
|
803
802
|
case "ArgumentException":
|
|
@@ -814,14 +813,12 @@ const deserializeAws_json1_1CreateDevicePoolCommandError = async (output, contex
|
|
|
814
813
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
815
814
|
default:
|
|
816
815
|
const parsedBody = parsedOutput.body;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
$metadata,
|
|
816
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
817
|
+
output,
|
|
818
|
+
parsedBody,
|
|
819
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
820
|
+
errorCode,
|
|
823
821
|
});
|
|
824
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
825
822
|
}
|
|
826
823
|
};
|
|
827
824
|
const deserializeAws_json1_1CreateInstanceProfileCommand = async (output, context) => {
|
|
@@ -843,7 +840,6 @@ const deserializeAws_json1_1CreateInstanceProfileCommandError = async (output, c
|
|
|
843
840
|
...output,
|
|
844
841
|
body: await parseBody(output.body, context),
|
|
845
842
|
};
|
|
846
|
-
let response;
|
|
847
843
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
844
|
switch (errorCode) {
|
|
849
845
|
case "ArgumentException":
|
|
@@ -860,14 +856,12 @@ const deserializeAws_json1_1CreateInstanceProfileCommandError = async (output, c
|
|
|
860
856
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
861
857
|
default:
|
|
862
858
|
const parsedBody = parsedOutput.body;
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
$metadata,
|
|
859
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
860
|
+
output,
|
|
861
|
+
parsedBody,
|
|
862
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
863
|
+
errorCode,
|
|
869
864
|
});
|
|
870
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
871
865
|
}
|
|
872
866
|
};
|
|
873
867
|
const deserializeAws_json1_1CreateNetworkProfileCommand = async (output, context) => {
|
|
@@ -889,7 +883,6 @@ const deserializeAws_json1_1CreateNetworkProfileCommandError = async (output, co
|
|
|
889
883
|
...output,
|
|
890
884
|
body: await parseBody(output.body, context),
|
|
891
885
|
};
|
|
892
|
-
let response;
|
|
893
886
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
887
|
switch (errorCode) {
|
|
895
888
|
case "ArgumentException":
|
|
@@ -906,14 +899,12 @@ const deserializeAws_json1_1CreateNetworkProfileCommandError = async (output, co
|
|
|
906
899
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
907
900
|
default:
|
|
908
901
|
const parsedBody = parsedOutput.body;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
$metadata,
|
|
902
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
903
|
+
output,
|
|
904
|
+
parsedBody,
|
|
905
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
906
|
+
errorCode,
|
|
915
907
|
});
|
|
916
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
917
908
|
}
|
|
918
909
|
};
|
|
919
910
|
const deserializeAws_json1_1CreateProjectCommand = async (output, context) => {
|
|
@@ -935,7 +926,6 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
|
|
|
935
926
|
...output,
|
|
936
927
|
body: await parseBody(output.body, context),
|
|
937
928
|
};
|
|
938
|
-
let response;
|
|
939
929
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
930
|
switch (errorCode) {
|
|
941
931
|
case "ArgumentException":
|
|
@@ -955,14 +945,12 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
|
|
|
955
945
|
throw await deserializeAws_json1_1TagOperationExceptionResponse(parsedOutput, context);
|
|
956
946
|
default:
|
|
957
947
|
const parsedBody = parsedOutput.body;
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
$metadata,
|
|
948
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
949
|
+
output,
|
|
950
|
+
parsedBody,
|
|
951
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
952
|
+
errorCode,
|
|
964
953
|
});
|
|
965
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
966
954
|
}
|
|
967
955
|
};
|
|
968
956
|
const deserializeAws_json1_1CreateRemoteAccessSessionCommand = async (output, context) => {
|
|
@@ -984,7 +972,6 @@ const deserializeAws_json1_1CreateRemoteAccessSessionCommandError = async (outpu
|
|
|
984
972
|
...output,
|
|
985
973
|
body: await parseBody(output.body, context),
|
|
986
974
|
};
|
|
987
|
-
let response;
|
|
988
975
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
976
|
switch (errorCode) {
|
|
990
977
|
case "ArgumentException":
|
|
@@ -1001,14 +988,12 @@ const deserializeAws_json1_1CreateRemoteAccessSessionCommandError = async (outpu
|
|
|
1001
988
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1002
989
|
default:
|
|
1003
990
|
const parsedBody = parsedOutput.body;
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
$metadata,
|
|
991
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
992
|
+
output,
|
|
993
|
+
parsedBody,
|
|
994
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
995
|
+
errorCode,
|
|
1010
996
|
});
|
|
1011
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1012
997
|
}
|
|
1013
998
|
};
|
|
1014
999
|
const deserializeAws_json1_1CreateTestGridProjectCommand = async (output, context) => {
|
|
@@ -1030,7 +1015,6 @@ const deserializeAws_json1_1CreateTestGridProjectCommandError = async (output, c
|
|
|
1030
1015
|
...output,
|
|
1031
1016
|
body: await parseBody(output.body, context),
|
|
1032
1017
|
};
|
|
1033
|
-
let response;
|
|
1034
1018
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
1019
|
switch (errorCode) {
|
|
1036
1020
|
case "ArgumentException":
|
|
@@ -1044,14 +1028,12 @@ const deserializeAws_json1_1CreateTestGridProjectCommandError = async (output, c
|
|
|
1044
1028
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1045
1029
|
default:
|
|
1046
1030
|
const parsedBody = parsedOutput.body;
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
$metadata,
|
|
1031
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1032
|
+
output,
|
|
1033
|
+
parsedBody,
|
|
1034
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1035
|
+
errorCode,
|
|
1053
1036
|
});
|
|
1054
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1055
1037
|
}
|
|
1056
1038
|
};
|
|
1057
1039
|
const deserializeAws_json1_1CreateTestGridUrlCommand = async (output, context) => {
|
|
@@ -1073,7 +1055,6 @@ const deserializeAws_json1_1CreateTestGridUrlCommandError = async (output, conte
|
|
|
1073
1055
|
...output,
|
|
1074
1056
|
body: await parseBody(output.body, context),
|
|
1075
1057
|
};
|
|
1076
|
-
let response;
|
|
1077
1058
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1078
1059
|
switch (errorCode) {
|
|
1079
1060
|
case "ArgumentException":
|
|
@@ -1087,14 +1068,12 @@ const deserializeAws_json1_1CreateTestGridUrlCommandError = async (output, conte
|
|
|
1087
1068
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1088
1069
|
default:
|
|
1089
1070
|
const parsedBody = parsedOutput.body;
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
$metadata,
|
|
1071
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1072
|
+
output,
|
|
1073
|
+
parsedBody,
|
|
1074
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1075
|
+
errorCode,
|
|
1096
1076
|
});
|
|
1097
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1098
1077
|
}
|
|
1099
1078
|
};
|
|
1100
1079
|
const deserializeAws_json1_1CreateUploadCommand = async (output, context) => {
|
|
@@ -1116,7 +1095,6 @@ const deserializeAws_json1_1CreateUploadCommandError = async (output, context) =
|
|
|
1116
1095
|
...output,
|
|
1117
1096
|
body: await parseBody(output.body, context),
|
|
1118
1097
|
};
|
|
1119
|
-
let response;
|
|
1120
1098
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1121
1099
|
switch (errorCode) {
|
|
1122
1100
|
case "ArgumentException":
|
|
@@ -1133,14 +1111,12 @@ const deserializeAws_json1_1CreateUploadCommandError = async (output, context) =
|
|
|
1133
1111
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1134
1112
|
default:
|
|
1135
1113
|
const parsedBody = parsedOutput.body;
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
$metadata,
|
|
1114
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1115
|
+
output,
|
|
1116
|
+
parsedBody,
|
|
1117
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1118
|
+
errorCode,
|
|
1142
1119
|
});
|
|
1143
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1144
1120
|
}
|
|
1145
1121
|
};
|
|
1146
1122
|
const deserializeAws_json1_1CreateVPCEConfigurationCommand = async (output, context) => {
|
|
@@ -1162,7 +1138,6 @@ const deserializeAws_json1_1CreateVPCEConfigurationCommandError = async (output,
|
|
|
1162
1138
|
...output,
|
|
1163
1139
|
body: await parseBody(output.body, context),
|
|
1164
1140
|
};
|
|
1165
|
-
let response;
|
|
1166
1141
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
1142
|
switch (errorCode) {
|
|
1168
1143
|
case "ArgumentException":
|
|
@@ -1176,14 +1151,12 @@ const deserializeAws_json1_1CreateVPCEConfigurationCommandError = async (output,
|
|
|
1176
1151
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1177
1152
|
default:
|
|
1178
1153
|
const parsedBody = parsedOutput.body;
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
$metadata,
|
|
1154
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1155
|
+
output,
|
|
1156
|
+
parsedBody,
|
|
1157
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1158
|
+
errorCode,
|
|
1185
1159
|
});
|
|
1186
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1187
1160
|
}
|
|
1188
1161
|
};
|
|
1189
1162
|
const deserializeAws_json1_1DeleteDevicePoolCommand = async (output, context) => {
|
|
@@ -1205,7 +1178,6 @@ const deserializeAws_json1_1DeleteDevicePoolCommandError = async (output, contex
|
|
|
1205
1178
|
...output,
|
|
1206
1179
|
body: await parseBody(output.body, context),
|
|
1207
1180
|
};
|
|
1208
|
-
let response;
|
|
1209
1181
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1210
1182
|
switch (errorCode) {
|
|
1211
1183
|
case "ArgumentException":
|
|
@@ -1222,14 +1194,12 @@ const deserializeAws_json1_1DeleteDevicePoolCommandError = async (output, contex
|
|
|
1222
1194
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1223
1195
|
default:
|
|
1224
1196
|
const parsedBody = parsedOutput.body;
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
$metadata,
|
|
1197
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1198
|
+
output,
|
|
1199
|
+
parsedBody,
|
|
1200
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1201
|
+
errorCode,
|
|
1231
1202
|
});
|
|
1232
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1233
1203
|
}
|
|
1234
1204
|
};
|
|
1235
1205
|
const deserializeAws_json1_1DeleteInstanceProfileCommand = async (output, context) => {
|
|
@@ -1251,7 +1221,6 @@ const deserializeAws_json1_1DeleteInstanceProfileCommandError = async (output, c
|
|
|
1251
1221
|
...output,
|
|
1252
1222
|
body: await parseBody(output.body, context),
|
|
1253
1223
|
};
|
|
1254
|
-
let response;
|
|
1255
1224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
1225
|
switch (errorCode) {
|
|
1257
1226
|
case "ArgumentException":
|
|
@@ -1268,14 +1237,12 @@ const deserializeAws_json1_1DeleteInstanceProfileCommandError = async (output, c
|
|
|
1268
1237
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1269
1238
|
default:
|
|
1270
1239
|
const parsedBody = parsedOutput.body;
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
$metadata,
|
|
1240
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1241
|
+
output,
|
|
1242
|
+
parsedBody,
|
|
1243
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1244
|
+
errorCode,
|
|
1277
1245
|
});
|
|
1278
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1279
1246
|
}
|
|
1280
1247
|
};
|
|
1281
1248
|
const deserializeAws_json1_1DeleteNetworkProfileCommand = async (output, context) => {
|
|
@@ -1297,7 +1264,6 @@ const deserializeAws_json1_1DeleteNetworkProfileCommandError = async (output, co
|
|
|
1297
1264
|
...output,
|
|
1298
1265
|
body: await parseBody(output.body, context),
|
|
1299
1266
|
};
|
|
1300
|
-
let response;
|
|
1301
1267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
1268
|
switch (errorCode) {
|
|
1303
1269
|
case "ArgumentException":
|
|
@@ -1314,14 +1280,12 @@ const deserializeAws_json1_1DeleteNetworkProfileCommandError = async (output, co
|
|
|
1314
1280
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1315
1281
|
default:
|
|
1316
1282
|
const parsedBody = parsedOutput.body;
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
$metadata,
|
|
1283
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1284
|
+
output,
|
|
1285
|
+
parsedBody,
|
|
1286
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1287
|
+
errorCode,
|
|
1323
1288
|
});
|
|
1324
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1325
1289
|
}
|
|
1326
1290
|
};
|
|
1327
1291
|
const deserializeAws_json1_1DeleteProjectCommand = async (output, context) => {
|
|
@@ -1343,7 +1307,6 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
|
|
|
1343
1307
|
...output,
|
|
1344
1308
|
body: await parseBody(output.body, context),
|
|
1345
1309
|
};
|
|
1346
|
-
let response;
|
|
1347
1310
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1348
1311
|
switch (errorCode) {
|
|
1349
1312
|
case "ArgumentException":
|
|
@@ -1360,14 +1323,12 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
|
|
|
1360
1323
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1361
1324
|
default:
|
|
1362
1325
|
const parsedBody = parsedOutput.body;
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
$metadata,
|
|
1326
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1327
|
+
output,
|
|
1328
|
+
parsedBody,
|
|
1329
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1330
|
+
errorCode,
|
|
1369
1331
|
});
|
|
1370
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1371
1332
|
}
|
|
1372
1333
|
};
|
|
1373
1334
|
const deserializeAws_json1_1DeleteRemoteAccessSessionCommand = async (output, context) => {
|
|
@@ -1389,7 +1350,6 @@ const deserializeAws_json1_1DeleteRemoteAccessSessionCommandError = async (outpu
|
|
|
1389
1350
|
...output,
|
|
1390
1351
|
body: await parseBody(output.body, context),
|
|
1391
1352
|
};
|
|
1392
|
-
let response;
|
|
1393
1353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
1354
|
switch (errorCode) {
|
|
1395
1355
|
case "ArgumentException":
|
|
@@ -1406,14 +1366,12 @@ const deserializeAws_json1_1DeleteRemoteAccessSessionCommandError = async (outpu
|
|
|
1406
1366
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1407
1367
|
default:
|
|
1408
1368
|
const parsedBody = parsedOutput.body;
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
$metadata,
|
|
1369
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1370
|
+
output,
|
|
1371
|
+
parsedBody,
|
|
1372
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1373
|
+
errorCode,
|
|
1415
1374
|
});
|
|
1416
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1417
1375
|
}
|
|
1418
1376
|
};
|
|
1419
1377
|
const deserializeAws_json1_1DeleteRunCommand = async (output, context) => {
|
|
@@ -1435,7 +1393,6 @@ const deserializeAws_json1_1DeleteRunCommandError = async (output, context) => {
|
|
|
1435
1393
|
...output,
|
|
1436
1394
|
body: await parseBody(output.body, context),
|
|
1437
1395
|
};
|
|
1438
|
-
let response;
|
|
1439
1396
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1440
1397
|
switch (errorCode) {
|
|
1441
1398
|
case "ArgumentException":
|
|
@@ -1452,14 +1409,12 @@ const deserializeAws_json1_1DeleteRunCommandError = async (output, context) => {
|
|
|
1452
1409
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1453
1410
|
default:
|
|
1454
1411
|
const parsedBody = parsedOutput.body;
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
$metadata,
|
|
1412
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1413
|
+
output,
|
|
1414
|
+
parsedBody,
|
|
1415
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1416
|
+
errorCode,
|
|
1461
1417
|
});
|
|
1462
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1463
1418
|
}
|
|
1464
1419
|
};
|
|
1465
1420
|
const deserializeAws_json1_1DeleteTestGridProjectCommand = async (output, context) => {
|
|
@@ -1481,7 +1436,6 @@ const deserializeAws_json1_1DeleteTestGridProjectCommandError = async (output, c
|
|
|
1481
1436
|
...output,
|
|
1482
1437
|
body: await parseBody(output.body, context),
|
|
1483
1438
|
};
|
|
1484
|
-
let response;
|
|
1485
1439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
1440
|
switch (errorCode) {
|
|
1487
1441
|
case "ArgumentException":
|
|
@@ -1498,14 +1452,12 @@ const deserializeAws_json1_1DeleteTestGridProjectCommandError = async (output, c
|
|
|
1498
1452
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
1499
1453
|
default:
|
|
1500
1454
|
const parsedBody = parsedOutput.body;
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
$metadata,
|
|
1455
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1456
|
+
output,
|
|
1457
|
+
parsedBody,
|
|
1458
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1459
|
+
errorCode,
|
|
1507
1460
|
});
|
|
1508
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1509
1461
|
}
|
|
1510
1462
|
};
|
|
1511
1463
|
const deserializeAws_json1_1DeleteUploadCommand = async (output, context) => {
|
|
@@ -1527,7 +1479,6 @@ const deserializeAws_json1_1DeleteUploadCommandError = async (output, context) =
|
|
|
1527
1479
|
...output,
|
|
1528
1480
|
body: await parseBody(output.body, context),
|
|
1529
1481
|
};
|
|
1530
|
-
let response;
|
|
1531
1482
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1532
1483
|
switch (errorCode) {
|
|
1533
1484
|
case "ArgumentException":
|
|
@@ -1544,14 +1495,12 @@ const deserializeAws_json1_1DeleteUploadCommandError = async (output, context) =
|
|
|
1544
1495
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1545
1496
|
default:
|
|
1546
1497
|
const parsedBody = parsedOutput.body;
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
$metadata,
|
|
1498
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1499
|
+
output,
|
|
1500
|
+
parsedBody,
|
|
1501
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1502
|
+
errorCode,
|
|
1553
1503
|
});
|
|
1554
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1555
1504
|
}
|
|
1556
1505
|
};
|
|
1557
1506
|
const deserializeAws_json1_1DeleteVPCEConfigurationCommand = async (output, context) => {
|
|
@@ -1573,7 +1522,6 @@ const deserializeAws_json1_1DeleteVPCEConfigurationCommandError = async (output,
|
|
|
1573
1522
|
...output,
|
|
1574
1523
|
body: await parseBody(output.body, context),
|
|
1575
1524
|
};
|
|
1576
|
-
let response;
|
|
1577
1525
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1578
1526
|
switch (errorCode) {
|
|
1579
1527
|
case "ArgumentException":
|
|
@@ -1590,14 +1538,12 @@ const deserializeAws_json1_1DeleteVPCEConfigurationCommandError = async (output,
|
|
|
1590
1538
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1591
1539
|
default:
|
|
1592
1540
|
const parsedBody = parsedOutput.body;
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
$metadata,
|
|
1541
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1542
|
+
output,
|
|
1543
|
+
parsedBody,
|
|
1544
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1545
|
+
errorCode,
|
|
1599
1546
|
});
|
|
1600
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1601
1547
|
}
|
|
1602
1548
|
};
|
|
1603
1549
|
const deserializeAws_json1_1GetAccountSettingsCommand = async (output, context) => {
|
|
@@ -1619,7 +1565,6 @@ const deserializeAws_json1_1GetAccountSettingsCommandError = async (output, cont
|
|
|
1619
1565
|
...output,
|
|
1620
1566
|
body: await parseBody(output.body, context),
|
|
1621
1567
|
};
|
|
1622
|
-
let response;
|
|
1623
1568
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
1569
|
switch (errorCode) {
|
|
1625
1570
|
case "ArgumentException":
|
|
@@ -1636,14 +1581,12 @@ const deserializeAws_json1_1GetAccountSettingsCommandError = async (output, cont
|
|
|
1636
1581
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1637
1582
|
default:
|
|
1638
1583
|
const parsedBody = parsedOutput.body;
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
$metadata,
|
|
1584
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1585
|
+
output,
|
|
1586
|
+
parsedBody,
|
|
1587
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1588
|
+
errorCode,
|
|
1645
1589
|
});
|
|
1646
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1647
1590
|
}
|
|
1648
1591
|
};
|
|
1649
1592
|
const deserializeAws_json1_1GetDeviceCommand = async (output, context) => {
|
|
@@ -1665,7 +1608,6 @@ const deserializeAws_json1_1GetDeviceCommandError = async (output, context) => {
|
|
|
1665
1608
|
...output,
|
|
1666
1609
|
body: await parseBody(output.body, context),
|
|
1667
1610
|
};
|
|
1668
|
-
let response;
|
|
1669
1611
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1670
1612
|
switch (errorCode) {
|
|
1671
1613
|
case "ArgumentException":
|
|
@@ -1682,14 +1624,12 @@ const deserializeAws_json1_1GetDeviceCommandError = async (output, context) => {
|
|
|
1682
1624
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1683
1625
|
default:
|
|
1684
1626
|
const parsedBody = parsedOutput.body;
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
$metadata,
|
|
1627
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1628
|
+
output,
|
|
1629
|
+
parsedBody,
|
|
1630
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1631
|
+
errorCode,
|
|
1691
1632
|
});
|
|
1692
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1693
1633
|
}
|
|
1694
1634
|
};
|
|
1695
1635
|
const deserializeAws_json1_1GetDeviceInstanceCommand = async (output, context) => {
|
|
@@ -1711,7 +1651,6 @@ const deserializeAws_json1_1GetDeviceInstanceCommandError = async (output, conte
|
|
|
1711
1651
|
...output,
|
|
1712
1652
|
body: await parseBody(output.body, context),
|
|
1713
1653
|
};
|
|
1714
|
-
let response;
|
|
1715
1654
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
1655
|
switch (errorCode) {
|
|
1717
1656
|
case "ArgumentException":
|
|
@@ -1728,14 +1667,12 @@ const deserializeAws_json1_1GetDeviceInstanceCommandError = async (output, conte
|
|
|
1728
1667
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1729
1668
|
default:
|
|
1730
1669
|
const parsedBody = parsedOutput.body;
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
$metadata,
|
|
1670
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1671
|
+
output,
|
|
1672
|
+
parsedBody,
|
|
1673
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1674
|
+
errorCode,
|
|
1737
1675
|
});
|
|
1738
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1739
1676
|
}
|
|
1740
1677
|
};
|
|
1741
1678
|
const deserializeAws_json1_1GetDevicePoolCommand = async (output, context) => {
|
|
@@ -1757,7 +1694,6 @@ const deserializeAws_json1_1GetDevicePoolCommandError = async (output, context)
|
|
|
1757
1694
|
...output,
|
|
1758
1695
|
body: await parseBody(output.body, context),
|
|
1759
1696
|
};
|
|
1760
|
-
let response;
|
|
1761
1697
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1698
|
switch (errorCode) {
|
|
1763
1699
|
case "ArgumentException":
|
|
@@ -1774,14 +1710,12 @@ const deserializeAws_json1_1GetDevicePoolCommandError = async (output, context)
|
|
|
1774
1710
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1775
1711
|
default:
|
|
1776
1712
|
const parsedBody = parsedOutput.body;
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
$metadata,
|
|
1713
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1714
|
+
output,
|
|
1715
|
+
parsedBody,
|
|
1716
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1717
|
+
errorCode,
|
|
1783
1718
|
});
|
|
1784
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1785
1719
|
}
|
|
1786
1720
|
};
|
|
1787
1721
|
const deserializeAws_json1_1GetDevicePoolCompatibilityCommand = async (output, context) => {
|
|
@@ -1803,7 +1737,6 @@ const deserializeAws_json1_1GetDevicePoolCompatibilityCommandError = async (outp
|
|
|
1803
1737
|
...output,
|
|
1804
1738
|
body: await parseBody(output.body, context),
|
|
1805
1739
|
};
|
|
1806
|
-
let response;
|
|
1807
1740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
1741
|
switch (errorCode) {
|
|
1809
1742
|
case "ArgumentException":
|
|
@@ -1820,14 +1753,12 @@ const deserializeAws_json1_1GetDevicePoolCompatibilityCommandError = async (outp
|
|
|
1820
1753
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1821
1754
|
default:
|
|
1822
1755
|
const parsedBody = parsedOutput.body;
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
$metadata,
|
|
1756
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1757
|
+
output,
|
|
1758
|
+
parsedBody,
|
|
1759
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1760
|
+
errorCode,
|
|
1829
1761
|
});
|
|
1830
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1831
1762
|
}
|
|
1832
1763
|
};
|
|
1833
1764
|
const deserializeAws_json1_1GetInstanceProfileCommand = async (output, context) => {
|
|
@@ -1849,7 +1780,6 @@ const deserializeAws_json1_1GetInstanceProfileCommandError = async (output, cont
|
|
|
1849
1780
|
...output,
|
|
1850
1781
|
body: await parseBody(output.body, context),
|
|
1851
1782
|
};
|
|
1852
|
-
let response;
|
|
1853
1783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1854
1784
|
switch (errorCode) {
|
|
1855
1785
|
case "ArgumentException":
|
|
@@ -1866,14 +1796,12 @@ const deserializeAws_json1_1GetInstanceProfileCommandError = async (output, cont
|
|
|
1866
1796
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1867
1797
|
default:
|
|
1868
1798
|
const parsedBody = parsedOutput.body;
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
$metadata,
|
|
1799
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1800
|
+
output,
|
|
1801
|
+
parsedBody,
|
|
1802
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1803
|
+
errorCode,
|
|
1875
1804
|
});
|
|
1876
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1877
1805
|
}
|
|
1878
1806
|
};
|
|
1879
1807
|
const deserializeAws_json1_1GetJobCommand = async (output, context) => {
|
|
@@ -1895,7 +1823,6 @@ const deserializeAws_json1_1GetJobCommandError = async (output, context) => {
|
|
|
1895
1823
|
...output,
|
|
1896
1824
|
body: await parseBody(output.body, context),
|
|
1897
1825
|
};
|
|
1898
|
-
let response;
|
|
1899
1826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1900
1827
|
switch (errorCode) {
|
|
1901
1828
|
case "ArgumentException":
|
|
@@ -1912,14 +1839,12 @@ const deserializeAws_json1_1GetJobCommandError = async (output, context) => {
|
|
|
1912
1839
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1913
1840
|
default:
|
|
1914
1841
|
const parsedBody = parsedOutput.body;
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
$metadata,
|
|
1842
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1843
|
+
output,
|
|
1844
|
+
parsedBody,
|
|
1845
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1846
|
+
errorCode,
|
|
1921
1847
|
});
|
|
1922
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1923
1848
|
}
|
|
1924
1849
|
};
|
|
1925
1850
|
const deserializeAws_json1_1GetNetworkProfileCommand = async (output, context) => {
|
|
@@ -1941,7 +1866,6 @@ const deserializeAws_json1_1GetNetworkProfileCommandError = async (output, conte
|
|
|
1941
1866
|
...output,
|
|
1942
1867
|
body: await parseBody(output.body, context),
|
|
1943
1868
|
};
|
|
1944
|
-
let response;
|
|
1945
1869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1946
1870
|
switch (errorCode) {
|
|
1947
1871
|
case "ArgumentException":
|
|
@@ -1958,14 +1882,12 @@ const deserializeAws_json1_1GetNetworkProfileCommandError = async (output, conte
|
|
|
1958
1882
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
1959
1883
|
default:
|
|
1960
1884
|
const parsedBody = parsedOutput.body;
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
$metadata,
|
|
1885
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1886
|
+
output,
|
|
1887
|
+
parsedBody,
|
|
1888
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1889
|
+
errorCode,
|
|
1967
1890
|
});
|
|
1968
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1969
1891
|
}
|
|
1970
1892
|
};
|
|
1971
1893
|
const deserializeAws_json1_1GetOfferingStatusCommand = async (output, context) => {
|
|
@@ -1987,7 +1909,6 @@ const deserializeAws_json1_1GetOfferingStatusCommandError = async (output, conte
|
|
|
1987
1909
|
...output,
|
|
1988
1910
|
body: await parseBody(output.body, context),
|
|
1989
1911
|
};
|
|
1990
|
-
let response;
|
|
1991
1912
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
1913
|
switch (errorCode) {
|
|
1993
1914
|
case "ArgumentException":
|
|
@@ -2007,14 +1928,12 @@ const deserializeAws_json1_1GetOfferingStatusCommandError = async (output, conte
|
|
|
2007
1928
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2008
1929
|
default:
|
|
2009
1930
|
const parsedBody = parsedOutput.body;
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
$metadata,
|
|
1931
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1932
|
+
output,
|
|
1933
|
+
parsedBody,
|
|
1934
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1935
|
+
errorCode,
|
|
2016
1936
|
});
|
|
2017
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2018
1937
|
}
|
|
2019
1938
|
};
|
|
2020
1939
|
const deserializeAws_json1_1GetProjectCommand = async (output, context) => {
|
|
@@ -2036,7 +1955,6 @@ const deserializeAws_json1_1GetProjectCommandError = async (output, context) =>
|
|
|
2036
1955
|
...output,
|
|
2037
1956
|
body: await parseBody(output.body, context),
|
|
2038
1957
|
};
|
|
2039
|
-
let response;
|
|
2040
1958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
1959
|
switch (errorCode) {
|
|
2042
1960
|
case "ArgumentException":
|
|
@@ -2053,14 +1971,12 @@ const deserializeAws_json1_1GetProjectCommandError = async (output, context) =>
|
|
|
2053
1971
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2054
1972
|
default:
|
|
2055
1973
|
const parsedBody = parsedOutput.body;
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
$metadata,
|
|
1974
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1975
|
+
output,
|
|
1976
|
+
parsedBody,
|
|
1977
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
1978
|
+
errorCode,
|
|
2062
1979
|
});
|
|
2063
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2064
1980
|
}
|
|
2065
1981
|
};
|
|
2066
1982
|
const deserializeAws_json1_1GetRemoteAccessSessionCommand = async (output, context) => {
|
|
@@ -2082,7 +1998,6 @@ const deserializeAws_json1_1GetRemoteAccessSessionCommandError = async (output,
|
|
|
2082
1998
|
...output,
|
|
2083
1999
|
body: await parseBody(output.body, context),
|
|
2084
2000
|
};
|
|
2085
|
-
let response;
|
|
2086
2001
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2087
2002
|
switch (errorCode) {
|
|
2088
2003
|
case "ArgumentException":
|
|
@@ -2099,14 +2014,12 @@ const deserializeAws_json1_1GetRemoteAccessSessionCommandError = async (output,
|
|
|
2099
2014
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2100
2015
|
default:
|
|
2101
2016
|
const parsedBody = parsedOutput.body;
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
$metadata,
|
|
2017
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2018
|
+
output,
|
|
2019
|
+
parsedBody,
|
|
2020
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2021
|
+
errorCode,
|
|
2108
2022
|
});
|
|
2109
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2110
2023
|
}
|
|
2111
2024
|
};
|
|
2112
2025
|
const deserializeAws_json1_1GetRunCommand = async (output, context) => {
|
|
@@ -2128,7 +2041,6 @@ const deserializeAws_json1_1GetRunCommandError = async (output, context) => {
|
|
|
2128
2041
|
...output,
|
|
2129
2042
|
body: await parseBody(output.body, context),
|
|
2130
2043
|
};
|
|
2131
|
-
let response;
|
|
2132
2044
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
2045
|
switch (errorCode) {
|
|
2134
2046
|
case "ArgumentException":
|
|
@@ -2145,14 +2057,12 @@ const deserializeAws_json1_1GetRunCommandError = async (output, context) => {
|
|
|
2145
2057
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2146
2058
|
default:
|
|
2147
2059
|
const parsedBody = parsedOutput.body;
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
$metadata,
|
|
2060
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2061
|
+
output,
|
|
2062
|
+
parsedBody,
|
|
2063
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2064
|
+
errorCode,
|
|
2154
2065
|
});
|
|
2155
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2156
2066
|
}
|
|
2157
2067
|
};
|
|
2158
2068
|
const deserializeAws_json1_1GetSuiteCommand = async (output, context) => {
|
|
@@ -2174,7 +2084,6 @@ const deserializeAws_json1_1GetSuiteCommandError = async (output, context) => {
|
|
|
2174
2084
|
...output,
|
|
2175
2085
|
body: await parseBody(output.body, context),
|
|
2176
2086
|
};
|
|
2177
|
-
let response;
|
|
2178
2087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
2088
|
switch (errorCode) {
|
|
2180
2089
|
case "ArgumentException":
|
|
@@ -2191,14 +2100,12 @@ const deserializeAws_json1_1GetSuiteCommandError = async (output, context) => {
|
|
|
2191
2100
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2192
2101
|
default:
|
|
2193
2102
|
const parsedBody = parsedOutput.body;
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
$metadata,
|
|
2103
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2104
|
+
output,
|
|
2105
|
+
parsedBody,
|
|
2106
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2107
|
+
errorCode,
|
|
2200
2108
|
});
|
|
2201
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2202
2109
|
}
|
|
2203
2110
|
};
|
|
2204
2111
|
const deserializeAws_json1_1GetTestCommand = async (output, context) => {
|
|
@@ -2220,7 +2127,6 @@ const deserializeAws_json1_1GetTestCommandError = async (output, context) => {
|
|
|
2220
2127
|
...output,
|
|
2221
2128
|
body: await parseBody(output.body, context),
|
|
2222
2129
|
};
|
|
2223
|
-
let response;
|
|
2224
2130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
2131
|
switch (errorCode) {
|
|
2226
2132
|
case "ArgumentException":
|
|
@@ -2237,14 +2143,12 @@ const deserializeAws_json1_1GetTestCommandError = async (output, context) => {
|
|
|
2237
2143
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2238
2144
|
default:
|
|
2239
2145
|
const parsedBody = parsedOutput.body;
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
$metadata,
|
|
2146
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2147
|
+
output,
|
|
2148
|
+
parsedBody,
|
|
2149
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2150
|
+
errorCode,
|
|
2246
2151
|
});
|
|
2247
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2248
2152
|
}
|
|
2249
2153
|
};
|
|
2250
2154
|
const deserializeAws_json1_1GetTestGridProjectCommand = async (output, context) => {
|
|
@@ -2266,7 +2170,6 @@ const deserializeAws_json1_1GetTestGridProjectCommandError = async (output, cont
|
|
|
2266
2170
|
...output,
|
|
2267
2171
|
body: await parseBody(output.body, context),
|
|
2268
2172
|
};
|
|
2269
|
-
let response;
|
|
2270
2173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
2174
|
switch (errorCode) {
|
|
2272
2175
|
case "ArgumentException":
|
|
@@ -2280,14 +2183,12 @@ const deserializeAws_json1_1GetTestGridProjectCommandError = async (output, cont
|
|
|
2280
2183
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2281
2184
|
default:
|
|
2282
2185
|
const parsedBody = parsedOutput.body;
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
$metadata,
|
|
2186
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2187
|
+
output,
|
|
2188
|
+
parsedBody,
|
|
2189
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2190
|
+
errorCode,
|
|
2289
2191
|
});
|
|
2290
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2291
2192
|
}
|
|
2292
2193
|
};
|
|
2293
2194
|
const deserializeAws_json1_1GetTestGridSessionCommand = async (output, context) => {
|
|
@@ -2309,7 +2210,6 @@ const deserializeAws_json1_1GetTestGridSessionCommandError = async (output, cont
|
|
|
2309
2210
|
...output,
|
|
2310
2211
|
body: await parseBody(output.body, context),
|
|
2311
2212
|
};
|
|
2312
|
-
let response;
|
|
2313
2213
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
2214
|
switch (errorCode) {
|
|
2315
2215
|
case "ArgumentException":
|
|
@@ -2323,14 +2223,12 @@ const deserializeAws_json1_1GetTestGridSessionCommandError = async (output, cont
|
|
|
2323
2223
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
2324
2224
|
default:
|
|
2325
2225
|
const parsedBody = parsedOutput.body;
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
$metadata,
|
|
2226
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2227
|
+
output,
|
|
2228
|
+
parsedBody,
|
|
2229
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2230
|
+
errorCode,
|
|
2332
2231
|
});
|
|
2333
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2334
2232
|
}
|
|
2335
2233
|
};
|
|
2336
2234
|
const deserializeAws_json1_1GetUploadCommand = async (output, context) => {
|
|
@@ -2352,7 +2250,6 @@ const deserializeAws_json1_1GetUploadCommandError = async (output, context) => {
|
|
|
2352
2250
|
...output,
|
|
2353
2251
|
body: await parseBody(output.body, context),
|
|
2354
2252
|
};
|
|
2355
|
-
let response;
|
|
2356
2253
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
2254
|
switch (errorCode) {
|
|
2358
2255
|
case "ArgumentException":
|
|
@@ -2369,14 +2266,12 @@ const deserializeAws_json1_1GetUploadCommandError = async (output, context) => {
|
|
|
2369
2266
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2370
2267
|
default:
|
|
2371
2268
|
const parsedBody = parsedOutput.body;
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
$metadata,
|
|
2269
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2270
|
+
output,
|
|
2271
|
+
parsedBody,
|
|
2272
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2273
|
+
errorCode,
|
|
2378
2274
|
});
|
|
2379
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2380
2275
|
}
|
|
2381
2276
|
};
|
|
2382
2277
|
const deserializeAws_json1_1GetVPCEConfigurationCommand = async (output, context) => {
|
|
@@ -2398,7 +2293,6 @@ const deserializeAws_json1_1GetVPCEConfigurationCommandError = async (output, co
|
|
|
2398
2293
|
...output,
|
|
2399
2294
|
body: await parseBody(output.body, context),
|
|
2400
2295
|
};
|
|
2401
|
-
let response;
|
|
2402
2296
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2403
2297
|
switch (errorCode) {
|
|
2404
2298
|
case "ArgumentException":
|
|
@@ -2412,14 +2306,12 @@ const deserializeAws_json1_1GetVPCEConfigurationCommandError = async (output, co
|
|
|
2412
2306
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2413
2307
|
default:
|
|
2414
2308
|
const parsedBody = parsedOutput.body;
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
$metadata,
|
|
2309
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2310
|
+
output,
|
|
2311
|
+
parsedBody,
|
|
2312
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2313
|
+
errorCode,
|
|
2421
2314
|
});
|
|
2422
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2423
2315
|
}
|
|
2424
2316
|
};
|
|
2425
2317
|
const deserializeAws_json1_1InstallToRemoteAccessSessionCommand = async (output, context) => {
|
|
@@ -2441,7 +2333,6 @@ const deserializeAws_json1_1InstallToRemoteAccessSessionCommandError = async (ou
|
|
|
2441
2333
|
...output,
|
|
2442
2334
|
body: await parseBody(output.body, context),
|
|
2443
2335
|
};
|
|
2444
|
-
let response;
|
|
2445
2336
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2446
2337
|
switch (errorCode) {
|
|
2447
2338
|
case "ArgumentException":
|
|
@@ -2458,14 +2349,12 @@ const deserializeAws_json1_1InstallToRemoteAccessSessionCommandError = async (ou
|
|
|
2458
2349
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2459
2350
|
default:
|
|
2460
2351
|
const parsedBody = parsedOutput.body;
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
$metadata,
|
|
2352
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2353
|
+
output,
|
|
2354
|
+
parsedBody,
|
|
2355
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2356
|
+
errorCode,
|
|
2467
2357
|
});
|
|
2468
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2469
2358
|
}
|
|
2470
2359
|
};
|
|
2471
2360
|
const deserializeAws_json1_1ListArtifactsCommand = async (output, context) => {
|
|
@@ -2487,7 +2376,6 @@ const deserializeAws_json1_1ListArtifactsCommandError = async (output, context)
|
|
|
2487
2376
|
...output,
|
|
2488
2377
|
body: await parseBody(output.body, context),
|
|
2489
2378
|
};
|
|
2490
|
-
let response;
|
|
2491
2379
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2492
2380
|
switch (errorCode) {
|
|
2493
2381
|
case "ArgumentException":
|
|
@@ -2504,14 +2392,12 @@ const deserializeAws_json1_1ListArtifactsCommandError = async (output, context)
|
|
|
2504
2392
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2505
2393
|
default:
|
|
2506
2394
|
const parsedBody = parsedOutput.body;
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
$metadata,
|
|
2395
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2396
|
+
output,
|
|
2397
|
+
parsedBody,
|
|
2398
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2399
|
+
errorCode,
|
|
2513
2400
|
});
|
|
2514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2515
2401
|
}
|
|
2516
2402
|
};
|
|
2517
2403
|
const deserializeAws_json1_1ListDeviceInstancesCommand = async (output, context) => {
|
|
@@ -2533,7 +2419,6 @@ const deserializeAws_json1_1ListDeviceInstancesCommandError = async (output, con
|
|
|
2533
2419
|
...output,
|
|
2534
2420
|
body: await parseBody(output.body, context),
|
|
2535
2421
|
};
|
|
2536
|
-
let response;
|
|
2537
2422
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2538
2423
|
switch (errorCode) {
|
|
2539
2424
|
case "ArgumentException":
|
|
@@ -2550,14 +2435,12 @@ const deserializeAws_json1_1ListDeviceInstancesCommandError = async (output, con
|
|
|
2550
2435
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2551
2436
|
default:
|
|
2552
2437
|
const parsedBody = parsedOutput.body;
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
$metadata,
|
|
2438
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2439
|
+
output,
|
|
2440
|
+
parsedBody,
|
|
2441
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2442
|
+
errorCode,
|
|
2559
2443
|
});
|
|
2560
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2561
2444
|
}
|
|
2562
2445
|
};
|
|
2563
2446
|
const deserializeAws_json1_1ListDevicePoolsCommand = async (output, context) => {
|
|
@@ -2579,7 +2462,6 @@ const deserializeAws_json1_1ListDevicePoolsCommandError = async (output, context
|
|
|
2579
2462
|
...output,
|
|
2580
2463
|
body: await parseBody(output.body, context),
|
|
2581
2464
|
};
|
|
2582
|
-
let response;
|
|
2583
2465
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
2466
|
switch (errorCode) {
|
|
2585
2467
|
case "ArgumentException":
|
|
@@ -2596,14 +2478,12 @@ const deserializeAws_json1_1ListDevicePoolsCommandError = async (output, context
|
|
|
2596
2478
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2597
2479
|
default:
|
|
2598
2480
|
const parsedBody = parsedOutput.body;
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
$metadata,
|
|
2481
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2482
|
+
output,
|
|
2483
|
+
parsedBody,
|
|
2484
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2485
|
+
errorCode,
|
|
2605
2486
|
});
|
|
2606
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2607
2487
|
}
|
|
2608
2488
|
};
|
|
2609
2489
|
const deserializeAws_json1_1ListDevicesCommand = async (output, context) => {
|
|
@@ -2625,7 +2505,6 @@ const deserializeAws_json1_1ListDevicesCommandError = async (output, context) =>
|
|
|
2625
2505
|
...output,
|
|
2626
2506
|
body: await parseBody(output.body, context),
|
|
2627
2507
|
};
|
|
2628
|
-
let response;
|
|
2629
2508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2630
2509
|
switch (errorCode) {
|
|
2631
2510
|
case "ArgumentException":
|
|
@@ -2642,14 +2521,12 @@ const deserializeAws_json1_1ListDevicesCommandError = async (output, context) =>
|
|
|
2642
2521
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2643
2522
|
default:
|
|
2644
2523
|
const parsedBody = parsedOutput.body;
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
$metadata,
|
|
2524
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2525
|
+
output,
|
|
2526
|
+
parsedBody,
|
|
2527
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2528
|
+
errorCode,
|
|
2651
2529
|
});
|
|
2652
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2653
2530
|
}
|
|
2654
2531
|
};
|
|
2655
2532
|
const deserializeAws_json1_1ListInstanceProfilesCommand = async (output, context) => {
|
|
@@ -2671,7 +2548,6 @@ const deserializeAws_json1_1ListInstanceProfilesCommandError = async (output, co
|
|
|
2671
2548
|
...output,
|
|
2672
2549
|
body: await parseBody(output.body, context),
|
|
2673
2550
|
};
|
|
2674
|
-
let response;
|
|
2675
2551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2676
2552
|
switch (errorCode) {
|
|
2677
2553
|
case "ArgumentException":
|
|
@@ -2688,14 +2564,12 @@ const deserializeAws_json1_1ListInstanceProfilesCommandError = async (output, co
|
|
|
2688
2564
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2689
2565
|
default:
|
|
2690
2566
|
const parsedBody = parsedOutput.body;
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
$metadata,
|
|
2567
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2568
|
+
output,
|
|
2569
|
+
parsedBody,
|
|
2570
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2571
|
+
errorCode,
|
|
2697
2572
|
});
|
|
2698
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2699
2573
|
}
|
|
2700
2574
|
};
|
|
2701
2575
|
const deserializeAws_json1_1ListJobsCommand = async (output, context) => {
|
|
@@ -2717,7 +2591,6 @@ const deserializeAws_json1_1ListJobsCommandError = async (output, context) => {
|
|
|
2717
2591
|
...output,
|
|
2718
2592
|
body: await parseBody(output.body, context),
|
|
2719
2593
|
};
|
|
2720
|
-
let response;
|
|
2721
2594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2722
2595
|
switch (errorCode) {
|
|
2723
2596
|
case "ArgumentException":
|
|
@@ -2734,14 +2607,12 @@ const deserializeAws_json1_1ListJobsCommandError = async (output, context) => {
|
|
|
2734
2607
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2735
2608
|
default:
|
|
2736
2609
|
const parsedBody = parsedOutput.body;
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
$metadata,
|
|
2610
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2611
|
+
output,
|
|
2612
|
+
parsedBody,
|
|
2613
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2614
|
+
errorCode,
|
|
2743
2615
|
});
|
|
2744
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2745
2616
|
}
|
|
2746
2617
|
};
|
|
2747
2618
|
const deserializeAws_json1_1ListNetworkProfilesCommand = async (output, context) => {
|
|
@@ -2763,7 +2634,6 @@ const deserializeAws_json1_1ListNetworkProfilesCommandError = async (output, con
|
|
|
2763
2634
|
...output,
|
|
2764
2635
|
body: await parseBody(output.body, context),
|
|
2765
2636
|
};
|
|
2766
|
-
let response;
|
|
2767
2637
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2768
2638
|
switch (errorCode) {
|
|
2769
2639
|
case "ArgumentException":
|
|
@@ -2780,14 +2650,12 @@ const deserializeAws_json1_1ListNetworkProfilesCommandError = async (output, con
|
|
|
2780
2650
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2781
2651
|
default:
|
|
2782
2652
|
const parsedBody = parsedOutput.body;
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
$metadata,
|
|
2653
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2654
|
+
output,
|
|
2655
|
+
parsedBody,
|
|
2656
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2657
|
+
errorCode,
|
|
2789
2658
|
});
|
|
2790
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2791
2659
|
}
|
|
2792
2660
|
};
|
|
2793
2661
|
const deserializeAws_json1_1ListOfferingPromotionsCommand = async (output, context) => {
|
|
@@ -2809,7 +2677,6 @@ const deserializeAws_json1_1ListOfferingPromotionsCommandError = async (output,
|
|
|
2809
2677
|
...output,
|
|
2810
2678
|
body: await parseBody(output.body, context),
|
|
2811
2679
|
};
|
|
2812
|
-
let response;
|
|
2813
2680
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2814
2681
|
switch (errorCode) {
|
|
2815
2682
|
case "ArgumentException":
|
|
@@ -2829,14 +2696,12 @@ const deserializeAws_json1_1ListOfferingPromotionsCommandError = async (output,
|
|
|
2829
2696
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2830
2697
|
default:
|
|
2831
2698
|
const parsedBody = parsedOutput.body;
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
$metadata,
|
|
2699
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2700
|
+
output,
|
|
2701
|
+
parsedBody,
|
|
2702
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2703
|
+
errorCode,
|
|
2838
2704
|
});
|
|
2839
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2840
2705
|
}
|
|
2841
2706
|
};
|
|
2842
2707
|
const deserializeAws_json1_1ListOfferingsCommand = async (output, context) => {
|
|
@@ -2858,7 +2723,6 @@ const deserializeAws_json1_1ListOfferingsCommandError = async (output, context)
|
|
|
2858
2723
|
...output,
|
|
2859
2724
|
body: await parseBody(output.body, context),
|
|
2860
2725
|
};
|
|
2861
|
-
let response;
|
|
2862
2726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2863
2727
|
switch (errorCode) {
|
|
2864
2728
|
case "ArgumentException":
|
|
@@ -2878,14 +2742,12 @@ const deserializeAws_json1_1ListOfferingsCommandError = async (output, context)
|
|
|
2878
2742
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2879
2743
|
default:
|
|
2880
2744
|
const parsedBody = parsedOutput.body;
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
$metadata,
|
|
2745
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2746
|
+
output,
|
|
2747
|
+
parsedBody,
|
|
2748
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2749
|
+
errorCode,
|
|
2887
2750
|
});
|
|
2888
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2889
2751
|
}
|
|
2890
2752
|
};
|
|
2891
2753
|
const deserializeAws_json1_1ListOfferingTransactionsCommand = async (output, context) => {
|
|
@@ -2907,7 +2769,6 @@ const deserializeAws_json1_1ListOfferingTransactionsCommandError = async (output
|
|
|
2907
2769
|
...output,
|
|
2908
2770
|
body: await parseBody(output.body, context),
|
|
2909
2771
|
};
|
|
2910
|
-
let response;
|
|
2911
2772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2912
2773
|
switch (errorCode) {
|
|
2913
2774
|
case "ArgumentException":
|
|
@@ -2927,14 +2788,12 @@ const deserializeAws_json1_1ListOfferingTransactionsCommandError = async (output
|
|
|
2927
2788
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2928
2789
|
default:
|
|
2929
2790
|
const parsedBody = parsedOutput.body;
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
$metadata,
|
|
2791
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2792
|
+
output,
|
|
2793
|
+
parsedBody,
|
|
2794
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2795
|
+
errorCode,
|
|
2936
2796
|
});
|
|
2937
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2938
2797
|
}
|
|
2939
2798
|
};
|
|
2940
2799
|
const deserializeAws_json1_1ListProjectsCommand = async (output, context) => {
|
|
@@ -2956,7 +2815,6 @@ const deserializeAws_json1_1ListProjectsCommandError = async (output, context) =
|
|
|
2956
2815
|
...output,
|
|
2957
2816
|
body: await parseBody(output.body, context),
|
|
2958
2817
|
};
|
|
2959
|
-
let response;
|
|
2960
2818
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2961
2819
|
switch (errorCode) {
|
|
2962
2820
|
case "ArgumentException":
|
|
@@ -2973,14 +2831,12 @@ const deserializeAws_json1_1ListProjectsCommandError = async (output, context) =
|
|
|
2973
2831
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
2974
2832
|
default:
|
|
2975
2833
|
const parsedBody = parsedOutput.body;
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
$metadata,
|
|
2834
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2835
|
+
output,
|
|
2836
|
+
parsedBody,
|
|
2837
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2838
|
+
errorCode,
|
|
2982
2839
|
});
|
|
2983
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2984
2840
|
}
|
|
2985
2841
|
};
|
|
2986
2842
|
const deserializeAws_json1_1ListRemoteAccessSessionsCommand = async (output, context) => {
|
|
@@ -3002,7 +2858,6 @@ const deserializeAws_json1_1ListRemoteAccessSessionsCommandError = async (output
|
|
|
3002
2858
|
...output,
|
|
3003
2859
|
body: await parseBody(output.body, context),
|
|
3004
2860
|
};
|
|
3005
|
-
let response;
|
|
3006
2861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3007
2862
|
switch (errorCode) {
|
|
3008
2863
|
case "ArgumentException":
|
|
@@ -3019,14 +2874,12 @@ const deserializeAws_json1_1ListRemoteAccessSessionsCommandError = async (output
|
|
|
3019
2874
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3020
2875
|
default:
|
|
3021
2876
|
const parsedBody = parsedOutput.body;
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
$metadata,
|
|
2877
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2878
|
+
output,
|
|
2879
|
+
parsedBody,
|
|
2880
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2881
|
+
errorCode,
|
|
3028
2882
|
});
|
|
3029
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3030
2883
|
}
|
|
3031
2884
|
};
|
|
3032
2885
|
const deserializeAws_json1_1ListRunsCommand = async (output, context) => {
|
|
@@ -3048,7 +2901,6 @@ const deserializeAws_json1_1ListRunsCommandError = async (output, context) => {
|
|
|
3048
2901
|
...output,
|
|
3049
2902
|
body: await parseBody(output.body, context),
|
|
3050
2903
|
};
|
|
3051
|
-
let response;
|
|
3052
2904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
2905
|
switch (errorCode) {
|
|
3054
2906
|
case "ArgumentException":
|
|
@@ -3065,14 +2917,12 @@ const deserializeAws_json1_1ListRunsCommandError = async (output, context) => {
|
|
|
3065
2917
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3066
2918
|
default:
|
|
3067
2919
|
const parsedBody = parsedOutput.body;
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
$metadata,
|
|
2920
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2921
|
+
output,
|
|
2922
|
+
parsedBody,
|
|
2923
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2924
|
+
errorCode,
|
|
3074
2925
|
});
|
|
3075
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3076
2926
|
}
|
|
3077
2927
|
};
|
|
3078
2928
|
const deserializeAws_json1_1ListSamplesCommand = async (output, context) => {
|
|
@@ -3094,7 +2944,6 @@ const deserializeAws_json1_1ListSamplesCommandError = async (output, context) =>
|
|
|
3094
2944
|
...output,
|
|
3095
2945
|
body: await parseBody(output.body, context),
|
|
3096
2946
|
};
|
|
3097
|
-
let response;
|
|
3098
2947
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3099
2948
|
switch (errorCode) {
|
|
3100
2949
|
case "ArgumentException":
|
|
@@ -3111,14 +2960,12 @@ const deserializeAws_json1_1ListSamplesCommandError = async (output, context) =>
|
|
|
3111
2960
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3112
2961
|
default:
|
|
3113
2962
|
const parsedBody = parsedOutput.body;
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
$metadata,
|
|
2963
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2964
|
+
output,
|
|
2965
|
+
parsedBody,
|
|
2966
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
2967
|
+
errorCode,
|
|
3120
2968
|
});
|
|
3121
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3122
2969
|
}
|
|
3123
2970
|
};
|
|
3124
2971
|
const deserializeAws_json1_1ListSuitesCommand = async (output, context) => {
|
|
@@ -3140,7 +2987,6 @@ const deserializeAws_json1_1ListSuitesCommandError = async (output, context) =>
|
|
|
3140
2987
|
...output,
|
|
3141
2988
|
body: await parseBody(output.body, context),
|
|
3142
2989
|
};
|
|
3143
|
-
let response;
|
|
3144
2990
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3145
2991
|
switch (errorCode) {
|
|
3146
2992
|
case "ArgumentException":
|
|
@@ -3157,14 +3003,12 @@ const deserializeAws_json1_1ListSuitesCommandError = async (output, context) =>
|
|
|
3157
3003
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3158
3004
|
default:
|
|
3159
3005
|
const parsedBody = parsedOutput.body;
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
$metadata,
|
|
3006
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3007
|
+
output,
|
|
3008
|
+
parsedBody,
|
|
3009
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3010
|
+
errorCode,
|
|
3166
3011
|
});
|
|
3167
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3168
3012
|
}
|
|
3169
3013
|
};
|
|
3170
3014
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -3186,7 +3030,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3186
3030
|
...output,
|
|
3187
3031
|
body: await parseBody(output.body, context),
|
|
3188
3032
|
};
|
|
3189
|
-
let response;
|
|
3190
3033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3191
3034
|
switch (errorCode) {
|
|
3192
3035
|
case "ArgumentException":
|
|
@@ -3200,14 +3043,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3200
3043
|
throw await deserializeAws_json1_1TagOperationExceptionResponse(parsedOutput, context);
|
|
3201
3044
|
default:
|
|
3202
3045
|
const parsedBody = parsedOutput.body;
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
$metadata,
|
|
3046
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3047
|
+
output,
|
|
3048
|
+
parsedBody,
|
|
3049
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3050
|
+
errorCode,
|
|
3209
3051
|
});
|
|
3210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3211
3052
|
}
|
|
3212
3053
|
};
|
|
3213
3054
|
const deserializeAws_json1_1ListTestGridProjectsCommand = async (output, context) => {
|
|
@@ -3229,7 +3070,6 @@ const deserializeAws_json1_1ListTestGridProjectsCommandError = async (output, co
|
|
|
3229
3070
|
...output,
|
|
3230
3071
|
body: await parseBody(output.body, context),
|
|
3231
3072
|
};
|
|
3232
|
-
let response;
|
|
3233
3073
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3234
3074
|
switch (errorCode) {
|
|
3235
3075
|
case "ArgumentException":
|
|
@@ -3240,14 +3080,12 @@ const deserializeAws_json1_1ListTestGridProjectsCommandError = async (output, co
|
|
|
3240
3080
|
throw await deserializeAws_json1_1InternalServiceExceptionResponse(parsedOutput, context);
|
|
3241
3081
|
default:
|
|
3242
3082
|
const parsedBody = parsedOutput.body;
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
$metadata,
|
|
3083
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3084
|
+
output,
|
|
3085
|
+
parsedBody,
|
|
3086
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3087
|
+
errorCode,
|
|
3249
3088
|
});
|
|
3250
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3251
3089
|
}
|
|
3252
3090
|
};
|
|
3253
3091
|
const deserializeAws_json1_1ListTestGridSessionActionsCommand = async (output, context) => {
|
|
@@ -3269,7 +3107,6 @@ const deserializeAws_json1_1ListTestGridSessionActionsCommandError = async (outp
|
|
|
3269
3107
|
...output,
|
|
3270
3108
|
body: await parseBody(output.body, context),
|
|
3271
3109
|
};
|
|
3272
|
-
let response;
|
|
3273
3110
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3274
3111
|
switch (errorCode) {
|
|
3275
3112
|
case "ArgumentException":
|
|
@@ -3283,14 +3120,12 @@ const deserializeAws_json1_1ListTestGridSessionActionsCommandError = async (outp
|
|
|
3283
3120
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
3284
3121
|
default:
|
|
3285
3122
|
const parsedBody = parsedOutput.body;
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
$metadata,
|
|
3123
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3124
|
+
output,
|
|
3125
|
+
parsedBody,
|
|
3126
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3127
|
+
errorCode,
|
|
3292
3128
|
});
|
|
3293
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3294
3129
|
}
|
|
3295
3130
|
};
|
|
3296
3131
|
const deserializeAws_json1_1ListTestGridSessionArtifactsCommand = async (output, context) => {
|
|
@@ -3312,7 +3147,6 @@ const deserializeAws_json1_1ListTestGridSessionArtifactsCommandError = async (ou
|
|
|
3312
3147
|
...output,
|
|
3313
3148
|
body: await parseBody(output.body, context),
|
|
3314
3149
|
};
|
|
3315
|
-
let response;
|
|
3316
3150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3317
3151
|
switch (errorCode) {
|
|
3318
3152
|
case "ArgumentException":
|
|
@@ -3326,14 +3160,12 @@ const deserializeAws_json1_1ListTestGridSessionArtifactsCommandError = async (ou
|
|
|
3326
3160
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
3327
3161
|
default:
|
|
3328
3162
|
const parsedBody = parsedOutput.body;
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
$metadata,
|
|
3163
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3164
|
+
output,
|
|
3165
|
+
parsedBody,
|
|
3166
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3167
|
+
errorCode,
|
|
3335
3168
|
});
|
|
3336
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3337
3169
|
}
|
|
3338
3170
|
};
|
|
3339
3171
|
const deserializeAws_json1_1ListTestGridSessionsCommand = async (output, context) => {
|
|
@@ -3355,7 +3187,6 @@ const deserializeAws_json1_1ListTestGridSessionsCommandError = async (output, co
|
|
|
3355
3187
|
...output,
|
|
3356
3188
|
body: await parseBody(output.body, context),
|
|
3357
3189
|
};
|
|
3358
|
-
let response;
|
|
3359
3190
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3360
3191
|
switch (errorCode) {
|
|
3361
3192
|
case "ArgumentException":
|
|
@@ -3369,14 +3200,12 @@ const deserializeAws_json1_1ListTestGridSessionsCommandError = async (output, co
|
|
|
3369
3200
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
3370
3201
|
default:
|
|
3371
3202
|
const parsedBody = parsedOutput.body;
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
$metadata,
|
|
3203
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3204
|
+
output,
|
|
3205
|
+
parsedBody,
|
|
3206
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3207
|
+
errorCode,
|
|
3378
3208
|
});
|
|
3379
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3380
3209
|
}
|
|
3381
3210
|
};
|
|
3382
3211
|
const deserializeAws_json1_1ListTestsCommand = async (output, context) => {
|
|
@@ -3398,7 +3227,6 @@ const deserializeAws_json1_1ListTestsCommandError = async (output, context) => {
|
|
|
3398
3227
|
...output,
|
|
3399
3228
|
body: await parseBody(output.body, context),
|
|
3400
3229
|
};
|
|
3401
|
-
let response;
|
|
3402
3230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3403
3231
|
switch (errorCode) {
|
|
3404
3232
|
case "ArgumentException":
|
|
@@ -3415,14 +3243,12 @@ const deserializeAws_json1_1ListTestsCommandError = async (output, context) => {
|
|
|
3415
3243
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3416
3244
|
default:
|
|
3417
3245
|
const parsedBody = parsedOutput.body;
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
$metadata,
|
|
3246
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3247
|
+
output,
|
|
3248
|
+
parsedBody,
|
|
3249
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3250
|
+
errorCode,
|
|
3424
3251
|
});
|
|
3425
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3426
3252
|
}
|
|
3427
3253
|
};
|
|
3428
3254
|
const deserializeAws_json1_1ListUniqueProblemsCommand = async (output, context) => {
|
|
@@ -3444,7 +3270,6 @@ const deserializeAws_json1_1ListUniqueProblemsCommandError = async (output, cont
|
|
|
3444
3270
|
...output,
|
|
3445
3271
|
body: await parseBody(output.body, context),
|
|
3446
3272
|
};
|
|
3447
|
-
let response;
|
|
3448
3273
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3449
3274
|
switch (errorCode) {
|
|
3450
3275
|
case "ArgumentException":
|
|
@@ -3461,14 +3286,12 @@ const deserializeAws_json1_1ListUniqueProblemsCommandError = async (output, cont
|
|
|
3461
3286
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3462
3287
|
default:
|
|
3463
3288
|
const parsedBody = parsedOutput.body;
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
$metadata,
|
|
3289
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3290
|
+
output,
|
|
3291
|
+
parsedBody,
|
|
3292
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3293
|
+
errorCode,
|
|
3470
3294
|
});
|
|
3471
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3472
3295
|
}
|
|
3473
3296
|
};
|
|
3474
3297
|
const deserializeAws_json1_1ListUploadsCommand = async (output, context) => {
|
|
@@ -3490,7 +3313,6 @@ const deserializeAws_json1_1ListUploadsCommandError = async (output, context) =>
|
|
|
3490
3313
|
...output,
|
|
3491
3314
|
body: await parseBody(output.body, context),
|
|
3492
3315
|
};
|
|
3493
|
-
let response;
|
|
3494
3316
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3495
3317
|
switch (errorCode) {
|
|
3496
3318
|
case "ArgumentException":
|
|
@@ -3507,14 +3329,12 @@ const deserializeAws_json1_1ListUploadsCommandError = async (output, context) =>
|
|
|
3507
3329
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3508
3330
|
default:
|
|
3509
3331
|
const parsedBody = parsedOutput.body;
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
$metadata,
|
|
3332
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3333
|
+
output,
|
|
3334
|
+
parsedBody,
|
|
3335
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3336
|
+
errorCode,
|
|
3516
3337
|
});
|
|
3517
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3518
3338
|
}
|
|
3519
3339
|
};
|
|
3520
3340
|
const deserializeAws_json1_1ListVPCEConfigurationsCommand = async (output, context) => {
|
|
@@ -3536,7 +3356,6 @@ const deserializeAws_json1_1ListVPCEConfigurationsCommandError = async (output,
|
|
|
3536
3356
|
...output,
|
|
3537
3357
|
body: await parseBody(output.body, context),
|
|
3538
3358
|
};
|
|
3539
|
-
let response;
|
|
3540
3359
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3541
3360
|
switch (errorCode) {
|
|
3542
3361
|
case "ArgumentException":
|
|
@@ -3547,14 +3366,12 @@ const deserializeAws_json1_1ListVPCEConfigurationsCommandError = async (output,
|
|
|
3547
3366
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3548
3367
|
default:
|
|
3549
3368
|
const parsedBody = parsedOutput.body;
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
$metadata,
|
|
3369
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3370
|
+
output,
|
|
3371
|
+
parsedBody,
|
|
3372
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3373
|
+
errorCode,
|
|
3556
3374
|
});
|
|
3557
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3558
3375
|
}
|
|
3559
3376
|
};
|
|
3560
3377
|
const deserializeAws_json1_1PurchaseOfferingCommand = async (output, context) => {
|
|
@@ -3576,7 +3393,6 @@ const deserializeAws_json1_1PurchaseOfferingCommandError = async (output, contex
|
|
|
3576
3393
|
...output,
|
|
3577
3394
|
body: await parseBody(output.body, context),
|
|
3578
3395
|
};
|
|
3579
|
-
let response;
|
|
3580
3396
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3581
3397
|
switch (errorCode) {
|
|
3582
3398
|
case "ArgumentException":
|
|
@@ -3596,14 +3412,12 @@ const deserializeAws_json1_1PurchaseOfferingCommandError = async (output, contex
|
|
|
3596
3412
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3597
3413
|
default:
|
|
3598
3414
|
const parsedBody = parsedOutput.body;
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
$metadata,
|
|
3415
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3416
|
+
output,
|
|
3417
|
+
parsedBody,
|
|
3418
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3419
|
+
errorCode,
|
|
3605
3420
|
});
|
|
3606
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3607
3421
|
}
|
|
3608
3422
|
};
|
|
3609
3423
|
const deserializeAws_json1_1RenewOfferingCommand = async (output, context) => {
|
|
@@ -3625,7 +3439,6 @@ const deserializeAws_json1_1RenewOfferingCommandError = async (output, context)
|
|
|
3625
3439
|
...output,
|
|
3626
3440
|
body: await parseBody(output.body, context),
|
|
3627
3441
|
};
|
|
3628
|
-
let response;
|
|
3629
3442
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3630
3443
|
switch (errorCode) {
|
|
3631
3444
|
case "ArgumentException":
|
|
@@ -3645,14 +3458,12 @@ const deserializeAws_json1_1RenewOfferingCommandError = async (output, context)
|
|
|
3645
3458
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3646
3459
|
default:
|
|
3647
3460
|
const parsedBody = parsedOutput.body;
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
$metadata,
|
|
3461
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3462
|
+
output,
|
|
3463
|
+
parsedBody,
|
|
3464
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3465
|
+
errorCode,
|
|
3654
3466
|
});
|
|
3655
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3656
3467
|
}
|
|
3657
3468
|
};
|
|
3658
3469
|
const deserializeAws_json1_1ScheduleRunCommand = async (output, context) => {
|
|
@@ -3674,7 +3485,6 @@ const deserializeAws_json1_1ScheduleRunCommandError = async (output, context) =>
|
|
|
3674
3485
|
...output,
|
|
3675
3486
|
body: await parseBody(output.body, context),
|
|
3676
3487
|
};
|
|
3677
|
-
let response;
|
|
3678
3488
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3679
3489
|
switch (errorCode) {
|
|
3680
3490
|
case "ArgumentException":
|
|
@@ -3694,14 +3504,12 @@ const deserializeAws_json1_1ScheduleRunCommandError = async (output, context) =>
|
|
|
3694
3504
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3695
3505
|
default:
|
|
3696
3506
|
const parsedBody = parsedOutput.body;
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
$metadata,
|
|
3507
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3508
|
+
output,
|
|
3509
|
+
parsedBody,
|
|
3510
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3511
|
+
errorCode,
|
|
3703
3512
|
});
|
|
3704
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3705
3513
|
}
|
|
3706
3514
|
};
|
|
3707
3515
|
const deserializeAws_json1_1StopJobCommand = async (output, context) => {
|
|
@@ -3723,7 +3531,6 @@ const deserializeAws_json1_1StopJobCommandError = async (output, context) => {
|
|
|
3723
3531
|
...output,
|
|
3724
3532
|
body: await parseBody(output.body, context),
|
|
3725
3533
|
};
|
|
3726
|
-
let response;
|
|
3727
3534
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3728
3535
|
switch (errorCode) {
|
|
3729
3536
|
case "ArgumentException":
|
|
@@ -3740,14 +3547,12 @@ const deserializeAws_json1_1StopJobCommandError = async (output, context) => {
|
|
|
3740
3547
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3741
3548
|
default:
|
|
3742
3549
|
const parsedBody = parsedOutput.body;
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
$metadata,
|
|
3550
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3551
|
+
output,
|
|
3552
|
+
parsedBody,
|
|
3553
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3554
|
+
errorCode,
|
|
3749
3555
|
});
|
|
3750
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3751
3556
|
}
|
|
3752
3557
|
};
|
|
3753
3558
|
const deserializeAws_json1_1StopRemoteAccessSessionCommand = async (output, context) => {
|
|
@@ -3769,7 +3574,6 @@ const deserializeAws_json1_1StopRemoteAccessSessionCommandError = async (output,
|
|
|
3769
3574
|
...output,
|
|
3770
3575
|
body: await parseBody(output.body, context),
|
|
3771
3576
|
};
|
|
3772
|
-
let response;
|
|
3773
3577
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3774
3578
|
switch (errorCode) {
|
|
3775
3579
|
case "ArgumentException":
|
|
@@ -3786,14 +3590,12 @@ const deserializeAws_json1_1StopRemoteAccessSessionCommandError = async (output,
|
|
|
3786
3590
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3787
3591
|
default:
|
|
3788
3592
|
const parsedBody = parsedOutput.body;
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
$metadata,
|
|
3593
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3594
|
+
output,
|
|
3595
|
+
parsedBody,
|
|
3596
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3597
|
+
errorCode,
|
|
3795
3598
|
});
|
|
3796
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3797
3599
|
}
|
|
3798
3600
|
};
|
|
3799
3601
|
const deserializeAws_json1_1StopRunCommand = async (output, context) => {
|
|
@@ -3815,7 +3617,6 @@ const deserializeAws_json1_1StopRunCommandError = async (output, context) => {
|
|
|
3815
3617
|
...output,
|
|
3816
3618
|
body: await parseBody(output.body, context),
|
|
3817
3619
|
};
|
|
3818
|
-
let response;
|
|
3819
3620
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3820
3621
|
switch (errorCode) {
|
|
3821
3622
|
case "ArgumentException":
|
|
@@ -3832,14 +3633,12 @@ const deserializeAws_json1_1StopRunCommandError = async (output, context) => {
|
|
|
3832
3633
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3833
3634
|
default:
|
|
3834
3635
|
const parsedBody = parsedOutput.body;
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
$metadata,
|
|
3636
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3637
|
+
output,
|
|
3638
|
+
parsedBody,
|
|
3639
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3640
|
+
errorCode,
|
|
3841
3641
|
});
|
|
3842
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3843
3642
|
}
|
|
3844
3643
|
};
|
|
3845
3644
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -3861,7 +3660,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3861
3660
|
...output,
|
|
3862
3661
|
body: await parseBody(output.body, context),
|
|
3863
3662
|
};
|
|
3864
|
-
let response;
|
|
3865
3663
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3866
3664
|
switch (errorCode) {
|
|
3867
3665
|
case "ArgumentException":
|
|
@@ -3881,14 +3679,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3881
3679
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3882
3680
|
default:
|
|
3883
3681
|
const parsedBody = parsedOutput.body;
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
$metadata,
|
|
3682
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3683
|
+
output,
|
|
3684
|
+
parsedBody,
|
|
3685
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3686
|
+
errorCode,
|
|
3890
3687
|
});
|
|
3891
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3892
3688
|
}
|
|
3893
3689
|
};
|
|
3894
3690
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -3910,7 +3706,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3910
3706
|
...output,
|
|
3911
3707
|
body: await parseBody(output.body, context),
|
|
3912
3708
|
};
|
|
3913
|
-
let response;
|
|
3914
3709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3915
3710
|
switch (errorCode) {
|
|
3916
3711
|
case "ArgumentException":
|
|
@@ -3924,14 +3719,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3924
3719
|
throw await deserializeAws_json1_1TagOperationExceptionResponse(parsedOutput, context);
|
|
3925
3720
|
default:
|
|
3926
3721
|
const parsedBody = parsedOutput.body;
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
$metadata,
|
|
3722
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3723
|
+
output,
|
|
3724
|
+
parsedBody,
|
|
3725
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3726
|
+
errorCode,
|
|
3933
3727
|
});
|
|
3934
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3935
3728
|
}
|
|
3936
3729
|
};
|
|
3937
3730
|
const deserializeAws_json1_1UpdateDeviceInstanceCommand = async (output, context) => {
|
|
@@ -3953,7 +3746,6 @@ const deserializeAws_json1_1UpdateDeviceInstanceCommandError = async (output, co
|
|
|
3953
3746
|
...output,
|
|
3954
3747
|
body: await parseBody(output.body, context),
|
|
3955
3748
|
};
|
|
3956
|
-
let response;
|
|
3957
3749
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3958
3750
|
switch (errorCode) {
|
|
3959
3751
|
case "ArgumentException":
|
|
@@ -3970,14 +3762,12 @@ const deserializeAws_json1_1UpdateDeviceInstanceCommandError = async (output, co
|
|
|
3970
3762
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
3971
3763
|
default:
|
|
3972
3764
|
const parsedBody = parsedOutput.body;
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
$metadata,
|
|
3765
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3766
|
+
output,
|
|
3767
|
+
parsedBody,
|
|
3768
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3769
|
+
errorCode,
|
|
3979
3770
|
});
|
|
3980
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3981
3771
|
}
|
|
3982
3772
|
};
|
|
3983
3773
|
const deserializeAws_json1_1UpdateDevicePoolCommand = async (output, context) => {
|
|
@@ -3999,7 +3789,6 @@ const deserializeAws_json1_1UpdateDevicePoolCommandError = async (output, contex
|
|
|
3999
3789
|
...output,
|
|
4000
3790
|
body: await parseBody(output.body, context),
|
|
4001
3791
|
};
|
|
4002
|
-
let response;
|
|
4003
3792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4004
3793
|
switch (errorCode) {
|
|
4005
3794
|
case "ArgumentException":
|
|
@@ -4016,14 +3805,12 @@ const deserializeAws_json1_1UpdateDevicePoolCommandError = async (output, contex
|
|
|
4016
3805
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
4017
3806
|
default:
|
|
4018
3807
|
const parsedBody = parsedOutput.body;
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
$metadata,
|
|
3808
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3809
|
+
output,
|
|
3810
|
+
parsedBody,
|
|
3811
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3812
|
+
errorCode,
|
|
4025
3813
|
});
|
|
4026
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4027
3814
|
}
|
|
4028
3815
|
};
|
|
4029
3816
|
const deserializeAws_json1_1UpdateInstanceProfileCommand = async (output, context) => {
|
|
@@ -4045,7 +3832,6 @@ const deserializeAws_json1_1UpdateInstanceProfileCommandError = async (output, c
|
|
|
4045
3832
|
...output,
|
|
4046
3833
|
body: await parseBody(output.body, context),
|
|
4047
3834
|
};
|
|
4048
|
-
let response;
|
|
4049
3835
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4050
3836
|
switch (errorCode) {
|
|
4051
3837
|
case "ArgumentException":
|
|
@@ -4062,14 +3848,12 @@ const deserializeAws_json1_1UpdateInstanceProfileCommandError = async (output, c
|
|
|
4062
3848
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
4063
3849
|
default:
|
|
4064
3850
|
const parsedBody = parsedOutput.body;
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
$metadata,
|
|
3851
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3852
|
+
output,
|
|
3853
|
+
parsedBody,
|
|
3854
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3855
|
+
errorCode,
|
|
4071
3856
|
});
|
|
4072
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4073
3857
|
}
|
|
4074
3858
|
};
|
|
4075
3859
|
const deserializeAws_json1_1UpdateNetworkProfileCommand = async (output, context) => {
|
|
@@ -4091,7 +3875,6 @@ const deserializeAws_json1_1UpdateNetworkProfileCommandError = async (output, co
|
|
|
4091
3875
|
...output,
|
|
4092
3876
|
body: await parseBody(output.body, context),
|
|
4093
3877
|
};
|
|
4094
|
-
let response;
|
|
4095
3878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4096
3879
|
switch (errorCode) {
|
|
4097
3880
|
case "ArgumentException":
|
|
@@ -4108,14 +3891,12 @@ const deserializeAws_json1_1UpdateNetworkProfileCommandError = async (output, co
|
|
|
4108
3891
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
4109
3892
|
default:
|
|
4110
3893
|
const parsedBody = parsedOutput.body;
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
$metadata,
|
|
3894
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3895
|
+
output,
|
|
3896
|
+
parsedBody,
|
|
3897
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3898
|
+
errorCode,
|
|
4117
3899
|
});
|
|
4118
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4119
3900
|
}
|
|
4120
3901
|
};
|
|
4121
3902
|
const deserializeAws_json1_1UpdateProjectCommand = async (output, context) => {
|
|
@@ -4137,7 +3918,6 @@ const deserializeAws_json1_1UpdateProjectCommandError = async (output, context)
|
|
|
4137
3918
|
...output,
|
|
4138
3919
|
body: await parseBody(output.body, context),
|
|
4139
3920
|
};
|
|
4140
|
-
let response;
|
|
4141
3921
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4142
3922
|
switch (errorCode) {
|
|
4143
3923
|
case "ArgumentException":
|
|
@@ -4154,14 +3934,12 @@ const deserializeAws_json1_1UpdateProjectCommandError = async (output, context)
|
|
|
4154
3934
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
4155
3935
|
default:
|
|
4156
3936
|
const parsedBody = parsedOutput.body;
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
$metadata,
|
|
3937
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3938
|
+
output,
|
|
3939
|
+
parsedBody,
|
|
3940
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3941
|
+
errorCode,
|
|
4163
3942
|
});
|
|
4164
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4165
3943
|
}
|
|
4166
3944
|
};
|
|
4167
3945
|
const deserializeAws_json1_1UpdateTestGridProjectCommand = async (output, context) => {
|
|
@@ -4183,7 +3961,6 @@ const deserializeAws_json1_1UpdateTestGridProjectCommandError = async (output, c
|
|
|
4183
3961
|
...output,
|
|
4184
3962
|
body: await parseBody(output.body, context),
|
|
4185
3963
|
};
|
|
4186
|
-
let response;
|
|
4187
3964
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4188
3965
|
switch (errorCode) {
|
|
4189
3966
|
case "ArgumentException":
|
|
@@ -4200,14 +3977,12 @@ const deserializeAws_json1_1UpdateTestGridProjectCommandError = async (output, c
|
|
|
4200
3977
|
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
|
|
4201
3978
|
default:
|
|
4202
3979
|
const parsedBody = parsedOutput.body;
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
$metadata,
|
|
3980
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3981
|
+
output,
|
|
3982
|
+
parsedBody,
|
|
3983
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
3984
|
+
errorCode,
|
|
4209
3985
|
});
|
|
4210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4211
3986
|
}
|
|
4212
3987
|
};
|
|
4213
3988
|
const deserializeAws_json1_1UpdateUploadCommand = async (output, context) => {
|
|
@@ -4229,7 +4004,6 @@ const deserializeAws_json1_1UpdateUploadCommandError = async (output, context) =
|
|
|
4229
4004
|
...output,
|
|
4230
4005
|
body: await parseBody(output.body, context),
|
|
4231
4006
|
};
|
|
4232
|
-
let response;
|
|
4233
4007
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4234
4008
|
switch (errorCode) {
|
|
4235
4009
|
case "ArgumentException":
|
|
@@ -4246,14 +4020,12 @@ const deserializeAws_json1_1UpdateUploadCommandError = async (output, context) =
|
|
|
4246
4020
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
4247
4021
|
default:
|
|
4248
4022
|
const parsedBody = parsedOutput.body;
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
$metadata,
|
|
4023
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4024
|
+
output,
|
|
4025
|
+
parsedBody,
|
|
4026
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
4027
|
+
errorCode,
|
|
4255
4028
|
});
|
|
4256
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4257
4029
|
}
|
|
4258
4030
|
};
|
|
4259
4031
|
const deserializeAws_json1_1UpdateVPCEConfigurationCommand = async (output, context) => {
|
|
@@ -4275,7 +4047,6 @@ const deserializeAws_json1_1UpdateVPCEConfigurationCommandError = async (output,
|
|
|
4275
4047
|
...output,
|
|
4276
4048
|
body: await parseBody(output.body, context),
|
|
4277
4049
|
};
|
|
4278
|
-
let response;
|
|
4279
4050
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4280
4051
|
switch (errorCode) {
|
|
4281
4052
|
case "ArgumentException":
|
|
@@ -4292,14 +4063,12 @@ const deserializeAws_json1_1UpdateVPCEConfigurationCommandError = async (output,
|
|
|
4292
4063
|
throw await deserializeAws_json1_1ServiceAccountExceptionResponse(parsedOutput, context);
|
|
4293
4064
|
default:
|
|
4294
4065
|
const parsedBody = parsedOutput.body;
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
$metadata,
|
|
4066
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4067
|
+
output,
|
|
4068
|
+
parsedBody,
|
|
4069
|
+
exceptionCtor: DeviceFarmServiceException_1.DeviceFarmServiceException,
|
|
4070
|
+
errorCode,
|
|
4301
4071
|
});
|
|
4302
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4303
4072
|
}
|
|
4304
4073
|
};
|
|
4305
4074
|
const deserializeAws_json1_1ArgumentExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -4414,9 +4183,6 @@ const serializeAws_json1_1AmazonResourceNames = (input, context) => {
|
|
|
4414
4183
|
return input
|
|
4415
4184
|
.filter((e) => e != null)
|
|
4416
4185
|
.map((entry) => {
|
|
4417
|
-
if (entry === null) {
|
|
4418
|
-
return null;
|
|
4419
|
-
}
|
|
4420
4186
|
return entry;
|
|
4421
4187
|
});
|
|
4422
4188
|
};
|
|
@@ -4424,9 +4190,6 @@ const serializeAws_json1_1AndroidPaths = (input, context) => {
|
|
|
4424
4190
|
return input
|
|
4425
4191
|
.filter((e) => e != null)
|
|
4426
4192
|
.map((entry) => {
|
|
4427
|
-
if (entry === null) {
|
|
4428
|
-
return null;
|
|
4429
|
-
}
|
|
4430
4193
|
return entry;
|
|
4431
4194
|
});
|
|
4432
4195
|
};
|
|
@@ -4594,9 +4357,6 @@ const serializeAws_json1_1DeviceFilters = (input, context) => {
|
|
|
4594
4357
|
return input
|
|
4595
4358
|
.filter((e) => e != null)
|
|
4596
4359
|
.map((entry) => {
|
|
4597
|
-
if (entry === null) {
|
|
4598
|
-
return null;
|
|
4599
|
-
}
|
|
4600
4360
|
return serializeAws_json1_1DeviceFilter(entry, context);
|
|
4601
4361
|
});
|
|
4602
4362
|
};
|
|
@@ -4604,9 +4364,6 @@ const serializeAws_json1_1DeviceFilterValues = (input, context) => {
|
|
|
4604
4364
|
return input
|
|
4605
4365
|
.filter((e) => e != null)
|
|
4606
4366
|
.map((entry) => {
|
|
4607
|
-
if (entry === null) {
|
|
4608
|
-
return null;
|
|
4609
|
-
}
|
|
4610
4367
|
return entry;
|
|
4611
4368
|
});
|
|
4612
4369
|
};
|
|
@@ -4614,9 +4371,6 @@ const serializeAws_json1_1DeviceHostPaths = (input, context) => {
|
|
|
4614
4371
|
return input
|
|
4615
4372
|
.filter((e) => e != null)
|
|
4616
4373
|
.map((entry) => {
|
|
4617
|
-
if (entry === null) {
|
|
4618
|
-
return null;
|
|
4619
|
-
}
|
|
4620
4374
|
return entry;
|
|
4621
4375
|
});
|
|
4622
4376
|
};
|
|
@@ -4741,9 +4495,6 @@ const serializeAws_json1_1InstanceLabels = (input, context) => {
|
|
|
4741
4495
|
return input
|
|
4742
4496
|
.filter((e) => e != null)
|
|
4743
4497
|
.map((entry) => {
|
|
4744
|
-
if (entry === null) {
|
|
4745
|
-
return null;
|
|
4746
|
-
}
|
|
4747
4498
|
return entry;
|
|
4748
4499
|
});
|
|
4749
4500
|
};
|
|
@@ -4751,9 +4502,6 @@ const serializeAws_json1_1IosPaths = (input, context) => {
|
|
|
4751
4502
|
return input
|
|
4752
4503
|
.filter((e) => e != null)
|
|
4753
4504
|
.map((entry) => {
|
|
4754
|
-
if (entry === null) {
|
|
4755
|
-
return null;
|
|
4756
|
-
}
|
|
4757
4505
|
return entry;
|
|
4758
4506
|
});
|
|
4759
4507
|
};
|
|
@@ -4923,9 +4671,6 @@ const serializeAws_json1_1PackageIds = (input, context) => {
|
|
|
4923
4671
|
return input
|
|
4924
4672
|
.filter((e) => e != null)
|
|
4925
4673
|
.map((entry) => {
|
|
4926
|
-
if (entry === null) {
|
|
4927
|
-
return null;
|
|
4928
|
-
}
|
|
4929
4674
|
return entry;
|
|
4930
4675
|
});
|
|
4931
4676
|
};
|
|
@@ -4961,9 +4706,6 @@ const serializeAws_json1_1Rules = (input, context) => {
|
|
|
4961
4706
|
return input
|
|
4962
4707
|
.filter((e) => e != null)
|
|
4963
4708
|
.map((entry) => {
|
|
4964
|
-
if (entry === null) {
|
|
4965
|
-
return null;
|
|
4966
|
-
}
|
|
4967
4709
|
return serializeAws_json1_1Rule(entry, context);
|
|
4968
4710
|
});
|
|
4969
4711
|
};
|
|
@@ -5017,9 +4759,6 @@ const serializeAws_json1_1SecurityGroupIds = (input, context) => {
|
|
|
5017
4759
|
return input
|
|
5018
4760
|
.filter((e) => e != null)
|
|
5019
4761
|
.map((entry) => {
|
|
5020
|
-
if (entry === null) {
|
|
5021
|
-
return null;
|
|
5022
|
-
}
|
|
5023
4762
|
return entry;
|
|
5024
4763
|
});
|
|
5025
4764
|
};
|
|
@@ -5042,9 +4781,6 @@ const serializeAws_json1_1SubnetIds = (input, context) => {
|
|
|
5042
4781
|
return input
|
|
5043
4782
|
.filter((e) => e != null)
|
|
5044
4783
|
.map((entry) => {
|
|
5045
|
-
if (entry === null) {
|
|
5046
|
-
return null;
|
|
5047
|
-
}
|
|
5048
4784
|
return entry;
|
|
5049
4785
|
});
|
|
5050
4786
|
};
|
|
@@ -5058,9 +4794,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
5058
4794
|
return input
|
|
5059
4795
|
.filter((e) => e != null)
|
|
5060
4796
|
.map((entry) => {
|
|
5061
|
-
if (entry === null) {
|
|
5062
|
-
return null;
|
|
5063
|
-
}
|
|
5064
4797
|
return entry;
|
|
5065
4798
|
});
|
|
5066
4799
|
};
|
|
@@ -5068,9 +4801,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
5068
4801
|
return input
|
|
5069
4802
|
.filter((e) => e != null)
|
|
5070
4803
|
.map((entry) => {
|
|
5071
|
-
if (entry === null) {
|
|
5072
|
-
return null;
|
|
5073
|
-
}
|
|
5074
4804
|
return serializeAws_json1_1Tag(entry, context);
|
|
5075
4805
|
});
|
|
5076
4806
|
};
|