losant_rest 1.21.3 → 1.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +1796 -152
  3. data/docs/deviceAttribute.md +139 -0
  4. data/docs/deviceAttributes.md +96 -0
  5. data/lib/platform_rest/client.rb +10 -2
  6. data/lib/platform_rest/device_attribute.rb +182 -0
  7. data/lib/platform_rest/device_attributes.rb +138 -0
  8. data/lib/platform_rest/version.rb +1 -1
  9. data/lib/platform_rest.rb +2 -0
  10. data/schemas/apiTokenPost.json +8 -0
  11. data/schemas/applicationDashboardPost.json +120 -0
  12. data/schemas/applicationExportPost.json +29 -0
  13. data/schemas/applicationImportExecutions.json +18 -1
  14. data/schemas/credential.json +39 -1
  15. data/schemas/credentialPatch.json +37 -0
  16. data/schemas/credentialPost.json +54 -1
  17. data/schemas/credentials.json +39 -1
  18. data/schemas/dashboard.json +120 -0
  19. data/schemas/dashboardPatch.json +120 -0
  20. data/schemas/dashboardPost.json +120 -0
  21. data/schemas/dashboards.json +120 -0
  22. data/schemas/dataExport.json +4 -0
  23. data/schemas/device.json +0 -1
  24. data/schemas/deviceAttribute.json +128 -0
  25. data/schemas/deviceAttributePatch.json +111 -0
  26. data/schemas/deviceAttributePost.json +125 -0
  27. data/schemas/deviceAttributes.json +171 -0
  28. data/schemas/devicePatch.json +0 -1
  29. data/schemas/devicePost.json +0 -1
  30. data/schemas/deviceRecipe.json +0 -1
  31. data/schemas/deviceRecipePatch.json +0 -1
  32. data/schemas/deviceRecipePost.json +0 -1
  33. data/schemas/deviceRecipes.json +0 -1
  34. data/schemas/devices.json +0 -1
  35. data/schemas/devicesPatch.json +65 -3
  36. data/schemas/githubLogin.json +8 -0
  37. data/schemas/importIntoApplicationOptions.json +17 -0
  38. data/schemas/samlResponse.json +8 -0
  39. data/schemas/suggestFunctionPost.json +15 -0
  40. data/schemas/suggestFunctionResponse.json +37 -0
  41. data/schemas/userCredentials.json +8 -0
  42. data/schemas/userPost.json +8 -0
  43. metadata +12 -2
@@ -880,6 +880,45 @@
880
880
  }
881
881
  },
882
882
  "additionalProperties": false
883
+ },
884
+ {
885
+ "type": "object",
886
+ "properties": {
887
+ "queryType": {
888
+ "type": "string",
889
+ "enum": [
890
+ "events"
891
+ ]
892
+ },
893
+ "id": {
894
+ "type": "string",
895
+ "maxLength": 48
896
+ },
897
+ "sortField": {
898
+ "type": "string",
899
+ "maxLength": 255
900
+ },
901
+ "sortDirection": {
902
+ "type": "string",
903
+ "maxLength": 255
904
+ },
905
+ "page": {
906
+ "type": "string",
907
+ "maxLength": 255
908
+ },
909
+ "perPage": {
910
+ "type": "string",
911
+ "maxLength": 255
912
+ },
913
+ "query": {
914
+ "type": "string",
915
+ "maxLength": 32767
916
+ },
917
+ "includeExtendedEventInfo": {
918
+ "type": "boolean"
919
+ }
920
+ },
921
+ "additionalProperties": false
883
922
  }
884
923
  ]
885
924
  }
@@ -2553,6 +2592,18 @@
2553
2592
  "format": {
2554
2593
  "type": "string",
2555
2594
  "maxLength": 255
2595
+ },
2596
+ "scale": {
2597
+ "type": "string",
2598
+ "enum": [
2599
+ "linear",
2600
+ "log",
2601
+ "sqrt"
2602
+ ],
2603
+ "default": "linear"
2604
+ },
2605
+ "stacked": {
2606
+ "type": "boolean"
2556
2607
  }
2557
2608
  },
2558
2609
  "additionalProperties": false,
@@ -2560,6 +2611,75 @@
2560
2611
  "id"
2561
2612
  ]
2562
2613
  }
