losant_rest 1.18.0 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +10703 -1558
  3. data/docs/credential.md +175 -0
  4. data/docs/credentials.md +93 -0
  5. data/lib/losant_rest/client.rb +10 -2
  6. data/lib/losant_rest/credential.rb +224 -0
  7. data/lib/losant_rest/credentials.rb +138 -0
  8. data/lib/losant_rest/version.rb +1 -1
  9. data/lib/losant_rest.rb +2 -0
  10. data/schemas/apiTokenPost.json +8 -0
  11. data/schemas/application.json +9 -8
  12. data/schemas/applicationCreationByTemplateResult.json +9 -8
  13. data/schemas/applicationPatch.json +6 -8
  14. data/schemas/applicationPost.json +6 -8
  15. data/schemas/applications.json +9 -8
  16. data/schemas/credential.json +115 -0
  17. data/schemas/credentialLinkedResources.json +8254 -0
  18. data/schemas/credentialPatch.json +66 -0
  19. data/schemas/credentialPost.json +89 -0
  20. data/schemas/credentials.json +160 -0
  21. data/schemas/dashboardPatch.json +10 -3
  22. data/schemas/dashboardPost.json +10 -3
  23. data/schemas/device.json +8 -0
  24. data/schemas/devices.json +8 -0
  25. data/schemas/experienceGroup.json +8 -0
  26. data/schemas/experienceGroups.json +8 -0
  27. data/schemas/experienceLinkedResources.json +6 -3
  28. data/schemas/flow.json +2 -1
  29. data/schemas/flowPatch.json +2 -1
  30. data/schemas/flowPost.json +2 -1
  31. data/schemas/flowVersion.json +4 -2
  32. data/schemas/flowVersionPost.json +2 -1
  33. data/schemas/flowVersions.json +4 -2
  34. data/schemas/flows.json +2 -1
  35. data/schemas/flowsImportPost.json +4 -2
  36. data/schemas/flowsImportResult.json +6 -3
  37. data/schemas/githubLogin.json +8 -0
  38. data/schemas/historicalSummaries.json +4 -0
  39. data/schemas/historicalSummary.json +4 -0
  40. data/schemas/instance.json +7 -0
  41. data/schemas/instanceOrg.json +4 -0
  42. data/schemas/instanceOrgPatch.json +4 -0
  43. data/schemas/instanceOrgPost.json +4 -0
  44. data/schemas/instanceOrgs.json +4 -0
  45. data/schemas/instancePatch.json +4 -0
  46. data/schemas/instanceSandbox.json +6 -0
  47. data/schemas/instanceSandboxes.json +6 -0
  48. data/schemas/instances.json +7 -0
  49. data/schemas/integration.json +26 -12
  50. data/schemas/integrationPatch.json +33 -12
  51. data/schemas/integrationPost.json +26 -12
  52. data/schemas/integrations.json +26 -12
  53. data/schemas/me.json +6 -0
  54. data/schemas/org.json +7 -0
  55. data/schemas/orgs.json +7 -0
  56. data/schemas/samlResponse.json +8 -0
  57. data/schemas/userCredentials.json +8 -0
  58. data/schemas/userPost.json +8 -0
  59. metadata +11 -2
@@ -30,6 +30,10 @@
30
30
  "type": "integer",
31
31
  "minimum": 0
32
32
  },
33
+ "credential": {
34
+ "type": "integer",
35
+ "minimum": 0
36
+ },
33
37
  "dashboard": {
34
38
  "type": "integer",
35
39
  "minimum": 0
@@ -30,6 +30,10 @@
30
30
  "type": "integer",
31
31
  "minimum": 0
32
32
  },
33
+ "credential": {
34
+ "type": "integer",
35
+ "minimum": 0
36
+ },
33
37
  "dashboard": {
34
38
  "type": "integer",
35
39
  "minimum": 0
@@ -53,6 +53,10 @@
53
53
  "type": "integer",
54
54
  "minimum": 0
55
55
  },
