losant_rest 1.11.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/docs/_schemas.md +3645 -1144
  4. data/docs/devices.md +124 -0
  5. data/docs/flowVersions.md +1 -0
  6. data/docs/flows.md +2 -0
  7. data/lib/losant_rest/client.rb +2 -2
  8. data/lib/losant_rest/devices.rb +152 -0
  9. data/lib/losant_rest/flow_versions.rb +3 -0
  10. data/lib/losant_rest/flows.rb +6 -0
  11. data/lib/losant_rest/version.rb +1 -1
  12. data/schemas/advancedFlowByVersionQuery.json +665 -0
  13. data/schemas/advancedFlowQuery.json +665 -0
  14. data/schemas/advancedFlowVersionQuery.json +707 -0
  15. data/schemas/applicationApiTokenPost.json +2 -0
  16. data/schemas/attributeNamesResponse.json +14 -0
  17. data/schemas/dashboard.json +3 -0
  18. data/schemas/dashboardPatch.json +3 -0
  19. data/schemas/dashboardPost.json +3 -0
  20. data/schemas/dashboards.json +3 -0
  21. data/schemas/experienceLinkedResources.json +33 -0
  22. data/schemas/experienceVersion.json +9 -0
  23. data/schemas/experienceVersionPatch.json +9 -0
  24. data/schemas/experienceVersions.json +9 -0
  25. data/schemas/flow.json +11 -0
  26. data/schemas/flowPatch.json +11 -0
  27. data/schemas/flowPost.json +11 -0
  28. data/schemas/flowVersion.json +22 -0
  29. data/schemas/flowVersionPost.json +11 -0
  30. data/schemas/flowVersions.json +22 -0
  31. data/schemas/flows.json +11 -0
  32. data/schemas/flowsImportPost.json +22 -0
  33. data/schemas/flowsImportResult.json +33 -0
  34. data/schemas/githubLogin.json +2 -0
  35. data/schemas/integration.json +3 -0
  36. data/schemas/integrationPatch.json +3 -0
  37. data/schemas/integrationPost.json +3 -0
  38. data/schemas/integrations.json +3 -0
  39. data/schemas/notebook.json +7 -0
  40. data/schemas/notebookExecutionLogs.json +7 -0
  41. data/schemas/notebookPatch.json +7 -0
  42. data/schemas/notebookPost.json +7 -0
  43. data/schemas/notebooks.json +7 -0
  44. data/schemas/tagKeysResponse.json +14 -0
  45. data/schemas/tagValuesResponse.json +19 -0
  46. data/schemas/userCredentials.json +2 -0
  47. data/schemas/userPost.json +2 -0
  48. metadata +9 -3
@@ -0,0 +1,707 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "$and": {
6
+ "type": "array",
7
+ "items": {
8
+ "$ref": "#/definitions/advancedFlowVersionQuery"
9
+ },
10
+ "maxItems": 100
11
+ },
12
+ "$or": {
13
+ "type": "array",
14
+ "items": {
15
+ "$ref": "#/definitions/advancedFlowVersionQuery"
16
+ },
17
+ "maxItems": 100
18
+ },
19
+ "$nor": {
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "#/definitions/advancedFlowVersionQuery"
23
+ },
24
+ "maxItems": 100
25
+ },
26
+ "name": {
27
+ "oneOf": [
28
+ {
29
+ "type": [
30
+ "string",
31
+ "number",
32
+ "boolean",
33
+ "null"
34
+ ]
35
+ },
36
+ {
37
+ "type": "object",
38
+ "properties": {
39
+ "$eq": {
40
+ "type": [
41
+ "string",
42
+ "number",
43
+ "boolean",
44
+ "null"
45
+ ]
46
+ },
47
+ "$ne": {
48
+ "type": [
49
+ "string",
50
+ "number",
51
+ "boolean",
52
+ "null"
53
+ ]
54
+ },
55
+ "$gt": {
56
+ "type": [
57
+ "string",
58
+ "number",
59
+ "boolean",
60
+ "null"
61
+ ]
62
+ },
63
+ "$lt": {
64
+ "type": [
65
+ "string",
66
+ "number",
67
+ "boolean",
68
+ "null"
69
+ ]
70
+ },
71
+ "$gte": {
72
+ "type": [
73
+ "string",
74
+ "number",
75
+ "boolean",
76
+ "null"
77
+ ]
78
+ },
79
+ "$lte": {
80
+ "type": [
81
+ "string",
82
+ "number",
83
+ "boolean",
84
+ "null"
85
+ ]
86
+ },
87
+ "$startsWith": {
88
+ "type": "string",
89
+ "minLength": 1
90
+ },
91
+ "$endsWith": {
92
+ "type": "string",
93
+ "minLength": 1
94
+ },
95
+ "$contains": {
96
+ "type": "string",
97
+ "minLength": 1
98
+ },
99
+ "$ci": {
100
+ "type": "boolean"
101
+ },
102
+ "$in": {
103
+ "type": "array",
104
+ "maxItems": 100,
105
+ "items": {
106
+ "type": [
107
+ "string",
108
+ "number",
109
+ "boolean"
110
+ ]
111
+ }
112
+ },
113
+ "$nin": {
114
+ "type": "array",
115
+ "maxItems": 100,
116
+ "items": {
117
+ "type": [
118
+ "string",
119
+ "number",
120
+ "boolean"
121
+ ]
122
+ }
123
+ }
124
+ },
125
+ "additionalProperties": false
126
+ }
127
+ ]
128
+ },
129
+ "id": {
130
+ "oneOf": [
131
+ {
132
+ "oneOf": [
133
+ {
134
+ "type": "string",
135
+ "pattern": "^[A-Fa-f\\d]{24}$"
136
+ },
137
+ {
138
+ "type": "null"
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ "type": "object",
144
+ "properties": {
145
+ "$eq": {
146
+ "oneOf": [
147
+ {
148
+ "type": "string",
149
+ "pattern": "^[A-Fa-f\\d]{24}$"
150
+ },
151
+ {
152
+ "type": "null"
153
+ }
154
+ ]
155
+ },
156
+ "$ne": {
157
+ "oneOf": [
158
+ {
159
+ "type": "string",
160
+ "pattern": "^[A-Fa-f\\d]{24}$"
161
+ },
162
+ {
163
+ "type": "null"
164
+ }
165
+ ]
166
+ },
167
+ "$in": {
168
+ "type": "array",
169
+ "maxItems": 100,
170
+ "items": {
171
+ "type": "string",
172
+ "pattern": "^[A-Fa-f\\d]{24}$"
173
+ }
174
+ },
175
+ "$nin": {
176
+ "type": "array",
177
+ "maxItems": 100,
178
+ "items": {
179
+ "type": "string",
180
+ "pattern": "^[A-Fa-f\\d]{24}$"
181
+ }
182
+ }
183
+ },
184
+ "additionalProperties": false,
185
+ "minProperties": 1,
186
+ "maxProperties": 1
187
+ }
188
+ ]
189
+ },
190
+ "creationDate": {
191
+ "oneOf": [
192
+ {
193
+ "type": [
194
+ "string",
195
+ "number",
196
+ "boolean",
197
+ "null"
198
+ ]
199
+ },
200
+ {
201
+ "type": "object",
202
+ "properties": {
203
+ "$eq": {
204
+ "type": [
205
+ "string",
206
+ "number",
207
+ "boolean",
208
+ "null"
209
+ ]
210
+ },
211
+ "$ne": {
212
+ "type": [
213
+ "string",
214
+ "number",
215
+ "boolean",
216
+ "null"
217
+ ]
218
+ },
219
+ "$gt": {
220
+ "type": [
221
+ "string",
222
+ "number",
223
+ "boolean",
224
+ "null"
225
+ ]
226
+ },
227
+ "$lt": {
228
+ "type": [
229
+ "string",
230
+ "number",
231
+ "boolean",
232
+ "null"
233
+ ]
234
+ },
235
+ "$gte": {
236
+ "type": [
237
+ "string",
238
+ "number",
239
+ "boolean",
240
+ "null"
241
+ ]
242
+ },
243
+ "$lte": {
244
+ "type": [
245
+ "string",
246
+ "number",
247
+ "boolean",
248
+ "null"
249
+ ]
250
+ },
251
+ "$startsWith": {
252
+ "type": "string",
253
+ "minLength": 1
254
+ },
255
+ "$endsWith": {
256
+ "type": "string",
257
+ "minLength": 1
258
+ },
259
+ "$contains": {
260
+ "type": "string",
261
+ "minLength": 1
262
+ },
263
+ "$ci": {
264
+ "type": "boolean"
265
+ },
266
+ "$in": {
267
+ "type": "array",
268
+ "maxItems": 100,
269
+ "items": {
270
+ "type": [
271
+ "string",
272
+ "number",
273
+ "boolean"
274
+ ]
275
+ }
276
+ },
277
+ "$nin": {
278
+ "type": "array",
279
+ "maxItems": 100,
280
+ "items": {
281
+ "type": [
282
+ "string",
283
+ "number",
284
+ "boolean"
285
+ ]
286
+ }
287
+ }
288
+ },
289
+ "additionalProperties": false
290
+ }
291
+ ]
292
+ },
293
+ "lastUpdated": {
294
+ "oneOf": [
295
+ {
296
+ "type": [
297
+ "string",
298
+ "number",
299
+ "boolean",
300
+ "null"
301
+ ]
302
+ },
303
+ {
304
+ "type": "object",
305
+ "properties": {
306
+ "$eq": {
307
+ "type": [
308
+ "string",
309
+ "number",
310
+ "boolean",
311
+ "null"
312
+ ]
313
+ },
314
+ "$ne": {
315
+ "type": [
316
+ "string",
317
+ "number",
318
+ "boolean",
319
+ "null"
320
+ ]
321
+ },
322
+ "$gt": {
323
+ "type": [
324
+ "string",
325
+ "number",
326
+ "boolean",
327
+ "null"
328
+ ]
329
+ },
330
+ "$lt": {
331
+ "type": [
332
+ "string",
333
+ "number",
334
+ "boolean",
335
+ "null"
336
+ ]
337
+ },
338
+ "$gte": {
339
+ "type": [
340
+ "string",
341
+ "number",
342
+ "boolean",
343
+ "null"
344
+ ]
345
+ },
346
+ "$lte": {
347
+ "type": [
348
+ "string",
349
+ "number",
350
+ "boolean",
351
+ "null"
352
+ ]
353
+ },
354
+ "$startsWith": {
355
+ "type": "string",
356
+ "minLength": 1
357
+ },
358
+ "$endsWith": {
359
+ "type": "string",
360
+ "minLength": 1
361
+ },
362
+ "$contains": {
363
+ "type": "string",
364
+ "minLength": 1
365
+ },
366
+ "$ci": {
367
+ "type": "boolean"
368
+ },
369
+ "$in": {
370
+ "type": "array",
371
+ "maxItems": 100,
372
+ "items": {
373
+ "type": [
374
+ "string",
375
+ "number",
376
+ "boolean"
377
+ ]
378
+ }
379
+ },
380
+ "$nin": {
381
+ "type": "array",
382
+ "maxItems": 100,
383
+ "items": {
384
+ "type": [
385
+ "string",
386
+ "number",
387
+ "boolean"
388
+ ]
389
+ }
390
+ }
391
+ },
392
+ "additionalProperties": false
393
+ }
394
+ ]
395
+ },
396
+ "flowClass": {
397
+ "oneOf": [
398
+ {
399
+ "type": [
400
+ "string",
401
+ "number",
402
+ "boolean",
403
+ "null"
404
+ ]
405
+ },
406
+ {
407
+ "type": "object",
408
+ "properties": {
409
+ "$eq": {
410
+ "type": [
411
+ "string",
412
+ "number",
413
+ "boolean",
414
+ "null"
415
+ ]
416
+ },
417
+ "$ne": {
418
+ "type": [
419
+ "string",
420
+ "number",
421
+ "boolean",
422
+ "null"
423
+ ]
424
+ },
425
+ "$gt": {
426
+ "type": [
427
+ "string",
428
+ "number",
429
+ "boolean",
430
+ "null"
431
+ ]
432
+ },
433
+ "$lt": {
434
+ "type": [
435
+ "string",
436
+ "number",
437
+ "boolean",
438
+ "null"
439
+ ]
440
+ },
441
+ "$gte": {
442
+ "type": [
443
+ "string",
444
+ "number",
445
+ "boolean",
446
+ "null"
447
+ ]
448
+ },
449
+ "$lte": {
450
+ "type": [
451
+ "string",
452
+ "number",
453
+ "boolean",
454
+ "null"
455
+ ]
456
+ },
457
+ "$startsWith": {
458
+ "type": "string",
459
+ "minLength": 1
460
+ },
461
+ "$endsWith": {
462
+ "type": "string",
463
+ "minLength": 1
464
+ },
465
+ "$contains": {
466
+ "type": "string",
467
+ "minLength": 1
468
+ },
469
+ "$ci": {
470
+ "type": "boolean"
471
+ },
472
+ "$in": {
473
+ "type": "array",
474
+ "maxItems": 100,
475
+ "items": {
476
+ "type": [
477
+ "string",
478
+ "number",
479
+ "boolean"
480
+ ]
481
+ }
482
+ },
483
+ "$nin": {
484
+ "type": "array",
485
+ "maxItems": 100,
486
+ "items": {
487
+ "type": [
488
+ "string",
489
+ "number",
490
+ "boolean"
491
+ ]
492
+ }
493
+ }
494
+ },
495
+ "additionalProperties": false
496
+ }
497
+ ]
498
+ },
499
+ "enabled": {
500
+ "oneOf": [
501
+ {
502
+ "type": [
503
+ "string",
504
+ "number",
505
+ "boolean",
506
+ "null"
507
+ ]
508
+ },
509
+ {
510
+ "type": "object",
511
+ "properties": {
512
+ "$eq": {
513
+ "type": [
514
+ "string",
515
+ "number",
516
+ "boolean",
517
+ "null"
518
+ ]
519
+ },
520
+ "$ne": {
521
+ "type": [
522
+ "string",
523
+ "number",
524
+ "boolean",
525
+ "null"
526
+ ]
527
+ },
528
+ "$gt": {
529
+ "type": [
530
+ "string",
531
+ "number",
532
+ "boolean",
533
+ "null"
534
+ ]
535
+ },
536
+ "$lt": {
537
+ "type": [
538
+ "string",
539
+ "number",
540
+ "boolean",
541
+ "null"
542
+ ]
543
+ },
544
+ "$gte": {
545
+ "type": [
546
+ "string",
547
+ "number",
548
+ "boolean",
549
+ "null"
550
+ ]
551
+ },
552
+ "$lte": {
553
+ "type": [
554
+ "string",
555
+ "number",
556
+ "boolean",
557
+ "null"
558
+ ]
559
+ },
560
+ "$startsWith": {
561
+ "type": "string",
562
+ "minLength": 1
563
+ },
564
+ "$endsWith": {
565
+ "type": "string",
566
+ "minLength": 1
567
+ },
568
+ "$contains": {
569
+ "type": "string",
570
+ "minLength": 1
571
+ },
572
+ "$ci": {
573
+ "type": "boolean"
574
+ },
575
+ "$in": {
576
+ "type": "array",
577
+ "maxItems": 100,
578
+ "items": {
579
+ "type": [
580
+ "string",
581
+ "number",
582
+ "boolean"
583
+ ]
584
+ }
585
+ },
586
+ "$nin": {
587
+ "type": "array",
588
+ "maxItems": 100,
589
+ "items": {
590
+ "type": [
591
+ "string",
592
+ "number",
593
+ "boolean"
594
+ ]
595
+ }
596
+ }
597
+ },
598
+ "additionalProperties": false
599
+ }
600
+ ]
601
+ },
602
+ "version": {
603
+ "oneOf": [
604
+ {
605
+ "type": [
606
+ "string",
607
+ "number",
608
+ "boolean",
609
+ "null"
610
+ ]
611
+ },
612
+ {
613
+ "type": "object",
614
+ "properties": {
615
+ "$eq": {
616
+ "type": [
617
+ "string",
618
+ "number",
619
+ "boolean",
620
+ "null"
621
+ ]
622
+ },
623
+ "$ne": {
624
+ "type": [
625
+ "string",
626
+ "number",
627
+ "boolean",
628
+ "null"
629
+ ]
630
+ },
631
+ "$gt": {
632
+ "type": [
633
+ "string",
634
+ "number",
635
+ "boolean",
636
+ "null"
637
+ ]
638
+ },
639
+ "$lt": {
640
+ "type": [
641
+ "string",
642
+ "number",
643
+ "boolean",
644
+ "null"
645
+ ]
646
+ },
647
+ "$gte": {
648
+ "type": [
649
+ "string",
650
+ "number",
651
+ "boolean",
652
+ "null"
653
+ ]
654
+ },
655
+ "$lte": {
656
+ "type": [
657
+ "string",
658
+ "number",
659
+ "boolean",
660
+ "null"
661
+ ]
662
+ },
663
+ "$startsWith": {
664
+ "type": "string",
665
+ "minLength": 1
666
+ },
667
+ "$endsWith": {
668
+ "type": "string",
669
+ "minLength": 1
670
+ },
671
+ "$contains": {
672
+ "type": "string",
673
+ "minLength": 1
674
+ },
675
+ "$ci": {
676
+ "type": "boolean"
677
+ },
678
+ "$in": {
679
+ "type": "array",
680
+ "maxItems": 100,
681
+ "items": {
682
+ "type": [
683
+ "string",
684
+ "number",
685
+ "boolean"
686
+ ]
687
+ }
688
+ },
689
+ "$nin": {
690
+ "type": "array",
691
+ "maxItems": 100,
692
+ "items": {
693
+ "type": [
694
+ "string",
695
+ "number",
696
+ "boolean"
697
+ ]
698
+ }
699
+ }
700
+ },
701
+ "additionalProperties": false
702
+ }
703
+ ]
704
+ }
705
+ },
706
+ "additionalProperties": false
707
+ }