losant_rest 1.16.2 → 1.16.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,8 @@ all.Instance, all.Instance.read, all.User, all.User.read, instanceSandboxes.*, o
30
30
  | Name | Type | Required | Description | Default | Example |
31
31
  | ---- | ---- | -------- | ----------- | ------- | ------- |
32
32
  | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 |
33
+ | summaryExclude | string | N | Comma-separated list of summary fields to exclude from user summary | | payloadCount |
34
+ | summaryInclude | string | N | Comma-separated list of summary fields to include in user summary | | payloadCount |
33
35
  | sortField | string | N | Field to sort the results by. Accepted values are: firstName, lastName, email, id, creationDate, lastSuccessfulLogin, lastFailedLogin, failedLoginCount, lastUpdated | email | firstName |
34
36
  | sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
35
37
  | startingAfterId | string | N | Exclusive ID from which to begin querying | | 575ec8687ae143cd83dc4a97 |
@@ -27,7 +27,7 @@ module LosantRest
27
27
  #
28
28
  # User API for accessing Losant data
29
29
  #
30
- # Built For Version 1.23.2
30
+ # Built For Version 1.23.3
31
31
  class Client
32
32
  attr_accessor :auth_token, :url
33
33
 
@@ -374,7 +374,7 @@ module LosantRest
374
374
 
375
375
  headers["Accept"] = "application/json"
376
376
  headers["Content-Type"] = "application/json"
377
- headers["Accept-Version"] = "^1.23.2"
377
+ headers["Accept-Version"] = "^1.23.3"
378
378
  headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
379
379
  path = self.url + options.fetch(:path, "")
380
380
 
@@ -41,6 +41,8 @@ module LosantRest
41
41
  #
42
42
  # Parameters:
43
43
  # * {string} instanceId - ID associated with the instance
44
+ # * {string} summaryExclude - Comma-separated list of summary fields to exclude from user summary
45
+ # * {string} summaryInclude - Comma-separated list of summary fields to include in user summary
44
46
  # * {string} sortField - Field to sort the results by. Accepted values are: firstName, lastName, email, id, creationDate, lastSuccessfulLogin, lastFailedLogin, failedLoginCount, lastUpdated
45
47
  # * {string} sortDirection - Direction to sort the results by. Accepted values are: asc, desc
46
48
  # * {string} startingAfterId - Exclusive ID from which to begin querying
@@ -67,6 +69,8 @@ module LosantRest
67
69
 
68
70
  raise ArgumentError.new("instanceId is required") unless params.has_key?(:instanceId)
69
71
 
72
+ query_params[:summaryExclude] = params[:summaryExclude] if params.has_key?(:summaryExclude)
73
+ query_params[:summaryInclude] = params[:summaryInclude] if params.has_key?(:summaryInclude)
70
74
  query_params[:sortField] = params[:sortField] if params.has_key?(:sortField)
71
75
  query_params[:sortDirection] = params[:sortDirection] if params.has_key?(:sortDirection)
72
76
  query_params[:startingAfterId] = params[:startingAfterId] if params.has_key?(:startingAfterId)
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module LosantRest
24
- VERSION = "1.16.2"
24
+ VERSION = "1.16.3"
25
25
  end
@@ -61,6 +61,50 @@
61
61
  }
62
62
  ]
63
63
  },
64
+ "$gt": {
65
+ "oneOf": [
66
+ {
67
+ "type": "string",
68
+ "pattern": "^[A-Fa-f\\d]{24}$"
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ]
74
+ },
75
+ "$lt": {
76
+ "oneOf": [
77
+ {
78
+ "type": "string",
79
+ "pattern": "^[A-Fa-f\\d]{24}$"
80
+ },
81
+ {
82
+ "type": "null"
83
+ }
84
+ ]
85
+ },
86
+ "$gte": {
87
+ "oneOf": [
88
+ {
89
+ "type": "string",
90
+ "pattern": "^[A-Fa-f\\d]{24}$"
91
+ },
92
+ {
93
+ "type": "null"
94
+ }
95
+ ]
96
+ },
97
+ "$lte": {
98
+ "oneOf": [
99
+ {
100
+ "type": "string",
101
+ "pattern": "^[A-Fa-f\\d]{24}$"
102
+ },
103
+ {
104
+ "type": "null"
105
+ }
106
+ ]
107
+ },
64
108
  "$in": {
65
109
  "type": "array",
66
110
  "maxItems": 100,
@@ -431,6 +475,50 @@
431
475
  }
432
476
  ]
433
477
  },
