losant_rest 1.19.8 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +1 -1
  3. data/docs/_schemas.md +9774 -1641
  4. data/lib/platform_rest/client.rb +2 -2
  5. data/lib/platform_rest/version.rb +1 -1
  6. data/losant_rest.gemspec +2 -2
  7. data/schemas/advancedApplicationKeyQuery.json +360 -18
  8. data/schemas/advancedDeviceQuery.json +360 -18
  9. data/schemas/advancedEventQuery.json +360 -18
  10. data/schemas/advancedExperienceGroupQuery.json +360 -18
  11. data/schemas/advancedExperienceUserQuery.json +360 -18
  12. data/schemas/advancedInstanceOrgQuery.json +360 -18
  13. data/schemas/apiTokenPost.json +1 -1
  14. data/schemas/application.json +28 -4
  15. data/schemas/applicationCreationByTemplateResult.json +28 -4
  16. data/schemas/applicationDashboardPost.json +2 -1
  17. data/schemas/applicationTemplate.json +4 -0
  18. data/schemas/applicationTemplates.json +4 -0
  19. data/schemas/applications.json +28 -4
  20. data/schemas/credential.json +7 -1
  21. data/schemas/credentialLinkedResources.json +336 -18
  22. data/schemas/credentialPatch.json +11 -0
  23. data/schemas/credentialPost.json +16 -1
  24. data/schemas/credentials.json +7 -1
  25. data/schemas/dashboard.json +2 -1
  26. data/schemas/dashboardPatch.json +2 -1
  27. data/schemas/dashboardPost.json +2 -1
  28. data/schemas/dashboards.json +2 -1
  29. data/schemas/dataExport.json +360 -18
  30. data/schemas/devicesDeletePost.json +360 -18
  31. data/schemas/devicesExportPayloadCountPost.json +360 -18
  32. data/schemas/devicesExportPost.json +360 -18
  33. data/schemas/devicesPatch.json +360 -18
  34. data/schemas/devicesRemoveDataPost.json +360 -18
  35. data/schemas/eventsExport.json +360 -18
  36. data/schemas/experienceLinkedResources.json +336 -18
  37. data/schemas/flow.json +112 -6
  38. data/schemas/flowPatch.json +112 -6
  39. data/schemas/flowPost.json +112 -6
  40. data/schemas/flowVersion.json +224 -12
  41. data/schemas/flowVersionPost.json +112 -6
  42. data/schemas/flowVersions.json +224 -12
  43. data/schemas/flows.json +112 -6
  44. data/schemas/flowsImportPost.json +224 -12
  45. data/schemas/flowsImportResult.json +336 -18
  46. data/schemas/githubLogin.json +1 -1
  47. data/schemas/historicalSummaries.json +56 -8
  48. data/schemas/historicalSummary.json +56 -8
  49. data/schemas/instanceCustomNodePatch.json +10 -6
  50. data/schemas/instanceCustomNodePost.json +10 -6
  51. data/schemas/instanceOrg.json +63 -4
  52. data/schemas/instanceOrgs.json +63 -4
  53. data/schemas/instanceSandbox.json +28 -4
  54. data/schemas/instanceSandboxes.json +28 -4
  55. data/schemas/lastValueQuery.json +360 -18
  56. data/schemas/me.json +28 -4
  57. data/schemas/multiDeviceCommand.json +360 -18
  58. data/schemas/org.json +28 -4
  59. data/schemas/orgs.json +28 -4
  60. data/schemas/payloadStats.json +28 -4
  61. data/schemas/samlResponse.json +1 -1
  62. data/schemas/timeSeriesQuery.json +360 -18
  63. data/schemas/userCredentials.json +1 -1
  64. data/schemas/userPost.json +1 -1
  65. data/schemas/webhook.json +13 -0
  66. data/schemas/webhookPatch.json +13 -0
  67. data/schemas/webhookPost.json +13 -0
  68. data/schemas/webhooks.json +13 -0
  69. metadata +5 -5
