@cosmotech/api-ts 4.0.0-dev9 → 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 +110 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +210 -2
- package/api.ts +50 -50
- package/base.ts +1 -1
- package/common.ts +22 -44
- package/configuration.ts +7 -2
- package/dist/api.d.ts +161 -161
- package/dist/api.js +49 -49
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +6 -37
- 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
|
@@ -0,0 +1,908 @@
|
|
|
1
|
+
# RunnerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**addRunnerAccessControl**](#addrunneraccesscontrol) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access | Add a control access to the Runner|
|
|
8
|
+
|[**createRunner**](#createrunner) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners | Create a new Runner|
|
|
9
|
+
|[**deleteRunner**](#deleterunner) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} | Delete a runner|
|
|
10
|
+
|[**getRunner**](#getrunner) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} | Get the details of an runner|
|
|
11
|
+
|[**getRunnerAccessControl**](#getrunneraccesscontrol) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id} | Get a control access for the Runner|
|
|
12
|
+
|[**getRunnerPermissions**](#getrunnerpermissions) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/permissions/{role} | Get the Runner permission by given role|
|
|
13
|
+
|[**getRunnerSecurity**](#getrunnersecurity) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security | Get the Runner security information|
|
|
14
|
+
|[**getRunnerSecurityUsers**](#getrunnersecurityusers) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/users | Get the Runner security users list|
|
|
15
|
+
|[**listRunners**](#listrunners) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/runners | List all Runners|
|
|
16
|
+
|[**removeRunnerAccessControl**](#removerunneraccesscontrol) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id} | Remove the specified access from the given Organization Runner|
|
|
17
|
+
|[**setRunnerDefaultSecurity**](#setrunnerdefaultsecurity) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/default | Set the Runner default security|
|
|
18
|
+
|[**startRun**](#startrun) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/start | Start a run with runner parameters|
|
|
19
|
+
|[**stopRun**](#stoprun) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/stop | Stop the last run|
|
|
20
|
+
|[**updateRunner**](#updaterunner) | **PATCH** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id} | Update a runner|
|
|
21
|
+
|[**updateRunnerAccessControl**](#updaterunneraccesscontrol) | **PATCH** /organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/security/access/{identity_id} | Update the specified access to User for a Runner|
|
|
22
|
+
|
|
23
|
+
# **addRunnerAccessControl**
|
|
24
|
+
> RunnerAccessControl addRunnerAccessControl(runnerAccessControl)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Example
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import {
|
|
31
|
+
RunnerApi,
|
|
32
|
+
Configuration,
|
|
33
|
+
RunnerAccessControl
|
|
34
|
+
} from '@cosmotech/api-ts';
|
|
35
|
+
|
|
36
|
+
const configuration = new Configuration();
|
|
37
|
+
const apiInstance = new RunnerApi(configuration);
|
|
38
|
+
|
|
39
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
40
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
41
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
42
|
+
let runnerAccessControl: RunnerAccessControl; //the new Runner security access to add.
|
|
43
|
+
|
|
44
|
+
const { status, data } = await apiInstance.addRunnerAccessControl(
|
|
45
|
+
organizationId,
|
|
46
|
+
workspaceId,
|
|
47
|
+
runnerId,
|
|
48
|
+
runnerAccessControl
|
|
49
|
+
);
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Parameters
|
|
53
|
+
|
|
54
|
+
|Name | Type | Description | Notes|
|
|
55
|
+
|------------- | ------------- | ------------- | -------------|
|
|
56
|
+
| **runnerAccessControl** | **RunnerAccessControl**| the new Runner security access to add. | |
|
|
57
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
58
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
59
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Return type
|
|
63
|
+
|
|
64
|
+
**RunnerAccessControl**
|
|
65
|
+
|
|
66
|
+
### Authorization
|
|
67
|
+
|
|
68
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
69
|
+
|
|
70
|
+
### HTTP request headers
|
|
71
|
+
|
|
72
|
+
- **Content-Type**: application/json, application/yaml
|
|
73
|
+
- **Accept**: application/json
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### HTTP response details
|
|
77
|
+
| Status code | Description | Response headers |
|
|
78
|
+
|-------------|-------------|------------------|
|
|
79
|
+
|**201** | The Runner access | - |
|
|
80
|
+
|**404** | the Runner specified is unknown or you don\'t have access to it | - |
|
|
81
|
+
|
|
82
|
+
[[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)
|
|
83
|
+
|
|
84
|
+
# **createRunner**
|
|
85
|
+
> Runner createRunner(runner)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Example
|
|
89
|
+
|
|
90
|
+
```typescript
|
|
91
|
+
import {
|
|
92
|
+
RunnerApi,
|
|
93
|
+
Configuration,
|
|
94
|
+
Runner
|
|
95
|
+
} from '@cosmotech/api-ts';
|
|
96
|
+
|
|
97
|
+
const configuration = new Configuration();
|
|
98
|
+
const apiInstance = new RunnerApi(configuration);
|
|
99
|
+
|
|
100
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
101
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
102
|
+
let runner: Runner; //the Runner to create
|
|
103
|
+
|
|
104
|
+
const { status, data } = await apiInstance.createRunner(
|
|
105
|
+
organizationId,
|
|
106
|
+
workspaceId,
|
|
107
|
+
runner
|
|
108
|
+
);
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Parameters
|
|
112
|
+
|
|
113
|
+
|Name | Type | Description | Notes|
|
|
114
|
+
|------------- | ------------- | ------------- | -------------|
|
|
115
|
+
| **runner** | **Runner**| the Runner to create | |
|
|
116
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
117
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Return type
|
|
121
|
+
|
|
122
|
+
**Runner**
|
|
123
|
+
|
|
124
|
+
### Authorization
|
|
125
|
+
|
|
126
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
127
|
+
|
|
128
|
+
### HTTP request headers
|
|
129
|
+
|
|
130
|
+
- **Content-Type**: application/json, application/yaml
|
|
131
|
+
- **Accept**: application/json
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### HTTP response details
|
|
135
|
+
| Status code | Description | Response headers |
|
|
136
|
+
|-------------|-------------|------------------|
|
|
137
|
+
|**201** | the runner details | - |
|
|
138
|
+
|**400** | Bad request | - |
|
|
139
|
+
|
|
140
|
+
[[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)
|
|
141
|
+
|
|
142
|
+
# **deleteRunner**
|
|
143
|
+
> deleteRunner()
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Example
|
|
147
|
+
|
|
148
|
+
```typescript
|
|
149
|
+
import {
|
|
150
|
+
RunnerApi,
|
|
151
|
+
Configuration
|
|
152
|
+
} from '@cosmotech/api-ts';
|
|
153
|
+
|
|
154
|
+
const configuration = new Configuration();
|
|
155
|
+
const apiInstance = new RunnerApi(configuration);
|
|
156
|
+
|
|
157
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
158
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
159
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
160
|
+
|
|
161
|
+
const { status, data } = await apiInstance.deleteRunner(
|
|
162
|
+
organizationId,
|
|
163
|
+
workspaceId,
|
|
164
|
+
runnerId
|
|
165
|
+
);
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Parameters
|
|
169
|
+
|
|
170
|
+
|Name | Type | Description | Notes|
|
|
171
|
+
|------------- | ------------- | ------------- | -------------|
|
|
172
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
173
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
174
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Return type
|
|
178
|
+
|
|
179
|
+
void (empty response body)
|
|
180
|
+
|
|
181
|
+
### Authorization
|
|
182
|
+
|
|
183
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
184
|
+
|
|
185
|
+
### HTTP request headers
|
|
186
|
+
|
|
187
|
+
- **Content-Type**: Not defined
|
|
188
|
+
- **Accept**: Not defined
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
### HTTP response details
|
|
192
|
+
| Status code | Description | Response headers |
|
|
193
|
+
|-------------|-------------|------------------|
|
|
194
|
+
|**204** | Request succeeded | - |
|
|
195
|
+
|**404** | the Runner specified is unknown or you don\'t have access to it | - |
|
|
196
|
+
|
|
197
|
+
[[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)
|
|
198
|
+
|
|
199
|
+
# **getRunner**
|
|
200
|
+
> Runner getRunner()
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Example
|
|
204
|
+
|
|
205
|
+
```typescript
|
|
206
|
+
import {
|
|
207
|
+
RunnerApi,
|
|
208
|
+
Configuration
|
|
209
|
+
} from '@cosmotech/api-ts';
|
|
210
|
+
|
|
211
|
+
const configuration = new Configuration();
|
|
212
|
+
const apiInstance = new RunnerApi(configuration);
|
|
213
|
+
|
|
214
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
215
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
216
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
217
|
+
|
|
218
|
+
const { status, data } = await apiInstance.getRunner(
|
|
219
|
+
organizationId,
|
|
220
|
+
workspaceId,
|
|
221
|
+
runnerId
|
|
222
|
+
);
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### Parameters
|
|
226
|
+
|
|
227
|
+
|Name | Type | Description | Notes|
|
|
228
|
+
|------------- | ------------- | ------------- | -------------|
|
|
229
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
230
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
231
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Return type
|
|
235
|
+
|
|
236
|
+
**Runner**
|
|
237
|
+
|
|
238
|
+
### Authorization
|
|
239
|
+
|
|
240
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
241
|
+
|
|
242
|
+
### HTTP request headers
|
|
243
|
+
|
|
244
|
+
- **Content-Type**: Not defined
|
|
245
|
+
- **Accept**: application/json
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
### HTTP response details
|
|
249
|
+
| Status code | Description | Response headers |
|
|
250
|
+
|-------------|-------------|------------------|
|
|
251
|
+
|**200** | the Runner details | - |
|
|
252
|
+
|**404** | the Runner specified is unknown or you don\'t have access to it | - |
|
|
253
|
+
|
|
254
|
+
[[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)
|
|
255
|
+
|
|
256
|
+
# **getRunnerAccessControl**
|
|
257
|
+
> RunnerAccessControl getRunnerAccessControl()
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### Example
|
|
261
|
+
|
|
262
|
+
```typescript
|
|
263
|
+
import {
|
|
264
|
+
RunnerApi,
|
|
265
|
+
Configuration
|
|
266
|
+
} from '@cosmotech/api-ts';
|
|
267
|
+
|
|
268
|
+
const configuration = new Configuration();
|
|
269
|
+
const apiInstance = new RunnerApi(configuration);
|
|
270
|
+
|
|
271
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
272
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
273
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
274
|
+
let identityId: string; //the User identifier (default to undefined)
|
|
275
|
+
|
|
276
|
+
const { status, data } = await apiInstance.getRunnerAccessControl(
|
|
277
|
+
organizationId,
|
|
278
|
+
workspaceId,
|
|
279
|
+
runnerId,
|
|
280
|
+
identityId
|
|
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
|
+
| **identityId** | [**string**] | the User identifier | defaults to undefined|
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
### Return type
|
|
295
|
+
|
|
296
|
+
**RunnerAccessControl**
|
|
297
|
+
|
|
298
|
+
### Authorization
|
|
299
|
+
|
|
300
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
301
|
+
|
|
302
|
+
### HTTP request headers
|
|
303
|
+
|
|
304
|
+
- **Content-Type**: Not defined
|
|
305
|
+
- **Accept**: application/json
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
### HTTP response details
|
|
309
|
+
| Status code | Description | Response headers |
|
|
310
|
+
|-------------|-------------|------------------|
|
|
311
|
+
|**200** | The Runner access | - |
|
|
312
|
+
|**404** | the Runner or user specified is unknown or you don\'t have access to it | - |
|
|
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
|
+
# **getRunnerPermissions**
|
|
317
|
+
> Array<string> getRunnerPermissions()
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
### Example
|
|
321
|
+
|
|
322
|
+
```typescript
|
|
323
|
+
import {
|
|
324
|
+
RunnerApi,
|
|
325
|
+
Configuration
|
|
326
|
+
} from '@cosmotech/api-ts';
|
|
327
|
+
|
|
328
|
+
const configuration = new Configuration();
|
|
329
|
+
const apiInstance = new RunnerApi(configuration);
|
|
330
|
+
|
|
331
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
332
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
333
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
334
|
+
let role: string; //the Role (default to undefined)
|
|
335
|
+
|
|
336
|
+
const { status, data } = await apiInstance.getRunnerPermissions(
|
|
337
|
+
organizationId,
|
|
338
|
+
workspaceId,
|
|
339
|
+
runnerId,
|
|
340
|
+
role
|
|
341
|
+
);
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### Parameters
|
|
345
|
+
|
|
346
|
+
|Name | Type | Description | Notes|
|
|
347
|
+
|------------- | ------------- | ------------- | -------------|
|
|
348
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
349
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
350
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
351
|
+
| **role** | [**string**] | the Role | defaults to undefined|
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
### Return type
|
|
355
|
+
|
|
356
|
+
**Array<string>**
|
|
357
|
+
|
|
358
|
+
### Authorization
|
|
359
|
+
|
|
360
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
361
|
+
|
|
362
|
+
### HTTP request headers
|
|
363
|
+
|
|
364
|
+
- **Content-Type**: Not defined
|
|
365
|
+
- **Accept**: application/json
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
### HTTP response details
|
|
369
|
+
| Status code | Description | Response headers |
|
|
370
|
+
|-------------|-------------|------------------|
|
|
371
|
+
|**200** | The Runners security permission list | - |
|
|
372
|
+
|
|
373
|
+
[[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)
|
|
374
|
+
|
|
375
|
+
# **getRunnerSecurity**
|
|
376
|
+
> RunnerSecurity getRunnerSecurity()
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
### Example
|
|
380
|
+
|
|
381
|
+
```typescript
|
|
382
|
+
import {
|
|
383
|
+
RunnerApi,
|
|
384
|
+
Configuration
|
|
385
|
+
} from '@cosmotech/api-ts';
|
|
386
|
+
|
|
387
|
+
const configuration = new Configuration();
|
|
388
|
+
const apiInstance = new RunnerApi(configuration);
|
|
389
|
+
|
|
390
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
391
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
392
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
393
|
+
|
|
394
|
+
const { status, data } = await apiInstance.getRunnerSecurity(
|
|
395
|
+
organizationId,
|
|
396
|
+
workspaceId,
|
|
397
|
+
runnerId
|
|
398
|
+
);
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
### Parameters
|
|
402
|
+
|
|
403
|
+
|Name | Type | Description | Notes|
|
|
404
|
+
|------------- | ------------- | ------------- | -------------|
|
|
405
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
406
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
407
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
### Return type
|
|
411
|
+
|
|
412
|
+
**RunnerSecurity**
|
|
413
|
+
|
|
414
|
+
### Authorization
|
|
415
|
+
|
|
416
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
417
|
+
|
|
418
|
+
### HTTP request headers
|
|
419
|
+
|
|
420
|
+
- **Content-Type**: Not defined
|
|
421
|
+
- **Accept**: application/json
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
### HTTP response details
|
|
425
|
+
| Status code | Description | Response headers |
|
|
426
|
+
|-------------|-------------|------------------|
|
|
427
|
+
|**200** | The Runner security | - |
|
|
428
|
+
|**404** | the Runner specified is unknown or you don\'t have access to it | - |
|
|
429
|
+
|
|
430
|
+
[[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)
|
|
431
|
+
|
|
432
|
+
# **getRunnerSecurityUsers**
|
|
433
|
+
> Array<string> getRunnerSecurityUsers()
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
### Example
|
|
437
|
+
|
|
438
|
+
```typescript
|
|
439
|
+
import {
|
|
440
|
+
RunnerApi,
|
|
441
|
+
Configuration
|
|
442
|
+
} from '@cosmotech/api-ts';
|
|
443
|
+
|
|
444
|
+
const configuration = new Configuration();
|
|
445
|
+
const apiInstance = new RunnerApi(configuration);
|
|
446
|
+
|
|
447
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
448
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
449
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
450
|
+
|
|
451
|
+
const { status, data } = await apiInstance.getRunnerSecurityUsers(
|
|
452
|
+
organizationId,
|
|
453
|
+
workspaceId,
|
|
454
|
+
runnerId
|
|
455
|
+
);
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
### Parameters
|
|
459
|
+
|
|
460
|
+
|Name | Type | Description | Notes|
|
|
461
|
+
|------------- | ------------- | ------------- | -------------|
|
|
462
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
463
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
464
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
### Return type
|
|
468
|
+
|
|
469
|
+
**Array<string>**
|
|
470
|
+
|
|
471
|
+
### Authorization
|
|
472
|
+
|
|
473
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
474
|
+
|
|
475
|
+
### HTTP request headers
|
|
476
|
+
|
|
477
|
+
- **Content-Type**: Not defined
|
|
478
|
+
- **Accept**: application/json
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
### HTTP response details
|
|
482
|
+
| Status code | Description | Response headers |
|
|
483
|
+
|-------------|-------------|------------------|
|
|
484
|
+
|**200** | The Runner security users list | - |
|
|
485
|
+
|**404** | the Runner specified is unknown or you don\'t have access to it | - |
|
|
486
|
+
|
|
487
|
+
[[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)
|
|
488
|
+
|
|
489
|
+
# **listRunners**
|
|
490
|
+
> Array<Runner> listRunners()
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
### Example
|
|
494
|
+
|
|
495
|
+
```typescript
|
|
496
|
+
import {
|
|
497
|
+
RunnerApi,
|
|
498
|
+
Configuration
|
|
499
|
+
} from '@cosmotech/api-ts';
|
|
500
|
+
|
|
501
|
+
const configuration = new Configuration();
|
|
502
|
+
const apiInstance = new RunnerApi(configuration);
|
|
503
|
+
|
|
504
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
505
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
506
|
+
let page: number; //page number to query (first page is at index 0) (optional) (default to undefined)
|
|
507
|
+
let size: number; //amount of result by page (optional) (default to undefined)
|
|
508
|
+
|
|
509
|
+
const { status, data } = await apiInstance.listRunners(
|
|
510
|
+
organizationId,
|
|
511
|
+
workspaceId,
|
|
512
|
+
page,
|
|
513
|
+
size
|
|
514
|
+
);
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
### Parameters
|
|
518
|
+
|
|
519
|
+
|Name | Type | Description | Notes|
|
|
520
|
+
|------------- | ------------- | ------------- | -------------|
|
|
521
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
522
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
523
|
+
| **page** | [**number**] | page number to query (first page is at index 0) | (optional) defaults to undefined|
|
|
524
|
+
| **size** | [**number**] | amount of result by page | (optional) defaults to undefined|
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
### Return type
|
|
528
|
+
|
|
529
|
+
**Array<Runner>**
|
|
530
|
+
|
|
531
|
+
### Authorization
|
|
532
|
+
|
|
533
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
534
|
+
|
|
535
|
+
### HTTP request headers
|
|
536
|
+
|
|
537
|
+
- **Content-Type**: Not defined
|
|
538
|
+
- **Accept**: application/json
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
### HTTP response details
|
|
542
|
+
| Status code | Description | Response headers |
|
|
543
|
+
|-------------|-------------|------------------|
|
|
544
|
+
|**200** | the list of Runners | - |
|
|
545
|
+
|
|
546
|
+
[[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)
|
|
547
|
+
|
|
548
|
+
# **removeRunnerAccessControl**
|
|
549
|
+
> removeRunnerAccessControl()
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
### Example
|
|
553
|
+
|
|
554
|
+
```typescript
|
|
555
|
+
import {
|
|
556
|
+
RunnerApi,
|
|
557
|
+
Configuration
|
|
558
|
+
} from '@cosmotech/api-ts';
|
|
559
|
+
|
|
560
|
+
const configuration = new Configuration();
|
|
561
|
+
const apiInstance = new RunnerApi(configuration);
|
|
562
|
+
|
|
563
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
564
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
565
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
566
|
+
let identityId: string; //the User identifier (default to undefined)
|
|
567
|
+
|
|
568
|
+
const { status, data } = await apiInstance.removeRunnerAccessControl(
|
|
569
|
+
organizationId,
|
|
570
|
+
workspaceId,
|
|
571
|
+
runnerId,
|
|
572
|
+
identityId
|
|
573
|
+
);
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
### Parameters
|
|
577
|
+
|
|
578
|
+
|Name | Type | Description | Notes|
|
|
579
|
+
|------------- | ------------- | ------------- | -------------|
|
|
580
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
581
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
582
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
583
|
+
| **identityId** | [**string**] | the User identifier | defaults to undefined|
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
### Return type
|
|
587
|
+
|
|
588
|
+
void (empty response body)
|
|
589
|
+
|
|
590
|
+
### Authorization
|
|
591
|
+
|
|
592
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
593
|
+
|
|
594
|
+
### HTTP request headers
|
|
595
|
+
|
|
596
|
+
- **Content-Type**: Not defined
|
|
597
|
+
- **Accept**: Not defined
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
### HTTP response details
|
|
601
|
+
| Status code | Description | Response headers |
|
|
602
|
+
|-------------|-------------|------------------|
|
|
603
|
+
|**204** | Request succeeded | - |
|
|
604
|
+
|**404** | the Runner or the user specified is unknown or you don\'t have access to them | - |
|
|
605
|
+
|
|
606
|
+
[[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)
|
|
607
|
+
|
|
608
|
+
# **setRunnerDefaultSecurity**
|
|
609
|
+
> RunnerSecurity setRunnerDefaultSecurity(runnerRole)
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
### Example
|
|
613
|
+
|
|
614
|
+
```typescript
|
|
615
|
+
import {
|
|
616
|
+
RunnerApi,
|
|
617
|
+
Configuration,
|
|
618
|
+
RunnerRole
|
|
619
|
+
} from '@cosmotech/api-ts';
|
|
620
|
+
|
|
621
|
+
const configuration = new Configuration();
|
|
622
|
+
const apiInstance = new RunnerApi(configuration);
|
|
623
|
+
|
|
624
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
625
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
626
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
627
|
+
let runnerRole: RunnerRole; //This change the runner default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the runner.
|
|
628
|
+
|
|
629
|
+
const { status, data } = await apiInstance.setRunnerDefaultSecurity(
|
|
630
|
+
organizationId,
|
|
631
|
+
workspaceId,
|
|
632
|
+
runnerId,
|
|
633
|
+
runnerRole
|
|
634
|
+
);
|
|
635
|
+
```
|
|
636
|
+
|
|
637
|
+
### Parameters
|
|
638
|
+
|
|
639
|
+
|Name | Type | Description | Notes|
|
|
640
|
+
|------------- | ------------- | ------------- | -------------|
|
|
641
|
+
| **runnerRole** | **RunnerRole**| This change the runner default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the runner. | |
|
|
642
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
643
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
644
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
### Return type
|
|
648
|
+
|
|
649
|
+
**RunnerSecurity**
|
|
650
|
+
|
|
651
|
+
### Authorization
|
|
652
|
+
|
|
653
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
654
|
+
|
|
655
|
+
### HTTP request headers
|
|
656
|
+
|
|
657
|
+
- **Content-Type**: application/json, application/yaml
|
|
658
|
+
- **Accept**: application/json
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
### HTTP response details
|
|
662
|
+
| Status code | Description | Response headers |
|
|
663
|
+
|-------------|-------------|------------------|
|
|
664
|
+
|**201** | The Runner default visibility | - |
|
|
665
|
+
|**404** | the Runner specified is unknown or you don\'t have access to it | - |
|
|
666
|
+
|
|
667
|
+
[[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)
|
|
668
|
+
|
|
669
|
+
# **startRun**
|
|
670
|
+
> CreatedRun startRun()
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
### Example
|
|
674
|
+
|
|
675
|
+
```typescript
|
|
676
|
+
import {
|
|
677
|
+
RunnerApi,
|
|
678
|
+
Configuration
|
|
679
|
+
} from '@cosmotech/api-ts';
|
|
680
|
+
|
|
681
|
+
const configuration = new Configuration();
|
|
682
|
+
const apiInstance = new RunnerApi(configuration);
|
|
683
|
+
|
|
684
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
685
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
686
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
687
|
+
|
|
688
|
+
const { status, data } = await apiInstance.startRun(
|
|
689
|
+
organizationId,
|
|
690
|
+
workspaceId,
|
|
691
|
+
runnerId
|
|
692
|
+
);
|
|
693
|
+
```
|
|
694
|
+
|
|
695
|
+
### Parameters
|
|
696
|
+
|
|
697
|
+
|Name | Type | Description | Notes|
|
|
698
|
+
|------------- | ------------- | ------------- | -------------|
|
|
699
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
700
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
701
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
### Return type
|
|
705
|
+
|
|
706
|
+
**CreatedRun**
|
|
707
|
+
|
|
708
|
+
### Authorization
|
|
709
|
+
|
|
710
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
711
|
+
|
|
712
|
+
### HTTP request headers
|
|
713
|
+
|
|
714
|
+
- **Content-Type**: Not defined
|
|
715
|
+
- **Accept**: application/json
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
### HTTP response details
|
|
719
|
+
| Status code | Description | Response headers |
|
|
720
|
+
|-------------|-------------|------------------|
|
|
721
|
+
|**202** | the newly created Run info | - |
|
|
722
|
+
|**404** | the Runner specified is unknown or you don\'t have access to it | - |
|
|
723
|
+
|
|
724
|
+
[[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)
|
|
725
|
+
|
|
726
|
+
# **stopRun**
|
|
727
|
+
> stopRun()
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
### Example
|
|
731
|
+
|
|
732
|
+
```typescript
|
|
733
|
+
import {
|
|
734
|
+
RunnerApi,
|
|
735
|
+
Configuration
|
|
736
|
+
} from '@cosmotech/api-ts';
|
|
737
|
+
|
|
738
|
+
const configuration = new Configuration();
|
|
739
|
+
const apiInstance = new RunnerApi(configuration);
|
|
740
|
+
|
|
741
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
742
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
743
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
744
|
+
|
|
745
|
+
const { status, data } = await apiInstance.stopRun(
|
|
746
|
+
organizationId,
|
|
747
|
+
workspaceId,
|
|
748
|
+
runnerId
|
|
749
|
+
);
|
|
750
|
+
```
|
|
751
|
+
|
|
752
|
+
### Parameters
|
|
753
|
+
|
|
754
|
+
|Name | Type | Description | Notes|
|
|
755
|
+
|------------- | ------------- | ------------- | -------------|
|
|
756
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
757
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
758
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
### Return type
|
|
762
|
+
|
|
763
|
+
void (empty response body)
|
|
764
|
+
|
|
765
|
+
### Authorization
|
|
766
|
+
|
|
767
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
768
|
+
|
|
769
|
+
### HTTP request headers
|
|
770
|
+
|
|
771
|
+
- **Content-Type**: Not defined
|
|
772
|
+
- **Accept**: Not defined
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
### HTTP response details
|
|
776
|
+
| Status code | Description | Response headers |
|
|
777
|
+
|-------------|-------------|------------------|
|
|
778
|
+
|**202** | the last Run has been stopped | - |
|
|
779
|
+
|**404** | the Runner specified is unknown or you don\'t have access to it | - |
|
|
780
|
+
|
|
781
|
+
[[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)
|
|
782
|
+
|
|
783
|
+
# **updateRunner**
|
|
784
|
+
> Runner updateRunner(runner)
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
### Example
|
|
788
|
+
|
|
789
|
+
```typescript
|
|
790
|
+
import {
|
|
791
|
+
RunnerApi,
|
|
792
|
+
Configuration,
|
|
793
|
+
Runner
|
|
794
|
+
} from '@cosmotech/api-ts';
|
|
795
|
+
|
|
796
|
+
const configuration = new Configuration();
|
|
797
|
+
const apiInstance = new RunnerApi(configuration);
|
|
798
|
+
|
|
799
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
800
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
801
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
802
|
+
let runner: Runner; //the new Runner details. This endpoint can\'t be used to update security
|
|
803
|
+
|
|
804
|
+
const { status, data } = await apiInstance.updateRunner(
|
|
805
|
+
organizationId,
|
|
806
|
+
workspaceId,
|
|
807
|
+
runnerId,
|
|
808
|
+
runner
|
|
809
|
+
);
|
|
810
|
+
```
|
|
811
|
+
|
|
812
|
+
### Parameters
|
|
813
|
+
|
|
814
|
+
|Name | Type | Description | Notes|
|
|
815
|
+
|------------- | ------------- | ------------- | -------------|
|
|
816
|
+
| **runner** | **Runner**| the new Runner details. This endpoint can\'t be used to update security | |
|
|
817
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
818
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
819
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
### Return type
|
|
823
|
+
|
|
824
|
+
**Runner**
|
|
825
|
+
|
|
826
|
+
### Authorization
|
|
827
|
+
|
|
828
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
829
|
+
|
|
830
|
+
### HTTP request headers
|
|
831
|
+
|
|
832
|
+
- **Content-Type**: application/json, application/yaml
|
|
833
|
+
- **Accept**: application/json
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
### HTTP response details
|
|
837
|
+
| Status code | Description | Response headers |
|
|
838
|
+
|-------------|-------------|------------------|
|
|
839
|
+
|**200** | the runner details | - |
|
|
840
|
+
|**400** | Bad request | - |
|
|
841
|
+
|**404** | the Runner specified is unknown or you don\'t have access to it | - |
|
|
842
|
+
|
|
843
|
+
[[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)
|
|
844
|
+
|
|
845
|
+
# **updateRunnerAccessControl**
|
|
846
|
+
> RunnerAccessControl updateRunnerAccessControl(runnerRole)
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
### Example
|
|
850
|
+
|
|
851
|
+
```typescript
|
|
852
|
+
import {
|
|
853
|
+
RunnerApi,
|
|
854
|
+
Configuration,
|
|
855
|
+
RunnerRole
|
|
856
|
+
} from '@cosmotech/api-ts';
|
|
857
|
+
|
|
858
|
+
const configuration = new Configuration();
|
|
859
|
+
const apiInstance = new RunnerApi(configuration);
|
|
860
|
+
|
|
861
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
862
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
863
|
+
let runnerId: string; //the Runner identifier (default to undefined)
|
|
864
|
+
let identityId: string; //the User identifier (default to undefined)
|
|
865
|
+
let runnerRole: RunnerRole; //The new Runner Access Control
|
|
866
|
+
|
|
867
|
+
const { status, data } = await apiInstance.updateRunnerAccessControl(
|
|
868
|
+
organizationId,
|
|
869
|
+
workspaceId,
|
|
870
|
+
runnerId,
|
|
871
|
+
identityId,
|
|
872
|
+
runnerRole
|
|
873
|
+
);
|
|
874
|
+
```
|
|
875
|
+
|
|
876
|
+
### Parameters
|
|
877
|
+
|
|
878
|
+
|Name | Type | Description | Notes|
|
|
879
|
+
|------------- | ------------- | ------------- | -------------|
|
|
880
|
+
| **runnerRole** | **RunnerRole**| The new Runner Access Control | |
|
|
881
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
882
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
883
|
+
| **runnerId** | [**string**] | the Runner identifier | defaults to undefined|
|
|
884
|
+
| **identityId** | [**string**] | the User identifier | defaults to undefined|
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
### Return type
|
|
888
|
+
|
|
889
|
+
**RunnerAccessControl**
|
|
890
|
+
|
|
891
|
+
### Authorization
|
|
892
|
+
|
|
893
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
894
|
+
|
|
895
|
+
### HTTP request headers
|
|
896
|
+
|
|
897
|
+
- **Content-Type**: application/json
|
|
898
|
+
- **Accept**: application/json
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
### HTTP response details
|
|
902
|
+
| Status code | Description | Response headers |
|
|
903
|
+
|-------------|-------------|------------------|
|
|
904
|
+
|**200** | The Runner access | - |
|
|
905
|
+
|**404** | The Organization specified is unknown or you don\'t have access to it | - |
|
|
906
|
+
|
|
907
|
+
[[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)
|
|
908
|
+
|