losant_rest 1.16.6 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +2916 -598
  3. data/docs/applicationApiTokens.md +1 -1
  4. data/docs/events.md +1 -1
  5. data/docs/notebook.md +1 -1
  6. data/docs/resourceJob.md +263 -0
  7. data/docs/resourceJobs.md +93 -0
  8. data/lib/losant_rest/application_api_tokens.rb +1 -1
  9. data/lib/losant_rest/client.rb +10 -2
  10. data/lib/losant_rest/events.rb +1 -1
  11. data/lib/losant_rest/notebook.rb +1 -1
  12. data/lib/losant_rest/resource_job.rb +326 -0
  13. data/lib/losant_rest/resource_jobs.rb +138 -0
  14. data/lib/losant_rest/version.rb +1 -1
  15. data/lib/losant_rest.rb +2 -0
  16. data/schemas/apiTokenPost.json +10 -0
  17. data/schemas/applicationCreationByTemplateResult.json +1 -9
  18. data/schemas/applicationExportPost.json +4 -0
  19. data/schemas/applicationTemplate.json +3 -0
  20. data/schemas/applicationTemplates.json +3 -0
  21. data/schemas/auditLog.json +2 -1
  22. data/schemas/auditLogFilter.json +2 -1
  23. data/schemas/auditLogs.json +2 -1
  24. data/schemas/dataTableRowInsertResult.json +2 -1
  25. data/schemas/eventPlusNewCount.json +161 -0
  26. data/schemas/experienceLinkedResources.json +33 -6
  27. data/schemas/flow.json +8 -2
  28. data/schemas/flowPatch.json +8 -2
  29. data/schemas/flowPost.json +8 -2
  30. data/schemas/flowVersion.json +25 -4
  31. data/schemas/flowVersionPost.json +8 -2
  32. data/schemas/flowVersions.json +25 -4
  33. data/schemas/flows.json +8 -2
  34. data/schemas/flowsImportPost.json +16 -4
  35. data/schemas/flowsImportResult.json +33 -6
  36. data/schemas/githubLogin.json +10 -0
  37. data/schemas/historicalSummaries.json +524 -1
  38. data/schemas/historicalSummary.json +22 -0
  39. data/schemas/importIntoApplicationOptions.json +6 -1
  40. data/schemas/importNewApplicationOptions.json +6 -1
  41. data/schemas/instance.json +12 -0
  42. data/schemas/instanceCustomNodePatch.json +8 -2
  43. data/schemas/instanceCustomNodePost.json +8 -2
  44. data/schemas/instanceOrg.json +3 -0
  45. data/schemas/instanceOrgPatch.json +4 -0
  46. data/schemas/instanceOrgPost.json +4 -0
  47. data/schemas/instanceOrgs.json +3 -0
  48. data/schemas/instanceSandbox.json +11 -0
  49. data/schemas/instanceSandboxes.json +433 -1
  50. data/schemas/instances.json +217 -1
  51. data/schemas/me.json +11 -0
  52. data/schemas/notebookExecutionLogs.json +3 -1
  53. data/schemas/org.json +11 -0
  54. data/schemas/orgs.json +11 -0
  55. data/schemas/payloadStats.json +8 -0
  56. data/schemas/resourceJob.json +86 -0
  57. data/schemas/resourceJobExecutionLogs.json +127 -0
  58. data/schemas/resourceJobExecutionOptions.json +11 -0
  59. data/schemas/resourceJobPatch.json +55 -0
  60. data/schemas/resourceJobPost.json +66 -0
  61. data/schemas/resourceJobs.json +131 -0
  62. data/schemas/samlResponse.json +10 -0
  63. data/schemas/userCredentials.json +10 -0
  64. data/schemas/userPost.json +10 -0
  65. data/schemas/validateContextError.json +4 -0
  66. data/schemas/validationErrors.json +1 -9
  67. metadata +13 -2
@@ -88,6 +88,9 @@
88
88
  "notebook": {
89
89
  "type": "integer"
90
90
  },
91
+ "resourcejob": {
92
+ "type": "integer"
93
+ },
91
94
  "webhook": {
92
95
  "type": "integer"
93
96
  },
@@ -90,6 +90,10 @@
90
90
  "type": "integer",
91
91
  "minimum": 0
92
92
  },