@@ -27,7 +27,7 @@ module PlatformRest
27
27
  #
28
28
  # User API for accessing platform data
29
29
  #
30
- # Built For Version 1.26.8
30
+ # Built For Version 1.26.9
31
31
  class Client
32
32
  attr_accessor :auth_token, :url
33
33
 
@@ -398,7 +398,7 @@ module PlatformRest
398
398
 
399
399
  headers["Accept"] = "application/json"
400
400
  headers["Content-Type"] = "application/json"
401
- headers["Accept-Version"] = "^1.26.8"
401
+ headers["Accept-Version"] = "^1.26.9"
402
402
  headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
403
403
  path = self.url + options.fetch(:path, "")
404
404
 
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module PlatformRest
24
- VERSION = "1.19.8"
24
+ VERSION = "1.20.0"
25
25
  end
data/losant_rest.gemspec CHANGED
@@ -15,9 +15,9 @@ Gem::Specification.new do |gem|
15
15
  gem.version = PlatformRest::VERSION
16
16
  gem.licenses = ["MIT"]
17
17
 
18
- gem.required_ruby_version = ">= 2.1"
18
+ gem.required_ruby_version = ">= 2.3"
19
19
 
20
- gem.add_dependency "httparty", "~> 0.14.0"
20
+ gem.add_dependency "httparty", "~> 0.21.0"
21
21
 
22
22
  gem.add_development_dependency "minitest", "~> 5.9"
23
23
  gem.add_development_dependency "rake", "~> 12"
@@ -550,12 +550,88 @@
550
550
  "type": "object",
551
551
  "properties": {
552
552
  "$tagKey": {
553
- "type": "string",
554
- "maxLength": 255
553
+ "oneOf": [
554
+ {
555
+ "type": "string",
556
+ "maxLength": 255
557
+ },
558
+ {
559
+ "type": "object",
560
+ "properties": {
561
+ "$in": {
562
+ "type": "array",
563
+ "maxItems": 100,
564
+ "items": {
565
+ "type": "string",
566
+ "maxLength": 255
567
+ }
568
+ }
569
+ },
570
+ "required": [
571
+ "$in"
572
+ ],
573
+ "additionalProperties": false
574
+ },
575
+ {
576
+ "type": "object",
577
+ "properties": {
578
+ "$nin": {
579
+ "type": "array",
580
+ "maxItems": 100,
581
+ "items": {
582
+ "type": "string",
583
+ "maxLength": 255
584
+ }
585
+ }
586
+ },
587
+ "required": [
588
+ "$nin"
589
+ ],
590
+ "additionalProperties": false
591
+ }
592
+ ]
555
593
  },
556
594
  "$tagValue": {
557
- "type": "string",
558
- "maxLength": 255
595
+ "oneOf": [
596
+ {
597
+ "type": "string",
598
+ "maxLength": 255
599
+ },
600
+ {
601
+ "type": "object",
602
+ "properties": {
603
+ "$in": {
604
+ "type": "array",
605
+ "maxItems": 100,
606
+ "items": {
607
+ "type": "string",
608
+ "maxLength": 255
609
+ }
610
+ }
611
+ },
612
+ "required": [
613
+ "$in"
614
+ ],
615
+ "additionalProperties": false
616
+ },
617
+ {
618
+ "type": "object",
619
+ "properties": {
620
+ "$nin": {
621
+ "type": "array",
622
+ "maxItems": 100,
623
+ "items": {
624
+ "type": "string",
625
+ "maxLength": 255
626
+ }
627
+ }
628
+ },
629
+ "required": [
630
+ "$nin"
631
+ ],
632
+ "additionalProperties": false
633
+ }
634
+ ]
559
635
  }
560
636
  },
561
637
  "additionalProperties": false,
@@ -565,8 +641,46 @@
565
641
  "type": "object",
