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.
- checksums.yaml +4 -4
- data/docs/_schemas.md +10703 -1558
- data/docs/credential.md +175 -0
- data/docs/credentials.md +93 -0
- data/lib/losant_rest/client.rb +10 -2
- data/lib/losant_rest/credential.rb +224 -0
- data/lib/losant_rest/credentials.rb +138 -0
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest.rb +2 -0
- data/schemas/apiTokenPost.json +8 -0
- data/schemas/application.json +9 -8
- data/schemas/applicationCreationByTemplateResult.json +9 -8
- data/schemas/applicationPatch.json +6 -8
- data/schemas/applicationPost.json +6 -8
- data/schemas/applications.json +9 -8
- data/schemas/credential.json +115 -0
- data/schemas/credentialLinkedResources.json +8254 -0
- data/schemas/credentialPatch.json +66 -0
- data/schemas/credentialPost.json +89 -0
- data/schemas/credentials.json +160 -0
- data/schemas/dashboardPatch.json +10 -3
- data/schemas/dashboardPost.json +10 -3
- data/schemas/device.json +8 -0
- data/schemas/devices.json +8 -0
- data/schemas/experienceGroup.json +8 -0
- data/schemas/experienceGroups.json +8 -0
- data/schemas/experienceLinkedResources.json +6 -3
- data/schemas/flow.json +2 -1
- data/schemas/flowPatch.json +2 -1
- data/schemas/flowPost.json +2 -1
- data/schemas/flowVersion.json +4 -2
- data/schemas/flowVersionPost.json +2 -1
- data/schemas/flowVersions.json +4 -2
- data/schemas/flows.json +2 -1
- data/schemas/flowsImportPost.json +4 -2
- data/schemas/flowsImportResult.json +6 -3
- data/schemas/githubLogin.json +8 -0
- data/schemas/historicalSummaries.json +4 -0
- data/schemas/historicalSummary.json +4 -0
- data/schemas/instance.json +7 -0
- data/schemas/instanceOrg.json +4 -0
- data/schemas/instanceOrgPatch.json +4 -0
- data/schemas/instanceOrgPost.json +4 -0
- data/schemas/instanceOrgs.json +4 -0
- data/schemas/instancePatch.json +4 -0
- data/schemas/instanceSandbox.json +6 -0
- data/schemas/instanceSandboxes.json +6 -0
- data/schemas/instances.json +7 -0
- data/schemas/integration.json +26 -12
- data/schemas/integrationPatch.json +33 -12
- data/schemas/integrationPost.json +26 -12
- data/schemas/integrations.json +26 -12
- data/schemas/me.json +6 -0
- data/schemas/org.json +7 -0
- data/schemas/orgs.json +7 -0
- data/schemas/samlResponse.json +8 -0
- data/schemas/userCredentials.json +8 -0
- data/schemas/userPost.json +8 -0
- metadata +11 -2
data/schemas/instanceOrgs.json
CHANGED
data/schemas/instancePatch.json
CHANGED
@@ -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
|
},
|
data/schemas/instances.json
CHANGED
@@ -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
|
data/schemas/integration.json
CHANGED
@@ -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
|
-
"
|
73
|
-
|
74
|
-
|
75
|
-
|
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
|
-
"
|
53
|
-
|
54
|
-
|
55
|
-
|
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
|
-
"
|
53
|
-
|
54
|
-
|
55
|
-
|
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
|
}
|
data/schemas/integrations.json
CHANGED
@@ -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
|
-
"
|
80
|
-
|
81
|
-
|
82
|
-
|
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
|
},
|
data/schemas/samlResponse.json
CHANGED
@@ -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",
|
data/schemas/userPost.json
CHANGED
@@ -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.
|
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-
|
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
|