@itentialopensource/adapter-aws_lambda 0.1.1 → 0.2.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/.eslintignore +0 -1
- package/.jshintrc +3 -0
- package/PROPERTIES.md +16 -1
- package/TAB1.md +8 -0
- package/TAB2.md +328 -0
- package/adapterBase.js +38 -0
- package/package.json +5 -5
- package/propertiesDecorators.json +4 -0
- package/propertiesSchema.json +167 -37
- package/report/auto-adapter-openapi.json +3130 -0
- package/report/updateReport1764796649497.json +120 -0
- package/sampleProperties.json +4 -1
- package/test/unit/adapterBaseTestUnit.js +11 -9
- package/test/unit/adapterTestUnit.js +11 -1
package/propertiesSchema.json
CHANGED
|
@@ -77,16 +77,16 @@
|
|
|
77
77
|
"protocol": {
|
|
78
78
|
"type": "string",
|
|
79
79
|
"description": "the protocol to use to connect to server",
|
|
80
|
-
"default": "
|
|
80
|
+
"default": "https",
|
|
81
81
|
"enum": [
|
|
82
82
|
"http",
|
|
83
83
|
"https"
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
-
"service"
|
|
87
|
-
"type"
|
|
86
|
+
"service": {
|
|
87
|
+
"type": "string",
|
|
88
88
|
"description": "Service we are integrating with -- used with AWS Authentication",
|
|
89
|
-
"examples"
|
|
89
|
+
"examples": [
|
|
90
90
|
"ec2",
|
|
91
91
|
"route53"
|
|
92
92
|
]
|
|
@@ -274,6 +274,44 @@
|
|
|
274
274
|
"description": "The grant type for OAuth requests - can also provide in schema",
|
|
275
275
|
"default": ""
|
|
276
276
|
},
|
|
277
|
+
"auth_request_datatype": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"description": "Override the request data type for token authentication requests. When set, this overrides the schema's requestDatatype",
|
|
280
|
+
"default": "",
|
|
281
|
+
"enum": [
|
|
282
|
+
"",
|
|
283
|
+
"JSON",
|
|
284
|
+
"JSON2XML",
|
|
285
|
+
"PLAIN",
|
|
286
|
+
"XML",
|
|
287
|
+
"URLENCODE",
|
|
288
|
+
"URLQUERY",
|
|
289
|
+
"FORM"
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
"auth_response_datatype": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"description": "Override the response data type for token authentication requests. When set, this overrides the schema's responseDatatype",
|
|
295
|
+
"default": "",
|
|
296
|
+
"enum": [
|
|
297
|
+
"",
|
|
298
|
+
"JSON",
|
|
299
|
+
"XML2JSON",
|
|
300
|
+
"PLAIN",
|
|
301
|
+
"XML",
|
|
302
|
+
"URLENCODE"
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
"token_response_placement": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"description": "Override where to extract the token from the authentication response (HEADER or BODY). When set, this overrides the schema's token placement setting",
|
|
308
|
+
"default": "",
|
|
309
|
+
"enum": [
|
|
310
|
+
"",
|
|
311
|
+
"HEADER",
|
|
312
|
+
"BODY"
|
|
313
|
+
]
|
|
314
|
+
},
|
|
277
315
|
"sensitive": {
|
|
278
316
|
"type": "array",
|
|
279
317
|
"description": "List of sensitive keys to search and hide values from being logged",
|
|
@@ -290,7 +328,9 @@
|
|
|
290
328
|
"description": "the protocol to request token from system",
|
|
291
329
|
"default": "",
|
|
292
330
|
"enum": [
|
|
293
|
-
"http",
|
|
331
|
+
"http",
|
|
332
|
+
"https",
|
|
333
|
+
""
|
|
294
334
|
]
|
|
295
335
|
},
|
|
296
336
|
"host": {
|
|
@@ -329,7 +369,7 @@
|
|
|
329
369
|
"responseFields": {
|
|
330
370
|
"type": "object",
|
|
331
371
|
"description": "The fields from the step result"
|
|
332
|
-
|
|
372
|
+
},
|
|
333
373
|
"successfullResponseCode": {
|
|
334
374
|
"type": "integer",
|
|
335
375
|
"description": "Expected response code for given step, if not set any successfull http response is accepted",
|
|
@@ -690,7 +730,7 @@
|
|
|
690
730
|
"protocol": {
|
|
691
731
|
"type": "string",
|
|
692
732
|
"description": "the protocol to use to connect to the proxy",
|
|
693
|
-
"default": "
|
|
733
|
+
"default": "https",
|
|
694
734
|
"enum": [
|
|
695
735
|
"http",
|
|
696
736
|
"https",
|
|
@@ -1029,21 +1069,30 @@
|
|
|
1029
1069
|
"type": "object",
|
|
1030
1070
|
"description": "The json object with query parameters of the call to getDevice",
|
|
1031
1071
|
"additionalProperties": {
|
|
1032
|
-
"type": [
|
|
1072
|
+
"type": [
|
|
1073
|
+
"string",
|
|
1074
|
+
"number"
|
|
1075
|
+
]
|
|
1033
1076
|
}
|
|
1034
1077
|
},
|
|
1035
1078
|
"body": {
|
|
1036
1079
|
"type": "object",
|
|
1037
1080
|
"description": "The json object with body of the call to getDevice",
|
|
1038
1081
|
"additionalProperties": {
|
|
1039
|
-
"type": [
|
|
1082
|
+
"type": [
|
|
1083
|
+
"string",
|
|
1084
|
+
"number"
|
|
1085
|
+
]
|
|
1040
1086
|
}
|
|
1041
1087
|
},
|
|
1042
1088
|
"headers": {
|
|
1043
1089
|
"type": "object",
|
|
1044
1090
|
"description": "The json object with headers of the call to getDevice",
|
|
1045
1091
|
"additionalProperties": {
|
|
1046
|
-
"type": [
|
|
1092
|
+
"type": [
|
|
1093
|
+
"string",
|
|
1094
|
+
"number"
|
|
1095
|
+
]
|
|
1047
1096
|
}
|
|
1048
1097
|
},
|
|
1049
1098
|
"handleFailure": {
|
|
@@ -1059,7 +1108,10 @@
|
|
|
1059
1108
|
"type": "object",
|
|
1060
1109
|
"description": "The json object with response fields of the call to getDevice",
|
|
1061
1110
|
"additionalProperties": {
|
|
1062
|
-
"type": [
|
|
1111
|
+
"type": [
|
|
1112
|
+
"string",
|
|
1113
|
+
"number"
|
|
1114
|
+
]
|
|
1063
1115
|
},
|
|
1064
1116
|
"properties": {}
|
|
1065
1117
|
},
|
|
@@ -1072,7 +1124,10 @@
|
|
|
1072
1124
|
"type": "object",
|
|
1073
1125
|
"description": "The json object with response fields of the call to getDevice",
|
|
1074
1126
|
"additionalProperties": {
|
|
1075
|
-
"type": [
|
|
1127
|
+
"type": [
|
|
1128
|
+
"string",
|
|
1129
|
+
"number"
|
|
1130
|
+
]
|
|
1076
1131
|
},
|
|
1077
1132
|
"properties": {
|
|
1078
1133
|
"name": {
|
|
@@ -1157,21 +1212,30 @@
|
|
|
1157
1212
|
"type": "object",
|
|
1158
1213
|
"description": "The json object with query parameters of the call to getDevicesFiltered",
|
|
1159
1214
|
"additionalProperties": {
|
|
1160
|
-
"type": [
|
|
1215
|
+
"type": [
|
|
1216
|
+
"string",
|
|
1217
|
+
"number"
|
|
1218
|
+
]
|
|
1161
1219
|
}
|
|
1162
1220
|
},
|
|
1163
1221
|
"body": {
|
|
1164
1222
|
"type": "object",
|
|
1165
1223
|
"description": "The json object with body of the call to getDevicesFiltered",
|
|
1166
1224
|
"additionalProperties": {
|
|
1167
|
-
"type": [
|
|
1225
|
+
"type": [
|
|
1226
|
+
"string",
|
|
1227
|
+
"number"
|
|
1228
|
+
]
|
|
1168
1229
|
}
|
|
1169
1230
|
},
|
|
1170
1231
|
"headers": {
|
|
1171
1232
|
"type": "object",
|
|
1172
1233
|
"description": "The json object with headers of the call to getDevicesFiltered",
|
|
1173
1234
|
"additionalProperties": {
|
|
1174
|
-
"type": [
|
|
1235
|
+
"type": [
|
|
1236
|
+
"string",
|
|
1237
|
+
"number"
|
|
1238
|
+
]
|
|
1175
1239
|
}
|
|
1176
1240
|
},
|
|
1177
1241
|
"handleFailure": {
|
|
@@ -1187,7 +1251,10 @@
|
|
|
1187
1251
|
"type": "object",
|
|
1188
1252
|
"description": "The json object with response fields of the call to getDevice",
|
|
1189
1253
|
"additionalProperties": {
|
|
1190
|
-
"type": [
|
|
1254
|
+
"type": [
|
|
1255
|
+
"string",
|
|
1256
|
+
"number"
|
|
1257
|
+
]
|
|
1191
1258
|
},
|
|
1192
1259
|
"properties": {}
|
|
1193
1260
|
},
|
|
@@ -1200,7 +1267,10 @@
|
|
|
1200
1267
|
"type": "object",
|
|
1201
1268
|
"description": "The json object with response fields of the call to getDevicesFiltered",
|
|
1202
1269
|
"additionalProperties": {
|
|
1203
|
-
"type": [
|
|
1270
|
+
"type": [
|
|
1271
|
+
"string",
|
|
1272
|
+
"number"
|
|
1273
|
+
]
|
|
1204
1274
|
},
|
|
1205
1275
|
"properties": {
|
|
1206
1276
|
"name": {
|
|
@@ -1253,21 +1323,30 @@
|
|
|
1253
1323
|
"type": "object",
|
|
1254
1324
|
"description": "The json object with query parameters of the call to isAlive",
|
|
1255
1325
|
"additionalProperties": {
|
|
1256
|
-
"type": [
|
|
1326
|
+
"type": [
|
|
1327
|
+
"string",
|
|
1328
|
+
"number"
|
|
1329
|
+
]
|
|
1257
1330
|
}
|
|
1258
1331
|
},
|
|
1259
1332
|
"body": {
|
|
1260
1333
|
"type": "object",
|
|
1261
1334
|
"description": "The json object with body of the call to isAlive",
|
|
1262
1335
|
"additionalProperties": {
|
|
1263
|
-
"type": [
|
|
1336
|
+
"type": [
|
|
1337
|
+
"string",
|
|
1338
|
+
"number"
|
|
1339
|
+
]
|
|
1264
1340
|
}
|
|
1265
1341
|
},
|
|
1266
1342
|
"headers": {
|
|
1267
1343
|
"type": "object",
|
|
1268
1344
|
"description": "The json object with headers of the call to isAlive",
|
|
1269
1345
|
"additionalProperties": {
|
|
1270
|
-
"type": [
|
|
1346
|
+
"type": [
|
|
1347
|
+
"string",
|
|
1348
|
+
"number"
|
|
1349
|
+
]
|
|
1271
1350
|
}
|
|
1272
1351
|
},
|
|
1273
1352
|
"handleFailure": {
|
|
@@ -1283,7 +1362,10 @@
|
|
|
1283
1362
|
"type": "object",
|
|
1284
1363
|
"description": "The json object with response fields of the call to getDevice",
|
|
1285
1364
|
"additionalProperties": {
|
|
1286
|
-
"type": [
|
|
1365
|
+
"type": [
|
|
1366
|
+
"string",
|
|
1367
|
+
"number"
|
|
1368
|
+
]
|
|
1287
1369
|
},
|
|
1288
1370
|
"properties": {}
|
|
1289
1371
|
},
|
|
@@ -1296,7 +1378,10 @@
|
|
|
1296
1378
|
"type": "object",
|
|
1297
1379
|
"description": "The json object with response fields of the call to isAlive",
|
|
1298
1380
|
"additionalProperties": {
|
|
1299
|
-
"type": [
|
|
1381
|
+
"type": [
|
|
1382
|
+
"string",
|
|
1383
|
+
"number"
|
|
1384
|
+
]
|
|
1300
1385
|
},
|
|
1301
1386
|
"properties": {
|
|
1302
1387
|
"status": {
|
|
@@ -1334,21 +1419,30 @@
|
|
|
1334
1419
|
"type": "object",
|
|
1335
1420
|
"description": "The json object with query parameters of the call to getConfig",
|
|
1336
1421
|
"additionalProperties": {
|
|
1337
|
-
"type": [
|
|
1422
|
+
"type": [
|
|
1423
|
+
"string",
|
|
1424
|
+
"number"
|
|
1425
|
+
]
|
|
1338
1426
|
}
|
|
1339
1427
|
},
|
|
1340
1428
|
"body": {
|
|
1341
1429
|
"type": "object",
|
|
1342
1430
|
"description": "The json object with body of the call to getConfig",
|
|
1343
1431
|
"additionalProperties": {
|
|
1344
|
-
"type": [
|
|
1432
|
+
"type": [
|
|
1433
|
+
"string",
|
|
1434
|
+
"number"
|
|
1435
|
+
]
|
|
1345
1436
|
}
|
|
1346
1437
|
},
|
|
1347
1438
|
"headers": {
|
|
1348
1439
|
"type": "object",
|
|
1349
1440
|
"description": "The json object with headers of the call to getConfig",
|
|
1350
1441
|
"additionalProperties": {
|
|
1351
|
-
"type": [
|
|
1442
|
+
"type": [
|
|
1443
|
+
"string",
|
|
1444
|
+
"number"
|
|
1445
|
+
]
|
|
1352
1446
|
}
|
|
1353
1447
|
},
|
|
1354
1448
|
"handleFailure": {
|
|
@@ -1364,7 +1458,10 @@
|
|
|
1364
1458
|
"type": "object",
|
|
1365
1459
|
"description": "The json object with response fields of the call to getDevice",
|
|
1366
1460
|
"additionalProperties": {
|
|
1367
|
-
"type": [
|
|
1461
|
+
"type": [
|
|
1462
|
+
"string",
|
|
1463
|
+
"number"
|
|
1464
|
+
]
|
|
1368
1465
|
},
|
|
1369
1466
|
"properties": {}
|
|
1370
1467
|
},
|
|
@@ -1377,7 +1474,10 @@
|
|
|
1377
1474
|
"type": "object",
|
|
1378
1475
|
"description": "The json object with response fields of the call to getConfig",
|
|
1379
1476
|
"additionalProperties": {
|
|
1380
|
-
"type": [
|
|
1477
|
+
"type": [
|
|
1478
|
+
"string",
|
|
1479
|
+
"number"
|
|
1480
|
+
]
|
|
1381
1481
|
},
|
|
1382
1482
|
"properties": {}
|
|
1383
1483
|
}
|
|
@@ -1404,21 +1504,30 @@
|
|
|
1404
1504
|
"type": "object",
|
|
1405
1505
|
"description": "The json object with query parameters of the call to getCount",
|
|
1406
1506
|
"additionalProperties": {
|
|
1407
|
-
"type": [
|
|
1507
|
+
"type": [
|
|
1508
|
+
"string",
|
|
1509
|
+
"number"
|
|
1510
|
+
]
|
|
1408
1511
|
}
|
|
1409
1512
|
},
|
|
1410
1513
|
"body": {
|
|
1411
1514
|
"type": "object",
|
|
1412
1515
|
"description": "The json object with body of the call to getCount",
|
|
1413
1516
|
"additionalProperties": {
|
|
1414
|
-
"type": [
|
|
1517
|
+
"type": [
|
|
1518
|
+
"string",
|
|
1519
|
+
"number"
|
|
1520
|
+
]
|
|
1415
1521
|
}
|
|
1416
1522
|
},
|
|
1417
1523
|
"headers": {
|
|
1418
1524
|
"type": "object",
|
|
1419
1525
|
"description": "The json object with headers of the call to getCount",
|
|
1420
1526
|
"additionalProperties": {
|
|
1421
|
-
"type": [
|
|
1527
|
+
"type": [
|
|
1528
|
+
"string",
|
|
1529
|
+
"number"
|
|
1530
|
+
]
|
|
1422
1531
|
}
|
|
1423
1532
|
},
|
|
1424
1533
|
"handleFailure": {
|
|
@@ -1434,7 +1543,10 @@
|
|
|
1434
1543
|
"type": "object",
|
|
1435
1544
|
"description": "The json object with response fields of the call to getDevice",
|
|
1436
1545
|
"additionalProperties": {
|
|
1437
|
-
"type": [
|
|
1546
|
+
"type": [
|
|
1547
|
+
"string",
|
|
1548
|
+
"number"
|
|
1549
|
+
]
|
|
1438
1550
|
},
|
|
1439
1551
|
"properties": {}
|
|
1440
1552
|
},
|
|
@@ -1447,7 +1559,10 @@
|
|
|
1447
1559
|
"type": "object",
|
|
1448
1560
|
"description": "The json object with response fields of the call to getConfig",
|
|
1449
1561
|
"additionalProperties": {
|
|
1450
|
-
"type": [
|
|
1562
|
+
"type": [
|
|
1563
|
+
"string",
|
|
1564
|
+
"number"
|
|
1565
|
+
]
|
|
1451
1566
|
},
|
|
1452
1567
|
"properties": {}
|
|
1453
1568
|
}
|
|
@@ -1553,21 +1668,30 @@
|
|
|
1553
1668
|
"type": "object",
|
|
1554
1669
|
"description": "The json object with query parameters of the call to getDevice",
|
|
1555
1670
|
"additionalProperties": {
|
|
1556
|
-
"type": [
|
|
1671
|
+
"type": [
|
|
1672
|
+
"string",
|
|
1673
|
+
"number"
|
|
1674
|
+
]
|
|
1557
1675
|
}
|
|
1558
1676
|
},
|
|
1559
1677
|
"body": {
|
|
1560
1678
|
"type": "object",
|
|
1561
1679
|
"description": "The json object with body of the call to getDevice",
|
|
1562
1680
|
"additionalProperties": {
|
|
1563
|
-
"type": [
|
|
1681
|
+
"type": [
|
|
1682
|
+
"string",
|
|
1683
|
+
"number"
|
|
1684
|
+
]
|
|
1564
1685
|
}
|
|
1565
1686
|
},
|
|
1566
1687
|
"headers": {
|
|
1567
1688
|
"type": "object",
|
|
1568
1689
|
"description": "The json object with headers of the call to getDevice",
|
|
1569
1690
|
"additionalProperties": {
|
|
1570
|
-
"type": [
|
|
1691
|
+
"type": [
|
|
1692
|
+
"string",
|
|
1693
|
+
"number"
|
|
1694
|
+
]
|
|
1571
1695
|
}
|
|
1572
1696
|
},
|
|
1573
1697
|
"handleFailure": {
|
|
@@ -1583,7 +1707,10 @@
|
|
|
1583
1707
|
"type": "object",
|
|
1584
1708
|
"description": "The json object with response fields of the call to getDevice",
|
|
1585
1709
|
"additionalProperties": {
|
|
1586
|
-
"type": [
|
|
1710
|
+
"type": [
|
|
1711
|
+
"string",
|
|
1712
|
+
"number"
|
|
1713
|
+
]
|
|
1587
1714
|
},
|
|
1588
1715
|
"properties": {}
|
|
1589
1716
|
},
|
|
@@ -1596,7 +1723,10 @@
|
|
|
1596
1723
|
"type": "object",
|
|
1597
1724
|
"description": "The json object with response fields of the call to getDevice",
|
|
1598
1725
|
"additionalProperties": {
|
|
1599
|
-
"type": [
|
|
1726
|
+
"type": [
|
|
1727
|
+
"string",
|
|
1728
|
+
"number"
|
|
1729
|
+
]
|
|
1600
1730
|
}
|
|
1601
1731
|
}
|
|
1602
1732
|
}
|