@itentialopensource/adapter-gcp_compute 1.3.3 → 1.5.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/AUTH.md +35 -70
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +23 -18
- package/SYSTEMINFO.md +18 -6
- package/adapter.js +162 -334
- package/adapterBase.js +410 -912
- package/changelogs/changelog.md +116 -0
- package/metadata.json +62 -0
- package/package.json +25 -25
- package/pronghorn.json +470 -138
- package/propertiesSchema.json +358 -31
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691341662683.json +120 -0
- package/report/updateReport1692202488623.json +120 -0
- package/sampleProperties.json +64 -8
- package/test/integration/adapterTestBasicGet.js +1 -3
- package/test/integration/adapterTestConnectivity.js +90 -41
- package/test/integration/adapterTestIntegration.js +128 -0
- package/test/unit/adapterBaseTestUnit.js +387 -312
- package/test/unit/adapterTestUnit.js +329 -109
- package/utils/entitiesToDB.js +2 -2
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +12 -14
- package/utils/pre-commit.sh +2 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +89 -34
- package/utils/tbUtils.js +40 -20
- package/utils/troubleshootingAdapter.js +9 -6
- package/workflows/README.md +0 -3
package/propertiesSchema.json
CHANGED
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
"minimum": 1,
|
|
19
19
|
"maximum": 65535
|
|
20
20
|
},
|
|
21
|
+
"choosepath": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "choose the path to use -- requires entityPath choices",
|
|
24
|
+
"default": ""
|
|
25
|
+
},
|
|
21
26
|
"base_path": {
|
|
22
27
|
"type": "string",
|
|
23
28
|
"description": "a base path that is consistent across api calls",
|
|
@@ -101,6 +106,9 @@
|
|
|
101
106
|
},
|
|
102
107
|
"devicebroker": {
|
|
103
108
|
"$ref": "#/definitions/devicebroker"
|
|
109
|
+
},
|
|
110
|
+
"cache": {
|
|
111
|
+
"$ref": "#/definitions/cache"
|
|
104
112
|
}
|
|
105
113
|
},
|
|
106
114
|
"required": [
|
|
@@ -122,7 +130,8 @@
|
|
|
122
130
|
"static_token",
|
|
123
131
|
"jwt_token",
|
|
124
132
|
"request_token",
|
|
125
|
-
"no_authentication"
|
|
133
|
+
"no_authentication",
|
|
134
|
+
"multi_step_authentication"
|
|
126
135
|
]
|
|
127
136
|
},
|
|
128
137
|
"username": {
|
|
@@ -301,6 +310,74 @@
|
|
|
301
310
|
"type": "string",
|
|
302
311
|
"description": "The grant type for OAuth requests - can also provide in schema",
|
|
303
312
|
"default": ""
|
|
313
|
+
},
|
|
314
|
+
"sensitive": {
|
|
315
|
+
"type": "array",
|
|
316
|
+
"description": "List of sensitive keys to search and hide values from being logged",
|
|
317
|
+
"default": [],
|
|
318
|
+
"items": {
|
|
319
|
+
"type": "string"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"sso": {
|
|
323
|
+
"type": "object",
|
|
324
|
+
"properties": {
|
|
325
|
+
"protocol": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"description": "the protocol to request token from system",
|
|
328
|
+
"default": "",
|
|
329
|
+
"enum": [
|
|
330
|
+
"http",
|
|
331
|
+
"https",
|
|
332
|
+
""
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
"host": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"description": "hostname of the authentication system",
|
|
338
|
+
"default": "",
|
|
339
|
+
"examples": [
|
|
340
|
+
"systemx.customer.com"
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
"port": {
|
|
344
|
+
"type": "integer",
|
|
345
|
+
"description": "port on which to connect to the authentication system",
|
|
346
|
+
"default": 0,
|
|
347
|
+
"minimum": 0,
|
|
348
|
+
"maximum": 65535
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"multiStepAuthCalls": {
|
|
353
|
+
"type": "array",
|
|
354
|
+
"items": {
|
|
355
|
+
"type": "object",
|
|
356
|
+
"properties": {
|
|
357
|
+
"name": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"description": "Id of the step call",
|
|
360
|
+
"examples": [
|
|
361
|
+
"getAccessToken"
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
"requestFields": {
|
|
365
|
+
"type": "object",
|
|
366
|
+
"description": "The fields set in step request"
|
|
367
|
+
},
|
|
368
|
+
"responseFields": {
|
|
369
|
+
"type": "object",
|
|
370
|
+
"description": "The fields from the step result"
|
|
371
|
+
},
|
|
372
|
+
"successfullResponseCode": {
|
|
373
|
+
"type": "integer",
|
|
374
|
+
"description": "Expected response code for given step, if not set any successfull http response is accepted",
|
|
375
|
+
"examples": [
|
|
376
|
+
200
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
304
381
|
}
|
|
305
382
|
},
|
|
306
383
|
"required": [
|
|
@@ -403,7 +480,13 @@
|
|
|
403
480
|
},
|
|
404
481
|
"query_object": {
|
|
405
482
|
"type": "object",
|
|
406
|
-
"description": "Query object { device: xxxxx } to be placed into the healthcheck, will be converted to query string by the adapter"
|
|
483
|
+
"description": "Query object { device: xxxxx } to be placed into the healthcheck, will be converted to query string by the adapter",
|
|
484
|
+
"default": {}
|
|
485
|
+
},
|
|
486
|
+
"addlHeaders": {
|
|
487
|
+
"type": "object",
|
|
488
|
+
"description": "headers that will be appended to the headers for the call",
|
|
489
|
+
"default": {}
|
|
407
490
|
}
|
|
408
491
|
},
|
|
409
492
|
"required": [
|
|
@@ -483,6 +566,7 @@
|
|
|
483
566
|
"priorities": {
|
|
484
567
|
"type": "array",
|
|
485
568
|
"description": "define your priorities here",
|
|
569
|
+
"default": [],
|
|
486
570
|
"items": {
|
|
487
571
|
"type": "object",
|
|
488
572
|
"properties": {
|
|
@@ -553,6 +637,7 @@
|
|
|
553
637
|
"failover_codes": {
|
|
554
638
|
"type": "array",
|
|
555
639
|
"description": "An array of codes where it is ok to try another method",
|
|
640
|
+
"default": [],
|
|
556
641
|
"items": {
|
|
557
642
|
"type": "integer"
|
|
558
643
|
}
|
|
@@ -570,19 +655,23 @@
|
|
|
570
655
|
"properties": {
|
|
571
656
|
"payload": {
|
|
572
657
|
"type": "object",
|
|
573
|
-
"description": "payload fields that will be appended to the provided payload (excluding GET calls)"
|
|
658
|
+
"description": "payload fields that will be appended to the provided payload (excluding GET calls)",
|
|
659
|
+
"default": {}
|
|
574
660
|
},
|
|
575
661
|
"uriOptions": {
|
|
576
662
|
"type": "object",
|
|
577
|
-
"description": "options that will be appended to all GET calls"
|
|
663
|
+
"description": "options that will be appended to all GET calls",
|
|
664
|
+
"default": {}
|
|
578
665
|
},
|
|
579
666
|
"addlHeaders": {
|
|
580
667
|
"type": "object",
|
|
581
|
-
"description": "headers that will be appended to the headers for the call"
|
|
668
|
+
"description": "headers that will be appended to the headers for the call",
|
|
669
|
+
"default": {}
|
|
582
670
|
},
|
|
583
671
|
"authData": {
|
|
584
672
|
"type": "object",
|
|
585
|
-
"description": "authentication data that will be appended to the payload for authentication calls"
|
|
673
|
+
"description": "authentication data that will be appended to the payload for authentication calls",
|
|
674
|
+
"default": {}
|
|
586
675
|
}
|
|
587
676
|
}
|
|
588
677
|
},
|
|
@@ -897,6 +986,7 @@
|
|
|
897
986
|
"type": "array",
|
|
898
987
|
"description": "Broker call(s) to getDevice",
|
|
899
988
|
"items": {
|
|
989
|
+
"type": "object",
|
|
900
990
|
"properties": {
|
|
901
991
|
"path": {
|
|
902
992
|
"type": "string",
|
|
@@ -912,21 +1002,30 @@
|
|
|
912
1002
|
"type": "object",
|
|
913
1003
|
"description": "The json object with query parameters of the call to getDevice",
|
|
914
1004
|
"additionalProperties": {
|
|
915
|
-
"type":
|
|
1005
|
+
"type": [
|
|
1006
|
+
"string",
|
|
1007
|
+
"number"
|
|
1008
|
+
]
|
|
916
1009
|
}
|
|
917
1010
|
},
|
|
918
1011
|
"body": {
|
|
919
1012
|
"type": "object",
|
|
920
1013
|
"description": "The json object with body of the call to getDevice",
|
|
921
1014
|
"additionalProperties": {
|
|
922
|
-
"type":
|
|
1015
|
+
"type": [
|
|
1016
|
+
"string",
|
|
1017
|
+
"number"
|
|
1018
|
+
]
|
|
923
1019
|
}
|
|
924
1020
|
},
|
|
925
1021
|
"headers": {
|
|
926
1022
|
"type": "object",
|
|
927
1023
|
"description": "The json object with headers of the call to getDevice",
|
|
928
1024
|
"additionalProperties": {
|
|
929
|
-
"type":
|
|
1025
|
+
"type": [
|
|
1026
|
+
"string",
|
|
1027
|
+
"number"
|
|
1028
|
+
]
|
|
930
1029
|
}
|
|
931
1030
|
},
|
|
932
1031
|
"handleFailure": {
|
|
@@ -942,7 +1041,10 @@
|
|
|
942
1041
|
"type": "object",
|
|
943
1042
|
"description": "The json object with response fields of the call to getDevice",
|
|
944
1043
|
"additionalProperties": {
|
|
945
|
-
"type":
|
|
1044
|
+
"type": [
|
|
1045
|
+
"string",
|
|
1046
|
+
"number"
|
|
1047
|
+
]
|
|
946
1048
|
},
|
|
947
1049
|
"properties": {}
|
|
948
1050
|
},
|
|
@@ -955,7 +1057,10 @@
|
|
|
955
1057
|
"type": "object",
|
|
956
1058
|
"description": "The json object with response fields of the call to getDevice",
|
|
957
1059
|
"additionalProperties": {
|
|
958
|
-
"type":
|
|
1060
|
+
"type": [
|
|
1061
|
+
"string",
|
|
1062
|
+
"number"
|
|
1063
|
+
]
|
|
959
1064
|
},
|
|
960
1065
|
"properties": {
|
|
961
1066
|
"name": {
|
|
@@ -992,6 +1097,7 @@
|
|
|
992
1097
|
"type": "array",
|
|
993
1098
|
"description": "Broker call(s) to getDevicesFiltered",
|
|
994
1099
|
"items": {
|
|
1100
|
+
"type": "object",
|
|
995
1101
|
"properties": {
|
|
996
1102
|
"path": {
|
|
997
1103
|
"type": "string",
|
|
@@ -1007,21 +1113,30 @@
|
|
|
1007
1113
|
"type": "object",
|
|
1008
1114
|
"description": "The json object with query parameters of the call to getDevicesFiltered",
|
|
1009
1115
|
"additionalProperties": {
|
|
1010
|
-
"type":
|
|
1116
|
+
"type": [
|
|
1117
|
+
"string",
|
|
1118
|
+
"number"
|
|
1119
|
+
]
|
|
1011
1120
|
}
|
|
1012
1121
|
},
|
|
1013
1122
|
"body": {
|
|
1014
1123
|
"type": "object",
|
|
1015
1124
|
"description": "The json object with body of the call to getDevicesFiltered",
|
|
1016
1125
|
"additionalProperties": {
|
|
1017
|
-
"type":
|
|
1126
|
+
"type": [
|
|
1127
|
+
"string",
|
|
1128
|
+
"number"
|
|
1129
|
+
]
|
|
1018
1130
|
}
|
|
1019
1131
|
},
|
|
1020
1132
|
"headers": {
|
|
1021
1133
|
"type": "object",
|
|
1022
1134
|
"description": "The json object with headers of the call to getDevicesFiltered",
|
|
1023
1135
|
"additionalProperties": {
|
|
1024
|
-
"type":
|
|
1136
|
+
"type": [
|
|
1137
|
+
"string",
|
|
1138
|
+
"number"
|
|
1139
|
+
]
|
|
1025
1140
|
}
|
|
1026
1141
|
},
|
|
1027
1142
|
"handleFailure": {
|
|
@@ -1037,7 +1152,10 @@
|
|
|
1037
1152
|
"type": "object",
|
|
1038
1153
|
"description": "The json object with response fields of the call to getDevice",
|
|
1039
1154
|
"additionalProperties": {
|
|
1040
|
-
"type":
|
|
1155
|
+
"type": [
|
|
1156
|
+
"string",
|
|
1157
|
+
"number"
|
|
1158
|
+
]
|
|
1041
1159
|
},
|
|
1042
1160
|
"properties": {}
|
|
1043
1161
|
},
|
|
@@ -1050,7 +1168,10 @@
|
|
|
1050
1168
|
"type": "object",
|
|
1051
1169
|
"description": "The json object with response fields of the call to getDevicesFiltered",
|
|
1052
1170
|
"additionalProperties": {
|
|
1053
|
-
"type":
|
|
1171
|
+
"type": [
|
|
1172
|
+
"string",
|
|
1173
|
+
"number"
|
|
1174
|
+
]
|
|
1054
1175
|
},
|
|
1055
1176
|
"properties": {
|
|
1056
1177
|
"name": {
|
|
@@ -1087,6 +1208,7 @@
|
|
|
1087
1208
|
"type": "array",
|
|
1088
1209
|
"description": "Broker call(s) to determine if the device isAlive",
|
|
1089
1210
|
"items": {
|
|
1211
|
+
"type": "object",
|
|
1090
1212
|
"properties": {
|
|
1091
1213
|
"path": {
|
|
1092
1214
|
"type": "string",
|
|
@@ -1102,21 +1224,30 @@
|
|
|
1102
1224
|
"type": "object",
|
|
1103
1225
|
"description": "The json object with query parameters of the call to isAlive",
|
|
1104
1226
|
"additionalProperties": {
|
|
1105
|
-
"type":
|
|
1227
|
+
"type": [
|
|
1228
|
+
"string",
|
|
1229
|
+
"number"
|
|
1230
|
+
]
|
|
1106
1231
|
}
|
|
1107
1232
|
},
|
|
1108
1233
|
"body": {
|
|
1109
1234
|
"type": "object",
|
|
1110
1235
|
"description": "The json object with body of the call to isAlive",
|
|
1111
1236
|
"additionalProperties": {
|
|
1112
|
-
"type":
|
|
1237
|
+
"type": [
|
|
1238
|
+
"string",
|
|
1239
|
+
"number"
|
|
1240
|
+
]
|
|
1113
1241
|
}
|
|
1114
1242
|
},
|
|
1115
1243
|
"headers": {
|
|
1116
1244
|
"type": "object",
|
|
1117
1245
|
"description": "The json object with headers of the call to isAlive",
|
|
1118
1246
|
"additionalProperties": {
|
|
1119
|
-
"type":
|
|
1247
|
+
"type": [
|
|
1248
|
+
"string",
|
|
1249
|
+
"number"
|
|
1250
|
+
]
|
|
1120
1251
|
}
|
|
1121
1252
|
},
|
|
1122
1253
|
"handleFailure": {
|
|
@@ -1132,7 +1263,10 @@
|
|
|
1132
1263
|
"type": "object",
|
|
1133
1264
|
"description": "The json object with response fields of the call to getDevice",
|
|
1134
1265
|
"additionalProperties": {
|
|
1135
|
-
"type":
|
|
1266
|
+
"type": [
|
|
1267
|
+
"string",
|
|
1268
|
+
"number"
|
|
1269
|
+
]
|
|
1136
1270
|
},
|
|
1137
1271
|
"properties": {}
|
|
1138
1272
|
},
|
|
@@ -1145,7 +1279,10 @@
|
|
|
1145
1279
|
"type": "object",
|
|
1146
1280
|
"description": "The json object with response fields of the call to isAlive",
|
|
1147
1281
|
"additionalProperties": {
|
|
1148
|
-
"type":
|
|
1282
|
+
"type": [
|
|
1283
|
+
"string",
|
|
1284
|
+
"number"
|
|
1285
|
+
]
|
|
1149
1286
|
},
|
|
1150
1287
|
"properties": {
|
|
1151
1288
|
"status": {
|
|
@@ -1167,6 +1304,7 @@
|
|
|
1167
1304
|
"type": "array",
|
|
1168
1305
|
"description": "Broker call(s) to getConfig",
|
|
1169
1306
|
"items": {
|
|
1307
|
+
"type": "object",
|
|
1170
1308
|
"properties": {
|
|
1171
1309
|
"path": {
|
|
1172
1310
|
"type": "string",
|
|
@@ -1182,21 +1320,30 @@
|
|
|
1182
1320
|
"type": "object",
|
|
1183
1321
|
"description": "The json object with query parameters of the call to getConfig",
|
|
1184
1322
|
"additionalProperties": {
|
|
1185
|
-
"type":
|
|
1323
|
+
"type": [
|
|
1324
|
+
"string",
|
|
1325
|
+
"number"
|
|
1326
|
+
]
|
|
1186
1327
|
}
|
|
1187
1328
|
},
|
|
1188
1329
|
"body": {
|
|
1189
1330
|
"type": "object",
|
|
1190
1331
|
"description": "The json object with body of the call to getConfig",
|
|
1191
1332
|
"additionalProperties": {
|
|
1192
|
-
"type":
|
|
1333
|
+
"type": [
|
|
1334
|
+
"string",
|
|
1335
|
+
"number"
|
|
1336
|
+
]
|
|
1193
1337
|
}
|
|
1194
1338
|
},
|
|
1195
1339
|
"headers": {
|
|
1196
1340
|
"type": "object",
|
|
1197
1341
|
"description": "The json object with headers of the call to getConfig",
|
|
1198
1342
|
"additionalProperties": {
|
|
1199
|
-
"type":
|
|
1343
|
+
"type": [
|
|
1344
|
+
"string",
|
|
1345
|
+
"number"
|
|
1346
|
+
]
|
|
1200
1347
|
}
|
|
1201
1348
|
},
|
|
1202
1349
|
"handleFailure": {
|
|
@@ -1212,7 +1359,10 @@
|
|
|
1212
1359
|
"type": "object",
|
|
1213
1360
|
"description": "The json object with response fields of the call to getDevice",
|
|
1214
1361
|
"additionalProperties": {
|
|
1215
|
-
"type":
|
|
1362
|
+
"type": [
|
|
1363
|
+
"string",
|
|
1364
|
+
"number"
|
|
1365
|
+
]
|
|
1216
1366
|
},
|
|
1217
1367
|
"properties": {}
|
|
1218
1368
|
},
|
|
@@ -1225,7 +1375,10 @@
|
|
|
1225
1375
|
"type": "object",
|
|
1226
1376
|
"description": "The json object with response fields of the call to getConfig",
|
|
1227
1377
|
"additionalProperties": {
|
|
1228
|
-
"type":
|
|
1378
|
+
"type": [
|
|
1379
|
+
"string",
|
|
1380
|
+
"number"
|
|
1381
|
+
]
|
|
1229
1382
|
},
|
|
1230
1383
|
"properties": {}
|
|
1231
1384
|
}
|
|
@@ -1236,6 +1389,7 @@
|
|
|
1236
1389
|
"type": "array",
|
|
1237
1390
|
"description": "Broker call(s) to getCount",
|
|
1238
1391
|
"items": {
|
|
1392
|
+
"type": "object",
|
|
1239
1393
|
"properties": {
|
|
1240
1394
|
"path": {
|
|
1241
1395
|
"type": "string",
|
|
@@ -1251,21 +1405,30 @@
|
|
|
1251
1405
|
"type": "object",
|
|
1252
1406
|
"description": "The json object with query parameters of the call to getCount",
|
|
1253
1407
|
"additionalProperties": {
|
|
1254
|
-
"type":
|
|
1408
|
+
"type": [
|
|
1409
|
+
"string",
|
|
1410
|
+
"number"
|
|
1411
|
+
]
|
|
1255
1412
|
}
|
|
1256
1413
|
},
|
|
1257
1414
|
"body": {
|
|
1258
1415
|
"type": "object",
|
|
1259
1416
|
"description": "The json object with body of the call to getCount",
|
|
1260
1417
|
"additionalProperties": {
|
|
1261
|
-
"type":
|
|
1418
|
+
"type": [
|
|
1419
|
+
"string",
|
|
1420
|
+
"number"
|
|
1421
|
+
]
|
|
1262
1422
|
}
|
|
1263
1423
|
},
|
|
1264
1424
|
"headers": {
|
|
1265
1425
|
"type": "object",
|
|
1266
1426
|
"description": "The json object with headers of the call to getCount",
|
|
1267
1427
|
"additionalProperties": {
|
|
1268
|
-
"type":
|
|
1428
|
+
"type": [
|
|
1429
|
+
"string",
|
|
1430
|
+
"number"
|
|
1431
|
+
]
|
|
1269
1432
|
}
|
|
1270
1433
|
},
|
|
1271
1434
|
"handleFailure": {
|
|
@@ -1281,7 +1444,10 @@
|
|
|
1281
1444
|
"type": "object",
|
|
1282
1445
|
"description": "The json object with response fields of the call to getDevice",
|
|
1283
1446
|
"additionalProperties": {
|
|
1284
|
-
"type":
|
|
1447
|
+
"type": [
|
|
1448
|
+
"string",
|
|
1449
|
+
"number"
|
|
1450
|
+
]
|
|
1285
1451
|
},
|
|
1286
1452
|
"properties": {}
|
|
1287
1453
|
},
|
|
@@ -1294,7 +1460,10 @@
|
|
|
1294
1460
|
"type": "object",
|
|
1295
1461
|
"description": "The json object with response fields of the call to getConfig",
|
|
1296
1462
|
"additionalProperties": {
|
|
1297
|
-
"type":
|
|
1463
|
+
"type": [
|
|
1464
|
+
"string",
|
|
1465
|
+
"number"
|
|
1466
|
+
]
|
|
1298
1467
|
},
|
|
1299
1468
|
"properties": {}
|
|
1300
1469
|
}
|
|
@@ -1302,6 +1471,164 @@
|
|
|
1302
1471
|
}
|
|
1303
1472
|
}
|
|
1304
1473
|
}
|
|
1474
|
+
},
|
|
1475
|
+
"cache": {
|
|
1476
|
+
"type": "object",
|
|
1477
|
+
"properties": {
|
|
1478
|
+
"enabled": {
|
|
1479
|
+
"type": "boolean",
|
|
1480
|
+
"description": "Whether or not cache is enabled for adapter",
|
|
1481
|
+
"default": false
|
|
1482
|
+
},
|
|
1483
|
+
"entities": {
|
|
1484
|
+
"type": "array",
|
|
1485
|
+
"description": "Information for the cached entities",
|
|
1486
|
+
"items": {
|
|
1487
|
+
"type": "object",
|
|
1488
|
+
"properties": {
|
|
1489
|
+
"entityType": {
|
|
1490
|
+
"type": "string",
|
|
1491
|
+
"description": "The name of the entity - should match adapter entity configuration or a broker (e.g. Device)",
|
|
1492
|
+
"default": ""
|
|
1493
|
+
},
|
|
1494
|
+
"frequency": {
|
|
1495
|
+
"type": "integer",
|
|
1496
|
+
"description": "how long (in minutes) we wait to re-populate the cache",
|
|
1497
|
+
"default": 1440,
|
|
1498
|
+
"maximum": 10080
|
|
1499
|
+
},
|
|
1500
|
+
"flushOnFail": {
|
|
1501
|
+
"type": "boolean",
|
|
1502
|
+
"description": "Whether to clear the cache we have if the populate failed",
|
|
1503
|
+
"default": false
|
|
1504
|
+
},
|
|
1505
|
+
"limit": {
|
|
1506
|
+
"type": "integer",
|
|
1507
|
+
"description": "maximum number of items to keep in cache",
|
|
1508
|
+
"default": 1000
|
|
1509
|
+
},
|
|
1510
|
+
"retryAttempts": {
|
|
1511
|
+
"type": "integer",
|
|
1512
|
+
"description": "number of times to retry the populate call before failure",
|
|
1513
|
+
"default": 5
|
|
1514
|
+
},
|
|
1515
|
+
"sort": {
|
|
1516
|
+
"type": "boolean",
|
|
1517
|
+
"description": "whether to sort the data or not",
|
|
1518
|
+
"default": true
|
|
1519
|
+
},
|
|
1520
|
+
"populate": {
|
|
1521
|
+
"type": "array",
|
|
1522
|
+
"description": "Information for the call(s) used to populate the cache",
|
|
1523
|
+
"items": {
|
|
1524
|
+
"type": "object",
|
|
1525
|
+
"properties": {
|
|
1526
|
+
"path": {
|
|
1527
|
+
"type": "string",
|
|
1528
|
+
"description": "The fully qualified path of the call to getDevice (e.g. /rest/api/device/{deviceid})",
|
|
1529
|
+
"default": ""
|
|
1530
|
+
},
|
|
1531
|
+
"method": {
|
|
1532
|
+
"type": "string",
|
|
1533
|
+
"description": "The method of the call to getDevice",
|
|
1534
|
+
"default": "GET"
|
|
1535
|
+
},
|
|
1536
|
+
"query": {
|
|
1537
|
+
"type": "object",
|
|
1538
|
+
"description": "The json object with query parameters of the call to getDevice",
|
|
1539
|
+
"additionalProperties": {
|
|
1540
|
+
"type": [
|
|
1541
|
+
"string",
|
|
1542
|
+
"number"
|
|
1543
|
+
]
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1546
|
+
"body": {
|
|
1547
|
+
"type": "object",
|
|
1548
|
+
"description": "The json object with body of the call to getDevice",
|
|
1549
|
+
"additionalProperties": {
|
|
1550
|
+
"type": [
|
|
1551
|
+
"string",
|
|
1552
|
+
"number"
|
|
1553
|
+
]
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1556
|
+
"headers": {
|
|
1557
|
+
"type": "object",
|
|
1558
|
+
"description": "The json object with headers of the call to getDevice",
|
|
1559
|
+
"additionalProperties": {
|
|
1560
|
+
"type": [
|
|
1561
|
+
"string",
|
|
1562
|
+
"number"
|
|
1563
|
+
]
|
|
1564
|
+
}
|
|
1565
|
+
},
|
|
1566
|
+
"handleFailure": {
|
|
1567
|
+
"type": "string",
|
|
1568
|
+
"enum": [
|
|
1569
|
+
"ignore",
|
|
1570
|
+
"fail"
|
|
1571
|
+
],
|
|
1572
|
+
"description": "return failure or ignore failure",
|
|
1573
|
+
"default": "ignore"
|
|
1574
|
+
},
|
|
1575
|
+
"requestFields": {
|
|
1576
|
+
"type": "object",
|
|
1577
|
+
"description": "The json object with response fields of the call to getDevice",
|
|
1578
|
+
"additionalProperties": {
|
|
1579
|
+
"type": [
|
|
1580
|
+
"string",
|
|
1581
|
+
"number"
|
|
1582
|
+
]
|
|
1583
|
+
},
|
|
1584
|
+
"properties": {}
|
|
1585
|
+
},
|
|
1586
|
+
"responseDatakey": {
|
|
1587
|
+
"type": "string",
|
|
1588
|
+
"description": "place in the response where the data is - supports jsonquery",
|
|
1589
|
+
"default": ""
|
|
1590
|
+
},
|
|
1591
|
+
"responseFields": {
|
|
1592
|
+
"type": "object",
|
|
1593
|
+
"description": "The json object with response fields of the call to getDevice",
|
|
1594
|
+
"additionalProperties": {
|
|
1595
|
+
"type": [
|
|
1596
|
+
"string",
|
|
1597
|
+
"number"
|
|
1598
|
+
]
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
"cachedTasks": {
|
|
1605
|
+
"type": "array",
|
|
1606
|
+
"description": "Information for the call(s) used to populate the cache",
|
|
1607
|
+
"items": {
|
|
1608
|
+
"type": "object",
|
|
1609
|
+
"properties": {
|
|
1610
|
+
"name": {
|
|
1611
|
+
"type": "string",
|
|
1612
|
+
"description": "the name of the task/action that should utilize cached information",
|
|
1613
|
+
"default": ""
|
|
1614
|
+
},
|
|
1615
|
+
"filterField": {
|
|
1616
|
+
"type": "string",
|
|
1617
|
+
"description": "the field that contains filter information for this call",
|
|
1618
|
+
"default": ""
|
|
1619
|
+
},
|
|
1620
|
+
"filterLoc": {
|
|
1621
|
+
"type": "string",
|
|
1622
|
+
"description": "the field that contains the location of the filter field",
|
|
1623
|
+
"default": ""
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1305
1632
|
}
|
|
1306
1633
|
}
|
|
1307
1634
|
}
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.3.
|
|
3
|
-
"configLines":
|
|
4
|
-
"scriptLines":
|
|
5
|
-
"codeLines":
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
9
|
-
"wfTasks":
|
|
2
|
+
"version": "1.3.3",
|
|
3
|
+
"configLines": 77420,
|
|
4
|
+
"scriptLines": 1783,
|
|
5
|
+
"codeLines": 57275,
|
|
6
|
+
"testLines": 61723,
|
|
7
|
+
"testCases": 2510,
|
|
8
|
+
"totalCodeLines": 120781,
|
|
9
|
+
"wfTasks": 583
|
|
10
10
|
}
|