losant_rest 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/docs/_schemas.md +113 -47
  5. data/lib/losant_rest/application.rb +1 -1
  6. data/lib/losant_rest/application_api_token.rb +1 -1
  7. data/lib/losant_rest/application_api_tokens.rb +1 -1
  8. data/lib/losant_rest/application_key.rb +1 -1
  9. data/lib/losant_rest/application_keys.rb +1 -1
  10. data/lib/losant_rest/applications.rb +1 -1
  11. data/lib/losant_rest/audit_log.rb +1 -1
  12. data/lib/losant_rest/audit_logs.rb +1 -1
  13. data/lib/losant_rest/auth.rb +1 -1
  14. data/lib/losant_rest/client.rb +3 -3
  15. data/lib/losant_rest/dashboard.rb +1 -1
  16. data/lib/losant_rest/dashboards.rb +1 -1
  17. data/lib/losant_rest/data.rb +1 -1
  18. data/lib/losant_rest/data_table.rb +1 -1
  19. data/lib/losant_rest/data_table_row.rb +1 -1
  20. data/lib/losant_rest/data_table_rows.rb +1 -1
  21. data/lib/losant_rest/data_tables.rb +1 -1
  22. data/lib/losant_rest/device.rb +1 -1
  23. data/lib/losant_rest/device_recipe.rb +1 -1
  24. data/lib/losant_rest/device_recipes.rb +1 -1
  25. data/lib/losant_rest/devices.rb +1 -1
  26. data/lib/losant_rest/error.rb +1 -1
  27. data/lib/losant_rest/event.rb +1 -1
  28. data/lib/losant_rest/events.rb +1 -1
  29. data/lib/losant_rest/experience_domain.rb +1 -1
  30. data/lib/losant_rest/experience_domains.rb +1 -1
  31. data/lib/losant_rest/experience_endpoint.rb +1 -1
  32. data/lib/losant_rest/experience_endpoints.rb +1 -1
  33. data/lib/losant_rest/experience_group.rb +1 -1
  34. data/lib/losant_rest/experience_groups.rb +1 -1
  35. data/lib/losant_rest/experience_user.rb +1 -1
  36. data/lib/losant_rest/experience_users.rb +1 -1
  37. data/lib/losant_rest/experience_view.rb +1 -1
  38. data/lib/losant_rest/experience_views.rb +1 -1
  39. data/lib/losant_rest/flow.rb +1 -1
  40. data/lib/losant_rest/flow_version.rb +1 -1
  41. data/lib/losant_rest/flow_versions.rb +1 -1
  42. data/lib/losant_rest/flows.rb +1 -1
  43. data/lib/losant_rest/integration.rb +1 -1
  44. data/lib/losant_rest/integrations.rb +1 -1
  45. data/lib/losant_rest/me.rb +1 -1
  46. data/lib/losant_rest/org.rb +1 -1
  47. data/lib/losant_rest/org_invites.rb +1 -1
  48. data/lib/losant_rest/orgs.rb +1 -1
  49. data/lib/losant_rest/solution.rb +1 -1
  50. data/lib/losant_rest/solution_user.rb +1 -1
  51. data/lib/losant_rest/solution_users.rb +1 -1
  52. data/lib/losant_rest/solutions.rb +1 -1
  53. data/lib/losant_rest/utils.rb +1 -1
  54. data/lib/losant_rest/version.rb +2 -2
  55. data/lib/losant_rest/webhook.rb +1 -1
  56. data/lib/losant_rest/webhooks.rb +1 -1
  57. data/lib/losant_rest.rb +1 -1
  58. data/schemas/application.json +25 -6
  59. data/schemas/applicationPatch.json +25 -6
  60. data/schemas/applicationPost.json +25 -6
  61. data/schemas/applications.json +25 -6
  62. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 953d0b8c769ddba10e356c990a502b49a1f8f212
4
- data.tar.gz: 6a1dbf5dba079e7414ed64551ab3d328986eb06a
3
+ metadata.gz: 83ad286b27fb7ca350881e4e994ceb1bfb7edff2
4
+ data.tar.gz: 9a76752062e026144c00bd5682a7242062cf313f
5
5
  SHA512:
