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