93
+ "resourcejob": {
94
+ "type": "integer",
95
+ "minimum": 0
96
+ },
93
97
  "webhook": {
94
98
  "type": "integer",
95
99
  "minimum": 0
@@ -90,6 +90,10 @@
90
90
  "type": "integer",
91
91
  "minimum": 0
92
92
  },
93
+ "resourcejob": {
94
+ "type": "integer",
95
+ "minimum": 0
96
+ },
93
97
  "webhook": {
94
98
  "type": "integer",
95
99
  "minimum": 0
@@ -95,6 +95,9 @@
95
95
  "notebook": {
96
96
  "type": "integer"
97
97
  },
98
+ "resourcejob": {
99
+ "type": "integer"
100
+ },
98
101
  "webhook": {
99
102
  "type": "integer"
100
103
  },
@@ -160,6 +160,9 @@
160
160
  "notebook": {
161
161
  "type": "integer"
162
162
  },
163
+ "resourcejob": {
164
+ "type": "integer"
165
+ },
163
166
  "webhook": {
164
167
  "type": "integer"
165
168
  },
@@ -368,6 +371,14 @@
368
371
  "type": "number"
369
372
  }
370
373
  }
374
+ },
375
+ "resourceJob": {
376
+ "type": "object",
377
+ "patternProperties": {
378
+ ".*": {
379
+ "type": "number"
380
+ }
381
+ }
371
382
  }
372
383
  }
373
384
  },
