losant_rest 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9f4bdf30bb518f39d70939d1e8f5961d1c441093
4
- data.tar.gz: b1035407f211e0022363f5b83c686d541f911a26
2
+ SHA256:
3
+ metadata.gz: 8bc2d229786fd1022415daa5f21836ab9dbdb27e7716565db914d0ab23724363
4
+ data.tar.gz: f5a50dcb4693c8c69831ac875efe16fa1b24fb498b2221dcaaa8b2c5565201ae
5
5
  SHA512:
6
- metadata.gz: 8498530c47979dcf059edb4c66461cde8ab4f06a9174eff1e0d6332e2286b4ef51fc2c378c1b61af60db482aaf2d38e0c9949a66ee6bb9d282b43cefef43ec39
7
- data.tar.gz: 5ff672fa3142cb142629a278baa715416969f9eccc025f93d37a6b6e674971f8c34f8d4d43aecefae2062f17fa2028e3ec7af1e44feb1b7294125074948ffb63
6
+ metadata.gz: c9d497c88b5f0f77c630ea52cb135f17a246627f6106dbad88ce3aeb0c77b6cd89763fe16d499e0f4f123f200e0def80022db33594faff62a44cf4f7ad11c182
7
+ data.tar.gz: 326f83520b492b964ad79822158f6f865f7eb9a6ae22bf222d780ec9ffd6ef539fb42756f2e6112605d2539e6867b961cfd68ba1d61052c16719284903acc463
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4
1
+ 2.5.3
data/README.md CHANGED
@@ -83,6 +83,12 @@ The ``Client()`` initializer takes the following arguments:
83
83
 
84
84
  Each of the following is a method on the client object, and returns a wrapper for the actions against that particular resource. See each resource documentation file for more information.
85
85
 
