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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/docs/_schemas.md +560 -25
  4. data/docs/application.md +77 -0
  5. data/docs/dashboard.md +1 -0
  6. data/docs/devices.md +1 -0
  7. data/docs/edgeDeployments.md +173 -0
  8. data/docs/flows.md +1 -0
  9. data/lib/losant_rest.rb +1 -0
  10. data/lib/losant_rest/application.rb +91 -0
  11. data/lib/losant_rest/client.rb +6 -2
  12. data/lib/losant_rest/dashboard.rb +2 -0
  13. data/lib/losant_rest/devices.rb +2 -0
  14. data/lib/losant_rest/edge_deployments.rb +234 -0
  15. data/lib/losant_rest/flows.rb +2 -0
  16. data/lib/losant_rest/version.rb +1 -1
  17. data/schemas/application.json +2 -2
  18. data/schemas/applicationApiTokenPost.json +7 -0
  19. data/schemas/applicationPatch.json +2 -2
  20. data/schemas/applicationPost.json +2 -2
  21. data/schemas/applications.json +2 -2
  22. data/schemas/authedDevice.json +2 -1
  23. data/schemas/dashboard.json +4 -0
  24. data/schemas/dashboardPatch.json +4 -0
  25. data/schemas/dashboardPost.json +4 -0
  26. data/schemas/dashboards.json +4 -0
  27. data/schemas/device.json +6 -1
  28. data/schemas/devicePatch.json +2 -1
  29. data/schemas/devicePost.json +2 -1
  30. data/schemas/deviceRecipe.json +2 -1
  31. data/schemas/deviceRecipePatch.json +2 -1
  32. data/schemas/deviceRecipePost.json +2 -1
  33. data/schemas/deviceRecipes.json +2 -1
  34. data/schemas/devices.json +37 -1
  35. data/schemas/edgeDeploymentRelease.json +50 -0
  36. data/schemas/edgeDeploymentRemove.json +25 -0
  37. data/schemas/edgeDeploymentReplace.json +29 -0
  38. data/schemas/edgeDeployments.json +152 -0
  39. data/schemas/flow.json +13 -0
  40. data/schemas/flowPatch.json +6 -0
  41. data/schemas/flowPost.json +13 -0
  42. data/schemas/flowVersion.json +6 -0
  43. data/schemas/flowVersionPost.json +6 -0
  44. data/schemas/flowVersions.json +6 -0
  45. data/schemas/flows.json +20 -0
  46. data/schemas/me.json +4 -0
  47. data/schemas/mePatch.json +4 -0
  48. data/schemas/solution.json +2 -2
  49. data/schemas/solutionUser.json +4 -0
  50. data/schemas/solutionUserPatch.json +4 -0
  51. data/schemas/solutionUserPost.json +4 -0
  52. data/schemas/solutionUsers.json +4 -0
  53. data/schemas/solutions.json +2 -2
  54. metadata +8 -2
@@ -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,
@@ -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
@@ -41,6 +41,10 @@
41
41
  "type": "string",
42
42
  "maxLength": 1024
43
43
  },
44
+ "title": {
45
+ "type": "string",
46
+ "maxLength": 1024
47
+ },
44
48
  "phoneNumber": {
45
49
  "type": "string",
46
50
  "maxLength": 1024
data/schemas/mePatch.json CHANGED
@@ -21,6 +21,10 @@
21
21
  "type": "string",
22
22
  "maxLength": 1024
23
23
  },
24
+ "title": {
25
+ "type": "string",
26
+ "maxLength": 1024
27
+ },
24
28
  "phoneNumber": {
25
29
  "type": "string",
26
30
  "maxLength": 1024
@@ -34,8 +34,8 @@
34
34
  "slug": {
35
35
  "type": "string",
36
36
  "minLength": 4,
37
- "maxLength": 255,
38
- "pattern": "^[0-9a-z_-]*$"
37
+ "maxLength": 63,
38
+ "pattern": "^[0-9a-z-]*$"
39
39
  },
40
40
  "allowSelfDeletion": {
41
41
  "type": "boolean"
@@ -53,6 +53,10 @@
53
53
  "type": "string",
54
54
  "maxLength": 1024
55
55
  },
56
+ "title": {
57
+ "type": "string",
58
+ "maxLength": 1024
59
+ },
56
60
  "phoneNumber": {
57
61
  "type": "string",
58
62
  "maxLength": 1024
@@ -21,6 +21,10 @@
21
21
  "type": "string",
22
22
  "maxLength": 1024
23
23
  },
24
+ "title": {
25
+ "type": "string",
26
+ "maxLength": 1024
27
+ },
24
28
  "phoneNumber": {
25
29
  "type": "string",
26
30
  "maxLength": 1024
@@ -21,6 +21,10 @@
21
21
  "type": "string",
22
22
  "maxLength": 1024
23
23
  },
24
+ "title": {
25
+ "type": "string",
26
+ "maxLength": 1024
27
+ },
24
28
  "phoneNumber": {
25
29
  "type": "string",
26
30
  "maxLength": 1024
@@ -60,6 +60,10 @@
60
60
  "type": "string",
61
61
  "maxLength": 1024
62
62
  },
63
+ "title": {
64
+ "type": "string",
65
+ "maxLength": 1024
66
+ },
63
67
  "phoneNumber": {
64
68
  "type": "string",
65
69
  "maxLength": 1024
@@ -41,8 +41,8 @@
41
41
  "slug": {
42
42
  "type": "string",
43
43
  "minLength": 4,
44
- "maxLength": 255,
45
- "pattern": "^[0-9a-z_-]*$"
44
+ "maxLength": 63,
45
+ "pattern": "^[0-9a-z-]*$"
46
46
  },
47
47
  "allowSelfDeletion": {
48
48
  "type": "boolean"
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.2
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-01-17 00:00:00.000000000 Z
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