losant_rest 1.4.2 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/docs/_schemas.md +560 -25
- data/docs/application.md +77 -0
- data/docs/dashboard.md +1 -0
- data/docs/devices.md +1 -0
- data/docs/edgeDeployments.md +173 -0
- data/docs/flows.md +1 -0
- data/lib/losant_rest.rb +1 -0
- data/lib/losant_rest/application.rb +91 -0
- data/lib/losant_rest/client.rb +6 -2
- data/lib/losant_rest/dashboard.rb +2 -0
- data/lib/losant_rest/devices.rb +2 -0
- data/lib/losant_rest/edge_deployments.rb +234 -0
- data/lib/losant_rest/flows.rb +2 -0
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/application.json +2 -2
- data/schemas/applicationApiTokenPost.json +7 -0
- data/schemas/applicationPatch.json +2 -2
- data/schemas/applicationPost.json +2 -2
- data/schemas/applications.json +2 -2
- data/schemas/authedDevice.json +2 -1
- data/schemas/dashboard.json +4 -0
- data/schemas/dashboardPatch.json +4 -0
- data/schemas/dashboardPost.json +4 -0
- data/schemas/dashboards.json +4 -0
- data/schemas/device.json +6 -1
- data/schemas/devicePatch.json +2 -1
- data/schemas/devicePost.json +2 -1
- data/schemas/deviceRecipe.json +2 -1
- data/schemas/deviceRecipePatch.json +2 -1
- data/schemas/deviceRecipePost.json +2 -1
- data/schemas/deviceRecipes.json +2 -1
- data/schemas/devices.json +37 -1
- data/schemas/edgeDeploymentRelease.json +50 -0
- data/schemas/edgeDeploymentRemove.json +25 -0
- data/schemas/edgeDeploymentReplace.json +29 -0
- data/schemas/edgeDeployments.json +152 -0
- data/schemas/flow.json +13 -0
- data/schemas/flowPatch.json +6 -0
- data/schemas/flowPost.json +13 -0
- data/schemas/flowVersion.json +6 -0
- data/schemas/flowVersionPost.json +6 -0
- data/schemas/flowVersions.json +6 -0
- data/schemas/flows.json +20 -0
- data/schemas/me.json +4 -0
- data/schemas/mePatch.json +4 -0
- data/schemas/solution.json +2 -2
- data/schemas/solutionUser.json +4 -0
- data/schemas/solutionUserPatch.json +4 -0
- data/schemas/solutionUserPost.json +4 -0
- data/schemas/solutionUsers.json +4 -0
- data/schemas/solutions.json +2 -2
- metadata +8 -2
data/schemas/flowVersion.json
CHANGED
@@ -51,6 +51,7 @@
|
|
51
51
|
"type": "string",
|
52
52
|
"enum": [
|
53
53
|
"dataTable",
|
54
|
+
"deviceCommand",
|
54
55
|
"deviceId",
|
55
56
|
"deviceIdConnect",
|
56
57
|
"deviceIdDisconnect",
|
@@ -63,6 +64,7 @@
|
|
63
64
|
"event",
|
64
65
|
"integration",
|
65
66
|
"mqttTopic",
|
67
|
+
"request",
|
66
68
|
"timer",
|
67
69
|
"virtualButton",
|
68
70
|
"webhook"
|
@@ -154,6 +156,10 @@
|
|
154
156
|
"json"
|
155
157
|
]
|
156
158
|
}
|
159
|
+
},
|
160
|
+
"minimumAgentVersion": {
|
161
|
+
"type": "string",
|
162
|
+
"pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
|
157
163
|
}
|
158
164
|
}
|
159
165
|
}
|
@@ -27,6 +27,7 @@
|
|
27
27
|
"type": "string",
|
28
28
|
"enum": [
|
29
29
|
"dataTable",
|
30
|
+
"deviceCommand",
|
30
31
|
"deviceId",
|
31
32
|
"deviceIdConnect",
|
32
33
|
"deviceIdDisconnect",
|
@@ -39,6 +40,7 @@
|
|
39
40
|
"event",
|
40
41
|
"integration",
|
41
42
|
"mqttTopic",
|
43
|
+
"request",
|
42
44
|
"timer",
|
43
45
|
"virtualButton",
|
44
46
|
"webhook"
|
@@ -130,6 +132,10 @@
|
|
130
132
|
"json"
|
131
133
|
]
|
132
134
|
}
|
135
|
+
},
|
136
|
+
"minimumAgentVersion": {
|
137
|
+
"type": "string",
|
138
|
+
"pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
|
133
139
|
}
|
134
140
|
},
|
135
141
|
"additionalProperties": false,
|
data/schemas/flowVersions.json
CHANGED
@@ -58,6 +58,7 @@
|
|
58
58
|
"type": "string",
|
59
59
|
"enum": [
|
60
60
|
"dataTable",
|
61
|
+
"deviceCommand",
|
61
62
|
"deviceId",
|
62
63
|
"deviceIdConnect",
|
63
64
|
"deviceIdDisconnect",
|
@@ -70,6 +71,7 @@
|
|
70
71
|
"event",
|
71
72
|
"integration",
|
72
73
|
"mqttTopic",
|
74
|
+
"request",
|
73
75
|
"timer",
|
74
76
|
"virtualButton",
|
75
77
|
"webhook"
|
@@ -161,6 +163,10 @@
|
|
161
163
|
"json"
|
162
164
|
]
|
163
165
|
}
|
166
|
+
},
|
167
|
+
"minimumAgentVersion": {
|
168
|
+
"type": "string",
|
169
|
+
"pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
|
164
170
|
}
|
165
171
|
}
|
166
172
|
}
|
data/schemas/flows.json
CHANGED
@@ -45,6 +45,17 @@
|
|
45
45
|
"type": "string",
|
46
46
|
"pattern": "^[A-Fa-f\\d]{24}$"
|
47
47
|
},
|
48
|
+
"minimumAgentVersion": {
|
49
|
+
"type": "string",
|
50
|
+
"pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
|
51
|
+
},
|
52
|
+
"flowClass": {
|
53
|
+
"type": "string",
|
54
|
+
"enum": [
|
55
|
+
"cloud",
|
56
|
+
"edge"
|
57
|
+
]
|
58
|
+
},
|
48
59
|
"triggers": {
|
49
60
|
"type": "array",
|
50
61
|
"items": {
|
@@ -58,6 +69,7 @@
|
|
58
69
|
"type": "string",
|
59
70
|
"enum": [
|
60
71
|
"dataTable",
|
72
|
+
"deviceCommand",
|
61
73
|
"deviceId",
|
62
74
|
"deviceIdConnect",
|
63
75
|
"deviceIdDisconnect",
|
@@ -70,6 +82,7 @@
|
|
70
82
|
"event",
|
71
83
|
"integration",
|
72
84
|
"mqttTopic",
|
85
|
+
"request",
|
73
86
|
"timer",
|
74
87
|
"virtualButton",
|
75
88
|
"webhook"
|
@@ -223,6 +236,13 @@
|
|
223
236
|
"applicationId": {
|
224
237
|
"type": "string",
|
225
238
|
"pattern": "^[A-Fa-f\\d]{24}$"
|
239
|
+
},
|
240
|
+
"flowClass": {
|
241
|
+
"type": "string",
|
242
|
+
"enum": [
|
243
|
+
"cloud",
|
244
|
+
"edge"
|
245
|
+
]
|
226
246
|
}
|
227
247
|
}
|
228
248
|
}
|
data/schemas/me.json
CHANGED
data/schemas/mePatch.json
CHANGED
data/schemas/solution.json
CHANGED
data/schemas/solutionUser.json
CHANGED
data/schemas/solutionUsers.json
CHANGED
data/schemas/solutions.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: losant_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kuehl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- docs/deviceRecipe.md
|
103
103
|
- docs/deviceRecipes.md
|
104
104
|
- docs/devices.md
|
105
|
+
- docs/edgeDeployments.md
|
105
106
|
- docs/event.md
|
106
107
|
- docs/events.md
|
107
108
|
- docs/experienceDomain.md
|
@@ -154,6 +155,7 @@ files:
|
|
154
155
|
- lib/losant_rest/device_recipe.rb
|
155
156
|
- lib/losant_rest/device_recipes.rb
|
156
157
|
- lib/losant_rest/devices.rb
|
158
|
+
- lib/losant_rest/edge_deployments.rb
|
157
159
|
- lib/losant_rest/error.rb
|
158
160
|
- lib/losant_rest/event.rb
|
159
161
|
- lib/losant_rest/events.rb
|
@@ -241,6 +243,10 @@ files:
|
|
241
243
|
- schemas/deviceTagFilter.json
|
242
244
|
- schemas/devices.json
|
243
245
|
- schemas/disableTwoFactorAuth.json
|
246
|
+
- schemas/edgeDeploymentRelease.json
|
247
|
+
- schemas/edgeDeploymentRemove.json
|
248
|
+
- schemas/edgeDeploymentReplace.json
|
249
|
+
- schemas/edgeDeployments.json
|
244
250
|
- schemas/enableTwoFactorAuth.json
|
245
251
|
- schemas/error.json
|
246
252
|
- schemas/event.json
|