losant_rest 1.21.0 → 1.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/docs/_schemas.md +1180 -72
- data/docs/application.md +1 -0
- data/docs/devices.md +45 -2
- data/docs/instance.md +41 -0
- data/docs/instanceOrg.md +49 -5
- data/docs/instanceSandbox.md +179 -3
- data/docs/me.md +1 -0
- data/docs/org.md +1 -0
- data/lib/platform_rest/application.rb +2 -0
- data/lib/platform_rest/client.rb +2 -2
- data/lib/platform_rest/devices.rb +52 -2
- data/lib/platform_rest/instance.rb +50 -0
- data/lib/platform_rest/instance_org.rb +57 -5
- data/lib/platform_rest/instance_sandbox.rb +211 -3
- data/lib/platform_rest/me.rb +2 -0
- data/lib/platform_rest/org.rb +2 -0
- data/lib/platform_rest/version.rb +1 -1
- data/schemas/advancedDeviceQuery.json +103 -0
- data/schemas/apiTokenPost.json +7 -0
- data/schemas/bulkRestoreResponse.json +12 -0
- data/schemas/dataExport.json +103 -0
- data/schemas/device.json +4 -0
- data/schemas/devices.json +4 -0
- data/schemas/devicesDeleteOrRestorePost.json +2061 -0
- data/schemas/devicesExportPayloadCountPost.json +103 -0
- data/schemas/devicesExportPost.json +103 -0
- data/schemas/devicesPatch.json +103 -0
- data/schemas/devicesRemoveDataPost.json +103 -0
- data/schemas/githubLogin.json +7 -0
- data/schemas/lastValueQuery.json +103 -0
- data/schemas/multiDeviceCommand.json +103 -0
- data/schemas/samlResponse.json +7 -0
- data/schemas/timeSeriesQuery.json +103 -0
- data/schemas/userCredentials.json +7 -0
- data/schemas/userPost.json +7 -0
- metadata +4 -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
|
{
|
data/schemas/devicesPatch.json
CHANGED
@@ -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
|
{
|
data/schemas/githubLogin.json
CHANGED
@@ -177,6 +177,7 @@
|
|
177
177
|
"devices.attributeNames",
|
178
178
|
"devices.patch",
|
179
179
|
"devices.delete",
|
180
|
+
"devices.restore",
|
180
181
|
"devices.removeData",
|
181
182
|
"devices.detailedSummary",
|
182
183
|
"devices.deviceNames",
|
@@ -371,6 +372,7 @@
|
|
371
372
|
"instance.patch",
|
372
373
|
"instance.historicalSummaries",
|
373
374
|
"instance.generateReport",
|
375
|
+
"instance.payloadCounts",
|
374
376
|
"instance.payloadCountsBreakdown",
|
375
377
|
"instance.deviceCounts",
|
376
378
|
"instance.notebookMinuteCounts",
|
@@ -378,6 +380,7 @@
|
|
378
380
|
"instanceOrg.get",
|
379
381
|
"instanceOrg.patch",
|
380
382
|
"instanceOrg.delete",
|
383
|
+
"instanceOrg.payloadCounts",
|
381
384
|
"instanceOrg.payloadCountsBreakdown",
|
382
385
|
"instanceOrg.deviceCounts",
|
383
386
|
"instanceOrg.notebookMinuteCounts",
|
@@ -435,6 +438,10 @@
|
|
435
438
|
"instanceSandbox.get",
|
436
439
|
"instanceSandbox.delete",
|
437
440
|
"instanceSandbox.undelete",
|
441
|
+
"instanceSandbox.payloadCounts",
|
442
|
+
"instanceSandbox.payloadCountsBreakdown",
|
443
|
+
"instanceSandbox.deviceCounts",
|
444
|
+
"instanceSandbox.notebookMinuteCounts",
|
438
445
|
"instanceSandboxes.*",
|
439
446
|
"instanceSandboxes.get",
|
440
447
|
"instanceAuditLog.*",
|
data/schemas/lastValueQuery.json
CHANGED
@@ -370,6 +370,109 @@
|
|
370
370
|
}
|
371
371
|
]
|
372
372
|
},
|
373
|
+
"deletedAt": {
|
374
|
+
"oneOf": [
|
375
|
+
{
|
376
|
+
"type": [
|
377
|
+
"string",
|
378
|
+
"number",
|
379
|
+
"boolean",
|
380
|
+
"null"
|
381
|
+
]
|
382
|
+
},
|
383
|
+
{
|
384
|
+
"type": "object",
|
385
|
+
"properties": {
|
386
|
+
"$eq": {
|
387
|
+
"type": [
|
388
|
+
"string",
|
389
|
+
"number",
|
390
|
+
"boolean",
|
391
|
+
"null"
|
392
|
+
]
|
393
|
+
},
|
394
|
+
"$ne": {
|
395
|
+
"type": [
|
396
|
+
"string",
|
397
|
+
"number",
|
398
|
+
"boolean",
|
399
|
+
"null"
|
400
|
+
]
|
401
|
+
},
|
402
|
+
"$gt": {
|
403
|
+
"type": [
|
404
|
+
"string",
|
405
|
+
"number",
|
406
|
+
"boolean",
|
407
|
+
"null"
|
408
|
+
]
|
409
|
+
},
|
410
|
+
"$lt": {
|
411
|
+
"type": [
|
412
|
+
"string",
|
413
|
+
"number",
|
414
|
+
"boolean",
|
415
|
+
"null"
|
416
|
+
]
|
417
|
+
},
|
418
|
+
"$gte": {
|
419
|
+
"type": [
|
420
|
+
"string",
|
421
|
+
"number",
|
422
|
+
"boolean",
|
423
|
+
"null"
|
424
|
+
]
|
425
|
+
},
|
426
|
+
"$lte": {
|
427
|
+
"type": [
|
428
|
+
"string",
|
429
|
+
"number",
|
430
|
+
"boolean",
|
431
|
+
"null"
|
432
|
+
]
|
433
|
+
},
|
434
|
+
"$startsWith": {
|
435
|
+
"type": "string",
|
436
|
+
"minLength": 1
|
437
|
+
},
|
438
|
+
"$endsWith": {
|
439
|
+
"type": "string",
|
440
|
+
"minLength": 1
|
441
|
+
},
|
442
|
+
"$contains": {
|
443
|
+
"type": "string",
|
444
|
+
"minLength": 1
|
445
|
+
},
|
446
|
+
"$ci": {
|
447
|
+
"type": "boolean"
|
448
|
+
},
|
449
|
+
"$in": {
|
450
|
+
"type": "array",
|
451
|
+
"maxItems": 100,
|
452
|
+
"items": {
|
453
|
+
"type": [
|
454
|
+
"string",
|
455
|
+
"number",
|
456
|
+
"boolean"
|
457
|
+
]
|
458
|
+
}
|
459
|
+
},
|
460
|
+
"$nin": {
|
461
|
+
"type": "array",
|
462
|
+
"maxItems": 100,
|
463
|
+
"items": {
|
464
|
+
"type": [
|
465
|
+
"string",
|
466
|
+
"number",
|
467
|
+
"boolean"
|
468
|
+
]
|
469
|
+
}
|
470
|
+
}
|
471
|
+
},
|
472
|
+
"additionalProperties": false
|
473
|
+
}
|
474
|
+
]
|
475
|
+
},
|
373
476
|
"name": {
|
374
477
|
"oneOf": [
|
375
478
|
{
|
@@ -394,6 +394,109 @@
|
|
394
394
|
}
|
395
395
|
]
|
396
396
|
},
|
397
|
+
"deletedAt": {
|
398
|
+
"oneOf": [
|
399
|
+
{
|
400
|
+
"type": [
|
401
|
+
"string",
|
402
|
+
"number",
|
403
|
+
"boolean",
|
404
|
+
"null"
|
405
|
+
]
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"type": "object",
|
409
|
+
"properties": {
|
410
|
+
"$eq": {
|
411
|
+
"type": [
|
412
|
+
"string",
|
413
|
+
"number",
|
414
|
+
"boolean",
|
415
|
+
"null"
|
416
|
+
]
|
417
|
+
},
|
418
|
+
"$ne": {
|
419
|
+
"type": [
|
420
|
+
"string",
|
421
|
+
"number",
|
422
|
+
"boolean",
|
423
|
+
"null"
|
424
|
+
]
|
425
|
+
},
|
426
|
+
"$gt": {
|
427
|
+
"type": [
|
428
|
+
"string",
|
429
|
+
"number",
|
430
|
+
"boolean",
|
431
|
+
"null"
|
432
|
+
]
|
433
|
+
},
|
434
|
+
"$lt": {
|
435
|
+
"type": [
|
436
|
+
"string",
|
437
|
+
"number",
|
438
|
+
"boolean",
|
439
|
+
"null"
|
440
|
+
]
|
441
|
+
},
|
442
|
+
"$gte": {
|
443
|
+
"type": [
|
444
|
+
"string",
|
445
|
+
"number",
|
446
|
+
"boolean",
|
447
|
+
"null"
|
448
|
+
]
|
449
|
+
},
|
450
|
+
"$lte": {
|
451
|
+
"type": [
|
452
|
+
"string",
|
453
|
+
"number",
|
454
|
+
"boolean",
|
455
|
+
"null"
|
456
|
+
]
|
457
|
+
},
|
458
|
+
"$startsWith": {
|
459
|
+
"type": "string",
|
460
|
+
"minLength": 1
|
461
|
+
},
|
462
|
+
"$endsWith": {
|
463
|
+
"type": "string",
|
464
|
+
"minLength": 1
|
465
|
+
},
|
466
|
+
"$contains": {
|
467
|
+
"type": "string",
|
468
|
+
"minLength": 1
|
469
|
+
},
|
470
|
+
"$ci": {
|
471
|
+
"type": "boolean"
|
472
|
+
},
|
473
|
+
"$in": {
|
474
|
+
"type": "array",
|
475
|
+
"maxItems": 100,
|
476
|
+
"items": {
|
477
|
+
"type": [
|
478
|
+
"string",
|
479
|
+
"number",
|
480
|
+
"boolean"
|
481
|
+
]
|
482
|
+
}
|
483
|
+
},
|
484
|
+
"$nin": {
|
485
|
+
"type": "array",
|
486
|
+
"maxItems": 100,
|
487
|
+
"items": {
|
488
|
+
"type": [
|
489
|
+
"string",
|
490
|
+
"number",
|
491
|
+
"boolean"
|
492
|
+
]
|
493
|
+
}
|
494
|
+
}
|
495
|
+
},
|
496
|
+
"additionalProperties": false
|
497
|
+
}
|
498
|
+
]
|
499
|
+
},
|
397
500
|
"name": {
|
398
501
|
"oneOf": [
|
399
502
|
{
|