@@ -5,7 +5,439 @@
5
5
  "items": {
6
6
  "type": "array",
7
7
  "items": {
8
- "type": "#/definitions/instanceSandbox"
8
+ "title": "Instance Sandbox User",
9
+ "description": "Schema for information about a sandbox user within an instance domain",
10
+ "type": "object",
11
+ "properties": {
12
+ "id": {
13
+ "type": "string",
14
+ "pattern": "^[A-Fa-f\\d]{24}$"
15
+ },
16
+ "instanceSandboxId": {
17
+ "type": "string",
18
+ "pattern": "^[A-Fa-f\\d]{24}$"
19
+ },
20
+ "instanceId": {
21
+ "type": "string",
22
+ "pattern": "^[A-Fa-f\\d]{24}$"
23
+ },
24
+ "creationDate": {
25
+ "type": "string",
26
+ "format": "date-time"
27
+ },
28
+ "permanentDeletion": {
29
+ "type": "string",
30
+ "format": "date-time"
31
+ },
32
+ "dataDeletion": {
33
+ "type": "string",
34
+ "format": "date-time"
35
+ },
36
+ "lastUpdated": {
37
+ "type": "string",
38
+ "format": "date-time"
39
+ },
40
+ "lastSuccessfulLogin": {
41
+ "type": "string",
42
+ "format": "date-time"
43
+ },
44
+ "lastFailedLogin": {
45
+ "type": "string",
46
+ "format": "date-time"
47
+ },
48
+ "failedLoginCount": {
49
+ "type": "number"
50
+ },
51
+ "passwordLastUpdated": {
52
+ "type": "string",
53
+ "format": "date-time"
54
+ },
55
+ "email": {
56
+ "type": "string",
57
+ "format": "email",
58
+ "maxLength": 1024
59
+ },
60
+ "firstName": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "maxLength": 1024
64
+ },
65
+ "lastName": {
66
+ "type": "string",
67
+ "maxLength": 1024
68
+ },
69
+ "companyName": {
70
+ "type": "string",
71
+ "maxLength": 1024
72
+ },
73
+ "title": {
74
+ "type": "string",
75
+ "maxLength": 1024
76
+ },
77
+ "phoneNumber": {
78
+ "type": "string",
79
+ "maxLength": 1024
80
+ },
81
+ "location": {
82
+ "type": "string",
83
+ "maxLength": 1024
84
+ },
85
+ "url": {
86
+ "type": "string",
87
+ "maxLength": 1024
88
+ },
89
+ "tokenCutoff": {
90
+ "type": "string",
91
+ "format": "date-time"
92
+ },
93
+ "emailVerified": {
94
+ "type": "boolean"
95
+ },
96
+ "needsToVerifyEmail": {
97
+ "type": "boolean"
98
+ },
99
+ "twoFactorAuthEnabled": {
100
+ "type": "boolean"
101
+ },
102
+ "fullName": {
103
+ "type": "string"
104
+ },
105
+ "githubName": {
106
+ "type": "string"
107
+ },
108
+ "avatarUrl": {
109
+ "type": "string",
110
+ "format": "uri",
111
+ "maxLength": 1024
112
+ },
113
+ "limits": {
114
+ "type": "object",
115
+ "properties": {
116
+ "apitoken": {
117
+ "type": "integer"
118
+ },
119
+ "application": {
120
+ "type": "integer"
121
+ },
122
+ "applicationkey": {
123
+ "type": "integer"
124
+ },
125
+ "dashboard": {
126
+ "type": "integer"
127
+ },
128
+ "datatable": {
129
+ "type": "integer"
130
+ },
131
+ "device": {
132
+ "type": "integer"
133
+ },
134
+ "devicerecipe": {
135
+ "type": "integer"
136
+ },
137
+ "experiencedomain": {
138
+ "type": "integer"
139
+ },
140
+ "experienceendpoint": {
141
+ "type": "integer"
142
+ },
143
+ "experiencegroup": {
144
+ "type": "integer"
145
+ },
146
+ "experienceslug": {
147
+ "type": "integer"
148
+ },
149
+ "experienceuser": {
150
+ "type": "integer"
151
+ },
152
+ "experienceversion": {
153
+ "type": "integer"
154
+ },
155
+ "experienceview": {
156
+ "type": "integer"
157
+ },
158
+ "file": {
159
+ "type": "integer"
160
+ },
161
+ "flow": {
162
+ "type": "integer"
163
+ },
164
+ "integration": {
165
+ "type": "integer"
166
+ },
167
+ "notebook": {
168
+ "type": "integer"
169
+ },
170
+ "resourcejob": {
171
+ "type": "integer"
172
+ },
173
+ "webhook": {
174
+ "type": "integer"
175
+ },
176
+ "dataTTL": {
177
+ "type": "integer"
178
+ },
179
+ "payload": {
180
+ "type": "integer"
181
+ },
182
+ "storage": {
183
+ "type": "integer"
184
+ },
185
+ "notebookMinutesPerRun": {
186
+ "type": "integer"
187
+ },
188
+ "notebookMinutesPerMonth": {
189
+ "type": "integer"
190
+ },
191
+ "notebookInParallel": {
192
+ "type": "integer"
193
+ },
194
+ "experienceFlowSlots": {
195
+ "type": "integer"
196
+ },
197
+ "applicationFlowSlots": {
198
+ "type": "integer"
199
+ }
200
+ },
201
+ "additionalProperties": false
202
+ },
203
+ "summary": {
204
+ "type": "object",
205
+ "properties": {
206
+ "apiTokenCount": {
207
+ "type": "integer"
208
+ },
209
+ "appCount": {
210
+ "type": "integer"
211
+ },
212
+ "dashCount": {
213
+ "type": "integer"
214
+ },
215
+ "dataTableCount": {
216
+ "type": "integer"
217
+ },
218
+ "deviceCount": {
219
+ "type": "integer"
220
+ },
221
+ "deviceRecipeCount": {
222
+ "type": "integer"
223
+ },
224
+ "experienceEndpointCount": {
225
+ "type": "integer"
226
+ },
227
+ "experienceGroupCount": {
228
+ "type": "integer"
229
+ },
230
+ "experienceSlugCount": {
231
+ "type": "integer"
232
+ },
233
+ "experienceUserCount": {
234
+ "type": "integer"
235
+ },
236
+ "experienceVersionCount": {
237
+ "type": "integer"
238
+ },
239
+ "experienceViewCount": {
240
+ "type": "integer"
241
+ },
242
+ "fileCount": {
243
+ "type": "integer"
244
+ },
245
+ "flowCount": {
246
+ "type": "integer"
247
+ },
248
+ "integrationCount": {
249
+ "type": "integer"
250
+ },
251
+ "keyCount": {
252
+ "type": "integer"
253
+ },
254
+ "orgCount": {
255
+ "type": "integer"
256
+ },
257
+ "payloadCount": {
258
+ "title": "Payload Stats",
259
+ "description": "Schema for the result of a payload stats request",
260
+ "type": "object",
261
+ "properties": {
262
+ "dataTable": {
263
+ "type": "object",
264
+ "patternProperties": {
265
+ ".*": {
266
+ "type": "number"
267
+ }
268
+ }
269
+ },
270
+ "deviceCommand": {
271
+ "type": "object",
272
+ "patternProperties": {
273
+ ".*": {
274
+ "type": "number"
275
+ }
276
+ }
277
+ },
278
+ "deviceConnect": {
279
+ "type": "object",
280
+ "patternProperties": {
281
+ ".*": {
282
+ "type": "number"
283
+ }
284
+ }
285
+ },
286
+ "deviceDisconnect": {
287
+ "type": "object",
288
+ "patternProperties": {
289
+ ".*": {
290
+ "type": "number"
291
+ }
292
+ }
293
+ },
294
+ "deviceState": {
295
+ "type": "object",
296
+ "patternProperties": {
297
+ ".*": {
298
+ "type": "number"
299
+ }
300
+ }
301
+ },
302
+ "endpoint": {
303
+ "type": "object",
304
+ "patternProperties": {
305
+ ".*": {
306
+ "type": "number"
307
+ }
308
+ }
309
+ },
310
+ "event": {
311
+ "type": "object",
312
+ "patternProperties": {
313
+ ".*": {
314
+ "type": "number"
315
+ }
316
+ }
317
+ },
318
+ "flowError": {
319
+ "type": "object",
320
+ "patternProperties": {
321
+ ".*": {
322
+ "type": "number"
323
+ }
324
+ }
325
+ },
326
+ "integration": {
327
+ "type": "object",
328
+ "patternProperties": {
329
+ ".*": {
330
+ "type": "number"
331
+ }
332
+ }
333
+ },
334
+ "mqttIn": {
335
+ "type": "object",
336
+ "patternProperties": {
337
+ ".*": {
338
+ "type": "number"
339
+ }
340
+ }
341
+ },
342
+ "mqttOut": {
343
+ "type": "object",
344
+ "patternProperties": {
345
+ ".*": {
346
+ "type": "number"
347
+ }
348
+ }
349
+ },
350
+ "notebook": {
351
+ "type": "object",
352
+ "patternProperties": {
353
+ ".*": {
354
+ "type": "number"
355
+ }
356
+ }
357
+ },
358
+ "timer": {
359
+ "type": "object",
360
+ "patternProperties": {
361
+ ".*": {
362
+ "type": "number"
363
+ }
364
+ }
365
+ },
366
+ "virtualButton": {
367
+ "type": "object",
368
+ "patternProperties": {
369
+ ".*": {
370
+ "type": "number"
371
+ }
372
+ }
373
+ },
374
+ "webhook": {
375
+ "type": "object",
376
+ "patternProperties": {
377
+ ".*": {
378
+ "type": "number"
379
+ }
380
+ }
381
+ },
382
+ "resourceJob": {
383
+ "type": "object",
384
+ "patternProperties": {
385
+ ".*": {
386
+ "type": "number"
387
+ }
388
+ }
389
+ }
390
+ }
391
+ },
392
+ "storageStats": {
393
+ "type": "object",
394
+ "properties": {
395
+ "count": {
396
+ "type": "integer"
397
+ },
398
+ "size": {
399
+ "type": "integer"
400
+ }
401
+ }
402
+ },
403
+ "webhookCount": {
404
+ "type": "integer"
405
+ }
406
+ }
407
+ },
408
+ "currentPeriodStart": {
409
+ "type": "string",
410
+ "format": "date-time"
411
+ },
412
+ "currentPeriodEnd": {
413
+ "type": "string",
414
+ "format": "date-time"
415
+ },
416
+ "ssoLinked": {
417
+ "type": "boolean"
418
+ },
419
+ "orgs": {
420
+ "type": "array",
421
+ "items": {
422
+ "type": "object",
423
+ "properties": {
424
+ "id": {
425
+ "type": "string",
426
+ "pattern": "^[A-Fa-f\\d]{24}$"
427
+ },
428
+ "iconColor": {
429
+ "type": "string",
430
+ "maxLength": 64
431
+ },
432
+ "name": {
433
+ "type": "string",
434
+ "minLength": 1,
435
+ "maxLength": 255
436
+ }
437
+ }
438
+ }
439
+ }
440
+ }
9
441
  }
10
442
  },
11
443
  "count": {