losant_rest 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_schemas.md +200 -76
- data/lib/losant_rest/client.rb +2 -2
- data/lib/losant_rest/version.rb +1 -1
- data/schemas/application.json +4 -0
- data/schemas/applicationPatch.json +4 -0
- data/schemas/applicationPost.json +4 -0
- data/schemas/applications.json +4 -0
- data/schemas/device.json +1 -1
- data/schemas/devicePatch.json +1 -1
- data/schemas/devicePost.json +1 -1
- data/schemas/deviceRecipe.json +1 -1
- data/schemas/deviceRecipePatch.json +1 -1
- data/schemas/deviceRecipePost.json +1 -1
- data/schemas/deviceRecipes.json +1 -1
- data/schemas/devices.json +1 -1
- data/schemas/integration.json +44 -17
- data/schemas/integrationPatch.json +44 -17
- data/schemas/integrationPost.json +44 -17
- data/schemas/integrations.json +44 -17
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 642120cd33c786bece7c7dcc170fe54dda8f6aca
|
4
|
+
data.tar.gz: 804b06af95cea5979cffab9c16d6947ce7211ceb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 692853eb945b848a1029c4fa80993bd241dff3957e6515be5e9c56c8ce8ddd34cd4cb77e542fba7c6020db36eff5f2d7c96e3c7f4e8a92e9330b365bef92d92d
|
7
|
+
data.tar.gz: 1ea964c4717cae0490d40149b0bf5e6cd269fc58131d704392bb3a6c272912334a3fa9d1818765e04d7e12ac33f796e7809b7ec8a066531bca709849141b8644
|
data/docs/_schemas.md
CHANGED
@@ -369,6 +369,10 @@ Schema for a single Application
|
|
369
369
|
"type": "string",
|
370
370
|
"minLength": 1,
|
371
371
|
"maxLength": 32767
|
372
|
+
},
|
373
|
+
"cloudOnly": {
|
374
|
+
"type": "boolean",
|
375
|
+
"default": false
|
372
376
|
}
|
373
377
|
},
|
374
378
|
"additionalProperties": false,
|
@@ -1284,6 +1288,10 @@ Schema for the body of an Application modification request
|
|
1284
1288
|
"type": "string",
|
1285
1289
|
"minLength": 1,
|
1286
1290
|
"maxLength": 32767
|
1291
|
+
},
|
1292
|
+
"cloudOnly": {
|
1293
|
+
"type": "boolean",
|
1294
|
+
"default": false
|
1287
1295
|
}
|
1288
1296
|
},
|
1289
1297
|
"additionalProperties": false,
|
@@ -1488,6 +1496,10 @@ Schema for the body of an Application creation request
|
|
1488
1496
|
"type": "string",
|
1489
1497
|
"minLength": 1,
|
1490
1498
|
"maxLength": 32767
|
1499
|
+
},
|
1500
|
+
"cloudOnly": {
|
1501
|
+
"type": "boolean",
|
1502
|
+
"default": false
|
1491
1503
|
}
|
1492
1504
|
},
|
1493
1505
|
"additionalProperties": false,
|
@@ -1696,6 +1708,10 @@ Schema for a collection of Applications
|
|
1696
1708
|
"type": "string",
|
1697
1709
|
"minLength": 1,
|
1698
1710
|
"maxLength": 32767
|
1711
|
+
},
|
1712
|
+
"cloudOnly": {
|
1713
|
+
"type": "boolean",
|
1714
|
+
"default": false
|
1699
1715
|
}
|
1700
1716
|
},
|
1701
1717
|
"additionalProperties": false,
|
@@ -4767,7 +4783,7 @@ Schema for a single Device
|
|
4767
4783
|
],
|
4768
4784
|
"additionalProperties": false
|
4769
4785
|
},
|
4770
|
-
"maxItems":
|
4786
|
+
"maxItems": 256
|
4771
4787
|
},
|
4772
4788
|
"deviceClass": {
|
4773
4789
|
"type": "string",
|
@@ -5170,7 +5186,7 @@ Schema for the body of a Device modification request
|
|
5170
5186
|
],
|
5171
5187
|
"additionalProperties": false
|
5172
5188
|
},
|
5173
|
-
"maxItems":
|
5189
|
+
"maxItems": 256
|
5174
5190
|
},
|
5175
5191
|
"deviceClass": {
|
5176
5192
|
"type": "string",
|
@@ -5282,7 +5298,7 @@ Schema for the body of a Device creation request
|
|
5282
5298
|
],
|
5283
5299
|
"additionalProperties": false
|
5284
5300
|
},
|
5285
|
-
"maxItems":
|
5301
|
+
"maxItems": 256
|
5286
5302
|
},
|
5287
5303
|
"deviceClass": {
|
5288
5304
|
"type": "string",
|
@@ -5426,7 +5442,7 @@ Schema for a single Device Recipe
|
|
5426
5442
|
],
|
5427
5443
|
"additionalProperties": false
|
5428
5444
|
},
|
5429
|
-
"maxItems":
|
5445
|
+
"maxItems": 256
|
5430
5446
|
},
|
5431
5447
|
"deviceClass": {
|
5432
5448
|
"type": "string",
|
@@ -5662,7 +5678,7 @@ Schema for the body of a Device Recipe modification request
|
|
5662
5678
|
],
|
5663
5679
|
"additionalProperties": false
|
5664
5680
|
},
|
5665
|
-
"maxItems":
|
5681
|
+
"maxItems": 256
|
5666
5682
|
},
|
5667
5683
|
"deviceClass": {
|
5668
5684
|
"type": "string",
|
@@ -5785,7 +5801,7 @@ Schema for the body of a Device Recipe creation request
|
|
5785
5801
|
],
|
5786
5802
|
"additionalProperties": false
|
5787
5803
|
},
|
5788
|
-
"maxItems":
|
5804
|
+
"maxItems": 256
|
5789
5805
|
},
|
5790
5806
|
"deviceClass": {
|
5791
5807
|
"type": "string",
|
@@ -5938,7 +5954,7 @@ Schema for a collection of Device Recipes
|
|
5938
5954
|
],
|
5939
5955
|
"additionalProperties": false
|
5940
5956
|
},
|
5941
|
-
"maxItems":
|
5957
|
+
"maxItems": 256
|
5942
5958
|
},
|
5943
5959
|
"deviceClass": {
|
5944
5960
|
"type": "string",
|
@@ -6402,7 +6418,7 @@ Schema for a collection of Devices
|
|
6402
6418
|
],
|
6403
6419
|
"additionalProperties": false
|
6404
6420
|
},
|
6405
|
-
"maxItems":
|
6421
|
+
"maxItems": 256
|
6406
6422
|
},
|
6407
6423
|
"deviceClass": {
|
6408
6424
|
"type": "string",
|
@@ -11220,8 +11236,9 @@ Schema for a single Integration
|
|
11220
11236
|
"integrationType": {
|
11221
11237
|
"type": "string",
|
11222
11238
|
"enum": [
|
11223
|
-
"mqtt",
|
11224
11239
|
"googlePubSub",
|
11240
|
+
"meridian",
|
11241
|
+
"mqtt",
|
11225
11242
|
"particle"
|
11226
11243
|
]
|
11227
11244
|
},
|
@@ -11261,18 +11278,18 @@ Schema for a single Integration
|
|
11261
11278
|
"properties": {
|
11262
11279
|
"clientId": {
|
11263
11280
|
"type": "string",
|
11264
|
-
"
|
11265
|
-
"
|
11281
|
+
"minLength": 1,
|
11282
|
+
"maxLength": 1024
|
11266
11283
|
},
|
11267
11284
|
"username": {
|
11268
11285
|
"type": "string",
|
11269
|
-
"
|
11270
|
-
"
|
11286
|
+
"minLength": 1,
|
11287
|
+
"maxLength": 1024
|
11271
11288
|
},
|
11272
11289
|
"password": {
|
11273
11290
|
"type": "string",
|
11274
|
-
"
|
11275
|
-
"
|
11291
|
+
"minLength": 1,
|
11292
|
+
"maxLength": 1024
|
11276
11293
|
},
|
11277
11294
|
"clean": {
|
11278
11295
|
"type": "boolean"
|
@@ -11293,8 +11310,8 @@ Schema for a single Integration
|
|
11293
11310
|
},
|
11294
11311
|
"host": {
|
11295
11312
|
"type": "string",
|
11296
|
-
"
|
11297
|
-
"
|
11313
|
+
"minLength": 1,
|
11314
|
+
"maxLength": 1024
|
11298
11315
|
},
|
11299
11316
|
"privateKey": {
|
11300
11317
|
"type": "string",
|
@@ -11324,23 +11341,23 @@ Schema for a single Integration
|
|
11324
11341
|
"properties": {
|
11325
11342
|
"accessToken": {
|
11326
11343
|
"type": "string",
|
11327
|
-
"
|
11328
|
-
"
|
11344
|
+
"minLength": 1,
|
11345
|
+
"maxLength": 1024
|
11329
11346
|
},
|
11330
11347
|
"productSlugOrId": {
|
11331
11348
|
"type": "string",
|
11332
|
-
"
|
11333
|
-
"
|
11349
|
+
"minLength": 1,
|
11350
|
+
"maxLength": 1024
|
11334
11351
|
},
|
11335
11352
|
"orgSlugOrId": {
|
11336
11353
|
"type": "string",
|
11337
|
-
"
|
11338
|
-
"
|
11354
|
+
"minLength": 1,
|
11355
|
+
"maxLength": 1024
|
11339
11356
|
},
|
11340
11357
|
"deviceNameOrId": {
|
11341
11358
|
"type": "string",
|
11342
|
-
"
|
11343
|
-
"
|
11359
|
+
"minLength": 1,
|
11360
|
+
"maxLength": 1024
|
11344
11361
|
}
|
11345
11362
|
},
|
11346
11363
|
"additionalProperties": false,
|
@@ -11348,6 +11365,32 @@ Schema for a single Integration
|
|
11348
11365
|
"accessToken"
|
11349
11366
|
]
|
11350
11367
|
},
|
11368
|
+
"meridianConfig": {
|
11369
|
+
"type": "object",
|
11370
|
+
"properties": {
|
11371
|
+
"authenticationToken": {
|
11372
|
+
"type": "string",
|
11373
|
+
"minLength": 1,
|
11374
|
+
"maxLength": 1024
|
11375
|
+
},
|
11376
|
+
"locationId": {
|
11377
|
+
"type": "string",
|
11378
|
+
"minLength": 1,
|
11379
|
+
"maxLength": 1024
|
11380
|
+
},
|
11381
|
+
"assetUpdates": {
|
11382
|
+
"type": "boolean"
|
11383
|
+
},
|
11384
|
+
"zoneUpdates": {
|
11385
|
+
"type": "boolean"
|
11386
|
+
}
|
11387
|
+
},
|
11388
|
+
"additionalProperties": false,
|
11389
|
+
"required": [
|
11390
|
+
"authenticationToken",
|
11391
|
+
"locationId"
|
11392
|
+
]
|
11393
|
+
},
|
11351
11394
|
"status": {
|
11352
11395
|
"lastKeepAlive": {
|
11353
11396
|
"type": [
|
@@ -11445,8 +11488,9 @@ Schema for the body of an Integration modification request
|
|
11445
11488
|
"integrationType": {
|
11446
11489
|
"type": "string",
|
11447
11490
|
"enum": [
|
11448
|
-
"mqtt",
|
11449
11491
|
"googlePubSub",
|
11492
|
+
"meridian",
|
11493
|
+
"mqtt",
|
11450
11494
|
"particle"
|
11451
11495
|
]
|
11452
11496
|
},
|
@@ -11486,18 +11530,18 @@ Schema for the body of an Integration modification request
|
|
11486
11530
|
"properties": {
|
11487
11531
|
"clientId": {
|
11488
11532
|
"type": "string",
|
11489
|
-
"
|
11490
|
-
"
|
11533
|
+
"minLength": 1,
|
11534
|
+
"maxLength": 1024
|
11491
11535
|
},
|
11492
11536
|
"username": {
|
11493
11537
|
"type": "string",
|
11494
|
-
"
|
11495
|
-
"
|
11538
|
+
"minLength": 1,
|
11539
|
+
"maxLength": 1024
|
11496
11540
|
},
|
11497
11541
|
"password": {
|
11498
11542
|
"type": "string",
|
11499
|
-
"
|
11500
|
-
"
|
11543
|
+
"minLength": 1,
|
11544
|
+
"maxLength": 1024
|
11501
11545
|
},
|
11502
11546
|
"clean": {
|
11503
11547
|
"type": "boolean"
|
@@ -11518,8 +11562,8 @@ Schema for the body of an Integration modification request
|
|
11518
11562
|
},
|
11519
11563
|
"host": {
|
11520
11564
|
"type": "string",
|
11521
|
-
"
|
11522
|
-
"
|
11565
|
+
"minLength": 1,
|
11566
|
+
"maxLength": 1024
|
11523
11567
|
},
|
11524
11568
|
"privateKey": {
|
11525
11569
|
"type": "string",
|
@@ -11549,29 +11593,55 @@ Schema for the body of an Integration modification request
|
|
11549
11593
|
"properties": {
|
11550
11594
|
"accessToken": {
|
11551
11595
|
"type": "string",
|
11552
|
-
"
|
11553
|
-
"
|
11596
|
+
"minLength": 1,
|
11597
|
+
"maxLength": 1024
|
11554
11598
|
},
|
11555
11599
|
"productSlugOrId": {
|
11556
11600
|
"type": "string",
|
11557
|
-
"
|
11558
|
-
"
|
11601
|
+
"minLength": 1,
|
11602
|
+
"maxLength": 1024
|
11559
11603
|
},
|
11560
11604
|
"orgSlugOrId": {
|
11561
11605
|
"type": "string",
|
11562
|
-
"
|
11563
|
-
"
|
11606
|
+
"minLength": 1,
|
11607
|
+
"maxLength": 1024
|
11564
11608
|
},
|
11565
11609
|
"deviceNameOrId": {
|
11566
11610
|
"type": "string",
|
11567
|
-
"
|
11568
|
-
"
|
11611
|
+
"minLength": 1,
|
11612
|
+
"maxLength": 1024
|
11569
11613
|
}
|
11570
11614
|
},
|
11571
11615
|
"additionalProperties": false,
|
11572
11616
|
"required": [
|
11573
11617
|
"accessToken"
|
11574
11618
|
]
|
11619
|
+
},
|
11620
|
+
"meridianConfig": {
|
11621
|
+
"type": "object",
|
11622
|
+
"properties": {
|
11623
|
+
"authenticationToken": {
|
11624
|
+
"type": "string",
|
11625
|
+
"minLength": 1,
|
11626
|
+
"maxLength": 1024
|
11627
|
+
},
|
11628
|
+
"locationId": {
|
11629
|
+
"type": "string",
|
11630
|
+
"minLength": 1,
|
11631
|
+
"maxLength": 1024
|
11632
|
+
},
|
11633
|
+
"assetUpdates": {
|
11634
|
+
"type": "boolean"
|
11635
|
+
},
|
11636
|
+
"zoneUpdates": {
|
11637
|
+
"type": "boolean"
|
11638
|
+
}
|
11639
|
+
},
|
11640
|
+
"additionalProperties": false,
|
11641
|
+
"required": [
|
11642
|
+
"authenticationToken",
|
11643
|
+
"locationId"
|
11644
|
+
]
|
11575
11645
|
}
|
11576
11646
|
},
|
11577
11647
|
"additionalProperties": false
|
@@ -11608,8 +11678,9 @@ Schema for the body of an Integration creation request
|
|
11608
11678
|
"integrationType": {
|
11609
11679
|
"type": "string",
|
11610
11680
|
"enum": [
|
11611
|
-
"mqtt",
|
11612
11681
|
"googlePubSub",
|
11682
|
+
"meridian",
|
11683
|
+
"mqtt",
|
11613
11684
|
"particle"
|
11614
11685
|
]
|
11615
11686
|
},
|
@@ -11649,18 +11720,18 @@ Schema for the body of an Integration creation request
|
|
11649
11720
|
"properties": {
|
11650
11721
|
"clientId": {
|
11651
11722
|
"type": "string",
|
11652
|
-
"
|
11653
|
-
"
|
11723
|
+
"minLength": 1,
|
11724
|
+
"maxLength": 1024
|
11654
11725
|
},
|
11655
11726
|
"username": {
|
11656
11727
|
"type": "string",
|
11657
|
-
"
|
11658
|
-
"
|
11728
|
+
"minLength": 1,
|
11729
|
+
"maxLength": 1024
|
11659
11730
|
},
|
11660
11731
|
"password": {
|
11661
11732
|
"type": "string",
|
11662
|
-
"
|
11663
|
-
"
|
11733
|
+
"minLength": 1,
|
11734
|
+
"maxLength": 1024
|
11664
11735
|
},
|
11665
11736
|
"clean": {
|
11666
11737
|
"type": "boolean"
|
@@ -11681,8 +11752,8 @@ Schema for the body of an Integration creation request
|
|
11681
11752
|
},
|
11682
11753
|
"host": {
|
11683
11754
|
"type": "string",
|
11684
|
-
"
|
11685
|
-
"
|
11755
|
+
"minLength": 1,
|
11756
|
+
"maxLength": 1024
|
11686
11757
|
},
|
11687
11758
|
"privateKey": {
|
11688
11759
|
"type": "string",
|
@@ -11712,29 +11783,55 @@ Schema for the body of an Integration creation request
|
|
11712
11783
|
"properties": {
|
11713
11784
|
"accessToken": {
|
11714
11785
|
"type": "string",
|
11715
|
-
"
|
11716
|
-
"
|
11786
|
+
"minLength": 1,
|
11787
|
+
"maxLength": 1024
|
11717
11788
|
},
|
11718
11789
|
"productSlugOrId": {
|
11719
11790
|
"type": "string",
|
11720
|
-
"
|
11721
|
-
"
|
11791
|
+
"minLength": 1,
|
11792
|
+
"maxLength": 1024
|
11722
11793
|
},
|
11723
11794
|
"orgSlugOrId": {
|
11724
11795
|
"type": "string",
|
11725
|
-
"
|
11726
|
-
"
|
11796
|
+
"minLength": 1,
|
11797
|
+
"maxLength": 1024
|
11727
11798
|
},
|
11728
11799
|
"deviceNameOrId": {
|
11729
11800
|
"type": "string",
|
11730
|
-
"
|
11731
|
-
"
|
11801
|
+
"minLength": 1,
|
11802
|
+
"maxLength": 1024
|
11732
11803
|
}
|
11733
11804
|
},
|
11734
11805
|
"additionalProperties": false,
|
11735
11806
|
"required": [
|
11736
11807
|
"accessToken"
|
11737
11808
|
]
|
11809
|
+
},
|
11810
|
+
"meridianConfig": {
|
11811
|
+
"type": "object",
|
11812
|
+
"properties": {
|
11813
|
+
"authenticationToken": {
|
11814
|
+
"type": "string",
|
11815
|
+
"minLength": 1,
|
11816
|
+
"maxLength": 1024
|
11817
|
+
},
|
11818
|
+
"locationId": {
|
11819
|
+
"type": "string",
|
11820
|
+
"minLength": 1,
|
11821
|
+
"maxLength": 1024
|
11822
|
+
},
|
11823
|
+
"assetUpdates": {
|
11824
|
+
"type": "boolean"
|
11825
|
+
},
|
11826
|
+
"zoneUpdates": {
|
11827
|
+
"type": "boolean"
|
11828
|
+
}
|
11829
|
+
},
|
11830
|
+
"additionalProperties": false,
|
11831
|
+
"required": [
|
11832
|
+
"authenticationToken",
|
11833
|
+
"locationId"
|
11834
|
+
]
|
11738
11835
|
}
|
11739
11836
|
},
|
11740
11837
|
"additionalProperties": false,
|
@@ -11812,8 +11909,9 @@ Schema for a collection of Integrations
|
|
11812
11909
|
"integrationType": {
|
11813
11910
|
"type": "string",
|
11814
11911
|
"enum": [
|
11815
|
-
"mqtt",
|
11816
11912
|
"googlePubSub",
|
11913
|
+
"meridian",
|
11914
|
+
"mqtt",
|
11817
11915
|
"particle"
|
11818
11916
|
]
|
11819
11917
|
},
|
@@ -11853,18 +11951,18 @@ Schema for a collection of Integrations
|
|
11853
11951
|
"properties": {
|
11854
11952
|
"clientId": {
|
11855
11953
|
"type": "string",
|
11856
|
-
"
|
11857
|
-
"
|
11954
|
+
"minLength": 1,
|
11955
|
+
"maxLength": 1024
|
11858
11956
|
},
|
11859
11957
|
"username": {
|
11860
11958
|
"type": "string",
|
11861
|
-
"
|
11862
|
-
"
|
11959
|
+
"minLength": 1,
|
11960
|
+
"maxLength": 1024
|
11863
11961
|
},
|
11864
11962
|
"password": {
|
11865
11963
|
"type": "string",
|
11866
|
-
"
|
11867
|
-
"
|
11964
|
+
"minLength": 1,
|
11965
|
+
"maxLength": 1024
|
11868
11966
|
},
|
11869
11967
|
"clean": {
|
11870
11968
|
"type": "boolean"
|
@@ -11885,8 +11983,8 @@ Schema for a collection of Integrations
|
|
11885
11983
|
},
|
11886
11984
|
"host": {
|
11887
11985
|
"type": "string",
|
11888
|
-
"
|
11889
|
-
"
|
11986
|
+
"minLength": 1,
|
11987
|
+
"maxLength": 1024
|
11890
11988
|
},
|
11891
11989
|
"privateKey": {
|
11892
11990
|
"type": "string",
|
@@ -11916,23 +12014,23 @@ Schema for a collection of Integrations
|
|
11916
12014
|
"properties": {
|
11917
12015
|
"accessToken": {
|
11918
12016
|
"type": "string",
|
11919
|
-
"
|
11920
|
-
"
|
12017
|
+
"minLength": 1,
|
12018
|
+
"maxLength": 1024
|
11921
12019
|
},
|
11922
12020
|
"productSlugOrId": {
|
11923
12021
|
"type": "string",
|
11924
|
-
"
|
11925
|
-
"
|
12022
|
+
"minLength": 1,
|
12023
|
+
"maxLength": 1024
|
11926
12024
|
},
|
11927
12025
|
"orgSlugOrId": {
|
11928
12026
|
"type": "string",
|
11929
|
-
"
|
11930
|
-
"
|
12027
|
+
"minLength": 1,
|
12028
|
+
"maxLength": 1024
|
11931
12029
|
},
|
11932
12030
|
"deviceNameOrId": {
|
11933
12031
|
"type": "string",
|
11934
|
-
"
|
11935
|
-
"
|
12032
|
+
"minLength": 1,
|
12033
|
+
"maxLength": 1024
|
11936
12034
|
}
|
11937
12035
|
},
|
11938
12036
|
"additionalProperties": false,
|
@@ -11940,6 +12038,32 @@ Schema for a collection of Integrations
|
|
11940
12038
|
"accessToken"
|
11941
12039
|
]
|
11942
12040
|
},
|
12041
|
+
"meridianConfig": {
|
12042
|
+
"type": "object",
|
12043
|
+
"properties": {
|
12044
|
+
"authenticationToken": {
|
12045
|
+
"type": "string",
|
12046
|
+
"minLength": 1,
|
12047
|
+
"maxLength": 1024
|
12048
|
+
},
|
12049
|
+
"locationId": {
|
12050
|
+
"type": "string",
|
12051
|
+
"minLength": 1,
|
12052
|
+
"maxLength": 1024
|
12053
|
+
},
|
12054
|
+
"assetUpdates": {
|
12055
|
+
"type": "boolean"
|
12056
|
+
},
|
12057
|
+
"zoneUpdates": {
|
12058
|
+
"type": "boolean"
|
12059
|
+
}
|
12060
|
+
},
|
12061
|
+
"additionalProperties": false,
|
12062
|
+
"required": [
|
12063
|
+
"authenticationToken",
|
12064
|
+
"locationId"
|
12065
|
+
]
|
12066
|
+
},
|
11943
12067
|
"status": {
|
11944
12068
|
"lastKeepAlive": {
|
11945
12069
|
"type": [
|
data/lib/losant_rest/client.rb
CHANGED
@@ -27,7 +27,7 @@ module LosantRest
|
|
27
27
|
#
|
28
28
|
# User API for accessing Losant data
|
29
29
|
#
|
30
|
-
# Built For Version 1.10.
|
30
|
+
# Built For Version 1.10.1
|
31
31
|
class Client
|
32
32
|
attr_accessor :auth_token, :url
|
33
33
|
|
@@ -238,7 +238,7 @@ module LosantRest
|
|
238
238
|
|
239
239
|
headers["Accept"] = "application/json"
|
240
240
|
headers["Content-Type"] = "application/json"
|
241
|
-
headers["Accept-Version"] = "^1.10.
|
241
|
+
headers["Accept-Version"] = "^1.10.1"
|
242
242
|
headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
|
243
243
|
path = self.url + options.fetch(:path, "")
|
244
244
|
|
data/lib/losant_rest/version.rb
CHANGED
data/schemas/application.json
CHANGED
data/schemas/applications.json
CHANGED
data/schemas/device.json
CHANGED
data/schemas/devicePatch.json
CHANGED
data/schemas/devicePost.json
CHANGED
data/schemas/deviceRecipe.json
CHANGED
data/schemas/deviceRecipes.json
CHANGED
data/schemas/devices.json
CHANGED
data/schemas/integration.json
CHANGED
@@ -30,8 +30,9 @@
|
|
30
30
|
"integrationType": {
|
31
31
|
"type": "string",
|
32
32
|
"enum": [
|
33
|
-
"mqtt",
|
34
33
|
"googlePubSub",
|
34
|
+
"meridian",
|
35
|
+
"mqtt",
|
35
36
|
"particle"
|
36
37
|
]
|
37
38
|
},
|
@@ -71,18 +72,18 @@
|
|
71
72
|
"properties": {
|
72
73
|
"clientId": {
|
73
74
|
"type": "string",
|
74
|
-
"
|
75
|
-
"
|
75
|
+
"minLength": 1,
|
76
|
+
"maxLength": 1024
|
76
77
|
},
|
77
78
|
"username": {
|
78
79
|
"type": "string",
|
79
|
-
"
|
80
|
-
"
|
80
|
+
"minLength": 1,
|
81
|
+
"maxLength": 1024
|
81
82
|
},
|
82
83
|
"password": {
|
83
84
|
"type": "string",
|
84
|
-
"
|
85
|
-
"
|
85
|
+
"minLength": 1,
|
86
|
+
"maxLength": 1024
|
86
87
|
},
|
87
88
|
"clean": {
|
88
89
|
"type": "boolean"
|
@@ -103,8 +104,8 @@
|
|
103
104
|
},
|
104
105
|
"host": {
|
105
106
|
"type": "string",
|
106
|
-
"
|
107
|
-
"
|
107
|
+
"minLength": 1,
|
108
|
+
"maxLength": 1024
|
108
109
|
},
|
109
110
|
"privateKey": {
|
110
111
|
"type": "string",
|
@@ -134,23 +135,23 @@
|
|
134
135
|
"properties": {
|
135
136
|
"accessToken": {
|
136
137
|
"type": "string",
|
137
|
-
"
|
138
|
-
"
|
138
|
+
"minLength": 1,
|
139
|
+
"maxLength": 1024
|
139
140
|
},
|
140
141
|
"productSlugOrId": {
|
141
142
|
"type": "string",
|
142
|
-
"
|
143
|
-
"
|
143
|
+
"minLength": 1,
|
144
|
+
"maxLength": 1024
|
144
145
|
},
|
145
146
|
"orgSlugOrId": {
|
146
147
|
"type": "string",
|
147
|
-
"
|
148
|
-
"
|
148
|
+
"minLength": 1,
|
149
|
+
"maxLength": 1024
|
149
150
|
},
|
150
151
|
"deviceNameOrId": {
|
151
152
|
"type": "string",
|
152
|
-
"
|
153
|
-
"
|
153
|
+
"minLength": 1,
|
154
|
+
"maxLength": 1024
|
154
155
|
}
|
155
156
|
},
|
156
157
|
"additionalProperties": false,
|
@@ -158,6 +159,32 @@
|
|
158
159
|
"accessToken"
|
159
160
|
]
|
160
161
|
},
|
162
|
+
"meridianConfig": {
|
163
|
+
"type": "object",
|
164
|
+
"properties": {
|
165
|
+
"authenticationToken": {
|
166
|
+
"type": "string",
|
167
|
+
"minLength": 1,
|
168
|
+
"maxLength": 1024
|
169
|
+
},
|
170
|
+
"locationId": {
|
171
|
+
"type": "string",
|
172
|
+
"minLength": 1,
|
173
|
+
"maxLength": 1024
|
174
|
+
},
|
175
|
+
"assetUpdates": {
|
176
|
+
"type": "boolean"
|
177
|
+
},
|
178
|
+
"zoneUpdates": {
|
179
|
+
"type": "boolean"
|
180
|
+
}
|
181
|
+
},
|
182
|
+
"additionalProperties": false,
|
183
|
+
"required": [
|
184
|
+
"authenticationToken",
|
185
|
+
"locationId"
|
186
|
+
]
|
187
|
+
},
|
161
188
|
"status": {
|
162
189
|
"lastKeepAlive": {
|
163
190
|
"type": [
|
@@ -10,8 +10,9 @@
|
|
10
10
|
"integrationType": {
|
11
11
|
"type": "string",
|
12
12
|
"enum": [
|
13
|
-
"mqtt",
|
14
13
|
"googlePubSub",
|
14
|
+
"meridian",
|
15
|
+
"mqtt",
|
15
16
|
"particle"
|
16
17
|
]
|
17
18
|
},
|
@@ -51,18 +52,18 @@
|
|
51
52
|
"properties": {
|
52
53
|
"clientId": {
|
53
54
|
"type": "string",
|
54
|
-
"
|
55
|
-
"
|
55
|
+
"minLength": 1,
|
56
|
+
"maxLength": 1024
|
56
57
|
},
|
57
58
|
"username": {
|
58
59
|
"type": "string",
|
59
|
-
"
|
60
|
-
"
|
60
|
+
"minLength": 1,
|
61
|
+
"maxLength": 1024
|
61
62
|
},
|
62
63
|
"password": {
|
63
64
|
"type": "string",
|
64
|
-
"
|
65
|
-
"
|
65
|
+
"minLength": 1,
|
66
|
+
"maxLength": 1024
|
66
67
|
},
|
67
68
|
"clean": {
|
68
69
|
"type": "boolean"
|
@@ -83,8 +84,8 @@
|
|
83
84
|
},
|
84
85
|
"host": {
|
85
86
|
"type": "string",
|
86
|
-
"
|
87
|
-
"
|
87
|
+
"minLength": 1,
|
88
|
+
"maxLength": 1024
|
88
89
|
},
|
89
90
|
"privateKey": {
|
90
91
|
"type": "string",
|
@@ -114,29 +115,55 @@
|
|
114
115
|
"properties": {
|
115
116
|
"accessToken": {
|
116
117
|
"type": "string",
|
117
|
-
"
|
118
|
-
"
|
118
|
+
"minLength": 1,
|
119
|
+
"maxLength": 1024
|
119
120
|
},
|
120
121
|
"productSlugOrId": {
|
121
122
|
"type": "string",
|
122
|
-
"
|
123
|
-
"
|
123
|
+
"minLength": 1,
|
124
|
+
"maxLength": 1024
|
124
125
|
},
|
125
126
|
"orgSlugOrId": {
|
126
127
|
"type": "string",
|
127
|
-
"
|
128
|
-
"
|
128
|
+
"minLength": 1,
|
129
|
+
"maxLength": 1024
|
129
130
|
},
|
130
131
|
"deviceNameOrId": {
|
131
132
|
"type": "string",
|
132
|
-
"
|
133
|
-
"
|
133
|
+
"minLength": 1,
|
134
|
+
"maxLength": 1024
|
134
135
|
}
|
135
136
|
},
|
136
137
|
"additionalProperties": false,
|
137
138
|
"required": [
|
138
139
|
"accessToken"
|
139
140
|
]
|
141
|
+
},
|
142
|
+
"meridianConfig": {
|
143
|
+
"type": "object",
|
144
|
+
"properties": {
|
145
|
+
"authenticationToken": {
|
146
|
+
"type": "string",
|
147
|
+
"minLength": 1,
|
148
|
+
"maxLength": 1024
|
149
|
+
},
|
150
|
+
"locationId": {
|
151
|
+
"type": "string",
|
152
|
+
"minLength": 1,
|
153
|
+
"maxLength": 1024
|
154
|
+
},
|
155
|
+
"assetUpdates": {
|
156
|
+
"type": "boolean"
|
157
|
+
},
|
158
|
+
"zoneUpdates": {
|
159
|
+
"type": "boolean"
|
160
|
+
}
|
161
|
+
},
|
162
|
+
"additionalProperties": false,
|
163
|
+
"required": [
|
164
|
+
"authenticationToken",
|
165
|
+
"locationId"
|
166
|
+
]
|
140
167
|
}
|
141
168
|
},
|
142
169
|
"additionalProperties": false
|
@@ -10,8 +10,9 @@
|
|
10
10
|
"integrationType": {
|
11
11
|
"type": "string",
|
12
12
|
"enum": [
|
13
|
-
"mqtt",
|
14
13
|
"googlePubSub",
|
14
|
+
"meridian",
|
15
|
+
"mqtt",
|
15
16
|
"particle"
|
16
17
|
]
|
17
18
|
},
|
@@ -51,18 +52,18 @@
|
|
51
52
|
"properties": {
|
52
53
|
"clientId": {
|
53
54
|
"type": "string",
|
54
|
-
"
|
55
|
-
"
|
55
|
+
"minLength": 1,
|
56
|
+
"maxLength": 1024
|
56
57
|
},
|
57
58
|
"username": {
|
58
59
|
"type": "string",
|
59
|
-
"
|
60
|
-
"
|
60
|
+
"minLength": 1,
|
61
|
+
"maxLength": 1024
|
61
62
|
},
|
62
63
|
"password": {
|
63
64
|
"type": "string",
|
64
|
-
"
|
65
|
-
"
|
65
|
+
"minLength": 1,
|
66
|
+
"maxLength": 1024
|
66
67
|
},
|
67
68
|
"clean": {
|
68
69
|
"type": "boolean"
|
@@ -83,8 +84,8 @@
|
|
83
84
|
},
|
84
85
|
"host": {
|
85
86
|
"type": "string",
|
86
|
-
"
|
87
|
-
"
|
87
|
+
"minLength": 1,
|
88
|
+
"maxLength": 1024
|
88
89
|
},
|
89
90
|
"privateKey": {
|
90
91
|
"type": "string",
|
@@ -114,29 +115,55 @@
|
|
114
115
|
"properties": {
|
115
116
|
"accessToken": {
|
116
117
|
"type": "string",
|
117
|
-
"
|
118
|
-
"
|
118
|
+
"minLength": 1,
|
119
|
+
"maxLength": 1024
|
119
120
|
},
|
120
121
|
"productSlugOrId": {
|
121
122
|
"type": "string",
|
122
|
-
"
|
123
|
-
"
|
123
|
+
"minLength": 1,
|
124
|
+
"maxLength": 1024
|
124
125
|
},
|
125
126
|
"orgSlugOrId": {
|
126
127
|
"type": "string",
|
127
|
-
"
|
128
|
-
"
|
128
|
+
"minLength": 1,
|
129
|
+
"maxLength": 1024
|
129
130
|
},
|
130
131
|
"deviceNameOrId": {
|
131
132
|
"type": "string",
|
132
|
-
"
|
133
|
-
"
|
133
|
+
"minLength": 1,
|
134
|
+
"maxLength": 1024
|
134
135
|
}
|
135
136
|
},
|
136
137
|
"additionalProperties": false,
|
137
138
|
"required": [
|
138
139
|
"accessToken"
|
139
140
|
]
|
141
|
+
},
|
142
|
+
"meridianConfig": {
|
143
|
+
"type": "object",
|
144
|
+
"properties": {
|
145
|
+
"authenticationToken": {
|
146
|
+
"type": "string",
|
147
|
+
"minLength": 1,
|
148
|
+
"maxLength": 1024
|
149
|
+
},
|
150
|
+
"locationId": {
|
151
|
+
"type": "string",
|
152
|
+
"minLength": 1,
|
153
|
+
"maxLength": 1024
|
154
|
+
},
|
155
|
+
"assetUpdates": {
|
156
|
+
"type": "boolean"
|
157
|
+
},
|
158
|
+
"zoneUpdates": {
|
159
|
+
"type": "boolean"
|
160
|
+
}
|
161
|
+
},
|
162
|
+
"additionalProperties": false,
|
163
|
+
"required": [
|
164
|
+
"authenticationToken",
|
165
|
+
"locationId"
|
166
|
+
]
|
140
167
|
}
|
141
168
|
},
|
142
169
|
"additionalProperties": false,
|
data/schemas/integrations.json
CHANGED
@@ -37,8 +37,9 @@
|
|
37
37
|
"integrationType": {
|
38
38
|
"type": "string",
|
39
39
|
"enum": [
|
40
|
-
"mqtt",
|
41
40
|
"googlePubSub",
|
41
|
+
"meridian",
|
42
|
+
"mqtt",
|
42
43
|
"particle"
|
43
44
|
]
|
44
45
|
},
|
@@ -78,18 +79,18 @@
|
|
78
79
|
"properties": {
|
79
80
|
"clientId": {
|
80
81
|
"type": "string",
|
81
|
-
"
|
82
|
-
"
|
82
|
+
"minLength": 1,
|
83
|
+
"maxLength": 1024
|
83
84
|
},
|
84
85
|
"username": {
|
85
86
|
"type": "string",
|
86
|
-
"
|
87
|
-
"
|
87
|
+
"minLength": 1,
|
88
|
+
"maxLength": 1024
|
88
89
|
},
|
89
90
|
"password": {
|
90
91
|
"type": "string",
|
91
|
-
"
|
92
|
-
"
|
92
|
+
"minLength": 1,
|
93
|
+
"maxLength": 1024
|
93
94
|
},
|
94
95
|
"clean": {
|
95
96
|
"type": "boolean"
|
@@ -110,8 +111,8 @@
|
|
110
111
|
},
|
111
112
|
"host": {
|
112
113
|
"type": "string",
|
113
|
-
"
|
114
|
-
"
|
114
|
+
"minLength": 1,
|
115
|
+
"maxLength": 1024
|
115
116
|
},
|
116
117
|
"privateKey": {
|
117
118
|
"type": "string",
|
@@ -141,23 +142,23 @@
|
|
141
142
|
"properties": {
|
142
143
|
"accessToken": {
|
143
144
|
"type": "string",
|
144
|
-
"
|
145
|
-
"
|
145
|
+
"minLength": 1,
|
146
|
+
"maxLength": 1024
|
146
147
|
},
|
147
148
|
"productSlugOrId": {
|
148
149
|
"type": "string",
|
149
|
-
"
|
150
|
-
"
|
150
|
+
"minLength": 1,
|
151
|
+
"maxLength": 1024
|
151
152
|
},
|
152
153
|
"orgSlugOrId": {
|
153
154
|
"type": "string",
|
154
|
-
"
|
155
|
-
"
|
155
|
+
"minLength": 1,
|
156
|
+
"maxLength": 1024
|
156
157
|
},
|
157
158
|
"deviceNameOrId": {
|
158
159
|
"type": "string",
|
159
|
-
"
|
160
|
-
"
|
160
|
+
"minLength": 1,
|
161
|
+
"maxLength": 1024
|
161
162
|
}
|
162
163
|
},
|
163
164
|
"additionalProperties": false,
|
@@ -165,6 +166,32 @@
|
|
165
166
|
"accessToken"
|
166
167
|
]
|
167
168
|
},
|
169
|
+
"meridianConfig": {
|
170
|
+
"type": "object",
|
171
|
+
"properties": {
|
172
|
+
"authenticationToken": {
|
173
|
+
"type": "string",
|
174
|
+
"minLength": 1,
|
175
|
+
"maxLength": 1024
|
176
|
+
},
|
177
|
+
"locationId": {
|
178
|
+
"type": "string",
|
179
|
+
"minLength": 1,
|
180
|
+
"maxLength": 1024
|
181
|
+
},
|
182
|
+
"assetUpdates": {
|
183
|
+
"type": "boolean"
|
184
|
+
},
|
185
|
+
"zoneUpdates": {
|
186
|
+
"type": "boolean"
|
187
|
+
}
|
188
|
+
},
|
189
|
+
"additionalProperties": false,
|
190
|
+
"required": [
|
191
|
+
"authenticationToken",
|
192
|
+
"locationId"
|
193
|
+
]
|
194
|
+
},
|
168
195
|
"status": {
|
169
196
|
"lastKeepAlive": {
|
170
197
|
"type": [
|
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.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kuehl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|