6
- metadata.gz: 3942428163bc48340058122486dc57c9273d5b03d610229bae56971c362ddebf93a54b8d07552ed88deb2e21633b76bbc687f47caf4d4542fcdf95c7bbd952f4
7
- data.tar.gz: d55eda538b27deb9bb20ee223b35a92fa0f6d8b743a441e43e1599489deb353ec588f9dfe288368f421a9f8b9f18a03f1dfaf1a499fbd12e572f4913d73ca21f
6
+ metadata.gz: 755a187aaf4c1b44a58b94ef9524340dd46b3081d3e11183bc67f0f1345e476b39a8df35a5b3d755c77dae9c749269deac725d99ca19b351d3caaa7464aed45e
7
+ data.tar.gz: a11a553c42b9960d9824f12b453aa200fe0fa57e31434d9d5d69c02e169b0e62b1623d2c8f9d668ae1d8ad7fd5749e61e5f849d286a890e1dceebe6a726d36d2
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 Losant IoT, Inc.
3
+ Copyright (c) 2018 Losant IoT, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -227,6 +227,6 @@ When the Losant API returns a unsuccessful response, an instance of ResponseErro
227
227
 
228
228
  *****
229
229
 
230
- Copyright (c) 2017 Losant IoT, Inc
230
+ Copyright (c) 2018 Losant IoT, Inc
231
231
 
232
232
  <https://www.losant.com>
data/docs/_schemas.md CHANGED
@@ -457,21 +457,40 @@ Schema for a single Application
457
457
  "type": "string",
458
458
  "max": 255
459
459
  },