86
+ * [application](docs/application.md)
87
+ Contains all of the actions that can be performed against a single [Application](https://docs.losant.com/applications/overview/), which include things like getting info on an application or modifying an application.
88
+
89
+ * [applications](docs/applications.md)
90
+ Contains all of the actions that can be performed against the set of [Applications](https://docs.losant.com/applications/overview/) that the currently authenticated user has access to - such as listing the applications or creating a new application.
91
+
86
92
  * [application_api_token](docs/applicationApiToken.md)
87
93
  Contains all the actions that can be performed against a single [Api Token](https://docs.losant.com/applications/application-tokens/) belonging to an application - for instance, getting info on a single token or revoking a token.
88
94
 
@@ -95,12 +101,6 @@ Each of the following is a method on the client object, and returns a wrapper fo
95
101
  * [application_keys](docs/applicationKeys.md)
96
102
  Contains all of the actions that can be performed against the collection of [Application Keys](https://docs.losant.com/applications/access-keys/) belonging to an Application - such as listing all keys or creating a new key.
97
103
 
98
- * [application](docs/application.md)
99
- Contains all of the actions that can be performed against a single [Application](https://docs.losant.com/applications/overview/), which include things like getting info on an application or modifying an application.
100
-
101
- * [applications](docs/applications.md)
102
- Contains all of the actions that can be performed against the set of [Applications](https://docs.losant.com/applications/overview/) that the currently authenticated user has access to - such as listing the applications or creating a new application.
103
-
104
104
  * [auth](docs/auth.md)
105
105
  Contains the actions used for authenticating against the api, either as a user or as a device. The result of authentication calls contain the auth_token needed for authenticated calls - see the examples for more details.
106
106
 
@@ -146,6 +146,9 @@ Each of the following is a method on the client object, and returns a wrapper fo
146
146
  * [events](docs/events.md)
147
147
  Contains all the actions that can be performed against the collection of [Events](https://docs.losant.com/events/overview/) belonging to an Application - such as listing open events or creating a new event.
148
148
 
149
+ * [experience](docs/experience.md)
150
+ Contains all the actions that can be performed against an application [Experience](https://docs.losant.com/experiences/), such as bootstrapping or clearing resources.
151
+
149
152
  * [experience_domain](docs/experienceDomain.md)
150
153
  Contains all the actions that can be performed against a single [Experience Domain](https://docs.losant.com/experiences/domains/), such as updating SSL certificate information.
151
154
 
@@ -164,12 +167,24 @@ Each of the following is a method on the client object, and returns a wrapper fo
164
167
  * [experience_groups](docs/experienceGroups.md)
165
168
  Contains all the actions that can be performed against the collection of [Experience Groups](https://docs.losant.com/experiences/groups/) belonging to an Application - such as listing groups or creating a new group.
166
169
 
170
+ * [experience_slug](docs/experienceSlug.md)
171
+ Contains all the actions that can be performed against a single [Experience Slug](https://docs.losant.com/experiences/domains/), such as changing the associated version.
172
+
173
+ * [experience_slugs](docs/experienceSlugs.md)
174
+ Contains all the actions that can be performed against the collection of [Experience Slugs](https://docs.losant.com/experiences/domains/) belonging to an Application - such as listing slugs or creating a new slug.
175
+
167
176
  * [experience_user](docs/experienceUser.md)
168
177
  Contains all the actions that can be performed against a single [Experience User](https://docs.losant.com/experiences/users/), such as changing their email or password.
169
178
 
170
179
  * [experience_users](docs/experienceUsers.md)
171
180
  Contains all the actions that can be performed against the collection of [Experience Users](https://docs.losant.com/experiences/users/) belonging to an Application - such as listing users or creating a new user.
172
181
 
182
+ * [experience_version](docs/experienceVersion.md)
183
+ Contains all the actions that can be performed against a single [Experience Version](https://docs.losant.com/experiences/), such as modifying the description.
184
+
185
+ * [experience_versions](docs/experienceVersions.md)
186
+ Contains all the actions that can be performed against the collection of [Experience Versions](https://docs.losant.com/experiences/) belonging to an Application - such as listing versions or creating a new versions.
187
+
173
188
  * [experience_view](docs/experienceView.md)
174
189
  Contains all the actions that can be performed against a single [Experience View](https://docs.losant.com/experiences/views/), such as modifying the body template.
175
190
 
data/docs/_schemas.md CHANGED
@@ -2304,8 +2304,10 @@ Schema for a single Audit Log entry
2304
2304
  "ExperienceDomain",
2305
2305
  "ExperienceEndpoint",
2306
2306
  "ExperienceGroup",
2307
- "ExperienceView",
2307
+ "ExperienceSlug",
2308
2308
  "ExperienceUser",
2309
+ "ExperienceVersion",
2310
+ "ExperienceView",
2309
2311
  "File",
2310
2312
  "Flow",
2311
2313
  "SolutionUser",
@@ -2452,8 +2454,10 @@ Schema for the filter of an audit log query
2452
2454
  "ExperienceDomain",
2453
2455
  "ExperienceEndpoint",
2454
2456
  "ExperienceGroup",
2455
- "ExperienceView",
2457
+ "ExperienceSlug",
2456
2458
  "ExperienceUser",
2459
+ "ExperienceVersion",
2460
+ "ExperienceView",
2457
2461
  "File",
2458
2462
  "Flow",
2459
2463
  "SolutionUser",
@@ -2617,8 +2621,10 @@ Schema for a collection of Audit Logs
2617
2621
  "ExperienceDomain",
2618
2622
  "ExperienceEndpoint",
2619
2623
  "ExperienceGroup",
2620
- "ExperienceView",
2624
+ "ExperienceSlug",
2621
2625
  "ExperienceUser",
2626
+ "ExperienceVersion",
2627
+ "ExperienceView",
2622
2628
  "File",
2623
2629
  "Flow",
2624
2630
  "SolutionUser",
@@ -14465,6 +14471,33 @@ Schema for a single Workflow Version
14465
14471
  "resultMode",
14466
14472
  "fields"
14467
14473
  ]
14474
+ },
14475
+ "stats": {
14476
+ "type": "object",
14477
+ "properties": {
14478
+ "runCount": {
14479
+ "type": "number"
14480
+ },
14481
+ "errorCount": {
14482
+ "type": "number"
14483
+ },
14484
+ "byVersion": {
14485
+ "type": "object",
14486
+ "patternProperties": {
14487
+ ".*": {
14488
+ "type": "object",
14489
+ "properties": {
14490
+ "runCount": {
14491
+ "type": "number"
14492
+ },
14493
+ "errorCount": {
14494
+ "type": "number"
14495
+ }
14496
+ }
14497
+ }
14498
+ }
14499
+ }
14500
+ }
14468
14501
  }
14469
14502
  }
14470
14503
  },
@@ -14648,6 +14681,33 @@ Schema for a single Workflow Version
14648
14681
  "json"
14649
14682
  ]
14650
14683
  }
14684
+ },
14685
+ "stats": {
14686
+ "type": "object",
14687
+ "properties": {
14688
+ "runCount": {
14689
+ "type": "number"
14690
+ },
14691
+ "errorCount": {
14692
+ "type": "number"
14693
+ },
14694
+ "byVersion": {
14695
+ "type": "object",
14696
+ "patternProperties": {
14697
+ ".*": {
14698
+ "type": "object",
14699
+ "properties": {
14700
+ "runCount": {
14701
+ "type": "number"
14702
+ },
14703
+ "errorCount": {
14704
+ "type": "number"
14705
+ }
14706
+ }
14707
+ }
14708
+ }
14709
+ }
14710
+ }
14651
14711
  }
14652
14712
  }
14653
14713
  }
@@ -15686,6 +15746,33 @@ Schema for a collection of Workflow Versions
15686
15746
  "resultMode",
15687
15747
  "fields"
15688
15748
  ]
15749
+ },
15750
+ "stats": {
15751
+ "type": "object",
15752
+ "properties": {
15753
+ "runCount": {
15754
+ "type": "number"
15755
+ },
15756
+ "errorCount": {
15757
+ "type": "number"
15758
+ },
15759
+ "byVersion": {
15760
+ "type": "object",
15761
+ "patternProperties": {
15762
+ ".*": {
15763
+ "type": "object",
15764
+ "properties": {
15765
+ "runCount": {
15766
+ "type": "number"
15767
+ },
15768
+ "errorCount": {
15769
+ "type": "number"
15770
+ }
15771
+ }
15772
+ }
15773
+ }
15774
+ }
15775
+ }
15689
15776
  }
15690
15777
  }
15691
15778
  },
@@ -15869,6 +15956,33 @@ Schema for a collection of Workflow Versions
15869
15956
  "json"
15870
15957
  ]
15871
15958
  }
15959
+ },
15960
+ "stats": {
15961
+ "type": "object",
15962
+ "properties": {
15963
+ "runCount": {
15964
+ "type": "number"
15965
+ },
15966
+ "errorCount": {
15967
+ "type": "number"
15968
+ },
15969
+ "byVersion": {
15970
+ "type": "object",
15971
+ "patternProperties": {
15972
+ ".*": {
15973
+ "type": "object",
15974
+ "properties": {
15975
+ "runCount": {
15976
+ "type": "number"
15977
+ },
15978
+ "errorCount": {
15979
+ "type": "number"
15980
+ }
15981
+ }
15982
+ }
15983
+ }
15984
+ }
15985
+ }
15872
15986
  }
15873
15987
  }
