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