460
- "whiteList": {
460
+ "mode": {
461
+ "type": "string",
462
+ "enum": [
463
+ "all",
464
+ "whitelist",
465
+ "blacklist"
466
+ ]
467
+ },
468
+ "deviceIds": {
461
469
  "type": "array",
462
470
  "items": {
463
471
  "type": "string",
464
472
  "pattern": "^[A-Fa-f\\d]{24}$"
465
473
  },
466
- "max": 100
474
+ "maxItems": 1000
467
475
  },
468
- "blackList": {
476
+ "deviceTags": {
469
477
  "type": "array",
470
478
  "items": {
471
- "type": "string",
472
- "pattern": "^[A-Fa-f\\d]{24}$"
479
+ "type": "object",
480
+ "properties": {
481
+ "key": {
482
+ "type": "string",
483
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
484
+ },
485
+ "value": {
486
+ "type": "string",
487
+ "minLength": 1,
488
+ "maxLength": 255
489
+ }
490
+ },
491
+ "additionalProperties": false
473
492
  },
474
- "max": 100
493
+ "maxItems": 100
475
494
  },
476
495
  "s3": {
477
496
  "type": "object",
@@ -561,7 +580,8 @@ Schema for a single Application
561
580
  "accessSecretKey": "awsSecretKey",
562
581
  "region": "us-west-1"
563
582
  },
564
- "blackList": [
583
+ "mode": "all",
584
+ "deviceIds": [
565
585
  "575ec8687ae143cd83dc4a95",
566
586
  "575ec8687ae143cd83dc4a91"
567
587
  ]
@@ -1298,21 +1318,40 @@ Schema for the body of an Application modification request
1298
1318
  "type": "string",
1299
1319
  "max": 255
1300
1320
  },
1301
- "whiteList": {
1321
+ "mode": {
1322
+ "type": "string",
1323
+ "enum": [
1324
+ "all",
1325
+ "whitelist",
1326
+ "blacklist"
1327
+ ]
1328
+ },
1329
+ "deviceIds": {
1302
1330
  "type": "array",
1303
1331
  "items": {
1304
1332
  "type": "string",
1305
1333
  "pattern": "^[A-Fa-f\\d]{24}$"
1306
1334
  },
1307
- "max": 100
1335
+ "maxItems": 1000
1308
1336
  },
1309
- "blackList": {
1337
+ "deviceTags": {
1310
1338
  "type": "array",
1311
1339
  "items": {
1312
- "type": "string",
1313
- "pattern": "^[A-Fa-f\\d]{24}$"
1340
+ "type": "object",
1341
+ "properties": {
1342
+ "key": {
1343
+ "type": "string",
1344
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1345
+ },
1346
+ "value": {
1347
+ "type": "string",
1348
+ "minLength": 1,
1349
+ "maxLength": 255
1350
+ }
1351
+ },
1352
+ "additionalProperties": false
1314
1353
  },
1315
- "max": 100
1354
+ "maxItems": 100
1316
1355
  },
1317
1356
  "s3": {
1318
1357
  "type": "object",
@@ -1454,21 +1493,40 @@ Schema for the body of an Application creation request
1454
1493
  "type": "string",
1455
1494
  "max": 255
1456
1495
  },
1457
- "whiteList": {
1496
+ "mode": {
1497
+ "type": "string",
1498
+ "enum": [
1499
+ "all",
1500
+ "whitelist",
1501
+ "blacklist"
1502
+ ]
1503
+ },
1504
+ "deviceIds": {
1458
1505
  "type": "array",
1459
1506
  "items": {
1460
1507
  "type": "string",
1461
1508
  "pattern": "^[A-Fa-f\\d]{24}$"
1462
1509
  },
1463
- "max": 100
1510
+ "maxItems": 1000
1464
1511
  },
1465
- "blackList": {
1512
+ "deviceTags": {
1466
1513
  "type": "array",
1467
1514
  "items": {
1468
- "type": "string",
1469
- "pattern": "^[A-Fa-f\\d]{24}$"
1515
+ "type": "object",
1516
+ "properties": {
1517
+ "key": {
1518
+ "type": "string",
1519
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1520
+ },
1521
+ "value": {
1522
+ "type": "string",
1523
+ "minLength": 1,
1524
+ "maxLength": 255
1525
+ }
1526
+ },
1527
+ "additionalProperties": false
1470
1528
  },
1471
- "max": 100
1529
+ "maxItems": 100
1472
1530
  },
1473
1531
  "s3": {
1474
1532
  "type": "object",
@@ -1719,21 +1777,40 @@ Schema for a collection of Applications
1719
1777
  "type": "string",
1720
1778
  "max": 255
1721
1779
  },
1722
- "whiteList": {
1780
+ "mode": {
1781
+ "type": "string",
1782
+ "enum": [
1783
+ "all",
1784
+ "whitelist",
1785
+ "blacklist"
1786
+ ]
1787
+ },
1788
+ "deviceIds": {
1723
1789
  "type": "array",
1724
1790
  "items": {
1725
1791
  "type": "string",
1726
1792
  "pattern": "^[A-Fa-f\\d]{24}$"
1727
1793
  },
1728
- "max": 100
1794
+ "maxItems": 1000
1729
1795
  },
1730
- "blackList": {
1796
+ "deviceTags": {
1731
1797
  "type": "array",
1732
1798
  "items": {
1733
- "type": "string",
1734
- "pattern": "^[A-Fa-f\\d]{24}$"
1799
+ "type": "object",
1800
+ "properties": {
1801
+ "key": {
1802
+ "type": "string",
1803
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
1804
+ },
1805
+ "value": {
1806
+ "type": "string",
1807
+ "minLength": 1,
1808
+ "maxLength": 255
1809
+ }
1810
+ },
1811
+ "additionalProperties": false
1735
1812
  },
1736
- "max": 100
1813
+ "maxItems": 100
1737
1814
  },
1738
1815
  "s3": {
1739
1816
  "type": "object",
@@ -1856,7 +1933,8 @@ Schema for a collection of Applications
1856
1933
  "accessSecretKey": "awsSecretKey",
1857
1934
  "region": "us-west-1"
1858
1935
  },
1859
- "blackList": [
1936
+ "mode": "all",
1937
+ "deviceIds": [
1860
1938
  "575ec8687ae143cd83dc4a95",
1861
1939
  "575ec8687ae143cd83dc4a91"
1862
1940
  ]
@@ -9213,34 +9291,22 @@ Log of aggregated workflow run information
9213
9291
  ```json
9214
9292
  [
9215
9293
  {
9294
+ "flowVersionId": "develop",
9216
9295
  "time": "2016-06-03T00:56:22.447Z",
9217
- "errorCount": 0,
9296
+ "pathsFailed": 0,
9218
9297
  "pathsCompleted": 1,
9219
- "totalCount": 1,
9220
- "totalTime": 24,
9298
+ "runCount": 1,
9221
9299
  "wallTime": 450,
9222
- "errors": [],
9223
- "nodes": {
9224
- "SJaEw_dV": {
9225
- "time": 22,
9226
- "count": 1
9227
- }
9228
- }
9300
+ "errors": []
9229
9301
  },
9230
9302
  {
9231
- "time": "2016-06-03T00:57:22.447Z",
9232
- "errorCount": 0,
9303
+ "flowVersionId": "develop",
9304
+ "time": "2016-06-03T00:56:22.447Z",
9305
+ "pathsFailed": 0,
9233
9306
  "pathsCompleted": 1,
9234
- "totalCount": 3,
9235
- "totalTime": 58,
9307
+ "runCount": 3,
9236
9308
  "wallTime": 152,
9237
- "errors": [],
9238
- "nodes": {
9239
- "SJaEw_dV": {
9240
- "time": 18,
9241
- "count": 3
9242
- }
9243
- }
9309
+ "errors": []
9244
9310
  }
9245
9311
  ]
9246
9312
  ```
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -27,7 +27,7 @@ module LosantRest
27
27
  #
28
28
  # User API for accessing Losant data
29
29
  #
30
- # Built For Version 1.9.2
30
+ # Built For Version 1.9.3
31
31
  class Client
32
32
  attr_accessor :auth_token, :url
33
33
 
@@ -234,7 +234,7 @@ module LosantRest
234
234
 
235
235
  headers["Accept"] = "application/json"
236
236
  headers["Content-Type"] = "application/json"
237
- headers["Accept-Version"] = "^1.9.2"
237
+ headers["Accept-Version"] = "^1.9.3"
238
238
  headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
239
239
  path = self.url + options.fetch(:path, "")
240
240
 
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module LosantRest
24
- VERSION = "1.4.1"
24
+ VERSION = "1.4.2"
25
25
  end
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
data/lib/losant_rest.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # The MIT License (MIT)
2
2
  #
3
- # Copyright (c) 2017 Losant IoT, Inc.
3
+ # Copyright (c) 2018 Losant IoT, Inc.
4
4
  #
5
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  # of this software and associated documentation files (the "Software"), to deal
@@ -157,21 +157,40 @@
157
157
  "type": "string",
158
158
  "max": 255
159
159
  },
160
- "whiteList": {
160
+ "mode": {
161
+ "type": "string",
162
+ "enum": [
163
+ "all",
164
+ "whitelist",
165
+ "blacklist"
166
+ ]
167
+ },
168
+ "deviceIds": {
161
169
  "type": "array",
162
170
  "items": {
163
171
  "type": "string",
164
172
  "pattern": "^[A-Fa-f\\d]{24}$"
165
173
  },
166
- "max": 100
174
+ "maxItems": 1000
167
175
  },
168
- "blackList": {
176
+ "deviceTags": {
169
177
  "type": "array",
170
178
  "items": {
171
- "type": "string",
172
- "pattern": "^[A-Fa-f\\d]{24}$"
179
+ "type": "object",
180
+ "properties": {
181
+ "key": {
182
+ "type": "string",
183
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
184
+ },
185
+ "value": {
186
+ "type": "string",
187
+ "minLength": 1,
188
+ "maxLength": 255
189
+ }
190
+ },
191
+ "additionalProperties": false
173
192
  },
174
- "max": 100
193
+ "maxItems": 100
175
194
  },
176
195
  "s3": {
177
196
  "type": "object",
@@ -83,21 +83,40 @@
83
83
  "type": "string",
84
84
  "max": 255
85
85
  },
86
- "whiteList": {
86
+ "mode": {
87
+ "type": "string",
88
+ "enum": [
89
+ "all",
90
+ "whitelist",
91
+ "blacklist"
92
+ ]
93
+ },
94
+ "deviceIds": {
87
95
  "type": "array",
88
96
  "items": {
89
97
  "type": "string",
90
98
  "pattern": "^[A-Fa-f\\d]{24}$"
91
99
  },
92
- "max": 100
100
+ "maxItems": 1000
93
101
  },
94
- "blackList": {
102
+ "deviceTags": {
95
103
  "type": "array",
96
104
  "items": {
97
- "type": "string",
98
- "pattern": "^[A-Fa-f\\d]{24}$"
105
+ "type": "object",
106
+ "properties": {
107
+ "key": {
108
+ "type": "string",
109
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
110
+ },
111
+ "value": {
112
+ "type": "string",
113
+ "minLength": 1,
114
+ "maxLength": 255
115
+ }
116
+ },
117
+ "additionalProperties": false
99
118
  },
100
- "max": 100
119
+ "maxItems": 100
101
120
  },
102
121
  "s3": {
103
122
  "type": "object",
@@ -58,21 +58,40 @@
58
58
  "type": "string",
59
59
  "max": 255
60
60
  },
61
- "whiteList": {
61
+ "mode": {
62
+ "type": "string",
63
+ "enum": [
64
+ "all",
65
+ "whitelist",
66
+ "blacklist"
67
+ ]
68
+ },
69
+ "deviceIds": {
62
70
  "type": "array",
63
71
  "items": {
64
72
  "type": "string",
65
73
  "pattern": "^[A-Fa-f\\d]{24}$"
66
74
  },
67
- "max": 100
75
+ "maxItems": 1000
68
76
  },
69
- "blackList": {
77
+ "deviceTags": {
70
78
  "type": "array",
71
79
  "items": {
72
- "type": "string",
73
- "pattern": "^[A-Fa-f\\d]{24}$"
80
+ "type": "object",
81
+ "properties": {
82
+ "key": {
83
+ "type": "string",
84
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
85
+ },
86
+ "value": {
87
+ "type": "string",
88
+ "minLength": 1,
89
+ "maxLength": 255
90
+ }
91
+ },
92
+ "additionalProperties": false
74
93
  },
75
- "max": 100
94
+ "maxItems": 100
76
95
  },
77
96
  "s3": {
78
97
  "type": "object",
@@ -164,21 +164,40 @@
164
164
  "type": "string",
165
165
  "max": 255
166
166
  },
167
- "whiteList": {
167
+ "mode": {
168
+ "type": "string",
169
+ "enum": [
170
+ "all",
171
+ "whitelist",
172
+ "blacklist"
173
+ ]
174
+ },
175
+ "deviceIds": {
168
176
  "type": "array",
169
177
  "items": {
170
178
  "type": "string",
171
179
  "pattern": "^[A-Fa-f\\d]{24}$"
172
180
  },
173
- "max": 100
181
+ "maxItems": 1000
174
182
  },
175
- "blackList": {
183
+ "deviceTags": {
176
184
  "type": "array",
177
185
  "items": {
178
- "type": "string",
179
- "pattern": "^[A-Fa-f\\d]{24}$"
186
+ "type": "object",
187
+ "properties": {
188
+ "key": {
189
+ "type": "string",
190
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
191
+ },
192
+ "value": {
193
+ "type": "string",
194
+ "minLength": 1,
195
+ "maxLength": 255
196
+ }
197
+ },
198
+ "additionalProperties": false
180
199
  },
181
- "max": 100
200
+ "maxItems": 100
182
201
  },
183
202
  "s3": {
184
203
  "type": "object",
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.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-14 00:00:00.000000000 Z
11
+ date: 2018-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty