losant_rest 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/docs/_schemas.md +8502 -580
  5. data/docs/application.md +45 -3
  6. data/docs/applications.md +46 -0
  7. data/docs/experienceEndpoint.md +43 -0
  8. data/docs/experienceEndpoints.md +1 -1
  9. data/docs/experienceView.md +43 -0
  10. data/lib/losant_rest.rb +1 -1
  11. data/lib/losant_rest/application.rb +52 -4
  12. data/lib/losant_rest/application_api_token.rb +1 -1
  13. data/lib/losant_rest/application_api_tokens.rb +1 -1
  14. data/lib/losant_rest/application_certificate.rb +1 -1
  15. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  16. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  17. data/lib/losant_rest/application_certificates.rb +1 -1
  18. data/lib/losant_rest/application_key.rb +1 -1
  19. data/lib/losant_rest/application_keys.rb +1 -1
  20. data/lib/losant_rest/applications.rb +1 -1
  21. data/lib/losant_rest/audit_log.rb +1 -1
  22. data/lib/losant_rest/audit_logs.rb +1 -1
  23. data/lib/losant_rest/auth.rb +1 -1
  24. data/lib/losant_rest/client.rb +3 -3
  25. data/lib/losant_rest/dashboard.rb +1 -1
  26. data/lib/losant_rest/dashboards.rb +1 -1
  27. data/lib/losant_rest/data.rb +1 -1
  28. data/lib/losant_rest/data_table.rb +1 -1
  29. data/lib/losant_rest/data_table_row.rb +1 -1
  30. data/lib/losant_rest/data_table_rows.rb +1 -1
  31. data/lib/losant_rest/data_tables.rb +1 -1
  32. data/lib/losant_rest/device.rb +1 -1
  33. data/lib/losant_rest/device_recipe.rb +1 -1
  34. data/lib/losant_rest/device_recipes.rb +1 -1
  35. data/lib/losant_rest/devices.rb +1 -1
  36. data/lib/losant_rest/edge_deployments.rb +1 -1
  37. data/lib/losant_rest/error.rb +1 -1
  38. data/lib/losant_rest/event.rb +1 -1
  39. data/lib/losant_rest/events.rb +1 -1
  40. data/lib/losant_rest/experience.rb +1 -1
  41. data/lib/losant_rest/experience_domain.rb +1 -1
  42. data/lib/losant_rest/experience_domains.rb +1 -1
  43. data/lib/losant_rest/experience_endpoint.rb +51 -1
  44. data/lib/losant_rest/experience_endpoints.rb +1 -1
  45. data/lib/losant_rest/experience_group.rb +1 -1
  46. data/lib/losant_rest/experience_groups.rb +1 -1
  47. data/lib/losant_rest/experience_slug.rb +1 -1
  48. data/lib/losant_rest/experience_slugs.rb +1 -1
  49. data/lib/losant_rest/experience_user.rb +1 -1
  50. data/lib/losant_rest/experience_users.rb +1 -1
  51. data/lib/losant_rest/experience_version.rb +1 -1
  52. data/lib/losant_rest/experience_versions.rb +1 -1
  53. data/lib/losant_rest/experience_view.rb +51 -1
  54. data/lib/losant_rest/experience_views.rb +1 -1
  55. data/lib/losant_rest/file.rb +1 -1
  56. data/lib/losant_rest/files.rb +1 -1
  57. data/lib/losant_rest/flow.rb +1 -1
  58. data/lib/losant_rest/flow_version.rb +1 -1
  59. data/lib/losant_rest/flow_versions.rb +1 -1
  60. data/lib/losant_rest/flows.rb +1 -1
  61. data/lib/losant_rest/integration.rb +1 -1
  62. data/lib/losant_rest/integrations.rb +1 -1
  63. data/lib/losant_rest/me.rb +1 -1
  64. data/lib/losant_rest/notebook.rb +1 -1
  65. data/lib/losant_rest/notebooks.rb +1 -1
  66. data/lib/losant_rest/org.rb +1 -1
  67. data/lib/losant_rest/org_invites.rb +1 -1
  68. data/lib/losant_rest/orgs.rb +1 -1
  69. data/lib/losant_rest/utils.rb +1 -1
  70. data/lib/losant_rest/version.rb +1 -1
  71. data/lib/losant_rest/webhook.rb +1 -1
  72. data/lib/losant_rest/webhooks.rb +1 -1
  73. data/schemas/application.json +3 -3
  74. data/schemas/applicationApiTokenPost.json +3 -0
  75. data/schemas/applicationCertificate.json +34 -0
  76. data/schemas/applicationCertificatePatch.json +34 -0
  77. data/schemas/applicationCertificatePost.json +34 -0
  78. data/schemas/applicationCertificates.json +34 -0
  79. data/schemas/{applicationCloneResult.json → applicationCreationByTemplateResult.json} +14 -6
  80. data/schemas/applicationExportPost.json +24 -0
  81. data/schemas/applicationExportResult.json +10 -0
  82. data/schemas/applicationKey.json +34 -0
  83. data/schemas/applicationKeyPatch.json +34 -0
  84. data/schemas/applicationKeyPost.json +34 -0
  85. data/schemas/applicationKeyPostResponse.json +34 -0
  86. data/schemas/applicationKeys.json +34 -0
  87. data/schemas/applicationPatch.json +3 -3
  88. data/schemas/applicationPost.json +3 -3
  89. data/schemas/applications.json +3 -3
  90. data/schemas/authedDevice.json +34 -0
  91. data/schemas/dashboard.json +76 -0
  92. data/schemas/dashboardPatch.json +76 -0
  93. data/schemas/dashboardPost.json +76 -0
  94. data/schemas/dashboards.json +76 -0
  95. data/schemas/experienceLinkedResources.json +6353 -0
  96. data/schemas/githubLogin.json +4 -0
  97. data/schemas/integration.json +4 -4
  98. data/schemas/integrationPatch.json +4 -4
  99. data/schemas/integrationPost.json +4 -4
  100. data/schemas/integrations.json +4 -4
  101. data/schemas/{applicationCloneEnqueued.json → jobEnqueuedResult.json} +0 -0
  102. data/schemas/notebook.json +198 -34
  103. data/schemas/notebookDataExportOptions.json +4 -0
  104. data/schemas/notebookExecutionLogs.json +4 -0
  105. data/schemas/notebookExecutionOptions.json +4 -0
  106. data/schemas/notebookPatch.json +198 -34
  107. data/schemas/notebookPost.json +198 -34
  108. data/schemas/notebooks.json +198 -34
  109. data/schemas/userCredentials.json +4 -0
  110. data/schemas/userPost.json +4 -0
  111. data/schemas/{validationCloneErrors.json → validationErrors.json} +9 -2
  112. metadata +9 -6
