losant_rest 1.9.2 → 1.9.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +9757 -8758
  3. data/docs/application.md +81 -2
  4. data/docs/applicationTemplates.md +50 -0
  5. data/docs/auth.md +72 -0
  6. data/docs/devices.md +1 -0
  7. data/lib/losant_rest/application.rb +93 -2
  8. data/lib/losant_rest/application_templates.rb +88 -0
  9. data/lib/losant_rest/auth.rb +84 -0
  10. data/lib/losant_rest/client.rb +6 -2
  11. data/lib/losant_rest/devices.rb +3 -0
  12. data/lib/losant_rest/version.rb +2 -2
  13. data/lib/losant_rest.rb +1 -0
  14. data/schemas/advancedDeviceQuery.json +901 -0
  15. data/schemas/advancedEventQuery.json +177 -13
  16. data/schemas/advancedQuery.json +3 -0
  17. data/schemas/application.json +2 -2
  18. data/schemas/applicationCreationByTemplateResult.json +2 -2
  19. data/schemas/applicationPatch.json +2 -2
  20. data/schemas/applicationPost.json +6 -2
  21. data/schemas/applicationReadme.json +29 -0
  22. data/schemas/applicationReadmePatch.json +11 -0
  23. data/schemas/applicationTemplate.json +87 -0
  24. data/schemas/applicationTemplates.json +128 -0
  25. data/schemas/applications.json +2 -2
  26. data/schemas/dashboard.json +4 -0
  27. data/schemas/dashboardPatch.json +4 -0
  28. data/schemas/dashboardPost.json +4 -0
  29. data/schemas/dashboards.json +4 -0
  30. data/schemas/dataTableRows.json +3 -0
  31. data/schemas/dataTableRowsExport.json +3 -0
  32. data/schemas/devices.json +3 -0
  33. data/schemas/events.json +1 -816
  34. data/schemas/eventsExport.json +177 -13
  35. data/schemas/githubLogin.json +2 -0
  36. data/schemas/me.json +3 -0
  37. data/schemas/org.json +8 -0
  38. data/schemas/orgPatch.json +9 -0
  39. data/schemas/orgPost.json +9 -0
  40. data/schemas/orgs.json +8 -0
  41. data/schemas/samlResponse.json +21 -0
  42. data/schemas/ssoRequest.json +20 -0
  43. data/schemas/userCredentials.json +2 -0
  44. data/schemas/userPost.json +2 -0
  45. metadata +12 -4