566
642
  "patternProperties": {
567
643
  "^[0-9a-zA-Z_-]{1,255}": {
568
- "type": "string",
569
- "maxLength": 255
644
+ "oneOf": [
645
+ {
646
+ "type": "string",
647
+ "maxLength": 255
648
+ },
649
+ {
650
+ "type": "object",
651
+ "properties": {
652
+ "$in": {
653
+ "type": "array",
654
+ "maxItems": 100,
655
+ "items": {
656
+ "type": "string",
657
+ "maxLength": 255
658
+ }
659
+ }
660
+ },
661
+ "required": [
662
+ "$in"
663
+ ],
664
+ "additionalProperties": false
665
+ },
666
+ {
667
+ "type": "object",
668
+ "properties": {
669
+ "$nin": {
670
+ "type": "array",
671
+ "maxItems": 100,
672
+ "items": {
673
+ "type": "string",
674
+ "maxLength": 255
675
+ }
676
+ }
677
+ },
678
+ "required": [
679
+ "$nin"
680
+ ],
681
+ "additionalProperties": false
682
+ }
683
+ ]
570
684
  }
571
685
  },
572
686
  "additionalProperties": false
@@ -582,12 +696,88 @@
582
696
  "type": "object",
583
697
  "properties": {
584
698
  "$tagKey": {
585
- "type": "string",
586
- "maxLength": 255
699
+ "oneOf": [
700
+ {
701
+ "type": "string",
702
+ "maxLength": 255
703
+ },
704
+ {
705
+ "type": "object",
706
+ "properties": {
707
+ "$in": {
708
+ "type": "array",
709
+ "maxItems": 100,
710
+ "items": {
711
+ "type": "string",
712
+ "maxLength": 255
713
+ }
714
+ }
715
+ },
716
+ "required": [
717
+ "$in"
718
+ ],
719
+ "additionalProperties": false
720
+ },
721
+ {
722
+ "type": "object",
723
+ "properties": {
724
+ "$nin": {
725
+ "type": "array",
726
+ "maxItems": 100,
727
+ "items": {
728
+ "type": "string",
729
+ "maxLength": 255
730
+ }
731
+ }
732
+ },
733
+ "required": [
734
+ "$nin"
735
+ ],
736
+ "additionalProperties": false
737
+ }
738
+ ]
587
739
  },
588
740
  "$tagValue": {
589
- "type": "string",
590
- "maxLength": 255
741
+ "oneOf": [
742
+ {
743
+ "type": "string",
744
+ "maxLength": 255
745
+ },
746
+ {
747
+ "type": "object",
748
+ "properties": {
749
+ "$in": {
750
+ "type": "array",
751
+ "maxItems": 100,
752
+ "items": {
753
+ "type": "string",
754
+ "maxLength": 255
755
+ }
756
+ }
757
+ },
758
+ "required": [
759
+ "$in"
760
+ ],
761
+ "additionalProperties": false
762
+ },
763
+ {
764
+ "type": "object",
765
+ "properties": {
766
+ "$nin": {
767
+ "type": "array",
768
+ "maxItems": 100,
769
+ "items": {
770
+ "type": "string",
771
+ "maxLength": 255
772
+ }
773
+ }
774
+ },
775
+ "required": [
776
+ "$nin"
777
+ ],
778
+ "additionalProperties": false
779
+ }
780
+ ]
591
781
  }
592
782
  },
593
783
  "additionalProperties": false,
@@ -597,8 +787,46 @@
597
787
  "type": "object",
598
788
  "patternProperties": {
599
789
  "^[0-9a-zA-Z_-]{1,255}": {
600
- "type": "string",
601
- "maxLength": 255
790
+ "oneOf": [
791
+ {
792
+ "type": "string",
793
+ "maxLength": 255
794
+ },
795
+ {
796
+ "type": "object",
797
+ "properties": {
798
+ "$in": {
799
+ "type": "array",
800
+ "maxItems": 100,
801
+ "items": {
802
+ "type": "string",
803
+ "maxLength": 255
804
+ }
805
+ }
806
+ },
807
+ "required": [
808
+ "$in"
809
+ ],
810
+ "additionalProperties": false
811
+ },
812
+ {
813
+ "type": "object",
814
+ "properties": {
815
+ "$nin": {
816
+ "type": "array",
817
+ "maxItems": 100,
818
+ "items": {
819
+ "type": "string",
820
+ "maxLength": 255
821
+ }
822
+ }
823
+ },
824
+ "required": [
825
+ "$nin"
826
+ ],
827
+ "additionalProperties": false
828
+ }
829
+ ]
602
830
  }
603
831
  },
