losant_rest 1.20.1 → 1.21.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +140 -14
  3. data/docs/_schemas.md +3150 -646
  4. data/docs/application.md +1 -0
  5. data/docs/devices.md +45 -2
  6. data/docs/instance.md +41 -0
  7. data/docs/instanceNotificationRule.md +219 -0
  8. data/docs/instanceNotificationRules.md +91 -0
  9. data/docs/instanceOrg.md +49 -5
  10. data/docs/instanceSandbox.md +179 -3
  11. data/docs/me.md +1 -0
  12. data/docs/org.md +1 -0
  13. data/lib/platform_rest/application.rb +2 -0
  14. data/lib/platform_rest/client.rb +10 -2
  15. data/lib/platform_rest/devices.rb +52 -2
  16. data/lib/platform_rest/instance.rb +50 -0
  17. data/lib/platform_rest/instance_notification_rule.rb +275 -0
  18. data/lib/platform_rest/instance_notification_rules.rb +136 -0
  19. data/lib/platform_rest/instance_org.rb +57 -5
  20. data/lib/platform_rest/instance_sandbox.rb +211 -3
  21. data/lib/platform_rest/me.rb +2 -0
  22. data/lib/platform_rest/org.rb +2 -0
  23. data/lib/platform_rest/version.rb +1 -1
  24. data/lib/platform_rest.rb +2 -0
  25. data/schemas/advancedDeviceQuery.json +103 -0
  26. data/schemas/apiTokenPost.json +16 -0
  27. data/schemas/applicationSearchResult.json +46 -6
  28. data/schemas/bulkRestoreResponse.json +12 -0
  29. data/schemas/credentialLinkedResources.json +12 -0
  30. data/schemas/dataExport.json +103 -0
  31. data/schemas/device.json +4 -0
  32. data/schemas/devices.json +4 -0
  33. data/schemas/devicesDeleteOrRestorePost.json +2061 -0
  34. data/schemas/devicesExportPayloadCountPost.json +103 -0
  35. data/schemas/devicesExportPost.json +103 -0
  36. data/schemas/devicesPatch.json +103 -0
  37. data/schemas/devicesRemoveDataPost.json +103 -0
  38. data/schemas/experienceEndpoint.json +6 -1
  39. data/schemas/experienceEndpointPatch.json +6 -1
  40. data/schemas/experienceEndpointPost.json +6 -1
  41. data/schemas/experienceEndpoints.json +6 -1
  42. data/schemas/experienceLinkedResources.json +18 -1
  43. data/schemas/flow.json +4 -0
  44. data/schemas/flowPatch.json +4 -0
  45. data/schemas/flowPost.json +4 -0
  46. data/schemas/flowVersion.json +8 -0
  47. data/schemas/flowVersionPost.json +4 -0
  48. data/schemas/flowVersions.json +8 -0
  49. data/schemas/flows.json +4 -0
  50. data/schemas/flowsImportPost.json +8 -0
  51. data/schemas/flowsImportResult.json +12 -0
  52. data/schemas/githubLogin.json +16 -0
  53. data/schemas/instance.json +9 -0
  54. data/schemas/instanceAuditLog.json +2 -1
  55. data/schemas/instanceAuditLogFilter.json +2 -1
  56. data/schemas/instanceOrg.json +4 -0
  57. data/schemas/instanceOrgs.json +4 -0
  58. data/schemas/instances.json +9 -0
  59. data/schemas/lastValueQuery.json +103 -0
  60. data/schemas/multiDeviceCommand.json +103 -0
  61. data/schemas/notificationRule.json +161 -0
  62. data/schemas/notificationRuleDeliveryLogs.json +123 -0
  63. data/schemas/notificationRuleEvaluationOptions.json +10 -0
  64. data/schemas/notificationRulePatch.json +128 -0
  65. data/schemas/notificationRulePost.json +140 -0
  66. data/schemas/notificationRules.json +212 -0
  67. data/schemas/samlResponse.json +16 -0
  68. data/schemas/timeSeriesQuery.json +103 -0
  69. data/schemas/userCredentials.json +16 -0
  70. data/schemas/userPost.json +16 -0
  71. metadata +14 -2