56
+ "credential": {
57
+ "type": "integer",
58
+ "minimum": 0
59
+ },
56
60
  "dashboard": {
57
61
  "type": "integer",
58
62
  "minimum": 0
@@ -78,6 +78,10 @@
78
78
  "type": "integer",
79
79
  "minimum": 0
80
80
  },
81
+ "credential": {
82
+ "type": "integer",
83
+ "minimum": 0
84
+ },
81
85
  "dashboard": {
82
86
  "type": "integer",
83
87
  "minimum": 0
@@ -115,6 +115,9 @@
115
115
  "applicationkey": {
116
116
  "type": "integer"
117
117
  },
118
+ "credential": {
119
+ "type": "integer"
120
+ },
118
121
  "dashboard": {
119
122
  "type": "integer"
120
123
  },
@@ -202,6 +205,9 @@
202
205
  "appCount": {
203
206
  "type": "integer"
204
207
  },
208
+ "credentialCount": {
209
+ "type": "integer"
210
+ },
205
211
  "dashCount": {
206
212
  "type": "integer"
207
213
  },
@@ -122,6 +122,9 @@
122
122
  "applicationkey": {
123
123
  "type": "integer"
124
124
  },
125
+ "credential": {
126
+ "type": "integer"
127
+ },
125
128
  "dashboard": {
126
129
  "type": "integer"
127
130
  },
@@ -209,6 +212,9 @@
209
212
  "appCount": {
210
213
  "type": "integer"
211
214
  },
215
+ "credentialCount": {
216
+ "type": "integer"
217
+ },
212
218
  "dashCount": {
213
219
  "type": "integer"
214
220
  },
@@ -115,6 +115,9 @@
115
115
  "applicationkey": {
116
116
  "type": "integer"
117
117
  },
118
+ "credential": {
119
+ "type": "integer"
120
+ },
118
121
  "dashboard": {
119
122
  "type": "integer"
120
123
  },
@@ -214,6 +217,10 @@
214
217
  "type": "integer",
215
218
  "minimum": 0
216
219
  },
220
+ "credential": {
221
+ "type": "integer",
222
+ "minimum": 0
223
+ },
217
224
  "dashboard": {
218
225
  "type": "integer",
219
226
  "minimum": 0
@@ -27,6 +27,11 @@
27
27
  "minLength": 1,
28
28
  "maxLength": 255
29
29
  },
30
+ "credentialName": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "maxLength": 255
34
+ },
30
35
  "integrationType": {
31
36
  "type": "string",
32
37
  "enum": [
@@ -57,6 +62,11 @@
57
62
  "maxLength": 256,
58
63
  "minLength": 1
59
64
  },
65
+ "hostName": {
66
+ "type": "string",
67
+ "maxLength": 256,
68
+ "minLength": 1
69
+ },
60
70
  "consumerGroup": {
61
71
  "type": "string",
62
72
  "maxLength": 256,
@@ -69,10 +79,21 @@
69
79
  }
70
80
  },
71
81
  "additionalProperties": false,
72
- "required": [
73
- "hubName",
74
- "consumerGroup",
75
- "connectionString"
82
+ "oneOf": [
83
+ {
84
+ "required": [
85
+ "hubName",
86
+ "consumerGroup",
87
+ "connectionString"
88
+ ]
89
+ },
90
+ {
91
+ "required": [
92
+ "hubName",
93
+ "consumerGroup",
94
+ "hostName"
95
+ ]
96
+ }
76
97
  ]
77
98
  },
78
99
  "googlePubSubConfig": {
@@ -89,11 +110,7 @@
89
110
  "minLength": 4
90
111
  }
91
112
  },
92
- "additionalProperties": false,
93
- "required": [
94
- "projectId",
95
- "keyJson"
96
- ]
113
+ "additionalProperties": false
97
114
  },
98
115
  "mqttConfig": {
99
116
  "type": "object",
@@ -216,9 +233,6 @@
216
233
  },
