@cosmotech/api-ts 4.0.0-dev9 → 5.0.0-beta3

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.
Files changed (105) hide show
  1. package/.openapi-generator/FILES +95 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/LICENSE +1 -1
  5. package/README.md +206 -2
  6. package/api.ts +4513 -4646
  7. package/base.ts +2 -2
  8. package/common.ts +1 -1
  9. package/configuration.ts +7 -2
  10. package/dist/api.d.ts +3127 -2940
  11. package/dist/api.js +3674 -4398
  12. package/dist/base.d.ts +1 -1
  13. package/dist/base.js +2 -2
  14. package/dist/common.d.ts +2 -2
  15. package/dist/common.js +1 -1
  16. package/dist/configuration.d.ts +1 -1
  17. package/dist/configuration.js +14 -2
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +1 -1
  20. package/docs/AboutInfo.md +21 -0
  21. package/docs/AboutInfoVersion.md +33 -0
  22. package/docs/ComponentRolePermissions.md +23 -0
  23. package/docs/ContainerResourceSizeInfo.md +23 -0
  24. package/docs/ContainerResourceSizing.md +23 -0
  25. package/docs/CreateInfo.md +24 -0
  26. package/docs/CreatedRun.md +21 -0
  27. package/docs/Dataset.md +39 -0
  28. package/docs/DatasetAccessControl.md +23 -0
  29. package/docs/DatasetApi.md +1289 -0
  30. package/docs/DatasetCreateRequest.md +31 -0
  31. package/docs/DatasetPart.md +41 -0
  32. package/docs/DatasetPartCreateRequest.md +29 -0
  33. package/docs/DatasetPartTypeEnum.md +11 -0
  34. package/docs/DatasetPartUpdateRequest.md +23 -0
  35. package/docs/DatasetRole.md +21 -0
  36. package/docs/DatasetSecurity.md +23 -0
  37. package/docs/DatasetUpdateRequest.md +29 -0
  38. package/docs/EditInfo.md +22 -0
  39. package/docs/LastRunInfo.md +23 -0
  40. package/docs/MetaApi.md +51 -0
  41. package/docs/Organization.md +29 -0
  42. package/docs/OrganizationAccessControl.md +23 -0
  43. package/docs/OrganizationApi.md +758 -0
  44. package/docs/OrganizationCreateRequest.md +23 -0
  45. package/docs/OrganizationEditInfo.md +22 -0
  46. package/docs/OrganizationRole.md +21 -0
  47. package/docs/OrganizationSecurity.md +23 -0
  48. package/docs/OrganizationUpdateRequest.md +21 -0
  49. package/docs/QueryResult.md +21 -0
  50. package/docs/ResourceSizeInfo.md +23 -0
  51. package/docs/Run.md +55 -0
  52. package/docs/RunApi.md +442 -0
  53. package/docs/RunContainer.md +41 -0
  54. package/docs/RunData.md +25 -0
  55. package/docs/RunDataQuery.md +21 -0
  56. package/docs/RunEditInfo.md +22 -0
  57. package/docs/RunResourceRequested.md +23 -0
  58. package/docs/RunState.md +17 -0
  59. package/docs/RunStatus.md +49 -0
  60. package/docs/RunStatusNode.md +43 -0
  61. package/docs/RunTemplate.md +37 -0
  62. package/docs/RunTemplateCreateRequest.md +37 -0
  63. package/docs/RunTemplateParameter.md +37 -0
  64. package/docs/RunTemplateParameterCreateRequest.md +37 -0
  65. package/docs/RunTemplateParameterGroup.md +33 -0
  66. package/docs/RunTemplateParameterGroupCreateRequest.md +33 -0
  67. package/docs/RunTemplateParameterGroupUpdateRequest.md +31 -0
  68. package/docs/RunTemplateParameterUpdateRequest.md +35 -0
  69. package/docs/RunTemplateParameterValue.md +25 -0
  70. package/docs/RunTemplateResourceSizing.md +23 -0
  71. package/docs/RunTemplateUpdateRequest.md +35 -0
  72. package/docs/Runner.md +61 -0
  73. package/docs/RunnerAccessControl.md +23 -0
  74. package/docs/RunnerApi.md +908 -0
  75. package/docs/RunnerCreateRequest.md +45 -0
  76. package/docs/RunnerEditInfo.md +22 -0
  77. package/docs/RunnerResourceSizing.md +23 -0
  78. package/docs/RunnerRole.md +21 -0
  79. package/docs/RunnerRunTemplateParameterValue.md +27 -0
  80. package/docs/RunnerSecurity.md +23 -0
  81. package/docs/RunnerUpdateRequest.md +39 -0
  82. package/docs/RunnerValidationStatus.md +15 -0
  83. package/docs/SendRunDataRequest.md +23 -0
  84. package/docs/Solution.md +53 -0
  85. package/docs/SolutionAccessControl.md +23 -0
  86. package/docs/SolutionApi.md +1580 -0
  87. package/docs/SolutionCreateRequest.md +43 -0
  88. package/docs/SolutionEditInfo.md +22 -0
  89. package/docs/SolutionRole.md +21 -0
  90. package/docs/SolutionSecurity.md +23 -0
  91. package/docs/SolutionUpdateRequest.md +41 -0
  92. package/docs/Workspace.md +45 -0
  93. package/docs/WorkspaceAccessControl.md +23 -0
  94. package/docs/WorkspaceApi.md +1044 -0
  95. package/docs/WorkspaceCreateRequest.md +37 -0
  96. package/docs/WorkspaceEditInfo.md +22 -0
  97. package/docs/WorkspaceFile.md +21 -0
  98. package/docs/WorkspaceRole.md +21 -0
  99. package/docs/WorkspaceSecurity.md +23 -0
  100. package/docs/WorkspaceSolution.md +25 -0
  101. package/docs/WorkspaceUpdateRequest.md +33 -0
  102. package/docs/WorkspaceWebApp.md +25 -0
  103. package/index.ts +1 -1
  104. package/package.json +1 -1
  105. package/scripts/git_push.sh +1 -1