604
832
  "additionalProperties": false
@@ -620,12 +848,88 @@
620
848
  "type": "object",
621
849
  "properties": {
622
850
  "$tagKey": {
623
- "type": "string",
624
- "maxLength": 255
851
+ "oneOf": [
852
+ {
853
+ "type": "string",
854
+ "maxLength": 255
855
+ },
856
+ {
857
+ "type": "object",
858
+ "properties": {
859
+ "$in": {
860
+ "type": "array",
861
+ "maxItems": 100,
862
+ "items": {
863
+ "type": "string",
864
+ "maxLength": 255
865
+ }
866
+ }
867
+ },
868
+ "required": [
869
+ "$in"
870
+ ],
871
+ "additionalProperties": false
872
+ },
873
+ {
874
+ "type": "object",
875
+ "properties": {
876
+ "$nin": {
877
+ "type": "array",
878
+ "maxItems": 100,
879
+ "items": {
880
+ "type": "string",
881
+ "maxLength": 255
882
+ }
883
+ }
884
+ },
885
+ "required": [
886
+ "$nin"
887
+ ],
888
+ "additionalProperties": false
889
+ }
890
+ ]
625
891
  },
626
892
  "$tagValue": {
627
- "type": "string",
628
- "maxLength": 255
893
+ "oneOf": [
894
+ {
895
+ "type": "string",
896
+ "maxLength": 255
897
+ },
898
+ {
899
+ "type": "object",
900
+ "properties": {
901
+ "$in": {
902
+ "type": "array",
903
+ "maxItems": 100,
904
+ "items": {
905
+ "type": "string",
906
+ "maxLength": 255
907
+ }
908
+ }
909
+ },
910
+ "required": [
911
+ "$in"
912
+ ],
913
+ "additionalProperties": false
914
+ },
915
+ {
916
+ "type": "object",
917
+ "properties": {
918
+ "$nin": {
919
+ "type": "array",
920
+ "maxItems": 100,
921
+ "items": {
922
+ "type": "string",
923
+ "maxLength": 255
924
+ }
925
+ }
926
+ },
927
+ "required": [
928
+ "$nin"
929
+ ],
930
+ "additionalProperties": false
931
+ }
932
+ ]
629
933
  }
630
934
  },
631
935
  "additionalProperties": false,
@@ -635,8 +939,46 @@
635
939
  "type": "object",
636
940
  "patternProperties": {
637
941
  "^[0-9a-zA-Z_-]{1,255}": {
638
- "type": "string",
639
- "maxLength": 255
942
+ "oneOf": [
943
+ {
944
+ "type": "string",
945
+ "maxLength": 255
946
+ },
947
+ {
948
+ "type": "object",
949
+ "properties": {
950
+ "$in": {
951
+ "type": "array",
952
+ "maxItems": 100,
953
+ "items": {
954
+ "type": "string",
955
+ "maxLength": 255
956
+ }
957
+ }
958
+ },
959
+ "required": [
960
+ "$in"
961
+ ],
962
+ "additionalProperties": false
963
+ },
964
+ {
965
+ "type": "object",
966
+ "properties": {
967
+ "$nin": {
968
+ "type": "array",
969
+ "maxItems": 100,
970
+ "items": {
971
+ "type": "string",
972
+ "maxLength": 255
973
+ }
974
+ }
975
+ },
976
+ "required": [
977
+ "$nin"
978
+ ],
979
+ "additionalProperties": false
980
+ }
981
+ ]
640
982
  }
641
983
  },
642
984
  "additionalProperties": false