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
@@ -0,0 +1,131 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "items": {
6
+ "type": "array",
7
+ "items": {
8
+ "title": "Resource Job",
9
+ "description": "Schema for a single resource job",
10
+ "type": "object",
11
+ "properties": {
12
+ "id": {
13
+ "type": "string",
14
+ "pattern": "^[A-Fa-f\\d]{24}$"
15
+ },
16
+ "resourceJobId": {
17
+ "type": "string",
18
+ "pattern": "^[A-Fa-f\\d]{24}$"
19
+ },
20
+ "name": {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 255
24
+ },
25
+ "description": {
26
+ "type": "string",
27
+ "maxLength": 32767
28
+ },
29
+ "applicationId": {
30
+ "type": "string",
31
+ "pattern": "^[A-Fa-f\\d]{24}$"
32
+ },
33
+ "dataTableId": {
34
+ "oneOf": [
35
+ {
36
+ "type": "string",
37
+ "pattern": "^[A-Fa-f\\d]{24}$"
38
+ },
39
+ {
40
+ "type": "string",
41
+ "minLength": 4,
42
+ "maxLength": 255,
43
+ "pattern": ".*{{.+}}.*"
44
+ }
45
+ ]
46
+ },
47
+ "queryJson": {
48
+ "type": "string",
49
+ "maxLength": 8192
50
+ },
51
+ "resourceType": {
52
+ "type": "string",
53
+ "enum": [
54
+ "dataTableRow",
55
+ "device"
56
+ ]
57
+ },
58
+ "maxIterationConcurrency": {
59
+ "type": "number",
60
+ "enum": [
61
+ 1,
62
+ 10
63
+ ]
64
+ },
65
+ "iterationDelay": {
66
+ "type": "number",
67
+ "min": 0,
68
+ "max": 60000
69
+ },
70
+ "iterationTimeout": {
71
+ "type": "number",
72
+ "min": 60000,
73
+ "max": 900000
74
+ },
75
+ "creationDate": {
76
+ "type": "string",
77
+ "format": "date-time"
78
+ },
79
+ "lastUpdated": {
80
+ "type": "string",
81
+ "format": "date-time"
82
+ },
83
+ "lastExecutionRequested": {
84
+ "type": "string",
85
+ "format": "date-time"
86
+ },
87
+ "defaultContext": {
88
+ "type": "string",
89
+ "maxLength": 32767
90
+ }
91
+ },
92
+ "additionalProperties": false
93
+ }
94
+ },
95
+ "count": {
96
+ "type": "integer"
97
+ },
98
+ "totalCount": {
99
+ "type": "integer"
100
+ },
101
+ "perPage": {
102
+ "type": "integer"
103
+ },
104
+ "page": {
105
+ "type": "integer"
106
+ },
107
+ "filter": {
108
+ "type": "string"
109
+ },
110
+ "filterField": {
111
+ "type": "string"
112
+ },
113
+ "sortField": {
114
+ "type": "string"
115
+ },
116
+ "sortDirection": {
117
+ "type": "string",
118
+ "enum": [
119
+ "asc",
120
+ "desc",
121
+ "ASC",
122
+ "DESC",
123
+ ""
124
+ ]
125
+ },
126
+ "applicationId": {
127
+ "type": "string",
128
+ "pattern": "^[A-Fa-f\\d]{24}$"
129
+ }
130
+ }
131
+ }
@@ -76,6 +76,8 @@
76
76
  "flows.*",
77
77
  "flowVersion.*",
78
78
  "flowVersions.*",
79
+ "resourceJobs.*",
80
+ "resourceJob.*",
79
81
  "notebook.*",
80
82
  "notebooks.*",
81
83
  "webhook.*",
@@ -288,6 +290,14 @@
288
290
  "notebook.upload",
289
291
  "notebooks.get",
290
292
  "notebooks.post",
293
+ "resourceJob.get",
294
+ "resourceJob.logs",
295
+ "resourceJob.patch",
296
+ "resourceJob.delete",
297
+ "resourceJob.execute",
298
+ "resourceJob.cancelExecution",
299
+ "resourceJobs.get",
300
+ "resourceJobs.post",
291
301
  "webhook.delete",
292
302
  "webhook.get",
293
303
  "webhook.patch",
@@ -80,6 +80,8 @@
80
80
  "flows.*",
81
81
  "flowVersion.*",