15874
15988
  }
@@ -18653,6 +18767,33 @@ Schema for the result of a workflow import request
18653
18767
  "resultMode",
18654
18768
  "fields"
18655
18769
  ]
18770
+ },
18771
+ "stats": {
18772
+ "type": "object",
18773
+ "properties": {
18774
+ "runCount": {
18775
+ "type": "number"
18776
+ },
18777
+ "errorCount": {
18778
+ "type": "number"
18779
+ },
18780
+ "byVersion": {
18781
+ "type": "object",
18782
+ "patternProperties": {
18783
+ ".*": {
18784
+ "type": "object",
18785
+ "properties": {
18786
+ "runCount": {
18787
+ "type": "number"
18788
+ },
18789
+ "errorCount": {
18790
+ "type": "number"
18791
+ }
18792
+ }
18793
+ }
18794
+ }
18795
+ }
18796
+ }
18656
18797
  }
18657
18798
  }
18658
18799
  },
@@ -18836,6 +18977,33 @@ Schema for the result of a workflow import request
18836
18977
  "json"
18837
18978
  ]
18838
18979
  }
18980
+ },
18981
+ "stats": {
18982
+ "type": "object",
18983
+ "properties": {
18984
+ "runCount": {
18985
+ "type": "number"
18986
+ },
18987
+ "errorCount": {
18988
+ "type": "number"
18989
+ },
18990
+ "byVersion": {
18991
+ "type": "object",
18992
+ "patternProperties": {
18993
+ ".*": {
18994
+ "type": "object",
18995
+ "properties": {
18996
+ "runCount": {
18997
+ "type": "number"
18998
+ },
18999
+ "errorCount": {
19000
+ "type": "number"
19001
+ }
19002
+ }
19003
+ }
19004
+ }
19005
+ }
19006
+ }
18839
19007
  }