@@ -349,6 +349,109 @@
349
349
  }
350
350
  ]
351
351
  },
352
+ "deletedAt": {
353
+ "oneOf": [
354
+ {
355
+ "type": [
356
+ "string",
357
+ "number",
358
+ "boolean",
359
+ "null"
360
+ ]
361
+ },
362
+ {
363
+ "type": "object",
364
+ "properties": {
365
+ "$eq": {
366
+ "type": [
367
+ "string",
368
+ "number",
369
+ "boolean",
370
+ "null"
371
+ ]
372
+ },
373
+ "$ne": {
374
+ "type": [
375
+ "string",
376
+ "number",
377
+ "boolean",
378
+ "null"
379
+ ]
380
+ },
381
+ "$gt": {
382
+ "type": [
383
+ "string",
384
+ "number",
385
+ "boolean",
386
+ "null"
387
+ ]
388
+ },
389
+ "$lt": {
390
+ "type": [
391
+ "string",
392
+ "number",
393
+ "boolean",
394
+ "null"
395
+ ]
396
+ },
397
+ "$gte": {
398
+ "type": [
399
+ "string",
400
+ "number",
401
+ "boolean",
402
+ "null"
403
+ ]
404
+ },
405
+ "$lte": {
406
+ "type": [
407
+ "string",
408
+ "number",
409
+ "boolean",
410
+ "null"
411
+ ]
412
+ },
413
+ "$startsWith": {
414
+ "type": "string",
415
+ "minLength": 1
416
+ },
417
+ "$endsWith": {
418
+ "type": "string",
419
+ "minLength": 1
420
+ },
421
+ "$contains": {
422
+ "type": "string",
423
+ "minLength": 1
424
+ },
425
+ "$ci": {
426
+ "type": "boolean"
427
+ },
428
+ "$in": {
429
+ "type": "array",
430
+ "maxItems": 100,
431
+ "items": {
432
+ "type": [
433
+ "string",
434
+ "number",
435
+ "boolean"
436
+ ]
437
+ }
438
+ },
439
+ "$nin": {
440
+ "type": "array",
441
+ "maxItems": 100,
442
+ "items": {
443
+ "type": [
444
+ "string",
445
+ "number",
446
+ "boolean"
447
+ ]
448
+ }
449
+ }
450
+ },
451
+ "additionalProperties": false
452
+ }
453
+ ]
454
+ },
352
455
  "name": {
353
456
  "oneOf": [
354
457
  {
@@ -349,6 +349,109 @@
349
349
  }
350
350
  ]
351
351
  },
352
+ "deletedAt": {
353
+ "oneOf": [
354
+ {
355
+ "type": [
356
+ "string",
357
+ "number",
358
+ "boolean",
359
+ "null"
360
+ ]
361
+ },
362
+ {
363
+ "type": "object",
364
+ "properties": {
365
+ "$eq": {
366
+ "type": [
367
+ "string",
368
+ "number",
369
+ "boolean",
370
+ "null"
371
+ ]
372
+ },
373
+ "$ne": {
374
+ "type": [
375
+ "string",
376
+ "number",
377
+ "boolean",
378
+ "null"
379
+ ]
380
+ },
381
+ "$gt": {
382
+ "type": [
383
+ "string",
384
+ "number",
385
+ "boolean",
386
+ "null"
387
+ ]
388
+ },
389
+ "$lt": {
390
+ "type": [
391
+ "string",
392
+ "number",
393
+ "boolean",
394
+ "null"
395
+ ]
396
+ },
397
+ "$gte": {
398
+ "type": [
399
+ "string",
400
+ "number",
401
+ "boolean",
402
+ "null"
403
+ ]
404
+ },
405
+ "$lte": {
406
+ "type": [
407
+ "string",
408
+ "number",
409
+ "boolean",
410
+ "null"
411
+ ]
412
+ },
413
+ "$startsWith": {
414
+ "type": "string",
415
+ "minLength": 1
416
+ },
417
+ "$endsWith": {
418
+ "type": "string",
419
+ "minLength": 1
420
+ },
421
+ "$contains": {
422
+ "type": "string",
423
+ "minLength": 1
424
+ },
425
+ "$ci": {
426
+ "type": "boolean"
427
+ },
428
+ "$in": {
429
+ "type": "array",
430
+ "maxItems": 100,
431
+ "items": {
432
+ "type": [
433
+ "string",
434
+ "number",
435
+ "boolean"
436
+ ]
437
+ }
438
+ },
439
+ "$nin": {
440
+ "type": "array",
441
+ "maxItems": 100,
442
+ "items": {
443
+ "type": [
444
+ "string",
445
+ "number",
446
+ "boolean"
447
+ ]
448
+ }
449
+ }
450
+ },
451
+ "additionalProperties": false
452
+ }
453
+ ]
454
+ },
352
455
  "name": {
353
456
  "oneOf": [
354
457
  {
@@ -551,6 +551,109 @@
551
551
  }
552
552
  ]
553
553
  },
