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.
- checksums.yaml +4 -4
- data/docs/_schemas.md +2916 -598
- data/docs/applicationApiTokens.md +1 -1
- data/docs/events.md +1 -1
- data/docs/notebook.md +1 -1
- data/docs/resourceJob.md +263 -0
- data/docs/resourceJobs.md +93 -0
- data/lib/losant_rest/application_api_tokens.rb +1 -1
- data/lib/losant_rest/client.rb +10 -2
- data/lib/losant_rest/events.rb +1 -1
- data/lib/losant_rest/notebook.rb +1 -1
- data/lib/losant_rest/resource_job.rb +326 -0
- data/lib/losant_rest/resource_jobs.rb +138 -0
- data/lib/losant_rest/version.rb +1 -1
- data/lib/losant_rest.rb +2 -0
- data/schemas/apiTokenPost.json +10 -0
- data/schemas/applicationCreationByTemplateResult.json +1 -9
- data/schemas/applicationExportPost.json +4 -0
- data/schemas/applicationTemplate.json +3 -0
- data/schemas/applicationTemplates.json +3 -0
- data/schemas/auditLog.json +2 -1
- data/schemas/auditLogFilter.json +2 -1
- data/schemas/auditLogs.json +2 -1
- data/schemas/dataTableRowInsertResult.json +2 -1
- data/schemas/eventPlusNewCount.json +161 -0
- data/schemas/experienceLinkedResources.json +33 -6
- data/schemas/flow.json +8 -2
- data/schemas/flowPatch.json +8 -2
- data/schemas/flowPost.json +8 -2
- data/schemas/flowVersion.json +25 -4
- data/schemas/flowVersionPost.json +8 -2
- data/schemas/flowVersions.json +25 -4
- data/schemas/flows.json +8 -2
- data/schemas/flowsImportPost.json +16 -4
- data/schemas/flowsImportResult.json +33 -6
- data/schemas/githubLogin.json +10 -0
- data/schemas/historicalSummaries.json +524 -1
- data/schemas/historicalSummary.json +22 -0
- data/schemas/importIntoApplicationOptions.json +6 -1
- data/schemas/importNewApplicationOptions.json +6 -1
- data/schemas/instance.json +12 -0
- data/schemas/instanceCustomNodePatch.json +8 -2
- data/schemas/instanceCustomNodePost.json +8 -2
- data/schemas/instanceOrg.json +3 -0
- data/schemas/instanceOrgPatch.json +4 -0
- data/schemas/instanceOrgPost.json +4 -0
- data/schemas/instanceOrgs.json +3 -0
- data/schemas/instanceSandbox.json +11 -0
- data/schemas/instanceSandboxes.json +433 -1
- data/schemas/instances.json +217 -1
- data/schemas/me.json +11 -0
- data/schemas/notebookExecutionLogs.json +3 -1
- data/schemas/org.json +11 -0
- data/schemas/orgs.json +11 -0
- data/schemas/payloadStats.json +8 -0
- data/schemas/resourceJob.json +86 -0
- data/schemas/resourceJobExecutionLogs.json +127 -0
- data/schemas/resourceJobExecutionOptions.json +11 -0
- data/schemas/resourceJobPatch.json +55 -0
- data/schemas/resourceJobPost.json +66 -0
- data/schemas/resourceJobs.json +131 -0
- data/schemas/samlResponse.json +10 -0
- data/schemas/userCredentials.json +10 -0
- data/schemas/userPost.json +10 -0
- data/schemas/validateContextError.json +4 -0
- data/schemas/validationErrors.json +1 -9
- metadata +13 -2
@@ -43,7 +43,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
|
|
43
43
|
|
44
44
|
| Code | Type | Description |
|
45
45
|
| ---- | ---- | ----------- |
|
46
|
-
| 200 | [API
|
46
|
+
| 200 | [API Tokens](_schemas.md#api-tokens) | Collection of API tokens |
|
47
47
|
|
48
48
|
#### Error Responses
|
49
49
|
|
data/docs/events.md
CHANGED
@@ -164,7 +164,7 @@ all.Application, all.Application.read, all.Organization, all.Organization.read,
|
|
164
164
|
|
165
165
|
| Code | Type | Description |
|
166
166
|
| ---- | ---- | ----------- |
|
167
|
-
| 200 |
|
167
|
+
| 200 | [Event Plus New Count](_schemas.md#event-plus-new-count) | The event, plus count of currently new events |
|
168
168
|
|
169
169
|
#### Error Responses
|
170
170
|
|
data/docs/notebook.md
CHANGED
@@ -130,7 +130,7 @@ all.Application, all.Organization, all.User, notebook.*, or notebook.execute.
|
|
130
130
|
|
131
131
|
| Code | Type | Description |
|
132
132
|
| ---- | ---- | ----------- |
|
133
|
-
| 200 | [Success](_schemas.md#success) | If execution request was accepted and successfully queued |
|
133
|
+
| 200 | [Success With Execution ID](_schemas.md#success-with-execution-id) | If execution request was accepted and successfully queued |
|
134
134
|
|
135
135
|
#### Error Responses
|
136
136
|
|
data/docs/resourceJob.md
ADDED
@@ -0,0 +1,263 @@
|
|
1
|
+
# Resource Job Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Resource Job resource, including the expected
|
5
|
+
parameters and the potential responses.
|
6
|
+
|
7
|
+
##### Contents
|
8
|
+
|
9
|
+
* [Cancel Execution](#cancel-execution)
|
10
|
+
* [Delete](#delete)
|
11
|
+
* [Execute](#execute)
|
12
|
+
* [Get](#get)
|
13
|
+
* [Logs](#logs)
|
14
|
+
* [Patch](#patch)
|
15
|
+
|
16
|
+
<br/>
|
17
|
+
|
18
|
+
## Cancel Execution
|
19
|
+
|
20
|
+
Marks a specific resource job execution for cancellation
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
result = client.resource_job.cancel_execution(
|
24
|
+
applicationId: my_application_id,
|
25
|
+
resourceJobId: my_resource_job_id,
|
26
|
+
executionId: my_execution_id)
|
27
|
+
|
28
|
+
puts result
|
29
|
+
```
|
30
|
+
|
31
|
+
#### Authentication
|
32
|
+
The client must be configured with a valid api access token to call this
|
33
|
+
action. The token must include at least one of the following scopes:
|
34
|
+
all.Application, all.Organization, all.User, resourceJob.*, or resourceJob.cancelExecution.
|
35
|
+
|
36
|
+
#### Available Parameters
|
37
|
+
|
38
|
+
| Name | Type | Required | Description | Default | Example |
|
39
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
40
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
41
|
+
| resourceJobId | string | Y | ID associated with the resource job | | 575ec8687ae143cd83dc4a97 |
|
42
|
+
| executionId | undefined | Y | The ID of the execution to cancel | | 632e18632f59592e773a4153 |
|
43
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
44
|
+
|
45
|
+
#### Successful Responses
|
46
|
+
|
47
|
+
| Code | Type | Description |
|
48
|
+
| ---- | ---- | ----------- |
|
49
|
+
| 200 | [Success](_schemas.md#success) | If the execution was successfully marked for cancellation |
|
50
|
+
|
51
|
+
#### Error Responses
|
52
|
+
|
53
|
+
| Code | Type | Description |
|
54
|
+
| ---- | ---- | ----------- |
|
55
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
56
|
+
| 404 | [Error](_schemas.md#error) | Error if execution was not found |
|
57
|
+
|
58
|
+
<br/>
|
59
|
+
|
60
|
+
## Delete
|
61
|
+
|
62
|
+
Deletes a resource job
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
result = client.resource_job.delete(
|
66
|
+
applicationId: my_application_id,
|
67
|
+
resourceJobId: my_resource_job_id)
|
68
|
+
|
69
|
+
puts result
|
70
|
+
```
|
71
|
+
|
72
|
+
#### Authentication
|
73
|
+
The client must be configured with a valid api access token to call this
|
74
|
+
action. The token must include at least one of the following scopes:
|
75
|
+
all.Application, all.Organization, all.User, resourceJob.*, or resourceJob.delete.
|
76
|
+
|
77
|
+
#### Available Parameters
|
78
|
+
|
79
|
+
| Name | Type | Required | Description | Default | Example |
|
80
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
81
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
82
|
+
| resourceJobId | string | Y | ID associated with the resource job | | 575ec8687ae143cd83dc4a97 |
|
83
|
+
| includeWorkflows | string | N | If the workflows that trigger from this resource job should also be deleted. | | true |
|
84
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
85
|
+
|
86
|
+
#### Successful Responses
|
87
|
+
|
88
|
+
| Code | Type | Description |
|
89
|
+
| ---- | ---- | ----------- |
|
90
|
+
| 200 | [Success](_schemas.md#success) | If resource job was successfully deleted |
|
91
|
+
|
92
|
+
#### Error Responses
|
93
|
+
|
94
|
+
| Code | Type | Description |
|
95
|
+
| ---- | ---- | ----------- |
|
96
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
97
|
+
| 404 | [Error](_schemas.md#error) | Error if resource job was not found |
|
98
|
+
|
99
|
+
<br/>
|
100
|
+
|
101
|
+
## Execute
|
102
|
+
|
103
|
+
Queues the execution of a resource job
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
result = client.resource_job.execute(
|
107
|
+
applicationId: my_application_id,
|
108
|
+
resourceJobId: my_resource_job_id,
|
109
|
+
executionOptions: my_execution_options)
|
110
|
+
|
111
|
+
puts result
|
112
|
+
```
|
113
|
+
|
114
|
+
#### Authentication
|
115
|
+
The client must be configured with a valid api access token to call this
|
116
|
+
action. The token must include at least one of the following scopes:
|
117
|
+
all.Application, all.Organization, all.User, resourceJob.*, or resourceJob.execute.
|
118
|
+
|
119
|
+
#### Available Parameters
|
120
|
+
|
121
|
+
| Name | Type | Required | Description | Default | Example |
|
122
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
123
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
124
|
+
| resourceJobId | string | Y | ID associated with the resource job | | 575ec8687ae143cd83dc4a97 |
|
125
|
+
| executionOptions | [Resource Job Execution Options](_schemas.md#resource-job-execution-options) | Y | The options for the execution | | [Resource Job Execution Options Example](_schemas.md#resource-job-execution-options-example) |
|
126
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
127
|
+
|
128
|
+
#### Successful Responses
|
129
|
+
|
130
|
+
| Code | Type | Description |
|
131
|
+
| ---- | ---- | ----------- |
|
132
|
+
| 200 | [Success With Execution ID](_schemas.md#success-with-execution-id) | If the job was successfully queued |
|
133
|
+
|
134
|
+
#### Error Responses
|
135
|
+
|
136
|
+
| Code | Type | Description |
|
137
|
+
| ---- | ---- | ----------- |
|
138
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
139
|
+
| 404 | [Error](_schemas.md#error) | Error if resource job was not found |
|
140
|
+
|
141
|
+
<br/>
|
142
|
+
|
143
|
+
## Get
|
144
|
+
|
145
|
+
Returns a resource job
|
146
|
+
|
147
|
+
```ruby
|
148
|
+
result = client.resource_job.get(
|
149
|
+
applicationId: my_application_id,
|
150
|
+
resourceJobId: my_resource_job_id)
|
151
|
+
|
152
|
+
puts result
|
153
|
+
```
|
154
|
+
|
155
|
+
#### Authentication
|
156
|
+
The client must be configured with a valid api access token to call this
|
157
|
+
action. The token must include at least one of the following scopes:
|
158
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, resourceJob.*, or resourceJob.get.
|
159
|
+
|
160
|
+
#### Available Parameters
|
161
|
+
|
162
|
+
| Name | Type | Required | Description | Default | Example |
|
163
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
164
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
165
|
+
| resourceJobId | string | Y | ID associated with the resource job | | 575ec8687ae143cd83dc4a97 |
|
166
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
167
|
+
|
168
|
+
#### Successful Responses
|
169
|
+
|
170
|
+
| Code | Type | Description |
|
171
|
+
| ---- | ---- | ----------- |
|
172
|
+
| 200 | [Resource Job](_schemas.md#resource-job) | A single resource job |
|
173
|
+
|
174
|
+
#### Error Responses
|
175
|
+
|
176
|
+
| Code | Type | Description |
|
177
|
+
| ---- | ---- | ----------- |
|
178
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
179
|
+
| 404 | [Error](_schemas.md#error) | Error if application was not found |
|
180
|
+
|
181
|
+
<br/>
|
182
|
+
|
183
|
+
## Logs
|
184
|
+
|
185
|
+
Retrieves information on resource job executions
|
186
|
+
|
187
|
+
```ruby
|
188
|
+
result = client.resource_job.logs(
|
189
|
+
applicationId: my_application_id,
|
190
|
+
resourceJobId: my_resource_job_id)
|
191
|
+
|
192
|
+
puts result
|
193
|
+
```
|
194
|
+
|
195
|
+
#### Authentication
|
196
|
+
The client must be configured with a valid api access token to call this
|
197
|
+
action. The token must include at least one of the following scopes:
|
198
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, resourceJob.*, or resourceJob.logs.
|
199
|
+
|
200
|
+
#### Available Parameters
|
201
|
+
|
202
|
+
| Name | Type | Required | Description | Default | Example |
|
203
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
204
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
205
|
+
| resourceJobId | string | Y | ID associated with the resource job | | 575ec8687ae143cd83dc4a97 |
|
206
|
+
| limit | string | N | Max log entries to return (ordered by time descending) | 1 | 10 |
|
207
|
+
| since | string | N | Look for log entries since this time (ms since epoch) | | 1465790400000 |
|
208
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
209
|
+
|
210
|
+
#### Successful Responses
|
211
|
+
|
212
|
+
| Code | Type | Description |
|
213
|
+
| ---- | ---- | ----------- |
|
214
|
+
| 200 | [Resource Job Execution Logs](_schemas.md#resource-job-execution-logs) | Resource job execution information |
|
215
|
+
|
216
|
+
#### Error Responses
|
217
|
+
|
218
|
+
| Code | Type | Description |
|
219
|
+
| ---- | ---- | ----------- |
|
220
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
221
|
+
| 404 | [Error](_schemas.md#error) | Error if resource job was not found |
|
222
|
+
|
223
|
+
<br/>
|
224
|
+
|
225
|
+
## Patch
|
226
|
+
|
227
|
+
Update a resource job
|
228
|
+
|
229
|
+
```ruby
|
230
|
+
result = client.resource_job.patch(
|
231
|
+
applicationId: my_application_id,
|
232
|
+
resourceJobId: my_resource_job_id,
|
233
|
+
resourceJob: my_resource_job)
|
234
|
+
|
235
|
+
puts result
|
236
|
+
```
|
237
|
+
|
238
|
+
#### Authentication
|
239
|
+
The client must be configured with a valid api access token to call this
|
240
|
+
action. The token must include at least one of the following scopes:
|
241
|
+
all.Application, all.Organization, all.User, resourceJob.*, or resourceJob.patch.
|
242
|
+
|
243
|
+
#### Available Parameters
|
244
|
+
|
245
|
+
| Name | Type | Required | Description | Default | Example |
|
246
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
247
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
248
|
+
| resourceJobId | string | Y | ID associated with the resource job | | 575ec8687ae143cd83dc4a97 |
|
249
|
+
| resourceJob | [Resource Job Patch](_schemas.md#resource-job-patch) | Y | The new resource job configuration | | [Resource Job Patch Example](_schemas.md#resource-job-patch-example) |
|
250
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
251
|
+
|
252
|
+
#### Successful Responses
|
253
|
+
|
254
|
+
| Code | Type | Description |
|
255
|
+
| ---- | ---- | ----------- |
|
256
|
+
| 201 | [Resource Job](_schemas.md#resource-job) | Successfully updated resource job |
|
257
|
+
|
258
|
+
#### Error Responses
|
259
|
+
|
260
|
+
| Code | Type | Description |
|
261
|
+
| ---- | ---- | ----------- |
|
262
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
263
|
+
| 404 | [Error](_schemas.md#error) | Error if resource job was not found |
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# Resource Jobs Actions
|
2
|
+
|
3
|
+
Details on the various actions that can be performed on the
|
4
|
+
Resource Jobs resource, including the expected
|
5
|
+
parameters and the potential responses.
|
6
|
+
|
7
|
+
##### Contents
|
8
|
+
|
9
|
+
* [Get](#get)
|
10
|
+
* [Post](#post)
|
11
|
+
|
12
|
+
<br/>
|
13
|
+
|
14
|
+
## Get
|
15
|
+
|
16
|
+
Returns the resource jobs for an application
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
result = client.resource_jobs.get(applicationId: my_application_id)
|
20
|
+
|
21
|
+
puts result
|
22
|
+
```
|
23
|
+
|
24
|
+
#### Authentication
|
25
|
+
The client must be configured with a valid api access token to call this
|
26
|
+
action. The token must include at least one of the following scopes:
|
27
|
+
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, resourceJobs.*, or resourceJobs.get.
|
28
|
+
|
29
|
+
#### Available Parameters
|
30
|
+
|
31
|
+
| Name | Type | Required | Description | Default | Example |
|
32
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
33
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
34
|
+
| sortField | string | N | Field to sort the results by. Accepted values are: name, id, creationDate, lastUpdated, lastExecutionRequested, resourceType | name | name |
|
35
|
+
| sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | asc | asc |
|
36
|
+
| page | string | N | Which page of results to return | 0 | 0 |
|
37
|
+
| perPage | string | N | How many items to return per page | 100 | 10 |
|
38
|
+
| filterField | string | N | Field to filter the results by. Blank or not provided means no filtering. Accepted values are: name, resourceType | | device |
|
39
|
+
| filter | string | N | Filter to apply against the filtered field. Supports globbing. Blank or not provided means no filtering. | | my*job |
|
40
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
41
|
+
|
42
|
+
#### Successful Responses
|
43
|
+
|
44
|
+
| Code | Type | Description |
|
45
|
+
| ---- | ---- | ----------- |
|
46
|
+
| 200 | [Resource Jobs](_schemas.md#resource-jobs) | Collection of resource jobs |
|
47
|
+
|
48
|
+
#### Error Responses
|
49
|
+
|
50
|
+
| Code | Type | Description |
|
51
|
+
| ---- | ---- | ----------- |
|
52
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
53
|
+
| 404 | [Error](_schemas.md#error) | Error if application was not found |
|
54
|
+
|
55
|
+
<br/>
|
56
|
+
|
57
|
+
## Post
|
58
|
+
|
59
|
+
Create a new resource job for an application
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
result = client.resource_jobs.post(
|
63
|
+
applicationId: my_application_id,
|
64
|
+
resourceJob: my_resource_job)
|
65
|
+
|
66
|
+
puts result
|
67
|
+
```
|
68
|
+
|
69
|
+
#### Authentication
|
70
|
+
The client must be configured with a valid api access token to call this
|
71
|
+
action. The token must include at least one of the following scopes:
|
72
|
+
all.Application, all.Organization, all.User, resourceJobs.*, or resourceJobs.post.
|
73
|
+
|
74
|
+
#### Available Parameters
|
75
|
+
|
76
|
+
| Name | Type | Required | Description | Default | Example |
|
77
|
+
| ---- | ---- | -------- | ----------- | ------- | ------- |
|
78
|
+
| applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 |
|
79
|
+
| resourceJob | [Resource Job Post](_schemas.md#resource-job-post) | Y | New resource job information | | [Resource Job Post Example](_schemas.md#resource-job-post-example) |
|
80
|
+
| losantdomain | string | N | Domain scope of request (rarely needed) | | example.com |
|
81
|
+
|
82
|
+
#### Successful Responses
|
83
|
+
|
84
|
+
| Code | Type | Description |
|
85
|
+
| ---- | ---- | ----------- |
|
86
|
+
| 201 | [Resource Job](_schemas.md#resource-job) | Successfully created resource job |
|
87
|
+
|
88
|
+
#### Error Responses
|
89
|
+
|
90
|
+
| Code | Type | Description |
|
91
|
+
| ---- | ---- | ----------- |
|
92
|
+
| 400 | [Error](_schemas.md#error) | Error if malformed request |
|
93
|
+
| 404 | [Error](_schemas.md#error) | Error if application was not found |
|
@@ -53,7 +53,7 @@ module LosantRest
|
|
53
53
|
# * {boolean} _embedded - Return embedded resources in response
|
54
54
|
#
|
55
55
|
# Responses:
|
56
|
-
# * 200 - Collection of API tokens (https://api.losant.com/#/definitions/
|
56
|
+
# * 200 - Collection of API tokens (https://api.losant.com/#/definitions/apiTokens)
|
57
57
|
#
|
58
58
|
# Errors:
|
59
59
|
# * 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
|
data/lib/losant_rest/client.rb
CHANGED
@@ -27,7 +27,7 @@ module LosantRest
|
|
27
27
|
#
|
28
28
|
# User API for accessing Losant data
|
29
29
|
#
|
30
|
-
# Built For Version 1.
|
30
|
+
# Built For Version 1.24.0
|
31
31
|
class Client
|
32
32
|
attr_accessor :auth_token, :url
|
33
33
|
|
@@ -352,6 +352,14 @@ module LosantRest
|
|
352
352
|
@orgs ||= Orgs.new(self)
|
353
353
|
end
|
354
354
|
|
355
|
+
def resource_job
|
356
|
+
@resource_job ||= ResourceJob.new(self)
|
357
|
+
end
|
358
|
+
|
359
|
+
def resource_jobs
|
360
|
+
@resource_jobs ||= ResourceJobs.new(self)
|
361
|
+
end
|
362
|
+
|
355
363
|
def user_api_token
|
356
364
|
@user_api_token ||= UserApiToken.new(self)
|
357
365
|
end
|
@@ -374,7 +382,7 @@ module LosantRest
|
|
374
382
|
|
375
383
|
headers["Accept"] = "application/json"
|
376
384
|
headers["Content-Type"] = "application/json"
|
377
|
-
headers["Accept-Version"] = "^1.
|
385
|
+
headers["Accept-Version"] = "^1.24.0"
|
378
386
|
headers["Authorization"] = "Bearer #{self.auth_token}" if self.auth_token
|
379
387
|
path = self.url + options.fetch(:path, "")
|
380
388
|
|
data/lib/losant_rest/events.rb
CHANGED
@@ -202,7 +202,7 @@ module LosantRest
|
|
202
202
|
# * {boolean} _embedded - Return embedded resources in response
|
203
203
|
#
|
204
204
|
# Responses:
|
205
|
-
# * 200 - The event, plus count of currently new events
|
205
|
+
# * 200 - The event, plus count of currently new events (https://api.losant.com/#/definitions/eventPlusNewCount)
|
206
206
|
#
|
207
207
|
# Errors:
|
208
208
|
# * 404 - Error if application was not found (https://api.losant.com/#/definitions/error)
|
data/lib/losant_rest/notebook.rb
CHANGED
@@ -144,7 +144,7 @@ module LosantRest
|
|
144
144
|
# * {boolean} _embedded - Return embedded resources in response
|
145
145
|
#
|
146
146
|
# Responses:
|
147
|
-
# * 200 - If execution request was accepted and successfully queued (https://api.losant.com/#/definitions/
|
147
|
+
# * 200 - If execution request was accepted and successfully queued (https://api.losant.com/#/definitions/successWithExecutionId)
|
148
148
|
#
|
149
149
|
# Errors:
|
150
150
|
# * 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
|