18840
19008
  }
18841
19009
  }
@@ -27,7 +27,7 @@ module LosantRest
27
27
  #
28
28
  # User API for accessing Losant data
29
29
  #
30
- # Built For Version 1.13.0
30
+ # Built For Version 1.13.1
31
31
  class Client
32
32
  attr_accessor :auth_token, :url
33
33
 
@@ -266,7 +266,7 @@ module LosantRest
266
266
 
267
267
  headers["Accept"] = "application/json"
268
268
  headers["Content-Type"] = "application/json"
269
- headers["Accept-Version"] = "^1.13.0"
269
+ headers["Accept-Version"] = "^1.13.1"
270
270
  headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
271
271
  path = self.url + options.fetch(:path, "")
272
272
 
@@ -21,5 +21,5 @@
21
21
  # SOFTWARE.
22
22
 
23
23
  module LosantRest
24
- VERSION = "1.8.0"
24
+ VERSION = "1.8.1"
25
25
  end
@@ -51,8 +51,10 @@
51
51
  "ExperienceDomain",
52
52
  "ExperienceEndpoint",
53
53
  "ExperienceGroup",
54
- "ExperienceView",
54
+ "ExperienceSlug",
55
55
  "ExperienceUser",
56
+ "ExperienceVersion",
57
+ "ExperienceView",
56
58
  "File",
57
59
  "Flow",
58
60
  "SolutionUser",
@@ -49,8 +49,10 @@
49
49
  "ExperienceDomain",
50
50
  "ExperienceEndpoint",
51
51
  "ExperienceGroup",
52
- "ExperienceView",
52
+ "ExperienceSlug",
53
53
  "ExperienceUser",
54
+ "ExperienceVersion",
55
+ "ExperienceView",
54
56
  "File",
55
57
  "Flow",
56
58
  "SolutionUser",
@@ -58,8 +58,10 @@
58
58
  "ExperienceDomain",
59
59
  "ExperienceEndpoint",
60
60
  "ExperienceGroup",
61
- "ExperienceView",
61
+ "ExperienceSlug",
62
62
  "ExperienceUser",
63
+ "ExperienceVersion",
64
+ "ExperienceView",
63
65
  "File",
64
66
  "Flow",
65
67
  "SolutionUser",
@@ -480,6 +480,33 @@
480
480
  "resultMode",
481
481
  "fields"
482
482
  ]
483
+ },
484
+ "stats": {
485
+ "type": "object",
486
+ "properties": {
487
+ "runCount": {
488
+ "type": "number"
489
+ },
490
+ "errorCount": {
491
+ "type": "number"
492
+ },
493
+ "byVersion": {
494
+ "type": "object",
495
+ "patternProperties": {
496
+ ".*": {
497
+ "type": "object",
498
+ "properties": {
499
+ "runCount": {
500
+ "type": "number"
501
+ },
502
+ "errorCount": {
503
+ "type": "number"
504
+ }
505
+ }
506
+ }
507
+ }
508
+ }
509
+ }
483
510
  }
484
511
  }
485
512
  },
@@ -663,6 +690,33 @@
663
690
  "json"
664
691
  ]
665
692
  }
