@cosmotech/api-ts 3.3.4 → 4.2.5-onprem
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yaml +13 -12
- package/.github/workflows/track_dependencies.yml +31 -0
- package/.openapi-generator/FILES +98 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +210 -2
- package/api.ts +4650 -11656
- package/base.ts +2 -2
- package/common.ts +22 -44
- package/configuration.ts +7 -2
- package/dist/api.d.ts +2165 -6422
- package/dist/api.js +726 -7302
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -2
- package/dist/common.d.ts +5 -36
- package/dist/common.js +17 -39
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +14 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AboutInfo.md +21 -0
- package/docs/AboutInfoVersion.md +33 -0
- package/docs/ComponentRolePermissions.md +23 -0
- package/docs/Connector.md +41 -0
- package/docs/ConnectorApi.md +218 -0
- package/docs/ConnectorParameter.md +31 -0
- package/docs/ConnectorParameterGroup.md +25 -0
- package/docs/ContainerResourceSizeInfo.md +23 -0
- package/docs/ContainerResourceSizing.md +23 -0
- package/docs/CreateInfo.md +24 -0
- package/docs/CreatedRun.md +21 -0
- package/docs/Dataset.md +65 -0
- package/docs/DatasetAccessControl.md +23 -0
- package/docs/DatasetApi.md +1809 -0
- package/docs/DatasetCompatibility.md +25 -0
- package/docs/DatasetConnector.md +27 -0
- package/docs/DatasetCopyParameters.md +25 -0
- package/docs/DatasetCreateInfo.md +24 -0
- package/docs/DatasetCreateRequest.md +31 -0
- package/docs/DatasetEditInfo.md +22 -0
- package/docs/DatasetMemberGroup.md +25 -0
- package/docs/DatasetMemberUser.md +23 -0
- package/docs/DatasetMembers.md +23 -0
- package/docs/DatasetPart.md +43 -0
- package/docs/DatasetPartCreateRequest.md +31 -0
- package/docs/DatasetPartTypeEnum.md +11 -0
- package/docs/DatasetPartUpdateRequest.md +27 -0
- package/docs/DatasetRole.md +21 -0
- package/docs/DatasetSearch.md +21 -0
- package/docs/DatasetSecurity.md +23 -0
- package/docs/DatasetSourceType.md +19 -0
- package/docs/DatasetTwinGraphHash.md +21 -0
- package/docs/DatasetTwinGraphInfo.md +25 -0
- package/docs/DatasetTwinGraphQuery.md +21 -0
- package/docs/DatasetUpdateRequest.md +29 -0
- package/docs/DeleteHistoricalData.md +25 -0
- package/docs/EditInfo.md +22 -0
- package/docs/FileUploadMetadata.md +22 -0
- package/docs/FileUploadValidation.md +23 -0
- package/docs/GraphProperties.md +28 -0
- package/docs/IAMInfoApi.md +95 -0
- package/docs/IngestionStatusEnum.md +15 -0
- package/docs/IoTypesEnum.md +11 -0
- package/docs/LastRunInfo.md +23 -0
- package/docs/MemberGroup.md +25 -0
- package/docs/MemberUser.md +23 -0
- package/docs/Members.md +23 -0
- package/docs/MetaApi.md +52 -0
- package/docs/Organization.md +27 -0
- package/docs/OrganizationAccessControl.md +23 -0
- package/docs/OrganizationApi.md +758 -0
- package/docs/OrganizationCreateRequest.md +23 -0
- package/docs/OrganizationEditInfo.md +22 -0
- package/docs/OrganizationMemberGroup.md +25 -0
- package/docs/OrganizationMemberUser.md +23 -0
- package/docs/OrganizationMembers.md +23 -0
- package/docs/OrganizationRole.md +21 -0
- package/docs/OrganizationSecurity.md +23 -0
- package/docs/OrganizationUpdateRequest.md +21 -0
- package/docs/QueryResult.md +21 -0
- package/docs/ResourceSizeInfo.md +23 -0
- package/docs/Run.md +57 -0
- package/docs/RunApi.md +442 -0
- package/docs/RunContainer.md +41 -0
- package/docs/RunData.md +25 -0
- package/docs/RunDataQuery.md +21 -0
- package/docs/RunEditInfo.md +22 -0
- package/docs/RunLogs.md +23 -0
- package/docs/RunLogsEntry.md +21 -0
- package/docs/RunResourceRequested.md +23 -0
- package/docs/RunState.md +15 -0
- package/docs/RunStatus.md +47 -0
- package/docs/RunStatusNode.md +43 -0
- package/docs/RunTemplate.md +87 -0
- package/docs/RunTemplateCreateRequest.md +37 -0
- package/docs/RunTemplateOrchestrator.md +11 -0
- package/docs/RunTemplateParameter.md +35 -0
- package/docs/RunTemplateParameterCreateRequest.md +35 -0
- package/docs/RunTemplateParameterGroup.md +31 -0
- package/docs/RunTemplateParameterGroupCreateRequest.md +29 -0
- package/docs/RunTemplateParameterGroupUpdateRequest.md +27 -0
- package/docs/RunTemplateParameterUpdateRequest.md +33 -0
- package/docs/RunTemplateParameterValue.md +25 -0
- package/docs/RunTemplateResourceSizing.md +23 -0
- package/docs/RunTemplateStepSource.md +15 -0
- package/docs/RunTemplateUpdateRequest.md +35 -0
- package/docs/Runner.md +63 -0
- package/docs/RunnerAccessControl.md +23 -0
- package/docs/RunnerApi.md +908 -0
- package/docs/RunnerCreateRequest.md +45 -0
- package/docs/RunnerDatasets.md +24 -0
- package/docs/RunnerEditInfo.md +22 -0
- package/docs/RunnerMemberGroup.md +25 -0
- package/docs/RunnerMemberUser.md +23 -0
- package/docs/RunnerMembers.md +23 -0
- package/docs/RunnerResourceSizing.md +23 -0
- package/docs/RunnerRole.md +21 -0
- package/docs/RunnerRunTemplateParameterValue.md +27 -0
- package/docs/RunnerSecurity.md +23 -0
- package/docs/RunnerStatus.md +11 -0
- package/docs/RunnerUpdateRequest.md +41 -0
- package/docs/RunnerValidationStatus.md +15 -0
- package/docs/SendRunDataRequest.md +22 -0
- package/docs/Solution.md +53 -0
- package/docs/SolutionAccessControl.md +23 -0
- package/docs/SolutionApi.md +1159 -0
- package/docs/SolutionCreateRequest.md +43 -0
- package/docs/SolutionEditInfo.md +22 -0
- package/docs/SolutionFile.md +21 -0
- package/docs/SolutionMemberGroup.md +25 -0
- package/docs/SolutionMemberUser.md +23 -0
- package/docs/SolutionMembers.md +23 -0
- package/docs/SolutionRole.md +21 -0
- package/docs/SolutionSecurity.md +23 -0
- package/docs/SolutionUpdateRequest.md +41 -0
- package/docs/SourceInfo.md +27 -0
- package/docs/SubDatasetGraphQuery.md +27 -0
- package/docs/TwinGraphBatchResult.md +25 -0
- package/docs/TwincacheStatusEnum.md +11 -0
- package/docs/Workspace.md +57 -0
- package/docs/WorkspaceAccessControl.md +23 -0
- package/docs/WorkspaceApi.md +1162 -0
- package/docs/WorkspaceCreateRequest.md +35 -0
- package/docs/WorkspaceEditInfo.md +22 -0
- package/docs/WorkspaceFile.md +21 -0
- package/docs/WorkspaceMemberGroup.md +25 -0
- package/docs/WorkspaceMemberUser.md +23 -0
- package/docs/WorkspaceMembers.md +23 -0
- package/docs/WorkspaceRole.md +21 -0
- package/docs/WorkspaceSecurity.md +23 -0
- package/docs/WorkspaceSolution.md +25 -0
- package/docs/WorkspaceUpdateRequest.md +31 -0
- package/docs/WorkspaceWebApp.md +25 -0
- package/index.ts +1 -1
- package/package.json +2 -2
package/docs/RunApi.md
ADDED
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
# RunApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteRun**](#deleterun) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id} | Delete a run|
|
|
8
|
+
|[**getRun**](#getrun) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id} | Get the details of a run|
|
|
9
|
+
|[**getRunLogs**](#getrunlogs) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/logs | get the logs for the Run|
|
|
10
|
+
|[**getRunStatus**](#getrunstatus) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/status | get the status for the Run|
|
|
11
|
+
|[**listRuns**](#listruns) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs | get the list of Runs for the Runner|
|
|
12
|
+
|[**queryRunData**](#queryrundata) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/query | query the run data|
|
|
13
|
+
|[**sendRunData**](#sendrundata) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/send | Send data associated to a run|
|
|
14
|
+
|
|
15
|
+
# **deleteRun**
|
|
16
|
+
> deleteRun()
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
RunApi,
|
|
24
|
+
Configuration
|
|
25
|
+
} from '@cosmotech/api-ts';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new RunApi(configuration);
|
|
29
|
+
|
|
30
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
31
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
32
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
33
|
+
let runId: string; //the Run identifier (default to undefined)
|
|
34
|
+
|
|
35
|
+
const { status, data } = await apiInstance.deleteRun(
|
|
36
|
+
organizationId,
|
|
37
|
+
workspaceId,
|
|
38
|
+
runnerId,
|
|
39
|
+
runId
|
|
40
|
+
);
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
|Name | Type | Description | Notes|
|
|
46
|
+
|------------- | ------------- | ------------- | -------------|
|
|
47
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
48
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
49
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
50
|
+
| **runId** | [**string**] | the Run identifier | defaults to undefined|
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Return type
|
|
54
|
+
|
|
55
|
+
void (empty response body)
|
|
56
|
+
|
|
57
|
+
### Authorization
|
|
58
|
+
|
|
59
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
60
|
+
|
|
61
|
+
### HTTP request headers
|
|
62
|
+
|
|
63
|
+
- **Content-Type**: Not defined
|
|
64
|
+
- **Accept**: Not defined
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### HTTP response details
|
|
68
|
+
| Status code | Description | Response headers |
|
|
69
|
+
|-------------|-------------|------------------|
|
|
70
|
+
|**204** | Request succeeded | - |
|
|
71
|
+
|**400** | Bad request | - |
|
|
72
|
+
|**404** | the Run specified is unknown or you don\'t have access to it | - |
|
|
73
|
+
|
|
74
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
75
|
+
|
|
76
|
+
# **getRun**
|
|
77
|
+
> Run getRun()
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Example
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
import {
|
|
84
|
+
RunApi,
|
|
85
|
+
Configuration
|
|
86
|
+
} from '@cosmotech/api-ts';
|
|
87
|
+
|
|
88
|
+
const configuration = new Configuration();
|
|
89
|
+
const apiInstance = new RunApi(configuration);
|
|
90
|
+
|
|
91
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
92
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
93
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
94
|
+
let runId: string; //the Run identifier (default to undefined)
|
|
95
|
+
|
|
96
|
+
const { status, data } = await apiInstance.getRun(
|
|
97
|
+
organizationId,
|
|
98
|
+
workspaceId,
|
|
99
|
+
runnerId,
|
|
100
|
+
runId
|
|
101
|
+
);
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Parameters
|
|
105
|
+
|
|
106
|
+
|Name | Type | Description | Notes|
|
|
107
|
+
|------------- | ------------- | ------------- | -------------|
|
|
108
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
109
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
110
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
111
|
+
| **runId** | [**string**] | the Run identifier | defaults to undefined|
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### Return type
|
|
115
|
+
|
|
116
|
+
**Run**
|
|
117
|
+
|
|
118
|
+
### Authorization
|
|
119
|
+
|
|
120
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
121
|
+
|
|
122
|
+
### HTTP request headers
|
|
123
|
+
|
|
124
|
+
- **Content-Type**: Not defined
|
|
125
|
+
- **Accept**: application/json
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### HTTP response details
|
|
129
|
+
| Status code | Description | Response headers |
|
|
130
|
+
|-------------|-------------|------------------|
|
|
131
|
+
|**200** | the Run details | - |
|
|
132
|
+
|**404** | the Run specified is unknown or you don\'t have access to it | - |
|
|
133
|
+
|
|
134
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
135
|
+
|
|
136
|
+
# **getRunLogs**
|
|
137
|
+
> RunLogs getRunLogs()
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### Example
|
|
141
|
+
|
|
142
|
+
```typescript
|
|
143
|
+
import {
|
|
144
|
+
RunApi,
|
|
145
|
+
Configuration
|
|
146
|
+
} from '@cosmotech/api-ts';
|
|
147
|
+
|
|
148
|
+
const configuration = new Configuration();
|
|
149
|
+
const apiInstance = new RunApi(configuration);
|
|
150
|
+
|
|
151
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
152
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
153
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
154
|
+
let runId: string; //the Run identifier (default to undefined)
|
|
155
|
+
|
|
156
|
+
const { status, data } = await apiInstance.getRunLogs(
|
|
157
|
+
organizationId,
|
|
158
|
+
workspaceId,
|
|
159
|
+
runnerId,
|
|
160
|
+
runId
|
|
161
|
+
);
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Parameters
|
|
165
|
+
|
|
166
|
+
|Name | Type | Description | Notes|
|
|
167
|
+
|------------- | ------------- | ------------- | -------------|
|
|
168
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
169
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
170
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
171
|
+
| **runId** | [**string**] | the Run identifier | defaults to undefined|
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### Return type
|
|
175
|
+
|
|
176
|
+
**RunLogs**
|
|
177
|
+
|
|
178
|
+
### Authorization
|
|
179
|
+
|
|
180
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
181
|
+
|
|
182
|
+
### HTTP request headers
|
|
183
|
+
|
|
184
|
+
- **Content-Type**: Not defined
|
|
185
|
+
- **Accept**: application/json
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### HTTP response details
|
|
189
|
+
| Status code | Description | Response headers |
|
|
190
|
+
|-------------|-------------|------------------|
|
|
191
|
+
|**200** | the run logs details | - |
|
|
192
|
+
|
|
193
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
194
|
+
|
|
195
|
+
# **getRunStatus**
|
|
196
|
+
> RunStatus getRunStatus()
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### Example
|
|
200
|
+
|
|
201
|
+
```typescript
|
|
202
|
+
import {
|
|
203
|
+
RunApi,
|
|
204
|
+
Configuration
|
|
205
|
+
} from '@cosmotech/api-ts';
|
|
206
|
+
|
|
207
|
+
const configuration = new Configuration();
|
|
208
|
+
const apiInstance = new RunApi(configuration);
|
|
209
|
+
|
|
210
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
211
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
212
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
213
|
+
let runId: string; //the Run identifier (default to undefined)
|
|
214
|
+
|
|
215
|
+
const { status, data } = await apiInstance.getRunStatus(
|
|
216
|
+
organizationId,
|
|
217
|
+
workspaceId,
|
|
218
|
+
runnerId,
|
|
219
|
+
runId
|
|
220
|
+
);
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Parameters
|
|
224
|
+
|
|
225
|
+
|Name | Type | Description | Notes|
|
|
226
|
+
|------------- | ------------- | ------------- | -------------|
|
|
227
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
228
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
229
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
230
|
+
| **runId** | [**string**] | the Run identifier | defaults to undefined|
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### Return type
|
|
234
|
+
|
|
235
|
+
**RunStatus**
|
|
236
|
+
|
|
237
|
+
### Authorization
|
|
238
|
+
|
|
239
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
240
|
+
|
|
241
|
+
### HTTP request headers
|
|
242
|
+
|
|
243
|
+
- **Content-Type**: Not defined
|
|
244
|
+
- **Accept**: application/json
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
### HTTP response details
|
|
248
|
+
| Status code | Description | Response headers |
|
|
249
|
+
|-------------|-------------|------------------|
|
|
250
|
+
|**200** | the run status details | - |
|
|
251
|
+
|
|
252
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
253
|
+
|
|
254
|
+
# **listRuns**
|
|
255
|
+
> Array<Run> listRuns()
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
### Example
|
|
259
|
+
|
|
260
|
+
```typescript
|
|
261
|
+
import {
|
|
262
|
+
RunApi,
|
|
263
|
+
Configuration
|
|
264
|
+
} from '@cosmotech/api-ts';
|
|
265
|
+
|
|
266
|
+
const configuration = new Configuration();
|
|
267
|
+
const apiInstance = new RunApi(configuration);
|
|
268
|
+
|
|
269
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
270
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
271
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
272
|
+
let page: number; //page number to query (first page is at index 0) (optional) (default to undefined)
|
|
273
|
+
let size: number; //amount of result by page (optional) (default to undefined)
|
|
274
|
+
|
|
275
|
+
const { status, data } = await apiInstance.listRuns(
|
|
276
|
+
organizationId,
|
|
277
|
+
workspaceId,
|
|
278
|
+
runnerId,
|
|
279
|
+
page,
|
|
280
|
+
size
|
|
281
|
+
);
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### Parameters
|
|
285
|
+
|
|
286
|
+
|Name | Type | Description | Notes|
|
|
287
|
+
|------------- | ------------- | ------------- | -------------|
|
|
288
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
289
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
290
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
291
|
+
| **page** | [**number**] | page number to query (first page is at index 0) | (optional) defaults to undefined|
|
|
292
|
+
| **size** | [**number**] | amount of result by page | (optional) defaults to undefined|
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
### Return type
|
|
296
|
+
|
|
297
|
+
**Array<Run>**
|
|
298
|
+
|
|
299
|
+
### Authorization
|
|
300
|
+
|
|
301
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
302
|
+
|
|
303
|
+
### HTTP request headers
|
|
304
|
+
|
|
305
|
+
- **Content-Type**: Not defined
|
|
306
|
+
- **Accept**: application/json
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
### HTTP response details
|
|
310
|
+
| Status code | Description | Response headers |
|
|
311
|
+
|-------------|-------------|------------------|
|
|
312
|
+
|**200** | the run details list | - |
|
|
313
|
+
|
|
314
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
315
|
+
|
|
316
|
+
# **queryRunData**
|
|
317
|
+
> QueryResult queryRunData(runDataQuery)
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
### Example
|
|
321
|
+
|
|
322
|
+
```typescript
|
|
323
|
+
import {
|
|
324
|
+
RunApi,
|
|
325
|
+
Configuration,
|
|
326
|
+
RunDataQuery
|
|
327
|
+
} from '@cosmotech/api-ts';
|
|
328
|
+
|
|
329
|
+
const configuration = new Configuration();
|
|
330
|
+
const apiInstance = new RunApi(configuration);
|
|
331
|
+
|
|
332
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
333
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
334
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
335
|
+
let runId: string; //the Run identifier (default to undefined)
|
|
336
|
+
let runDataQuery: RunDataQuery; //the query to run
|
|
337
|
+
|
|
338
|
+
const { status, data } = await apiInstance.queryRunData(
|
|
339
|
+
organizationId,
|
|
340
|
+
workspaceId,
|
|
341
|
+
runnerId,
|
|
342
|
+
runId,
|
|
343
|
+
runDataQuery
|
|
344
|
+
);
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### Parameters
|
|
348
|
+
|
|
349
|
+
|Name | Type | Description | Notes|
|
|
350
|
+
|------------- | ------------- | ------------- | -------------|
|
|
351
|
+
| **runDataQuery** | **RunDataQuery**| the query to run | |
|
|
352
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
353
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
354
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
355
|
+
| **runId** | [**string**] | the Run identifier | defaults to undefined|
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
### Return type
|
|
359
|
+
|
|
360
|
+
**QueryResult**
|
|
361
|
+
|
|
362
|
+
### Authorization
|
|
363
|
+
|
|
364
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
365
|
+
|
|
366
|
+
### HTTP request headers
|
|
367
|
+
|
|
368
|
+
- **Content-Type**: application/json
|
|
369
|
+
- **Accept**: application/json
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
### HTTP response details
|
|
373
|
+
| Status code | Description | Response headers |
|
|
374
|
+
|-------------|-------------|------------------|
|
|
375
|
+
|**200** | the query response | - |
|
|
376
|
+
|
|
377
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
378
|
+
|
|
379
|
+
# **sendRunData**
|
|
380
|
+
> RunData sendRunData(sendRunDataRequest)
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
### Example
|
|
384
|
+
|
|
385
|
+
```typescript
|
|
386
|
+
import {
|
|
387
|
+
RunApi,
|
|
388
|
+
Configuration,
|
|
389
|
+
SendRunDataRequest
|
|
390
|
+
} from '@cosmotech/api-ts';
|
|
391
|
+
|
|
392
|
+
const configuration = new Configuration();
|
|
393
|
+
const apiInstance = new RunApi(configuration);
|
|
394
|
+
|
|
395
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
396
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
397
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
398
|
+
let runId: string; //the Run identifier (default to undefined)
|
|
399
|
+
let sendRunDataRequest: SendRunDataRequest; //Custom data to register
|
|
400
|
+
|
|
401
|
+
const { status, data } = await apiInstance.sendRunData(
|
|
402
|
+
organizationId,
|
|
403
|
+
workspaceId,
|
|
404
|
+
runnerId,
|
|
405
|
+
runId,
|
|
406
|
+
sendRunDataRequest
|
|
407
|
+
);
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
### Parameters
|
|
411
|
+
|
|
412
|
+
|Name | Type | Description | Notes|
|
|
413
|
+
|------------- | ------------- | ------------- | -------------|
|
|
414
|
+
| **sendRunDataRequest** | **SendRunDataRequest**| Custom data to register | |
|
|
415
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
416
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
417
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
418
|
+
| **runId** | [**string**] | the Run identifier | defaults to undefined|
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
### Return type
|
|
422
|
+
|
|
423
|
+
**RunData**
|
|
424
|
+
|
|
425
|
+
### Authorization
|
|
426
|
+
|
|
427
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
428
|
+
|
|
429
|
+
### HTTP request headers
|
|
430
|
+
|
|
431
|
+
- **Content-Type**: application/json
|
|
432
|
+
- **Accept**: application/json
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
### HTTP response details
|
|
436
|
+
| Status code | Description | Response headers |
|
|
437
|
+
|-------------|-------------|------------------|
|
|
438
|
+
|**201** | Data stored | - |
|
|
439
|
+
|**400** | Data sent format is malformed | - |
|
|
440
|
+
|
|
441
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
442
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# RunContainer
|
|
2
|
+
|
|
3
|
+
a Run container description
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | the container Id | [optional] [readonly] [default to undefined]
|
|
10
|
+
**name** | **string** | the container name | [default to undefined]
|
|
11
|
+
**labels** | **{ [key: string]: string; }** | the metadata labels | [optional] [default to undefined]
|
|
12
|
+
**envVars** | **{ [key: string]: string; }** | environment variable map | [optional] [default to undefined]
|
|
13
|
+
**image** | **string** | the container image URI | [default to undefined]
|
|
14
|
+
**entrypoint** | **string** | the container entry point | [optional] [default to undefined]
|
|
15
|
+
**runArgs** | **Array<string>** | the list of run arguments for the container | [optional] [default to undefined]
|
|
16
|
+
**dependencies** | **Array<string>** | the list of dependencies container name to run this container | [optional] [default to undefined]
|
|
17
|
+
**solutionContainer** | **boolean** | whether or not this container is a Cosmo Tech solution container | [optional] [readonly] [default to undefined]
|
|
18
|
+
**nodeLabel** | **string** | the node label request | [optional] [default to undefined]
|
|
19
|
+
**runSizing** | [**ContainerResourceSizing**](ContainerResourceSizing.md) | | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { RunContainer } from '@cosmotech/api-ts';
|
|
25
|
+
|
|
26
|
+
const instance: RunContainer = {
|
|
27
|
+
id,
|
|
28
|
+
name,
|
|
29
|
+
labels,
|
|
30
|
+
envVars,
|
|
31
|
+
image,
|
|
32
|
+
entrypoint,
|
|
33
|
+
runArgs,
|
|
34
|
+
dependencies,
|
|
35
|
+
solutionContainer,
|
|
36
|
+
nodeLabel,
|
|
37
|
+
runSizing,
|
|
38
|
+
};
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/RunData.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# RunData
|
|
2
|
+
|
|
3
|
+
Run Data to send
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**database_name** | **string** | Database name | [optional] [default to undefined]
|
|
10
|
+
**table_name** | **string** | Table name | [optional] [default to undefined]
|
|
11
|
+
**data** | **Array<{ [key: string]: any; }>** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { RunData } from '@cosmotech/api-ts';
|
|
17
|
+
|
|
18
|
+
const instance: RunData = {
|
|
19
|
+
database_name,
|
|
20
|
+
table_name,
|
|
21
|
+
data,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# RunDataQuery
|
|
2
|
+
|
|
3
|
+
a data result query in SQL
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**query** | **string** | the query in SQL | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { RunDataQuery } from '@cosmotech/api-ts';
|
|
15
|
+
|
|
16
|
+
const instance: RunDataQuery = {
|
|
17
|
+
query,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# RunEditInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**timestamp** | **number** | The timestamp of the modification in millisecond | [default to undefined]
|
|
9
|
+
**userId** | **string** | The id of the user who did the modification | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { RunEditInfo } from '@cosmotech/api-ts';
|
|
15
|
+
|
|
16
|
+
const instance: RunEditInfo = {
|
|
17
|
+
timestamp,
|
|
18
|
+
userId,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/RunLogs.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# RunLogs
|
|
2
|
+
|
|
3
|
+
the output logs of a run
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**runId** | **string** | the Run Id | [readonly] [default to undefined]
|
|
10
|
+
**logs** | [**Array<RunLogsEntry>**](RunLogsEntry.md) | run log entries in chronological order | [readonly] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RunLogs } from '@cosmotech/api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: RunLogs = {
|
|
18
|
+
runId,
|
|
19
|
+
logs,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# RunLogsEntry
|
|
2
|
+
|
|
3
|
+
single run log entry
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**line** | **string** | log line data | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { RunLogsEntry } from '@cosmotech/api-ts';
|
|
15
|
+
|
|
16
|
+
const instance: RunLogsEntry = {
|
|
17
|
+
line,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# RunResourceRequested
|
|
2
|
+
|
|
3
|
+
the memory and CPU requested by the pod
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**cpu** | **number** | the cpu requested | [optional] [default to undefined]
|
|
10
|
+
**memory** | **number** | the memory requested | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RunResourceRequested } from '@cosmotech/api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: RunResourceRequested = {
|
|
18
|
+
cpu,
|
|
19
|
+
memory,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/RunState.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# RunState
|
|
2
|
+
|
|
3
|
+
the Run end-to-end state
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `Running` (value: `'Running'`)
|
|
8
|
+
|
|
9
|
+
* `Successful` (value: `'Successful'`)
|
|
10
|
+
|
|
11
|
+
* `Failed` (value: `'Failed'`)
|
|
12
|
+
|
|
13
|
+
* `Unknown` (value: `'Unknown'`)
|
|
14
|
+
|
|
15
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# RunStatus
|
|
2
|
+
|
|
3
|
+
a Run status
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | the Run id | [optional] [default to undefined]
|
|
10
|
+
**organizationId** | **string** | the Organization id | [optional] [default to undefined]
|
|
11
|
+
**workspaceId** | **string** | the Workspace id | [optional] [default to undefined]
|
|
12
|
+
**runnerId** | **string** | the Runner id | [optional] [default to undefined]
|
|
13
|
+
**workflowId** | **string** | the Cosmo Tech compute cluster Argo Workflow Id to search | [optional] [default to undefined]
|
|
14
|
+
**workflowName** | **string** | the Cosmo Tech compute cluster Argo Workflow Name | [optional] [default to undefined]
|
|
15
|
+
**startTime** | **string** | the Run start Date Time | [optional] [default to undefined]
|
|
16
|
+
**endTime** | **string** | the Run end Date Time | [optional] [default to undefined]
|
|
17
|
+
**phase** | **string** | high-level summary of where the workflow is in its lifecycle | [optional] [default to undefined]
|
|
18
|
+
**progress** | **string** | progress to completion | [optional] [default to undefined]
|
|
19
|
+
**message** | **string** | a human readable message indicating details about why the workflow is in this condition | [optional] [default to undefined]
|
|
20
|
+
**estimatedDuration** | **number** | estimatedDuration in seconds | [optional] [default to undefined]
|
|
21
|
+
**nodes** | [**Array<RunStatusNode>**](RunStatusNode.md) | status of Run nodes | [optional] [default to undefined]
|
|
22
|
+
**state** | [**RunState**](RunState.md) | | [optional] [default to undefined]
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { RunStatus } from '@cosmotech/api-ts';
|
|
28
|
+
|
|
29
|
+
const instance: RunStatus = {
|
|
30
|
+
id,
|
|
31
|
+
organizationId,
|
|
32
|
+
workspaceId,
|
|
33
|
+
runnerId,
|
|
34
|
+
workflowId,
|
|
35
|
+
workflowName,
|
|
36
|
+
startTime,
|
|
37
|
+
endTime,
|
|
38
|
+
phase,
|
|
39
|
+
progress,
|
|
40
|
+
message,
|
|
41
|
+
estimatedDuration,
|
|
42
|
+
nodes,
|
|
43
|
+
state,
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|