554
+ "deletedAt": {
555
+ "oneOf": [
556
+ {
557
+ "type": [
558
+ "string",
559
+ "number",
560
+ "boolean",
561
+ "null"
562
+ ]
563
+ },
564
+ {
565
+ "type": "object",
566
+ "properties": {
567
+ "$eq": {
568
+ "type": [
569
+ "string",
570
+ "number",
571
+ "boolean",
572
+ "null"
573
+ ]
574
+ },
575
+ "$ne": {
576
+ "type": [
577
+ "string",
578
+ "number",
579
+ "boolean",
580
+ "null"
581
+ ]
582
+ },
583
+ "$gt": {
584
+ "type": [
585
+ "string",
586
+ "number",
587
+ "boolean",
588
+ "null"
589
+ ]
590
+ },
591
+ "$lt": {
592
+ "type": [
593
+ "string",
594
+ "number",
595
+ "boolean",
596
+ "null"
597
+ ]
598
+ },
599
+ "$gte": {
600
+ "type": [
601
+ "string",
602
+ "number",
603
+ "boolean",
604
+ "null"
605
+ ]
606
+ },
607
+ "$lte": {
608
+ "type": [
609
+ "string",
610
+ "number",
611
+ "boolean",
612
+ "null"
613
+ ]
614
+ },
615
+ "$startsWith": {
616
+ "type": "string",
617
+ "minLength": 1
618
+ },
619
+ "$endsWith": {
620
+ "type": "string",
621
+ "minLength": 1
622
+ },
623
+ "$contains": {
624
+ "type": "string",
625
+ "minLength": 1
626
+ },
627
+ "$ci": {
628
+ "type": "boolean"
629
+ },
630
+ "$in": {
631
+ "type": "array",
632
+ "maxItems": 100,
633
+ "items": {
634
+ "type": [
635
+ "string",
636
+ "number",
637
+ "boolean"
638
+ ]
639
+ }
640
+ },
641
+ "$nin": {
642
+ "type": "array",
643
+ "maxItems": 100,
644
+ "items": {
645
+ "type": [
646
+ "string",
647
+ "number",
648
+ "boolean"
649
+ ]
650
+ }
651
+ }
652
+ },
653
+ "additionalProperties": false
654
+ }
655
+ ]
656
+ },
554
657
  "name": {
555
658
  "oneOf": [
556
659
  {
@@ -339,6 +339,109 @@
339
339
  }
340
340
  ]
341
341
  },