82
82
  "flowVersions.*",
83
+ "resourceJobs.*",
84
+ "resourceJob.*",
83
85
  "notebook.*",
84
86
  "notebooks.*",
85
87
  "webhook.*",
@@ -292,6 +294,14 @@
292
294
  "notebook.upload",
293
295
  "notebooks.get",
294
296
  "notebooks.post",
297
+ "resourceJob.get",
298
+ "resourceJob.logs",
299
+ "resourceJob.patch",
300
+ "resourceJob.delete",
301
+ "resourceJob.execute",
302
+ "resourceJob.cancelExecution",
303
+ "resourceJobs.get",
304
+ "resourceJobs.post",
295
305
  "webhook.delete",
296
306
  "webhook.get",
297
307
  "webhook.patch",
@@ -138,6 +138,8 @@
138
138
  "flows.*",
139
139
  "flowVersion.*",
140
140
  "flowVersions.*",
141
+ "resourceJobs.*",
142
+ "resourceJob.*",
141
143
  "notebook.*",
142
144
  "notebooks.*",
143
145
  "webhook.*",
@@ -350,6 +352,14 @@
350
352
  "notebook.upload",
351
353
  "notebooks.get",
352
354
  "notebooks.post",
355
+ "resourceJob.get",
356
+ "resourceJob.logs",
357
+ "resourceJob.patch",
358
+ "resourceJob.delete",
359
+ "resourceJob.execute",
360
+ "resourceJob.cancelExecution",
361
+ "resourceJobs.get",
362
+ "resourceJobs.post",
353
363
  "webhook.delete",
354
364
  "webhook.get",
355
365
  "webhook.patch",
@@ -8,6 +8,10 @@
8
8
  "message": {
9
9
  "type": "string"
10
10
  },
11
+ "invalidCtxName": {
12
+ "type": "string",
13
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
14
+ },
11
15
  "ctx": {
12
16
  "type": "object",
13
17
  "patternProperties": {
@@ -20,15 +20,7 @@
20
20
  "type": "string"
21
21
  },
22
22
  "id": {
23
- "oneOf": [
24
- {
25
- "type": "string",
26
- "pattern": "^[A-Fa-f\\d]{24}$"
27
- },
28
- {
29
- "type": "string"
30
- }
31
- ]
23
+ "type": "string"
32
24
  },
33
25
  "message": {
34
26
  "type": "string"
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.16.6
4
+ version: 1.17.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: 2022-10-12 00:00:00.000000000 Z
11
+ date: 2022-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -161,6 +161,8 @@ files:
161
161
  - docs/org.md
162
162
  - docs/orgInvites.md
163
163
  - docs/orgs.md
164
+ - docs/resourceJob.md
165
+ - docs/resourceJobs.md
164
166
  - docs/userApiToken.md
165
167
  - docs/userApiTokens.md
166
168
  - docs/webhook.md
@@ -249,6 +251,8 @@ files:
249
251
  - lib/losant_rest/org.rb
250
252
  - lib/losant_rest/org_invites.rb
251
253
  - lib/losant_rest/orgs.rb
254
+ - lib/losant_rest/resource_job.rb
255
+ - lib/losant_rest/resource_jobs.rb
252
256
  - lib/losant_rest/user_api_token.rb
253
257
  - lib/losant_rest/user_api_tokens.rb
254
258
  - lib/losant_rest/utils.rb
@@ -380,6 +384,7 @@ files:
380
384
  - schemas/error.json
381
385
  - schemas/event.json
382
386
  - schemas/eventPatch.json
387
+ - schemas/eventPlusNewCount.json
383
388
  - schemas/eventPost.json
384
389
  - schemas/eventTagsSummary.json
385
390
  - schemas/events.json
@@ -506,6 +511,12 @@ files:
506
511
  - schemas/payloadStats.json
507
512
  - schemas/recentItem.json
508
513
  - schemas/recentItemList.json
514
+ - schemas/resourceJob.json
515
+ - schemas/resourceJobExecutionLogs.json
516
+ - schemas/resourceJobExecutionOptions.json
517
+ - schemas/resourceJobPatch.json
518
+ - schemas/resourceJobPost.json
519
+ - schemas/resourceJobs.json
509
520
  - schemas/resourceTransfer.json
510
521
  - schemas/samlResponse.json
511
522
  - schemas/ssoRequest.json