217
234
  "additionalProperties": false,
218
235
  "required": [
219
- "accessKeyId",
220
- "secretAccessKey",
221
- "region",
222
236
  "queueUrl"
223
237
  ]
224
238
  },
@@ -29,6 +29,18 @@
29
29
  },
30
30
  "uniqueItems": true
31
31
  },
32
+ "credentialName": {
33
+ "oneOf": [
34
+ {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "maxLength": 255
38
+ },
39
+ {
40
+ "type": "null"
41
+ }
42
+ ]
43
+ },
32
44
  "azureEventHubConfig": {
33
45
  "type": "object",
34
46
  "properties": {
@@ -37,6 +49,11 @@
37
49
  "maxLength": 256,
38
50
  "minLength": 1
39
51
  },
52
+ "hostName": {
53
+ "type": "string",
54
+ "maxLength": 256,
55
+ "minLength": 1
56
+ },
40
57
  "consumerGroup": {
41
58
  "type": "string",
42
59
  "maxLength": 256,
@@ -49,10 +66,21 @@
49
66
  }
50
67
  },
51
68
  "additionalProperties": false,
52
- "required": [
53
- "hubName",
54
- "consumerGroup",
55
- "connectionString"
69
+ "oneOf": [
70
+ {
71
+ "required": [
72
+ "hubName",
73
+ "consumerGroup",
74
+ "connectionString"
75
+ ]
76
+ },
77
+ {
78
+ "required": [
79
+ "hubName",
80
+ "consumerGroup",
81
+ "hostName"
82
+ ]
83
+ }
56
84
  ]
57
85
  },
58
86
  "googlePubSubConfig": {
@@ -69,11 +97,7 @@
69
97
  "minLength": 4
70
98
  }
71
99
  },
72
- "additionalProperties": false,
73
- "required": [
74
- "projectId",
75
- "keyJson"
76
- ]
100
+ "additionalProperties": false
77
101
  },
78
102
  "mqttConfig": {
79
103
  "type": "object",
@@ -196,9 +220,6 @@
196
220
  },
197
221
  "additionalProperties": false,
198
222
  "required": [
199
- "accessKeyId",
200
- "secretAccessKey",
201
- "region",
202
223
  "queueUrl"
203
224
  ]
204
225
  }
@@ -20,6 +20,11 @@
20
20
  "enabled": {
21
21
  "type": "boolean"
22
22
  },
23
+ "credentialName": {
24
+ "type": "string",
25
+ "minLength": 1,
26
+ "maxLength": 255
27
+ },
23
28
  "topics": {
24
29
  "type": "array",
25
30
  "items": {
@@ -37,6 +42,11 @@
37
42
  "maxLength": 256,
38
43
  "minLength": 1
39
44
  },
45
+ "hostName": {
46
+ "type": "string",
47
+ "maxLength": 256,
48
+ "minLength": 1
49
+ },
40
50
  "consumerGroup": {
41
51
  "type": "string",
42
52
  "maxLength": 256,
@@ -49,10 +59,21 @@
49
59
  }
50
60
  },
51
61
  "additionalProperties": false,
52
- "required": [
53
- "hubName",
54
- "consumerGroup",
55
- "connectionString"
62
+ "oneOf": [
63
+ {
64
+ "required": [
65
+ "hubName",
66
+ "consumerGroup",
67
+ "connectionString"
68
+ ]
69
+ },
70
+ {
71
+ "required": [
72
+ "hubName",
73
+ "consumerGroup",
74
+ "hostName"
75
+ ]
76
+ }
56
77
  ]
57
78
  },
58
79
  "googlePubSubConfig": {
@@ -69,11 +90,7 @@
69
90
  "minLength": 4
70
91
  }
71
92
  },
72
- "additionalProperties": false,
73
- "required": [
74
- "projectId",
75
- "keyJson"
76
- ]
93
+ "additionalProperties": false
77
94
  },
78
95
  "mqttConfig": {
79
96
  "type": "object",
@@ -196,9 +213,6 @@
196
213
  },