478
+ "$gt": {
479
+ "oneOf": [
480
+ {
481
+ "type": "string",
482
+ "pattern": "^[A-Fa-f\\d]{24}$"
483
+ },
484
+ {
485
+ "type": "null"
486
+ }
487
+ ]
488
+ },
489
+ "$lt": {
490
+ "oneOf": [
491
+ {
492
+ "type": "string",
493
+ "pattern": "^[A-Fa-f\\d]{24}$"
494
+ },
495
+ {
496
+ "type": "null"
497
+ }
498
+ ]
499
+ },
500
+ "$gte": {
501
+ "oneOf": [
502
+ {
503
+ "type": "string",
504
+ "pattern": "^[A-Fa-f\\d]{24}$"
505
+ },
506
+ {
507
+ "type": "null"
508
+ }
509
+ ]
510
+ },
511
+ "$lte": {
512
+ "oneOf": [
513
+ {
514
+ "type": "string",
515
+ "pattern": "^[A-Fa-f\\d]{24}$"
516
+ },
517
+ {
518
+ "type": "null"
519
+ }
520
+ ]
521
+ },
434
522
  "$in": {
435
523
  "type": "array",
436
524
  "maxItems": 100,
@@ -61,6 +61,50 @@
61
61
  }
62
62
  ]
63
63
  },
64
+ "$gt": {
65
+ "oneOf": [
66
+ {
67
+ "type": "string",
68
+ "pattern": "^[A-Fa-f\\d]{24}$"
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ]
74
+ },
75
+ "$lt": {
76
+ "oneOf": [
77
+ {
78
+ "type": "string",
79
+ "pattern": "^[A-Fa-f\\d]{24}$"
80
+ },
81
+ {
82
+ "type": "null"
83
+ }
84
+ ]
85
+ },
86
+ "$gte": {
87
+ "oneOf": [
88
+ {
89
+ "type": "string",
90
+ "pattern": "^[A-Fa-f\\d]{24}$"
91
+ },
92
+ {
93
+ "type": "null"
94
+ }
95
+ ]
96
+ },
97
+ "$lte": {
98
+ "oneOf": [
99
+ {
100
+ "type": "string",
101
+ "pattern": "^[A-Fa-f\\d]{24}$"
102
+ },
103
+ {
104
+ "type": "null"
105
+ }
106
+ ]
107
+ },
64
108
  "$in": {
65
109
  "type": "array",
66
110
  "maxItems": 100,
@@ -534,6 +578,50 @@
534
578
  }
535
579
  ]
536
580
  },
581
+ "$gt": {
582
+ "oneOf": [
583
+ {
584
+ "type": "string",
585
+ "pattern": "^[A-Fa-f\\d]{24}$"
586
+ },
587
+ {
588
+ "type": "null"
589
+ }
590
+ ]
591
+ },
592
+ "$lt": {
593
+ "oneOf": [
594
+ {
595
+ "type": "string",
596
+ "pattern": "^[A-Fa-f\\d]{24}$"
597
+ },
598
+ {
599
+ "type": "null"
600
+ }
601
+ ]
602
+ },
603
+ "$gte": {
604
+ "oneOf": [
605
+ {
606
+ "type": "string",
607
+ "pattern": "^[A-Fa-f\\d]{24}$"
608
+ },
609
+ {
610
+ "type": "null"
611
+ }
612
+ ]
613
+ },
614
+ "$lte": {
615
+ "oneOf": [
616
+ {
617
+ "type": "string",
618
+ "pattern": "^[A-Fa-f\\d]{24}$"
619
+ },
620
+ {
621
+ "type": "null"
622
+ }
623
+ ]
624
+ },
537
625
  "$in": {
538
626
  "type": "array",
539
627
  "maxItems": 100,
@@ -595,6 +683,50 @@
595
683
  }
596
684
  ]
597
685
  },
686
+ "$gt": {
687
+ "oneOf": [
688
+ {
689
+ "type": "string",
690
+ "pattern": "^[A-Fa-f\\d]{24}$"
691
+ },
692
+ {
693
+ "type": "null"
694
+ }
695
+ ]
696
+ },
697
+ "$lt": {
698
+ "oneOf": [
699
+ {
700
+ "type": "string",
701
+ "pattern": "^[A-Fa-f\\d]{24}$"
702
+ },
703
+ {
704
+ "type": "null"
705
+ }
706
+ ]
707
+ },
708
+ "$gte": {
709
+ "oneOf": [
710
+ {
711
+ "type": "string",
712
+ "pattern": "^[A-Fa-f\\d]{24}$"
713
+ },
714
+ {
715
+ "type": "null"
716
+ }
717
+ ]
718
+ },
719
+ "$lte": {
720
+ "oneOf": [
721
+ {
722
+ "type": "string",
723
+ "pattern": "^[A-Fa-f\\d]{24}$"
724
+ },
725
+ {
726
+ "type": "null"
727
+ }
728
+ ]
729
+ },
598
730
  "$in": {
599
731
  "type": "array",
600
732
  "maxItems": 100,
@@ -656,6 +788,50 @@
656
788
  }