@@ -61,17 +61,38 @@
61
61
  ]
62
62
  },
63
63
  "fileName": {
64
- "type": "string",
65
- "pattern": "^[0-9a-zA-Z_.-]{1,255}$"
64
+ "oneOf": [
65
+ {
66
+ "type": "string",
67
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
68
+ },
69
+ {
70
+ "type": "string",
71
+ "minLength": 4,
72
+ "maxLength": 255,
73
+ "pattern": ".*{{.+}}.*"
74
+ }
75
+ ]
66
76
  },
67
77
  "deviceTags": {
68
78
  "type": "array",
79
+ "maxItems": 100,
69
80
  "items": {
70
81
  "type": "object",
71
82
  "properties": {
72
83
  "key": {
73
- "type": "string",
74
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
84
+ "oneOf": [
85
+ {
86
+ "type": "string",
87
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
88
+ },
89
+ {
90
+ "type": "string",
91
+ "minLength": 4,
92
+ "maxLength": 255,
93
+ "pattern": ".*{{.+}}.*"
94
+ }
95
+ ]
75
96
  },
76
97
  "value": {
77
98
  "type": "string",
@@ -80,16 +101,25 @@
80
101
  }
81
102
  },
82
103
  "additionalProperties": false
83
- },
84
- "maxItems": 100
104
+ }
85
105
  },
86
106
  "deviceIds": {
87
107
  "type": "array",
108
+ "maxItems": 100,
88
109
  "items": {
89
- "type": "string",
90
- "pattern": "^[A-Fa-f\\d]{24}$"
91
- },
92
- "maxItems": 1000
110
+ "oneOf": [
111
+ {
112
+ "type": "string",
113
+ "pattern": "^[A-Fa-f\\d]{24}$"
114
+ },
115
+ {
116
+ "type": "string",
117
+ "minLength": 4,
118
+ "maxLength": 255,
119
+ "pattern": ".*{{.+}}.*"
120
+ }
121
+ ]
122
+ }
93
123
  },