197
214
  "additionalProperties": false,
198
215
  "required": [
199
- "accessKeyId",
200
- "secretAccessKey",
201
- "region",
202
216
  "queueUrl"
203
217
  ]
204
218
  }
@@ -34,6 +34,11 @@
34
34
  "minLength": 1,
35
35
  "maxLength": 255
36
36
  },
37
+ "credentialName": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "maxLength": 255
41
+ },
37
42
  "integrationType": {
38
43
  "type": "string",
39
44
  "enum": [
@@ -64,6 +69,11 @@
64
69
  "maxLength": 256,
65
70
  "minLength": 1
66
71
  },
72
+ "hostName": {
73
+ "type": "string",
74
+ "maxLength": 256,
75
+ "minLength": 1
76
+ },
67
77
  "consumerGroup": {
68
78
  "type": "string",
69
79
  "maxLength": 256,
@@ -76,10 +86,21 @@
76
86
  }
77
87
  },
78
88
  "additionalProperties": false,
79
- "required": [
80
- "hubName",
81
- "consumerGroup",
82
- "connectionString"
89
+ "oneOf": [
90
+ {
91
+ "required": [
92
+ "hubName",
93
+ "consumerGroup",
94
+ "connectionString"
95
+ ]
96
+ },
97
+ {
98
+ "required": [
99
+ "hubName",
100
+ "consumerGroup",
101
+ "hostName"
102
+ ]
103
+ }
83
104
  ]
84
105
  },
85
106
  "googlePubSubConfig": {
@@ -96,11 +117,7 @@
96
117
  "minLength": 4
97
118
  }
98
119
  },
99
- "additionalProperties": false,
100
- "required": [
101
- "projectId",
102
- "keyJson"
103
- ]
120
+ "additionalProperties": false
104
121
  },
105
122
  "mqttConfig": {
106
123
  "type": "object",
@@ -223,9 +240,6 @@
223
240
  },
224
241
  "additionalProperties": false,
225
242
  "required": [
226
- "accessKeyId",
227
- "secretAccessKey",
228
- "region",
229
243
  "queueUrl"
230
244
  ]
231
245
  },
data/schemas/me.json CHANGED
@@ -92,6 +92,9 @@
92
92
  "applicationkey": {
93
93
  "type": "integer"
94
94
  },
95
+ "credential": {
96
+ "type": "integer"
97
+ },
95
98
  "dashboard": {
96
99
  "type": "integer"
97
100
  },
@@ -293,6 +296,9 @@
293
296
  "appCount": {
294
297
  "type": "integer"
295
298
  },
299
+ "credentialCount": {
300
+ "type": "integer"
301
+ },
296
302
  "dashCount": {
297
303
  "type": "integer"
298
304
  },
data/schemas/org.json CHANGED
@@ -141,6 +141,10 @@
141
141
  "type": "integer",
142
142
  "minimum": 0
143
143
  },
144
+ "credential": {
145
+ "type": "integer",
146
+ "minimum": 0
147
+ },
144
148
  "dashboard": {
145
149
  "type": "integer",
146
150
  "minimum": 0
@@ -257,6 +261,9 @@
257
261
  "appCount": {
258
262
  "type": "integer"
259
263
  },
264
+ "credentialCount": {
265
+ "type": "integer"
266
+ },
260
267
  "dashCount": {
261
268
  "type": "integer"
262
269
  },
data/schemas/orgs.json CHANGED
@@ -148,6 +148,10 @@
148
148
  "type": "integer",
149
149
  "minimum": 0
150
150
  },