657
789
  ]
658
790
  },
791
+ "$gt": {
792
+ "oneOf": [
793
+ {
794
+ "type": "string",
795
+ "pattern": "^[A-Fa-f\\d]{24}$"
796
+ },
797
+ {
798
+ "type": "null"
799
+ }
800
+ ]
801
+ },
802
+ "$lt": {
803
+ "oneOf": [
804
+ {
805
+ "type": "string",
806
+ "pattern": "^[A-Fa-f\\d]{24}$"
807
+ },
808
+ {
809
+ "type": "null"
810
+ }
811
+ ]
812
+ },
813
+ "$gte": {
814
+ "oneOf": [
815
+ {
816
+ "type": "string",
817
+ "pattern": "^[A-Fa-f\\d]{24}$"
818
+ },
819
+ {
820
+ "type": "null"
821
+ }
822
+ ]
823
+ },
824
+ "$lte": {
825
+ "oneOf": [
826
+ {
827
+ "type": "string",
828
+ "pattern": "^[A-Fa-f\\d]{24}$"
829
+ },
830
+ {
831
+ "type": "null"
832
+ }
833
+ ]
834
+ },
659
835
  "$in": {
660
836
  "type": "array",
661
837
  "maxItems": 100,
@@ -820,6 +996,50 @@
820
996
  }
821
997
  ]
822
998
  },
999
+ "$gt": {
1000
+ "oneOf": [
1001
+ {
1002
+ "type": "string",
1003
+ "pattern": "^[A-Fa-f\\d]{24}$"
1004
+ },
1005
+ {
1006
+ "type": "null"
1007
+ }
1008
+ ]
1009
+ },
1010
+ "$lt": {
1011
+ "oneOf": [
1012
+ {
1013
+ "type": "string",
1014
+ "pattern": "^[A-Fa-f\\d]{24}$"
1015
+ },
1016
+ {
1017
+ "type": "null"
1018
+ }
1019
+ ]
1020
+ },
1021
+ "$gte": {
1022
+ "oneOf": [
1023
+ {
1024
+ "type": "string",
1025
+ "pattern": "^[A-Fa-f\\d]{24}$"
1026
+ },
1027
+ {
1028
+ "type": "null"
1029
+ }
1030
+ ]
1031
+ },
1032
+ "$lte": {
1033
+ "oneOf": [
1034
+ {
1035
+ "type": "string",
1036
+ "pattern": "^[A-Fa-f\\d]{24}$"
1037
+ },
1038
+ {
1039
+ "type": "null"
1040
+ }
1041
+ ]
1042
+ },
823
1043
  "$in": {
824
1044
  "type": "array",
825
1045
  "maxItems": 100,
@@ -881,6 +1101,50 @@
881
1101
  }
882
1102
  ]
883
1103
  },
1104
+ "$gt": {
1105
+ "oneOf": [
1106
+ {
1107
+ "type": "string",
1108
+ "pattern": "^[A-Fa-f\\d]{24}$"
1109
+ },
1110
+ {
1111
+ "type": "null"
1112
+ }
1113
+ ]
1114
+ },
1115
+ "$lt": {
1116
+ "oneOf": [
1117
+ {
1118
+ "type": "string",
1119
+ "pattern": "^[A-Fa-f\\d]{24}$"
1120
+ },
1121
+ {
1122
+ "type": "null"
1123
+ }
1124
+ ]
1125
+ },
1126
+ "$gte": {
1127
+ "oneOf": [
1128
+ {
1129
+ "type": "string",
1130
+ "pattern": "^[A-Fa-f\\d]{24}$"
1131
+ },
1132
+ {
1133
+ "type": "null"
1134
+ }
1135
+ ]
1136
+ },
1137
+ "$lte": {
1138
+ "oneOf": [
1139
+ {
1140
+ "type": "string",
1141
+ "pattern": "^[A-Fa-f\\d]{24}$"
1142
+ },
1143
+ {
1144
+ "type": "null"
1145
+ }
1146
+ ]
1147
+ },
884
1148
  "$in": {
885
1149
  "type": "array",
886
1150
  "maxItems": 100,
@@ -988,6 +988,50 @@
988
988
  }
989
989
  ]
990
990
  },