94
124
  "attributes": {
95
125
  "type": "array",
@@ -124,17 +154,38 @@
124
154
  ]
125
155
  },
126
156
  "fileName": {
127
- "type": "string",
128
- "pattern": "^[0-9a-zA-Z_.-]{1,255}$"
157
+ "oneOf": [
158
+ {
159
+ "type": "string",
160
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
161
+ },
162
+ {
163
+ "type": "string",
164
+ "minLength": 4,
165
+ "maxLength": 255,
166
+ "pattern": ".*{{.+}}.*"
167
+ }
168
+ ]
129
169
  },
130
170
  "deviceTags": {
131
171
  "type": "array",
172
+ "maxItems": 100,
132
173
  "items": {
133
174
  "type": "object",
134
175
  "properties": {
135
176
  "key": {
136
- "type": "string",
137
- "pattern": "^[0-9a-zA-Z_-]{1,255}$"
177
+ "oneOf": [
178
+ {
179
+ "type": "string",
180
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
181
+ },
182
+ {
183
+ "type": "string",
184
+ "minLength": 4,
185
+ "maxLength": 255,
186
+ "pattern": ".*{{.+}}.*"
187
+ }
188
+ ]
138
189
  },
139
190
  "value": {
140
191
  "type": "string",
@@ -143,16 +194,25 @@
143
194
  }
144
195
  },
145
196
  "additionalProperties": false
146
- },
147
- "maxItems": 100
197
+ }
148
198
  },
149
199
  "deviceIds": {
150
200
  "type": "array",
201
+ "maxItems": 100,
151
202
  "items": {
152
- "type": "string",
153
- "pattern": "^[A-Fa-f\\d]{24}$"
154
- },
155
- "maxItems": 1000
203
+ "oneOf": [
204
+ {
205
+ "type": "string",
206
+ "pattern": "^[A-Fa-f\\d]{24}$"
207
+ },
208
+ {
209
+ "type": "string",
210
+ "minLength": 4,
211
+ "maxLength": 255,
212
+ "pattern": ".*{{.+}}.*"
213
+ }
214
+ ]
215
+ }
156
216
  }
157
217
  },
158
218
  "required": [
@@ -171,12 +231,32 @@
171
231
  ]
172
232
  },
173
233
  "fileName": {
174
- "type": "string",
175
- "pattern": "^[0-9a-zA-Z_.-]{1,255}$"
234
+ "oneOf": [
235
+ {
236
+ "type": "string",
237
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
238
+ },
239
+ {
240
+ "type": "string",
241
+ "minLength": 4,
242
+ "maxLength": 255,
243
+ "pattern": ".*{{.+}}.*"
244
+ }
245
+ ]
176
246
  },
177
247
  "dataTableId": {
178
- "type": "string",
179
- "pattern": "^[A-Fa-f\\d]{24}$"
248
+ "oneOf": [
249
+ {
250
+ "type": "string",
251
+ "pattern": "^[A-Fa-f\\d]{24}$"
252
+ },
253
+ {
254
+ "type": "string",
255
+ "minLength": 4,
256
+ "maxLength": 255,
257
+ "pattern": ".*{{.+}}.*"
258
+ }
259
+ ]
180
260
  },
