@itentialopensource/adapter-utils 4.48.16 → 5.0.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 +20 -0
- package/README.md +2 -0
- package/lib/brokerHandler.js +730 -0
- package/lib/cacheHandler.js +968 -0
- package/lib/connectorRest.js +28 -13
- package/lib/dbUtil.js +0 -3
- package/lib/genericHandler.js +280 -0
- package/lib/propertyUtil.js +134 -3
- package/lib/requestHandler.js +780 -209
- package/lib/translatorUtil.js +5 -4
- package/package.json +26 -26
- package/refs?service=git-upload-pack +0 -0
- package/schemas/propertiesSchema.json +576 -1
|
@@ -103,6 +103,12 @@
|
|
|
103
103
|
},
|
|
104
104
|
"mongo": {
|
|
105
105
|
"$ref": "#/definitions/mongo"
|
|
106
|
+
},
|
|
107
|
+
"devicebroker": {
|
|
108
|
+
"$ref": "#/definitions/devicebroker"
|
|
109
|
+
},
|
|
110
|
+
"cache": {
|
|
111
|
+
"$ref": "#/definitions/cache"
|
|
106
112
|
}
|
|
107
113
|
},
|
|
108
114
|
"required": [
|
|
@@ -198,7 +204,7 @@
|
|
|
198
204
|
"description": "How long a token is valid (in milliseconds), -1 (always get token), 0 use expiration returned with token",
|
|
199
205
|
"default": -1,
|
|
200
206
|
"minimum": -1,
|
|
201
|
-
"maximum":
|
|
207
|
+
"maximum": 86400000
|
|
202
208
|
},
|
|
203
209
|
"token_cache": {
|
|
204
210
|
"type": "string",
|
|
@@ -244,6 +250,14 @@
|
|
|
244
250
|
"description": "This property turns on logging of Authentication Information and should only be true when debugging authentication and connectivity",
|
|
245
251
|
"default": false
|
|
246
252
|
},
|
|
253
|
+
"sensitive": {
|
|
254
|
+
"type": "array",
|
|
255
|
+
"description": "List of sensitive keys to search and hide values from being logged",
|
|
256
|
+
"default": [],
|
|
257
|
+
"items": {
|
|
258
|
+
"type": "string"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
247
261
|
"client_id": {
|
|
248
262
|
"type": "string",
|
|
249
263
|
"description": "The client id for OAuth requests - can also use username depending on schema",
|
|
@@ -881,6 +895,567 @@
|
|
|
881
895
|
}
|
|
882
896
|
}
|
|
883
897
|
}
|
|
898
|
+
},
|
|
899
|
+
"devicebroker": {
|
|
900
|
+
"type": "object",
|
|
901
|
+
"properties": {
|
|
902
|
+
"getDevice": {
|
|
903
|
+
"type": "array",
|
|
904
|
+
"description": "Broker call(s) to getDevice",
|
|
905
|
+
"items": {
|
|
906
|
+
"type": "object",
|
|
907
|
+
"properties": {
|
|
908
|
+
"path": {
|
|
909
|
+
"type": "string",
|
|
910
|
+
"description": "The fully qualified path of the call to getDevice (e.g. /rest/api/device/{deviceid})",
|
|
911
|
+
"default": ""
|
|
912
|
+
},
|
|
913
|
+
"method": {
|
|
914
|
+
"type": "string",
|
|
915
|
+
"description": "The method of the call to getDevice",
|
|
916
|
+
"default": "GET"
|
|
917
|
+
},
|
|
918
|
+
"query": {
|
|
919
|
+
"type": "object",
|
|
920
|
+
"description": "The json object with query parameters of the call to getDevice",
|
|
921
|
+
"additionalProperties": {
|
|
922
|
+
"type": "string"
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
"body": {
|
|
926
|
+
"type": "object",
|
|
927
|
+
"description": "The json object with body of the call to getDevice",
|
|
928
|
+
"additionalProperties": {
|
|
929
|
+
"type": "string"
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
"headers": {
|
|
933
|
+
"type": "object",
|
|
934
|
+
"description": "The json object with headers of the call to getDevice",
|
|
935
|
+
"additionalProperties": {
|
|
936
|
+
"type": "string"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
"handleFailure": {
|
|
940
|
+
"type": "string",
|
|
941
|
+
"enum": [
|
|
942
|
+
"ignore",
|
|
943
|
+
"fail"
|
|
944
|
+
],
|
|
945
|
+
"description": "return failure or ignore failure",
|
|
946
|
+
"default": "ignore"
|
|
947
|
+
},
|
|
948
|
+
"requestFields": {
|
|
949
|
+
"type": "object",
|
|
950
|
+
"description": "The json object with response fields of the call to getDevice",
|
|
951
|
+
"additionalProperties": {
|
|
952
|
+
"type": "string"
|
|
953
|
+
},
|
|
954
|
+
"properties": {}
|
|
955
|
+
},
|
|
956
|
+
"responseDatakey": {
|
|
957
|
+
"type": "string",
|
|
958
|
+
"description": "place in the response where the data is - supports jsonquery",
|
|
959
|
+
"default": ""
|
|
960
|
+
},
|
|
961
|
+
"responseFields": {
|
|
962
|
+
"type": "object",
|
|
963
|
+
"description": "The json object with response fields of the call to getDevice",
|
|
964
|
+
"additionalProperties": {
|
|
965
|
+
"type": "string"
|
|
966
|
+
},
|
|
967
|
+
"properties": {
|
|
968
|
+
"name": {
|
|
969
|
+
"type": "string",
|
|
970
|
+
"description": "The field in response to getDevice that contains the name of the device",
|
|
971
|
+
"default": "name"
|
|
972
|
+
},
|
|
973
|
+
"ostype": {
|
|
974
|
+
"type": "string",
|
|
975
|
+
"description": "The field in response to getDevice that contains the ostype of the device",
|
|
976
|
+
"default": "ostype"
|
|
977
|
+
},
|
|
978
|
+
"ostypePrefix": {
|
|
979
|
+
"type": "string",
|
|
980
|
+
"description": "Any prefix that should be added to the ostype of the device (e.g. aws-)",
|
|
981
|
+
"default": ""
|
|
982
|
+
},
|
|
983
|
+
"port": {
|
|
984
|
+
"type": "string",
|
|
985
|
+
"description": "The field in response to getDevice that contains the port of the device",
|
|
986
|
+
"default": ""
|
|
987
|
+
},
|
|
988
|
+
"ipaddress": {
|
|
989
|
+
"type": "string",
|
|
990
|
+
"description": "The field in response to getDevice that contains the ip address of the device",
|
|
991
|
+
"default": ""
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
"getDevicesFiltered": {
|
|
999
|
+
"type": "array",
|
|
1000
|
+
"description": "Broker call(s) to getDevicesFiltered",
|
|
1001
|
+
"items": {
|
|
1002
|
+
"type": "object",
|
|
1003
|
+
"properties": {
|
|
1004
|
+
"path": {
|
|
1005
|
+
"type": "string",
|
|
1006
|
+
"description": "The fully qualified path of the call to getDevicesFiltered (e.g. /rest/api/device/{deviceid})",
|
|
1007
|
+
"default": ""
|
|
1008
|
+
},
|
|
1009
|
+
"method": {
|
|
1010
|
+
"type": "string",
|
|
1011
|
+
"description": "The method of the call to getDevicesFiltered",
|
|
1012
|
+
"default": "GET"
|
|
1013
|
+
},
|
|
1014
|
+
"query": {
|
|
1015
|
+
"type": "object",
|
|
1016
|
+
"description": "The json object with query parameters of the call to getDevicesFiltered",
|
|
1017
|
+
"additionalProperties": {
|
|
1018
|
+
"type": "string"
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
"body": {
|
|
1022
|
+
"type": "object",
|
|
1023
|
+
"description": "The json object with body of the call to getDevicesFiltered",
|
|
1024
|
+
"additionalProperties": {
|
|
1025
|
+
"type": "string"
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
"headers": {
|
|
1029
|
+
"type": "object",
|
|
1030
|
+
"description": "The json object with headers of the call to getDevicesFiltered",
|
|
1031
|
+
"additionalProperties": {
|
|
1032
|
+
"type": "string"
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
"handleFailure": {
|
|
1036
|
+
"type": "string",
|
|
1037
|
+
"enum": [
|
|
1038
|
+
"ignore",
|
|
1039
|
+
"fail"
|
|
1040
|
+
],
|
|
1041
|
+
"description": "return failure or ignore failure",
|
|
1042
|
+
"default": "ignore"
|
|
1043
|
+
},
|
|
1044
|
+
"requestFields": {
|
|
1045
|
+
"type": "object",
|
|
1046
|
+
"description": "The json object with response fields of the call to getDevice",
|
|
1047
|
+
"additionalProperties": {
|
|
1048
|
+
"type": "string"
|
|
1049
|
+
},
|
|
1050
|
+
"properties": {}
|
|
1051
|
+
},
|
|
1052
|
+
"responseDatakey": {
|
|
1053
|
+
"type": "string",
|
|
1054
|
+
"description": "place in the response where the data is - supports jsonquery",
|
|
1055
|
+
"default": ""
|
|
1056
|
+
},
|
|
1057
|
+
"responseFields": {
|
|
1058
|
+
"type": "object",
|
|
1059
|
+
"description": "The json object with response fields of the call to getDevicesFiltered",
|
|
1060
|
+
"additionalProperties": {
|
|
1061
|
+
"type": "string"
|
|
1062
|
+
},
|
|
1063
|
+
"properties": {
|
|
1064
|
+
"name": {
|
|
1065
|
+
"type": "string",
|
|
1066
|
+
"description": "The field in response to getDevicesFiltered that contains the name of the device",
|
|
1067
|
+
"default": "name"
|
|
1068
|
+
},
|
|
1069
|
+
"ostype": {
|
|
1070
|
+
"type": "string",
|
|
1071
|
+
"description": "The field in response to getDevicesFiltered that contains the ostype of the device",
|
|
1072
|
+
"default": "ostype"
|
|
1073
|
+
},
|
|
1074
|
+
"ostypePrefix": {
|
|
1075
|
+
"type": "string",
|
|
1076
|
+
"description": "Any prefix that should be added to the ostype of the device (e.g. aws-)",
|
|
1077
|
+
"default": ""
|
|
1078
|
+
},
|
|
1079
|
+
"port": {
|
|
1080
|
+
"type": "string",
|
|
1081
|
+
"description": "The field in response to getDevicesFiltered that contains the port of the device",
|
|
1082
|
+
"default": ""
|
|
1083
|
+
},
|
|
1084
|
+
"ipaddress": {
|
|
1085
|
+
"type": "string",
|
|
1086
|
+
"description": "The field in response to getDevicesFiltered that contains the ip address of the device",
|
|
1087
|
+
"default": ""
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
"isAlive": {
|
|
1095
|
+
"type": "array",
|
|
1096
|
+
"description": "Broker call(s) to determine if the device isAlive",
|
|
1097
|
+
"items": {
|
|
1098
|
+
"type": "object",
|
|
1099
|
+
"properties": {
|
|
1100
|
+
"path": {
|
|
1101
|
+
"type": "string",
|
|
1102
|
+
"description": "The fully qualified path of the call to isAlive (e.g. /rest/api/device/{deviceid})",
|
|
1103
|
+
"default": ""
|
|
1104
|
+
},
|
|
1105
|
+
"method": {
|
|
1106
|
+
"type": "string",
|
|
1107
|
+
"description": "The method of the call to isAlive",
|
|
1108
|
+
"default": "GET"
|
|
1109
|
+
},
|
|
1110
|
+
"query": {
|
|
1111
|
+
"type": "object",
|
|
1112
|
+
"description": "The json object with query parameters of the call to isAlive",
|
|
1113
|
+
"additionalProperties": {
|
|
1114
|
+
"type": "string"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
"body": {
|
|
1118
|
+
"type": "object",
|
|
1119
|
+
"description": "The json object with body of the call to isAlive",
|
|
1120
|
+
"additionalProperties": {
|
|
1121
|
+
"type": "string"
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
"headers": {
|
|
1125
|
+
"type": "object",
|
|
1126
|
+
"description": "The json object with headers of the call to isAlive",
|
|
1127
|
+
"additionalProperties": {
|
|
1128
|
+
"type": "string"
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
"handleFailure": {
|
|
1132
|
+
"type": "string",
|
|
1133
|
+
"enum": [
|
|
1134
|
+
"ignore",
|
|
1135
|
+
"fail"
|
|
1136
|
+
],
|
|
1137
|
+
"description": "return failure or ignore isAlive",
|
|
1138
|
+
"default": "ignore"
|
|
1139
|
+
},
|
|
1140
|
+
"requestFields": {
|
|
1141
|
+
"type": "object",
|
|
1142
|
+
"description": "The json object with response fields of the call to getDevice",
|
|
1143
|
+
"additionalProperties": {
|
|
1144
|
+
"type": "string"
|
|
1145
|
+
},
|
|
1146
|
+
"properties": {}
|
|
1147
|
+
},
|
|
1148
|
+
"responseDatakey": {
|
|
1149
|
+
"type": "string",
|
|
1150
|
+
"description": "place in the response where the data is - supports jsonquery",
|
|
1151
|
+
"default": ""
|
|
1152
|
+
},
|
|
1153
|
+
"responseFields": {
|
|
1154
|
+
"type": "object",
|
|
1155
|
+
"description": "The json object with response fields of the call to isAlive",
|
|
1156
|
+
"additionalProperties": {
|
|
1157
|
+
"type": "string"
|
|
1158
|
+
},
|
|
1159
|
+
"properties": {
|
|
1160
|
+
"status": {
|
|
1161
|
+
"type": "string",
|
|
1162
|
+
"description": "The field in response to isAlive that contains the status of the device",
|
|
1163
|
+
"default": "name"
|
|
1164
|
+
},
|
|
1165
|
+
"statusValue": {
|
|
1166
|
+
"type": "string",
|
|
1167
|
+
"description": "The expected value in the status field",
|
|
1168
|
+
"default": "true"
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
"getConfig": {
|
|
1176
|
+
"type": "array",
|
|
1177
|
+
"description": "Broker call(s) to getConfig",
|
|
1178
|
+
"items": {
|
|
1179
|
+
"type": "object",
|
|
1180
|
+
"properties": {
|
|
1181
|
+
"path": {
|
|
1182
|
+
"type": "string",
|
|
1183
|
+
"description": "The fully qualified path of the call to getConfig (e.g. /rest/api/device/{deviceid})",
|
|
1184
|
+
"default": ""
|
|
1185
|
+
},
|
|
1186
|
+
"method": {
|
|
1187
|
+
"type": "string",
|
|
1188
|
+
"description": "The method of the call to getConfig",
|
|
1189
|
+
"default": "GET"
|
|
1190
|
+
},
|
|
1191
|
+
"query": {
|
|
1192
|
+
"type": "object",
|
|
1193
|
+
"description": "The json object with query parameters of the call to getConfig",
|
|
1194
|
+
"additionalProperties": {
|
|
1195
|
+
"type": "string"
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
"body": {
|
|
1199
|
+
"type": "object",
|
|
1200
|
+
"description": "The json object with body of the call to getConfig",
|
|
1201
|
+
"additionalProperties": {
|
|
1202
|
+
"type": "string"
|
|
1203
|
+
}
|
|
1204
|
+
},
|
|
1205
|
+
"headers": {
|
|
1206
|
+
"type": "object",
|
|
1207
|
+
"description": "The json object with headers of the call to getConfig",
|
|
1208
|
+
"additionalProperties": {
|
|
1209
|
+
"type": "string"
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
"handleFailure": {
|
|
1213
|
+
"type": "string",
|
|
1214
|
+
"enum": [
|
|
1215
|
+
"ignore",
|
|
1216
|
+
"fail"
|
|
1217
|
+
],
|
|
1218
|
+
"description": "return failure or ignore getConfig",
|
|
1219
|
+
"default": "ignore"
|
|
1220
|
+
},
|
|
1221
|
+
"requestFields": {
|
|
1222
|
+
"type": "object",
|
|
1223
|
+
"description": "The json object with response fields of the call to getDevice",
|
|
1224
|
+
"additionalProperties": {
|
|
1225
|
+
"type": "string"
|
|
1226
|
+
},
|
|
1227
|
+
"properties": {}
|
|
1228
|
+
},
|
|
1229
|
+
"responseDatakey": {
|
|
1230
|
+
"type": "string",
|
|
1231
|
+
"description": "place in the response where the data is - supports jsonquery",
|
|
1232
|
+
"default": ""
|
|
1233
|
+
},
|
|
1234
|
+
"responseFields": {
|
|
1235
|
+
"type": "object",
|
|
1236
|
+
"description": "The json object with response fields of the call to getConfig",
|
|
1237
|
+
"additionalProperties": {
|
|
1238
|
+
"type": "string"
|
|
1239
|
+
},
|
|
1240
|
+
"properties": {}
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
"getCount": {
|
|
1246
|
+
"type": "array",
|
|
1247
|
+
"description": "Broker call(s) to getCount",
|
|
1248
|
+
"items": {
|
|
1249
|
+
"type": "object",
|
|
1250
|
+
"properties": {
|
|
1251
|
+
"path": {
|
|
1252
|
+
"type": "string",
|
|
1253
|
+
"description": "The fully qualified path of the call to getCount (e.g. /rest/api/device/{deviceid})",
|
|
1254
|
+
"default": ""
|
|
1255
|
+
},
|
|
1256
|
+
"method": {
|
|
1257
|
+
"type": "string",
|
|
1258
|
+
"description": "The method of the call to getCount",
|
|
1259
|
+
"default": "GET"
|
|
1260
|
+
},
|
|
1261
|
+
"query": {
|
|
1262
|
+
"type": "object",
|
|
1263
|
+
"description": "The json object with query parameters of the call to getCount",
|
|
1264
|
+
"additionalProperties": {
|
|
1265
|
+
"type": "string"
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
"body": {
|
|
1269
|
+
"type": "object",
|
|
1270
|
+
"description": "The json object with body of the call to getCount",
|
|
1271
|
+
"additionalProperties": {
|
|
1272
|
+
"type": "string"
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
"headers": {
|
|
1276
|
+
"type": "object",
|
|
1277
|
+
"description": "The json object with headers of the call to getCount",
|
|
1278
|
+
"additionalProperties": {
|
|
1279
|
+
"type": "string"
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
"handleFailure": {
|
|
1283
|
+
"type": "string",
|
|
1284
|
+
"enum": [
|
|
1285
|
+
"ignore",
|
|
1286
|
+
"fail"
|
|
1287
|
+
],
|
|
1288
|
+
"description": "return failure or ignore getCount",
|
|
1289
|
+
"default": "ignore"
|
|
1290
|
+
},
|
|
1291
|
+
"requestFields": {
|
|
1292
|
+
"type": "object",
|
|
1293
|
+
"description": "The json object with response fields of the call to getDevice",
|
|
1294
|
+
"additionalProperties": {
|
|
1295
|
+
"type": "string"
|
|
1296
|
+
},
|
|
1297
|
+
"properties": {}
|
|
1298
|
+
},
|
|
1299
|
+
"responseDatakey": {
|
|
1300
|
+
"type": "string",
|
|
1301
|
+
"description": "place in the response where the data is - supports jsonquery",
|
|
1302
|
+
"default": ""
|
|
1303
|
+
},
|
|
1304
|
+
"responseFields": {
|
|
1305
|
+
"type": "object",
|
|
1306
|
+
"description": "The json object with response fields of the call to getConfig",
|
|
1307
|
+
"additionalProperties": {
|
|
1308
|
+
"type": "string"
|
|
1309
|
+
},
|
|
1310
|
+
"properties": {}
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
"cache": {
|
|
1318
|
+
"type": "object",
|
|
1319
|
+
"properties": {
|
|
1320
|
+
"enabled": {
|
|
1321
|
+
"type": "boolean",
|
|
1322
|
+
"description": "Whether or not cache is enabled for adapter",
|
|
1323
|
+
"default": false
|
|
1324
|
+
},
|
|
1325
|
+
"entities": {
|
|
1326
|
+
"type": "array",
|
|
1327
|
+
"description": "Information for the cached entities",
|
|
1328
|
+
"items": {
|
|
1329
|
+
"type": "object",
|
|
1330
|
+
"properties": {
|
|
1331
|
+
"entityType": {
|
|
1332
|
+
"type": "string",
|
|
1333
|
+
"description": "The name of the entity - should match adapter entity configuration or a broker (e.g. Device)",
|
|
1334
|
+
"default": ""
|
|
1335
|
+
},
|
|
1336
|
+
"frequency": {
|
|
1337
|
+
"type": "integer",
|
|
1338
|
+
"description": "how long (in minutes) we wait to re-populate the cache",
|
|
1339
|
+
"default": 1440,
|
|
1340
|
+
"maximum": 10080
|
|
1341
|
+
},
|
|
1342
|
+
"flushOnFail": {
|
|
1343
|
+
"type": "boolean",
|
|
1344
|
+
"description": "Whether to clear the cache we have if the populate failed",
|
|
1345
|
+
"default": false
|
|
1346
|
+
},
|
|
1347
|
+
"limit": {
|
|
1348
|
+
"type": "integer",
|
|
1349
|
+
"description": "maximum number of items to keep in cache",
|
|
1350
|
+
"default": 1000
|
|
1351
|
+
},
|
|
1352
|
+
"retryAttempts": {
|
|
1353
|
+
"type": "integer",
|
|
1354
|
+
"description": "number of times to retry the populate call before failure",
|
|
1355
|
+
"default": 5
|
|
1356
|
+
},
|
|
1357
|
+
"sort": {
|
|
1358
|
+
"type": "boolean",
|
|
1359
|
+
"description": "whether to sort the data or not",
|
|
1360
|
+
"default": true
|
|
1361
|
+
},
|
|
1362
|
+
"populate": {
|
|
1363
|
+
"type": "array",
|
|
1364
|
+
"description": "Information for the call(s) used to populate the cache",
|
|
1365
|
+
"items": {
|
|
1366
|
+
"type": "object",
|
|
1367
|
+
"properties": {
|
|
1368
|
+
"path": {
|
|
1369
|
+
"type": "string",
|
|
1370
|
+
"description": "The fully qualified path of the call to getDevice (e.g. /rest/api/device/{deviceid})",
|
|
1371
|
+
"default": ""
|
|
1372
|
+
},
|
|
1373
|
+
"method": {
|
|
1374
|
+
"type": "string",
|
|
1375
|
+
"description": "The method of the call to getDevice",
|
|
1376
|
+
"default": "GET"
|
|
1377
|
+
},
|
|
1378
|
+
"query": {
|
|
1379
|
+
"type": "object",
|
|
1380
|
+
"description": "The json object with query parameters of the call to getDevice",
|
|
1381
|
+
"additionalProperties": {
|
|
1382
|
+
"type": "string"
|
|
1383
|
+
}
|
|
1384
|
+
},
|
|
1385
|
+
"body": {
|
|
1386
|
+
"type": "object",
|
|
1387
|
+
"description": "The json object with body of the call to getDevice",
|
|
1388
|
+
"additionalProperties": {
|
|
1389
|
+
"type": "string"
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
"headers": {
|
|
1393
|
+
"type": "object",
|
|
1394
|
+
"description": "The json object with headers of the call to getDevice",
|
|
1395
|
+
"additionalProperties": {
|
|
1396
|
+
"type": "string"
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
"handleFailure": {
|
|
1400
|
+
"type": "string",
|
|
1401
|
+
"enum": [
|
|
1402
|
+
"ignore",
|
|
1403
|
+
"fail"
|
|
1404
|
+
],
|
|
1405
|
+
"description": "return failure or ignore failure",
|
|
1406
|
+
"default": "ignore"
|
|
1407
|
+
},
|
|
1408
|
+
"requestFields": {
|
|
1409
|
+
"type": "object",
|
|
1410
|
+
"description": "The json object with response fields of the call to getDevice",
|
|
1411
|
+
"additionalProperties": {
|
|
1412
|
+
"type": "string"
|
|
1413
|
+
},
|
|
1414
|
+
"properties": {}
|
|
1415
|
+
},
|
|
1416
|
+
"responseDatakey": {
|
|
1417
|
+
"type": "string",
|
|
1418
|
+
"description": "place in the response where the data is - supports jsonquery",
|
|
1419
|
+
"default": ""
|
|
1420
|
+
},
|
|
1421
|
+
"responseFields": {
|
|
1422
|
+
"type": "object",
|
|
1423
|
+
"description": "The json object with response fields of the call to getDevice",
|
|
1424
|
+
"additionalProperties": {
|
|
1425
|
+
"type": "string"
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
},
|
|
1431
|
+
"cachedTasks": {
|
|
1432
|
+
"type": "array",
|
|
1433
|
+
"description": "Information for the call(s) used to populate the cache",
|
|
1434
|
+
"items": {
|
|
1435
|
+
"type": "object",
|
|
1436
|
+
"properties": {
|
|
1437
|
+
"name": {
|
|
1438
|
+
"type": "string",
|
|
1439
|
+
"description": "the name of the task/action that should utilize cached information",
|
|
1440
|
+
"default": ""
|
|
1441
|
+
},
|
|
1442
|
+
"filterField": {
|
|
1443
|
+
"type": "string",
|
|
1444
|
+
"description": "the field that contains filter information for this call",
|
|
1445
|
+
"default": ""
|
|
1446
|
+
},
|
|
1447
|
+
"filterLoc": {
|
|
1448
|
+
"type": "string",
|
|
1449
|
+
"description": "the field that contains the location of the filter field",
|
|
1450
|
+
"default": ""
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
884
1459
|
}
|
|
885
1460
|
}
|
|
886
1461
|
}
|