@itentialopensource/adapter-meraki 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -843,217 +843,361 @@
843
843
  "type": "object",
844
844
  "properties": {
845
845
  "getDevice": {
846
- "type": "object",
847
- "description": "Broker call to getDevice",
848
- "properties": {
849
- "path": {
850
- "type": "string",
851
- "description": "The fully qualified path of the call to getDevice (e.g. /rest/api/device/{deviceid})",
852
- "default": ""
853
- },
854
- "method": {
855
- "type": "string",
856
- "description": "The method of the call to getDevice",
857
- "default": "GET"
858
- },
859
- "query": {
860
- "type": "string",
861
- "description": "The stringified json object with query parameters of the call to getDevice",
862
- "default": "{}"
863
- },
864
- "body": {
865
- "type": "string",
866
- "description": "The stringified json object with body of the call to getDevice",
867
- "default": "{}"
868
- },
869
- "headers": {
870
- "type": "string",
871
- "description": "The stringified json object with headers of the call to getDevice",
872
- "default": "{}"
873
- },
874
- "name_field": {
875
- "type": "string",
876
- "description": "The field in response to getDevice that contains the name of the device",
877
- "default": "name"
878
- },
879
- "ostype_field": {
880
- "type": "string",
881
- "description": "The field in response to getDevice that contains the ostype of the device",
882
- "default": "ostype"
883
- },
884
- "ostypePrefix": {
885
- "type": "string",
886
- "description": "Any prefix that should be added to the ostype of the device (e.g. aws-)",
887
- "default": ""
888
- },
889
- "port_field": {
890
- "type": "string",
891
- "description": "The field in response to getDevice that contains the port of the device",
892
- "default": "port"
893
- },
894
- "ip_field": {
895
- "type": "string",
896
- "description": "The field in response to getDevice that contains the ip address of the device",
897
- "default": "ipaddress"
846
+ "type": "array",
847
+ "description": "Broker call(s) to getDevice",
848
+ "items": {
849
+ "properties": {
850
+ "path": {
851
+ "type": "string",
852
+ "description": "The fully qualified path of the call to getDevice (e.g. /rest/api/device/{deviceid})",
853
+ "default": ""
854
+ },
855
+ "method": {
856
+ "type": "string",
857
+ "description": "The method of the call to getDevice",
858
+ "default": "GET"
859
+ },
860
+ "query": {
861
+ "type": "object",
862
+ "description": "The json object with query parameters of the call to getDevice",
863
+ "additionalProperties": {
864
+ "type": "string"
865
+ }
866
+ },
867
+ "body": {
868
+ "type": "object",
869
+ "description": "The json object with body of the call to getDevice",
870
+ "additionalProperties": {
871
+ "type": "string"
872
+ }
873
+ },
874
+ "headers": {
875
+ "type": "object",
876
+ "description": "The json object with headers of the call to getDevice",
877
+ "additionalProperties": {
878
+ "type": "string"
879
+ }
880
+ },
881
+ "handleFailure": {
882
+ "type": "string",
883
+ "enum": [
884
+ "ignore",
885
+ "fail"
886
+ ],
887
+ "description": "return failure or ignore failure",
888
+ "default": "ignore"
889
+ },
890
+ "requestFields": {
891
+ "type": "object",
892
+ "description": "The json object with response fields of the call to getDevice",
893
+ "additionalProperties": {
894
+ "type": "string"
895
+ },
896
+ "properties": {}
897
+ },
898
+ "responseFields": {
899
+ "type": "object",
900
+ "description": "The json object with response fields of the call to getDevice",
901
+ "additionalProperties": {
902
+ "type": "string"
903
+ },
904
+ "properties": {
905
+ "name": {
906
+ "type": "string",
907
+ "description": "The field in response to getDevice that contains the name of the device",
908
+ "default": "name"
909
+ },
910
+ "ostype": {
911
+ "type": "string",
912
+ "description": "The field in response to getDevice that contains the ostype of the device",
913
+ "default": "ostype"
914
+ },
915
+ "ostypePrefix": {
916
+ "type": "string",
917
+ "description": "Any prefix that should be added to the ostype of the device (e.g. aws-)",
918
+ "default": ""
919
+ },
920
+ "port": {
921
+ "type": "string",
922
+ "description": "The field in response to getDevice that contains the port of the device",
923
+ "default": ""
924
+ },
925
+ "ip": {
926
+ "type": "string",
927
+ "description": "The field in response to getDevice that contains the ip address of the device",
928
+ "default": ""
929
+ }
930
+ }
931
+ }
898
932
  }
899
933
  }
900
934
  },
901
935
  "getDevicesFiltered": {
902
- "type": "object",
903
- "description": "Broker call to getDevicesFiltered",
904
- "properties": {
905
- "path": {
906
- "type": "string",
907
- "description": "The fully qualified path of the call to getDevicesFiltered (e.g. /rest/api/devices)",
908
- "default": ""
909
- },
910
- "method": {
911
- "type": "string",
912
- "description": "The method of the call to getDevicesFiltered",
913
- "default": "GET"
914
- },
915
- "query": {
916
- "type": "string",
917
- "description": "The stringified json object with query parameters of the call to getDevicesFiltered",
918
- "default": "{}"
919
- },
920
- "body": {
921
- "type": "string",
922
- "description": "The stringified json object with body of the call to getDevicesFiltered",
923
- "default": "{}"
924
- },
925
- "headers": {
926
- "type": "string",
927
- "description": "The stringified json object with headers of the call to getDevicesFiltered",
928
- "default": "{}"
929
- },
930
- "name_field": {
931
- "type": "string",
932
- "description": "The field in response to getDevicesFiltered that contains the name of the device",
933
- "default": "name"
934
- },
935
- "ostype_field": {
936
- "type": "string",
937
- "description": "The field in response to getDevicesFiltered that contains the ostype of the device",
938
- "default": "ostype"
939
- },
940
- "ostypePrefix": {
941
- "type": "string",
942
- "description": "Any prefix that should be added to the ostype of the device (e.g. aws-)",
943
- "default": ""
944
- },
945
- "port_field": {
946
- "type": "string",
947
- "description": "The field in response to getDevicesFiltered that contains the port of the device",
948
- "default": "port"
949
- },
950
- "ip_field": {
951
- "type": "string",
952
- "description": "The field in response to getDevicesFiltered that contains the ip address of the device",
953
- "default": "ipaddress"
936
+ "type": "array",
937
+ "description": "Broker call(s) to getDevicesFiltered",
938
+ "items": {
939
+ "properties": {
940
+ "path": {
941
+ "type": "string",
942
+ "description": "The fully qualified path of the call to getDevicesFiltered (e.g. /rest/api/device/{deviceid})",
943
+ "default": ""
944
+ },
945
+ "method": {
946
+ "type": "string",
947
+ "description": "The method of the call to getDevicesFiltered",
948
+ "default": "GET"
949
+ },
950
+ "query": {
951
+ "type": "object",
952
+ "description": "The json object with query parameters of the call to getDevicesFiltered",
953
+ "additionalProperties": {
954
+ "type": "string"
955
+ }
956
+ },
957
+ "body": {
958
+ "type": "object",
959
+ "description": "The json object with body of the call to getDevicesFiltered",
960
+ "additionalProperties": {
961
+ "type": "string"
962
+ }
963
+ },
964
+ "headers": {
965
+ "type": "object",
966
+ "description": "The json object with headers of the call to getDevicesFiltered",
967
+ "additionalProperties": {
968
+ "type": "string"
969
+ }
970
+ },
971
+ "handleFailure": {
972
+ "type": "string",
973
+ "enum": [
974
+ "ignore",
975
+ "fail"
976
+ ],
977
+ "description": "return failure or ignore failure",
978
+ "default": "ignore"
979
+ },
980
+ "responseFields": {
981
+ "type": "object",
982
+ "description": "The json object with response fields of the call to getDevicesFiltered",
983
+ "additionalProperties": {
984
+ "type": "string"
985
+ },
986
+ "properties": {
987
+ "name": {
988
+ "type": "string",
989
+ "description": "The field in response to getDevicesFiltered that contains the name of the device",
990
+ "default": "name"
991
+ },
992
+ "ostype": {
993
+ "type": "string",
994
+ "description": "The field in response to getDevicesFiltered that contains the ostype of the device",
995
+ "default": "ostype"
996
+ },
997
+ "ostypePrefix": {
998
+ "type": "string",
999
+ "description": "Any prefix that should be added to the ostype of the device (e.g. aws-)",
1000
+ "default": ""
1001
+ },
1002
+ "port_field": {
1003
+ "type": "string",
1004
+ "description": "The field in response to getDevicesFiltered that contains the port of the device",
1005
+ "default": ""
1006
+ },
1007
+ "ip_field": {
1008
+ "type": "string",
1009
+ "description": "The field in response to getDevicesFiltered that contains the ip address of the device",
1010
+ "default": ""
1011
+ }
1012
+ }
1013
+ }
954
1014
  }
955
1015
  }
956
1016
  },
957
1017
  "isAlive": {
958
- "type": "object",
959
- "description": "Broker call to isAlive",
960
- "properties": {
961
- "path": {
962
- "type": "string",
963
- "description": "The fully qualified path of the call to isAlive (e.g. /rest/api/device/{deviceid})",
964
- "default": ""
965
- },
966
- "method": {
967
- "type": "string",
968
- "description": "The method of the call to isAlive",
969
- "default": "GET"
970
- },
971
- "query": {
972
- "type": "string",
973
- "description": "The stringified json object with query parameters of the call to isAlive",
974
- "default": "{}"
975
- },
976
- "body": {
977
- "type": "string",
978
- "description": "The stringified json object with body of the call to isAlive",
979
- "default": "{}"
980
- },
981
- "headers": {
982
- "type": "string",
983
- "description": "The stringified json object with headers of the call to isAlive",
984
- "default": "{}"
985
- },
986
- "status_field": {
987
- "type": "string",
988
- "description": "The field in response to isAlive that contains the status of the device",
989
- "default": "status"
990
- },
991
- "status_value": {
992
- "type": "string",
993
- "description": "The status of the device that says it is alive",
994
- "default": "true"
1018
+ "type": "array",
1019
+ "description": "Broker call(s) to determine if the device isAlive",
1020
+ "items": {
1021
+ "properties": {
1022
+ "path": {
1023
+ "type": "string",
1024
+ "description": "The fully qualified path of the call to isAlive (e.g. /rest/api/device/{deviceid})",
1025
+ "default": ""
1026
+ },
1027
+ "method": {
1028
+ "type": "string",
1029
+ "description": "The method of the call to isAlive",
1030
+ "default": "GET"
1031
+ },
1032
+ "query": {
1033
+ "type": "object",
1034
+ "description": "The json object with query parameters of the call to isAlive",
1035
+ "additionalProperties": {
1036
+ "type": "string"
1037
+ }
1038
+ },
1039
+ "body": {
1040
+ "type": "object",
1041
+ "description": "The json object with body of the call to isAlive",
1042
+ "additionalProperties": {
1043
+ "type": "string"
1044
+ }
1045
+ },
1046
+ "headers": {
1047
+ "type": "object",
1048
+ "description": "The json object with headers of the call to isAlive",
1049
+ "additionalProperties": {
1050
+ "type": "string"
1051
+ }
1052
+ },
1053
+ "handleFailure": {
1054
+ "type": "string",
1055
+ "enum": [
1056
+ "ignore",
1057
+ "fail"
1058
+ ],
1059
+ "description": "return failure or ignore isAlive",
1060
+ "default": "ignore"
1061
+ },
1062
+ "statusValue": {
1063
+ "type": "string",
1064
+ "description": "The expected value in the status field",
1065
+ "default": "true"
1066
+ },
1067
+ "requestFields": {
1068
+ "type": "object",
1069
+ "description": "The json object with response fields of the call to getDevice",
1070
+ "additionalProperties": {
1071
+ "type": "string"
1072
+ },
1073
+ "properties": {}
1074
+ },
1075
+ "responseFields": {
1076
+ "type": "object",
1077
+ "description": "The json object with response fields of the call to isAlive",
1078
+ "additionalProperties": {
1079
+ "type": "string"
1080
+ },
1081
+ "properties": {
1082
+ "status": {
1083
+ "type": "string",
1084
+ "description": "The field in response to isAlive that contains the status of the device",
1085
+ "default": "name"
1086
+ }
1087
+ }
1088
+ }
995
1089
  }
996
1090
  }
997
1091
  },
998
1092
  "getConfig": {
999
- "type": "object",
1000
- "description": "Broker call to getConfig",
1001
- "properties": {
1002
- "path": {
1003
- "type": "string",
1004
- "description": "The fully qualified path of the call to getConfig (e.g. /rest/api/device/{deviceid})",
1005
- "default": ""
1006
- },
1007
- "method": {
1008
- "type": "string",
1009
- "description": "The method of the call to getConfig",
1010
- "default": "GET"
1011
- },
1012
- "query": {
1013
- "type": "string",
1014
- "description": "The stringified json object with query parameters of the call to getConfig",
1015
- "default": "{}"
1016
- },
1017
- "body": {
1018
- "type": "string",
1019
- "description": "The stringified json object with body of the call to getConfig",
1020
- "default": "{}"
1021
- },
1022
- "headers": {
1023
- "type": "string",
1024
- "description": "The stringified json object with headers of the call to getConfig",
1025
- "default": "{}"
1093
+ "type": "array",
1094
+ "description": "Broker call(s) to getConfig",
1095
+ "items": {
1096
+ "properties": {
1097
+ "path": {
1098
+ "type": "string",
1099
+ "description": "The fully qualified path of the call to getConfig (e.g. /rest/api/device/{deviceid})",
1100
+ "default": ""
1101
+ },
1102
+ "method": {
1103
+ "type": "string",
1104
+ "description": "The method of the call to getConfig",
1105
+ "default": "GET"
1106
+ },
1107
+ "query": {
1108
+ "type": "object",
1109
+ "description": "The json object with query parameters of the call to getConfig",
1110
+ "additionalProperties": {
1111
+ "type": "string"
1112
+ }
1113
+ },
1114
+ "body": {
1115
+ "type": "object",
1116
+ "description": "The json object with body of the call to getConfig",
1117
+ "additionalProperties": {
1118
+ "type": "string"
1119
+ }
1120
+ },
1121
+ "headers": {
1122
+ "type": "object",
1123
+ "description": "The json object with headers of the call to getConfig",
1124
+ "additionalProperties": {
1125
+ "type": "string"
1126
+ }
1127
+ },
1128
+ "handleFailure": {
1129
+ "type": "string",
1130
+ "enum": [
1131
+ "ignore",
1132
+ "fail"
1133
+ ],
1134
+ "description": "return failure or ignore getConfig",
1135
+ "default": "ignore"
1136
+ },
1137
+ "requestFields": {
1138
+ "type": "object",
1139
+ "description": "The json object with response fields of the call to getDevice",
1140
+ "additionalProperties": {
1141
+ "type": "string"
1142
+ },
1143
+ "properties": {}
1144
+ },
1145
+ "responseFields": {
1146
+ "type": "object",
1147
+ "description": "The json object with response fields of the call to getConfig",
1148
+ "additionalProperties": {
1149
+ "type": "string"
1150
+ },
1151
+ "properties": {}
1152
+ }
1026
1153
  }
1027
1154
  }
1028
1155
  },
1029
1156
  "getCount": {
1030
- "type": "object",
1031
- "description": "Broker call to getCount",
1032
- "properties": {
1033
- "path": {
1034
- "type": "string",
1035
- "description": "The fully qualified path of the call to getCount (e.g. /rest/api/device)",
1036
- "default": ""
1037
- },
1038
- "method": {
1039
- "type": "string",
1040
- "description": "The method of the call to getCount",
1041
- "default": "GET"
1042
- },
1043
- "query": {
1044
- "type": "string",
1045
- "description": "The stringified json object with query parameters of the call to getCount",
1046
- "default": "{}"
1047
- },
1048
- "body": {
1049
- "type": "string",
1050
- "description": "The stringified json object with body of the call to getCount",
1051
- "default": "{}"
1052
- },
1053
- "headers": {
1054
- "type": "string",
1055
- "description": "The stringified json object with headers of the call to getCount",
1056
- "default": "{}"
1157
+ "type": "array",
1158
+ "description": "Broker call(s) to getCount",
1159
+ "items": {
1160
+ "properties": {
1161
+ "path": {
1162
+ "type": "string",
1163
+ "description": "The fully qualified path of the call to getCount (e.g. /rest/api/device/{deviceid})",
1164
+ "default": ""
1165
+ },
1166
+ "method": {
1167
+ "type": "string",
1168
+ "description": "The method of the call to getCount",
1169
+ "default": "GET"
1170
+ },
1171
+ "query": {
1172
+ "type": "object",
1173
+ "description": "The json object with query parameters of the call to getCount",
1174
+ "additionalProperties": {
1175
+ "type": "string"
1176
+ }
1177
+ },
1178
+ "body": {
1179
+ "type": "object",
1180
+ "description": "The json object with body of the call to getCount",
1181
+ "additionalProperties": {
1182
+ "type": "string"
1183
+ }
1184
+ },
1185
+ "headers": {
1186
+ "type": "object",
1187
+ "description": "The json object with headers of the call to getCount",
1188
+ "additionalProperties": {
1189
+ "type": "string"
1190
+ }
1191
+ },
1192
+ "handleFailure": {
1193
+ "type": "string",
1194
+ "enum": [
1195
+ "ignore",
1196
+ "fail"
1197
+ ],
1198
+ "description": "return failure or ignore getCount",
1199
+ "default": "ignore"
1200
+ }
1057
1201
  }
1058
1202
  }
1059
1203
  }
Binary file