342
+ "deletedAt": {
343
+ "oneOf": [
344
+ {
345
+ "type": [
346
+ "string",
347
+ "number",
348
+ "boolean",
349
+ "null"
350
+ ]
351
+ },
352
+ {
353
+ "type": "object",
354
+ "properties": {
355
+ "$eq": {
356
+ "type": [
357
+ "string",
358
+ "number",
359
+ "boolean",
360
+ "null"
361
+ ]
362
+ },
363
+ "$ne": {
364
+ "type": [
365
+ "string",
366
+ "number",
367
+ "boolean",
368
+ "null"
369
+ ]
370
+ },
371
+ "$gt": {
372
+ "type": [
373
+ "string",
374
+ "number",
375
+ "boolean",
376
+ "null"
377
+ ]
378
+ },
379
+ "$lt": {
380
+ "type": [
381
+ "string",
382
+ "number",
383
+ "boolean",
384
+ "null"
385
+ ]
386
+ },
387
+ "$gte": {
388
+ "type": [
389
+ "string",
390
+ "number",
391
+ "boolean",
392
+ "null"
393
+ ]
394
+ },
395
+ "$lte": {
396
+ "type": [
397
+ "string",
398
+ "number",
399
+ "boolean",
400
+ "null"
401
+ ]
402
+ },
403
+ "$startsWith": {
404
+ "type": "string",
405
+ "minLength": 1
406
+ },
407
+ "$endsWith": {
408
+ "type": "string",
409
+ "minLength": 1
410
+ },
411
+ "$contains": {
412
+ "type": "string",
413
+ "minLength": 1
414
+ },
415
+ "$ci": {
416
+ "type": "boolean"
417
+ },
418
+ "$in": {
419
+ "type": "array",
420
+ "maxItems": 100,
421
+ "items": {
422
+ "type": [
423
+ "string",
424
+ "number",
425
+ "boolean"
426
+ ]
427
+ }
428
+ },
429
+ "$nin": {
430
+ "type": "array",
431
+ "maxItems": 100,
432
+ "items": {
433
+ "type": [
434
+ "string",
435
+ "number",
436
+ "boolean"
437
+ ]
438
+ }
439
+ }
440
+ },
441
+ "additionalProperties": false
442
+ }
443
+ ]
444
+ },
342
445
  "name": {
343
446
  "oneOf": [
344
447
  {
@@ -74,9 +74,14 @@
74
74
  "enum": [
75
75
  "public",
76
76
  "authenticated",
77
- "group"
77
+ "group",
78
+ "device"
78
79
  ]
79
80
  },
81
+ "deviceIdTemplate": {
82
+ "type": "string",
83
+ "maxLength": 255
84
+ },
80
85
  "endpointTags": {
81
86
  "type": "object",
82
87
  "patternProperties": {
@@ -30,9 +30,14 @@
30
30
  "enum": [
31
31
  "public",
32
32
  "authenticated",
33
- "group"
33
+ "group",
34
+ "device"
34
35
  ]
35
36
  },
37
+ "deviceIdTemplate": {
38
+ "type": "string",
39
+ "maxLength": 255
40
+ },
36
41
  "endpointTags": {
37
42
  "type": "object",
38
43
  "patternProperties": {
@@ -30,9 +30,14 @@
30
30
  "enum": [
31
31
  "public",
32
32
  "authenticated",
33
- "group"
33
+ "group",
34
+ "device"
34
35
  ]
35
36
  },
37
+ "deviceIdTemplate": {
38
+ "type": "string",
39
+ "maxLength": 255
40
+ },
36
41
  "endpointTags": {
37
42
  "type": "object",
38
43
  "patternProperties": {
@@ -81,9 +81,14 @@
81
81
  "enum": [
82
82
  "public",
83
83
  "authenticated",
84
- "group"
84
+ "group",
85
+ "device"
85
86
  ]
86
87
  },
88
+ "deviceIdTemplate": {
89
+ "type": "string",
90
+ "maxLength": 255
91
+ },
87
92
  "endpointTags": {
88
93
  "type": "object",
89
94
  "patternProperties": {
@@ -245,9 +245,14 @@
245
245
  "enum": [
246
246
  "public",
247
247
  "authenticated",
248
- "group"
248
+ "group",
249
+ "device"
249
250
  ]
250
251
  },
252
+ "deviceIdTemplate": {
253
+ "type": "string",
254
+ "maxLength": 255
255
+ },
251
256
  "endpointTags": {
252
257
  "type": "object",
253
258
  "patternProperties": {
@@ -780,6 +785,10 @@
780
785
  }
781
786
  },
782
787
  "maxItems": 100
788
+ },
789
+ "configName": {
790
+ "type": "string",
791
+ "maxLength": 1024
783
792
  }
784
793
  },
785
794
  "additionalProperties": false
@@ -3907,6 +3916,10 @@
3907
3916
  }
3908
3917
  },
3909
3918
  "maxItems": 100
3919
+ },
3920
+ "configName": {
3921
+ "type": "string",
3922
+ "maxLength": 1024
3910
3923
  }
3911
3924
  },
