losant_rest 1.19.9 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +1 -1
  3. data/docs/_schemas.md +6009 -298
  4. data/lib/platform_rest/version.rb +1 -1
  5. data/losant_rest.gemspec +2 -2
  6. data/schemas/advancedApplicationKeyQuery.json +360 -18
  7. data/schemas/advancedDeviceQuery.json +360 -18
  8. data/schemas/advancedEventQuery.json +360 -18
  9. data/schemas/advancedExperienceGroupQuery.json +360 -18
  10. data/schemas/advancedExperienceUserQuery.json +360 -18
  11. data/schemas/advancedInstanceOrgQuery.json +360 -18
  12. data/schemas/apiTokenPost.json +1 -1
  13. data/schemas/application.json +8 -0
  14. data/schemas/applicationCreationByTemplateResult.json +8 -0
  15. data/schemas/applicationDashboardPost.json +2 -1
  16. data/schemas/applications.json +8 -0
  17. data/schemas/credentialLinkedResources.json +6 -0
  18. data/schemas/dashboard.json +2 -1
  19. data/schemas/dashboardPatch.json +2 -1
  20. data/schemas/dashboardPost.json +2 -1
  21. data/schemas/dashboards.json +2 -1
  22. data/schemas/dataExport.json +360 -18
  23. data/schemas/devicesDeletePost.json +360 -18
  24. data/schemas/devicesExportPayloadCountPost.json +360 -18
  25. data/schemas/devicesExportPost.json +360 -18
  26. data/schemas/devicesPatch.json +360 -18
  27. data/schemas/devicesRemoveDataPost.json +360 -18
  28. data/schemas/eventsExport.json +360 -18
  29. data/schemas/experienceLinkedResources.json +6 -0
  30. data/schemas/flow.json +2 -0
  31. data/schemas/flowPatch.json +2 -0
  32. data/schemas/flowPost.json +2 -0
  33. data/schemas/flowVersion.json +4 -0
  34. data/schemas/flowVersionPost.json +2 -0
  35. data/schemas/flowVersions.json +4 -0
  36. data/schemas/flows.json +2 -0
  37. data/schemas/flowsImportPost.json +4 -0
  38. data/schemas/flowsImportResult.json +6 -0
  39. data/schemas/githubLogin.json +1 -1
  40. data/schemas/historicalSummaries.json +16 -0
  41. data/schemas/historicalSummary.json +16 -0
  42. data/schemas/instanceCustomNodePatch.json +2 -0
  43. data/schemas/instanceCustomNodePost.json +2 -0
  44. data/schemas/instanceOrg.json +43 -0
  45. data/schemas/instanceOrgs.json +43 -0
  46. data/schemas/instanceSandbox.json +8 -0
  47. data/schemas/instanceSandboxes.json +8 -0
  48. data/schemas/lastValueQuery.json +360 -18
  49. data/schemas/me.json +8 -0
  50. data/schemas/multiDeviceCommand.json +360 -18
  51. data/schemas/org.json +8 -0
  52. data/schemas/orgs.json +8 -0
  53. data/schemas/payloadStats.json +8 -0
  54. data/schemas/samlResponse.json +1 -1
  55. data/schemas/timeSeriesQuery.json +360 -18
  56. data/schemas/userCredentials.json +1 -1
  57. data/schemas/userPost.json +1 -1
  58. metadata +5 -5
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module PlatformRest
24
- VERSION = "1.19.9"
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