2614
+ },
2615
+ "decorators": {
2616
+ "type": "array",
2617
+ "maxItems": 10,
2618
+ "items": {
2619
+ "type": "object",
2620
+ "properties": {
2621
+ "type": {
2622
+ "type": "string",
2623
+ "enum": [
2624
+ "line",
2625
+ "area"
2626
+ ]
2627
+ },
2628
+ "yAxisId": {
2629
+ "type": "string",
2630
+ "maxLength": 48
2631
+ },
2632
+ "label": {
2633
+ "type": "string",
2634
+ "maxLength": 255
2635
+ },
2636
+ "color": {
2637
+ "type": "string",
2638
+ "maxLength": 64
2639
+ },
2640
+ "lineStyle": {
2641
+ "type": "string",
2642
+ "enum": [
2643
+ "solid",
2644
+ "dotted",
2645
+ "dashed"
2646
+ ]
2647
+ },
2648
+ "lineWeight": {
2649
+ "type": "integer",
2650
+ "minimum": 0,
2651
+ "maximum": 5
2652
+ },
2653
+ "y1": {
2654
+ "oneOf": [
2655
+ {
2656
+ "type": "number"
2657
+ },
2658
+ {
2659
+ "type": "string",
2660
+ "maxLength": 128
2661
+ }
2662
+ ]
2663
+ },
2664
+ "y2": {
2665
+ "oneOf": [
2666
+ {
2667
+ "type": "number"
2668
+ },
2669
+ {
2670
+ "type": "string",
2671
+ "maxLength": 128
2672
+ }
2673
+ ]
2674
+ }
2675
+ },
2676
+ "required": [
2677
+ "type",
2678
+ "yAxisId",
2679
+ "y1"
2680
+ ],
2681
+ "additionalProperties": false
2682
+ }
2563
2683
  }
2564
2684
  },
2565
2685
  "additionalProperties": false
@@ -27,6 +27,35 @@
27
27
  "forceJob": {
28
28
  "type": "boolean",
29
29
  "default": false
30
+ },
31
+ "exportType": {
32
+ "type": "string",
33
+ "enum": [
34
+ "zip",
35
+ "repo"
36
+ ],
37
+ "default": "zip"
38
+ },
39
+ "credentialName": {
40
+ "type": "string",
41
+ "maxLength": 255
42
+ },
43
+ "repo": {
44
+ "type": "object",
45
+ "properties": {
46
+ "branch": {
47
+ "type": "string",
48
+ "maxLength": 255
49
+ },
50
+ "directory": {
51
+ "type": "string",
52
+ "maxLength": 1024
53
+ },
54
+ "commitMessage": {
55
+ "type": "string",
56
+ "maxLength": 1024
57
+ }
58
+ }
30
59
  }
31
60
  },
32
61
  "additionalProperties": false
@@ -13,7 +13,8 @@
13
13
  "enum": [
14
14
  "importBundle",
15
15
  "importUrl",
16
- "fromApplication"
16
+ "fromApplication",
17
+ "repository"
17
18
  ]
18
19
  },
19
20
  "importExecutionId": {
@@ -199,6 +200,22 @@
199
200
  "type": "string",
200
201
  "format": "uri",
201
202
  "maxLength": 1024
203
+ },
204
+ "credentialName": {
205
+ "type": "string"
206
+ },
207
+ "repo": {
208
+ "type": "object",
209
+ "properties": {
210
+ "branch": {
211
+ "type": "string",
212
+ "maxLength": 255
213
+ },
214
+ "directory": {
215
+ "type": "string",
216
+ "maxLength": 1024
217
+ }
218
+ }
202
219
  }
203
220
  }
204
221
  }
@@ -69,7 +69,8 @@
69
69
  "sql",
70
70
  "mongodb",
71
71
  "mailgun",
72
- "snowflake"
72
+ "snowflake",
73
+ "git"
73
74
  ]
74
75
  },
75
76
  "awsConfig": {
@@ -295,6 +296,43 @@
295
296
  "publicKey"
296
297
  ],
297
298
  "additionalProperties": false
299
+ },
300
+ "gitConfig": {
301
+ "type": "object",
302
+ "properties": {
303
+ "type": {
304
+ "type": "string",
305
+ "enum": [
306
+ "ssh-key",
307
+ "http-password"
308
+ ]
309
+ },
310
+ "cloneUrl": {
311
+ "type": "string",
312
+ "minLength": 5,
313
+ "maxLength": 1024
314
+ },
315
+ "publicKey": {
316
+ "type": "string",
317
+ "maxLength": 8192
318
+ },
319
+ "username": {
320
+ "type": "string",
321
+ "maxLength": 128
322
+ },
323
+ "committerName": {
324
+ "type": "string",
325
+ "maxLength": 128
326
+ },
327
+ "committerEmail": {
328
+ "type": "string",
329
+ "maxLength": 128
330
+ }
331
+ },
332
+ "required": [
333
+ "type",
334
+ "cloneUrl"
335
+ ]
298
336
  }
299
337
  },
300
338
  "additionalProperties": false,
@@ -272,6 +272,43 @@
272
272
  }
273
273
  },
274
274
  "additionalProperties": false
275
+ },
276
+ "gitConfig": {
277
+ "type": "object",
278
+ "properties": {
279
+ "type": {
280
+ "type": "string",
281
+ "enum": [
282
+ "ssh-key",
283
+ "http-password"
284
+ ]
285
+ },
286
+ "cloneUrl": {
287
+ "type": "string",
288
+ "minLength": 5,
289
+ "maxLength": 1024
290
+ },
291
+ "username": {
292
+ "type": "string",
293
+ "maxLength": 128
294
+ },
295
+ "committerName": {
296
+ "type": "string",
297
+ "maxLength": 128
298
+ },
299
+ "committerEmail": {
300
+ "type": "string",
301
+ "maxLength": 128
302
+ },
303
+ "generatePrivateKey": {
304
+ "type": "boolean"
305
+ },
306
+ "secretValue": {
307
+ "type": "string",
308
+ "maxLength": 8196
309
+ }
310
+ },
311
+ "additionalProperties": false
275
312
  }
276
313
  },
277
314
  "additionalProperties": false
@@ -29,7 +29,8 @@
29
29
  "sql",
30
30
  "mongodb",
31
31
  "mailgun",
32
- "snowflake"
32
+ "snowflake",
33
+ "git"
33
34
  ]
34
35
  },
35
36
  "awsConfig": {
@@ -353,6 +354,58 @@
353
354
  ]
354
355
  }
355
356
  ]
357
+ },
358
+ "gitConfig": {
359
+ "type": "object",
360
+ "properties": {
361
+ "type": {
362
+ "type": "string",
363
+ "enum": [
364
+ "ssh-key",
365
+ "http-password"
366
+ ]
367
+ },
368
+ "cloneUrl": {
369
+ "type": "string",
370
+ "minLength": 5,
371
+ "maxLength": 1024
372
+ },
373
+ "username": {
374
+ "type": "string",
375
+ "maxLength": 128
376
+ },
377
+ "committerName": {
378
+ "type": "string",
379
+ "maxLength": 128
380
+ },
381
+ "committerEmail": {
382
+ "type": "string",
383
+ "maxLength": 128
384
+ },
385
+ "generatePrivateKey": {
386
+ "type": "boolean"
387
+ },
388
+ "secretValue": {
389
+ "type": "string",
390
+ "maxLength": 8196
391
+ }
392
+ },
393
+ "additionalProperties": false,
394
+ "anyOf": [
395
+ {
396
+ "required": [
397
+ "type",
398
+ "cloneUrl",
399
+ "generatePrivateKey"
400
+ ]
401
+ },
402
+ {
403
+ "required": [
404
+ "type",
405
+ "cloneUrl"
406
+ ]
407
+ }
408
+ ]
356
409
  }
357
410
  },
358
411
  "additionalProperties": false,
@@ -76,7 +76,8 @@
76
76
  "sql",
77
77
  "mongodb",
78
78
  "mailgun",
79
- "snowflake"
79
+ "snowflake",
80
+ "git"
80
81
  ]
81
82
  },
82
83
  "awsConfig": {
@@ -302,6 +303,43 @@
302
303
  "publicKey"
303
304
  ],
304
305
  "additionalProperties": false
