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
@@ -41,6 +41,8 @@
41
41
  "applicationDashboard.*",
42
42
  "applicationKey.*",
43
43
  "applicationKeys.*",
44
+ "credential.*",
45
+ "credentials.*",
44
46
  "data.*",
45
47
  "dataTable.*",
46
48
  "dataTables.*",
@@ -130,6 +132,12 @@
130
132
  "applicationKey.patch",
131
133
  "applicationKeys.get",
132
134
  "applicationKeys.post",
135
+ "credential.get",
136
+ "credential.linkedResources",
137
+ "credential.patch",
138
+ "credential.delete",
139
+ "credentials.get",
140
+ "credentials.post",
133
141
  "data.export",
134
142
  "data.lastValueQuery",
135
143
  "data.timeSeriesQuery",
@@ -110,6 +110,9 @@
110
110
  "apiTokenCount": {
111
111
  "type": "integer"
112
112
  },
113
+ "credentialCount": {
114
+ "type": "integer"
115
+ },
113
116
  "dataTableCount": {
114
117
  "type": "integer"
115
118
  },
@@ -293,13 +296,15 @@
293
296
  }
294
297
  },
295
298
  "required": [
296
- "bucket",
297
- "accessKeyId",
298
- "secretAccessKey",
299
- "region"
299
+ "bucket"
300
300
  ],
301
301
  "additionalProperties": false
302
302
  },
303
+ "credentialName": {
304
+ "type": "string",
305
+ "minLength": 1,
306
+ "maxLength": 255
307
+ },
303
308
  "gcs": {
304
309
  "type": "object",
305
310
  "properties": {
@@ -319,8 +324,6 @@
319
324
  }
320
325
  },
321
326
  "required": [
322
- "projectId",
323
- "keyJson",
324
327
  "bucket"
325
328
  ],
326
329
  "additionalProperties": false
@@ -344,8 +347,6 @@
344
347
  }
345
348
  },
346
349
  "required": [
347
- "account",
348
- "accountKey",
349
350
  "bucket"
350
351
  ],
351
352
  "additionalProperties": false
@@ -115,6 +115,9 @@
115
115
  "apiTokenCount": {
116
116
  "type": "integer"
117
117
  },
118
+ "credentialCount": {
119
+ "type": "integer"
120
+ },
118
121
  "dataTableCount": {
119
122
  "type": "integer"
120
123
  },
@@ -298,13 +301,15 @@
298
301
  }
299
302
  },
300
303
  "required": [
301
- "bucket",
302
- "accessKeyId",
303
- "secretAccessKey",
304
- "region"
304
+ "bucket"
305
305
  ],
306
306
  "additionalProperties": false
307
307
  },
308
+ "credentialName": {
309
+ "type": "string",
310
+ "minLength": 1,
311
+ "maxLength": 255
312
+ },
308
313
  "gcs": {
309
314
  "type": "object",
310
315
  "properties": {
@@ -324,8 +329,6 @@
324
329
  }
325
330
  },
326
331
  "required": [
327
- "projectId",
328
- "keyJson",
329
332
  "bucket"
330
333
  ],
331
334
  "additionalProperties": false
@@ -349,8 +352,6 @@
349
352
  }
350
353
  },
351
354
  "required": [
352
- "account",
353
- "accountKey",
354
355
  "bucket"
355
356
  ],
356
357
  "additionalProperties": false
@@ -177,13 +177,15 @@
177
177
  }
178
178
  },
179
179
  "required": [
180
- "bucket",
181
- "accessKeyId",
182
- "secretAccessKey",
183
- "region"
180
+ "bucket"
184
181
  ],
185
182
  "additionalProperties": false
186
183
  },
184
+ "credentialName": {
185
+ "type": "string",
186
+ "minLength": 1,
187
+ "maxLength": 255
188
+ },
187
189
  "gcs": {
188
190
  "type": "object",
189
191
  "properties": {
@@ -203,8 +205,6 @@
203
205
  }
204
206
  },
205
207
  "required": [
206
- "projectId",
207
- "keyJson",
208
208
  "bucket"
209
209
  ],
210
210
  "additionalProperties": false
@@ -228,8 +228,6 @@
228
228
  }
229
229
  },
230
230
  "required": [
231
- "account",
232
- "accountKey",
233
231
  "bucket"
234
232
  ],
235
233
  "additionalProperties": false
@@ -164,13 +164,15 @@
164
164
  }
165
165
  },
166
166
  "required": [
167
- "bucket",
168
- "accessKeyId",
169
- "secretAccessKey",
170
- "region"
167
+ "bucket"
171
168
  ],
172
169
  "additionalProperties": false
173
170
  },
171
+ "credentialName": {
172
+ "type": "string",
173
+ "minLength": 1,
174
+ "maxLength": 255
175
+ },
174
176
  "gcs": {
175
177
  "type": "object",
176
178
  "properties": {
@@ -190,8 +192,6 @@
190
192
  }
191
193
  },
192
194
  "required": [
193
- "projectId",
194
- "keyJson",
195
195
  "bucket"
196
196
  ],
197
197
  "additionalProperties": false
@@ -215,8 +215,6 @@
215
215
  }
216
216
  },
217
217
  "required": [
218
- "account",
219
- "accountKey",
220
218
  "bucket"
221
219
  ],
222
220
  "additionalProperties": false
@@ -117,6 +117,9 @@
117
117
  "apiTokenCount": {
118
118
  "type": "integer"
119
119
  },
120
+ "credentialCount": {
121
+ "type": "integer"
122
+ },
120
123
  "dataTableCount": {
121
124
  "type": "integer"
122
125
  },
@@ -300,13 +303,15 @@
300
303
  }
301
304
  },
302
305
  "required": [
303
- "bucket",
304
- "accessKeyId",
305
- "secretAccessKey",
306
- "region"
306
+ "bucket"
307
307
  ],
308
308
  "additionalProperties": false
309
309
  },
310
+ "credentialName": {
311
+ "type": "string",
312
+ "minLength": 1,
313
+ "maxLength": 255
314
+ },
310
315
  "gcs": {
311
316
  "type": "object",
312
317
  "properties": {
@@ -326,8 +331,6 @@
326
331
  }
327
332
  },
328
333
  "required": [
329
- "projectId",
330
- "keyJson",
331
334
  "bucket"
332
335
  ],
333
336
  "additionalProperties": false
@@ -351,8 +354,6 @@
351
354
  }
352
355
  },
353
356
  "required": [
354
- "account",
355
- "accountKey",
356
357
  "bucket"
357
358
  ],
358
359
  "additionalProperties": false
@@ -0,0 +1,115 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "pattern": "^[A-Fa-f\\d]{24}$"
8
+ },
9
+ "applicationId": {
10
+ "type": "string",
11
+ "pattern": "^[A-Fa-f\\d]{24}$"
12
+ },
13
+ "creationDate": {
14
+ "type": "string",
15
+ "format": "date-time"
16
+ },
17
+ "lastUpdated": {
18
+ "type": "string",
19
+ "format": "date-time"
20
+ },
21
+ "createdById": {
22
+ "type": "string",
23
+ "pattern": "^[A-Fa-f\\d]{24}$"
24
+ },
25
+ "createdByType": {
26
+ "type": "string",
27
+ "enum": [
28
+ "flow",
29
+ "user",
30
+ "apiToken"
31
+ ]
32
+ },
33
+ "lastUpdatedById": {
34
+ "type": "string",
35
+ "pattern": "^[A-Fa-f\\d]{24}$"
36
+ },
37
+ "lastUpdatedByType": {
38
+ "type": "string",
39
+ "enum": [
40
+ "flow",
41
+ "user",
42
+ "apiToken"
43
+ ]
44
+ },
45
+ "name": {
46
+ "type": "string",
47
+ "minLength": 1,
48
+ "maxLength": 255
49
+ },
50
+ "description": {
51
+ "type": "string",
52
+ "maxLength": 32767
53
+ },
54
+ "enabled": {
55
+ "type": "boolean"
56
+ },
57
+ "type": {
58
+ "type": "string",
59
+ "enum": [
60
+ "aws",
61
+ "azure",
62
+ "gcp"
63
+ ]
64
+ },
65
+ "awsConfig": {
66
+ "type": "object",
67
+ "properties": {
68
+ "accessKeyId": {
69
+ "type": "string",
70
+ "minLength": 16,
71
+ "maxLength": 128
72
+ },
73
+ "region": {
74
+ "type": "string",
75
+ "minLength": 1,
76
+ "maxLength": 128
77
+ }
78
+ },
79
+ "additionalProperties": false,
80
+ "required": [
81
+ "accessKeyId",
82
+ "region"
83
+ ]
84
+ },
85
+ "azureConfig": {
86
+ "type": "object",
87
+ "properties": {
88
+ "account": {
89
+ "type": "string",
90
+ "maxLength": 128
91
+ }
92
+ },
93
+ "additionalProperties": false
94
+ },
95
+ "gcpConfig": {
96
+ "type": "object",
97
+ "properties": {
98
+ "keyMetaJson": {
99
+ "type": "string",
100
+ "minLength": 1,
101
+ "maxLength": 8192
102
+ }
103
+ },
104
+ "additionalProperties": false,
105
+ "required": [
106
+ "keyMetaJson"
107
+ ]
108
+ }
109
+ },
110
+ "additionalProperties": false,
111
+ "required": [
112
+ "name",
113
+ "type"
114
+ ]
115
+ }