181
261
  "queryJson": {
182
262
  "type": "string",
@@ -196,12 +276,56 @@
196
276
  "inputType": {
197
277
  "type": "string",
198
278
  "enum": [
199
- "externalUrl"
279
+ "eventData"
200
280
  ]
201
281
  },
202
282
  "fileName": {
283
+ "oneOf": [
284
+ {
285
+ "type": "string",
286
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
287
+ },
288
+ {
289
+ "type": "string",
290
+ "minLength": 4,
291
+ "maxLength": 255,
292
+ "pattern": ".*{{.+}}.*"
293
+ }
294
+ ]
295
+ },
296
+ "queryJson": {
297
+ "type": "string",
298
+ "maxLength": 32767
299
+ }
300
+ },
301
+ "required": [
302
+ "inputType",
303
+ "fileName"
304
+ ],
305
+ "additionalProperties": false
306
+ },
307
+ {
308
+ "type": "object",
309
+ "properties": {
310
+ "inputType": {
203
311
  "type": "string",
204
- "pattern": "^[0-9a-zA-Z_.-]{1,255}$"
312
+ "enum": [
313
+ "externalUrl"
314
+ ]
315
+ },
316
+ "fileName": {
317
+ "oneOf": [
318
+ {
319
+ "type": "string",
320
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
321
+ },
322
+ {
323
+ "type": "string",
324
+ "minLength": 4,
325
+ "maxLength": 255,
326
+ "pattern": ".*{{.+}}.*"
327
+ }
328
+ ]
205
329
  },
206
330
  "sourceUrl": {
207
331
  "type": "string",
@@ -234,12 +358,32 @@
234
358
  ]
235
359
  },
236
360
  "fileName": {
237
- "type": "string",
238
- "pattern": "^[0-9a-zA-Z_.-]{1,255}$"
361
+ "oneOf": [
362
+ {
363
+ "type": "string",
364
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
365
+ },
366
+ {
367
+ "type": "string",
368
+ "minLength": 4,
369
+ "maxLength": 255,
370
+ "pattern": ".*{{.+}}.*"
371
+ }
372
+ ]
239
373
  },
240
374
  "dataTableId": {
241
- "type": "string",
242
- "pattern": "^[A-Fa-f\\d]{24}$"
375
+ "oneOf": [
376
+ {
377
+ "type": "string",
378
+ "pattern": "^[A-Fa-f\\d]{24}$"
379
+ },
380
+ {
381
+ "type": "string",
382
+ "minLength": 4,
383
+ "maxLength": 255,
384
+ "pattern": ".*{{.+}}.*"
385
+ }
386
+ ]
243
387
  },
244
388
  "createMissingColumns": {
245
389
  "type": "boolean"
@@ -265,8 +409,18 @@
265
409
  ]
266
410
  },
267
411
  "fileName": {
268
- "type": "string",
269
- "pattern": "^[0-9a-zA-Z_.-]{1,255}$"
412
+ "oneOf": [
413
+ {
414
+ "type": "string",
415
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
416
+ },
417
+ {
418
+ "type": "string",
419
+ "minLength": 4,
420
+ "maxLength": 255,
421
+ "pattern": ".*{{.+}}.*"
422
+ }
423
+ ]
270
424
  },
271
425
  "destinationDirectoryTemplate": {
272
426
  "type": "string",
@@ -296,8 +450,18 @@
296
450
  ]
297
451
  },
298
452
  "directoryName": {
299
- "type": "string",
300
- "pattern": "^[0-9a-zA-Z_.-]{1,255}$"
453
+ "oneOf": [
454
+ {
455
+ "type": "string",
456
+ "pattern": "^(?!\\.{1,2}$)[0-9a-zA-Z_.-]{1,255}$"
457
+ },
458
+ {
459
+ "type": "string",
460
+ "minLength": 4,
461
+ "maxLength": 255,
462
+ "pattern": ".*{{.+}}.*"
463
+ }
464
+ ]
301
465
  },