@@ -0,0 +1,901 @@
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/advancedDeviceQuery"
9
+ },
10
+ "maxItems": 100
11
+ },
12
+ "$or": {
13
+ "type": "array",
14
+ "items": {
15
+ "$ref": "#/definitions/advancedDeviceQuery"
16
+ },
17
+ "maxItems": 100
18
+ },
19
+ "id": {
20
+ "oneOf": [
21
+ {
22
+ "oneOf": [
23
+ {
24
+ "type": "string",
25
+ "pattern": "^[A-Fa-f\\d]{24}$"
26
+ },
27
+ {
28
+ "type": "null"
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "type": "object",
34
+ "properties": {
35
+ "$eq": {
36
+ "oneOf": [
37
+ {
38
+ "type": "string",
39
+ "pattern": "^[A-Fa-f\\d]{24}$"
40
+ },
41
+ {
42
+ "type": "null"
43
+ }
44
+ ]
45
+ },
46
+ "$ne": {
47
+ "oneOf": [
48
+ {
49
+ "type": "string",
50
+ "pattern": "^[A-Fa-f\\d]{24}$"
51
+ },
52
+ {
53
+ "type": "null"
54
+ }
55
+ ]
56
+ },
57
+ "$in": {
58
+ "type": "array",
59
+ "maxItems": 100,
60
+ "items": {
61
+ "type": "string",
62
+ "pattern": "^[A-Fa-f\\d]{24}$"
63
+ }
64
+ },
65
+ "$nin": {
66
+ "type": "array",
67
+ "maxItems": 100,
68
+ "items": {
69
+ "type": "string",
70
+ "pattern": "^[A-Fa-f\\d]{24}$"
71
+ }
72
+ }
73
+ },
74
+ "additionalProperties": false,
75
+ "minProperties": 1,
76
+ "maxProperties": 1
77
+ }
78
+ ]
79
+ },
80
+ "creationDate": {
81
+ "oneOf": [
82
+ {
83
+ "type": [
84
+ "string",
85
+ "number",
86
+ "boolean",
87
+ "null"
88
+ ]
89
+ },
90
+ {
91
+ "type": "object",
92
+ "properties": {
93
+ "$eq": {
94
+ "type": [
95
+ "string",
96
+ "number",
97
+ "boolean",
98
+ "null"
99
+ ]
100
+ },
101
+ "$ne": {
102
+ "type": [
103
+ "string",
104
+ "number",
105
+ "boolean",
106
+ "null"
107
+ ]
108
+ },
109
+ "$gt": {
110
+ "type": [
111
+ "string",
112
+ "number",
113
+ "boolean",
114
+ "null"
115
+ ]
116
+ },
117
+ "$lt": {
118
+ "type": [
119
+ "string",
120
+ "number",
121
+ "boolean",
122
+ "null"
123
+ ]
124
+ },
125
+ "$gte": {
126
+ "type": [
127
+ "string",
128
+ "number",
129
+ "boolean",
130
+ "null"
131
+ ]
132
+ },
133
+ "$lte": {
134
+ "type": [
135
+ "string",
136
+ "number",
137
+ "boolean",
138
+ "null"
139
+ ]
140
+ },
141
+ "$startsWith": {
142
+ "type": "string",
143
+ "minLength": 1
144
+ },
145
+ "$endsWith": {
146
+ "type": "string",
147
+ "minLength": 1
148
+ },
149
+ "$contains": {
150
+ "type": "string",
151
+ "minLength": 1
152
+ },
153
+ "$ci": {
154
+ "type": "boolean"
155
+ }
156
+ },
157
+ "additionalProperties": false
158
+ }
159
+ ]
160
+ },
161
+ "lastUpdated": {
162
+ "oneOf": [
163
+ {
164
+ "type": [
165
+ "string",
166
+ "number",
167
+ "boolean",
168
+ "null"
169
+ ]
170
+ },
171
+ {
172
+ "type": "object",
173
+ "properties": {
174
+ "$eq": {
175
+ "type": [
176
+ "string",
177
+ "number",
178
+ "boolean",
179
+ "null"
180
+ ]
181
+ },
182
+ "$ne": {
183
+ "type": [
184
+ "string",
185
+ "number",
186
+ "boolean",
187
+ "null"
188
+ ]
189
+ },
190
+ "$gt": {
191
+ "type": [
192
+ "string",
193
+ "number",
194
+ "boolean",
195
+ "null"
196
+ ]
197
+ },
198
+ "$lt": {
199
+ "type": [
200
+ "string",
201
+ "number",
202
+ "boolean",
203
+ "null"
204
+ ]
205
+ },
206
+ "$gte": {
207
+ "type": [
208
+ "string",
209
+ "number",
210
+ "boolean",
211
+ "null"
212
+ ]
213
+ },
214
+ "$lte": {
215
+ "type": [
216
+ "string",
217
+ "number",
218
+ "boolean",
219
+ "null"
220
+ ]
221
+ },
222
+ "$startsWith": {
223
+ "type": "string",
224
+ "minLength": 1
225
+ },
226
+ "$endsWith": {
227
+ "type": "string",
228
+ "minLength": 1
229
+ },
230
+ "$contains": {
231
+ "type": "string",
232
+ "minLength": 1
233
+ },
234
+ "$ci": {
235
+ "type": "boolean"
236
+ }
237
+ },
238
+ "additionalProperties": false
239
+ }
240
+ ]
241
+ },
242
+ "name": {
243
+ "oneOf": [
244
+ {
245
+ "type": [
246
+ "string",
247
+ "number",
248
+ "boolean",
249
+ "null"
250
+ ]
251
+ },
252
+ {
253
+ "type": "object",
254
+ "properties": {
255
+ "$eq": {
256
+ "type": [
257
+ "string",
258
+ "number",
259
+ "boolean",
260
+ "null"
261
+ ]
262
+ },
263
+ "$ne": {
264
+ "type": [
265
+ "string",
266
+ "number",
267
+ "boolean",
268
+ "null"
269
+ ]
270
+ },
271
+ "$gt": {
272
+ "type": [
273
+ "string",
274
+ "number",
275
+ "boolean",
276
+ "null"
277
+ ]
278
+ },
279
+ "$lt": {
280
+ "type": [
281
+ "string",
282
+ "number",
283
+ "boolean",
284
+ "null"
285
+ ]
286
+ },
287
+ "$gte": {
288
+ "type": [
289
+ "string",
290
+ "number",
291
+ "boolean",
292
+ "null"
293
+ ]
294
+ },
295
+ "$lte": {
296
+ "type": [
297
+ "string",
298
+ "number",
299
+ "boolean",
300
+ "null"
301
+ ]
302
+ },
303
+ "$startsWith": {
304
+ "type": "string",
305
+ "minLength": 1
306
+ },
307
+ "$endsWith": {
308
+ "type": "string",
309
+ "minLength": 1
310
+ },
311
+ "$contains": {
312
+ "type": "string",
313
+ "minLength": 1
314
+ },
315
+ "$ci": {
316
+ "type": "boolean"
317
+ }
318
+ },
319
+ "additionalProperties": false
320
+ }
321
+ ]
322
+ },
323
+ "deviceClass": {
324
+ "oneOf": [
325
+ {
326
+ "type": [
327
+ "string",
328
+ "number",
329
+ "boolean",
330
+ "null"
331
+ ]
332
+ },
333
+ {
334
+ "type": "object",
335
+ "properties": {
336
+ "$eq": {
337
+ "type": [
338
+ "string",
339
+ "number",
340
+ "boolean",
341
+ "null"
342
+ ]
343
+ },
344
+ "$ne": {
345
+ "type": [
346
+ "string",
347
+ "number",
348
+ "boolean",
349
+ "null"
350
+ ]
351
+ },
352
+ "$gt": {
353
+ "type": [
354
+ "string",
355
+ "number",
356
+ "boolean",
357
+ "null"
358
+ ]
359
+ },
360
+ "$lt": {
361
+ "type": [
362
+ "string",
363
+ "number",
364
+ "boolean",
365
+ "null"
366
+ ]
367
+ },
368
+ "$gte": {
369
+ "type": [
370
+ "string",
371
+ "number",
372
+ "boolean",
373
+ "null"
374
+ ]
375
+ },
376
+ "$lte": {
377
+ "type": [
378
+ "string",
379
+ "number",
380
+ "boolean",
381
+ "null"
382
+ ]
383
+ },
384
+ "$startsWith": {
385
+ "type": "string",
386
+ "minLength": 1
387
+ },
388
+ "$endsWith": {
389
+ "type": "string",
390
+ "minLength": 1
391
+ },
392
+ "$contains": {
393
+ "type": "string",
394
+ "minLength": 1
395
+ },
396
+ "$ci": {
397
+ "type": "boolean"
398
+ }
399
+ },
400
+ "additionalProperties": false
401
+ }
402
+ ]
403
+ },
404
+ "gatewayId": {
405
+ "oneOf": [
406
+ {
407
+ "oneOf": [
408
+ {
409
+ "type": "string",
410
+ "pattern": "^[A-Fa-f\\d]{24}$"
411
+ },
412
+ {
413
+ "type": "null"
414
+ }
415
+ ]
416
+ },
417
+ {
418
+ "type": "object",
419
+ "properties": {
420
+ "$eq": {
421
+ "oneOf": [
422
+ {
423
+ "type": "string",
424
+ "pattern": "^[A-Fa-f\\d]{24}$"
425
+ },
426
+ {
427
+ "type": "null"
428
+ }
429
+ ]
430
+ },
431
+ "$ne": {
432
+ "oneOf": [
433
+ {
434
+ "type": "string",
435
+ "pattern": "^[A-Fa-f\\d]{24}$"
436
+ },
437
+ {
438
+ "type": "null"
439
+ }
440
+ ]
441
+ },
442
+ "$in": {
443
+ "type": "array",
444
+ "maxItems": 100,
445
+ "items": {
446
+ "type": "string",
447
+ "pattern": "^[A-Fa-f\\d]{24}$"
448
+ }
449
+ },
450
+ "$nin": {
451
+ "type": "array",
452
+ "maxItems": 100,
453
+ "items": {
454
+ "type": "string",
455
+ "pattern": "^[A-Fa-f\\d]{24}$"
456
+ }
457
+ }
458
+ },
459
+ "additionalProperties": false,
460
+ "minProperties": 1,
461
+ "maxProperties": 1
462
+ }
463
+ ]
464
+ },
465
+ "parentId": {
466
+ "oneOf": [
467
+ {
468
+ "oneOf": [
469
+ {
470
+ "type": "string",
471
+ "pattern": "^[A-Fa-f\\d]{24}$"
472
+ },
473
+ {
474
+ "type": "null"
475
+ }
476
+ ]
477
+ },
478
+ {
479
+ "type": "object",
480
+ "properties": {
481
+ "$eq": {
482
+ "oneOf": [
483
+ {
484
+ "type": "string",
485
+ "pattern": "^[A-Fa-f\\d]{24}$"
486
+ },
487
+ {
488
+ "type": "null"
489
+ }
490
+ ]
491
+ },
492
+ "$ne": {
493
+ "oneOf": [
494
+ {
495
+ "type": "string",
496
+ "pattern": "^[A-Fa-f\\d]{24}$"
497
+ },
498
+ {
499
+ "type": "null"
500
+ }
501
+ ]
502
+ },
503
+ "$in": {
504
+ "type": "array",
505
+ "maxItems": 100,
506
+ "items": {
507
+ "type": "string",
508
+ "pattern": "^[A-Fa-f\\d]{24}$"
509
+ }
510
+ },
511
+ "$nin": {
512
+ "type": "array",
513
+ "maxItems": 100,
514
+ "items": {
515
+ "type": "string",
516
+ "pattern": "^[A-Fa-f\\d]{24}$"
517
+ }
518
+ }
519
+ },
520
+ "additionalProperties": false,
521
+ "minProperties": 1,
522
+ "maxProperties": 1
523
+ }
524
+ ]
525
+ },
526
+ "ancestorId": {
527
+ "oneOf": [
528
+ {
529
+ "oneOf": [
530
+ {
531
+ "type": "string",
532
+ "pattern": "^[A-Fa-f\\d]{24}$"
533
+ },
534
+ {
535
+ "type": "null"
536
+ }
537
+ ]
538
+ },
539
+ {
540
+ "type": "object",
541
+ "properties": {
542
+ "$eq": {
543
+ "oneOf": [
544
+ {
545
+ "type": "string",
546
+ "pattern": "^[A-Fa-f\\d]{24}$"
547
+ },
548
+ {
549
+ "type": "null"
550
+ }
551
+ ]
552
+ },
553
+ "$ne": {
554
+ "oneOf": [
555
+ {
556
+ "type": "string",
557
+ "pattern": "^[A-Fa-f\\d]{24}$"
558
+ },
559
+ {
560
+ "type": "null"
561
+ }
562
+ ]
563
+ },
564
+ "$in": {
565
+ "type": "array",
566
+ "maxItems": 100,
567
+ "items": {
568
+ "type": "string",
569
+ "pattern": "^[A-Fa-f\\d]{24}$"
570
+ }
571
+ },
572
+ "$nin": {
573
+ "type": "array",
574
+ "maxItems": 100,
575
+ "items": {
576
+ "type": "string",
577
+ "pattern": "^[A-Fa-f\\d]{24}$"
578
+ }
579
+ }
580
+ },
581
+ "additionalProperties": false,
582
+ "minProperties": 1,
583
+ "maxProperties": 1
584
+ }
585
+ ]
586
+ },
587
+ "attributeName": {
588
+ "oneOf": [
589
+ {
590
+ "type": [
591
+ "string",
592
+ "number",
593
+ "boolean",
594
+ "null"
595
+ ]
596
+ },
597
+ {
598
+ "type": "object",
599
+ "properties": {
600
+ "$eq": {
601
+ "type": [
602
+ "string",
603
+ "number",
604
+ "boolean",
605
+ "null"
606
+ ]
607
+ },
608
+ "$ne": {
609
+ "type": [
610
+ "string",
611
+ "number",
612
+ "boolean",
613
+ "null"
614
+ ]
615
+ },
616
+ "$gt": {
617
+ "type": [
618
+ "string",
619
+ "number",
620
+ "boolean",
621
+ "null"
622
+ ]
623
+ },
624
+ "$lt": {
625
+ "type": [
626
+ "string",
627
+ "number",
628
+ "boolean",
629
+ "null"
630
+ ]
631
+ },
632
+ "$gte": {
633
+ "type": [
634
+ "string",
635
+ "number",
636
+ "boolean",
637
+ "null"
638
+ ]
639
+ },
640
+ "$lte": {
641
+ "type": [
642
+ "string",
643
+ "number",
644
+ "boolean",
645
+ "null"
646
+ ]
647
+ },
648
+ "$startsWith": {
649
+ "type": "string",
650
+ "minLength": 1
651
+ },
652
+ "$endsWith": {
653
+ "type": "string",
654
+ "minLength": 1
655
+ },
656
+ "$contains": {
657
+ "type": "string",
658
+ "minLength": 1
659
+ },
660
+ "$ci": {
661
+ "type": "boolean"
662
+ }
663
+ },
664
+ "additionalProperties": false
665
+ }
666
+ ]
667
+ },
668
+ "experienceUserId": {
669
+ "oneOf": [
670
+ {
671
+ "oneOf": [
672
+ {
673
+ "type": "string",
674
+ "pattern": "^[A-Fa-f\\d]{24}$"
675
+ },
676
+ {
677
+ "type": "null"
678
+ }
679
+ ]
680
+ },
681
+ {
682
+ "type": "object",
683
+ "properties": {
684
+ "$eq": {
685
+ "oneOf": [
686
+ {
687
+ "type": "string",
688
+ "pattern": "^[A-Fa-f\\d]{24}$"
689
+ },
690
+ {
691
+ "type": "null"
692
+ }
693
+ ]
694
+ },
695
+ "$ne": {
696
+ "oneOf": [
697
+ {
698
+ "type": "string",
699
+ "pattern": "^[A-Fa-f\\d]{24}$"
700
+ },
701
+ {
702
+ "type": "null"
703
+ }
704
+ ]
705
+ },
706
+ "$in": {
707
+ "type": "array",
708
+ "maxItems": 100,
709
+ "items": {
710
+ "type": "string",
711
+ "pattern": "^[A-Fa-f\\d]{24}$"
712
+ }
713
+ },
714
+ "$nin": {
715
+ "type": "array",
716
+ "maxItems": 100,
717
+ "items": {
718
+ "type": "string",
719
+ "pattern": "^[A-Fa-f\\d]{24}$"
720
+ }
721
+ }
722
+ },
723
+ "additionalProperties": false,
724
+ "minProperties": 1,
725
+ "maxProperties": 1
726
+ }
727
+ ]
728
+ },
729
+ "experienceGroupId": {
730
+ "oneOf": [
731
+ {
732
+ "oneOf": [
733
+ {
734
+ "type": "string",
735
+ "pattern": "^[A-Fa-f\\d]{24}$"
736
+ },
737
+ {
738
+ "type": "null"
739
+ }
740
+ ]
741
+ },
742
+ {
743
+ "type": "object",
744
+ "properties": {
745
+ "$eq": {
746
+ "oneOf": [
747
+ {
748
+ "type": "string",
749
+ "pattern": "^[A-Fa-f\\d]{24}$"
750
+ },
751
+ {
752
+ "type": "null"
753
+ }
754
+ ]
755
+ },
756
+ "$ne": {
757
+ "oneOf": [
758
+ {
759
+ "type": "string",
760
+ "pattern": "^[A-Fa-f\\d]{24}$"
761
+ },
762
+ {
763
+ "type": "null"
764
+ }
765
+ ]
766
+ },
767
+ "$in": {
768
+ "type": "array",
769
+ "maxItems": 100,
770
+ "items": {
771
+ "type": "string",
772
+ "pattern": "^[A-Fa-f\\d]{24}$"
773
+ }
774
+ },
775
+ "$nin": {
776
+ "type": "array",
777
+ "maxItems": 100,
778
+ "items": {
779
+ "type": "string",
780
+ "pattern": "^[A-Fa-f\\d]{24}$"
781
+ }
782
+ }
783
+ },
784
+ "additionalProperties": false,
785
+ "minProperties": 1,
786
+ "maxProperties": 1
787
+ }
788
+ ]
789
+ },
790
+ "tags": {
791
+ "oneOf": [
792
+ {
793
+ "oneOf": [
794
+ {
795
+ "type": "object",
796
+ "properties": {
797
+ "$tagKey": {
798
+ "type": "string",
799
+ "maxLength": 255
800
+ },
801
+ "$tagValue": {
802
+ "type": "string",
803
+ "maxLength": 255
804
+ }
805
+ },
806
+ "additionalProperties": false,
807
+ "minProperties": 1
808
+ },
809
+ {
810
+ "type": "object",
811
+ "patternProperties": {
812
+ "^[0-9a-zA-Z_-]{1,255}": {
813
+ "type": "string",
814
+ "maxLength": 255
815
+ }
816
+ },
817
+ "additionalProperties": false
818
+ }
819
+ ]
820
+ },
821
+ {
822
+ "type": "object",
823
+ "properties": {
824
+ "$eq": {
825
+ "oneOf": [
826
+ {
827
+ "type": "object",
828
+ "properties": {
829
+ "$tagKey": {
830
+ "type": "string",
831
+ "maxLength": 255
832
+ },
833
+ "$tagValue": {
834
+ "type": "string",
835
+ "maxLength": 255
836
+ }
837
+ },
838
+ "additionalProperties": false,
839
+ "minProperties": 1
840
+ },
841
+ {
842
+ "type": "object",
843
+ "patternProperties": {
844
+ "^[0-9a-zA-Z_-]{1,255}": {
845
+ "type": "string",
846
+ "maxLength": 255
847
+ }
848
+ },
849
+ "additionalProperties": false
850
+ }
851
+ ]
852
+ }
853
+ },
854
+ "required": [
855
+ "$eq"
856
+ ],
857
+ "additionalProperties": false
858
+ },
859
+ {
860
+ "type": "object",
861
+ "properties": {
862
+ "$ne": {
863
+ "oneOf": [
864
+ {
865
+ "type": "object",
866
+ "properties": {
867
+ "$tagKey": {
868
+ "type": "string",
869
+ "maxLength": 255
870
+ },
871
+ "$tagValue": {
872
+ "type": "string",
873
+ "maxLength": 255
874
+ }
875
+ },
876
+ "additionalProperties": false,
877
+ "minProperties": 1
878
+ },
879
+ {
880
+ "type": "object",
881
+ "patternProperties": {
882
+ "^[0-9a-zA-Z_-]{1,255}": {
883
+ "type": "string",
884
+ "maxLength": 255
885
+ }
886
+ },
887
+ "additionalProperties": false
888
+ }
889
+ ]
890
+ }
891
+ },
892
+ "required": [
893
+ "$ne"
894
+ ],
895
+ "additionalProperties": false
896
+ }
897
+ ]
898
+ }
899
+ },
900
+ "additionalProperties": false
901
+ }