3912
3925
  "additionalProperties": false
@@ -6943,6 +6956,10 @@
6943
6956
  }
6944
6957
  },
6945
6958
  "maxItems": 100
6959
+ },
6960
+ "configName": {
6961
+ "type": "string",
6962
+ "maxLength": 1024
6946
6963
  }
6947
6964
  },
6948
6965
  "additionalProperties": false
data/schemas/flow.json CHANGED
@@ -389,6 +389,10 @@
389
389
  }
390
390
  },
391
391
  "maxItems": 100
392
+ },
393
+ "configName": {
394
+ "type": "string",
395
+ "maxLength": 1024
392
396
  }
393
397
  },
394
398
  "additionalProperties": false
@@ -346,6 +346,10 @@
346
346
  }
347
347
  },
348
348
  "maxItems": 100
349
+ },
350
+ "configName": {
351
+ "type": "string",
352
+ "maxLength": 1024
349
353
  }
350
354
  },
351
355
  "additionalProperties": false
@@ -335,6 +335,10 @@
335
335
  }
336
336
  },
337
337
  "maxItems": 100
338
+ },
339
+ "configName": {
340
+ "type": "string",
341
+ "maxLength": 1024
338
342
  }
339
343
  },
340
344
  "additionalProperties": false
@@ -364,6 +364,10 @@
364
364
  }
365
365
  },
366
366
  "maxItems": 100
367
+ },
368
+ "configName": {
369
+ "type": "string",
370
+ "maxLength": 1024
367
371
  }
368
372
  },
369
373
  "additionalProperties": false
@@ -3400,6 +3404,10 @@
3400
3404
  }
3401
3405
  },
3402
3406
  "maxItems": 100
3407
+ },
3408
+ "configName": {
3409
+ "type": "string",
3410
+ "maxLength": 1024
3403
3411
  }
3404
3412
  },
3405
3413
  "additionalProperties": false
@@ -304,6 +304,10 @@
304
304
  }
305
305
  },
306
306
  "maxItems": 100
307
+ },
308
+ "configName": {
309
+ "type": "string",
310
+ "maxLength": 1024
307
311
  }
308
312
  },
309
313
  "additionalProperties": false
@@ -371,6 +371,10 @@
371
371
  }
372
372
  },
373
373
  "maxItems": 100
374
+ },
375
+ "configName": {
376
+ "type": "string",
377
+ "maxLength": 1024
374
378
  }
375
379
  },
376
380
  "additionalProperties": false
@@ -3407,6 +3411,10 @@
3407
3411
  }
3408
3412
  },
3409
3413
  "maxItems": 100
3414
+ },
3415
+ "configName": {
3416
+ "type": "string",
3417
+ "maxLength": 1024
3410
3418
  }
3411
3419
  },
3412
3420
  "additionalProperties": false
data/schemas/flows.json CHANGED
@@ -396,6 +396,10 @@
396
396
  }
397
397
  },
398
398
  "maxItems": 100
399
+ },
400
+ "configName": {
401
+ "type": "string",
402
+ "maxLength": 1024
399
403
  }
400
404
  },
401
405
  "additionalProperties": false
@@ -349,6 +349,10 @@
349
349
  }
350
350
  },
351
351
  "maxItems": 100
352
+ },
353
+ "configName": {
354
+ "type": "string",
355
+ "maxLength": 1024
352
356
  }
353
357
  },
354
358
  "additionalProperties": false
@@ -3374,6 +3378,10 @@
3374
3378
  }
3375
3379
  },
3376
3380
  "maxItems": 100
3381
+ },
3382
+ "configName": {
3383
+ "type": "string",
3384
+ "maxLength": 1024
3377
3385
  }
3378
3386
  },
3379
3387
  "additionalProperties": false