151
+ "credential": {
152
+ "type": "integer",
153
+ "minimum": 0
154
+ },
151
155
  "dashboard": {
152
156
  "type": "integer",
153
157
  "minimum": 0
@@ -264,6 +268,9 @@
264
268
  "appCount": {
265
269
  "type": "integer"
266
270
  },
271
+ "credentialCount": {
272
+ "type": "integer"
273
+ },
267
274
  "dashCount": {
268
275
  "type": "integer"
269
276
  },
@@ -38,6 +38,8 @@
38
38
  "applicationDashboard.*",
39
39
  "applicationKey.*",
40
40
  "applicationKeys.*",
41
+ "credential.*",
42
+ "credentials.*",
41
43
  "data.*",
42
44
  "dataTable.*",
43
45
  "dataTables.*",
@@ -127,6 +129,12 @@
127
129
  "applicationKey.patch",
128
130
  "applicationKeys.get",
129
131
  "applicationKeys.post",
132
+ "credential.get",
133
+ "credential.linkedResources",
134
+ "credential.patch",
135
+ "credential.delete",
136
+ "credentials.get",
137
+ "credentials.post",
130
138
  "data.export",
131
139
  "data.lastValueQuery",
132
140
  "data.timeSeriesQuery",
@@ -42,6 +42,8 @@
42
42
  "applicationDashboard.*",
43
43
  "applicationKey.*",
44
44
  "applicationKeys.*",
45
+ "credential.*",
46
+ "credentials.*",
45
47
  "data.*",
46
48
  "dataTable.*",
47
49
  "dataTables.*",
@@ -131,6 +133,12 @@
131
133
  "applicationKey.patch",
132
134
  "applicationKeys.get",
133
135
  "applicationKeys.post",
136
+ "credential.get",
137
+ "credential.linkedResources",
138
+ "credential.patch",
139
+ "credential.delete",
140
+ "credentials.get",
141
+ "credentials.post",
134
142
  "data.export",
135
143
  "data.lastValueQuery",
136
144
  "data.timeSeriesQuery",
@@ -100,6 +100,8 @@
100
100
  "applicationDashboard.*",
101
101
  "applicationKey.*",
102
102
  "applicationKeys.*",
103
+ "credential.*",
104
+ "credentials.*",
103
105
  "data.*",
104
106
  "dataTable.*",
105
107
  "dataTables.*",
@@ -189,6 +191,12 @@
189
191
  "applicationKey.patch",
190
192
  "applicationKeys.get",
191
193
  "applicationKeys.post",
194
+ "credential.get",
195
+ "credential.linkedResources",
196
+ "credential.patch",
197
+ "credential.delete",
198
+ "credentials.get",
199
+ "credentials.post",
192
200
  "data.export",
193
201
  "data.lastValueQuery",
194
202
  "data.timeSeriesQuery",
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.18.0
4
+ version: 1.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-27 00:00:00.000000000 Z
11
+ date: 2023-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -99,6 +99,8 @@ files:
99
99
  - docs/auditLog.md
100
100
  - docs/auditLogs.md
101
101
  - docs/auth.md
102
+ - docs/credential.md
103
+ - docs/credentials.md
102
104
  - docs/dashboard.md
103
105
  - docs/dashboards.md
104
106
  - docs/data.md
@@ -188,6 +190,8 @@ files:
188
190
  - lib/losant_rest/audit_logs.rb
189
191
  - lib/losant_rest/auth.rb
190
192
  - lib/losant_rest/client.rb
193
+ - lib/losant_rest/credential.rb
194
+ - lib/losant_rest/credentials.rb
191
195
  - lib/losant_rest/dashboard.rb
192
196
  - lib/losant_rest/dashboards.rb
193
197
  - lib/losant_rest/data.rb
@@ -316,6 +320,11 @@ files:
316
320
  - schemas/changePassword.json
317
321
  - schemas/compositeDeviceState.json
318
322
  - schemas/compositeDevicesState.json
323
+ - schemas/credential.json
324
+ - schemas/credentialLinkedResources.json
325
+ - schemas/credentialPatch.json
326
+ - schemas/credentialPost.json
327
+ - schemas/credentials.json
319
328
  - schemas/dashboard.json
320
329
  - schemas/dashboardContextInstance.json
321
330
  - schemas/dashboardPatch.json