991
+ "$gt": {
992
+ "oneOf": [
993
+ {
994
+ "type": "string",
995
+ "pattern": "^[A-Fa-f\\d]{24}$"
996
+ },
997
+ {
998
+ "type": "null"
999
+ }
1000
+ ]
1001
+ },
1002
+ "$lt": {
1003
+ "oneOf": [
1004
+ {
1005
+ "type": "string",
1006
+ "pattern": "^[A-Fa-f\\d]{24}$"
1007
+ },
1008
+ {
1009
+ "type": "null"
1010
+ }
1011
+ ]
1012
+ },
1013
+ "$gte": {
1014
+ "oneOf": [
1015
+ {
1016
+ "type": "string",
1017
+ "pattern": "^[A-Fa-f\\d]{24}$"
1018
+ },
1019
+ {
1020
+ "type": "null"
1021
+ }
1022
+ ]
1023
+ },
1024
+ "$lte": {
1025
+ "oneOf": [
1026
+ {
1027
+ "type": "string",
1028
+ "pattern": "^[A-Fa-f\\d]{24}$"
1029
+ },
1030
+ {
1031
+ "type": "null"
1032
+ }
1033
+ ]
1034
+ },
991
1035
  "$in": {
992
1036
  "type": "array",
993
1037
  "maxItems": 100,
@@ -1049,6 +1093,50 @@
1049
1093
  }
1050
1094
  ]
1051
1095
  },
1096
+ "$gt": {
1097
+ "oneOf": [
1098
+ {
1099
+ "type": "string",
1100
+ "pattern": "^[A-Fa-f\\d]{24}$"
1101
+ },
1102
+ {
1103
+ "type": "null"
1104
+ }
1105
+ ]
1106
+ },
1107
+ "$lt": {
1108
+ "oneOf": [
1109
+ {
1110
+ "type": "string",
1111
+ "pattern": "^[A-Fa-f\\d]{24}$"
1112
+ },
1113
+ {
1114
+ "type": "null"
1115
+ }
1116
+ ]
1117
+ },
1118
+ "$gte": {
1119
+ "oneOf": [
1120
+ {
1121
+ "type": "string",
1122
+ "pattern": "^[A-Fa-f\\d]{24}$"
1123
+ },
1124
+ {
1125
+ "type": "null"
1126
+ }
1127
+ ]
1128
+ },
1129
+ "$lte": {
1130
+ "oneOf": [
1131
+ {
1132
+ "type": "string",
1133
+ "pattern": "^[A-Fa-f\\d]{24}$"
1134
+ },
1135
+ {
1136
+ "type": "null"
1137
+ }
1138
+ ]
1139
+ },
1052
1140
  "$in": {
1053
1141
  "type": "array",
1054
1142
  "maxItems": 100,
@@ -164,6 +164,50 @@
164
164
  }
165
165
  ]
166
166
  },
167
+ "$gt": {
168
+ "oneOf": [
169
+ {
170
+ "type": "string",
171
+ "pattern": "^[A-Fa-f\\d]{24}$"
172
+ },
173
+ {
174
+ "type": "null"
175
+ }
176
+ ]
177
+ },
178
+ "$lt": {
179
+ "oneOf": [
180
+ {
181
+ "type": "string",
182
+ "pattern": "^[A-Fa-f\\d]{24}$"
183
+ },
184
+ {
185
+ "type": "null"
186
+ }
187
+ ]
188
+ },
189
+ "$gte": {
190
+ "oneOf": [
191
+ {
192
+ "type": "string",
193
+ "pattern": "^[A-Fa-f\\d]{24}$"
194
+ },
195
+ {
196
+ "type": "null"
197
+ }
198
+ ]
199
+ },
200
+ "$lte": {
201
+ "oneOf": [
202
+ {
203
+ "type": "string",
204
+ "pattern": "^[A-Fa-f\\d]{24}$"
205
+ },
206
+ {
207
+ "type": "null"
208
+ }
209
+ ]
210
+ },
167
211
  "$in": {
168
212
  "type": "array",
169
213
  "maxItems": 100,
@@ -637,6 +681,50 @@
637
681
  }
638
682
  ]
639
683
  },
684
+ "$gt": {
685
+ "oneOf": [
686
+ {
687
+ "type": "string",
688
+ "pattern": "^[A-Fa-f\\d]{24}$"
689
+ },
690
+ {
691
+ "type": "null"
692
+ }
693
+ ]
694
+ },
695
+ "$lt": {
696
+ "oneOf": [
697
+ {
698
+ "type": "string",
699
+ "pattern": "^[A-Fa-f\\d]{24}$"
700
+ },
701
+ {
702
+ "type": "null"
703
+ }
704
+ ]
705
+ },
706
+ "$gte": {
707
+ "oneOf": [
708
+ {
709
+ "type": "string",
710
+ "pattern": "^[A-Fa-f\\d]{24}$"
711
+ },
712
+ {
713
+ "type": "null"
714
+ }
715
+ ]
716
+ },
717
+ "$lte": {
718
+ "oneOf": [
719
+ {
720
+ "type": "string",
721
+ "pattern": "^[A-Fa-f\\d]{24}$"
722
+ },
723
+ {
724
+ "type": "null"
725
+ }
726
+ ]
727
+ },
640
728
  "$in": {
641
729
  "type": "array",
642
730
  "maxItems": 100,