693
+ },
694
+ "stats": {
695
+ "type": "object",
696
+ "properties": {
697
+ "runCount": {
698
+ "type": "number"
699
+ },
700
+ "errorCount": {
701
+ "type": "number"
702
+ },
703
+ "byVersion": {
704
+ "type": "object",
705
+ "patternProperties": {
706
+ ".*": {
707
+ "type": "object",
708
+ "properties": {
709
+ "runCount": {
710
+ "type": "number"
711
+ },
712
+ "errorCount": {
713
+ "type": "number"
714
+ }
715
+ }
716
+ }
717
+ }
718
+ }
719
+ }
666
720
  }
667
721
  }
668
722
  }
@@ -487,6 +487,33 @@
487
487
  "resultMode",
488
488
  "fields"
489
489
  ]
490
+ },
491
+ "stats": {
492
+ "type": "object",
493
+ "properties": {
494
+ "runCount": {
495
+ "type": "number"
496
+ },
497
+ "errorCount": {
498
+ "type": "number"
499
+ },
500
+ "byVersion": {
501
+ "type": "object",
502
+ "patternProperties": {
503
+ ".*": {
504
+ "type": "object",
505
+ "properties": {
506
+ "runCount": {
507
+ "type": "number"
508
+ },
509
+ "errorCount": {
510
+ "type": "number"
511
+ }
512
+ }
513
+ }
514
+ }
515
+ }
516
+ }
490
517
  }
491
518
  }
492
519
  },
@@ -670,6 +697,33 @@
670
697
  "json"
671
698
  ]
672
699
  }
700
+ },
701
+ "stats": {
702
+ "type": "object",
703
+ "properties": {
704
+ "runCount": {
705
+ "type": "number"
706
+ },
707
+ "errorCount": {
708
+ "type": "number"
709
+ },
710
+ "byVersion": {
711
+ "type": "object",
712
+ "patternProperties": {
713
+ ".*": {
714
+ "type": "object",
715
+ "properties": {
716
+ "runCount": {
717
+ "type": "number"
718
+ },
719
+ "errorCount": {
720
+ "type": "number"
721
+ }
722
+ }
723
+ }
724
+ }
725
+ }
726
+ }
673
727
  }
674
728
  }
675
729
  }
@@ -1031,6 +1031,33 @@
1031
1031
  "resultMode",
1032
1032
  "fields"
1033
1033
  ]
1034
+ },
1035
+ "stats": {
1036
+ "type": "object",
1037
+ "properties": {
1038
+ "runCount": {
1039
+ "type": "number"
1040
+ },
1041
+ "errorCount": {
1042
+ "type": "number"
1043
+ },
1044
+ "byVersion": {
1045
+ "type": "object",
1046
+ "patternProperties": {
1047
+ ".*": {
1048
+ "type": "object",
1049
+ "properties": {
1050
+ "runCount": {
1051
+ "type": "number"
1052
+ },
1053
+ "errorCount": {
1054
+ "type": "number"
1055
+ }
1056
+ }
1057
+ }
1058
+ }
1059
+ }
1060
+ }
1034
1061
  }
1035
1062
  }
1036
1063
  },
@@ -1214,6 +1241,33 @@
1214
1241
  "json"
1215
1242
  ]
1216
1243
  }
1244
+ },
1245
+ "stats": {
1246
+ "type": "object",
1247
+ "properties": {
1248
+ "runCount": {
1249
+ "type": "number"
1250
+ },
1251
+ "errorCount": {
1252
+ "type": "number"
1253
+ },
1254
+ "byVersion": {
1255
+ "type": "object",
1256
+ "patternProperties": {
1257
+ ".*": {
1258
+ "type": "object",
1259
+ "properties": {
1260
+ "runCount": {
1261
+ "type": "number"
1262
+ },
1263
+ "errorCount": {
1264
+ "type": "number"
1265
+ }
1266
+ }
1267
+ }
1268
+ }
1269
+ }
1270
+ }
1217
1271
  }
1218
1272
  }
1219
1273
  }
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.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-09 00:00:00.000000000 Z
11
+ date: 2018-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -395,7 +395,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
395
395
  version: '0'
396
396
  requirements: []
397
397
  rubyforge_project:
398
- rubygems_version: 2.6.8
398
+ rubygems_version: 2.7.6
399
399
  signing_key:
400
400
  specification_version: 4
401
401
  summary: Provides a simple ruby wrapper around the Losant REST API