@daytonaio/api-client 0.1.0
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/.openapi-generator/FILES +30 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/DefaultApi.d.ts +551 -0
- package/dist/apis/DefaultApi.js +1645 -0
- package/dist/apis/DockerRegistryApi.d.ts +90 -0
- package/dist/apis/DockerRegistryApi.js +257 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/esm/apis/DefaultApi.d.ts +551 -0
- package/dist/esm/apis/DefaultApi.js +1641 -0
- package/dist/esm/apis/DockerRegistryApi.d.ts +90 -0
- package/dist/esm/apis/DockerRegistryApi.js +253 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ApiKeyListDto.d.ts +44 -0
- package/dist/esm/models/ApiKeyListDto.js +51 -0
- package/dist/esm/models/ApiKeyResponseDto.d.ts +44 -0
- package/dist/esm/models/ApiKeyResponseDto.js +51 -0
- package/dist/esm/models/CreateApiKeyDto.d.ts +32 -0
- package/dist/esm/models/CreateApiKeyDto.js +43 -0
- package/dist/esm/models/CreateDockerRegistryDto.d.ts +62 -0
- package/dist/esm/models/CreateDockerRegistryDto.js +61 -0
- package/dist/esm/models/CreateWorkspaceDto.d.ts +64 -0
- package/dist/esm/models/CreateWorkspaceDto.js +63 -0
- package/dist/esm/models/ExecuteRequestDto.d.ts +38 -0
- package/dist/esm/models/ExecuteRequestDto.js +45 -0
- package/dist/esm/models/ExecuteResponseDto.d.ts +38 -0
- package/dist/esm/models/ExecuteResponseDto.js +47 -0
- package/dist/esm/models/GitAddRequestDto.d.ts +38 -0
- package/dist/esm/models/GitAddRequestDto.js +47 -0
- package/dist/esm/models/GitBranchRequestDto.d.ts +38 -0
- package/dist/esm/models/GitBranchRequestDto.js +47 -0
- package/dist/esm/models/GitCloneRequestDto.d.ts +62 -0
- package/dist/esm/models/GitCloneRequestDto.js +55 -0
- package/dist/esm/models/GitCommitRequestDto.d.ts +50 -0
- package/dist/esm/models/GitCommitRequestDto.js +55 -0
- package/dist/esm/models/GitRepoRequestDto.d.ts +44 -0
- package/dist/esm/models/GitRepoRequestDto.js +47 -0
- package/dist/esm/models/ReplaceRequestDto.d.ts +44 -0
- package/dist/esm/models/ReplaceRequestDto.js +51 -0
- package/dist/esm/models/UpdateDockerRegistryDto.d.ts +62 -0
- package/dist/esm/models/UpdateDockerRegistryDto.js +51 -0
- package/dist/esm/models/WorkspaceDto.d.ts +71 -0
- package/dist/esm/models/WorkspaceDto.js +66 -0
- package/dist/esm/models/WorkspaceInfoDto.d.ts +44 -0
- package/dist/esm/models/WorkspaceInfoDto.js +49 -0
- package/dist/esm/models/WorkspaceLabelsDto.d.ts +34 -0
- package/dist/esm/models/WorkspaceLabelsDto.js +43 -0
- package/dist/esm/models/index.d.ts +17 -0
- package/dist/esm/models/index.js +19 -0
- package/dist/esm/runtime.d.ts +181 -0
- package/dist/esm/runtime.js +326 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ApiKeyListDto.d.ts +44 -0
- package/dist/models/ApiKeyListDto.js +59 -0
- package/dist/models/ApiKeyResponseDto.d.ts +44 -0
- package/dist/models/ApiKeyResponseDto.js +59 -0
- package/dist/models/CreateApiKeyDto.d.ts +32 -0
- package/dist/models/CreateApiKeyDto.js +51 -0
- package/dist/models/CreateDockerRegistryDto.d.ts +62 -0
- package/dist/models/CreateDockerRegistryDto.js +69 -0
- package/dist/models/CreateWorkspaceDto.d.ts +64 -0
- package/dist/models/CreateWorkspaceDto.js +71 -0
- package/dist/models/ExecuteRequestDto.d.ts +38 -0
- package/dist/models/ExecuteRequestDto.js +53 -0
- package/dist/models/ExecuteResponseDto.d.ts +38 -0
- package/dist/models/ExecuteResponseDto.js +55 -0
- package/dist/models/GitAddRequestDto.d.ts +38 -0
- package/dist/models/GitAddRequestDto.js +55 -0
- package/dist/models/GitBranchRequestDto.d.ts +38 -0
- package/dist/models/GitBranchRequestDto.js +55 -0
- package/dist/models/GitCloneRequestDto.d.ts +62 -0
- package/dist/models/GitCloneRequestDto.js +63 -0
- package/dist/models/GitCommitRequestDto.d.ts +50 -0
- package/dist/models/GitCommitRequestDto.js +63 -0
- package/dist/models/GitRepoRequestDto.d.ts +44 -0
- package/dist/models/GitRepoRequestDto.js +55 -0
- package/dist/models/ReplaceRequestDto.d.ts +44 -0
- package/dist/models/ReplaceRequestDto.js +59 -0
- package/dist/models/UpdateDockerRegistryDto.d.ts +62 -0
- package/dist/models/UpdateDockerRegistryDto.js +59 -0
- package/dist/models/WorkspaceDto.d.ts +71 -0
- package/dist/models/WorkspaceDto.js +74 -0
- package/dist/models/WorkspaceInfoDto.d.ts +44 -0
- package/dist/models/WorkspaceInfoDto.js +57 -0
- package/dist/models/WorkspaceLabelsDto.d.ts +34 -0
- package/dist/models/WorkspaceLabelsDto.js +51 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +35 -0
- package/dist/runtime.d.ts +181 -0
- package/dist/runtime.js +341 -0
- package/package.json +22 -0
- package/src/apis/DefaultApi.ts +2380 -0
- package/src/apis/DockerRegistryApi.ts +318 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/ApiKeyListDto.ts +84 -0
- package/src/models/ApiKeyResponseDto.ts +84 -0
- package/src/models/CreateApiKeyDto.ts +66 -0
- package/src/models/CreateDockerRegistryDto.ts +110 -0
- package/src/models/CreateWorkspaceDto.ts +111 -0
- package/src/models/ExecuteRequestDto.ts +74 -0
- package/src/models/ExecuteResponseDto.ts +75 -0
- package/src/models/GitAddRequestDto.ts +75 -0
- package/src/models/GitBranchRequestDto.ts +75 -0
- package/src/models/GitCloneRequestDto.ts +107 -0
- package/src/models/GitCommitRequestDto.ts +93 -0
- package/src/models/GitRepoRequestDto.ts +82 -0
- package/src/models/ReplaceRequestDto.ts +84 -0
- package/src/models/UpdateDockerRegistryDto.ts +105 -0
- package/src/models/WorkspaceDto.ts +127 -0
- package/src/models/WorkspaceInfoDto.ts +83 -0
- package/src/models/WorkspaceLabelsDto.ts +66 -0
- package/src/models/index.ts +19 -0
- package/src/runtime.ts +426 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,1641 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { ApiKeyListDtoFromJSON, ApiKeyResponseDtoFromJSON, CreateApiKeyDtoToJSON, CreateWorkspaceDtoToJSON, ExecuteRequestDtoToJSON, ExecuteResponseDtoFromJSON, GitAddRequestDtoToJSON, GitBranchRequestDtoToJSON, GitCloneRequestDtoToJSON, GitCommitRequestDtoToJSON, GitRepoRequestDtoToJSON, ReplaceRequestDtoToJSON, WorkspaceDtoFromJSON, WorkspaceLabelsDtoFromJSON, WorkspaceLabelsDtoToJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class DefaultApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Create a new API key
|
|
31
|
+
*/
|
|
32
|
+
apiKeyControllerCreateApiKeyRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['createApiKeyDto'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('createApiKeyDto', 'Required parameter "createApiKeyDto" was null or undefined when calling apiKeyControllerCreateApiKey().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
// oauth required
|
|
42
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
43
|
+
}
|
|
44
|
+
const response = yield this.request({
|
|
45
|
+
path: `/api-keys`,
|
|
46
|
+
method: 'POST',
|
|
47
|
+
headers: headerParameters,
|
|
48
|
+
query: queryParameters,
|
|
49
|
+
body: CreateApiKeyDtoToJSON(requestParameters['createApiKeyDto']),
|
|
50
|
+
}, initOverrides);
|
|
51
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiKeyResponseDtoFromJSON(jsonValue));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Create a new API key
|
|
56
|
+
*/
|
|
57
|
+
apiKeyControllerCreateApiKey(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const response = yield this.apiKeyControllerCreateApiKeyRaw(requestParameters, initOverrides);
|
|
60
|
+
return yield response.value();
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Delete an API key by name
|
|
65
|
+
*/
|
|
66
|
+
apiKeyControllerDeleteApiKeyRaw(requestParameters, initOverrides) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
if (requestParameters['name'] == null) {
|
|
69
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling apiKeyControllerDeleteApiKey().');
|
|
70
|
+
}
|
|
71
|
+
const queryParameters = {};
|
|
72
|
+
const headerParameters = {};
|
|
73
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
74
|
+
// oauth required
|
|
75
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
76
|
+
}
|
|
77
|
+
const response = yield this.request({
|
|
78
|
+
path: `/api-keys/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))),
|
|
79
|
+
method: 'DELETE',
|
|
80
|
+
headers: headerParameters,
|
|
81
|
+
query: queryParameters,
|
|
82
|
+
}, initOverrides);
|
|
83
|
+
return new runtime.VoidApiResponse(response);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Delete an API key by name
|
|
88
|
+
*/
|
|
89
|
+
apiKeyControllerDeleteApiKey(requestParameters, initOverrides) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
yield this.apiKeyControllerDeleteApiKeyRaw(requestParameters, initOverrides);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Get a specific API key by name
|
|
96
|
+
*/
|
|
97
|
+
apiKeyControllerGetApiKeyRaw(requestParameters, initOverrides) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
if (requestParameters['name'] == null) {
|
|
100
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling apiKeyControllerGetApiKey().');
|
|
101
|
+
}
|
|
102
|
+
const queryParameters = {};
|
|
103
|
+
const headerParameters = {};
|
|
104
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
105
|
+
// oauth required
|
|
106
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
107
|
+
}
|
|
108
|
+
const response = yield this.request({
|
|
109
|
+
path: `/api-keys/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))),
|
|
110
|
+
method: 'GET',
|
|
111
|
+
headers: headerParameters,
|
|
112
|
+
query: queryParameters,
|
|
113
|
+
}, initOverrides);
|
|
114
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiKeyListDtoFromJSON(jsonValue));
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Get a specific API key by name
|
|
119
|
+
*/
|
|
120
|
+
apiKeyControllerGetApiKey(requestParameters, initOverrides) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
const response = yield this.apiKeyControllerGetApiKeyRaw(requestParameters, initOverrides);
|
|
123
|
+
return yield response.value();
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Get all API keys for the user
|
|
128
|
+
*/
|
|
129
|
+
apiKeyControllerGetApiKeysRaw(initOverrides) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
const queryParameters = {};
|
|
132
|
+
const headerParameters = {};
|
|
133
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
134
|
+
// oauth required
|
|
135
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
136
|
+
}
|
|
137
|
+
const response = yield this.request({
|
|
138
|
+
path: `/api-keys`,
|
|
139
|
+
method: 'GET',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiKeyListDtoFromJSON));
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Get all API keys for the user
|
|
148
|
+
*/
|
|
149
|
+
apiKeyControllerGetApiKeys(initOverrides) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const response = yield this.apiKeyControllerGetApiKeysRaw(initOverrides);
|
|
152
|
+
return yield response.value();
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
*/
|
|
157
|
+
appControllerGetHelloRaw(initOverrides) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
const queryParameters = {};
|
|
160
|
+
const headerParameters = {};
|
|
161
|
+
const response = yield this.request({
|
|
162
|
+
path: `/`,
|
|
163
|
+
method: 'GET',
|
|
164
|
+
headers: headerParameters,
|
|
165
|
+
query: queryParameters,
|
|
166
|
+
}, initOverrides);
|
|
167
|
+
return new runtime.VoidApiResponse(response);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
*/
|
|
172
|
+
appControllerGetHello(initOverrides) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
yield this.appControllerGetHelloRaw(initOverrides);
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
*/
|
|
179
|
+
nodeControllerCreateRaw(requestParameters, initOverrides) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
+
if (requestParameters['body'] == null) {
|
|
182
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling nodeControllerCreate().');
|
|
183
|
+
}
|
|
184
|
+
const queryParameters = {};
|
|
185
|
+
const headerParameters = {};
|
|
186
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
187
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
188
|
+
// oauth required
|
|
189
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
190
|
+
}
|
|
191
|
+
const response = yield this.request({
|
|
192
|
+
path: `/nodes`,
|
|
193
|
+
method: 'POST',
|
|
194
|
+
headers: headerParameters,
|
|
195
|
+
query: queryParameters,
|
|
196
|
+
body: requestParameters['body'],
|
|
197
|
+
}, initOverrides);
|
|
198
|
+
return new runtime.VoidApiResponse(response);
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
*/
|
|
203
|
+
nodeControllerCreate(requestParameters, initOverrides) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
yield this.nodeControllerCreateRaw(requestParameters, initOverrides);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
*/
|
|
210
|
+
nodeControllerFindAllRaw(initOverrides) {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
const queryParameters = {};
|
|
213
|
+
const headerParameters = {};
|
|
214
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
215
|
+
// oauth required
|
|
216
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
217
|
+
}
|
|
218
|
+
const response = yield this.request({
|
|
219
|
+
path: `/nodes`,
|
|
220
|
+
method: 'GET',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
}, initOverrides);
|
|
224
|
+
return new runtime.VoidApiResponse(response);
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
*/
|
|
229
|
+
nodeControllerFindAll(initOverrides) {
|
|
230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
+
yield this.nodeControllerFindAllRaw(initOverrides);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
*/
|
|
236
|
+
nodeControllerUpdateSchedulingStatusRaw(requestParameters, initOverrides) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
if (requestParameters['id'] == null) {
|
|
239
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling nodeControllerUpdateSchedulingStatus().');
|
|
240
|
+
}
|
|
241
|
+
const queryParameters = {};
|
|
242
|
+
const headerParameters = {};
|
|
243
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
244
|
+
// oauth required
|
|
245
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
246
|
+
}
|
|
247
|
+
const response = yield this.request({
|
|
248
|
+
path: `/nodes/{id}/scheduling`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
249
|
+
method: 'PATCH',
|
|
250
|
+
headers: headerParameters,
|
|
251
|
+
query: queryParameters,
|
|
252
|
+
}, initOverrides);
|
|
253
|
+
return new runtime.VoidApiResponse(response);
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
*/
|
|
258
|
+
nodeControllerUpdateSchedulingStatus(requestParameters, initOverrides) {
|
|
259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
260
|
+
yield this.nodeControllerUpdateSchedulingStatusRaw(requestParameters, initOverrides);
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
*/
|
|
265
|
+
userControllerCreateRaw(requestParameters, initOverrides) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
if (requestParameters['body'] == null) {
|
|
268
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling userControllerCreate().');
|
|
269
|
+
}
|
|
270
|
+
const queryParameters = {};
|
|
271
|
+
const headerParameters = {};
|
|
272
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
273
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
274
|
+
// oauth required
|
|
275
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
276
|
+
}
|
|
277
|
+
const response = yield this.request({
|
|
278
|
+
path: `/users`,
|
|
279
|
+
method: 'POST',
|
|
280
|
+
headers: headerParameters,
|
|
281
|
+
query: queryParameters,
|
|
282
|
+
body: requestParameters['body'],
|
|
283
|
+
}, initOverrides);
|
|
284
|
+
return new runtime.VoidApiResponse(response);
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
*/
|
|
289
|
+
userControllerCreate(requestParameters, initOverrides) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
+
yield this.userControllerCreateRaw(requestParameters, initOverrides);
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
*/
|
|
296
|
+
userControllerFindAllRaw(initOverrides) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
const queryParameters = {};
|
|
299
|
+
const headerParameters = {};
|
|
300
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
301
|
+
// oauth required
|
|
302
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
303
|
+
}
|
|
304
|
+
const response = yield this.request({
|
|
305
|
+
path: `/users`,
|
|
306
|
+
method: 'GET',
|
|
307
|
+
headers: headerParameters,
|
|
308
|
+
query: queryParameters,
|
|
309
|
+
}, initOverrides);
|
|
310
|
+
return new runtime.VoidApiResponse(response);
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
*/
|
|
315
|
+
userControllerFindAll(initOverrides) {
|
|
316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
+
yield this.userControllerFindAllRaw(initOverrides);
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
*/
|
|
322
|
+
userControllerRegenerateKeyPairRaw(requestParameters, initOverrides) {
|
|
323
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
if (requestParameters['id'] == null) {
|
|
325
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling userControllerRegenerateKeyPair().');
|
|
326
|
+
}
|
|
327
|
+
const queryParameters = {};
|
|
328
|
+
const headerParameters = {};
|
|
329
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
330
|
+
// oauth required
|
|
331
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
332
|
+
}
|
|
333
|
+
const response = yield this.request({
|
|
334
|
+
path: `/users/{id}/regenerate-key-pair`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
335
|
+
method: 'POST',
|
|
336
|
+
headers: headerParameters,
|
|
337
|
+
query: queryParameters,
|
|
338
|
+
}, initOverrides);
|
|
339
|
+
return new runtime.VoidApiResponse(response);
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
*/
|
|
344
|
+
userControllerRegenerateKeyPair(requestParameters, initOverrides) {
|
|
345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
346
|
+
yield this.userControllerRegenerateKeyPairRaw(requestParameters, initOverrides);
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Create folder inside workspace project
|
|
351
|
+
* Create folder
|
|
352
|
+
*/
|
|
353
|
+
workspaceControllerCreateFolderRaw(requestParameters, initOverrides) {
|
|
354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
355
|
+
if (requestParameters['workspaceId'] == null) {
|
|
356
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerCreateFolder().');
|
|
357
|
+
}
|
|
358
|
+
if (requestParameters['projectId'] == null) {
|
|
359
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerCreateFolder().');
|
|
360
|
+
}
|
|
361
|
+
if (requestParameters['path'] == null) {
|
|
362
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerCreateFolder().');
|
|
363
|
+
}
|
|
364
|
+
if (requestParameters['mode'] == null) {
|
|
365
|
+
throw new runtime.RequiredError('mode', 'Required parameter "mode" was null or undefined when calling workspaceControllerCreateFolder().');
|
|
366
|
+
}
|
|
367
|
+
const queryParameters = {};
|
|
368
|
+
if (requestParameters['path'] != null) {
|
|
369
|
+
queryParameters['path'] = requestParameters['path'];
|
|
370
|
+
}
|
|
371
|
+
if (requestParameters['mode'] != null) {
|
|
372
|
+
queryParameters['mode'] = requestParameters['mode'];
|
|
373
|
+
}
|
|
374
|
+
const headerParameters = {};
|
|
375
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
376
|
+
// oauth required
|
|
377
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
378
|
+
}
|
|
379
|
+
const response = yield this.request({
|
|
380
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files/folder`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
381
|
+
method: 'POST',
|
|
382
|
+
headers: headerParameters,
|
|
383
|
+
query: queryParameters,
|
|
384
|
+
}, initOverrides);
|
|
385
|
+
return new runtime.VoidApiResponse(response);
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Create folder inside workspace project
|
|
390
|
+
* Create folder
|
|
391
|
+
*/
|
|
392
|
+
workspaceControllerCreateFolder(requestParameters, initOverrides) {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
yield this.workspaceControllerCreateFolderRaw(requestParameters, initOverrides);
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Create a workspace snapshot
|
|
399
|
+
*/
|
|
400
|
+
workspaceControllerCreateSnapshotRaw(requestParameters, initOverrides) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
402
|
+
if (requestParameters['workspaceId'] == null) {
|
|
403
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerCreateSnapshot().');
|
|
404
|
+
}
|
|
405
|
+
const queryParameters = {};
|
|
406
|
+
const headerParameters = {};
|
|
407
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
408
|
+
// oauth required
|
|
409
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
410
|
+
}
|
|
411
|
+
const response = yield this.request({
|
|
412
|
+
path: `/workspace/{workspaceId}/snapshot`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
413
|
+
method: 'POST',
|
|
414
|
+
headers: headerParameters,
|
|
415
|
+
query: queryParameters,
|
|
416
|
+
}, initOverrides);
|
|
417
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkspaceDtoFromJSON(jsonValue));
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Create a workspace snapshot
|
|
422
|
+
*/
|
|
423
|
+
workspaceControllerCreateSnapshot(requestParameters, initOverrides) {
|
|
424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
425
|
+
const response = yield this.workspaceControllerCreateSnapshotRaw(requestParameters, initOverrides);
|
|
426
|
+
return yield response.value();
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
*/
|
|
431
|
+
workspaceControllerCreateWorkspaceRaw(requestParameters, initOverrides) {
|
|
432
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
433
|
+
if (requestParameters['createWorkspaceDto'] == null) {
|
|
434
|
+
throw new runtime.RequiredError('createWorkspaceDto', 'Required parameter "createWorkspaceDto" was null or undefined when calling workspaceControllerCreateWorkspace().');
|
|
435
|
+
}
|
|
436
|
+
const queryParameters = {};
|
|
437
|
+
const headerParameters = {};
|
|
438
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
439
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
440
|
+
// oauth required
|
|
441
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
442
|
+
}
|
|
443
|
+
const response = yield this.request({
|
|
444
|
+
path: `/workspace`,
|
|
445
|
+
method: 'POST',
|
|
446
|
+
headers: headerParameters,
|
|
447
|
+
query: queryParameters,
|
|
448
|
+
body: CreateWorkspaceDtoToJSON(requestParameters['createWorkspaceDto']),
|
|
449
|
+
}, initOverrides);
|
|
450
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkspaceDtoFromJSON(jsonValue));
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
*/
|
|
455
|
+
workspaceControllerCreateWorkspace(requestParameters, initOverrides) {
|
|
456
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
457
|
+
const response = yield this.workspaceControllerCreateWorkspaceRaw(requestParameters, initOverrides);
|
|
458
|
+
return yield response.value();
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Delete file inside workspace project
|
|
463
|
+
* Delete file
|
|
464
|
+
*/
|
|
465
|
+
workspaceControllerDeleteFileRaw(requestParameters, initOverrides) {
|
|
466
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
467
|
+
if (requestParameters['workspaceId'] == null) {
|
|
468
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerDeleteFile().');
|
|
469
|
+
}
|
|
470
|
+
if (requestParameters['projectId'] == null) {
|
|
471
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerDeleteFile().');
|
|
472
|
+
}
|
|
473
|
+
if (requestParameters['path'] == null) {
|
|
474
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerDeleteFile().');
|
|
475
|
+
}
|
|
476
|
+
const queryParameters = {};
|
|
477
|
+
if (requestParameters['path'] != null) {
|
|
478
|
+
queryParameters['path'] = requestParameters['path'];
|
|
479
|
+
}
|
|
480
|
+
const headerParameters = {};
|
|
481
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
482
|
+
// oauth required
|
|
483
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
484
|
+
}
|
|
485
|
+
const response = yield this.request({
|
|
486
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
487
|
+
method: 'DELETE',
|
|
488
|
+
headers: headerParameters,
|
|
489
|
+
query: queryParameters,
|
|
490
|
+
}, initOverrides);
|
|
491
|
+
return new runtime.VoidApiResponse(response);
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Delete file inside workspace project
|
|
496
|
+
* Delete file
|
|
497
|
+
*/
|
|
498
|
+
workspaceControllerDeleteFile(requestParameters, initOverrides) {
|
|
499
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
500
|
+
yield this.workspaceControllerDeleteFileRaw(requestParameters, initOverrides);
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Download file from workspace project
|
|
505
|
+
* Download file
|
|
506
|
+
*/
|
|
507
|
+
workspaceControllerDownloadFileRaw(requestParameters, initOverrides) {
|
|
508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
509
|
+
if (requestParameters['workspaceId'] == null) {
|
|
510
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerDownloadFile().');
|
|
511
|
+
}
|
|
512
|
+
if (requestParameters['projectId'] == null) {
|
|
513
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerDownloadFile().');
|
|
514
|
+
}
|
|
515
|
+
if (requestParameters['path'] == null) {
|
|
516
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerDownloadFile().');
|
|
517
|
+
}
|
|
518
|
+
const queryParameters = {};
|
|
519
|
+
if (requestParameters['path'] != null) {
|
|
520
|
+
queryParameters['path'] = requestParameters['path'];
|
|
521
|
+
}
|
|
522
|
+
const headerParameters = {};
|
|
523
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
524
|
+
// oauth required
|
|
525
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
526
|
+
}
|
|
527
|
+
const response = yield this.request({
|
|
528
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files/download`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
529
|
+
method: 'GET',
|
|
530
|
+
headers: headerParameters,
|
|
531
|
+
query: queryParameters,
|
|
532
|
+
}, initOverrides);
|
|
533
|
+
return new runtime.VoidApiResponse(response);
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Download file from workspace project
|
|
538
|
+
* Download file
|
|
539
|
+
*/
|
|
540
|
+
workspaceControllerDownloadFile(requestParameters, initOverrides) {
|
|
541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
542
|
+
yield this.workspaceControllerDownloadFileRaw(requestParameters, initOverrides);
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Execute command synchronously inside workspace project
|
|
547
|
+
* Execute command
|
|
548
|
+
*/
|
|
549
|
+
workspaceControllerExecuteCommandRaw(requestParameters, initOverrides) {
|
|
550
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
551
|
+
if (requestParameters['workspaceId'] == null) {
|
|
552
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerExecuteCommand().');
|
|
553
|
+
}
|
|
554
|
+
if (requestParameters['projectId'] == null) {
|
|
555
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerExecuteCommand().');
|
|
556
|
+
}
|
|
557
|
+
if (requestParameters['executeRequestDto'] == null) {
|
|
558
|
+
throw new runtime.RequiredError('executeRequestDto', 'Required parameter "executeRequestDto" was null or undefined when calling workspaceControllerExecuteCommand().');
|
|
559
|
+
}
|
|
560
|
+
const queryParameters = {};
|
|
561
|
+
const headerParameters = {};
|
|
562
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
563
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
564
|
+
// oauth required
|
|
565
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
566
|
+
}
|
|
567
|
+
const response = yield this.request({
|
|
568
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/process/execute`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
569
|
+
method: 'POST',
|
|
570
|
+
headers: headerParameters,
|
|
571
|
+
query: queryParameters,
|
|
572
|
+
body: ExecuteRequestDtoToJSON(requestParameters['executeRequestDto']),
|
|
573
|
+
}, initOverrides);
|
|
574
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ExecuteResponseDtoFromJSON(jsonValue));
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Execute command synchronously inside workspace project
|
|
579
|
+
* Execute command
|
|
580
|
+
*/
|
|
581
|
+
workspaceControllerExecuteCommand(requestParameters, initOverrides) {
|
|
582
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
583
|
+
const response = yield this.workspaceControllerExecuteCommandRaw(requestParameters, initOverrides);
|
|
584
|
+
return yield response.value();
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Search for text/pattern inside workspace project files
|
|
589
|
+
* Search for text/pattern in files
|
|
590
|
+
*/
|
|
591
|
+
workspaceControllerFindInFilesRaw(requestParameters, initOverrides) {
|
|
592
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
593
|
+
if (requestParameters['workspaceId'] == null) {
|
|
594
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerFindInFiles().');
|
|
595
|
+
}
|
|
596
|
+
if (requestParameters['projectId'] == null) {
|
|
597
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerFindInFiles().');
|
|
598
|
+
}
|
|
599
|
+
if (requestParameters['path'] == null) {
|
|
600
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerFindInFiles().');
|
|
601
|
+
}
|
|
602
|
+
if (requestParameters['pattern'] == null) {
|
|
603
|
+
throw new runtime.RequiredError('pattern', 'Required parameter "pattern" was null or undefined when calling workspaceControllerFindInFiles().');
|
|
604
|
+
}
|
|
605
|
+
const queryParameters = {};
|
|
606
|
+
if (requestParameters['path'] != null) {
|
|
607
|
+
queryParameters['path'] = requestParameters['path'];
|
|
608
|
+
}
|
|
609
|
+
if (requestParameters['pattern'] != null) {
|
|
610
|
+
queryParameters['pattern'] = requestParameters['pattern'];
|
|
611
|
+
}
|
|
612
|
+
const headerParameters = {};
|
|
613
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
614
|
+
// oauth required
|
|
615
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
616
|
+
}
|
|
617
|
+
const response = yield this.request({
|
|
618
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files/find`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
619
|
+
method: 'GET',
|
|
620
|
+
headers: headerParameters,
|
|
621
|
+
query: queryParameters,
|
|
622
|
+
}, initOverrides);
|
|
623
|
+
return new runtime.VoidApiResponse(response);
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Search for text/pattern inside workspace project files
|
|
628
|
+
* Search for text/pattern in files
|
|
629
|
+
*/
|
|
630
|
+
workspaceControllerFindInFiles(requestParameters, initOverrides) {
|
|
631
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
632
|
+
yield this.workspaceControllerFindInFilesRaw(requestParameters, initOverrides);
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Get file info inside workspace project
|
|
637
|
+
* Get file info
|
|
638
|
+
*/
|
|
639
|
+
workspaceControllerGetFileInfoRaw(requestParameters, initOverrides) {
|
|
640
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
641
|
+
if (requestParameters['workspaceId'] == null) {
|
|
642
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGetFileInfo().');
|
|
643
|
+
}
|
|
644
|
+
if (requestParameters['projectId'] == null) {
|
|
645
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGetFileInfo().');
|
|
646
|
+
}
|
|
647
|
+
if (requestParameters['path'] == null) {
|
|
648
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerGetFileInfo().');
|
|
649
|
+
}
|
|
650
|
+
const queryParameters = {};
|
|
651
|
+
if (requestParameters['path'] != null) {
|
|
652
|
+
queryParameters['path'] = requestParameters['path'];
|
|
653
|
+
}
|
|
654
|
+
const headerParameters = {};
|
|
655
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
656
|
+
// oauth required
|
|
657
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
658
|
+
}
|
|
659
|
+
const response = yield this.request({
|
|
660
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files/info`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
661
|
+
method: 'GET',
|
|
662
|
+
headers: headerParameters,
|
|
663
|
+
query: queryParameters,
|
|
664
|
+
}, initOverrides);
|
|
665
|
+
return new runtime.VoidApiResponse(response);
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Get file info inside workspace project
|
|
670
|
+
* Get file info
|
|
671
|
+
*/
|
|
672
|
+
workspaceControllerGetFileInfo(requestParameters, initOverrides) {
|
|
673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
674
|
+
yield this.workspaceControllerGetFileInfoRaw(requestParameters, initOverrides);
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Get project directory
|
|
679
|
+
* Get project dir
|
|
680
|
+
*/
|
|
681
|
+
workspaceControllerGetProjectDirRaw(requestParameters, initOverrides) {
|
|
682
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
683
|
+
if (requestParameters['workspaceId'] == null) {
|
|
684
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGetProjectDir().');
|
|
685
|
+
}
|
|
686
|
+
if (requestParameters['projectId'] == null) {
|
|
687
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGetProjectDir().');
|
|
688
|
+
}
|
|
689
|
+
const queryParameters = {};
|
|
690
|
+
const headerParameters = {};
|
|
691
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
692
|
+
// oauth required
|
|
693
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
694
|
+
}
|
|
695
|
+
const response = yield this.request({
|
|
696
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/project-dir`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
697
|
+
method: 'GET',
|
|
698
|
+
headers: headerParameters,
|
|
699
|
+
query: queryParameters,
|
|
700
|
+
}, initOverrides);
|
|
701
|
+
return new runtime.VoidApiResponse(response);
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Get project directory
|
|
706
|
+
* Get project dir
|
|
707
|
+
*/
|
|
708
|
+
workspaceControllerGetProjectDir(requestParameters, initOverrides) {
|
|
709
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
710
|
+
yield this.workspaceControllerGetProjectDirRaw(requestParameters, initOverrides);
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
*/
|
|
715
|
+
workspaceControllerGetWorkspaceRaw(requestParameters, initOverrides) {
|
|
716
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
717
|
+
if (requestParameters['workspaceId'] == null) {
|
|
718
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGetWorkspace().');
|
|
719
|
+
}
|
|
720
|
+
const queryParameters = {};
|
|
721
|
+
if (requestParameters['verbose'] != null) {
|
|
722
|
+
queryParameters['verbose'] = requestParameters['verbose'];
|
|
723
|
+
}
|
|
724
|
+
const headerParameters = {};
|
|
725
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
726
|
+
// oauth required
|
|
727
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
728
|
+
}
|
|
729
|
+
const response = yield this.request({
|
|
730
|
+
path: `/workspace/{workspaceId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
731
|
+
method: 'GET',
|
|
732
|
+
headers: headerParameters,
|
|
733
|
+
query: queryParameters,
|
|
734
|
+
}, initOverrides);
|
|
735
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkspaceDtoFromJSON(jsonValue));
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
*/
|
|
740
|
+
workspaceControllerGetWorkspace(requestParameters, initOverrides) {
|
|
741
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
742
|
+
const response = yield this.workspaceControllerGetWorkspaceRaw(requestParameters, initOverrides);
|
|
743
|
+
return yield response.value();
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Add files to git commit
|
|
748
|
+
* Add files
|
|
749
|
+
*/
|
|
750
|
+
workspaceControllerGitAddFilesRaw(requestParameters, initOverrides) {
|
|
751
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
752
|
+
if (requestParameters['workspaceId'] == null) {
|
|
753
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGitAddFiles().');
|
|
754
|
+
}
|
|
755
|
+
if (requestParameters['projectId'] == null) {
|
|
756
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGitAddFiles().');
|
|
757
|
+
}
|
|
758
|
+
if (requestParameters['gitAddRequestDto'] == null) {
|
|
759
|
+
throw new runtime.RequiredError('gitAddRequestDto', 'Required parameter "gitAddRequestDto" was null or undefined when calling workspaceControllerGitAddFiles().');
|
|
760
|
+
}
|
|
761
|
+
const queryParameters = {};
|
|
762
|
+
const headerParameters = {};
|
|
763
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
764
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
765
|
+
// oauth required
|
|
766
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
767
|
+
}
|
|
768
|
+
const response = yield this.request({
|
|
769
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/git/add`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
770
|
+
method: 'POST',
|
|
771
|
+
headers: headerParameters,
|
|
772
|
+
query: queryParameters,
|
|
773
|
+
body: GitAddRequestDtoToJSON(requestParameters['gitAddRequestDto']),
|
|
774
|
+
}, initOverrides);
|
|
775
|
+
return new runtime.VoidApiResponse(response);
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Add files to git commit
|
|
780
|
+
* Add files
|
|
781
|
+
*/
|
|
782
|
+
workspaceControllerGitAddFiles(requestParameters, initOverrides) {
|
|
783
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
784
|
+
yield this.workspaceControllerGitAddFilesRaw(requestParameters, initOverrides);
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Get branch list from git repository
|
|
789
|
+
* Get branch list
|
|
790
|
+
*/
|
|
791
|
+
workspaceControllerGitBranchListRaw(requestParameters, initOverrides) {
|
|
792
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
793
|
+
if (requestParameters['workspaceId'] == null) {
|
|
794
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGitBranchList().');
|
|
795
|
+
}
|
|
796
|
+
if (requestParameters['projectId'] == null) {
|
|
797
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGitBranchList().');
|
|
798
|
+
}
|
|
799
|
+
if (requestParameters['path'] == null) {
|
|
800
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerGitBranchList().');
|
|
801
|
+
}
|
|
802
|
+
const queryParameters = {};
|
|
803
|
+
if (requestParameters['path'] != null) {
|
|
804
|
+
queryParameters['path'] = requestParameters['path'];
|
|
805
|
+
}
|
|
806
|
+
const headerParameters = {};
|
|
807
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
808
|
+
// oauth required
|
|
809
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
810
|
+
}
|
|
811
|
+
const response = yield this.request({
|
|
812
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/git/branches`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
813
|
+
method: 'GET',
|
|
814
|
+
headers: headerParameters,
|
|
815
|
+
query: queryParameters,
|
|
816
|
+
}, initOverrides);
|
|
817
|
+
return new runtime.VoidApiResponse(response);
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* Get branch list from git repository
|
|
822
|
+
* Get branch list
|
|
823
|
+
*/
|
|
824
|
+
workspaceControllerGitBranchList(requestParameters, initOverrides) {
|
|
825
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
826
|
+
yield this.workspaceControllerGitBranchListRaw(requestParameters, initOverrides);
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* Clone git repository
|
|
831
|
+
* Clone repository
|
|
832
|
+
*/
|
|
833
|
+
workspaceControllerGitCloneRepositoryRaw(requestParameters, initOverrides) {
|
|
834
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
835
|
+
if (requestParameters['workspaceId'] == null) {
|
|
836
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGitCloneRepository().');
|
|
837
|
+
}
|
|
838
|
+
if (requestParameters['projectId'] == null) {
|
|
839
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGitCloneRepository().');
|
|
840
|
+
}
|
|
841
|
+
if (requestParameters['gitCloneRequestDto'] == null) {
|
|
842
|
+
throw new runtime.RequiredError('gitCloneRequestDto', 'Required parameter "gitCloneRequestDto" was null or undefined when calling workspaceControllerGitCloneRepository().');
|
|
843
|
+
}
|
|
844
|
+
const queryParameters = {};
|
|
845
|
+
const headerParameters = {};
|
|
846
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
847
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
848
|
+
// oauth required
|
|
849
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
850
|
+
}
|
|
851
|
+
const response = yield this.request({
|
|
852
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/git/clone`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
853
|
+
method: 'POST',
|
|
854
|
+
headers: headerParameters,
|
|
855
|
+
query: queryParameters,
|
|
856
|
+
body: GitCloneRequestDtoToJSON(requestParameters['gitCloneRequestDto']),
|
|
857
|
+
}, initOverrides);
|
|
858
|
+
return new runtime.VoidApiResponse(response);
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Clone git repository
|
|
863
|
+
* Clone repository
|
|
864
|
+
*/
|
|
865
|
+
workspaceControllerGitCloneRepository(requestParameters, initOverrides) {
|
|
866
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
867
|
+
yield this.workspaceControllerGitCloneRepositoryRaw(requestParameters, initOverrides);
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Commit changes to git repository
|
|
872
|
+
* Commit changes
|
|
873
|
+
*/
|
|
874
|
+
workspaceControllerGitCommitChangesRaw(requestParameters, initOverrides) {
|
|
875
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
876
|
+
if (requestParameters['workspaceId'] == null) {
|
|
877
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGitCommitChanges().');
|
|
878
|
+
}
|
|
879
|
+
if (requestParameters['projectId'] == null) {
|
|
880
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGitCommitChanges().');
|
|
881
|
+
}
|
|
882
|
+
if (requestParameters['gitCommitRequestDto'] == null) {
|
|
883
|
+
throw new runtime.RequiredError('gitCommitRequestDto', 'Required parameter "gitCommitRequestDto" was null or undefined when calling workspaceControllerGitCommitChanges().');
|
|
884
|
+
}
|
|
885
|
+
const queryParameters = {};
|
|
886
|
+
const headerParameters = {};
|
|
887
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
888
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
889
|
+
// oauth required
|
|
890
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
891
|
+
}
|
|
892
|
+
const response = yield this.request({
|
|
893
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/git/commit`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
894
|
+
method: 'POST',
|
|
895
|
+
headers: headerParameters,
|
|
896
|
+
query: queryParameters,
|
|
897
|
+
body: GitCommitRequestDtoToJSON(requestParameters['gitCommitRequestDto']),
|
|
898
|
+
}, initOverrides);
|
|
899
|
+
return new runtime.VoidApiResponse(response);
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Commit changes to git repository
|
|
904
|
+
* Commit changes
|
|
905
|
+
*/
|
|
906
|
+
workspaceControllerGitCommitChanges(requestParameters, initOverrides) {
|
|
907
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
908
|
+
yield this.workspaceControllerGitCommitChangesRaw(requestParameters, initOverrides);
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* Get commit history from git repository
|
|
913
|
+
* Get commit history
|
|
914
|
+
*/
|
|
915
|
+
workspaceControllerGitCommitHistoryRaw(requestParameters, initOverrides) {
|
|
916
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
917
|
+
if (requestParameters['workspaceId'] == null) {
|
|
918
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGitCommitHistory().');
|
|
919
|
+
}
|
|
920
|
+
if (requestParameters['projectId'] == null) {
|
|
921
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGitCommitHistory().');
|
|
922
|
+
}
|
|
923
|
+
if (requestParameters['path'] == null) {
|
|
924
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerGitCommitHistory().');
|
|
925
|
+
}
|
|
926
|
+
const queryParameters = {};
|
|
927
|
+
if (requestParameters['path'] != null) {
|
|
928
|
+
queryParameters['path'] = requestParameters['path'];
|
|
929
|
+
}
|
|
930
|
+
const headerParameters = {};
|
|
931
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
932
|
+
// oauth required
|
|
933
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
934
|
+
}
|
|
935
|
+
const response = yield this.request({
|
|
936
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/git/history`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
937
|
+
method: 'GET',
|
|
938
|
+
headers: headerParameters,
|
|
939
|
+
query: queryParameters,
|
|
940
|
+
}, initOverrides);
|
|
941
|
+
return new runtime.VoidApiResponse(response);
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* Get commit history from git repository
|
|
946
|
+
* Get commit history
|
|
947
|
+
*/
|
|
948
|
+
workspaceControllerGitCommitHistory(requestParameters, initOverrides) {
|
|
949
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
950
|
+
yield this.workspaceControllerGitCommitHistoryRaw(requestParameters, initOverrides);
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Create branch on git repository
|
|
955
|
+
* Create branch
|
|
956
|
+
*/
|
|
957
|
+
workspaceControllerGitCreateBranchRaw(requestParameters, initOverrides) {
|
|
958
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
959
|
+
if (requestParameters['workspaceId'] == null) {
|
|
960
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGitCreateBranch().');
|
|
961
|
+
}
|
|
962
|
+
if (requestParameters['projectId'] == null) {
|
|
963
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGitCreateBranch().');
|
|
964
|
+
}
|
|
965
|
+
if (requestParameters['gitBranchRequestDto'] == null) {
|
|
966
|
+
throw new runtime.RequiredError('gitBranchRequestDto', 'Required parameter "gitBranchRequestDto" was null or undefined when calling workspaceControllerGitCreateBranch().');
|
|
967
|
+
}
|
|
968
|
+
const queryParameters = {};
|
|
969
|
+
const headerParameters = {};
|
|
970
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
971
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
972
|
+
// oauth required
|
|
973
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
974
|
+
}
|
|
975
|
+
const response = yield this.request({
|
|
976
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/git/branches`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
977
|
+
method: 'POST',
|
|
978
|
+
headers: headerParameters,
|
|
979
|
+
query: queryParameters,
|
|
980
|
+
body: GitBranchRequestDtoToJSON(requestParameters['gitBranchRequestDto']),
|
|
981
|
+
}, initOverrides);
|
|
982
|
+
return new runtime.VoidApiResponse(response);
|
|
983
|
+
});
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Create branch on git repository
|
|
987
|
+
* Create branch
|
|
988
|
+
*/
|
|
989
|
+
workspaceControllerGitCreateBranch(requestParameters, initOverrides) {
|
|
990
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
991
|
+
yield this.workspaceControllerGitCreateBranchRaw(requestParameters, initOverrides);
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Pull changes from remote
|
|
996
|
+
* Pull changes
|
|
997
|
+
*/
|
|
998
|
+
workspaceControllerGitPullChangesRaw(requestParameters, initOverrides) {
|
|
999
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1000
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1001
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGitPullChanges().');
|
|
1002
|
+
}
|
|
1003
|
+
if (requestParameters['projectId'] == null) {
|
|
1004
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGitPullChanges().');
|
|
1005
|
+
}
|
|
1006
|
+
if (requestParameters['gitRepoRequestDto'] == null) {
|
|
1007
|
+
throw new runtime.RequiredError('gitRepoRequestDto', 'Required parameter "gitRepoRequestDto" was null or undefined when calling workspaceControllerGitPullChanges().');
|
|
1008
|
+
}
|
|
1009
|
+
const queryParameters = {};
|
|
1010
|
+
const headerParameters = {};
|
|
1011
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1012
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1013
|
+
// oauth required
|
|
1014
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1015
|
+
}
|
|
1016
|
+
const response = yield this.request({
|
|
1017
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/git/pull`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1018
|
+
method: 'POST',
|
|
1019
|
+
headers: headerParameters,
|
|
1020
|
+
query: queryParameters,
|
|
1021
|
+
body: GitRepoRequestDtoToJSON(requestParameters['gitRepoRequestDto']),
|
|
1022
|
+
}, initOverrides);
|
|
1023
|
+
return new runtime.VoidApiResponse(response);
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* Pull changes from remote
|
|
1028
|
+
* Pull changes
|
|
1029
|
+
*/
|
|
1030
|
+
workspaceControllerGitPullChanges(requestParameters, initOverrides) {
|
|
1031
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1032
|
+
yield this.workspaceControllerGitPullChangesRaw(requestParameters, initOverrides);
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
* Push changes to remote
|
|
1037
|
+
* Push changes
|
|
1038
|
+
*/
|
|
1039
|
+
workspaceControllerGitPushChangesRaw(requestParameters, initOverrides) {
|
|
1040
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1041
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1042
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGitPushChanges().');
|
|
1043
|
+
}
|
|
1044
|
+
if (requestParameters['projectId'] == null) {
|
|
1045
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGitPushChanges().');
|
|
1046
|
+
}
|
|
1047
|
+
if (requestParameters['gitRepoRequestDto'] == null) {
|
|
1048
|
+
throw new runtime.RequiredError('gitRepoRequestDto', 'Required parameter "gitRepoRequestDto" was null or undefined when calling workspaceControllerGitPushChanges().');
|
|
1049
|
+
}
|
|
1050
|
+
const queryParameters = {};
|
|
1051
|
+
const headerParameters = {};
|
|
1052
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1053
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1054
|
+
// oauth required
|
|
1055
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1056
|
+
}
|
|
1057
|
+
const response = yield this.request({
|
|
1058
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/git/push`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1059
|
+
method: 'POST',
|
|
1060
|
+
headers: headerParameters,
|
|
1061
|
+
query: queryParameters,
|
|
1062
|
+
body: GitRepoRequestDtoToJSON(requestParameters['gitRepoRequestDto']),
|
|
1063
|
+
}, initOverrides);
|
|
1064
|
+
return new runtime.VoidApiResponse(response);
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* Push changes to remote
|
|
1069
|
+
* Push changes
|
|
1070
|
+
*/
|
|
1071
|
+
workspaceControllerGitPushChanges(requestParameters, initOverrides) {
|
|
1072
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1073
|
+
yield this.workspaceControllerGitPushChangesRaw(requestParameters, initOverrides);
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Get status from git repository
|
|
1078
|
+
* Get git status
|
|
1079
|
+
*/
|
|
1080
|
+
workspaceControllerGitStatusRaw(requestParameters, initOverrides) {
|
|
1081
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1082
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1083
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerGitStatus().');
|
|
1084
|
+
}
|
|
1085
|
+
if (requestParameters['projectId'] == null) {
|
|
1086
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerGitStatus().');
|
|
1087
|
+
}
|
|
1088
|
+
if (requestParameters['path'] == null) {
|
|
1089
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerGitStatus().');
|
|
1090
|
+
}
|
|
1091
|
+
const queryParameters = {};
|
|
1092
|
+
if (requestParameters['path'] != null) {
|
|
1093
|
+
queryParameters['path'] = requestParameters['path'];
|
|
1094
|
+
}
|
|
1095
|
+
const headerParameters = {};
|
|
1096
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1097
|
+
// oauth required
|
|
1098
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1099
|
+
}
|
|
1100
|
+
const response = yield this.request({
|
|
1101
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/git/status`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1102
|
+
method: 'GET',
|
|
1103
|
+
headers: headerParameters,
|
|
1104
|
+
query: queryParameters,
|
|
1105
|
+
}, initOverrides);
|
|
1106
|
+
return new runtime.VoidApiResponse(response);
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* Get status from git repository
|
|
1111
|
+
* Get git status
|
|
1112
|
+
*/
|
|
1113
|
+
workspaceControllerGitStatus(requestParameters, initOverrides) {
|
|
1114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1115
|
+
yield this.workspaceControllerGitStatusRaw(requestParameters, initOverrides);
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* List files inside workspace project
|
|
1120
|
+
* List files
|
|
1121
|
+
*/
|
|
1122
|
+
workspaceControllerListFilesRaw(requestParameters, initOverrides) {
|
|
1123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1124
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1125
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerListFiles().');
|
|
1126
|
+
}
|
|
1127
|
+
if (requestParameters['projectId'] == null) {
|
|
1128
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerListFiles().');
|
|
1129
|
+
}
|
|
1130
|
+
const queryParameters = {};
|
|
1131
|
+
if (requestParameters['path'] != null) {
|
|
1132
|
+
queryParameters['path'] = requestParameters['path'];
|
|
1133
|
+
}
|
|
1134
|
+
const headerParameters = {};
|
|
1135
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1136
|
+
// oauth required
|
|
1137
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1138
|
+
}
|
|
1139
|
+
const response = yield this.request({
|
|
1140
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1141
|
+
method: 'GET',
|
|
1142
|
+
headers: headerParameters,
|
|
1143
|
+
query: queryParameters,
|
|
1144
|
+
}, initOverrides);
|
|
1145
|
+
return new runtime.VoidApiResponse(response);
|
|
1146
|
+
});
|
|
1147
|
+
}
|
|
1148
|
+
/**
|
|
1149
|
+
* List files inside workspace project
|
|
1150
|
+
* List files
|
|
1151
|
+
*/
|
|
1152
|
+
workspaceControllerListFiles(requestParameters, initOverrides) {
|
|
1153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1154
|
+
yield this.workspaceControllerListFilesRaw(requestParameters, initOverrides);
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
*/
|
|
1159
|
+
workspaceControllerListWorkspacesRaw(requestParameters, initOverrides) {
|
|
1160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1161
|
+
const queryParameters = {};
|
|
1162
|
+
if (requestParameters['verbose'] != null) {
|
|
1163
|
+
queryParameters['verbose'] = requestParameters['verbose'];
|
|
1164
|
+
}
|
|
1165
|
+
const headerParameters = {};
|
|
1166
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1167
|
+
// oauth required
|
|
1168
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1169
|
+
}
|
|
1170
|
+
const response = yield this.request({
|
|
1171
|
+
path: `/workspace`,
|
|
1172
|
+
method: 'GET',
|
|
1173
|
+
headers: headerParameters,
|
|
1174
|
+
query: queryParameters,
|
|
1175
|
+
}, initOverrides);
|
|
1176
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WorkspaceDtoFromJSON));
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
*/
|
|
1181
|
+
workspaceControllerListWorkspaces() {
|
|
1182
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
1183
|
+
const response = yield this.workspaceControllerListWorkspacesRaw(requestParameters, initOverrides);
|
|
1184
|
+
return yield response.value();
|
|
1185
|
+
});
|
|
1186
|
+
}
|
|
1187
|
+
/**
|
|
1188
|
+
* Move file inside workspace project
|
|
1189
|
+
* Move file
|
|
1190
|
+
*/
|
|
1191
|
+
workspaceControllerMoveFileRaw(requestParameters, initOverrides) {
|
|
1192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1193
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1194
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerMoveFile().');
|
|
1195
|
+
}
|
|
1196
|
+
if (requestParameters['projectId'] == null) {
|
|
1197
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerMoveFile().');
|
|
1198
|
+
}
|
|
1199
|
+
if (requestParameters['source'] == null) {
|
|
1200
|
+
throw new runtime.RequiredError('source', 'Required parameter "source" was null or undefined when calling workspaceControllerMoveFile().');
|
|
1201
|
+
}
|
|
1202
|
+
if (requestParameters['destination'] == null) {
|
|
1203
|
+
throw new runtime.RequiredError('destination', 'Required parameter "destination" was null or undefined when calling workspaceControllerMoveFile().');
|
|
1204
|
+
}
|
|
1205
|
+
const queryParameters = {};
|
|
1206
|
+
if (requestParameters['source'] != null) {
|
|
1207
|
+
queryParameters['source'] = requestParameters['source'];
|
|
1208
|
+
}
|
|
1209
|
+
if (requestParameters['destination'] != null) {
|
|
1210
|
+
queryParameters['destination'] = requestParameters['destination'];
|
|
1211
|
+
}
|
|
1212
|
+
const headerParameters = {};
|
|
1213
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1214
|
+
// oauth required
|
|
1215
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1216
|
+
}
|
|
1217
|
+
const response = yield this.request({
|
|
1218
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files/move`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1219
|
+
method: 'POST',
|
|
1220
|
+
headers: headerParameters,
|
|
1221
|
+
query: queryParameters,
|
|
1222
|
+
}, initOverrides);
|
|
1223
|
+
return new runtime.VoidApiResponse(response);
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* Move file inside workspace project
|
|
1228
|
+
* Move file
|
|
1229
|
+
*/
|
|
1230
|
+
workspaceControllerMoveFile(requestParameters, initOverrides) {
|
|
1231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1232
|
+
yield this.workspaceControllerMoveFileRaw(requestParameters, initOverrides);
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
*/
|
|
1237
|
+
workspaceControllerRemoveWorkspaceRaw(requestParameters, initOverrides) {
|
|
1238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1239
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1240
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerRemoveWorkspace().');
|
|
1241
|
+
}
|
|
1242
|
+
if (requestParameters['force'] == null) {
|
|
1243
|
+
throw new runtime.RequiredError('force', 'Required parameter "force" was null or undefined when calling workspaceControllerRemoveWorkspace().');
|
|
1244
|
+
}
|
|
1245
|
+
const queryParameters = {};
|
|
1246
|
+
if (requestParameters['force'] != null) {
|
|
1247
|
+
queryParameters['force'] = requestParameters['force'];
|
|
1248
|
+
}
|
|
1249
|
+
const headerParameters = {};
|
|
1250
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1251
|
+
// oauth required
|
|
1252
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1253
|
+
}
|
|
1254
|
+
const response = yield this.request({
|
|
1255
|
+
path: `/workspace/{workspaceId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
1256
|
+
method: 'DELETE',
|
|
1257
|
+
headers: headerParameters,
|
|
1258
|
+
query: queryParameters,
|
|
1259
|
+
}, initOverrides);
|
|
1260
|
+
return new runtime.VoidApiResponse(response);
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
*/
|
|
1265
|
+
workspaceControllerRemoveWorkspace(requestParameters, initOverrides) {
|
|
1266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1267
|
+
yield this.workspaceControllerRemoveWorkspaceRaw(requestParameters, initOverrides);
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Replace text/pattern in multiple files inside workspace project
|
|
1272
|
+
* Replace in files
|
|
1273
|
+
*/
|
|
1274
|
+
workspaceControllerReplaceInFilesRaw(requestParameters, initOverrides) {
|
|
1275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1276
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1277
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerReplaceInFiles().');
|
|
1278
|
+
}
|
|
1279
|
+
if (requestParameters['projectId'] == null) {
|
|
1280
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerReplaceInFiles().');
|
|
1281
|
+
}
|
|
1282
|
+
if (requestParameters['replaceRequestDto'] == null) {
|
|
1283
|
+
throw new runtime.RequiredError('replaceRequestDto', 'Required parameter "replaceRequestDto" was null or undefined when calling workspaceControllerReplaceInFiles().');
|
|
1284
|
+
}
|
|
1285
|
+
const queryParameters = {};
|
|
1286
|
+
const headerParameters = {};
|
|
1287
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1289
|
+
// oauth required
|
|
1290
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1291
|
+
}
|
|
1292
|
+
const response = yield this.request({
|
|
1293
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files/replace`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1294
|
+
method: 'POST',
|
|
1295
|
+
headers: headerParameters,
|
|
1296
|
+
query: queryParameters,
|
|
1297
|
+
body: ReplaceRequestDtoToJSON(requestParameters['replaceRequestDto']),
|
|
1298
|
+
}, initOverrides);
|
|
1299
|
+
return new runtime.VoidApiResponse(response);
|
|
1300
|
+
});
|
|
1301
|
+
}
|
|
1302
|
+
/**
|
|
1303
|
+
* Replace text/pattern in multiple files inside workspace project
|
|
1304
|
+
* Replace in files
|
|
1305
|
+
*/
|
|
1306
|
+
workspaceControllerReplaceInFiles(requestParameters, initOverrides) {
|
|
1307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1308
|
+
yield this.workspaceControllerReplaceInFilesRaw(requestParameters, initOverrides);
|
|
1309
|
+
});
|
|
1310
|
+
}
|
|
1311
|
+
/**
|
|
1312
|
+
* Replace all labels for a workspace. Existing labels will be removed.
|
|
1313
|
+
* Replace workspace labels
|
|
1314
|
+
*/
|
|
1315
|
+
workspaceControllerReplaceLabelsRaw(requestParameters, initOverrides) {
|
|
1316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1317
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1318
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerReplaceLabels().');
|
|
1319
|
+
}
|
|
1320
|
+
if (requestParameters['workspaceLabelsDto'] == null) {
|
|
1321
|
+
throw new runtime.RequiredError('workspaceLabelsDto', 'Required parameter "workspaceLabelsDto" was null or undefined when calling workspaceControllerReplaceLabels().');
|
|
1322
|
+
}
|
|
1323
|
+
const queryParameters = {};
|
|
1324
|
+
const headerParameters = {};
|
|
1325
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1326
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1327
|
+
// oauth required
|
|
1328
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1329
|
+
}
|
|
1330
|
+
const response = yield this.request({
|
|
1331
|
+
path: `/workspace/{workspaceId}/labels`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
1332
|
+
method: 'PUT',
|
|
1333
|
+
headers: headerParameters,
|
|
1334
|
+
query: queryParameters,
|
|
1335
|
+
body: WorkspaceLabelsDtoToJSON(requestParameters['workspaceLabelsDto']),
|
|
1336
|
+
}, initOverrides);
|
|
1337
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WorkspaceLabelsDtoFromJSON(jsonValue));
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Replace all labels for a workspace. Existing labels will be removed.
|
|
1342
|
+
* Replace workspace labels
|
|
1343
|
+
*/
|
|
1344
|
+
workspaceControllerReplaceLabels(requestParameters, initOverrides) {
|
|
1345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1346
|
+
const response = yield this.workspaceControllerReplaceLabelsRaw(requestParameters, initOverrides);
|
|
1347
|
+
return yield response.value();
|
|
1348
|
+
});
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* Search for files inside workspace project
|
|
1352
|
+
* Search files
|
|
1353
|
+
*/
|
|
1354
|
+
workspaceControllerSearchFilesRaw(requestParameters, initOverrides) {
|
|
1355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1356
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1357
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerSearchFiles().');
|
|
1358
|
+
}
|
|
1359
|
+
if (requestParameters['projectId'] == null) {
|
|
1360
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerSearchFiles().');
|
|
1361
|
+
}
|
|
1362
|
+
if (requestParameters['path'] == null) {
|
|
1363
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerSearchFiles().');
|
|
1364
|
+
}
|
|
1365
|
+
if (requestParameters['pattern'] == null) {
|
|
1366
|
+
throw new runtime.RequiredError('pattern', 'Required parameter "pattern" was null or undefined when calling workspaceControllerSearchFiles().');
|
|
1367
|
+
}
|
|
1368
|
+
const queryParameters = {};
|
|
1369
|
+
if (requestParameters['path'] != null) {
|
|
1370
|
+
queryParameters['path'] = requestParameters['path'];
|
|
1371
|
+
}
|
|
1372
|
+
if (requestParameters['pattern'] != null) {
|
|
1373
|
+
queryParameters['pattern'] = requestParameters['pattern'];
|
|
1374
|
+
}
|
|
1375
|
+
const headerParameters = {};
|
|
1376
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1377
|
+
// oauth required
|
|
1378
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1379
|
+
}
|
|
1380
|
+
const response = yield this.request({
|
|
1381
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files/search`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1382
|
+
method: 'GET',
|
|
1383
|
+
headers: headerParameters,
|
|
1384
|
+
query: queryParameters,
|
|
1385
|
+
}, initOverrides);
|
|
1386
|
+
return new runtime.VoidApiResponse(response);
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Search for files inside workspace project
|
|
1391
|
+
* Search files
|
|
1392
|
+
*/
|
|
1393
|
+
workspaceControllerSearchFiles(requestParameters, initOverrides) {
|
|
1394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1395
|
+
yield this.workspaceControllerSearchFilesRaw(requestParameters, initOverrides);
|
|
1396
|
+
});
|
|
1397
|
+
}
|
|
1398
|
+
/**
|
|
1399
|
+
* Set file owner/group/permissions inside workspace project
|
|
1400
|
+
* Set file permissions
|
|
1401
|
+
*/
|
|
1402
|
+
workspaceControllerSetFilePermissionsRaw(requestParameters, initOverrides) {
|
|
1403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1404
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1405
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerSetFilePermissions().');
|
|
1406
|
+
}
|
|
1407
|
+
if (requestParameters['projectId'] == null) {
|
|
1408
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerSetFilePermissions().');
|
|
1409
|
+
}
|
|
1410
|
+
if (requestParameters['path'] == null) {
|
|
1411
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerSetFilePermissions().');
|
|
1412
|
+
}
|
|
1413
|
+
if (requestParameters['owner'] == null) {
|
|
1414
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling workspaceControllerSetFilePermissions().');
|
|
1415
|
+
}
|
|
1416
|
+
if (requestParameters['group'] == null) {
|
|
1417
|
+
throw new runtime.RequiredError('group', 'Required parameter "group" was null or undefined when calling workspaceControllerSetFilePermissions().');
|
|
1418
|
+
}
|
|
1419
|
+
if (requestParameters['mode'] == null) {
|
|
1420
|
+
throw new runtime.RequiredError('mode', 'Required parameter "mode" was null or undefined when calling workspaceControllerSetFilePermissions().');
|
|
1421
|
+
}
|
|
1422
|
+
const queryParameters = {};
|
|
1423
|
+
if (requestParameters['path'] != null) {
|
|
1424
|
+
queryParameters['path'] = requestParameters['path'];
|
|
1425
|
+
}
|
|
1426
|
+
if (requestParameters['owner'] != null) {
|
|
1427
|
+
queryParameters['owner'] = requestParameters['owner'];
|
|
1428
|
+
}
|
|
1429
|
+
if (requestParameters['group'] != null) {
|
|
1430
|
+
queryParameters['group'] = requestParameters['group'];
|
|
1431
|
+
}
|
|
1432
|
+
if (requestParameters['mode'] != null) {
|
|
1433
|
+
queryParameters['mode'] = requestParameters['mode'];
|
|
1434
|
+
}
|
|
1435
|
+
const headerParameters = {};
|
|
1436
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1437
|
+
// oauth required
|
|
1438
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1439
|
+
}
|
|
1440
|
+
const response = yield this.request({
|
|
1441
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files/permissions`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1442
|
+
method: 'POST',
|
|
1443
|
+
headers: headerParameters,
|
|
1444
|
+
query: queryParameters,
|
|
1445
|
+
}, initOverrides);
|
|
1446
|
+
return new runtime.VoidApiResponse(response);
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
* Set file owner/group/permissions inside workspace project
|
|
1451
|
+
* Set file permissions
|
|
1452
|
+
*/
|
|
1453
|
+
workspaceControllerSetFilePermissions(requestParameters, initOverrides) {
|
|
1454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1455
|
+
yield this.workspaceControllerSetFilePermissionsRaw(requestParameters, initOverrides);
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
*/
|
|
1460
|
+
workspaceControllerStartProjectRaw(requestParameters, initOverrides) {
|
|
1461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1462
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1463
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerStartProject().');
|
|
1464
|
+
}
|
|
1465
|
+
if (requestParameters['projectId'] == null) {
|
|
1466
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerStartProject().');
|
|
1467
|
+
}
|
|
1468
|
+
const queryParameters = {};
|
|
1469
|
+
const headerParameters = {};
|
|
1470
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1471
|
+
// oauth required
|
|
1472
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1473
|
+
}
|
|
1474
|
+
const response = yield this.request({
|
|
1475
|
+
path: `/workspace/{workspaceId}/{projectId}/start`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1476
|
+
method: 'POST',
|
|
1477
|
+
headers: headerParameters,
|
|
1478
|
+
query: queryParameters,
|
|
1479
|
+
}, initOverrides);
|
|
1480
|
+
return new runtime.VoidApiResponse(response);
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
/**
|
|
1484
|
+
*/
|
|
1485
|
+
workspaceControllerStartProject(requestParameters, initOverrides) {
|
|
1486
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1487
|
+
yield this.workspaceControllerStartProjectRaw(requestParameters, initOverrides);
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
*/
|
|
1492
|
+
workspaceControllerStartWorkspaceRaw(requestParameters, initOverrides) {
|
|
1493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1494
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1495
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerStartWorkspace().');
|
|
1496
|
+
}
|
|
1497
|
+
const queryParameters = {};
|
|
1498
|
+
const headerParameters = {};
|
|
1499
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1500
|
+
// oauth required
|
|
1501
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1502
|
+
}
|
|
1503
|
+
const response = yield this.request({
|
|
1504
|
+
path: `/workspace/{workspaceId}/start`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
1505
|
+
method: 'POST',
|
|
1506
|
+
headers: headerParameters,
|
|
1507
|
+
query: queryParameters,
|
|
1508
|
+
}, initOverrides);
|
|
1509
|
+
return new runtime.VoidApiResponse(response);
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
/**
|
|
1513
|
+
*/
|
|
1514
|
+
workspaceControllerStartWorkspace(requestParameters, initOverrides) {
|
|
1515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1516
|
+
yield this.workspaceControllerStartWorkspaceRaw(requestParameters, initOverrides);
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
/**
|
|
1520
|
+
*/
|
|
1521
|
+
workspaceControllerStopProjectRaw(requestParameters, initOverrides) {
|
|
1522
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1523
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1524
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerStopProject().');
|
|
1525
|
+
}
|
|
1526
|
+
if (requestParameters['projectId'] == null) {
|
|
1527
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerStopProject().');
|
|
1528
|
+
}
|
|
1529
|
+
const queryParameters = {};
|
|
1530
|
+
const headerParameters = {};
|
|
1531
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1532
|
+
// oauth required
|
|
1533
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1534
|
+
}
|
|
1535
|
+
const response = yield this.request({
|
|
1536
|
+
path: `/workspace/{workspaceId}/{projectId}/stop`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1537
|
+
method: 'POST',
|
|
1538
|
+
headers: headerParameters,
|
|
1539
|
+
query: queryParameters,
|
|
1540
|
+
}, initOverrides);
|
|
1541
|
+
return new runtime.VoidApiResponse(response);
|
|
1542
|
+
});
|
|
1543
|
+
}
|
|
1544
|
+
/**
|
|
1545
|
+
*/
|
|
1546
|
+
workspaceControllerStopProject(requestParameters, initOverrides) {
|
|
1547
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1548
|
+
yield this.workspaceControllerStopProjectRaw(requestParameters, initOverrides);
|
|
1549
|
+
});
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
*/
|
|
1553
|
+
workspaceControllerStopWorkspaceRaw(requestParameters, initOverrides) {
|
|
1554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1555
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1556
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerStopWorkspace().');
|
|
1557
|
+
}
|
|
1558
|
+
const queryParameters = {};
|
|
1559
|
+
const headerParameters = {};
|
|
1560
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1561
|
+
// oauth required
|
|
1562
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1563
|
+
}
|
|
1564
|
+
const response = yield this.request({
|
|
1565
|
+
path: `/workspace/{workspaceId}/stop`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
1566
|
+
method: 'POST',
|
|
1567
|
+
headers: headerParameters,
|
|
1568
|
+
query: queryParameters,
|
|
1569
|
+
}, initOverrides);
|
|
1570
|
+
return new runtime.VoidApiResponse(response);
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
/**
|
|
1574
|
+
*/
|
|
1575
|
+
workspaceControllerStopWorkspace(requestParameters, initOverrides) {
|
|
1576
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1577
|
+
yield this.workspaceControllerStopWorkspaceRaw(requestParameters, initOverrides);
|
|
1578
|
+
});
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* Upload file inside workspace project
|
|
1582
|
+
* Upload file
|
|
1583
|
+
*/
|
|
1584
|
+
workspaceControllerUploadFileRaw(requestParameters, initOverrides) {
|
|
1585
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1586
|
+
if (requestParameters['workspaceId'] == null) {
|
|
1587
|
+
throw new runtime.RequiredError('workspaceId', 'Required parameter "workspaceId" was null or undefined when calling workspaceControllerUploadFile().');
|
|
1588
|
+
}
|
|
1589
|
+
if (requestParameters['projectId'] == null) {
|
|
1590
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling workspaceControllerUploadFile().');
|
|
1591
|
+
}
|
|
1592
|
+
if (requestParameters['path'] == null) {
|
|
1593
|
+
throw new runtime.RequiredError('path', 'Required parameter "path" was null or undefined when calling workspaceControllerUploadFile().');
|
|
1594
|
+
}
|
|
1595
|
+
const queryParameters = {};
|
|
1596
|
+
if (requestParameters['path'] != null) {
|
|
1597
|
+
queryParameters['path'] = requestParameters['path'];
|
|
1598
|
+
}
|
|
1599
|
+
const headerParameters = {};
|
|
1600
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1601
|
+
// oauth required
|
|
1602
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
|
|
1603
|
+
}
|
|
1604
|
+
const consumes = [
|
|
1605
|
+
{ contentType: 'multipart/form-data' },
|
|
1606
|
+
];
|
|
1607
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
1608
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1609
|
+
let formParams;
|
|
1610
|
+
let useForm = false;
|
|
1611
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1612
|
+
useForm = canConsumeForm;
|
|
1613
|
+
if (useForm) {
|
|
1614
|
+
formParams = new FormData();
|
|
1615
|
+
}
|
|
1616
|
+
else {
|
|
1617
|
+
formParams = new URLSearchParams();
|
|
1618
|
+
}
|
|
1619
|
+
if (requestParameters['file'] != null) {
|
|
1620
|
+
formParams.append('file', requestParameters['file']);
|
|
1621
|
+
}
|
|
1622
|
+
const response = yield this.request({
|
|
1623
|
+
path: `/workspace/{workspaceId}/{projectId}/toolbox/files/upload`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
1624
|
+
method: 'POST',
|
|
1625
|
+
headers: headerParameters,
|
|
1626
|
+
query: queryParameters,
|
|
1627
|
+
body: formParams,
|
|
1628
|
+
}, initOverrides);
|
|
1629
|
+
return new runtime.VoidApiResponse(response);
|
|
1630
|
+
});
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* Upload file inside workspace project
|
|
1634
|
+
* Upload file
|
|
1635
|
+
*/
|
|
1636
|
+
workspaceControllerUploadFile(requestParameters, initOverrides) {
|
|
1637
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1638
|
+
yield this.workspaceControllerUploadFileRaw(requestParameters, initOverrides);
|
|
1639
|
+
});
|
|
1640
|
+
}
|
|
1641
|
+
}
|