302
466
  "destinationDirectoryTemplate": {
303
467
  "type": "string",
@@ -81,6 +81,7 @@
81
81
  "application.archiveData",
82
82
  "application.backfillArchiveData",
83
83
  "application.clone",
84
+ "application.export",
84
85
  "application.fullEventsArchive",
85
86
  "application.fullDataTablesArchive",
86
87
  "application.debug",
@@ -179,6 +180,7 @@
179
180
  "experienceDomains.post",
180
181
  "experienceEndpoint.delete",
181
182
  "experienceEndpoint.get",
183
+ "experienceEndpoint.linkedResources",
182
184
  "experienceEndpoint.patch",
183
185
  "experienceEndpoints.get",
184
186
  "experienceEndpoints.post",
@@ -208,6 +210,7 @@
208
210
  "experienceView.debug",
209
211
  "experienceView.delete",
210
212
  "experienceView.get",
213
+ "experienceView.linkedResources",
211
214
  "experienceView.patch",
212
215
  "experienceViews.debug",
213
216
  "experienceViews.detailedSummary",
@@ -273,6 +276,7 @@
273
276
  "org.*",
274
277
  "applications.get",
275
278
  "applications.post",
279
+ "applications.import",
276
280
  "applications.detailedSummary",
277
281
  "auditLog.get",
278
282
  "auditLogs.get",
@@ -136,6 +136,7 @@
136
136
  "application.archiveData",
137
137
  "application.backfillArchiveData",
138
138
  "application.clone",
139
+ "application.export",
139
140
  "application.fullEventsArchive",
140
141
  "application.fullDataTablesArchive",
141
142
  "application.debug",
@@ -234,6 +235,7 @@
234
235
  "experienceDomains.post",
235
236
  "experienceEndpoint.delete",
236
237
  "experienceEndpoint.get",
238
+ "experienceEndpoint.linkedResources",
237
239
  "experienceEndpoint.patch",
238
240
  "experienceEndpoints.get",
239
241
  "experienceEndpoints.post",
@@ -263,6 +265,7 @@
263
265
  "experienceView.debug",
264
266
  "experienceView.delete",
265
267
  "experienceView.get",
268
+ "experienceView.linkedResources",
266
269
  "experienceView.patch",
267
270
  "experienceViews.debug",
268
271
  "experienceViews.detailedSummary",
@@ -328,6 +331,7 @@
328
331
  "org.*",
329
332
  "applications.get",
330
333
  "applications.post",
334
+ "applications.import",
331
335
  "applications.detailedSummary",
332
336
  "auditLog.get",
333
337
  "auditLogs.get",
@@ -20,8 +20,15 @@
20
20
  "type": "string"
21
21
  },
22
22
  "id": {
23
- "type": "string",
24
- "pattern": "^[A-Fa-f\\d]{24}$"
23
+ "oneOf": [
24
+ {
25
+ "type": "string",
26
+ "pattern": "^[A-Fa-f\\d]{24}$"
27
+ },
28
+ {
29
+ "type": "string"
30
+ }
31
+ ]
25
32
  },
26
33
  "message": {
27
34
  "type": "string"
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.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-07 00:00:00.000000000 Z
11
+ date: 2020-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -222,9 +222,10 @@ files:
222
222
  - schemas/applicationCertificatePost.json
223
223
  - schemas/applicationCertificates.json
224
224
  - schemas/applicationCloneDryRunResult.json
225
- - schemas/applicationCloneEnqueued.json
226
225
  - schemas/applicationClonePost.json
227
- - schemas/applicationCloneResult.json
226
+ - schemas/applicationCreationByTemplateResult.json
227
+ - schemas/applicationExportPost.json
228
+ - schemas/applicationExportResult.json
228
229
  - schemas/applicationKey.json
229
230
  - schemas/applicationKeyPatch.json
230
231
  - schemas/applicationKeyPost.json
@@ -315,6 +316,7 @@ files:
315
316
  - schemas/experienceGroupPatch.json
316
317
  - schemas/experienceGroupPost.json
317
318
  - schemas/experienceGroups.json
319
+ - schemas/experienceLinkedResources.json
318
320
  - schemas/experienceSlug.json
319
321
  - schemas/experienceSlugPatch.json
320
322
  - schemas/experienceSlugPost.json
@@ -355,6 +357,7 @@ files:
355
357
  - schemas/integrationPatch.json
356
358
  - schemas/integrationPost.json
357
359
  - schemas/integrations.json
360
+ - schemas/jobEnqueuedResult.json
358
361
  - schemas/lastValueData.json
359
362
  - schemas/lastValueQuery.json
360
363
  - schemas/me.json
@@ -392,7 +395,7 @@ files:
392
395
  - schemas/userPost.json
393
396
  - schemas/validateContextError.json
394
397
  - schemas/validateContextSuccess.json
395
- - schemas/validationCloneErrors.json
398
+ - schemas/validationErrors.json
396
399
  - schemas/virtualButtonPress.json
397
400
  - schemas/webhook.json
398
401
  - schemas/webhookPatch.json
@@ -420,7 +423,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
420
423
  version: '0'
421
424
  requirements: []
422
425
  rubyforge_project:
423
- rubygems_version: 2.5.2.3
426
+ rubygems_version: 2.7.6
424
427
  signing_key:
425
428
  specification_version: 4
426
429
  summary: Provides a simple ruby wrapper around the Losant REST API