@daytonaio/api-client 0.4.0 → 0.5.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 +4 -8
- package/README.md +2 -2
- package/api/api-keys-api.ts +353 -0
- package/api/default-api.ts +36 -3313
- package/api/docker-registry-api.ts +108 -108
- package/api/nodes-api.ts +274 -0
- package/api/users-api.ts +274 -0
- package/api/workspace-api.ts +760 -0
- package/api.ts +4 -0
- package/dist/api/api-keys-api.d.ts +171 -0
- package/dist/api/api-keys-api.js +339 -0
- package/dist/api/default-api.d.ts +15 -1454
- package/dist/api/default-api.js +43 -3090
- package/dist/api/docker-registry-api.d.ts +64 -64
- package/dist/api/docker-registry-api.js +108 -108
- package/dist/api/nodes-api.d.ts +135 -0
- package/dist/api/nodes-api.js +270 -0
- package/dist/api/users-api.d.ts +135 -0
- package/dist/api/users-api.js +270 -0
- package/dist/api/workspace-api.d.ts +356 -0
- package/dist/api/workspace-api.js +722 -0
- package/dist/api.d.ts +4 -0
- package/dist/api.js +4 -0
- package/dist/esm/api/api-keys-api.d.ts +171 -0
- package/dist/esm/api/api-keys-api.js +332 -0
- package/dist/esm/api/default-api.d.ts +15 -1454
- package/dist/esm/api/default-api.js +41 -3088
- package/dist/esm/api/docker-registry-api.d.ts +64 -64
- package/dist/esm/api/docker-registry-api.js +108 -108
- package/dist/esm/api/nodes-api.d.ts +135 -0
- package/dist/esm/api/nodes-api.js +263 -0
- package/dist/esm/api/users-api.d.ts +135 -0
- package/dist/esm/api/users-api.js +263 -0
- package/dist/esm/api/workspace-api.d.ts +356 -0
- package/dist/esm/api/workspace-api.js +715 -0
- package/dist/esm/api.d.ts +4 -0
- package/dist/esm/api.js +4 -0
- package/dist/esm/models/create-workspace-dto.d.ts +1 -1
- package/dist/esm/models/index.d.ts +0 -8
- package/dist/esm/models/index.js +0 -8
- package/dist/esm/models/workspace-dto.d.ts +14 -0
- package/dist/models/create-workspace-dto.d.ts +1 -1
- package/dist/models/index.d.ts +0 -8
- package/dist/models/index.js +0 -8
- package/dist/models/workspace-dto.d.ts +14 -0
- package/models/create-workspace-dto.ts +1 -1
- package/models/index.ts +0 -8
- package/models/workspace-dto.ts +12 -0
- package/package.json +1 -1
- package/dist/esm/models/execute-request-dto.d.ts +0 -30
- package/dist/esm/models/execute-request-dto.js +0 -14
- package/dist/esm/models/execute-response-dto.d.ts +0 -30
- package/dist/esm/models/execute-response-dto.js +0 -14
- package/dist/esm/models/git-add-request-dto.d.ts +0 -30
- package/dist/esm/models/git-add-request-dto.js +0 -14
- package/dist/esm/models/git-branch-request-dto.d.ts +0 -30
- package/dist/esm/models/git-branch-request-dto.js +0 -14
- package/dist/esm/models/git-clone-request-dto.d.ts +0 -54
- package/dist/esm/models/git-clone-request-dto.js +0 -14
- package/dist/esm/models/git-commit-request-dto.d.ts +0 -42
- package/dist/esm/models/git-commit-request-dto.js +0 -14
- package/dist/esm/models/git-repo-request-dto.d.ts +0 -36
- package/dist/esm/models/git-repo-request-dto.js +0 -14
- package/dist/esm/models/replace-request-dto.d.ts +0 -36
- package/dist/esm/models/replace-request-dto.js +0 -14
- package/dist/models/execute-request-dto.d.ts +0 -30
- package/dist/models/execute-request-dto.js +0 -15
- package/dist/models/execute-response-dto.d.ts +0 -30
- package/dist/models/execute-response-dto.js +0 -15
- package/dist/models/git-add-request-dto.d.ts +0 -30
- package/dist/models/git-add-request-dto.js +0 -15
- package/dist/models/git-branch-request-dto.d.ts +0 -30
- package/dist/models/git-branch-request-dto.js +0 -15
- package/dist/models/git-clone-request-dto.d.ts +0 -54
- package/dist/models/git-clone-request-dto.js +0 -15
- package/dist/models/git-commit-request-dto.d.ts +0 -42
- package/dist/models/git-commit-request-dto.js +0 -15
- package/dist/models/git-repo-request-dto.d.ts +0 -36
- package/dist/models/git-repo-request-dto.js +0 -15
- package/dist/models/replace-request-dto.d.ts +0 -36
- package/dist/models/replace-request-dto.js +0 -15
- package/models/execute-request-dto.ts +0 -36
- package/models/execute-response-dto.ts +0 -36
- package/models/git-add-request-dto.ts +0 -36
- package/models/git-branch-request-dto.ts +0 -36
- package/models/git-clone-request-dto.ts +0 -60
- package/models/git-commit-request-dto.ts +0 -48
- package/models/git-repo-request-dto.ts +0 -42
- package/models/replace-request-dto.ts +0 -42
package/api/default-api.ts
CHANGED
|
@@ -21,190 +21,12 @@ import globalAxios from 'axios';
|
|
|
21
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
import type { ApiKeyListDto } from '../models';
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
import type { ApiKeyResponseDto } from '../models';
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import type { CreateApiKeyDto } from '../models';
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
import type { CreateWorkspaceDto } from '../models';
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
import type { ExecuteRequestDto } from '../models';
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
import type { ExecuteResponseDto } from '../models';
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
import type { GitAddRequestDto } from '../models';
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
import type { GitBranchRequestDto } from '../models';
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
import type { GitCloneRequestDto } from '../models';
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
import type { GitCommitRequestDto } from '../models';
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
import type { GitRepoRequestDto } from '../models';
|
|
46
|
-
// @ts-ignore
|
|
47
|
-
import type { ReplaceRequestDto } from '../models';
|
|
48
|
-
// @ts-ignore
|
|
49
|
-
import type { WorkspaceDto } from '../models';
|
|
50
|
-
// @ts-ignore
|
|
51
|
-
import type { WorkspaceLabelsDto } from '../models';
|
|
52
24
|
/**
|
|
53
25
|
* DefaultApi - axios parameter creator
|
|
54
26
|
* @export
|
|
55
27
|
*/
|
|
56
28
|
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
57
29
|
return {
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @summary Create a new API key
|
|
61
|
-
* @param {CreateApiKeyDto} createApiKeyDto
|
|
62
|
-
* @param {*} [options] Override http request option.
|
|
63
|
-
* @throws {RequiredError}
|
|
64
|
-
*/
|
|
65
|
-
apiKeyControllerCreateApiKey: async (createApiKeyDto: CreateApiKeyDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
66
|
-
// verify required parameter 'createApiKeyDto' is not null or undefined
|
|
67
|
-
assertParamExists('apiKeyControllerCreateApiKey', 'createApiKeyDto', createApiKeyDto)
|
|
68
|
-
const localVarPath = `/api-keys`;
|
|
69
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
71
|
-
let baseOptions;
|
|
72
|
-
if (configuration) {
|
|
73
|
-
baseOptions = configuration.baseOptions;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
77
|
-
const localVarHeaderParameter = {} as any;
|
|
78
|
-
const localVarQueryParameter = {} as any;
|
|
79
|
-
|
|
80
|
-
// authentication oauth2 required
|
|
81
|
-
// oauth required
|
|
82
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
87
|
-
|
|
88
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
91
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createApiKeyDto, localVarRequestOptions, configuration)
|
|
92
|
-
|
|
93
|
-
return {
|
|
94
|
-
url: toPathString(localVarUrlObj),
|
|
95
|
-
options: localVarRequestOptions,
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
* @summary Delete an API key by name
|
|
101
|
-
* @param {string} name
|
|
102
|
-
* @param {*} [options] Override http request option.
|
|
103
|
-
* @throws {RequiredError}
|
|
104
|
-
*/
|
|
105
|
-
apiKeyControllerDeleteApiKey: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
106
|
-
// verify required parameter 'name' is not null or undefined
|
|
107
|
-
assertParamExists('apiKeyControllerDeleteApiKey', 'name', name)
|
|
108
|
-
const localVarPath = `/api-keys/{name}`
|
|
109
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
110
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
111
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
112
|
-
let baseOptions;
|
|
113
|
-
if (configuration) {
|
|
114
|
-
baseOptions = configuration.baseOptions;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
118
|
-
const localVarHeaderParameter = {} as any;
|
|
119
|
-
const localVarQueryParameter = {} as any;
|
|
120
|
-
|
|
121
|
-
// authentication oauth2 required
|
|
122
|
-
// oauth required
|
|
123
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
128
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
130
|
-
|
|
131
|
-
return {
|
|
132
|
-
url: toPathString(localVarUrlObj),
|
|
133
|
-
options: localVarRequestOptions,
|
|
134
|
-
};
|
|
135
|
-
},
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @summary Get a specific API key by name
|
|
139
|
-
* @param {string} name
|
|
140
|
-
* @param {*} [options] Override http request option.
|
|
141
|
-
* @throws {RequiredError}
|
|
142
|
-
*/
|
|
143
|
-
apiKeyControllerGetApiKey: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
144
|
-
// verify required parameter 'name' is not null or undefined
|
|
145
|
-
assertParamExists('apiKeyControllerGetApiKey', 'name', name)
|
|
146
|
-
const localVarPath = `/api-keys/{name}`
|
|
147
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
148
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
|
-
let baseOptions;
|
|
151
|
-
if (configuration) {
|
|
152
|
-
baseOptions = configuration.baseOptions;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
156
|
-
const localVarHeaderParameter = {} as any;
|
|
157
|
-
const localVarQueryParameter = {} as any;
|
|
158
|
-
|
|
159
|
-
// authentication oauth2 required
|
|
160
|
-
// oauth required
|
|
161
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
166
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
168
|
-
|
|
169
|
-
return {
|
|
170
|
-
url: toPathString(localVarUrlObj),
|
|
171
|
-
options: localVarRequestOptions,
|
|
172
|
-
};
|
|
173
|
-
},
|
|
174
|
-
/**
|
|
175
|
-
*
|
|
176
|
-
* @summary Get all API keys for the user
|
|
177
|
-
* @param {*} [options] Override http request option.
|
|
178
|
-
* @throws {RequiredError}
|
|
179
|
-
*/
|
|
180
|
-
apiKeyControllerGetApiKeys: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
181
|
-
const localVarPath = `/api-keys`;
|
|
182
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
184
|
-
let baseOptions;
|
|
185
|
-
if (configuration) {
|
|
186
|
-
baseOptions = configuration.baseOptions;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
190
|
-
const localVarHeaderParameter = {} as any;
|
|
191
|
-
const localVarQueryParameter = {} as any;
|
|
192
|
-
|
|
193
|
-
// authentication oauth2 required
|
|
194
|
-
// oauth required
|
|
195
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
202
|
-
|
|
203
|
-
return {
|
|
204
|
-
url: toPathString(localVarUrlObj),
|
|
205
|
-
options: localVarRequestOptions,
|
|
206
|
-
};
|
|
207
|
-
},
|
|
208
30
|
/**
|
|
209
31
|
*
|
|
210
32
|
* @param {*} [options] Override http request option.
|
|
@@ -234,3162 +56,63 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
234
56
|
options: localVarRequestOptions,
|
|
235
57
|
};
|
|
236
58
|
},
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
* @param {object} body
|
|
240
|
-
* @param {*} [options] Override http request option.
|
|
241
|
-
* @throws {RequiredError}
|
|
242
|
-
*/
|
|
243
|
-
nodeControllerCreate: async (body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
244
|
-
// verify required parameter 'body' is not null or undefined
|
|
245
|
-
assertParamExists('nodeControllerCreate', 'body', body)
|
|
246
|
-
const localVarPath = `/nodes`;
|
|
247
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
248
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
249
|
-
let baseOptions;
|
|
250
|
-
if (configuration) {
|
|
251
|
-
baseOptions = configuration.baseOptions;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
255
|
-
const localVarHeaderParameter = {} as any;
|
|
256
|
-
const localVarQueryParameter = {} as any;
|
|
257
|
-
|
|
258
|
-
// authentication oauth2 required
|
|
259
|
-
// oauth required
|
|
260
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
265
|
-
|
|
266
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
267
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
268
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
269
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
59
|
+
}
|
|
60
|
+
};
|
|
270
61
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
62
|
+
/**
|
|
63
|
+
* DefaultApi - functional programming interface
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
67
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
68
|
+
return {
|
|
276
69
|
/**
|
|
277
70
|
*
|
|
278
71
|
* @param {*} [options] Override http request option.
|
|
279
72
|
* @throws {RequiredError}
|
|
280
73
|
*/
|
|
281
|
-
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
if (configuration) {
|
|
287
|
-
baseOptions = configuration.baseOptions;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
291
|
-
const localVarHeaderParameter = {} as any;
|
|
292
|
-
const localVarQueryParameter = {} as any;
|
|
293
|
-
|
|
294
|
-
// authentication oauth2 required
|
|
295
|
-
// oauth required
|
|
296
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
301
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
302
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
303
|
-
|
|
304
|
-
return {
|
|
305
|
-
url: toPathString(localVarUrlObj),
|
|
306
|
-
options: localVarRequestOptions,
|
|
307
|
-
};
|
|
74
|
+
async appControllerGetHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
75
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.appControllerGetHello(options);
|
|
76
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
77
|
+
const localVarOperationServerBasePath = operationServerMap['DefaultApi.appControllerGetHello']?.[localVarOperationServerIndex]?.url;
|
|
78
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
308
79
|
},
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
* @param {string} id
|
|
312
|
-
* @param {*} [options] Override http request option.
|
|
313
|
-
* @throws {RequiredError}
|
|
314
|
-
*/
|
|
315
|
-
nodeControllerUpdateSchedulingStatus: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
316
|
-
// verify required parameter 'id' is not null or undefined
|
|
317
|
-
assertParamExists('nodeControllerUpdateSchedulingStatus', 'id', id)
|
|
318
|
-
const localVarPath = `/nodes/{id}/scheduling`
|
|
319
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
320
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
321
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
322
|
-
let baseOptions;
|
|
323
|
-
if (configuration) {
|
|
324
|
-
baseOptions = configuration.baseOptions;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
328
|
-
const localVarHeaderParameter = {} as any;
|
|
329
|
-
const localVarQueryParameter = {} as any;
|
|
330
|
-
|
|
331
|
-
// authentication oauth2 required
|
|
332
|
-
// oauth required
|
|
333
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
338
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
339
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
80
|
+
}
|
|
81
|
+
};
|
|
340
82
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
83
|
+
/**
|
|
84
|
+
* DefaultApi - factory interface
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
88
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
89
|
+
return {
|
|
346
90
|
/**
|
|
347
91
|
*
|
|
348
|
-
* @param {object} body
|
|
349
92
|
* @param {*} [options] Override http request option.
|
|
350
93
|
* @throws {RequiredError}
|
|
351
94
|
*/
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
assertParamExists('userControllerCreate', 'body', body)
|
|
355
|
-
const localVarPath = `/users`;
|
|
356
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
357
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
358
|
-
let baseOptions;
|
|
359
|
-
if (configuration) {
|
|
360
|
-
baseOptions = configuration.baseOptions;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
364
|
-
const localVarHeaderParameter = {} as any;
|
|
365
|
-
const localVarQueryParameter = {} as any;
|
|
366
|
-
|
|
367
|
-
// authentication oauth2 required
|
|
368
|
-
// oauth required
|
|
369
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
374
|
-
|
|
375
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
376
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
377
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
378
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
379
|
-
|
|
380
|
-
return {
|
|
381
|
-
url: toPathString(localVarUrlObj),
|
|
382
|
-
options: localVarRequestOptions,
|
|
383
|
-
};
|
|
95
|
+
appControllerGetHello(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
96
|
+
return localVarFp.appControllerGetHello(options).then((request) => request(axios, basePath));
|
|
384
97
|
},
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
* @param {*} [options] Override http request option.
|
|
388
|
-
* @throws {RequiredError}
|
|
389
|
-
*/
|
|
390
|
-
userControllerFindAll: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
391
|
-
const localVarPath = `/users`;
|
|
392
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
393
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
394
|
-
let baseOptions;
|
|
395
|
-
if (configuration) {
|
|
396
|
-
baseOptions = configuration.baseOptions;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
400
|
-
const localVarHeaderParameter = {} as any;
|
|
401
|
-
const localVarQueryParameter = {} as any;
|
|
402
|
-
|
|
403
|
-
// authentication oauth2 required
|
|
404
|
-
// oauth required
|
|
405
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
410
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
411
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
412
|
-
|
|
413
|
-
return {
|
|
414
|
-
url: toPathString(localVarUrlObj),
|
|
415
|
-
options: localVarRequestOptions,
|
|
416
|
-
};
|
|
417
|
-
},
|
|
418
|
-
/**
|
|
419
|
-
*
|
|
420
|
-
* @param {string} id
|
|
421
|
-
* @param {*} [options] Override http request option.
|
|
422
|
-
* @throws {RequiredError}
|
|
423
|
-
*/
|
|
424
|
-
userControllerRegenerateKeyPair: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
425
|
-
// verify required parameter 'id' is not null or undefined
|
|
426
|
-
assertParamExists('userControllerRegenerateKeyPair', 'id', id)
|
|
427
|
-
const localVarPath = `/users/{id}/regenerate-key-pair`
|
|
428
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
429
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
430
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
431
|
-
let baseOptions;
|
|
432
|
-
if (configuration) {
|
|
433
|
-
baseOptions = configuration.baseOptions;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
437
|
-
const localVarHeaderParameter = {} as any;
|
|
438
|
-
const localVarQueryParameter = {} as any;
|
|
439
|
-
|
|
440
|
-
// authentication oauth2 required
|
|
441
|
-
// oauth required
|
|
442
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
447
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
448
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
449
|
-
|
|
450
|
-
return {
|
|
451
|
-
url: toPathString(localVarUrlObj),
|
|
452
|
-
options: localVarRequestOptions,
|
|
453
|
-
};
|
|
454
|
-
},
|
|
455
|
-
/**
|
|
456
|
-
* Create folder inside workspace
|
|
457
|
-
* @summary Create folder
|
|
458
|
-
* @param {string} workspaceId
|
|
459
|
-
* @param {string} path
|
|
460
|
-
* @param {string} mode
|
|
461
|
-
* @param {*} [options] Override http request option.
|
|
462
|
-
* @throws {RequiredError}
|
|
463
|
-
*/
|
|
464
|
-
workspaceControllerCreateFolder: async (workspaceId: string, path: string, mode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
465
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
466
|
-
assertParamExists('workspaceControllerCreateFolder', 'workspaceId', workspaceId)
|
|
467
|
-
// verify required parameter 'path' is not null or undefined
|
|
468
|
-
assertParamExists('workspaceControllerCreateFolder', 'path', path)
|
|
469
|
-
// verify required parameter 'mode' is not null or undefined
|
|
470
|
-
assertParamExists('workspaceControllerCreateFolder', 'mode', mode)
|
|
471
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files/folder`
|
|
472
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
473
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
474
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
475
|
-
let baseOptions;
|
|
476
|
-
if (configuration) {
|
|
477
|
-
baseOptions = configuration.baseOptions;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
481
|
-
const localVarHeaderParameter = {} as any;
|
|
482
|
-
const localVarQueryParameter = {} as any;
|
|
483
|
-
|
|
484
|
-
// authentication oauth2 required
|
|
485
|
-
// oauth required
|
|
486
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
487
|
-
|
|
488
|
-
if (path !== undefined) {
|
|
489
|
-
localVarQueryParameter['path'] = path;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
if (mode !== undefined) {
|
|
493
|
-
localVarQueryParameter['mode'] = mode;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
499
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
500
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
501
|
-
|
|
502
|
-
return {
|
|
503
|
-
url: toPathString(localVarUrlObj),
|
|
504
|
-
options: localVarRequestOptions,
|
|
505
|
-
};
|
|
506
|
-
},
|
|
507
|
-
/**
|
|
508
|
-
*
|
|
509
|
-
* @summary Create a workspace snapshot
|
|
510
|
-
* @param {string} workspaceId
|
|
511
|
-
* @param {*} [options] Override http request option.
|
|
512
|
-
* @throws {RequiredError}
|
|
513
|
-
*/
|
|
514
|
-
workspaceControllerCreateSnapshot: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
515
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
516
|
-
assertParamExists('workspaceControllerCreateSnapshot', 'workspaceId', workspaceId)
|
|
517
|
-
const localVarPath = `/workspace/{workspaceId}/snapshot`
|
|
518
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
519
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
520
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
521
|
-
let baseOptions;
|
|
522
|
-
if (configuration) {
|
|
523
|
-
baseOptions = configuration.baseOptions;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
527
|
-
const localVarHeaderParameter = {} as any;
|
|
528
|
-
const localVarQueryParameter = {} as any;
|
|
529
|
-
|
|
530
|
-
// authentication oauth2 required
|
|
531
|
-
// oauth required
|
|
532
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
537
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
538
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
539
|
-
|
|
540
|
-
return {
|
|
541
|
-
url: toPathString(localVarUrlObj),
|
|
542
|
-
options: localVarRequestOptions,
|
|
543
|
-
};
|
|
544
|
-
},
|
|
545
|
-
/**
|
|
546
|
-
*
|
|
547
|
-
* @param {CreateWorkspaceDto} createWorkspaceDto
|
|
548
|
-
* @param {*} [options] Override http request option.
|
|
549
|
-
* @throws {RequiredError}
|
|
550
|
-
*/
|
|
551
|
-
workspaceControllerCreateWorkspace: async (createWorkspaceDto: CreateWorkspaceDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
552
|
-
// verify required parameter 'createWorkspaceDto' is not null or undefined
|
|
553
|
-
assertParamExists('workspaceControllerCreateWorkspace', 'createWorkspaceDto', createWorkspaceDto)
|
|
554
|
-
const localVarPath = `/workspace`;
|
|
555
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
556
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
557
|
-
let baseOptions;
|
|
558
|
-
if (configuration) {
|
|
559
|
-
baseOptions = configuration.baseOptions;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
563
|
-
const localVarHeaderParameter = {} as any;
|
|
564
|
-
const localVarQueryParameter = {} as any;
|
|
565
|
-
|
|
566
|
-
// authentication oauth2 required
|
|
567
|
-
// oauth required
|
|
568
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
573
|
-
|
|
574
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
575
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
577
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createWorkspaceDto, localVarRequestOptions, configuration)
|
|
578
|
-
|
|
579
|
-
return {
|
|
580
|
-
url: toPathString(localVarUrlObj),
|
|
581
|
-
options: localVarRequestOptions,
|
|
582
|
-
};
|
|
583
|
-
},
|
|
584
|
-
/**
|
|
585
|
-
* Delete file inside workspace
|
|
586
|
-
* @summary Delete file
|
|
587
|
-
* @param {string} workspaceId
|
|
588
|
-
* @param {string} path
|
|
589
|
-
* @param {*} [options] Override http request option.
|
|
590
|
-
* @throws {RequiredError}
|
|
591
|
-
*/
|
|
592
|
-
workspaceControllerDeleteFile: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
593
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
594
|
-
assertParamExists('workspaceControllerDeleteFile', 'workspaceId', workspaceId)
|
|
595
|
-
// verify required parameter 'path' is not null or undefined
|
|
596
|
-
assertParamExists('workspaceControllerDeleteFile', 'path', path)
|
|
597
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files`
|
|
598
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
599
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
600
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
601
|
-
let baseOptions;
|
|
602
|
-
if (configuration) {
|
|
603
|
-
baseOptions = configuration.baseOptions;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
607
|
-
const localVarHeaderParameter = {} as any;
|
|
608
|
-
const localVarQueryParameter = {} as any;
|
|
609
|
-
|
|
610
|
-
// authentication oauth2 required
|
|
611
|
-
// oauth required
|
|
612
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
613
|
-
|
|
614
|
-
if (path !== undefined) {
|
|
615
|
-
localVarQueryParameter['path'] = path;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
621
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
622
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
623
|
-
|
|
624
|
-
return {
|
|
625
|
-
url: toPathString(localVarUrlObj),
|
|
626
|
-
options: localVarRequestOptions,
|
|
627
|
-
};
|
|
628
|
-
},
|
|
629
|
-
/**
|
|
630
|
-
* Download file from workspace
|
|
631
|
-
* @summary Download file
|
|
632
|
-
* @param {string} workspaceId
|
|
633
|
-
* @param {string} path
|
|
634
|
-
* @param {*} [options] Override http request option.
|
|
635
|
-
* @throws {RequiredError}
|
|
636
|
-
*/
|
|
637
|
-
workspaceControllerDownloadFile: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
638
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
639
|
-
assertParamExists('workspaceControllerDownloadFile', 'workspaceId', workspaceId)
|
|
640
|
-
// verify required parameter 'path' is not null or undefined
|
|
641
|
-
assertParamExists('workspaceControllerDownloadFile', 'path', path)
|
|
642
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files/download`
|
|
643
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
644
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
645
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
646
|
-
let baseOptions;
|
|
647
|
-
if (configuration) {
|
|
648
|
-
baseOptions = configuration.baseOptions;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
652
|
-
const localVarHeaderParameter = {} as any;
|
|
653
|
-
const localVarQueryParameter = {} as any;
|
|
654
|
-
|
|
655
|
-
// authentication oauth2 required
|
|
656
|
-
// oauth required
|
|
657
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
658
|
-
|
|
659
|
-
if (path !== undefined) {
|
|
660
|
-
localVarQueryParameter['path'] = path;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
666
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
667
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
668
|
-
|
|
669
|
-
return {
|
|
670
|
-
url: toPathString(localVarUrlObj),
|
|
671
|
-
options: localVarRequestOptions,
|
|
672
|
-
};
|
|
673
|
-
},
|
|
674
|
-
/**
|
|
675
|
-
* Execute command synchronously inside workspace
|
|
676
|
-
* @summary Execute command
|
|
677
|
-
* @param {string} workspaceId
|
|
678
|
-
* @param {ExecuteRequestDto} executeRequestDto
|
|
679
|
-
* @param {*} [options] Override http request option.
|
|
680
|
-
* @throws {RequiredError}
|
|
681
|
-
*/
|
|
682
|
-
workspaceControllerExecuteCommand: async (workspaceId: string, executeRequestDto: ExecuteRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
683
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
684
|
-
assertParamExists('workspaceControllerExecuteCommand', 'workspaceId', workspaceId)
|
|
685
|
-
// verify required parameter 'executeRequestDto' is not null or undefined
|
|
686
|
-
assertParamExists('workspaceControllerExecuteCommand', 'executeRequestDto', executeRequestDto)
|
|
687
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/process/execute`
|
|
688
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
689
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
690
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
691
|
-
let baseOptions;
|
|
692
|
-
if (configuration) {
|
|
693
|
-
baseOptions = configuration.baseOptions;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
697
|
-
const localVarHeaderParameter = {} as any;
|
|
698
|
-
const localVarQueryParameter = {} as any;
|
|
699
|
-
|
|
700
|
-
// authentication oauth2 required
|
|
701
|
-
// oauth required
|
|
702
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
707
|
-
|
|
708
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
709
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
710
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
711
|
-
localVarRequestOptions.data = serializeDataIfNeeded(executeRequestDto, localVarRequestOptions, configuration)
|
|
712
|
-
|
|
713
|
-
return {
|
|
714
|
-
url: toPathString(localVarUrlObj),
|
|
715
|
-
options: localVarRequestOptions,
|
|
716
|
-
};
|
|
717
|
-
},
|
|
718
|
-
/**
|
|
719
|
-
* Search for text/pattern inside workspace files
|
|
720
|
-
* @summary Search for text/pattern in files
|
|
721
|
-
* @param {string} workspaceId
|
|
722
|
-
* @param {string} path
|
|
723
|
-
* @param {string} pattern
|
|
724
|
-
* @param {*} [options] Override http request option.
|
|
725
|
-
* @throws {RequiredError}
|
|
726
|
-
*/
|
|
727
|
-
workspaceControllerFindInFiles: async (workspaceId: string, path: string, pattern: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
728
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
729
|
-
assertParamExists('workspaceControllerFindInFiles', 'workspaceId', workspaceId)
|
|
730
|
-
// verify required parameter 'path' is not null or undefined
|
|
731
|
-
assertParamExists('workspaceControllerFindInFiles', 'path', path)
|
|
732
|
-
// verify required parameter 'pattern' is not null or undefined
|
|
733
|
-
assertParamExists('workspaceControllerFindInFiles', 'pattern', pattern)
|
|
734
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files/find`
|
|
735
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
736
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
737
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
738
|
-
let baseOptions;
|
|
739
|
-
if (configuration) {
|
|
740
|
-
baseOptions = configuration.baseOptions;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
744
|
-
const localVarHeaderParameter = {} as any;
|
|
745
|
-
const localVarQueryParameter = {} as any;
|
|
746
|
-
|
|
747
|
-
// authentication oauth2 required
|
|
748
|
-
// oauth required
|
|
749
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
750
|
-
|
|
751
|
-
if (path !== undefined) {
|
|
752
|
-
localVarQueryParameter['path'] = path;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
if (pattern !== undefined) {
|
|
756
|
-
localVarQueryParameter['pattern'] = pattern;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
762
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
763
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
764
|
-
|
|
765
|
-
return {
|
|
766
|
-
url: toPathString(localVarUrlObj),
|
|
767
|
-
options: localVarRequestOptions,
|
|
768
|
-
};
|
|
769
|
-
},
|
|
770
|
-
/**
|
|
771
|
-
* Get file info inside workspace
|
|
772
|
-
* @summary Get file info
|
|
773
|
-
* @param {string} workspaceId
|
|
774
|
-
* @param {string} path
|
|
775
|
-
* @param {*} [options] Override http request option.
|
|
776
|
-
* @throws {RequiredError}
|
|
777
|
-
*/
|
|
778
|
-
workspaceControllerGetFileInfo: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
779
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
780
|
-
assertParamExists('workspaceControllerGetFileInfo', 'workspaceId', workspaceId)
|
|
781
|
-
// verify required parameter 'path' is not null or undefined
|
|
782
|
-
assertParamExists('workspaceControllerGetFileInfo', 'path', path)
|
|
783
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files/info`
|
|
784
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
785
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
786
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
787
|
-
let baseOptions;
|
|
788
|
-
if (configuration) {
|
|
789
|
-
baseOptions = configuration.baseOptions;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
793
|
-
const localVarHeaderParameter = {} as any;
|
|
794
|
-
const localVarQueryParameter = {} as any;
|
|
795
|
-
|
|
796
|
-
// authentication oauth2 required
|
|
797
|
-
// oauth required
|
|
798
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
799
|
-
|
|
800
|
-
if (path !== undefined) {
|
|
801
|
-
localVarQueryParameter['path'] = path;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
807
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
808
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
809
|
-
|
|
810
|
-
return {
|
|
811
|
-
url: toPathString(localVarUrlObj),
|
|
812
|
-
options: localVarRequestOptions,
|
|
813
|
-
};
|
|
814
|
-
},
|
|
815
|
-
/**
|
|
816
|
-
* Get workspace project directory
|
|
817
|
-
* @summary Get workspace project dir
|
|
818
|
-
* @param {string} workspaceId
|
|
819
|
-
* @param {*} [options] Override http request option.
|
|
820
|
-
* @throws {RequiredError}
|
|
821
|
-
*/
|
|
822
|
-
workspaceControllerGetProjectDir: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
823
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
824
|
-
assertParamExists('workspaceControllerGetProjectDir', 'workspaceId', workspaceId)
|
|
825
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/project-dir`
|
|
826
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
827
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
828
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
829
|
-
let baseOptions;
|
|
830
|
-
if (configuration) {
|
|
831
|
-
baseOptions = configuration.baseOptions;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
835
|
-
const localVarHeaderParameter = {} as any;
|
|
836
|
-
const localVarQueryParameter = {} as any;
|
|
837
|
-
|
|
838
|
-
// authentication oauth2 required
|
|
839
|
-
// oauth required
|
|
840
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
845
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
846
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
847
|
-
|
|
848
|
-
return {
|
|
849
|
-
url: toPathString(localVarUrlObj),
|
|
850
|
-
options: localVarRequestOptions,
|
|
851
|
-
};
|
|
852
|
-
},
|
|
853
|
-
/**
|
|
854
|
-
*
|
|
855
|
-
* @param {string} workspaceId
|
|
856
|
-
* @param {boolean} [verbose] Include verbose output
|
|
857
|
-
* @param {*} [options] Override http request option.
|
|
858
|
-
* @throws {RequiredError}
|
|
859
|
-
*/
|
|
860
|
-
workspaceControllerGetWorkspace: async (workspaceId: string, verbose?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
861
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
862
|
-
assertParamExists('workspaceControllerGetWorkspace', 'workspaceId', workspaceId)
|
|
863
|
-
const localVarPath = `/workspace/{workspaceId}`
|
|
864
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
865
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
866
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
867
|
-
let baseOptions;
|
|
868
|
-
if (configuration) {
|
|
869
|
-
baseOptions = configuration.baseOptions;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
873
|
-
const localVarHeaderParameter = {} as any;
|
|
874
|
-
const localVarQueryParameter = {} as any;
|
|
875
|
-
|
|
876
|
-
// authentication oauth2 required
|
|
877
|
-
// oauth required
|
|
878
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
879
|
-
|
|
880
|
-
if (verbose !== undefined) {
|
|
881
|
-
localVarQueryParameter['verbose'] = verbose;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
887
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
888
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
889
|
-
|
|
890
|
-
return {
|
|
891
|
-
url: toPathString(localVarUrlObj),
|
|
892
|
-
options: localVarRequestOptions,
|
|
893
|
-
};
|
|
894
|
-
},
|
|
895
|
-
/**
|
|
896
|
-
* Add files to git commit
|
|
897
|
-
* @summary Add files
|
|
898
|
-
* @param {string} workspaceId
|
|
899
|
-
* @param {GitAddRequestDto} gitAddRequestDto
|
|
900
|
-
* @param {*} [options] Override http request option.
|
|
901
|
-
* @throws {RequiredError}
|
|
902
|
-
*/
|
|
903
|
-
workspaceControllerGitAddFiles: async (workspaceId: string, gitAddRequestDto: GitAddRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
904
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
905
|
-
assertParamExists('workspaceControllerGitAddFiles', 'workspaceId', workspaceId)
|
|
906
|
-
// verify required parameter 'gitAddRequestDto' is not null or undefined
|
|
907
|
-
assertParamExists('workspaceControllerGitAddFiles', 'gitAddRequestDto', gitAddRequestDto)
|
|
908
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/git/add`
|
|
909
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
910
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
911
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
912
|
-
let baseOptions;
|
|
913
|
-
if (configuration) {
|
|
914
|
-
baseOptions = configuration.baseOptions;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
918
|
-
const localVarHeaderParameter = {} as any;
|
|
919
|
-
const localVarQueryParameter = {} as any;
|
|
920
|
-
|
|
921
|
-
// authentication oauth2 required
|
|
922
|
-
// oauth required
|
|
923
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
928
|
-
|
|
929
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
930
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
931
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
932
|
-
localVarRequestOptions.data = serializeDataIfNeeded(gitAddRequestDto, localVarRequestOptions, configuration)
|
|
933
|
-
|
|
934
|
-
return {
|
|
935
|
-
url: toPathString(localVarUrlObj),
|
|
936
|
-
options: localVarRequestOptions,
|
|
937
|
-
};
|
|
938
|
-
},
|
|
939
|
-
/**
|
|
940
|
-
* Get branch list from git repository
|
|
941
|
-
* @summary Get branch list
|
|
942
|
-
* @param {string} workspaceId
|
|
943
|
-
* @param {string} path
|
|
944
|
-
* @param {*} [options] Override http request option.
|
|
945
|
-
* @throws {RequiredError}
|
|
946
|
-
*/
|
|
947
|
-
workspaceControllerGitBranchList: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
948
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
949
|
-
assertParamExists('workspaceControllerGitBranchList', 'workspaceId', workspaceId)
|
|
950
|
-
// verify required parameter 'path' is not null or undefined
|
|
951
|
-
assertParamExists('workspaceControllerGitBranchList', 'path', path)
|
|
952
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/git/branches`
|
|
953
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
954
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
955
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
956
|
-
let baseOptions;
|
|
957
|
-
if (configuration) {
|
|
958
|
-
baseOptions = configuration.baseOptions;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
962
|
-
const localVarHeaderParameter = {} as any;
|
|
963
|
-
const localVarQueryParameter = {} as any;
|
|
964
|
-
|
|
965
|
-
// authentication oauth2 required
|
|
966
|
-
// oauth required
|
|
967
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
968
|
-
|
|
969
|
-
if (path !== undefined) {
|
|
970
|
-
localVarQueryParameter['path'] = path;
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
976
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
977
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
978
|
-
|
|
979
|
-
return {
|
|
980
|
-
url: toPathString(localVarUrlObj),
|
|
981
|
-
options: localVarRequestOptions,
|
|
982
|
-
};
|
|
983
|
-
},
|
|
984
|
-
/**
|
|
985
|
-
* Clone git repository
|
|
986
|
-
* @summary Clone repository
|
|
987
|
-
* @param {string} workspaceId
|
|
988
|
-
* @param {GitCloneRequestDto} gitCloneRequestDto
|
|
989
|
-
* @param {*} [options] Override http request option.
|
|
990
|
-
* @throws {RequiredError}
|
|
991
|
-
*/
|
|
992
|
-
workspaceControllerGitCloneRepository: async (workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
993
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
994
|
-
assertParamExists('workspaceControllerGitCloneRepository', 'workspaceId', workspaceId)
|
|
995
|
-
// verify required parameter 'gitCloneRequestDto' is not null or undefined
|
|
996
|
-
assertParamExists('workspaceControllerGitCloneRepository', 'gitCloneRequestDto', gitCloneRequestDto)
|
|
997
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/git/clone`
|
|
998
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
999
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1000
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1001
|
-
let baseOptions;
|
|
1002
|
-
if (configuration) {
|
|
1003
|
-
baseOptions = configuration.baseOptions;
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1007
|
-
const localVarHeaderParameter = {} as any;
|
|
1008
|
-
const localVarQueryParameter = {} as any;
|
|
1009
|
-
|
|
1010
|
-
// authentication oauth2 required
|
|
1011
|
-
// oauth required
|
|
1012
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1017
|
-
|
|
1018
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1019
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1020
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1021
|
-
localVarRequestOptions.data = serializeDataIfNeeded(gitCloneRequestDto, localVarRequestOptions, configuration)
|
|
1022
|
-
|
|
1023
|
-
return {
|
|
1024
|
-
url: toPathString(localVarUrlObj),
|
|
1025
|
-
options: localVarRequestOptions,
|
|
1026
|
-
};
|
|
1027
|
-
},
|
|
1028
|
-
/**
|
|
1029
|
-
* Commit changes to git repository
|
|
1030
|
-
* @summary Commit changes
|
|
1031
|
-
* @param {string} workspaceId
|
|
1032
|
-
* @param {GitCommitRequestDto} gitCommitRequestDto
|
|
1033
|
-
* @param {*} [options] Override http request option.
|
|
1034
|
-
* @throws {RequiredError}
|
|
1035
|
-
*/
|
|
1036
|
-
workspaceControllerGitCommitChanges: async (workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1037
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1038
|
-
assertParamExists('workspaceControllerGitCommitChanges', 'workspaceId', workspaceId)
|
|
1039
|
-
// verify required parameter 'gitCommitRequestDto' is not null or undefined
|
|
1040
|
-
assertParamExists('workspaceControllerGitCommitChanges', 'gitCommitRequestDto', gitCommitRequestDto)
|
|
1041
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/git/commit`
|
|
1042
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1043
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1044
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1045
|
-
let baseOptions;
|
|
1046
|
-
if (configuration) {
|
|
1047
|
-
baseOptions = configuration.baseOptions;
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1051
|
-
const localVarHeaderParameter = {} as any;
|
|
1052
|
-
const localVarQueryParameter = {} as any;
|
|
1053
|
-
|
|
1054
|
-
// authentication oauth2 required
|
|
1055
|
-
// oauth required
|
|
1056
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1061
|
-
|
|
1062
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1063
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1064
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1065
|
-
localVarRequestOptions.data = serializeDataIfNeeded(gitCommitRequestDto, localVarRequestOptions, configuration)
|
|
1066
|
-
|
|
1067
|
-
return {
|
|
1068
|
-
url: toPathString(localVarUrlObj),
|
|
1069
|
-
options: localVarRequestOptions,
|
|
1070
|
-
};
|
|
1071
|
-
},
|
|
1072
|
-
/**
|
|
1073
|
-
* Get commit history from git repository
|
|
1074
|
-
* @summary Get commit history
|
|
1075
|
-
* @param {string} workspaceId
|
|
1076
|
-
* @param {string} path
|
|
1077
|
-
* @param {*} [options] Override http request option.
|
|
1078
|
-
* @throws {RequiredError}
|
|
1079
|
-
*/
|
|
1080
|
-
workspaceControllerGitCommitHistory: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1081
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1082
|
-
assertParamExists('workspaceControllerGitCommitHistory', 'workspaceId', workspaceId)
|
|
1083
|
-
// verify required parameter 'path' is not null or undefined
|
|
1084
|
-
assertParamExists('workspaceControllerGitCommitHistory', 'path', path)
|
|
1085
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/git/history`
|
|
1086
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1087
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1088
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1089
|
-
let baseOptions;
|
|
1090
|
-
if (configuration) {
|
|
1091
|
-
baseOptions = configuration.baseOptions;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1095
|
-
const localVarHeaderParameter = {} as any;
|
|
1096
|
-
const localVarQueryParameter = {} as any;
|
|
1097
|
-
|
|
1098
|
-
// authentication oauth2 required
|
|
1099
|
-
// oauth required
|
|
1100
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1101
|
-
|
|
1102
|
-
if (path !== undefined) {
|
|
1103
|
-
localVarQueryParameter['path'] = path;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1109
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1110
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1111
|
-
|
|
1112
|
-
return {
|
|
1113
|
-
url: toPathString(localVarUrlObj),
|
|
1114
|
-
options: localVarRequestOptions,
|
|
1115
|
-
};
|
|
1116
|
-
},
|
|
1117
|
-
/**
|
|
1118
|
-
* Create branch on git repository
|
|
1119
|
-
* @summary Create branch
|
|
1120
|
-
* @param {string} workspaceId
|
|
1121
|
-
* @param {GitBranchRequestDto} gitBranchRequestDto
|
|
1122
|
-
* @param {*} [options] Override http request option.
|
|
1123
|
-
* @throws {RequiredError}
|
|
1124
|
-
*/
|
|
1125
|
-
workspaceControllerGitCreateBranch: async (workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1126
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1127
|
-
assertParamExists('workspaceControllerGitCreateBranch', 'workspaceId', workspaceId)
|
|
1128
|
-
// verify required parameter 'gitBranchRequestDto' is not null or undefined
|
|
1129
|
-
assertParamExists('workspaceControllerGitCreateBranch', 'gitBranchRequestDto', gitBranchRequestDto)
|
|
1130
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/git/branches`
|
|
1131
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1132
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1133
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1134
|
-
let baseOptions;
|
|
1135
|
-
if (configuration) {
|
|
1136
|
-
baseOptions = configuration.baseOptions;
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1140
|
-
const localVarHeaderParameter = {} as any;
|
|
1141
|
-
const localVarQueryParameter = {} as any;
|
|
1142
|
-
|
|
1143
|
-
// authentication oauth2 required
|
|
1144
|
-
// oauth required
|
|
1145
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1150
|
-
|
|
1151
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1152
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1153
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1154
|
-
localVarRequestOptions.data = serializeDataIfNeeded(gitBranchRequestDto, localVarRequestOptions, configuration)
|
|
1155
|
-
|
|
1156
|
-
return {
|
|
1157
|
-
url: toPathString(localVarUrlObj),
|
|
1158
|
-
options: localVarRequestOptions,
|
|
1159
|
-
};
|
|
1160
|
-
},
|
|
1161
|
-
/**
|
|
1162
|
-
* Pull changes from remote
|
|
1163
|
-
* @summary Pull changes
|
|
1164
|
-
* @param {string} workspaceId
|
|
1165
|
-
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
1166
|
-
* @param {*} [options] Override http request option.
|
|
1167
|
-
* @throws {RequiredError}
|
|
1168
|
-
*/
|
|
1169
|
-
workspaceControllerGitPullChanges: async (workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1170
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1171
|
-
assertParamExists('workspaceControllerGitPullChanges', 'workspaceId', workspaceId)
|
|
1172
|
-
// verify required parameter 'gitRepoRequestDto' is not null or undefined
|
|
1173
|
-
assertParamExists('workspaceControllerGitPullChanges', 'gitRepoRequestDto', gitRepoRequestDto)
|
|
1174
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/git/pull`
|
|
1175
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1176
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1177
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1178
|
-
let baseOptions;
|
|
1179
|
-
if (configuration) {
|
|
1180
|
-
baseOptions = configuration.baseOptions;
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1184
|
-
const localVarHeaderParameter = {} as any;
|
|
1185
|
-
const localVarQueryParameter = {} as any;
|
|
1186
|
-
|
|
1187
|
-
// authentication oauth2 required
|
|
1188
|
-
// oauth required
|
|
1189
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1194
|
-
|
|
1195
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1196
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1197
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1198
|
-
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequestDto, localVarRequestOptions, configuration)
|
|
1199
|
-
|
|
1200
|
-
return {
|
|
1201
|
-
url: toPathString(localVarUrlObj),
|
|
1202
|
-
options: localVarRequestOptions,
|
|
1203
|
-
};
|
|
1204
|
-
},
|
|
1205
|
-
/**
|
|
1206
|
-
* Push changes to remote
|
|
1207
|
-
* @summary Push changes
|
|
1208
|
-
* @param {string} workspaceId
|
|
1209
|
-
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
1210
|
-
* @param {*} [options] Override http request option.
|
|
1211
|
-
* @throws {RequiredError}
|
|
1212
|
-
*/
|
|
1213
|
-
workspaceControllerGitPushChanges: async (workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1214
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1215
|
-
assertParamExists('workspaceControllerGitPushChanges', 'workspaceId', workspaceId)
|
|
1216
|
-
// verify required parameter 'gitRepoRequestDto' is not null or undefined
|
|
1217
|
-
assertParamExists('workspaceControllerGitPushChanges', 'gitRepoRequestDto', gitRepoRequestDto)
|
|
1218
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/git/push`
|
|
1219
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1220
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1221
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1222
|
-
let baseOptions;
|
|
1223
|
-
if (configuration) {
|
|
1224
|
-
baseOptions = configuration.baseOptions;
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1228
|
-
const localVarHeaderParameter = {} as any;
|
|
1229
|
-
const localVarQueryParameter = {} as any;
|
|
1230
|
-
|
|
1231
|
-
// authentication oauth2 required
|
|
1232
|
-
// oauth required
|
|
1233
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1238
|
-
|
|
1239
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1240
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1241
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1242
|
-
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequestDto, localVarRequestOptions, configuration)
|
|
1243
|
-
|
|
1244
|
-
return {
|
|
1245
|
-
url: toPathString(localVarUrlObj),
|
|
1246
|
-
options: localVarRequestOptions,
|
|
1247
|
-
};
|
|
1248
|
-
},
|
|
1249
|
-
/**
|
|
1250
|
-
* Get status from git repository
|
|
1251
|
-
* @summary Get git status
|
|
1252
|
-
* @param {string} workspaceId
|
|
1253
|
-
* @param {string} path
|
|
1254
|
-
* @param {*} [options] Override http request option.
|
|
1255
|
-
* @throws {RequiredError}
|
|
1256
|
-
*/
|
|
1257
|
-
workspaceControllerGitStatus: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1258
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1259
|
-
assertParamExists('workspaceControllerGitStatus', 'workspaceId', workspaceId)
|
|
1260
|
-
// verify required parameter 'path' is not null or undefined
|
|
1261
|
-
assertParamExists('workspaceControllerGitStatus', 'path', path)
|
|
1262
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/git/status`
|
|
1263
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1264
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1265
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1266
|
-
let baseOptions;
|
|
1267
|
-
if (configuration) {
|
|
1268
|
-
baseOptions = configuration.baseOptions;
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1272
|
-
const localVarHeaderParameter = {} as any;
|
|
1273
|
-
const localVarQueryParameter = {} as any;
|
|
1274
|
-
|
|
1275
|
-
// authentication oauth2 required
|
|
1276
|
-
// oauth required
|
|
1277
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1278
|
-
|
|
1279
|
-
if (path !== undefined) {
|
|
1280
|
-
localVarQueryParameter['path'] = path;
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1286
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1287
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1288
|
-
|
|
1289
|
-
return {
|
|
1290
|
-
url: toPathString(localVarUrlObj),
|
|
1291
|
-
options: localVarRequestOptions,
|
|
1292
|
-
};
|
|
1293
|
-
},
|
|
1294
|
-
/**
|
|
1295
|
-
* List files inside workspace
|
|
1296
|
-
* @summary List files
|
|
1297
|
-
* @param {string} workspaceId
|
|
1298
|
-
* @param {string} [path]
|
|
1299
|
-
* @param {*} [options] Override http request option.
|
|
1300
|
-
* @throws {RequiredError}
|
|
1301
|
-
*/
|
|
1302
|
-
workspaceControllerListFiles: async (workspaceId: string, path?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1303
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1304
|
-
assertParamExists('workspaceControllerListFiles', 'workspaceId', workspaceId)
|
|
1305
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files`
|
|
1306
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1307
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1308
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1309
|
-
let baseOptions;
|
|
1310
|
-
if (configuration) {
|
|
1311
|
-
baseOptions = configuration.baseOptions;
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1315
|
-
const localVarHeaderParameter = {} as any;
|
|
1316
|
-
const localVarQueryParameter = {} as any;
|
|
1317
|
-
|
|
1318
|
-
// authentication oauth2 required
|
|
1319
|
-
// oauth required
|
|
1320
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1321
|
-
|
|
1322
|
-
if (path !== undefined) {
|
|
1323
|
-
localVarQueryParameter['path'] = path;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1329
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1330
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1331
|
-
|
|
1332
|
-
return {
|
|
1333
|
-
url: toPathString(localVarUrlObj),
|
|
1334
|
-
options: localVarRequestOptions,
|
|
1335
|
-
};
|
|
1336
|
-
},
|
|
1337
|
-
/**
|
|
1338
|
-
*
|
|
1339
|
-
* @param {boolean} [verbose] Include verbose output
|
|
1340
|
-
* @param {*} [options] Override http request option.
|
|
1341
|
-
* @throws {RequiredError}
|
|
1342
|
-
*/
|
|
1343
|
-
workspaceControllerListWorkspaces: async (verbose?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1344
|
-
const localVarPath = `/workspace`;
|
|
1345
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1346
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1347
|
-
let baseOptions;
|
|
1348
|
-
if (configuration) {
|
|
1349
|
-
baseOptions = configuration.baseOptions;
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1353
|
-
const localVarHeaderParameter = {} as any;
|
|
1354
|
-
const localVarQueryParameter = {} as any;
|
|
1355
|
-
|
|
1356
|
-
// authentication oauth2 required
|
|
1357
|
-
// oauth required
|
|
1358
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1359
|
-
|
|
1360
|
-
if (verbose !== undefined) {
|
|
1361
|
-
localVarQueryParameter['verbose'] = verbose;
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1367
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1368
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1369
|
-
|
|
1370
|
-
return {
|
|
1371
|
-
url: toPathString(localVarUrlObj),
|
|
1372
|
-
options: localVarRequestOptions,
|
|
1373
|
-
};
|
|
1374
|
-
},
|
|
1375
|
-
/**
|
|
1376
|
-
* Move file inside workspace
|
|
1377
|
-
* @summary Move file
|
|
1378
|
-
* @param {string} workspaceId
|
|
1379
|
-
* @param {string} source
|
|
1380
|
-
* @param {string} destination
|
|
1381
|
-
* @param {*} [options] Override http request option.
|
|
1382
|
-
* @throws {RequiredError}
|
|
1383
|
-
*/
|
|
1384
|
-
workspaceControllerMoveFile: async (workspaceId: string, source: string, destination: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1385
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1386
|
-
assertParamExists('workspaceControllerMoveFile', 'workspaceId', workspaceId)
|
|
1387
|
-
// verify required parameter 'source' is not null or undefined
|
|
1388
|
-
assertParamExists('workspaceControllerMoveFile', 'source', source)
|
|
1389
|
-
// verify required parameter 'destination' is not null or undefined
|
|
1390
|
-
assertParamExists('workspaceControllerMoveFile', 'destination', destination)
|
|
1391
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files/move`
|
|
1392
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1393
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1394
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1395
|
-
let baseOptions;
|
|
1396
|
-
if (configuration) {
|
|
1397
|
-
baseOptions = configuration.baseOptions;
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1401
|
-
const localVarHeaderParameter = {} as any;
|
|
1402
|
-
const localVarQueryParameter = {} as any;
|
|
1403
|
-
|
|
1404
|
-
// authentication oauth2 required
|
|
1405
|
-
// oauth required
|
|
1406
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1407
|
-
|
|
1408
|
-
if (source !== undefined) {
|
|
1409
|
-
localVarQueryParameter['source'] = source;
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
if (destination !== undefined) {
|
|
1413
|
-
localVarQueryParameter['destination'] = destination;
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1419
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1420
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1421
|
-
|
|
1422
|
-
return {
|
|
1423
|
-
url: toPathString(localVarUrlObj),
|
|
1424
|
-
options: localVarRequestOptions,
|
|
1425
|
-
};
|
|
1426
|
-
},
|
|
1427
|
-
/**
|
|
1428
|
-
*
|
|
1429
|
-
* @param {string} workspaceId
|
|
1430
|
-
* @param {boolean} force
|
|
1431
|
-
* @param {*} [options] Override http request option.
|
|
1432
|
-
* @throws {RequiredError}
|
|
1433
|
-
*/
|
|
1434
|
-
workspaceControllerRemoveWorkspace: async (workspaceId: string, force: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1435
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1436
|
-
assertParamExists('workspaceControllerRemoveWorkspace', 'workspaceId', workspaceId)
|
|
1437
|
-
// verify required parameter 'force' is not null or undefined
|
|
1438
|
-
assertParamExists('workspaceControllerRemoveWorkspace', 'force', force)
|
|
1439
|
-
const localVarPath = `/workspace/{workspaceId}`
|
|
1440
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1441
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1442
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1443
|
-
let baseOptions;
|
|
1444
|
-
if (configuration) {
|
|
1445
|
-
baseOptions = configuration.baseOptions;
|
|
1446
|
-
}
|
|
1447
|
-
|
|
1448
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1449
|
-
const localVarHeaderParameter = {} as any;
|
|
1450
|
-
const localVarQueryParameter = {} as any;
|
|
1451
|
-
|
|
1452
|
-
// authentication oauth2 required
|
|
1453
|
-
// oauth required
|
|
1454
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1455
|
-
|
|
1456
|
-
if (force !== undefined) {
|
|
1457
|
-
localVarQueryParameter['force'] = force;
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1463
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1464
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1465
|
-
|
|
1466
|
-
return {
|
|
1467
|
-
url: toPathString(localVarUrlObj),
|
|
1468
|
-
options: localVarRequestOptions,
|
|
1469
|
-
};
|
|
1470
|
-
},
|
|
1471
|
-
/**
|
|
1472
|
-
* Replace text/pattern in multiple files inside workspace
|
|
1473
|
-
* @summary Replace in files
|
|
1474
|
-
* @param {string} workspaceId
|
|
1475
|
-
* @param {ReplaceRequestDto} replaceRequestDto
|
|
1476
|
-
* @param {*} [options] Override http request option.
|
|
1477
|
-
* @throws {RequiredError}
|
|
1478
|
-
*/
|
|
1479
|
-
workspaceControllerReplaceInFiles: async (workspaceId: string, replaceRequestDto: ReplaceRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1480
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1481
|
-
assertParamExists('workspaceControllerReplaceInFiles', 'workspaceId', workspaceId)
|
|
1482
|
-
// verify required parameter 'replaceRequestDto' is not null or undefined
|
|
1483
|
-
assertParamExists('workspaceControllerReplaceInFiles', 'replaceRequestDto', replaceRequestDto)
|
|
1484
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files/replace`
|
|
1485
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1486
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1487
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1488
|
-
let baseOptions;
|
|
1489
|
-
if (configuration) {
|
|
1490
|
-
baseOptions = configuration.baseOptions;
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1494
|
-
const localVarHeaderParameter = {} as any;
|
|
1495
|
-
const localVarQueryParameter = {} as any;
|
|
1496
|
-
|
|
1497
|
-
// authentication oauth2 required
|
|
1498
|
-
// oauth required
|
|
1499
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1504
|
-
|
|
1505
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1506
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1507
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1508
|
-
localVarRequestOptions.data = serializeDataIfNeeded(replaceRequestDto, localVarRequestOptions, configuration)
|
|
1509
|
-
|
|
1510
|
-
return {
|
|
1511
|
-
url: toPathString(localVarUrlObj),
|
|
1512
|
-
options: localVarRequestOptions,
|
|
1513
|
-
};
|
|
1514
|
-
},
|
|
1515
|
-
/**
|
|
1516
|
-
* Replace all labels for a workspace. Existing labels will be removed.
|
|
1517
|
-
* @summary Replace workspace labels
|
|
1518
|
-
* @param {string} workspaceId
|
|
1519
|
-
* @param {WorkspaceLabelsDto} workspaceLabelsDto
|
|
1520
|
-
* @param {*} [options] Override http request option.
|
|
1521
|
-
* @throws {RequiredError}
|
|
1522
|
-
*/
|
|
1523
|
-
workspaceControllerReplaceLabels: async (workspaceId: string, workspaceLabelsDto: WorkspaceLabelsDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1524
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1525
|
-
assertParamExists('workspaceControllerReplaceLabels', 'workspaceId', workspaceId)
|
|
1526
|
-
// verify required parameter 'workspaceLabelsDto' is not null or undefined
|
|
1527
|
-
assertParamExists('workspaceControllerReplaceLabels', 'workspaceLabelsDto', workspaceLabelsDto)
|
|
1528
|
-
const localVarPath = `/workspace/{workspaceId}/labels`
|
|
1529
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1530
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1531
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1532
|
-
let baseOptions;
|
|
1533
|
-
if (configuration) {
|
|
1534
|
-
baseOptions = configuration.baseOptions;
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1538
|
-
const localVarHeaderParameter = {} as any;
|
|
1539
|
-
const localVarQueryParameter = {} as any;
|
|
1540
|
-
|
|
1541
|
-
// authentication oauth2 required
|
|
1542
|
-
// oauth required
|
|
1543
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1548
|
-
|
|
1549
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1550
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1551
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1552
|
-
localVarRequestOptions.data = serializeDataIfNeeded(workspaceLabelsDto, localVarRequestOptions, configuration)
|
|
1553
|
-
|
|
1554
|
-
return {
|
|
1555
|
-
url: toPathString(localVarUrlObj),
|
|
1556
|
-
options: localVarRequestOptions,
|
|
1557
|
-
};
|
|
1558
|
-
},
|
|
1559
|
-
/**
|
|
1560
|
-
* Search for files inside workspace
|
|
1561
|
-
* @summary Search files
|
|
1562
|
-
* @param {string} workspaceId
|
|
1563
|
-
* @param {string} path
|
|
1564
|
-
* @param {string} pattern
|
|
1565
|
-
* @param {*} [options] Override http request option.
|
|
1566
|
-
* @throws {RequiredError}
|
|
1567
|
-
*/
|
|
1568
|
-
workspaceControllerSearchFiles: async (workspaceId: string, path: string, pattern: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1569
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1570
|
-
assertParamExists('workspaceControllerSearchFiles', 'workspaceId', workspaceId)
|
|
1571
|
-
// verify required parameter 'path' is not null or undefined
|
|
1572
|
-
assertParamExists('workspaceControllerSearchFiles', 'path', path)
|
|
1573
|
-
// verify required parameter 'pattern' is not null or undefined
|
|
1574
|
-
assertParamExists('workspaceControllerSearchFiles', 'pattern', pattern)
|
|
1575
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files/search`
|
|
1576
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1577
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1578
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1579
|
-
let baseOptions;
|
|
1580
|
-
if (configuration) {
|
|
1581
|
-
baseOptions = configuration.baseOptions;
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1585
|
-
const localVarHeaderParameter = {} as any;
|
|
1586
|
-
const localVarQueryParameter = {} as any;
|
|
1587
|
-
|
|
1588
|
-
// authentication oauth2 required
|
|
1589
|
-
// oauth required
|
|
1590
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1591
|
-
|
|
1592
|
-
if (path !== undefined) {
|
|
1593
|
-
localVarQueryParameter['path'] = path;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
if (pattern !== undefined) {
|
|
1597
|
-
localVarQueryParameter['pattern'] = pattern;
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1603
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1604
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1605
|
-
|
|
1606
|
-
return {
|
|
1607
|
-
url: toPathString(localVarUrlObj),
|
|
1608
|
-
options: localVarRequestOptions,
|
|
1609
|
-
};
|
|
1610
|
-
},
|
|
1611
|
-
/**
|
|
1612
|
-
* Set file owner/group/permissions inside workspace
|
|
1613
|
-
* @summary Set file permissions
|
|
1614
|
-
* @param {string} workspaceId
|
|
1615
|
-
* @param {string} path
|
|
1616
|
-
* @param {string} owner
|
|
1617
|
-
* @param {string} group
|
|
1618
|
-
* @param {string} mode
|
|
1619
|
-
* @param {*} [options] Override http request option.
|
|
1620
|
-
* @throws {RequiredError}
|
|
1621
|
-
*/
|
|
1622
|
-
workspaceControllerSetFilePermissions: async (workspaceId: string, path: string, owner: string, group: string, mode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1623
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1624
|
-
assertParamExists('workspaceControllerSetFilePermissions', 'workspaceId', workspaceId)
|
|
1625
|
-
// verify required parameter 'path' is not null or undefined
|
|
1626
|
-
assertParamExists('workspaceControllerSetFilePermissions', 'path', path)
|
|
1627
|
-
// verify required parameter 'owner' is not null or undefined
|
|
1628
|
-
assertParamExists('workspaceControllerSetFilePermissions', 'owner', owner)
|
|
1629
|
-
// verify required parameter 'group' is not null or undefined
|
|
1630
|
-
assertParamExists('workspaceControllerSetFilePermissions', 'group', group)
|
|
1631
|
-
// verify required parameter 'mode' is not null or undefined
|
|
1632
|
-
assertParamExists('workspaceControllerSetFilePermissions', 'mode', mode)
|
|
1633
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files/permissions`
|
|
1634
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1635
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1636
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1637
|
-
let baseOptions;
|
|
1638
|
-
if (configuration) {
|
|
1639
|
-
baseOptions = configuration.baseOptions;
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1643
|
-
const localVarHeaderParameter = {} as any;
|
|
1644
|
-
const localVarQueryParameter = {} as any;
|
|
1645
|
-
|
|
1646
|
-
// authentication oauth2 required
|
|
1647
|
-
// oauth required
|
|
1648
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1649
|
-
|
|
1650
|
-
if (path !== undefined) {
|
|
1651
|
-
localVarQueryParameter['path'] = path;
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
if (owner !== undefined) {
|
|
1655
|
-
localVarQueryParameter['owner'] = owner;
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
if (group !== undefined) {
|
|
1659
|
-
localVarQueryParameter['group'] = group;
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
if (mode !== undefined) {
|
|
1663
|
-
localVarQueryParameter['mode'] = mode;
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1669
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1670
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1671
|
-
|
|
1672
|
-
return {
|
|
1673
|
-
url: toPathString(localVarUrlObj),
|
|
1674
|
-
options: localVarRequestOptions,
|
|
1675
|
-
};
|
|
1676
|
-
},
|
|
1677
|
-
/**
|
|
1678
|
-
*
|
|
1679
|
-
* @param {string} workspaceId
|
|
1680
|
-
* @param {*} [options] Override http request option.
|
|
1681
|
-
* @throws {RequiredError}
|
|
1682
|
-
*/
|
|
1683
|
-
workspaceControllerStartWorkspace: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1684
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1685
|
-
assertParamExists('workspaceControllerStartWorkspace', 'workspaceId', workspaceId)
|
|
1686
|
-
const localVarPath = `/workspace/{workspaceId}/start`
|
|
1687
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1688
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1689
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1690
|
-
let baseOptions;
|
|
1691
|
-
if (configuration) {
|
|
1692
|
-
baseOptions = configuration.baseOptions;
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1696
|
-
const localVarHeaderParameter = {} as any;
|
|
1697
|
-
const localVarQueryParameter = {} as any;
|
|
1698
|
-
|
|
1699
|
-
// authentication oauth2 required
|
|
1700
|
-
// oauth required
|
|
1701
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1706
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1707
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1708
|
-
|
|
1709
|
-
return {
|
|
1710
|
-
url: toPathString(localVarUrlObj),
|
|
1711
|
-
options: localVarRequestOptions,
|
|
1712
|
-
};
|
|
1713
|
-
},
|
|
1714
|
-
/**
|
|
1715
|
-
*
|
|
1716
|
-
* @param {string} workspaceId
|
|
1717
|
-
* @param {*} [options] Override http request option.
|
|
1718
|
-
* @throws {RequiredError}
|
|
1719
|
-
*/
|
|
1720
|
-
workspaceControllerStopWorkspace: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1721
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1722
|
-
assertParamExists('workspaceControllerStopWorkspace', 'workspaceId', workspaceId)
|
|
1723
|
-
const localVarPath = `/workspace/{workspaceId}/stop`
|
|
1724
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1725
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1726
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1727
|
-
let baseOptions;
|
|
1728
|
-
if (configuration) {
|
|
1729
|
-
baseOptions = configuration.baseOptions;
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1733
|
-
const localVarHeaderParameter = {} as any;
|
|
1734
|
-
const localVarQueryParameter = {} as any;
|
|
1735
|
-
|
|
1736
|
-
// authentication oauth2 required
|
|
1737
|
-
// oauth required
|
|
1738
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1743
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1744
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1745
|
-
|
|
1746
|
-
return {
|
|
1747
|
-
url: toPathString(localVarUrlObj),
|
|
1748
|
-
options: localVarRequestOptions,
|
|
1749
|
-
};
|
|
1750
|
-
},
|
|
1751
|
-
/**
|
|
1752
|
-
* Change public preview status of a workspace
|
|
1753
|
-
* @summary Change public preview status
|
|
1754
|
-
* @param {string} workspaceId ID of the workspace
|
|
1755
|
-
* @param {boolean} isPublic Public status to set
|
|
1756
|
-
* @param {*} [options] Override http request option.
|
|
1757
|
-
* @throws {RequiredError}
|
|
1758
|
-
*/
|
|
1759
|
-
workspaceControllerUpdatePublicStatus: async (workspaceId: string, isPublic: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1760
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1761
|
-
assertParamExists('workspaceControllerUpdatePublicStatus', 'workspaceId', workspaceId)
|
|
1762
|
-
// verify required parameter 'isPublic' is not null or undefined
|
|
1763
|
-
assertParamExists('workspaceControllerUpdatePublicStatus', 'isPublic', isPublic)
|
|
1764
|
-
const localVarPath = `/workspace/{workspaceId}/public/{isPublic}`
|
|
1765
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
1766
|
-
.replace(`{${"isPublic"}}`, encodeURIComponent(String(isPublic)));
|
|
1767
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1768
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1769
|
-
let baseOptions;
|
|
1770
|
-
if (configuration) {
|
|
1771
|
-
baseOptions = configuration.baseOptions;
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1775
|
-
const localVarHeaderParameter = {} as any;
|
|
1776
|
-
const localVarQueryParameter = {} as any;
|
|
1777
|
-
|
|
1778
|
-
// authentication oauth2 required
|
|
1779
|
-
// oauth required
|
|
1780
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1785
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1786
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1787
|
-
|
|
1788
|
-
return {
|
|
1789
|
-
url: toPathString(localVarUrlObj),
|
|
1790
|
-
options: localVarRequestOptions,
|
|
1791
|
-
};
|
|
1792
|
-
},
|
|
1793
|
-
/**
|
|
1794
|
-
* Upload file inside workspace
|
|
1795
|
-
* @summary Upload file
|
|
1796
|
-
* @param {string} workspaceId
|
|
1797
|
-
* @param {string} path
|
|
1798
|
-
* @param {File} [file]
|
|
1799
|
-
* @param {*} [options] Override http request option.
|
|
1800
|
-
* @throws {RequiredError}
|
|
1801
|
-
*/
|
|
1802
|
-
workspaceControllerUploadFile: async (workspaceId: string, path: string, file?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1803
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1804
|
-
assertParamExists('workspaceControllerUploadFile', 'workspaceId', workspaceId)
|
|
1805
|
-
// verify required parameter 'path' is not null or undefined
|
|
1806
|
-
assertParamExists('workspaceControllerUploadFile', 'path', path)
|
|
1807
|
-
const localVarPath = `/workspace/{workspaceId}/toolbox/files/upload`
|
|
1808
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1809
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1810
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1811
|
-
let baseOptions;
|
|
1812
|
-
if (configuration) {
|
|
1813
|
-
baseOptions = configuration.baseOptions;
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1817
|
-
const localVarHeaderParameter = {} as any;
|
|
1818
|
-
const localVarQueryParameter = {} as any;
|
|
1819
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1820
|
-
|
|
1821
|
-
// authentication oauth2 required
|
|
1822
|
-
// oauth required
|
|
1823
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1824
|
-
|
|
1825
|
-
if (path !== undefined) {
|
|
1826
|
-
localVarQueryParameter['path'] = path;
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
if (file !== undefined) {
|
|
1831
|
-
localVarFormParams.append('file', file as any);
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1836
|
-
|
|
1837
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1838
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1839
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1840
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
1841
|
-
|
|
1842
|
-
return {
|
|
1843
|
-
url: toPathString(localVarUrlObj),
|
|
1844
|
-
options: localVarRequestOptions,
|
|
1845
|
-
};
|
|
1846
|
-
},
|
|
1847
|
-
}
|
|
1848
|
-
};
|
|
1849
|
-
|
|
1850
|
-
/**
|
|
1851
|
-
* DefaultApi - functional programming interface
|
|
1852
|
-
* @export
|
|
1853
|
-
*/
|
|
1854
|
-
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
1855
|
-
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
1856
|
-
return {
|
|
1857
|
-
/**
|
|
1858
|
-
*
|
|
1859
|
-
* @summary Create a new API key
|
|
1860
|
-
* @param {CreateApiKeyDto} createApiKeyDto
|
|
1861
|
-
* @param {*} [options] Override http request option.
|
|
1862
|
-
* @throws {RequiredError}
|
|
1863
|
-
*/
|
|
1864
|
-
async apiKeyControllerCreateApiKey(createApiKeyDto: CreateApiKeyDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponseDto>> {
|
|
1865
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeyControllerCreateApiKey(createApiKeyDto, options);
|
|
1866
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1867
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiKeyControllerCreateApiKey']?.[localVarOperationServerIndex]?.url;
|
|
1868
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1869
|
-
},
|
|
1870
|
-
/**
|
|
1871
|
-
*
|
|
1872
|
-
* @summary Delete an API key by name
|
|
1873
|
-
* @param {string} name
|
|
1874
|
-
* @param {*} [options] Override http request option.
|
|
1875
|
-
* @throws {RequiredError}
|
|
1876
|
-
*/
|
|
1877
|
-
async apiKeyControllerDeleteApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1878
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeyControllerDeleteApiKey(name, options);
|
|
1879
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1880
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiKeyControllerDeleteApiKey']?.[localVarOperationServerIndex]?.url;
|
|
1881
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1882
|
-
},
|
|
1883
|
-
/**
|
|
1884
|
-
*
|
|
1885
|
-
* @summary Get a specific API key by name
|
|
1886
|
-
* @param {string} name
|
|
1887
|
-
* @param {*} [options] Override http request option.
|
|
1888
|
-
* @throws {RequiredError}
|
|
1889
|
-
*/
|
|
1890
|
-
async apiKeyControllerGetApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyListDto>> {
|
|
1891
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeyControllerGetApiKey(name, options);
|
|
1892
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1893
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiKeyControllerGetApiKey']?.[localVarOperationServerIndex]?.url;
|
|
1894
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1895
|
-
},
|
|
1896
|
-
/**
|
|
1897
|
-
*
|
|
1898
|
-
* @summary Get all API keys for the user
|
|
1899
|
-
* @param {*} [options] Override http request option.
|
|
1900
|
-
* @throws {RequiredError}
|
|
1901
|
-
*/
|
|
1902
|
-
async apiKeyControllerGetApiKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyListDto>>> {
|
|
1903
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeyControllerGetApiKeys(options);
|
|
1904
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1905
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.apiKeyControllerGetApiKeys']?.[localVarOperationServerIndex]?.url;
|
|
1906
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1907
|
-
},
|
|
1908
|
-
/**
|
|
1909
|
-
*
|
|
1910
|
-
* @param {*} [options] Override http request option.
|
|
1911
|
-
* @throws {RequiredError}
|
|
1912
|
-
*/
|
|
1913
|
-
async appControllerGetHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1914
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.appControllerGetHello(options);
|
|
1915
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1916
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.appControllerGetHello']?.[localVarOperationServerIndex]?.url;
|
|
1917
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1918
|
-
},
|
|
1919
|
-
/**
|
|
1920
|
-
*
|
|
1921
|
-
* @param {object} body
|
|
1922
|
-
* @param {*} [options] Override http request option.
|
|
1923
|
-
* @throws {RequiredError}
|
|
1924
|
-
*/
|
|
1925
|
-
async nodeControllerCreate(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1926
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.nodeControllerCreate(body, options);
|
|
1927
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1928
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.nodeControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
1929
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1930
|
-
},
|
|
1931
|
-
/**
|
|
1932
|
-
*
|
|
1933
|
-
* @param {*} [options] Override http request option.
|
|
1934
|
-
* @throws {RequiredError}
|
|
1935
|
-
*/
|
|
1936
|
-
async nodeControllerFindAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1937
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.nodeControllerFindAll(options);
|
|
1938
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1939
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.nodeControllerFindAll']?.[localVarOperationServerIndex]?.url;
|
|
1940
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1941
|
-
},
|
|
1942
|
-
/**
|
|
1943
|
-
*
|
|
1944
|
-
* @param {string} id
|
|
1945
|
-
* @param {*} [options] Override http request option.
|
|
1946
|
-
* @throws {RequiredError}
|
|
1947
|
-
*/
|
|
1948
|
-
async nodeControllerUpdateSchedulingStatus(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1949
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.nodeControllerUpdateSchedulingStatus(id, options);
|
|
1950
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1951
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.nodeControllerUpdateSchedulingStatus']?.[localVarOperationServerIndex]?.url;
|
|
1952
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1953
|
-
},
|
|
1954
|
-
/**
|
|
1955
|
-
*
|
|
1956
|
-
* @param {object} body
|
|
1957
|
-
* @param {*} [options] Override http request option.
|
|
1958
|
-
* @throws {RequiredError}
|
|
1959
|
-
*/
|
|
1960
|
-
async userControllerCreate(body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1961
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerCreate(body, options);
|
|
1962
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1963
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.userControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
1964
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1965
|
-
},
|
|
1966
|
-
/**
|
|
1967
|
-
*
|
|
1968
|
-
* @param {*} [options] Override http request option.
|
|
1969
|
-
* @throws {RequiredError}
|
|
1970
|
-
*/
|
|
1971
|
-
async userControllerFindAll(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1972
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerFindAll(options);
|
|
1973
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1974
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.userControllerFindAll']?.[localVarOperationServerIndex]?.url;
|
|
1975
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1976
|
-
},
|
|
1977
|
-
/**
|
|
1978
|
-
*
|
|
1979
|
-
* @param {string} id
|
|
1980
|
-
* @param {*} [options] Override http request option.
|
|
1981
|
-
* @throws {RequiredError}
|
|
1982
|
-
*/
|
|
1983
|
-
async userControllerRegenerateKeyPair(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1984
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerRegenerateKeyPair(id, options);
|
|
1985
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1986
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.userControllerRegenerateKeyPair']?.[localVarOperationServerIndex]?.url;
|
|
1987
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1988
|
-
},
|
|
1989
|
-
/**
|
|
1990
|
-
* Create folder inside workspace
|
|
1991
|
-
* @summary Create folder
|
|
1992
|
-
* @param {string} workspaceId
|
|
1993
|
-
* @param {string} path
|
|
1994
|
-
* @param {string} mode
|
|
1995
|
-
* @param {*} [options] Override http request option.
|
|
1996
|
-
* @throws {RequiredError}
|
|
1997
|
-
*/
|
|
1998
|
-
async workspaceControllerCreateFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1999
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerCreateFolder(workspaceId, path, mode, options);
|
|
2000
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2001
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerCreateFolder']?.[localVarOperationServerIndex]?.url;
|
|
2002
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2003
|
-
},
|
|
2004
|
-
/**
|
|
2005
|
-
*
|
|
2006
|
-
* @summary Create a workspace snapshot
|
|
2007
|
-
* @param {string} workspaceId
|
|
2008
|
-
* @param {*} [options] Override http request option.
|
|
2009
|
-
* @throws {RequiredError}
|
|
2010
|
-
*/
|
|
2011
|
-
async workspaceControllerCreateSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceDto>> {
|
|
2012
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerCreateSnapshot(workspaceId, options);
|
|
2013
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2014
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerCreateSnapshot']?.[localVarOperationServerIndex]?.url;
|
|
2015
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2016
|
-
},
|
|
2017
|
-
/**
|
|
2018
|
-
*
|
|
2019
|
-
* @param {CreateWorkspaceDto} createWorkspaceDto
|
|
2020
|
-
* @param {*} [options] Override http request option.
|
|
2021
|
-
* @throws {RequiredError}
|
|
2022
|
-
*/
|
|
2023
|
-
async workspaceControllerCreateWorkspace(createWorkspaceDto: CreateWorkspaceDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceDto>> {
|
|
2024
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerCreateWorkspace(createWorkspaceDto, options);
|
|
2025
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2026
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerCreateWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
2027
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2028
|
-
},
|
|
2029
|
-
/**
|
|
2030
|
-
* Delete file inside workspace
|
|
2031
|
-
* @summary Delete file
|
|
2032
|
-
* @param {string} workspaceId
|
|
2033
|
-
* @param {string} path
|
|
2034
|
-
* @param {*} [options] Override http request option.
|
|
2035
|
-
* @throws {RequiredError}
|
|
2036
|
-
*/
|
|
2037
|
-
async workspaceControllerDeleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2038
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerDeleteFile(workspaceId, path, options);
|
|
2039
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2040
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerDeleteFile']?.[localVarOperationServerIndex]?.url;
|
|
2041
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2042
|
-
},
|
|
2043
|
-
/**
|
|
2044
|
-
* Download file from workspace
|
|
2045
|
-
* @summary Download file
|
|
2046
|
-
* @param {string} workspaceId
|
|
2047
|
-
* @param {string} path
|
|
2048
|
-
* @param {*} [options] Override http request option.
|
|
2049
|
-
* @throws {RequiredError}
|
|
2050
|
-
*/
|
|
2051
|
-
async workspaceControllerDownloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2052
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerDownloadFile(workspaceId, path, options);
|
|
2053
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2054
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerDownloadFile']?.[localVarOperationServerIndex]?.url;
|
|
2055
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2056
|
-
},
|
|
2057
|
-
/**
|
|
2058
|
-
* Execute command synchronously inside workspace
|
|
2059
|
-
* @summary Execute command
|
|
2060
|
-
* @param {string} workspaceId
|
|
2061
|
-
* @param {ExecuteRequestDto} executeRequestDto
|
|
2062
|
-
* @param {*} [options] Override http request option.
|
|
2063
|
-
* @throws {RequiredError}
|
|
2064
|
-
*/
|
|
2065
|
-
async workspaceControllerExecuteCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponseDto>> {
|
|
2066
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerExecuteCommand(workspaceId, executeRequestDto, options);
|
|
2067
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2068
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerExecuteCommand']?.[localVarOperationServerIndex]?.url;
|
|
2069
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2070
|
-
},
|
|
2071
|
-
/**
|
|
2072
|
-
* Search for text/pattern inside workspace files
|
|
2073
|
-
* @summary Search for text/pattern in files
|
|
2074
|
-
* @param {string} workspaceId
|
|
2075
|
-
* @param {string} path
|
|
2076
|
-
* @param {string} pattern
|
|
2077
|
-
* @param {*} [options] Override http request option.
|
|
2078
|
-
* @throws {RequiredError}
|
|
2079
|
-
*/
|
|
2080
|
-
async workspaceControllerFindInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2081
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerFindInFiles(workspaceId, path, pattern, options);
|
|
2082
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2083
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerFindInFiles']?.[localVarOperationServerIndex]?.url;
|
|
2084
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2085
|
-
},
|
|
2086
|
-
/**
|
|
2087
|
-
* Get file info inside workspace
|
|
2088
|
-
* @summary Get file info
|
|
2089
|
-
* @param {string} workspaceId
|
|
2090
|
-
* @param {string} path
|
|
2091
|
-
* @param {*} [options] Override http request option.
|
|
2092
|
-
* @throws {RequiredError}
|
|
2093
|
-
*/
|
|
2094
|
-
async workspaceControllerGetFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2095
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGetFileInfo(workspaceId, path, options);
|
|
2096
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2097
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGetFileInfo']?.[localVarOperationServerIndex]?.url;
|
|
2098
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2099
|
-
},
|
|
2100
|
-
/**
|
|
2101
|
-
* Get workspace project directory
|
|
2102
|
-
* @summary Get workspace project dir
|
|
2103
|
-
* @param {string} workspaceId
|
|
2104
|
-
* @param {*} [options] Override http request option.
|
|
2105
|
-
* @throws {RequiredError}
|
|
2106
|
-
*/
|
|
2107
|
-
async workspaceControllerGetProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2108
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGetProjectDir(workspaceId, options);
|
|
2109
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2110
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGetProjectDir']?.[localVarOperationServerIndex]?.url;
|
|
2111
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2112
|
-
},
|
|
2113
|
-
/**
|
|
2114
|
-
*
|
|
2115
|
-
* @param {string} workspaceId
|
|
2116
|
-
* @param {boolean} [verbose] Include verbose output
|
|
2117
|
-
* @param {*} [options] Override http request option.
|
|
2118
|
-
* @throws {RequiredError}
|
|
2119
|
-
*/
|
|
2120
|
-
async workspaceControllerGetWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceDto>> {
|
|
2121
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGetWorkspace(workspaceId, verbose, options);
|
|
2122
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2123
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGetWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
2124
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2125
|
-
},
|
|
2126
|
-
/**
|
|
2127
|
-
* Add files to git commit
|
|
2128
|
-
* @summary Add files
|
|
2129
|
-
* @param {string} workspaceId
|
|
2130
|
-
* @param {GitAddRequestDto} gitAddRequestDto
|
|
2131
|
-
* @param {*} [options] Override http request option.
|
|
2132
|
-
* @throws {RequiredError}
|
|
2133
|
-
*/
|
|
2134
|
-
async workspaceControllerGitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2135
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGitAddFiles(workspaceId, gitAddRequestDto, options);
|
|
2136
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2137
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGitAddFiles']?.[localVarOperationServerIndex]?.url;
|
|
2138
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2139
|
-
},
|
|
2140
|
-
/**
|
|
2141
|
-
* Get branch list from git repository
|
|
2142
|
-
* @summary Get branch list
|
|
2143
|
-
* @param {string} workspaceId
|
|
2144
|
-
* @param {string} path
|
|
2145
|
-
* @param {*} [options] Override http request option.
|
|
2146
|
-
* @throws {RequiredError}
|
|
2147
|
-
*/
|
|
2148
|
-
async workspaceControllerGitBranchList(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2149
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGitBranchList(workspaceId, path, options);
|
|
2150
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2151
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGitBranchList']?.[localVarOperationServerIndex]?.url;
|
|
2152
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2153
|
-
},
|
|
2154
|
-
/**
|
|
2155
|
-
* Clone git repository
|
|
2156
|
-
* @summary Clone repository
|
|
2157
|
-
* @param {string} workspaceId
|
|
2158
|
-
* @param {GitCloneRequestDto} gitCloneRequestDto
|
|
2159
|
-
* @param {*} [options] Override http request option.
|
|
2160
|
-
* @throws {RequiredError}
|
|
2161
|
-
*/
|
|
2162
|
-
async workspaceControllerGitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2163
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options);
|
|
2164
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2165
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGitCloneRepository']?.[localVarOperationServerIndex]?.url;
|
|
2166
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2167
|
-
},
|
|
2168
|
-
/**
|
|
2169
|
-
* Commit changes to git repository
|
|
2170
|
-
* @summary Commit changes
|
|
2171
|
-
* @param {string} workspaceId
|
|
2172
|
-
* @param {GitCommitRequestDto} gitCommitRequestDto
|
|
2173
|
-
* @param {*} [options] Override http request option.
|
|
2174
|
-
* @throws {RequiredError}
|
|
2175
|
-
*/
|
|
2176
|
-
async workspaceControllerGitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2177
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options);
|
|
2178
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2179
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGitCommitChanges']?.[localVarOperationServerIndex]?.url;
|
|
2180
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2181
|
-
},
|
|
2182
|
-
/**
|
|
2183
|
-
* Get commit history from git repository
|
|
2184
|
-
* @summary Get commit history
|
|
2185
|
-
* @param {string} workspaceId
|
|
2186
|
-
* @param {string} path
|
|
2187
|
-
* @param {*} [options] Override http request option.
|
|
2188
|
-
* @throws {RequiredError}
|
|
2189
|
-
*/
|
|
2190
|
-
async workspaceControllerGitCommitHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2191
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGitCommitHistory(workspaceId, path, options);
|
|
2192
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2193
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGitCommitHistory']?.[localVarOperationServerIndex]?.url;
|
|
2194
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2195
|
-
},
|
|
2196
|
-
/**
|
|
2197
|
-
* Create branch on git repository
|
|
2198
|
-
* @summary Create branch
|
|
2199
|
-
* @param {string} workspaceId
|
|
2200
|
-
* @param {GitBranchRequestDto} gitBranchRequestDto
|
|
2201
|
-
* @param {*} [options] Override http request option.
|
|
2202
|
-
* @throws {RequiredError}
|
|
2203
|
-
*/
|
|
2204
|
-
async workspaceControllerGitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2205
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options);
|
|
2206
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2207
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGitCreateBranch']?.[localVarOperationServerIndex]?.url;
|
|
2208
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2209
|
-
},
|
|
2210
|
-
/**
|
|
2211
|
-
* Pull changes from remote
|
|
2212
|
-
* @summary Pull changes
|
|
2213
|
-
* @param {string} workspaceId
|
|
2214
|
-
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
2215
|
-
* @param {*} [options] Override http request option.
|
|
2216
|
-
* @throws {RequiredError}
|
|
2217
|
-
*/
|
|
2218
|
-
async workspaceControllerGitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2219
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGitPullChanges(workspaceId, gitRepoRequestDto, options);
|
|
2220
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2221
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGitPullChanges']?.[localVarOperationServerIndex]?.url;
|
|
2222
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2223
|
-
},
|
|
2224
|
-
/**
|
|
2225
|
-
* Push changes to remote
|
|
2226
|
-
* @summary Push changes
|
|
2227
|
-
* @param {string} workspaceId
|
|
2228
|
-
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
2229
|
-
* @param {*} [options] Override http request option.
|
|
2230
|
-
* @throws {RequiredError}
|
|
2231
|
-
*/
|
|
2232
|
-
async workspaceControllerGitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2233
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGitPushChanges(workspaceId, gitRepoRequestDto, options);
|
|
2234
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2235
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGitPushChanges']?.[localVarOperationServerIndex]?.url;
|
|
2236
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2237
|
-
},
|
|
2238
|
-
/**
|
|
2239
|
-
* Get status from git repository
|
|
2240
|
-
* @summary Get git status
|
|
2241
|
-
* @param {string} workspaceId
|
|
2242
|
-
* @param {string} path
|
|
2243
|
-
* @param {*} [options] Override http request option.
|
|
2244
|
-
* @throws {RequiredError}
|
|
2245
|
-
*/
|
|
2246
|
-
async workspaceControllerGitStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2247
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerGitStatus(workspaceId, path, options);
|
|
2248
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2249
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerGitStatus']?.[localVarOperationServerIndex]?.url;
|
|
2250
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2251
|
-
},
|
|
2252
|
-
/**
|
|
2253
|
-
* List files inside workspace
|
|
2254
|
-
* @summary List files
|
|
2255
|
-
* @param {string} workspaceId
|
|
2256
|
-
* @param {string} [path]
|
|
2257
|
-
* @param {*} [options] Override http request option.
|
|
2258
|
-
* @throws {RequiredError}
|
|
2259
|
-
*/
|
|
2260
|
-
async workspaceControllerListFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2261
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerListFiles(workspaceId, path, options);
|
|
2262
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2263
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerListFiles']?.[localVarOperationServerIndex]?.url;
|
|
2264
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2265
|
-
},
|
|
2266
|
-
/**
|
|
2267
|
-
*
|
|
2268
|
-
* @param {boolean} [verbose] Include verbose output
|
|
2269
|
-
* @param {*} [options] Override http request option.
|
|
2270
|
-
* @throws {RequiredError}
|
|
2271
|
-
*/
|
|
2272
|
-
async workspaceControllerListWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WorkspaceDto>>> {
|
|
2273
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerListWorkspaces(verbose, options);
|
|
2274
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2275
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerListWorkspaces']?.[localVarOperationServerIndex]?.url;
|
|
2276
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2277
|
-
},
|
|
2278
|
-
/**
|
|
2279
|
-
* Move file inside workspace
|
|
2280
|
-
* @summary Move file
|
|
2281
|
-
* @param {string} workspaceId
|
|
2282
|
-
* @param {string} source
|
|
2283
|
-
* @param {string} destination
|
|
2284
|
-
* @param {*} [options] Override http request option.
|
|
2285
|
-
* @throws {RequiredError}
|
|
2286
|
-
*/
|
|
2287
|
-
async workspaceControllerMoveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2288
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerMoveFile(workspaceId, source, destination, options);
|
|
2289
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2290
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerMoveFile']?.[localVarOperationServerIndex]?.url;
|
|
2291
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2292
|
-
},
|
|
2293
|
-
/**
|
|
2294
|
-
*
|
|
2295
|
-
* @param {string} workspaceId
|
|
2296
|
-
* @param {boolean} force
|
|
2297
|
-
* @param {*} [options] Override http request option.
|
|
2298
|
-
* @throws {RequiredError}
|
|
2299
|
-
*/
|
|
2300
|
-
async workspaceControllerRemoveWorkspace(workspaceId: string, force: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2301
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerRemoveWorkspace(workspaceId, force, options);
|
|
2302
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2303
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerRemoveWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
2304
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2305
|
-
},
|
|
2306
|
-
/**
|
|
2307
|
-
* Replace text/pattern in multiple files inside workspace
|
|
2308
|
-
* @summary Replace in files
|
|
2309
|
-
* @param {string} workspaceId
|
|
2310
|
-
* @param {ReplaceRequestDto} replaceRequestDto
|
|
2311
|
-
* @param {*} [options] Override http request option.
|
|
2312
|
-
* @throws {RequiredError}
|
|
2313
|
-
*/
|
|
2314
|
-
async workspaceControllerReplaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2315
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerReplaceInFiles(workspaceId, replaceRequestDto, options);
|
|
2316
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2317
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerReplaceInFiles']?.[localVarOperationServerIndex]?.url;
|
|
2318
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2319
|
-
},
|
|
2320
|
-
/**
|
|
2321
|
-
* Replace all labels for a workspace. Existing labels will be removed.
|
|
2322
|
-
* @summary Replace workspace labels
|
|
2323
|
-
* @param {string} workspaceId
|
|
2324
|
-
* @param {WorkspaceLabelsDto} workspaceLabelsDto
|
|
2325
|
-
* @param {*} [options] Override http request option.
|
|
2326
|
-
* @throws {RequiredError}
|
|
2327
|
-
*/
|
|
2328
|
-
async workspaceControllerReplaceLabels(workspaceId: string, workspaceLabelsDto: WorkspaceLabelsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabelsDto>> {
|
|
2329
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerReplaceLabels(workspaceId, workspaceLabelsDto, options);
|
|
2330
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2331
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerReplaceLabels']?.[localVarOperationServerIndex]?.url;
|
|
2332
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2333
|
-
},
|
|
2334
|
-
/**
|
|
2335
|
-
* Search for files inside workspace
|
|
2336
|
-
* @summary Search files
|
|
2337
|
-
* @param {string} workspaceId
|
|
2338
|
-
* @param {string} path
|
|
2339
|
-
* @param {string} pattern
|
|
2340
|
-
* @param {*} [options] Override http request option.
|
|
2341
|
-
* @throws {RequiredError}
|
|
2342
|
-
*/
|
|
2343
|
-
async workspaceControllerSearchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2344
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerSearchFiles(workspaceId, path, pattern, options);
|
|
2345
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2346
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerSearchFiles']?.[localVarOperationServerIndex]?.url;
|
|
2347
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2348
|
-
},
|
|
2349
|
-
/**
|
|
2350
|
-
* Set file owner/group/permissions inside workspace
|
|
2351
|
-
* @summary Set file permissions
|
|
2352
|
-
* @param {string} workspaceId
|
|
2353
|
-
* @param {string} path
|
|
2354
|
-
* @param {string} owner
|
|
2355
|
-
* @param {string} group
|
|
2356
|
-
* @param {string} mode
|
|
2357
|
-
* @param {*} [options] Override http request option.
|
|
2358
|
-
* @throws {RequiredError}
|
|
2359
|
-
*/
|
|
2360
|
-
async workspaceControllerSetFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2361
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerSetFilePermissions(workspaceId, path, owner, group, mode, options);
|
|
2362
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2363
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerSetFilePermissions']?.[localVarOperationServerIndex]?.url;
|
|
2364
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2365
|
-
},
|
|
2366
|
-
/**
|
|
2367
|
-
*
|
|
2368
|
-
* @param {string} workspaceId
|
|
2369
|
-
* @param {*} [options] Override http request option.
|
|
2370
|
-
* @throws {RequiredError}
|
|
2371
|
-
*/
|
|
2372
|
-
async workspaceControllerStartWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2373
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerStartWorkspace(workspaceId, options);
|
|
2374
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2375
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerStartWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
2376
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2377
|
-
},
|
|
2378
|
-
/**
|
|
2379
|
-
*
|
|
2380
|
-
* @param {string} workspaceId
|
|
2381
|
-
* @param {*} [options] Override http request option.
|
|
2382
|
-
* @throws {RequiredError}
|
|
2383
|
-
*/
|
|
2384
|
-
async workspaceControllerStopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2385
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerStopWorkspace(workspaceId, options);
|
|
2386
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2387
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerStopWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
2388
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2389
|
-
},
|
|
2390
|
-
/**
|
|
2391
|
-
* Change public preview status of a workspace
|
|
2392
|
-
* @summary Change public preview status
|
|
2393
|
-
* @param {string} workspaceId ID of the workspace
|
|
2394
|
-
* @param {boolean} isPublic Public status to set
|
|
2395
|
-
* @param {*} [options] Override http request option.
|
|
2396
|
-
* @throws {RequiredError}
|
|
2397
|
-
*/
|
|
2398
|
-
async workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2399
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options);
|
|
2400
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2401
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerUpdatePublicStatus']?.[localVarOperationServerIndex]?.url;
|
|
2402
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2403
|
-
},
|
|
2404
|
-
/**
|
|
2405
|
-
* Upload file inside workspace
|
|
2406
|
-
* @summary Upload file
|
|
2407
|
-
* @param {string} workspaceId
|
|
2408
|
-
* @param {string} path
|
|
2409
|
-
* @param {File} [file]
|
|
2410
|
-
* @param {*} [options] Override http request option.
|
|
2411
|
-
* @throws {RequiredError}
|
|
2412
|
-
*/
|
|
2413
|
-
async workspaceControllerUploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2414
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerUploadFile(workspaceId, path, file, options);
|
|
2415
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2416
|
-
const localVarOperationServerBasePath = operationServerMap['DefaultApi.workspaceControllerUploadFile']?.[localVarOperationServerIndex]?.url;
|
|
2417
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2418
|
-
},
|
|
2419
|
-
}
|
|
2420
|
-
};
|
|
2421
|
-
|
|
2422
|
-
/**
|
|
2423
|
-
* DefaultApi - factory interface
|
|
2424
|
-
* @export
|
|
2425
|
-
*/
|
|
2426
|
-
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2427
|
-
const localVarFp = DefaultApiFp(configuration)
|
|
2428
|
-
return {
|
|
2429
|
-
/**
|
|
2430
|
-
*
|
|
2431
|
-
* @summary Create a new API key
|
|
2432
|
-
* @param {CreateApiKeyDto} createApiKeyDto
|
|
2433
|
-
* @param {*} [options] Override http request option.
|
|
2434
|
-
* @throws {RequiredError}
|
|
2435
|
-
*/
|
|
2436
|
-
apiKeyControllerCreateApiKey(createApiKeyDto: CreateApiKeyDto, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponseDto> {
|
|
2437
|
-
return localVarFp.apiKeyControllerCreateApiKey(createApiKeyDto, options).then((request) => request(axios, basePath));
|
|
2438
|
-
},
|
|
2439
|
-
/**
|
|
2440
|
-
*
|
|
2441
|
-
* @summary Delete an API key by name
|
|
2442
|
-
* @param {string} name
|
|
2443
|
-
* @param {*} [options] Override http request option.
|
|
2444
|
-
* @throws {RequiredError}
|
|
2445
|
-
*/
|
|
2446
|
-
apiKeyControllerDeleteApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2447
|
-
return localVarFp.apiKeyControllerDeleteApiKey(name, options).then((request) => request(axios, basePath));
|
|
2448
|
-
},
|
|
2449
|
-
/**
|
|
2450
|
-
*
|
|
2451
|
-
* @summary Get a specific API key by name
|
|
2452
|
-
* @param {string} name
|
|
2453
|
-
* @param {*} [options] Override http request option.
|
|
2454
|
-
* @throws {RequiredError}
|
|
2455
|
-
*/
|
|
2456
|
-
apiKeyControllerGetApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyListDto> {
|
|
2457
|
-
return localVarFp.apiKeyControllerGetApiKey(name, options).then((request) => request(axios, basePath));
|
|
2458
|
-
},
|
|
2459
|
-
/**
|
|
2460
|
-
*
|
|
2461
|
-
* @summary Get all API keys for the user
|
|
2462
|
-
* @param {*} [options] Override http request option.
|
|
2463
|
-
* @throws {RequiredError}
|
|
2464
|
-
*/
|
|
2465
|
-
apiKeyControllerGetApiKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyListDto>> {
|
|
2466
|
-
return localVarFp.apiKeyControllerGetApiKeys(options).then((request) => request(axios, basePath));
|
|
2467
|
-
},
|
|
2468
|
-
/**
|
|
2469
|
-
*
|
|
2470
|
-
* @param {*} [options] Override http request option.
|
|
2471
|
-
* @throws {RequiredError}
|
|
2472
|
-
*/
|
|
2473
|
-
appControllerGetHello(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2474
|
-
return localVarFp.appControllerGetHello(options).then((request) => request(axios, basePath));
|
|
2475
|
-
},
|
|
2476
|
-
/**
|
|
2477
|
-
*
|
|
2478
|
-
* @param {object} body
|
|
2479
|
-
* @param {*} [options] Override http request option.
|
|
2480
|
-
* @throws {RequiredError}
|
|
2481
|
-
*/
|
|
2482
|
-
nodeControllerCreate(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2483
|
-
return localVarFp.nodeControllerCreate(body, options).then((request) => request(axios, basePath));
|
|
2484
|
-
},
|
|
2485
|
-
/**
|
|
2486
|
-
*
|
|
2487
|
-
* @param {*} [options] Override http request option.
|
|
2488
|
-
* @throws {RequiredError}
|
|
2489
|
-
*/
|
|
2490
|
-
nodeControllerFindAll(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2491
|
-
return localVarFp.nodeControllerFindAll(options).then((request) => request(axios, basePath));
|
|
2492
|
-
},
|
|
2493
|
-
/**
|
|
2494
|
-
*
|
|
2495
|
-
* @param {string} id
|
|
2496
|
-
* @param {*} [options] Override http request option.
|
|
2497
|
-
* @throws {RequiredError}
|
|
2498
|
-
*/
|
|
2499
|
-
nodeControllerUpdateSchedulingStatus(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2500
|
-
return localVarFp.nodeControllerUpdateSchedulingStatus(id, options).then((request) => request(axios, basePath));
|
|
2501
|
-
},
|
|
2502
|
-
/**
|
|
2503
|
-
*
|
|
2504
|
-
* @param {object} body
|
|
2505
|
-
* @param {*} [options] Override http request option.
|
|
2506
|
-
* @throws {RequiredError}
|
|
2507
|
-
*/
|
|
2508
|
-
userControllerCreate(body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2509
|
-
return localVarFp.userControllerCreate(body, options).then((request) => request(axios, basePath));
|
|
2510
|
-
},
|
|
2511
|
-
/**
|
|
2512
|
-
*
|
|
2513
|
-
* @param {*} [options] Override http request option.
|
|
2514
|
-
* @throws {RequiredError}
|
|
2515
|
-
*/
|
|
2516
|
-
userControllerFindAll(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2517
|
-
return localVarFp.userControllerFindAll(options).then((request) => request(axios, basePath));
|
|
2518
|
-
},
|
|
2519
|
-
/**
|
|
2520
|
-
*
|
|
2521
|
-
* @param {string} id
|
|
2522
|
-
* @param {*} [options] Override http request option.
|
|
2523
|
-
* @throws {RequiredError}
|
|
2524
|
-
*/
|
|
2525
|
-
userControllerRegenerateKeyPair(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2526
|
-
return localVarFp.userControllerRegenerateKeyPair(id, options).then((request) => request(axios, basePath));
|
|
2527
|
-
},
|
|
2528
|
-
/**
|
|
2529
|
-
* Create folder inside workspace
|
|
2530
|
-
* @summary Create folder
|
|
2531
|
-
* @param {string} workspaceId
|
|
2532
|
-
* @param {string} path
|
|
2533
|
-
* @param {string} mode
|
|
2534
|
-
* @param {*} [options] Override http request option.
|
|
2535
|
-
* @throws {RequiredError}
|
|
2536
|
-
*/
|
|
2537
|
-
workspaceControllerCreateFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2538
|
-
return localVarFp.workspaceControllerCreateFolder(workspaceId, path, mode, options).then((request) => request(axios, basePath));
|
|
2539
|
-
},
|
|
2540
|
-
/**
|
|
2541
|
-
*
|
|
2542
|
-
* @summary Create a workspace snapshot
|
|
2543
|
-
* @param {string} workspaceId
|
|
2544
|
-
* @param {*} [options] Override http request option.
|
|
2545
|
-
* @throws {RequiredError}
|
|
2546
|
-
*/
|
|
2547
|
-
workspaceControllerCreateSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceDto> {
|
|
2548
|
-
return localVarFp.workspaceControllerCreateSnapshot(workspaceId, options).then((request) => request(axios, basePath));
|
|
2549
|
-
},
|
|
2550
|
-
/**
|
|
2551
|
-
*
|
|
2552
|
-
* @param {CreateWorkspaceDto} createWorkspaceDto
|
|
2553
|
-
* @param {*} [options] Override http request option.
|
|
2554
|
-
* @throws {RequiredError}
|
|
2555
|
-
*/
|
|
2556
|
-
workspaceControllerCreateWorkspace(createWorkspaceDto: CreateWorkspaceDto, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceDto> {
|
|
2557
|
-
return localVarFp.workspaceControllerCreateWorkspace(createWorkspaceDto, options).then((request) => request(axios, basePath));
|
|
2558
|
-
},
|
|
2559
|
-
/**
|
|
2560
|
-
* Delete file inside workspace
|
|
2561
|
-
* @summary Delete file
|
|
2562
|
-
* @param {string} workspaceId
|
|
2563
|
-
* @param {string} path
|
|
2564
|
-
* @param {*} [options] Override http request option.
|
|
2565
|
-
* @throws {RequiredError}
|
|
2566
|
-
*/
|
|
2567
|
-
workspaceControllerDeleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2568
|
-
return localVarFp.workspaceControllerDeleteFile(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
2569
|
-
},
|
|
2570
|
-
/**
|
|
2571
|
-
* Download file from workspace
|
|
2572
|
-
* @summary Download file
|
|
2573
|
-
* @param {string} workspaceId
|
|
2574
|
-
* @param {string} path
|
|
2575
|
-
* @param {*} [options] Override http request option.
|
|
2576
|
-
* @throws {RequiredError}
|
|
2577
|
-
*/
|
|
2578
|
-
workspaceControllerDownloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2579
|
-
return localVarFp.workspaceControllerDownloadFile(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
2580
|
-
},
|
|
2581
|
-
/**
|
|
2582
|
-
* Execute command synchronously inside workspace
|
|
2583
|
-
* @summary Execute command
|
|
2584
|
-
* @param {string} workspaceId
|
|
2585
|
-
* @param {ExecuteRequestDto} executeRequestDto
|
|
2586
|
-
* @param {*} [options] Override http request option.
|
|
2587
|
-
* @throws {RequiredError}
|
|
2588
|
-
*/
|
|
2589
|
-
workspaceControllerExecuteCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponseDto> {
|
|
2590
|
-
return localVarFp.workspaceControllerExecuteCommand(workspaceId, executeRequestDto, options).then((request) => request(axios, basePath));
|
|
2591
|
-
},
|
|
2592
|
-
/**
|
|
2593
|
-
* Search for text/pattern inside workspace files
|
|
2594
|
-
* @summary Search for text/pattern in files
|
|
2595
|
-
* @param {string} workspaceId
|
|
2596
|
-
* @param {string} path
|
|
2597
|
-
* @param {string} pattern
|
|
2598
|
-
* @param {*} [options] Override http request option.
|
|
2599
|
-
* @throws {RequiredError}
|
|
2600
|
-
*/
|
|
2601
|
-
workspaceControllerFindInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2602
|
-
return localVarFp.workspaceControllerFindInFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
|
|
2603
|
-
},
|
|
2604
|
-
/**
|
|
2605
|
-
* Get file info inside workspace
|
|
2606
|
-
* @summary Get file info
|
|
2607
|
-
* @param {string} workspaceId
|
|
2608
|
-
* @param {string} path
|
|
2609
|
-
* @param {*} [options] Override http request option.
|
|
2610
|
-
* @throws {RequiredError}
|
|
2611
|
-
*/
|
|
2612
|
-
workspaceControllerGetFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2613
|
-
return localVarFp.workspaceControllerGetFileInfo(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
2614
|
-
},
|
|
2615
|
-
/**
|
|
2616
|
-
* Get workspace project directory
|
|
2617
|
-
* @summary Get workspace project dir
|
|
2618
|
-
* @param {string} workspaceId
|
|
2619
|
-
* @param {*} [options] Override http request option.
|
|
2620
|
-
* @throws {RequiredError}
|
|
2621
|
-
*/
|
|
2622
|
-
workspaceControllerGetProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2623
|
-
return localVarFp.workspaceControllerGetProjectDir(workspaceId, options).then((request) => request(axios, basePath));
|
|
2624
|
-
},
|
|
2625
|
-
/**
|
|
2626
|
-
*
|
|
2627
|
-
* @param {string} workspaceId
|
|
2628
|
-
* @param {boolean} [verbose] Include verbose output
|
|
2629
|
-
* @param {*} [options] Override http request option.
|
|
2630
|
-
* @throws {RequiredError}
|
|
2631
|
-
*/
|
|
2632
|
-
workspaceControllerGetWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceDto> {
|
|
2633
|
-
return localVarFp.workspaceControllerGetWorkspace(workspaceId, verbose, options).then((request) => request(axios, basePath));
|
|
2634
|
-
},
|
|
2635
|
-
/**
|
|
2636
|
-
* Add files to git commit
|
|
2637
|
-
* @summary Add files
|
|
2638
|
-
* @param {string} workspaceId
|
|
2639
|
-
* @param {GitAddRequestDto} gitAddRequestDto
|
|
2640
|
-
* @param {*} [options] Override http request option.
|
|
2641
|
-
* @throws {RequiredError}
|
|
2642
|
-
*/
|
|
2643
|
-
workspaceControllerGitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2644
|
-
return localVarFp.workspaceControllerGitAddFiles(workspaceId, gitAddRequestDto, options).then((request) => request(axios, basePath));
|
|
2645
|
-
},
|
|
2646
|
-
/**
|
|
2647
|
-
* Get branch list from git repository
|
|
2648
|
-
* @summary Get branch list
|
|
2649
|
-
* @param {string} workspaceId
|
|
2650
|
-
* @param {string} path
|
|
2651
|
-
* @param {*} [options] Override http request option.
|
|
2652
|
-
* @throws {RequiredError}
|
|
2653
|
-
*/
|
|
2654
|
-
workspaceControllerGitBranchList(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2655
|
-
return localVarFp.workspaceControllerGitBranchList(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
2656
|
-
},
|
|
2657
|
-
/**
|
|
2658
|
-
* Clone git repository
|
|
2659
|
-
* @summary Clone repository
|
|
2660
|
-
* @param {string} workspaceId
|
|
2661
|
-
* @param {GitCloneRequestDto} gitCloneRequestDto
|
|
2662
|
-
* @param {*} [options] Override http request option.
|
|
2663
|
-
* @throws {RequiredError}
|
|
2664
|
-
*/
|
|
2665
|
-
workspaceControllerGitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2666
|
-
return localVarFp.workspaceControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options).then((request) => request(axios, basePath));
|
|
2667
|
-
},
|
|
2668
|
-
/**
|
|
2669
|
-
* Commit changes to git repository
|
|
2670
|
-
* @summary Commit changes
|
|
2671
|
-
* @param {string} workspaceId
|
|
2672
|
-
* @param {GitCommitRequestDto} gitCommitRequestDto
|
|
2673
|
-
* @param {*} [options] Override http request option.
|
|
2674
|
-
* @throws {RequiredError}
|
|
2675
|
-
*/
|
|
2676
|
-
workspaceControllerGitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2677
|
-
return localVarFp.workspaceControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options).then((request) => request(axios, basePath));
|
|
2678
|
-
},
|
|
2679
|
-
/**
|
|
2680
|
-
* Get commit history from git repository
|
|
2681
|
-
* @summary Get commit history
|
|
2682
|
-
* @param {string} workspaceId
|
|
2683
|
-
* @param {string} path
|
|
2684
|
-
* @param {*} [options] Override http request option.
|
|
2685
|
-
* @throws {RequiredError}
|
|
2686
|
-
*/
|
|
2687
|
-
workspaceControllerGitCommitHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2688
|
-
return localVarFp.workspaceControllerGitCommitHistory(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
2689
|
-
},
|
|
2690
|
-
/**
|
|
2691
|
-
* Create branch on git repository
|
|
2692
|
-
* @summary Create branch
|
|
2693
|
-
* @param {string} workspaceId
|
|
2694
|
-
* @param {GitBranchRequestDto} gitBranchRequestDto
|
|
2695
|
-
* @param {*} [options] Override http request option.
|
|
2696
|
-
* @throws {RequiredError}
|
|
2697
|
-
*/
|
|
2698
|
-
workspaceControllerGitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2699
|
-
return localVarFp.workspaceControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options).then((request) => request(axios, basePath));
|
|
2700
|
-
},
|
|
2701
|
-
/**
|
|
2702
|
-
* Pull changes from remote
|
|
2703
|
-
* @summary Pull changes
|
|
2704
|
-
* @param {string} workspaceId
|
|
2705
|
-
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
2706
|
-
* @param {*} [options] Override http request option.
|
|
2707
|
-
* @throws {RequiredError}
|
|
2708
|
-
*/
|
|
2709
|
-
workspaceControllerGitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2710
|
-
return localVarFp.workspaceControllerGitPullChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(axios, basePath));
|
|
2711
|
-
},
|
|
2712
|
-
/**
|
|
2713
|
-
* Push changes to remote
|
|
2714
|
-
* @summary Push changes
|
|
2715
|
-
* @param {string} workspaceId
|
|
2716
|
-
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
2717
|
-
* @param {*} [options] Override http request option.
|
|
2718
|
-
* @throws {RequiredError}
|
|
2719
|
-
*/
|
|
2720
|
-
workspaceControllerGitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2721
|
-
return localVarFp.workspaceControllerGitPushChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(axios, basePath));
|
|
2722
|
-
},
|
|
2723
|
-
/**
|
|
2724
|
-
* Get status from git repository
|
|
2725
|
-
* @summary Get git status
|
|
2726
|
-
* @param {string} workspaceId
|
|
2727
|
-
* @param {string} path
|
|
2728
|
-
* @param {*} [options] Override http request option.
|
|
2729
|
-
* @throws {RequiredError}
|
|
2730
|
-
*/
|
|
2731
|
-
workspaceControllerGitStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2732
|
-
return localVarFp.workspaceControllerGitStatus(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
2733
|
-
},
|
|
2734
|
-
/**
|
|
2735
|
-
* List files inside workspace
|
|
2736
|
-
* @summary List files
|
|
2737
|
-
* @param {string} workspaceId
|
|
2738
|
-
* @param {string} [path]
|
|
2739
|
-
* @param {*} [options] Override http request option.
|
|
2740
|
-
* @throws {RequiredError}
|
|
2741
|
-
*/
|
|
2742
|
-
workspaceControllerListFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2743
|
-
return localVarFp.workspaceControllerListFiles(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
2744
|
-
},
|
|
2745
|
-
/**
|
|
2746
|
-
*
|
|
2747
|
-
* @param {boolean} [verbose] Include verbose output
|
|
2748
|
-
* @param {*} [options] Override http request option.
|
|
2749
|
-
* @throws {RequiredError}
|
|
2750
|
-
*/
|
|
2751
|
-
workspaceControllerListWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<WorkspaceDto>> {
|
|
2752
|
-
return localVarFp.workspaceControllerListWorkspaces(verbose, options).then((request) => request(axios, basePath));
|
|
2753
|
-
},
|
|
2754
|
-
/**
|
|
2755
|
-
* Move file inside workspace
|
|
2756
|
-
* @summary Move file
|
|
2757
|
-
* @param {string} workspaceId
|
|
2758
|
-
* @param {string} source
|
|
2759
|
-
* @param {string} destination
|
|
2760
|
-
* @param {*} [options] Override http request option.
|
|
2761
|
-
* @throws {RequiredError}
|
|
2762
|
-
*/
|
|
2763
|
-
workspaceControllerMoveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2764
|
-
return localVarFp.workspaceControllerMoveFile(workspaceId, source, destination, options).then((request) => request(axios, basePath));
|
|
2765
|
-
},
|
|
2766
|
-
/**
|
|
2767
|
-
*
|
|
2768
|
-
* @param {string} workspaceId
|
|
2769
|
-
* @param {boolean} force
|
|
2770
|
-
* @param {*} [options] Override http request option.
|
|
2771
|
-
* @throws {RequiredError}
|
|
2772
|
-
*/
|
|
2773
|
-
workspaceControllerRemoveWorkspace(workspaceId: string, force: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2774
|
-
return localVarFp.workspaceControllerRemoveWorkspace(workspaceId, force, options).then((request) => request(axios, basePath));
|
|
2775
|
-
},
|
|
2776
|
-
/**
|
|
2777
|
-
* Replace text/pattern in multiple files inside workspace
|
|
2778
|
-
* @summary Replace in files
|
|
2779
|
-
* @param {string} workspaceId
|
|
2780
|
-
* @param {ReplaceRequestDto} replaceRequestDto
|
|
2781
|
-
* @param {*} [options] Override http request option.
|
|
2782
|
-
* @throws {RequiredError}
|
|
2783
|
-
*/
|
|
2784
|
-
workspaceControllerReplaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2785
|
-
return localVarFp.workspaceControllerReplaceInFiles(workspaceId, replaceRequestDto, options).then((request) => request(axios, basePath));
|
|
2786
|
-
},
|
|
2787
|
-
/**
|
|
2788
|
-
* Replace all labels for a workspace. Existing labels will be removed.
|
|
2789
|
-
* @summary Replace workspace labels
|
|
2790
|
-
* @param {string} workspaceId
|
|
2791
|
-
* @param {WorkspaceLabelsDto} workspaceLabelsDto
|
|
2792
|
-
* @param {*} [options] Override http request option.
|
|
2793
|
-
* @throws {RequiredError}
|
|
2794
|
-
*/
|
|
2795
|
-
workspaceControllerReplaceLabels(workspaceId: string, workspaceLabelsDto: WorkspaceLabelsDto, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabelsDto> {
|
|
2796
|
-
return localVarFp.workspaceControllerReplaceLabels(workspaceId, workspaceLabelsDto, options).then((request) => request(axios, basePath));
|
|
2797
|
-
},
|
|
2798
|
-
/**
|
|
2799
|
-
* Search for files inside workspace
|
|
2800
|
-
* @summary Search files
|
|
2801
|
-
* @param {string} workspaceId
|
|
2802
|
-
* @param {string} path
|
|
2803
|
-
* @param {string} pattern
|
|
2804
|
-
* @param {*} [options] Override http request option.
|
|
2805
|
-
* @throws {RequiredError}
|
|
2806
|
-
*/
|
|
2807
|
-
workspaceControllerSearchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2808
|
-
return localVarFp.workspaceControllerSearchFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
|
|
2809
|
-
},
|
|
2810
|
-
/**
|
|
2811
|
-
* Set file owner/group/permissions inside workspace
|
|
2812
|
-
* @summary Set file permissions
|
|
2813
|
-
* @param {string} workspaceId
|
|
2814
|
-
* @param {string} path
|
|
2815
|
-
* @param {string} owner
|
|
2816
|
-
* @param {string} group
|
|
2817
|
-
* @param {string} mode
|
|
2818
|
-
* @param {*} [options] Override http request option.
|
|
2819
|
-
* @throws {RequiredError}
|
|
2820
|
-
*/
|
|
2821
|
-
workspaceControllerSetFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2822
|
-
return localVarFp.workspaceControllerSetFilePermissions(workspaceId, path, owner, group, mode, options).then((request) => request(axios, basePath));
|
|
2823
|
-
},
|
|
2824
|
-
/**
|
|
2825
|
-
*
|
|
2826
|
-
* @param {string} workspaceId
|
|
2827
|
-
* @param {*} [options] Override http request option.
|
|
2828
|
-
* @throws {RequiredError}
|
|
2829
|
-
*/
|
|
2830
|
-
workspaceControllerStartWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2831
|
-
return localVarFp.workspaceControllerStartWorkspace(workspaceId, options).then((request) => request(axios, basePath));
|
|
2832
|
-
},
|
|
2833
|
-
/**
|
|
2834
|
-
*
|
|
2835
|
-
* @param {string} workspaceId
|
|
2836
|
-
* @param {*} [options] Override http request option.
|
|
2837
|
-
* @throws {RequiredError}
|
|
2838
|
-
*/
|
|
2839
|
-
workspaceControllerStopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2840
|
-
return localVarFp.workspaceControllerStopWorkspace(workspaceId, options).then((request) => request(axios, basePath));
|
|
2841
|
-
},
|
|
2842
|
-
/**
|
|
2843
|
-
* Change public preview status of a workspace
|
|
2844
|
-
* @summary Change public preview status
|
|
2845
|
-
* @param {string} workspaceId ID of the workspace
|
|
2846
|
-
* @param {boolean} isPublic Public status to set
|
|
2847
|
-
* @param {*} [options] Override http request option.
|
|
2848
|
-
* @throws {RequiredError}
|
|
2849
|
-
*/
|
|
2850
|
-
workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2851
|
-
return localVarFp.workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options).then((request) => request(axios, basePath));
|
|
2852
|
-
},
|
|
2853
|
-
/**
|
|
2854
|
-
* Upload file inside workspace
|
|
2855
|
-
* @summary Upload file
|
|
2856
|
-
* @param {string} workspaceId
|
|
2857
|
-
* @param {string} path
|
|
2858
|
-
* @param {File} [file]
|
|
2859
|
-
* @param {*} [options] Override http request option.
|
|
2860
|
-
* @throws {RequiredError}
|
|
2861
|
-
*/
|
|
2862
|
-
workspaceControllerUploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2863
|
-
return localVarFp.workspaceControllerUploadFile(workspaceId, path, file, options).then((request) => request(axios, basePath));
|
|
2864
|
-
},
|
|
2865
|
-
};
|
|
2866
|
-
};
|
|
2867
|
-
|
|
2868
|
-
/**
|
|
2869
|
-
* DefaultApi - object-oriented interface
|
|
2870
|
-
* @export
|
|
2871
|
-
* @class DefaultApi
|
|
2872
|
-
* @extends {BaseAPI}
|
|
2873
|
-
*/
|
|
2874
|
-
export class DefaultApi extends BaseAPI {
|
|
2875
|
-
/**
|
|
2876
|
-
*
|
|
2877
|
-
* @summary Create a new API key
|
|
2878
|
-
* @param {CreateApiKeyDto} createApiKeyDto
|
|
2879
|
-
* @param {*} [options] Override http request option.
|
|
2880
|
-
* @throws {RequiredError}
|
|
2881
|
-
* @memberof DefaultApi
|
|
2882
|
-
*/
|
|
2883
|
-
public apiKeyControllerCreateApiKey(createApiKeyDto: CreateApiKeyDto, options?: RawAxiosRequestConfig) {
|
|
2884
|
-
return DefaultApiFp(this.configuration).apiKeyControllerCreateApiKey(createApiKeyDto, options).then((request) => request(this.axios, this.basePath));
|
|
2885
|
-
}
|
|
2886
|
-
|
|
2887
|
-
/**
|
|
2888
|
-
*
|
|
2889
|
-
* @summary Delete an API key by name
|
|
2890
|
-
* @param {string} name
|
|
2891
|
-
* @param {*} [options] Override http request option.
|
|
2892
|
-
* @throws {RequiredError}
|
|
2893
|
-
* @memberof DefaultApi
|
|
2894
|
-
*/
|
|
2895
|
-
public apiKeyControllerDeleteApiKey(name: string, options?: RawAxiosRequestConfig) {
|
|
2896
|
-
return DefaultApiFp(this.configuration).apiKeyControllerDeleteApiKey(name, options).then((request) => request(this.axios, this.basePath));
|
|
2897
|
-
}
|
|
2898
|
-
|
|
2899
|
-
/**
|
|
2900
|
-
*
|
|
2901
|
-
* @summary Get a specific API key by name
|
|
2902
|
-
* @param {string} name
|
|
2903
|
-
* @param {*} [options] Override http request option.
|
|
2904
|
-
* @throws {RequiredError}
|
|
2905
|
-
* @memberof DefaultApi
|
|
2906
|
-
*/
|
|
2907
|
-
public apiKeyControllerGetApiKey(name: string, options?: RawAxiosRequestConfig) {
|
|
2908
|
-
return DefaultApiFp(this.configuration).apiKeyControllerGetApiKey(name, options).then((request) => request(this.axios, this.basePath));
|
|
2909
|
-
}
|
|
2910
|
-
|
|
2911
|
-
/**
|
|
2912
|
-
*
|
|
2913
|
-
* @summary Get all API keys for the user
|
|
2914
|
-
* @param {*} [options] Override http request option.
|
|
2915
|
-
* @throws {RequiredError}
|
|
2916
|
-
* @memberof DefaultApi
|
|
2917
|
-
*/
|
|
2918
|
-
public apiKeyControllerGetApiKeys(options?: RawAxiosRequestConfig) {
|
|
2919
|
-
return DefaultApiFp(this.configuration).apiKeyControllerGetApiKeys(options).then((request) => request(this.axios, this.basePath));
|
|
2920
|
-
}
|
|
2921
|
-
|
|
2922
|
-
/**
|
|
2923
|
-
*
|
|
2924
|
-
* @param {*} [options] Override http request option.
|
|
2925
|
-
* @throws {RequiredError}
|
|
2926
|
-
* @memberof DefaultApi
|
|
2927
|
-
*/
|
|
2928
|
-
public appControllerGetHello(options?: RawAxiosRequestConfig) {
|
|
2929
|
-
return DefaultApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
|
|
2930
|
-
}
|
|
2931
|
-
|
|
2932
|
-
/**
|
|
2933
|
-
*
|
|
2934
|
-
* @param {object} body
|
|
2935
|
-
* @param {*} [options] Override http request option.
|
|
2936
|
-
* @throws {RequiredError}
|
|
2937
|
-
* @memberof DefaultApi
|
|
2938
|
-
*/
|
|
2939
|
-
public nodeControllerCreate(body: object, options?: RawAxiosRequestConfig) {
|
|
2940
|
-
return DefaultApiFp(this.configuration).nodeControllerCreate(body, options).then((request) => request(this.axios, this.basePath));
|
|
2941
|
-
}
|
|
2942
|
-
|
|
2943
|
-
/**
|
|
2944
|
-
*
|
|
2945
|
-
* @param {*} [options] Override http request option.
|
|
2946
|
-
* @throws {RequiredError}
|
|
2947
|
-
* @memberof DefaultApi
|
|
2948
|
-
*/
|
|
2949
|
-
public nodeControllerFindAll(options?: RawAxiosRequestConfig) {
|
|
2950
|
-
return DefaultApiFp(this.configuration).nodeControllerFindAll(options).then((request) => request(this.axios, this.basePath));
|
|
2951
|
-
}
|
|
2952
|
-
|
|
2953
|
-
/**
|
|
2954
|
-
*
|
|
2955
|
-
* @param {string} id
|
|
2956
|
-
* @param {*} [options] Override http request option.
|
|
2957
|
-
* @throws {RequiredError}
|
|
2958
|
-
* @memberof DefaultApi
|
|
2959
|
-
*/
|
|
2960
|
-
public nodeControllerUpdateSchedulingStatus(id: string, options?: RawAxiosRequestConfig) {
|
|
2961
|
-
return DefaultApiFp(this.configuration).nodeControllerUpdateSchedulingStatus(id, options).then((request) => request(this.axios, this.basePath));
|
|
2962
|
-
}
|
|
2963
|
-
|
|
2964
|
-
/**
|
|
2965
|
-
*
|
|
2966
|
-
* @param {object} body
|
|
2967
|
-
* @param {*} [options] Override http request option.
|
|
2968
|
-
* @throws {RequiredError}
|
|
2969
|
-
* @memberof DefaultApi
|
|
2970
|
-
*/
|
|
2971
|
-
public userControllerCreate(body: object, options?: RawAxiosRequestConfig) {
|
|
2972
|
-
return DefaultApiFp(this.configuration).userControllerCreate(body, options).then((request) => request(this.axios, this.basePath));
|
|
2973
|
-
}
|
|
2974
|
-
|
|
2975
|
-
/**
|
|
2976
|
-
*
|
|
2977
|
-
* @param {*} [options] Override http request option.
|
|
2978
|
-
* @throws {RequiredError}
|
|
2979
|
-
* @memberof DefaultApi
|
|
2980
|
-
*/
|
|
2981
|
-
public userControllerFindAll(options?: RawAxiosRequestConfig) {
|
|
2982
|
-
return DefaultApiFp(this.configuration).userControllerFindAll(options).then((request) => request(this.axios, this.basePath));
|
|
2983
|
-
}
|
|
2984
|
-
|
|
2985
|
-
/**
|
|
2986
|
-
*
|
|
2987
|
-
* @param {string} id
|
|
2988
|
-
* @param {*} [options] Override http request option.
|
|
2989
|
-
* @throws {RequiredError}
|
|
2990
|
-
* @memberof DefaultApi
|
|
2991
|
-
*/
|
|
2992
|
-
public userControllerRegenerateKeyPair(id: string, options?: RawAxiosRequestConfig) {
|
|
2993
|
-
return DefaultApiFp(this.configuration).userControllerRegenerateKeyPair(id, options).then((request) => request(this.axios, this.basePath));
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2996
|
-
/**
|
|
2997
|
-
* Create folder inside workspace
|
|
2998
|
-
* @summary Create folder
|
|
2999
|
-
* @param {string} workspaceId
|
|
3000
|
-
* @param {string} path
|
|
3001
|
-
* @param {string} mode
|
|
3002
|
-
* @param {*} [options] Override http request option.
|
|
3003
|
-
* @throws {RequiredError}
|
|
3004
|
-
* @memberof DefaultApi
|
|
3005
|
-
*/
|
|
3006
|
-
public workspaceControllerCreateFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig) {
|
|
3007
|
-
return DefaultApiFp(this.configuration).workspaceControllerCreateFolder(workspaceId, path, mode, options).then((request) => request(this.axios, this.basePath));
|
|
3008
|
-
}
|
|
3009
|
-
|
|
3010
|
-
/**
|
|
3011
|
-
*
|
|
3012
|
-
* @summary Create a workspace snapshot
|
|
3013
|
-
* @param {string} workspaceId
|
|
3014
|
-
* @param {*} [options] Override http request option.
|
|
3015
|
-
* @throws {RequiredError}
|
|
3016
|
-
* @memberof DefaultApi
|
|
3017
|
-
*/
|
|
3018
|
-
public workspaceControllerCreateSnapshot(workspaceId: string, options?: RawAxiosRequestConfig) {
|
|
3019
|
-
return DefaultApiFp(this.configuration).workspaceControllerCreateSnapshot(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
3020
|
-
}
|
|
3021
|
-
|
|
3022
|
-
/**
|
|
3023
|
-
*
|
|
3024
|
-
* @param {CreateWorkspaceDto} createWorkspaceDto
|
|
3025
|
-
* @param {*} [options] Override http request option.
|
|
3026
|
-
* @throws {RequiredError}
|
|
3027
|
-
* @memberof DefaultApi
|
|
3028
|
-
*/
|
|
3029
|
-
public workspaceControllerCreateWorkspace(createWorkspaceDto: CreateWorkspaceDto, options?: RawAxiosRequestConfig) {
|
|
3030
|
-
return DefaultApiFp(this.configuration).workspaceControllerCreateWorkspace(createWorkspaceDto, options).then((request) => request(this.axios, this.basePath));
|
|
3031
|
-
}
|
|
3032
|
-
|
|
3033
|
-
/**
|
|
3034
|
-
* Delete file inside workspace
|
|
3035
|
-
* @summary Delete file
|
|
3036
|
-
* @param {string} workspaceId
|
|
3037
|
-
* @param {string} path
|
|
3038
|
-
* @param {*} [options] Override http request option.
|
|
3039
|
-
* @throws {RequiredError}
|
|
3040
|
-
* @memberof DefaultApi
|
|
3041
|
-
*/
|
|
3042
|
-
public workspaceControllerDeleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
3043
|
-
return DefaultApiFp(this.configuration).workspaceControllerDeleteFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
3044
|
-
}
|
|
3045
|
-
|
|
3046
|
-
/**
|
|
3047
|
-
* Download file from workspace
|
|
3048
|
-
* @summary Download file
|
|
3049
|
-
* @param {string} workspaceId
|
|
3050
|
-
* @param {string} path
|
|
3051
|
-
* @param {*} [options] Override http request option.
|
|
3052
|
-
* @throws {RequiredError}
|
|
3053
|
-
* @memberof DefaultApi
|
|
3054
|
-
*/
|
|
3055
|
-
public workspaceControllerDownloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
3056
|
-
return DefaultApiFp(this.configuration).workspaceControllerDownloadFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
3057
|
-
}
|
|
3058
|
-
|
|
3059
|
-
/**
|
|
3060
|
-
* Execute command synchronously inside workspace
|
|
3061
|
-
* @summary Execute command
|
|
3062
|
-
* @param {string} workspaceId
|
|
3063
|
-
* @param {ExecuteRequestDto} executeRequestDto
|
|
3064
|
-
* @param {*} [options] Override http request option.
|
|
3065
|
-
* @throws {RequiredError}
|
|
3066
|
-
* @memberof DefaultApi
|
|
3067
|
-
*/
|
|
3068
|
-
public workspaceControllerExecuteCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig) {
|
|
3069
|
-
return DefaultApiFp(this.configuration).workspaceControllerExecuteCommand(workspaceId, executeRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
|
-
/**
|
|
3073
|
-
* Search for text/pattern inside workspace files
|
|
3074
|
-
* @summary Search for text/pattern in files
|
|
3075
|
-
* @param {string} workspaceId
|
|
3076
|
-
* @param {string} path
|
|
3077
|
-
* @param {string} pattern
|
|
3078
|
-
* @param {*} [options] Override http request option.
|
|
3079
|
-
* @throws {RequiredError}
|
|
3080
|
-
* @memberof DefaultApi
|
|
3081
|
-
*/
|
|
3082
|
-
public workspaceControllerFindInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) {
|
|
3083
|
-
return DefaultApiFp(this.configuration).workspaceControllerFindInFiles(workspaceId, path, pattern, options).then((request) => request(this.axios, this.basePath));
|
|
3084
|
-
}
|
|
3085
|
-
|
|
3086
|
-
/**
|
|
3087
|
-
* Get file info inside workspace
|
|
3088
|
-
* @summary Get file info
|
|
3089
|
-
* @param {string} workspaceId
|
|
3090
|
-
* @param {string} path
|
|
3091
|
-
* @param {*} [options] Override http request option.
|
|
3092
|
-
* @throws {RequiredError}
|
|
3093
|
-
* @memberof DefaultApi
|
|
3094
|
-
*/
|
|
3095
|
-
public workspaceControllerGetFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
3096
|
-
return DefaultApiFp(this.configuration).workspaceControllerGetFileInfo(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
3097
|
-
}
|
|
3098
|
-
|
|
3099
|
-
/**
|
|
3100
|
-
* Get workspace project directory
|
|
3101
|
-
* @summary Get workspace project dir
|
|
3102
|
-
* @param {string} workspaceId
|
|
3103
|
-
* @param {*} [options] Override http request option.
|
|
3104
|
-
* @throws {RequiredError}
|
|
3105
|
-
* @memberof DefaultApi
|
|
3106
|
-
*/
|
|
3107
|
-
public workspaceControllerGetProjectDir(workspaceId: string, options?: RawAxiosRequestConfig) {
|
|
3108
|
-
return DefaultApiFp(this.configuration).workspaceControllerGetProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
3109
|
-
}
|
|
3110
|
-
|
|
3111
|
-
/**
|
|
3112
|
-
*
|
|
3113
|
-
* @param {string} workspaceId
|
|
3114
|
-
* @param {boolean} [verbose] Include verbose output
|
|
3115
|
-
* @param {*} [options] Override http request option.
|
|
3116
|
-
* @throws {RequiredError}
|
|
3117
|
-
* @memberof DefaultApi
|
|
3118
|
-
*/
|
|
3119
|
-
public workspaceControllerGetWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig) {
|
|
3120
|
-
return DefaultApiFp(this.configuration).workspaceControllerGetWorkspace(workspaceId, verbose, options).then((request) => request(this.axios, this.basePath));
|
|
3121
|
-
}
|
|
3122
|
-
|
|
3123
|
-
/**
|
|
3124
|
-
* Add files to git commit
|
|
3125
|
-
* @summary Add files
|
|
3126
|
-
* @param {string} workspaceId
|
|
3127
|
-
* @param {GitAddRequestDto} gitAddRequestDto
|
|
3128
|
-
* @param {*} [options] Override http request option.
|
|
3129
|
-
* @throws {RequiredError}
|
|
3130
|
-
* @memberof DefaultApi
|
|
3131
|
-
*/
|
|
3132
|
-
public workspaceControllerGitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig) {
|
|
3133
|
-
return DefaultApiFp(this.configuration).workspaceControllerGitAddFiles(workspaceId, gitAddRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
/**
|
|
3137
|
-
* Get branch list from git repository
|
|
3138
|
-
* @summary Get branch list
|
|
3139
|
-
* @param {string} workspaceId
|
|
3140
|
-
* @param {string} path
|
|
3141
|
-
* @param {*} [options] Override http request option.
|
|
3142
|
-
* @throws {RequiredError}
|
|
3143
|
-
* @memberof DefaultApi
|
|
3144
|
-
*/
|
|
3145
|
-
public workspaceControllerGitBranchList(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
3146
|
-
return DefaultApiFp(this.configuration).workspaceControllerGitBranchList(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
3147
|
-
}
|
|
3148
|
-
|
|
3149
|
-
/**
|
|
3150
|
-
* Clone git repository
|
|
3151
|
-
* @summary Clone repository
|
|
3152
|
-
* @param {string} workspaceId
|
|
3153
|
-
* @param {GitCloneRequestDto} gitCloneRequestDto
|
|
3154
|
-
* @param {*} [options] Override http request option.
|
|
3155
|
-
* @throws {RequiredError}
|
|
3156
|
-
* @memberof DefaultApi
|
|
3157
|
-
*/
|
|
3158
|
-
public workspaceControllerGitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig) {
|
|
3159
|
-
return DefaultApiFp(this.configuration).workspaceControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3160
|
-
}
|
|
3161
|
-
|
|
3162
|
-
/**
|
|
3163
|
-
* Commit changes to git repository
|
|
3164
|
-
* @summary Commit changes
|
|
3165
|
-
* @param {string} workspaceId
|
|
3166
|
-
* @param {GitCommitRequestDto} gitCommitRequestDto
|
|
3167
|
-
* @param {*} [options] Override http request option.
|
|
3168
|
-
* @throws {RequiredError}
|
|
3169
|
-
* @memberof DefaultApi
|
|
3170
|
-
*/
|
|
3171
|
-
public workspaceControllerGitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig) {
|
|
3172
|
-
return DefaultApiFp(this.configuration).workspaceControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3173
|
-
}
|
|
3174
|
-
|
|
3175
|
-
/**
|
|
3176
|
-
* Get commit history from git repository
|
|
3177
|
-
* @summary Get commit history
|
|
3178
|
-
* @param {string} workspaceId
|
|
3179
|
-
* @param {string} path
|
|
3180
|
-
* @param {*} [options] Override http request option.
|
|
3181
|
-
* @throws {RequiredError}
|
|
3182
|
-
* @memberof DefaultApi
|
|
3183
|
-
*/
|
|
3184
|
-
public workspaceControllerGitCommitHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
3185
|
-
return DefaultApiFp(this.configuration).workspaceControllerGitCommitHistory(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
3186
|
-
}
|
|
3187
|
-
|
|
3188
|
-
/**
|
|
3189
|
-
* Create branch on git repository
|
|
3190
|
-
* @summary Create branch
|
|
3191
|
-
* @param {string} workspaceId
|
|
3192
|
-
* @param {GitBranchRequestDto} gitBranchRequestDto
|
|
3193
|
-
* @param {*} [options] Override http request option.
|
|
3194
|
-
* @throws {RequiredError}
|
|
3195
|
-
* @memberof DefaultApi
|
|
3196
|
-
*/
|
|
3197
|
-
public workspaceControllerGitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig) {
|
|
3198
|
-
return DefaultApiFp(this.configuration).workspaceControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3199
|
-
}
|
|
3200
|
-
|
|
3201
|
-
/**
|
|
3202
|
-
* Pull changes from remote
|
|
3203
|
-
* @summary Pull changes
|
|
3204
|
-
* @param {string} workspaceId
|
|
3205
|
-
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
3206
|
-
* @param {*} [options] Override http request option.
|
|
3207
|
-
* @throws {RequiredError}
|
|
3208
|
-
* @memberof DefaultApi
|
|
3209
|
-
*/
|
|
3210
|
-
public workspaceControllerGitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig) {
|
|
3211
|
-
return DefaultApiFp(this.configuration).workspaceControllerGitPullChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3212
|
-
}
|
|
3213
|
-
|
|
3214
|
-
/**
|
|
3215
|
-
* Push changes to remote
|
|
3216
|
-
* @summary Push changes
|
|
3217
|
-
* @param {string} workspaceId
|
|
3218
|
-
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
3219
|
-
* @param {*} [options] Override http request option.
|
|
3220
|
-
* @throws {RequiredError}
|
|
3221
|
-
* @memberof DefaultApi
|
|
3222
|
-
*/
|
|
3223
|
-
public workspaceControllerGitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig) {
|
|
3224
|
-
return DefaultApiFp(this.configuration).workspaceControllerGitPushChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
/**
|
|
3228
|
-
* Get status from git repository
|
|
3229
|
-
* @summary Get git status
|
|
3230
|
-
* @param {string} workspaceId
|
|
3231
|
-
* @param {string} path
|
|
3232
|
-
* @param {*} [options] Override http request option.
|
|
3233
|
-
* @throws {RequiredError}
|
|
3234
|
-
* @memberof DefaultApi
|
|
3235
|
-
*/
|
|
3236
|
-
public workspaceControllerGitStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
3237
|
-
return DefaultApiFp(this.configuration).workspaceControllerGitStatus(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
3238
|
-
}
|
|
3239
|
-
|
|
3240
|
-
/**
|
|
3241
|
-
* List files inside workspace
|
|
3242
|
-
* @summary List files
|
|
3243
|
-
* @param {string} workspaceId
|
|
3244
|
-
* @param {string} [path]
|
|
3245
|
-
* @param {*} [options] Override http request option.
|
|
3246
|
-
* @throws {RequiredError}
|
|
3247
|
-
* @memberof DefaultApi
|
|
3248
|
-
*/
|
|
3249
|
-
public workspaceControllerListFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig) {
|
|
3250
|
-
return DefaultApiFp(this.configuration).workspaceControllerListFiles(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
3251
|
-
}
|
|
3252
|
-
|
|
3253
|
-
/**
|
|
3254
|
-
*
|
|
3255
|
-
* @param {boolean} [verbose] Include verbose output
|
|
3256
|
-
* @param {*} [options] Override http request option.
|
|
3257
|
-
* @throws {RequiredError}
|
|
3258
|
-
* @memberof DefaultApi
|
|
3259
|
-
*/
|
|
3260
|
-
public workspaceControllerListWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig) {
|
|
3261
|
-
return DefaultApiFp(this.configuration).workspaceControllerListWorkspaces(verbose, options).then((request) => request(this.axios, this.basePath));
|
|
3262
|
-
}
|
|
3263
|
-
|
|
3264
|
-
/**
|
|
3265
|
-
* Move file inside workspace
|
|
3266
|
-
* @summary Move file
|
|
3267
|
-
* @param {string} workspaceId
|
|
3268
|
-
* @param {string} source
|
|
3269
|
-
* @param {string} destination
|
|
3270
|
-
* @param {*} [options] Override http request option.
|
|
3271
|
-
* @throws {RequiredError}
|
|
3272
|
-
* @memberof DefaultApi
|
|
3273
|
-
*/
|
|
3274
|
-
public workspaceControllerMoveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig) {
|
|
3275
|
-
return DefaultApiFp(this.configuration).workspaceControllerMoveFile(workspaceId, source, destination, options).then((request) => request(this.axios, this.basePath));
|
|
3276
|
-
}
|
|
3277
|
-
|
|
3278
|
-
/**
|
|
3279
|
-
*
|
|
3280
|
-
* @param {string} workspaceId
|
|
3281
|
-
* @param {boolean} force
|
|
3282
|
-
* @param {*} [options] Override http request option.
|
|
3283
|
-
* @throws {RequiredError}
|
|
3284
|
-
* @memberof DefaultApi
|
|
3285
|
-
*/
|
|
3286
|
-
public workspaceControllerRemoveWorkspace(workspaceId: string, force: boolean, options?: RawAxiosRequestConfig) {
|
|
3287
|
-
return DefaultApiFp(this.configuration).workspaceControllerRemoveWorkspace(workspaceId, force, options).then((request) => request(this.axios, this.basePath));
|
|
3288
|
-
}
|
|
3289
|
-
|
|
3290
|
-
/**
|
|
3291
|
-
* Replace text/pattern in multiple files inside workspace
|
|
3292
|
-
* @summary Replace in files
|
|
3293
|
-
* @param {string} workspaceId
|
|
3294
|
-
* @param {ReplaceRequestDto} replaceRequestDto
|
|
3295
|
-
* @param {*} [options] Override http request option.
|
|
3296
|
-
* @throws {RequiredError}
|
|
3297
|
-
* @memberof DefaultApi
|
|
3298
|
-
*/
|
|
3299
|
-
public workspaceControllerReplaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig) {
|
|
3300
|
-
return DefaultApiFp(this.configuration).workspaceControllerReplaceInFiles(workspaceId, replaceRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3301
|
-
}
|
|
3302
|
-
|
|
3303
|
-
/**
|
|
3304
|
-
* Replace all labels for a workspace. Existing labels will be removed.
|
|
3305
|
-
* @summary Replace workspace labels
|
|
3306
|
-
* @param {string} workspaceId
|
|
3307
|
-
* @param {WorkspaceLabelsDto} workspaceLabelsDto
|
|
3308
|
-
* @param {*} [options] Override http request option.
|
|
3309
|
-
* @throws {RequiredError}
|
|
3310
|
-
* @memberof DefaultApi
|
|
3311
|
-
*/
|
|
3312
|
-
public workspaceControllerReplaceLabels(workspaceId: string, workspaceLabelsDto: WorkspaceLabelsDto, options?: RawAxiosRequestConfig) {
|
|
3313
|
-
return DefaultApiFp(this.configuration).workspaceControllerReplaceLabels(workspaceId, workspaceLabelsDto, options).then((request) => request(this.axios, this.basePath));
|
|
3314
|
-
}
|
|
3315
|
-
|
|
3316
|
-
/**
|
|
3317
|
-
* Search for files inside workspace
|
|
3318
|
-
* @summary Search files
|
|
3319
|
-
* @param {string} workspaceId
|
|
3320
|
-
* @param {string} path
|
|
3321
|
-
* @param {string} pattern
|
|
3322
|
-
* @param {*} [options] Override http request option.
|
|
3323
|
-
* @throws {RequiredError}
|
|
3324
|
-
* @memberof DefaultApi
|
|
3325
|
-
*/
|
|
3326
|
-
public workspaceControllerSearchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) {
|
|
3327
|
-
return DefaultApiFp(this.configuration).workspaceControllerSearchFiles(workspaceId, path, pattern, options).then((request) => request(this.axios, this.basePath));
|
|
3328
|
-
}
|
|
3329
|
-
|
|
3330
|
-
/**
|
|
3331
|
-
* Set file owner/group/permissions inside workspace
|
|
3332
|
-
* @summary Set file permissions
|
|
3333
|
-
* @param {string} workspaceId
|
|
3334
|
-
* @param {string} path
|
|
3335
|
-
* @param {string} owner
|
|
3336
|
-
* @param {string} group
|
|
3337
|
-
* @param {string} mode
|
|
3338
|
-
* @param {*} [options] Override http request option.
|
|
3339
|
-
* @throws {RequiredError}
|
|
3340
|
-
* @memberof DefaultApi
|
|
3341
|
-
*/
|
|
3342
|
-
public workspaceControllerSetFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig) {
|
|
3343
|
-
return DefaultApiFp(this.configuration).workspaceControllerSetFilePermissions(workspaceId, path, owner, group, mode, options).then((request) => request(this.axios, this.basePath));
|
|
3344
|
-
}
|
|
3345
|
-
|
|
3346
|
-
/**
|
|
3347
|
-
*
|
|
3348
|
-
* @param {string} workspaceId
|
|
3349
|
-
* @param {*} [options] Override http request option.
|
|
3350
|
-
* @throws {RequiredError}
|
|
3351
|
-
* @memberof DefaultApi
|
|
3352
|
-
*/
|
|
3353
|
-
public workspaceControllerStartWorkspace(workspaceId: string, options?: RawAxiosRequestConfig) {
|
|
3354
|
-
return DefaultApiFp(this.configuration).workspaceControllerStartWorkspace(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
3355
|
-
}
|
|
98
|
+
};
|
|
99
|
+
};
|
|
3356
100
|
|
|
101
|
+
/**
|
|
102
|
+
* DefaultApi - object-oriented interface
|
|
103
|
+
* @export
|
|
104
|
+
* @class DefaultApi
|
|
105
|
+
* @extends {BaseAPI}
|
|
106
|
+
*/
|
|
107
|
+
export class DefaultApi extends BaseAPI {
|
|
3357
108
|
/**
|
|
3358
109
|
*
|
|
3359
|
-
* @param {string} workspaceId
|
|
3360
110
|
* @param {*} [options] Override http request option.
|
|
3361
111
|
* @throws {RequiredError}
|
|
3362
112
|
* @memberof DefaultApi
|
|
3363
113
|
*/
|
|
3364
|
-
public
|
|
3365
|
-
return DefaultApiFp(this.configuration).
|
|
3366
|
-
}
|
|
3367
|
-
|
|
3368
|
-
/**
|
|
3369
|
-
* Change public preview status of a workspace
|
|
3370
|
-
* @summary Change public preview status
|
|
3371
|
-
* @param {string} workspaceId ID of the workspace
|
|
3372
|
-
* @param {boolean} isPublic Public status to set
|
|
3373
|
-
* @param {*} [options] Override http request option.
|
|
3374
|
-
* @throws {RequiredError}
|
|
3375
|
-
* @memberof DefaultApi
|
|
3376
|
-
*/
|
|
3377
|
-
public workspaceControllerUpdatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig) {
|
|
3378
|
-
return DefaultApiFp(this.configuration).workspaceControllerUpdatePublicStatus(workspaceId, isPublic, options).then((request) => request(this.axios, this.basePath));
|
|
3379
|
-
}
|
|
3380
|
-
|
|
3381
|
-
/**
|
|
3382
|
-
* Upload file inside workspace
|
|
3383
|
-
* @summary Upload file
|
|
3384
|
-
* @param {string} workspaceId
|
|
3385
|
-
* @param {string} path
|
|
3386
|
-
* @param {File} [file]
|
|
3387
|
-
* @param {*} [options] Override http request option.
|
|
3388
|
-
* @throws {RequiredError}
|
|
3389
|
-
* @memberof DefaultApi
|
|
3390
|
-
*/
|
|
3391
|
-
public workspaceControllerUploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig) {
|
|
3392
|
-
return DefaultApiFp(this.configuration).workspaceControllerUploadFile(workspaceId, path, file, options).then((request) => request(this.axios, this.basePath));
|
|
114
|
+
public appControllerGetHello(options?: RawAxiosRequestConfig) {
|
|
115
|
+
return DefaultApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
|
|
3393
116
|
}
|
|
3394
117
|
}
|
|
3395
118
|
|