@@ -0,0 +1,23 @@
1
+ # OrganizationCreateRequest
2
+
3
+ Request object for creating a new organization
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | The Organization name | [default to undefined]
10
+ **security** | [**OrganizationSecurity**](OrganizationSecurity.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { OrganizationCreateRequest } from '@cosmotech/api-ts';
16
+
17
+ const instance: OrganizationCreateRequest = {
18
+ name,
19
+ security,
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,22 @@
1
+ # OrganizationEditInfo
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 { OrganizationEditInfo } from '@cosmotech/api-ts';
15
+
16
+ const instance: OrganizationEditInfo = {
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)
@@ -0,0 +1,21 @@
1
+ # OrganizationRole
2
+
3
+ The Organization Role
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **role** | **string** | The Organization Role | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { OrganizationRole } from '@cosmotech/api-ts';
15
+
16
+ const instance: OrganizationRole = {
17
+ role,
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
+ # OrganizationSecurity
2
+
3
+ Response object for organization security information
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **_default** | **string** | The role by default | [default to undefined]
10
+ **accessControlList** | [**Array<OrganizationAccessControl>**](OrganizationAccessControl.md) | The list which can access this Organization with detailed access control information | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { OrganizationSecurity } from '@cosmotech/api-ts';
16
+
17
+ const instance: OrganizationSecurity = {
18
+ _default,
19
+ accessControlList,
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
+ # OrganizationUpdateRequest
2
+
3
+ Request object for updating an organization
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | The Organization name | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { OrganizationUpdateRequest } from '@cosmotech/api-ts';
15
+
16
+ const instance: OrganizationUpdateRequest = {
17
+ name,
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,21 @@
1
+ # QueryResult
2
+
3
+ the result of a SQL Query
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **result** | **Array<{ [key: string]: any; }>** | the list of results | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { QueryResult } from '@cosmotech/api-ts';
15
+
16
+ const instance: QueryResult = {
17
+ result,
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
+ # ResourceSizeInfo
2
+
3
+ define cpus and memory needs
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **cpu** | **string** | define cpu needs | [default to undefined]
10
+ **memory** | **string** | define memory needs | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ResourceSizeInfo } from '@cosmotech/api-ts';
16
+
17
+ const instance: ResourceSizeInfo = {
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/Run.md ADDED
@@ -0,0 +1,55 @@
1
+ # Run
2
+
3
+ a Run with only base properties
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | the Run | [optional] [readonly] [default to undefined]
10
+ **state** | [**RunState**](RunState.md) | | [optional] [default to undefined]
11
+ **organizationId** | **string** | the Organization id | [optional] [default to undefined]
12
+ **createInfo** | [**RunEditInfo**](RunEditInfo.md) | The details of the Run creation | [default to undefined]
13
+ **workflowId** | **string** | the Cosmo Tech compute cluster Argo Workflow Id to search | [optional] [default to undefined]
14
+ **csmSimulationRun** | **string** | the Cosmo Tech Simulation Run Id | [optional] [readonly] [default to undefined]
15
+ **generateName** | **string** | the base name for workflow name generation | [optional] [default to undefined]
16
+ **workflowName** | **string** | the Cosmo Tech compute cluster Argo Workflow Name | [optional] [default to undefined]
17
+ **workspaceId** | **string** | the Workspace Id | [optional] [readonly] [default to undefined]
18
+ **workspaceKey** | **string** | technical key for resource name convention and version grouping. Must be unique | [optional] [readonly] [default to undefined]
19
+ **runnerId** | **string** | the Runner Id | [optional] [readonly] [default to undefined]
20
+ **solutionId** | **string** | the Solution Id | [optional] [readonly] [default to undefined]
21
+ **runTemplateId** | **string** | the Solution Run Template id | [optional] [readonly] [default to undefined]
22
+ **computeSize** | **string** | the compute size needed for this Analysis. Standard sizes are basic and highcpu. Default is basic | [optional] [readonly] [default to undefined]
23
+ **datasetList** | **Array<string>** | the list of Dataset Id associated to this Run | [optional] [readonly] [default to undefined]
24
+ **parametersValues** | [**Array<RunTemplateParameterValue>**](RunTemplateParameterValue.md) | the list of Run Template parameters values | [optional] [readonly] [default to undefined]
25
+ **nodeLabel** | **string** | the node label request | [optional] [readonly] [default to undefined]
26
+ **containers** | [**Array<RunContainer>**](RunContainer.md) | the containers list. This information is not returned by the API. | [optional] [default to undefined]
27
+
28
+ ## Example
29
+
30
+ ```typescript
31
+ import { Run } from '@cosmotech/api-ts';
32
+
33
+ const instance: Run = {
34
+ id,
35
+ state,
36
+ organizationId,
37
+ createInfo,
38
+ workflowId,
39
+ csmSimulationRun,
40
+ generateName,
41
+ workflowName,
42
+ workspaceId,
43
+ workspaceKey,
44
+ runnerId,
45
+ solutionId,
46
+ runTemplateId,
47
+ computeSize,
48
+ datasetList,
49
+ parametersValues,
50
+ nodeLabel,
51
+ containers,
52
+ };
53
+ ```
54
+
55
+ [[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/RunApi.md ADDED
@@ -0,0 +1,442 @@
1
+ # RunApi
2
+
3
+ All URIs are relative to *http://localhost:8080*
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, application/yaml
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
+ > string 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
+ **string**
177
+
178
+ ### Authorization
179
+
180
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
181
+
182
+ ### HTTP request headers
183
+
184
+ - **Content-Type**: Not defined
185
+ - **Accept**: text/plain
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, application/yaml
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, application/yaml
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, application/yaml
369
+ - **Accept**: application/json, application/yaml
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, application/yaml
432
+ - **Accept**: application/json, application/yaml
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&lt;string&gt;** | the list of run arguments for the container | [optional] [default to undefined]
16
+ **dependencies** | **Array&lt;string&gt;** | 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)