306
+ },
307
+ "gitConfig": {
308
+ "type": "object",
309
+ "properties": {
310
+ "type": {
311
+ "type": "string",
312
+ "enum": [
313
+ "ssh-key",
314
+ "http-password"
315
+ ]
316
+ },
317
+ "cloneUrl": {
318
+ "type": "string",
319
+ "minLength": 5,
320
+ "maxLength": 1024
321
+ },
322
+ "publicKey": {
323
+ "type": "string",
324
+ "maxLength": 8192
325
+ },
326
+ "username": {
327
+ "type": "string",
328
+ "maxLength": 128
329
+ },
330
+ "committerName": {
331
+ "type": "string",
332
+ "maxLength": 128
333
+ },
334
+ "committerEmail": {
335
+ "type": "string",
336
+ "maxLength": 128
337
+ }
338
+ },
339
+ "required": [
340
+ "type",
341
+ "cloneUrl"
342
+ ]
305
343
  }
306
344
  },
307
345
  "additionalProperties": false,
@@ -1086,6 +1086,45 @@
1086
1086
  }
1087
1087
  },
1088
1088
  "additionalProperties": false
1089
+ },
1090
+ {
1091
+ "type": "object",
1092
+ "properties": {
1093
+ "queryType": {
1094
+ "type": "string",
1095
+ "enum": [
1096
+ "events"
1097
+ ]
1098
+ },
1099
+ "id": {
1100
+ "type": "string",
1101
+ "maxLength": 48
1102
+ },
1103
+ "sortField": {
1104
+ "type": "string",
1105
+ "maxLength": 255
1106
+ },
1107
+ "sortDirection": {
1108
+ "type": "string",
1109
+ "maxLength": 255
1110
+ },
1111
+ "page": {
1112
+ "type": "string",
1113
+ "maxLength": 255
1114
+ },
1115
+ "perPage": {
1116
+ "type": "string",
1117
+ "maxLength": 255
1118
+ },
1119
+ "query": {
1120
+ "type": "string",
1121
+ "maxLength": 32767
1122
+ },
1123
+ "includeExtendedEventInfo": {
1124
+ "type": "boolean"
1125
+ }
1126
+ },
1127
+ "additionalProperties": false
1089
1128
  }
1090
1129
  ]
1091
1130
  }
@@ -2759,6 +2798,18 @@
2759
2798
  "format": {
2760
2799
  "type": "string",
2761
2800
  "maxLength": 255
2801
+ },
2802
+ "scale": {
2803
+ "type": "string",
2804
+ "enum": [
2805
+ "linear",
2806
+ "log",
2807
+ "sqrt"
2808
+ ],
2809
+ "default": "linear"
2810
+ },
2811
+ "stacked": {
2812
+ "type": "boolean"
2762
2813
  }
2763
2814
  },
2764
2815
  "additionalProperties": false,
@@ -2766,6 +2817,75 @@
2766
2817
  "id"
2767
2818
  ]
2768
2819
  }
2820
+ },
2821
+ "decorators": {
2822
+ "type": "array",
2823
+ "maxItems": 10,
2824
+ "items": {
2825
+ "type": "object",
2826
+ "properties": {
2827
+ "type": {
2828
+ "type": "string",
2829
+ "enum": [
2830
+ "line",
2831
+ "area"
2832
+ ]
2833
+ },
2834
+ "yAxisId": {
2835
+ "type": "string",
2836
+ "maxLength": 48
2837
+ },
2838
+ "label": {
2839
+ "type": "string",
2840
+ "maxLength": 255
2841
+ },
2842
+ "color": {
2843
+ "type": "string",
2844
+ "maxLength": 64
2845
+ },
2846
+ "lineStyle": {
2847
+ "type": "string",
2848
+ "enum": [
2849
+ "solid",
2850
+ "dotted",
2851
+ "dashed"
2852
+ ]
2853
+ },
2854
+ "lineWeight": {
2855
+ "type": "integer",
2856
+ "minimum": 0,
2857
+ "maximum": 5
2858
+ },
2859
+ "y1": {
2860
+ "oneOf": [
2861
+ {
2862
+ "type": "number"
2863
+ },
2864
+ {
2865
+ "type": "string",
2866
+ "maxLength": 128
2867
+ }
2868
+ ]
2869
+ },
2870
+ "y2": {
2871
+ "oneOf": [
2872
+ {
2873
+ "type": "number"
2874
+ },
2875
+ {
2876
+ "type": "string",
2877
+ "maxLength": 128
2878
+ }
2879
+ ]
2880
+ }
2881
+ },
2882
+ "required": [
2883
+ "type",
2884
+ "yAxisId",
2885
+ "y1"
2886
+ ],
2887
+ "additionalProperties": false
2888
+ }
2769
2889
  }
2770
2890
  },
2771
2891
  "additionalProperties": false