@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
|
@@ -0,0 +1,1162 @@
|
|
|
1
|
+
# WorkspaceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**addWorkspaceAccessControl**](#addworkspaceaccesscontrol) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/security/access | Add a control access to the Workspace|
|
|
8
|
+
|[**createWorkspace**](#createworkspace) | **POST** /organizations/{organization_id}/workspaces | Create a new workspace|
|
|
9
|
+
|[**deleteAllWorkspaceFiles**](#deleteallworkspacefiles) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/files | Delete all Workspace files|
|
|
10
|
+
|[**deleteWorkspace**](#deleteworkspace) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id} | Delete a workspace|
|
|
11
|
+
|[**deleteWorkspaceFile**](#deleteworkspacefile) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/files/delete | Delete a workspace file|
|
|
12
|
+
|[**downloadWorkspaceFile**](#downloadworkspacefile) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/files/download | Download the Workspace File specified|
|
|
13
|
+
|[**findAllWorkspaceFiles**](#findallworkspacefiles) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/files | List all Workspace files|
|
|
14
|
+
|[**findAllWorkspaces**](#findallworkspaces) | **GET** /organizations/{organization_id}/workspaces | List all Workspaces|
|
|
15
|
+
|[**findWorkspaceById**](#findworkspacebyid) | **GET** /organizations/{organization_id}/workspaces/{workspace_id} | Get the details of an workspace|
|
|
16
|
+
|[**getWorkspaceAccessControl**](#getworkspaceaccesscontrol) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Get a control access for the Workspace|
|
|
17
|
+
|[**getWorkspacePermissions**](#getworkspacepermissions) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role} | Get the Workspace permission by given role|
|
|
18
|
+
|[**getWorkspaceSecurity**](#getworkspacesecurity) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/security | Get the Workspace security information|
|
|
19
|
+
|[**getWorkspaceSecurityUsers**](#getworkspacesecurityusers) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/security/users | Get the Workspace security users list|
|
|
20
|
+
|[**linkDataset**](#linkdataset) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/link | |
|
|
21
|
+
|[**removeWorkspaceAccessControl**](#removeworkspaceaccesscontrol) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Remove the specified access from the given Organization Workspace|
|
|
22
|
+
|[**setWorkspaceDefaultSecurity**](#setworkspacedefaultsecurity) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/security/default | Set the Workspace default security|
|
|
23
|
+
|[**unlinkDataset**](#unlinkdataset) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/unlink | |
|
|
24
|
+
|[**updateWorkspace**](#updateworkspace) | **PATCH** /organizations/{organization_id}/workspaces/{workspace_id} | Update a workspace|
|
|
25
|
+
|[**updateWorkspaceAccessControl**](#updateworkspaceaccesscontrol) | **PATCH** /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Update the specified access to User for a Workspace|
|
|
26
|
+
|[**uploadWorkspaceFile**](#uploadworkspacefile) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/files | Upload a file for the Workspace|
|
|
27
|
+
|
|
28
|
+
# **addWorkspaceAccessControl**
|
|
29
|
+
> WorkspaceAccessControl addWorkspaceAccessControl(workspaceAccessControl)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Example
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import {
|
|
36
|
+
WorkspaceApi,
|
|
37
|
+
Configuration,
|
|
38
|
+
WorkspaceAccessControl
|
|
39
|
+
} from '@cosmotech/api-ts';
|
|
40
|
+
|
|
41
|
+
const configuration = new Configuration();
|
|
42
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
43
|
+
|
|
44
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
45
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
46
|
+
let workspaceAccessControl: WorkspaceAccessControl; //the new Workspace security access to add.
|
|
47
|
+
|
|
48
|
+
const { status, data } = await apiInstance.addWorkspaceAccessControl(
|
|
49
|
+
organizationId,
|
|
50
|
+
workspaceId,
|
|
51
|
+
workspaceAccessControl
|
|
52
|
+
);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Parameters
|
|
56
|
+
|
|
57
|
+
|Name | Type | Description | Notes|
|
|
58
|
+
|------------- | ------------- | ------------- | -------------|
|
|
59
|
+
| **workspaceAccessControl** | **WorkspaceAccessControl**| the new Workspace security access to add. | |
|
|
60
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
61
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Return type
|
|
65
|
+
|
|
66
|
+
**WorkspaceAccessControl**
|
|
67
|
+
|
|
68
|
+
### Authorization
|
|
69
|
+
|
|
70
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
71
|
+
|
|
72
|
+
### HTTP request headers
|
|
73
|
+
|
|
74
|
+
- **Content-Type**: application/json, application/yaml
|
|
75
|
+
- **Accept**: application/json
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### HTTP response details
|
|
79
|
+
| Status code | Description | Response headers |
|
|
80
|
+
|-------------|-------------|------------------|
|
|
81
|
+
|**201** | The Workspace access | - |
|
|
82
|
+
|**404** | the Workspace specified is unknown or you don\'t have access to it | - |
|
|
83
|
+
|
|
84
|
+
[[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)
|
|
85
|
+
|
|
86
|
+
# **createWorkspace**
|
|
87
|
+
> Workspace createWorkspace(workspace)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Example
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
import {
|
|
94
|
+
WorkspaceApi,
|
|
95
|
+
Configuration,
|
|
96
|
+
Workspace
|
|
97
|
+
} from '@cosmotech/api-ts';
|
|
98
|
+
|
|
99
|
+
const configuration = new Configuration();
|
|
100
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
101
|
+
|
|
102
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
103
|
+
let workspace: Workspace; //the Workspace to create
|
|
104
|
+
|
|
105
|
+
const { status, data } = await apiInstance.createWorkspace(
|
|
106
|
+
organizationId,
|
|
107
|
+
workspace
|
|
108
|
+
);
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Parameters
|
|
112
|
+
|
|
113
|
+
|Name | Type | Description | Notes|
|
|
114
|
+
|------------- | ------------- | ------------- | -------------|
|
|
115
|
+
| **workspace** | **Workspace**| the Workspace to create | |
|
|
116
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Return type
|
|
120
|
+
|
|
121
|
+
**Workspace**
|
|
122
|
+
|
|
123
|
+
### Authorization
|
|
124
|
+
|
|
125
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
126
|
+
|
|
127
|
+
### HTTP request headers
|
|
128
|
+
|
|
129
|
+
- **Content-Type**: application/json, application/yaml
|
|
130
|
+
- **Accept**: application/json
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### HTTP response details
|
|
134
|
+
| Status code | Description | Response headers |
|
|
135
|
+
|-------------|-------------|------------------|
|
|
136
|
+
|**201** | the workspace details | - |
|
|
137
|
+
|**400** | Bad request | - |
|
|
138
|
+
|
|
139
|
+
[[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)
|
|
140
|
+
|
|
141
|
+
# **deleteAllWorkspaceFiles**
|
|
142
|
+
> deleteAllWorkspaceFiles()
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Example
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
import {
|
|
149
|
+
WorkspaceApi,
|
|
150
|
+
Configuration
|
|
151
|
+
} from '@cosmotech/api-ts';
|
|
152
|
+
|
|
153
|
+
const configuration = new Configuration();
|
|
154
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
155
|
+
|
|
156
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
157
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
158
|
+
|
|
159
|
+
const { status, data } = await apiInstance.deleteAllWorkspaceFiles(
|
|
160
|
+
organizationId,
|
|
161
|
+
workspaceId
|
|
162
|
+
);
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Parameters
|
|
166
|
+
|
|
167
|
+
|Name | Type | Description | Notes|
|
|
168
|
+
|------------- | ------------- | ------------- | -------------|
|
|
169
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
170
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### Return type
|
|
174
|
+
|
|
175
|
+
void (empty response body)
|
|
176
|
+
|
|
177
|
+
### Authorization
|
|
178
|
+
|
|
179
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
180
|
+
|
|
181
|
+
### HTTP request headers
|
|
182
|
+
|
|
183
|
+
- **Content-Type**: Not defined
|
|
184
|
+
- **Accept**: Not defined
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
### HTTP response details
|
|
188
|
+
| Status code | Description | Response headers |
|
|
189
|
+
|-------------|-------------|------------------|
|
|
190
|
+
|**204** | Request succeeded | - |
|
|
191
|
+
|**404** | the Workspace specified is unknown or you don\'t have access to them | - |
|
|
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
|
+
# **deleteWorkspace**
|
|
196
|
+
> deleteWorkspace()
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### Example
|
|
200
|
+
|
|
201
|
+
```typescript
|
|
202
|
+
import {
|
|
203
|
+
WorkspaceApi,
|
|
204
|
+
Configuration
|
|
205
|
+
} from '@cosmotech/api-ts';
|
|
206
|
+
|
|
207
|
+
const configuration = new Configuration();
|
|
208
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
209
|
+
|
|
210
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
211
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
212
|
+
|
|
213
|
+
const { status, data } = await apiInstance.deleteWorkspace(
|
|
214
|
+
organizationId,
|
|
215
|
+
workspaceId
|
|
216
|
+
);
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Parameters
|
|
220
|
+
|
|
221
|
+
|Name | Type | Description | Notes|
|
|
222
|
+
|------------- | ------------- | ------------- | -------------|
|
|
223
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
224
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
### Return type
|
|
228
|
+
|
|
229
|
+
void (empty response body)
|
|
230
|
+
|
|
231
|
+
### Authorization
|
|
232
|
+
|
|
233
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
234
|
+
|
|
235
|
+
### HTTP request headers
|
|
236
|
+
|
|
237
|
+
- **Content-Type**: Not defined
|
|
238
|
+
- **Accept**: Not defined
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
### HTTP response details
|
|
242
|
+
| Status code | Description | Response headers |
|
|
243
|
+
|-------------|-------------|------------------|
|
|
244
|
+
|**204** | the workspace details | - |
|
|
245
|
+
|**400** | Bad request | - |
|
|
246
|
+
|**404** | the Workspace specified is unknown or you don\'t have access to it | - |
|
|
247
|
+
|
|
248
|
+
[[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)
|
|
249
|
+
|
|
250
|
+
# **deleteWorkspaceFile**
|
|
251
|
+
> deleteWorkspaceFile()
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### Example
|
|
255
|
+
|
|
256
|
+
```typescript
|
|
257
|
+
import {
|
|
258
|
+
WorkspaceApi,
|
|
259
|
+
Configuration
|
|
260
|
+
} from '@cosmotech/api-ts';
|
|
261
|
+
|
|
262
|
+
const configuration = new Configuration();
|
|
263
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
264
|
+
|
|
265
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
266
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
267
|
+
let fileName: string; //the file name (default to undefined)
|
|
268
|
+
|
|
269
|
+
const { status, data } = await apiInstance.deleteWorkspaceFile(
|
|
270
|
+
organizationId,
|
|
271
|
+
workspaceId,
|
|
272
|
+
fileName
|
|
273
|
+
);
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
### Parameters
|
|
277
|
+
|
|
278
|
+
|Name | Type | Description | Notes|
|
|
279
|
+
|------------- | ------------- | ------------- | -------------|
|
|
280
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
281
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
282
|
+
| **fileName** | [**string**] | the file name | defaults to undefined|
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
### Return type
|
|
286
|
+
|
|
287
|
+
void (empty response body)
|
|
288
|
+
|
|
289
|
+
### Authorization
|
|
290
|
+
|
|
291
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
292
|
+
|
|
293
|
+
### HTTP request headers
|
|
294
|
+
|
|
295
|
+
- **Content-Type**: Not defined
|
|
296
|
+
- **Accept**: Not defined
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
### HTTP response details
|
|
300
|
+
| Status code | Description | Response headers |
|
|
301
|
+
|-------------|-------------|------------------|
|
|
302
|
+
|**204** | Request succeeded | - |
|
|
303
|
+
|**404** | the Workspace or the file specified is unknown or you don\'t have access to them | - |
|
|
304
|
+
|
|
305
|
+
[[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)
|
|
306
|
+
|
|
307
|
+
# **downloadWorkspaceFile**
|
|
308
|
+
> File downloadWorkspaceFile()
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
### Example
|
|
312
|
+
|
|
313
|
+
```typescript
|
|
314
|
+
import {
|
|
315
|
+
WorkspaceApi,
|
|
316
|
+
Configuration
|
|
317
|
+
} from '@cosmotech/api-ts';
|
|
318
|
+
|
|
319
|
+
const configuration = new Configuration();
|
|
320
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
321
|
+
|
|
322
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
323
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
324
|
+
let fileName: string; //the file name (default to undefined)
|
|
325
|
+
|
|
326
|
+
const { status, data } = await apiInstance.downloadWorkspaceFile(
|
|
327
|
+
organizationId,
|
|
328
|
+
workspaceId,
|
|
329
|
+
fileName
|
|
330
|
+
);
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Parameters
|
|
334
|
+
|
|
335
|
+
|Name | Type | Description | Notes|
|
|
336
|
+
|------------- | ------------- | ------------- | -------------|
|
|
337
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
338
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
339
|
+
| **fileName** | [**string**] | the file name | defaults to undefined|
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
### Return type
|
|
343
|
+
|
|
344
|
+
**File**
|
|
345
|
+
|
|
346
|
+
### Authorization
|
|
347
|
+
|
|
348
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
349
|
+
|
|
350
|
+
### HTTP request headers
|
|
351
|
+
|
|
352
|
+
- **Content-Type**: Not defined
|
|
353
|
+
- **Accept**: application/octet-stream
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
### HTTP response details
|
|
357
|
+
| Status code | Description | Response headers |
|
|
358
|
+
|-------------|-------------|------------------|
|
|
359
|
+
|**200** | the workspace file as a resource | - |
|
|
360
|
+
|**404** | the Workspace file specified is unknown or you don\'t have access to it | - |
|
|
361
|
+
|
|
362
|
+
[[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)
|
|
363
|
+
|
|
364
|
+
# **findAllWorkspaceFiles**
|
|
365
|
+
> Array<WorkspaceFile> findAllWorkspaceFiles()
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
### Example
|
|
369
|
+
|
|
370
|
+
```typescript
|
|
371
|
+
import {
|
|
372
|
+
WorkspaceApi,
|
|
373
|
+
Configuration
|
|
374
|
+
} from '@cosmotech/api-ts';
|
|
375
|
+
|
|
376
|
+
const configuration = new Configuration();
|
|
377
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
378
|
+
|
|
379
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
380
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
381
|
+
|
|
382
|
+
const { status, data } = await apiInstance.findAllWorkspaceFiles(
|
|
383
|
+
organizationId,
|
|
384
|
+
workspaceId
|
|
385
|
+
);
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
### Parameters
|
|
389
|
+
|
|
390
|
+
|Name | Type | Description | Notes|
|
|
391
|
+
|------------- | ------------- | ------------- | -------------|
|
|
392
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
393
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
### Return type
|
|
397
|
+
|
|
398
|
+
**Array<WorkspaceFile>**
|
|
399
|
+
|
|
400
|
+
### Authorization
|
|
401
|
+
|
|
402
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
403
|
+
|
|
404
|
+
### HTTP request headers
|
|
405
|
+
|
|
406
|
+
- **Content-Type**: Not defined
|
|
407
|
+
- **Accept**: application/json
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
### HTTP response details
|
|
411
|
+
| Status code | Description | Response headers |
|
|
412
|
+
|-------------|-------------|------------------|
|
|
413
|
+
|**200** | the workspace files | - |
|
|
414
|
+
|**404** | the Workspace specified is unknown or you don\'t have access to it | - |
|
|
415
|
+
|
|
416
|
+
[[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)
|
|
417
|
+
|
|
418
|
+
# **findAllWorkspaces**
|
|
419
|
+
> Array<Workspace> findAllWorkspaces()
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
### Example
|
|
423
|
+
|
|
424
|
+
```typescript
|
|
425
|
+
import {
|
|
426
|
+
WorkspaceApi,
|
|
427
|
+
Configuration
|
|
428
|
+
} from '@cosmotech/api-ts';
|
|
429
|
+
|
|
430
|
+
const configuration = new Configuration();
|
|
431
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
432
|
+
|
|
433
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
434
|
+
let page: number; //page number to query (first page is at index 0) (optional) (default to undefined)
|
|
435
|
+
let size: number; //amount of result by page (optional) (default to undefined)
|
|
436
|
+
|
|
437
|
+
const { status, data } = await apiInstance.findAllWorkspaces(
|
|
438
|
+
organizationId,
|
|
439
|
+
page,
|
|
440
|
+
size
|
|
441
|
+
);
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
### Parameters
|
|
445
|
+
|
|
446
|
+
|Name | Type | Description | Notes|
|
|
447
|
+
|------------- | ------------- | ------------- | -------------|
|
|
448
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
449
|
+
| **page** | [**number**] | page number to query (first page is at index 0) | (optional) defaults to undefined|
|
|
450
|
+
| **size** | [**number**] | amount of result by page | (optional) defaults to undefined|
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
### Return type
|
|
454
|
+
|
|
455
|
+
**Array<Workspace>**
|
|
456
|
+
|
|
457
|
+
### Authorization
|
|
458
|
+
|
|
459
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
460
|
+
|
|
461
|
+
### HTTP request headers
|
|
462
|
+
|
|
463
|
+
- **Content-Type**: Not defined
|
|
464
|
+
- **Accept**: application/json
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
### HTTP response details
|
|
468
|
+
| Status code | Description | Response headers |
|
|
469
|
+
|-------------|-------------|------------------|
|
|
470
|
+
|**200** | the workspace details | - |
|
|
471
|
+
|
|
472
|
+
[[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)
|
|
473
|
+
|
|
474
|
+
# **findWorkspaceById**
|
|
475
|
+
> Workspace findWorkspaceById()
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
### Example
|
|
479
|
+
|
|
480
|
+
```typescript
|
|
481
|
+
import {
|
|
482
|
+
WorkspaceApi,
|
|
483
|
+
Configuration
|
|
484
|
+
} from '@cosmotech/api-ts';
|
|
485
|
+
|
|
486
|
+
const configuration = new Configuration();
|
|
487
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
488
|
+
|
|
489
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
490
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
491
|
+
|
|
492
|
+
const { status, data } = await apiInstance.findWorkspaceById(
|
|
493
|
+
organizationId,
|
|
494
|
+
workspaceId
|
|
495
|
+
);
|
|
496
|
+
```
|
|
497
|
+
|
|
498
|
+
### Parameters
|
|
499
|
+
|
|
500
|
+
|Name | Type | Description | Notes|
|
|
501
|
+
|------------- | ------------- | ------------- | -------------|
|
|
502
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
503
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
### Return type
|
|
507
|
+
|
|
508
|
+
**Workspace**
|
|
509
|
+
|
|
510
|
+
### Authorization
|
|
511
|
+
|
|
512
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
513
|
+
|
|
514
|
+
### HTTP request headers
|
|
515
|
+
|
|
516
|
+
- **Content-Type**: Not defined
|
|
517
|
+
- **Accept**: application/json
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
### HTTP response details
|
|
521
|
+
| Status code | Description | Response headers |
|
|
522
|
+
|-------------|-------------|------------------|
|
|
523
|
+
|**200** | the Workspace details | - |
|
|
524
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to it | - |
|
|
525
|
+
|
|
526
|
+
[[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)
|
|
527
|
+
|
|
528
|
+
# **getWorkspaceAccessControl**
|
|
529
|
+
> WorkspaceAccessControl getWorkspaceAccessControl()
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
### Example
|
|
533
|
+
|
|
534
|
+
```typescript
|
|
535
|
+
import {
|
|
536
|
+
WorkspaceApi,
|
|
537
|
+
Configuration
|
|
538
|
+
} from '@cosmotech/api-ts';
|
|
539
|
+
|
|
540
|
+
const configuration = new Configuration();
|
|
541
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
542
|
+
|
|
543
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
544
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
545
|
+
let identityId: string; //the User identifier (default to undefined)
|
|
546
|
+
|
|
547
|
+
const { status, data } = await apiInstance.getWorkspaceAccessControl(
|
|
548
|
+
organizationId,
|
|
549
|
+
workspaceId,
|
|
550
|
+
identityId
|
|
551
|
+
);
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
### Parameters
|
|
555
|
+
|
|
556
|
+
|Name | Type | Description | Notes|
|
|
557
|
+
|------------- | ------------- | ------------- | -------------|
|
|
558
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
559
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
560
|
+
| **identityId** | [**string**] | the User identifier | defaults to undefined|
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
### Return type
|
|
564
|
+
|
|
565
|
+
**WorkspaceAccessControl**
|
|
566
|
+
|
|
567
|
+
### Authorization
|
|
568
|
+
|
|
569
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
570
|
+
|
|
571
|
+
### HTTP request headers
|
|
572
|
+
|
|
573
|
+
- **Content-Type**: Not defined
|
|
574
|
+
- **Accept**: application/json
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
### HTTP response details
|
|
578
|
+
| Status code | Description | Response headers |
|
|
579
|
+
|-------------|-------------|------------------|
|
|
580
|
+
|**200** | The Workspace access | - |
|
|
581
|
+
|**404** | The Workspace or user specified is unknown or you don\'t have access to it | - |
|
|
582
|
+
|
|
583
|
+
[[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)
|
|
584
|
+
|
|
585
|
+
# **getWorkspacePermissions**
|
|
586
|
+
> Array<string> getWorkspacePermissions()
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
### Example
|
|
590
|
+
|
|
591
|
+
```typescript
|
|
592
|
+
import {
|
|
593
|
+
WorkspaceApi,
|
|
594
|
+
Configuration
|
|
595
|
+
} from '@cosmotech/api-ts';
|
|
596
|
+
|
|
597
|
+
const configuration = new Configuration();
|
|
598
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
599
|
+
|
|
600
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
601
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
602
|
+
let role: string; //the Role (default to undefined)
|
|
603
|
+
|
|
604
|
+
const { status, data } = await apiInstance.getWorkspacePermissions(
|
|
605
|
+
organizationId,
|
|
606
|
+
workspaceId,
|
|
607
|
+
role
|
|
608
|
+
);
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
### Parameters
|
|
612
|
+
|
|
613
|
+
|Name | Type | Description | Notes|
|
|
614
|
+
|------------- | ------------- | ------------- | -------------|
|
|
615
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
616
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
617
|
+
| **role** | [**string**] | the Role | defaults to undefined|
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
### Return type
|
|
621
|
+
|
|
622
|
+
**Array<string>**
|
|
623
|
+
|
|
624
|
+
### Authorization
|
|
625
|
+
|
|
626
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
627
|
+
|
|
628
|
+
### HTTP request headers
|
|
629
|
+
|
|
630
|
+
- **Content-Type**: Not defined
|
|
631
|
+
- **Accept**: application/json
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
### HTTP response details
|
|
635
|
+
| Status code | Description | Response headers |
|
|
636
|
+
|-------------|-------------|------------------|
|
|
637
|
+
|**200** | The Workspace security permission list | - |
|
|
638
|
+
|
|
639
|
+
[[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)
|
|
640
|
+
|
|
641
|
+
# **getWorkspaceSecurity**
|
|
642
|
+
> WorkspaceSecurity getWorkspaceSecurity()
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
### Example
|
|
646
|
+
|
|
647
|
+
```typescript
|
|
648
|
+
import {
|
|
649
|
+
WorkspaceApi,
|
|
650
|
+
Configuration
|
|
651
|
+
} from '@cosmotech/api-ts';
|
|
652
|
+
|
|
653
|
+
const configuration = new Configuration();
|
|
654
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
655
|
+
|
|
656
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
657
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
658
|
+
|
|
659
|
+
const { status, data } = await apiInstance.getWorkspaceSecurity(
|
|
660
|
+
organizationId,
|
|
661
|
+
workspaceId
|
|
662
|
+
);
|
|
663
|
+
```
|
|
664
|
+
|
|
665
|
+
### Parameters
|
|
666
|
+
|
|
667
|
+
|Name | Type | Description | Notes|
|
|
668
|
+
|------------- | ------------- | ------------- | -------------|
|
|
669
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
670
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
### Return type
|
|
674
|
+
|
|
675
|
+
**WorkspaceSecurity**
|
|
676
|
+
|
|
677
|
+
### Authorization
|
|
678
|
+
|
|
679
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
680
|
+
|
|
681
|
+
### HTTP request headers
|
|
682
|
+
|
|
683
|
+
- **Content-Type**: Not defined
|
|
684
|
+
- **Accept**: application/json
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
### HTTP response details
|
|
688
|
+
| Status code | Description | Response headers |
|
|
689
|
+
|-------------|-------------|------------------|
|
|
690
|
+
|**200** | The Workspace security | - |
|
|
691
|
+
|**404** | the Workspace specified is unknown or you don\'t have access to it | - |
|
|
692
|
+
|
|
693
|
+
[[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)
|
|
694
|
+
|
|
695
|
+
# **getWorkspaceSecurityUsers**
|
|
696
|
+
> Array<string> getWorkspaceSecurityUsers()
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
### Example
|
|
700
|
+
|
|
701
|
+
```typescript
|
|
702
|
+
import {
|
|
703
|
+
WorkspaceApi,
|
|
704
|
+
Configuration
|
|
705
|
+
} from '@cosmotech/api-ts';
|
|
706
|
+
|
|
707
|
+
const configuration = new Configuration();
|
|
708
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
709
|
+
|
|
710
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
711
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
712
|
+
|
|
713
|
+
const { status, data } = await apiInstance.getWorkspaceSecurityUsers(
|
|
714
|
+
organizationId,
|
|
715
|
+
workspaceId
|
|
716
|
+
);
|
|
717
|
+
```
|
|
718
|
+
|
|
719
|
+
### Parameters
|
|
720
|
+
|
|
721
|
+
|Name | Type | Description | Notes|
|
|
722
|
+
|------------- | ------------- | ------------- | -------------|
|
|
723
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
724
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
### Return type
|
|
728
|
+
|
|
729
|
+
**Array<string>**
|
|
730
|
+
|
|
731
|
+
### Authorization
|
|
732
|
+
|
|
733
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
734
|
+
|
|
735
|
+
### HTTP request headers
|
|
736
|
+
|
|
737
|
+
- **Content-Type**: Not defined
|
|
738
|
+
- **Accept**: application/json
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
### HTTP response details
|
|
742
|
+
| Status code | Description | Response headers |
|
|
743
|
+
|-------------|-------------|------------------|
|
|
744
|
+
|**200** | The Workspace security users list | - |
|
|
745
|
+
|**404** | the Workspace or the User specified is unknown or you don\'t have access to them | - |
|
|
746
|
+
|
|
747
|
+
[[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)
|
|
748
|
+
|
|
749
|
+
# **linkDataset**
|
|
750
|
+
> Workspace linkDataset()
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
### Example
|
|
754
|
+
|
|
755
|
+
```typescript
|
|
756
|
+
import {
|
|
757
|
+
WorkspaceApi,
|
|
758
|
+
Configuration
|
|
759
|
+
} from '@cosmotech/api-ts';
|
|
760
|
+
|
|
761
|
+
const configuration = new Configuration();
|
|
762
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
763
|
+
|
|
764
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
765
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
766
|
+
let datasetId: string; //dataset id to be linked to (default to undefined)
|
|
767
|
+
|
|
768
|
+
const { status, data } = await apiInstance.linkDataset(
|
|
769
|
+
organizationId,
|
|
770
|
+
workspaceId,
|
|
771
|
+
datasetId
|
|
772
|
+
);
|
|
773
|
+
```
|
|
774
|
+
|
|
775
|
+
### Parameters
|
|
776
|
+
|
|
777
|
+
|Name | Type | Description | Notes|
|
|
778
|
+
|------------- | ------------- | ------------- | -------------|
|
|
779
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
780
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
781
|
+
| **datasetId** | [**string**] | dataset id to be linked to | defaults to undefined|
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
### Return type
|
|
785
|
+
|
|
786
|
+
**Workspace**
|
|
787
|
+
|
|
788
|
+
### Authorization
|
|
789
|
+
|
|
790
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
791
|
+
|
|
792
|
+
### HTTP request headers
|
|
793
|
+
|
|
794
|
+
- **Content-Type**: Not defined
|
|
795
|
+
- **Accept**: application/json
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
### HTTP response details
|
|
799
|
+
| Status code | Description | Response headers |
|
|
800
|
+
|-------------|-------------|------------------|
|
|
801
|
+
|**200** | the workspace details | - |
|
|
802
|
+
|**400** | Bad request | - |
|
|
803
|
+
|**404** | the workspace specified is unknown or you don\'t have access to it | - |
|
|
804
|
+
|
|
805
|
+
[[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)
|
|
806
|
+
|
|
807
|
+
# **removeWorkspaceAccessControl**
|
|
808
|
+
> removeWorkspaceAccessControl()
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
### Example
|
|
812
|
+
|
|
813
|
+
```typescript
|
|
814
|
+
import {
|
|
815
|
+
WorkspaceApi,
|
|
816
|
+
Configuration
|
|
817
|
+
} from '@cosmotech/api-ts';
|
|
818
|
+
|
|
819
|
+
const configuration = new Configuration();
|
|
820
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
821
|
+
|
|
822
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
823
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
824
|
+
let identityId: string; //the User identifier (default to undefined)
|
|
825
|
+
|
|
826
|
+
const { status, data } = await apiInstance.removeWorkspaceAccessControl(
|
|
827
|
+
organizationId,
|
|
828
|
+
workspaceId,
|
|
829
|
+
identityId
|
|
830
|
+
);
|
|
831
|
+
```
|
|
832
|
+
|
|
833
|
+
### Parameters
|
|
834
|
+
|
|
835
|
+
|Name | Type | Description | Notes|
|
|
836
|
+
|------------- | ------------- | ------------- | -------------|
|
|
837
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
838
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
839
|
+
| **identityId** | [**string**] | the User identifier | defaults to undefined|
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
### Return type
|
|
843
|
+
|
|
844
|
+
void (empty response body)
|
|
845
|
+
|
|
846
|
+
### Authorization
|
|
847
|
+
|
|
848
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
849
|
+
|
|
850
|
+
### HTTP request headers
|
|
851
|
+
|
|
852
|
+
- **Content-Type**: Not defined
|
|
853
|
+
- **Accept**: Not defined
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
### HTTP response details
|
|
857
|
+
| Status code | Description | Response headers |
|
|
858
|
+
|-------------|-------------|------------------|
|
|
859
|
+
|**204** | Request succeeded | - |
|
|
860
|
+
|**404** | The Workspace or the user specified is unknown or you don\'t have access to them | - |
|
|
861
|
+
|
|
862
|
+
[[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)
|
|
863
|
+
|
|
864
|
+
# **setWorkspaceDefaultSecurity**
|
|
865
|
+
> WorkspaceSecurity setWorkspaceDefaultSecurity(workspaceRole)
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
### Example
|
|
869
|
+
|
|
870
|
+
```typescript
|
|
871
|
+
import {
|
|
872
|
+
WorkspaceApi,
|
|
873
|
+
Configuration,
|
|
874
|
+
WorkspaceRole
|
|
875
|
+
} from '@cosmotech/api-ts';
|
|
876
|
+
|
|
877
|
+
const configuration = new Configuration();
|
|
878
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
879
|
+
|
|
880
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
881
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
882
|
+
let workspaceRole: WorkspaceRole; //This change the workspace 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 workspace.
|
|
883
|
+
|
|
884
|
+
const { status, data } = await apiInstance.setWorkspaceDefaultSecurity(
|
|
885
|
+
organizationId,
|
|
886
|
+
workspaceId,
|
|
887
|
+
workspaceRole
|
|
888
|
+
);
|
|
889
|
+
```
|
|
890
|
+
|
|
891
|
+
### Parameters
|
|
892
|
+
|
|
893
|
+
|Name | Type | Description | Notes|
|
|
894
|
+
|------------- | ------------- | ------------- | -------------|
|
|
895
|
+
| **workspaceRole** | **WorkspaceRole**| This change the workspace 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 workspace. | |
|
|
896
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
897
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
### Return type
|
|
901
|
+
|
|
902
|
+
**WorkspaceSecurity**
|
|
903
|
+
|
|
904
|
+
### Authorization
|
|
905
|
+
|
|
906
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
907
|
+
|
|
908
|
+
### HTTP request headers
|
|
909
|
+
|
|
910
|
+
- **Content-Type**: application/json, application/yaml
|
|
911
|
+
- **Accept**: application/json
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
### HTTP response details
|
|
915
|
+
| Status code | Description | Response headers |
|
|
916
|
+
|-------------|-------------|------------------|
|
|
917
|
+
|**201** | The Workspace default visibility | - |
|
|
918
|
+
|**404** | the Workspace specified is unknown or you don\'t have access to it | - |
|
|
919
|
+
|
|
920
|
+
[[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)
|
|
921
|
+
|
|
922
|
+
# **unlinkDataset**
|
|
923
|
+
> Workspace unlinkDataset()
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
### Example
|
|
927
|
+
|
|
928
|
+
```typescript
|
|
929
|
+
import {
|
|
930
|
+
WorkspaceApi,
|
|
931
|
+
Configuration
|
|
932
|
+
} from '@cosmotech/api-ts';
|
|
933
|
+
|
|
934
|
+
const configuration = new Configuration();
|
|
935
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
936
|
+
|
|
937
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
938
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
939
|
+
let datasetId: string; //dataset id to be linked to (default to undefined)
|
|
940
|
+
|
|
941
|
+
const { status, data } = await apiInstance.unlinkDataset(
|
|
942
|
+
organizationId,
|
|
943
|
+
workspaceId,
|
|
944
|
+
datasetId
|
|
945
|
+
);
|
|
946
|
+
```
|
|
947
|
+
|
|
948
|
+
### Parameters
|
|
949
|
+
|
|
950
|
+
|Name | Type | Description | Notes|
|
|
951
|
+
|------------- | ------------- | ------------- | -------------|
|
|
952
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
953
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
954
|
+
| **datasetId** | [**string**] | dataset id to be linked to | defaults to undefined|
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
### Return type
|
|
958
|
+
|
|
959
|
+
**Workspace**
|
|
960
|
+
|
|
961
|
+
### Authorization
|
|
962
|
+
|
|
963
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
964
|
+
|
|
965
|
+
### HTTP request headers
|
|
966
|
+
|
|
967
|
+
- **Content-Type**: Not defined
|
|
968
|
+
- **Accept**: application/json
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
### HTTP response details
|
|
972
|
+
| Status code | Description | Response headers |
|
|
973
|
+
|-------------|-------------|------------------|
|
|
974
|
+
|**200** | the workspace details | - |
|
|
975
|
+
|**400** | Bad request | - |
|
|
976
|
+
|**404** | the Dataset specified is unknown or you don\'t have access to it | - |
|
|
977
|
+
|
|
978
|
+
[[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)
|
|
979
|
+
|
|
980
|
+
# **updateWorkspace**
|
|
981
|
+
> Workspace updateWorkspace(workspace)
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
### Example
|
|
985
|
+
|
|
986
|
+
```typescript
|
|
987
|
+
import {
|
|
988
|
+
WorkspaceApi,
|
|
989
|
+
Configuration,
|
|
990
|
+
Workspace
|
|
991
|
+
} from '@cosmotech/api-ts';
|
|
992
|
+
|
|
993
|
+
const configuration = new Configuration();
|
|
994
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
995
|
+
|
|
996
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
997
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
998
|
+
let workspace: Workspace; //The new Workspace details. This endpoint can\'t be used to update security
|
|
999
|
+
|
|
1000
|
+
const { status, data } = await apiInstance.updateWorkspace(
|
|
1001
|
+
organizationId,
|
|
1002
|
+
workspaceId,
|
|
1003
|
+
workspace
|
|
1004
|
+
);
|
|
1005
|
+
```
|
|
1006
|
+
|
|
1007
|
+
### Parameters
|
|
1008
|
+
|
|
1009
|
+
|Name | Type | Description | Notes|
|
|
1010
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1011
|
+
| **workspace** | **Workspace**| The new Workspace details. This endpoint can\'t be used to update security | |
|
|
1012
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
1013
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
### Return type
|
|
1017
|
+
|
|
1018
|
+
**Workspace**
|
|
1019
|
+
|
|
1020
|
+
### Authorization
|
|
1021
|
+
|
|
1022
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
1023
|
+
|
|
1024
|
+
### HTTP request headers
|
|
1025
|
+
|
|
1026
|
+
- **Content-Type**: application/json, application/yaml
|
|
1027
|
+
- **Accept**: application/json
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
### HTTP response details
|
|
1031
|
+
| Status code | Description | Response headers |
|
|
1032
|
+
|-------------|-------------|------------------|
|
|
1033
|
+
|**200** | the workspace details | - |
|
|
1034
|
+
|**400** | Bad request | - |
|
|
1035
|
+
|**404** | the Workspace specified is unknown or you don\'t have access to it | - |
|
|
1036
|
+
|
|
1037
|
+
[[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)
|
|
1038
|
+
|
|
1039
|
+
# **updateWorkspaceAccessControl**
|
|
1040
|
+
> WorkspaceAccessControl updateWorkspaceAccessControl(workspaceRole)
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
### Example
|
|
1044
|
+
|
|
1045
|
+
```typescript
|
|
1046
|
+
import {
|
|
1047
|
+
WorkspaceApi,
|
|
1048
|
+
Configuration,
|
|
1049
|
+
WorkspaceRole
|
|
1050
|
+
} from '@cosmotech/api-ts';
|
|
1051
|
+
|
|
1052
|
+
const configuration = new Configuration();
|
|
1053
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
1054
|
+
|
|
1055
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
1056
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
1057
|
+
let identityId: string; //the User identifier (default to undefined)
|
|
1058
|
+
let workspaceRole: WorkspaceRole; //The new Workspace Access Control
|
|
1059
|
+
|
|
1060
|
+
const { status, data } = await apiInstance.updateWorkspaceAccessControl(
|
|
1061
|
+
organizationId,
|
|
1062
|
+
workspaceId,
|
|
1063
|
+
identityId,
|
|
1064
|
+
workspaceRole
|
|
1065
|
+
);
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
### Parameters
|
|
1069
|
+
|
|
1070
|
+
|Name | Type | Description | Notes|
|
|
1071
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1072
|
+
| **workspaceRole** | **WorkspaceRole**| The new Workspace Access Control | |
|
|
1073
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
1074
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
1075
|
+
| **identityId** | [**string**] | the User identifier | defaults to undefined|
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
### Return type
|
|
1079
|
+
|
|
1080
|
+
**WorkspaceAccessControl**
|
|
1081
|
+
|
|
1082
|
+
### Authorization
|
|
1083
|
+
|
|
1084
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
1085
|
+
|
|
1086
|
+
### HTTP request headers
|
|
1087
|
+
|
|
1088
|
+
- **Content-Type**: application/json
|
|
1089
|
+
- **Accept**: application/json
|
|
1090
|
+
|
|
1091
|
+
|
|
1092
|
+
### HTTP response details
|
|
1093
|
+
| Status code | Description | Response headers |
|
|
1094
|
+
|-------------|-------------|------------------|
|
|
1095
|
+
|**200** | The Workspace access | - |
|
|
1096
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to it | - |
|
|
1097
|
+
|
|
1098
|
+
[[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)
|
|
1099
|
+
|
|
1100
|
+
# **uploadWorkspaceFile**
|
|
1101
|
+
> WorkspaceFile uploadWorkspaceFile()
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
### Example
|
|
1105
|
+
|
|
1106
|
+
```typescript
|
|
1107
|
+
import {
|
|
1108
|
+
WorkspaceApi,
|
|
1109
|
+
Configuration
|
|
1110
|
+
} from '@cosmotech/api-ts';
|
|
1111
|
+
|
|
1112
|
+
const configuration = new Configuration();
|
|
1113
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
1114
|
+
|
|
1115
|
+
let organizationId: string; //the Organization identifier (default to undefined)
|
|
1116
|
+
let workspaceId: string; //the Workspace identifier (default to undefined)
|
|
1117
|
+
let file: File; // (default to undefined)
|
|
1118
|
+
let overwrite: boolean; // (optional) (default to false)
|
|
1119
|
+
let destination: string; //Destination path. Must end with a \\\'/\\\' if specifying a folder. Note that paths may or may not start with a \\\'/\\\', but they are always treated as relative to the Workspace root location. (optional) (default to undefined)
|
|
1120
|
+
|
|
1121
|
+
const { status, data } = await apiInstance.uploadWorkspaceFile(
|
|
1122
|
+
organizationId,
|
|
1123
|
+
workspaceId,
|
|
1124
|
+
file,
|
|
1125
|
+
overwrite,
|
|
1126
|
+
destination
|
|
1127
|
+
);
|
|
1128
|
+
```
|
|
1129
|
+
|
|
1130
|
+
### Parameters
|
|
1131
|
+
|
|
1132
|
+
|Name | Type | Description | Notes|
|
|
1133
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1134
|
+
| **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
|
|
1135
|
+
| **workspaceId** | [**string**] | the Workspace identifier | defaults to undefined|
|
|
1136
|
+
| **file** | [**File**] | | defaults to undefined|
|
|
1137
|
+
| **overwrite** | [**boolean**] | | (optional) defaults to false|
|
|
1138
|
+
| **destination** | [**string**] | Destination path. Must end with a \\\'/\\\' if specifying a folder. Note that paths may or may not start with a \\\'/\\\', but they are always treated as relative to the Workspace root location. | (optional) defaults to undefined|
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
### Return type
|
|
1142
|
+
|
|
1143
|
+
**WorkspaceFile**
|
|
1144
|
+
|
|
1145
|
+
### Authorization
|
|
1146
|
+
|
|
1147
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
1148
|
+
|
|
1149
|
+
### HTTP request headers
|
|
1150
|
+
|
|
1151
|
+
- **Content-Type**: multipart/form-data
|
|
1152
|
+
- **Accept**: application/json
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
### HTTP response details
|
|
1156
|
+
| Status code | Description | Response headers |
|
|
1157
|
+
|-------------|-------------|------------------|
|
|
1158
|
+
|**201** | the file resource details | - |
|
|
1159
|
+
|**400** | Bad request | - |
|
|
1160
|
+
|
|
1161
|
+
[[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)
|
|
1162
|
+
|