@daytonaio/api-client 0.5.2 → 0.6.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 +20 -18
- package/README.md +2 -2
- package/api/api-keys-api.ts +21 -21
- package/api/{default-api.ts → app-api.ts} +14 -14
- package/api/docker-registry-api.ts +30 -30
- package/api/nodes-api.ts +16 -14
- package/api/toolbox-api.ts +120 -120
- package/api/users-api.ts +16 -14
- package/api/workspace-api.ts +37 -37
- package/api.ts +1 -1
- package/dist/api/api-keys-api.d.ts +17 -17
- package/dist/api/api-keys-api.js +17 -17
- package/dist/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/api/{default-api.js → app-api.js} +19 -19
- package/dist/api/docker-registry-api.d.ts +18 -18
- package/dist/api/docker-registry-api.js +33 -33
- package/dist/api/nodes-api.d.ts +9 -8
- package/dist/api/nodes-api.js +16 -16
- package/dist/api/toolbox-api.d.ts +72 -72
- package/dist/api/toolbox-api.js +125 -125
- package/dist/api/users-api.d.ts +9 -8
- package/dist/api/users-api.js +16 -16
- package/dist/api/workspace-api.d.ts +28 -28
- package/dist/api/workspace-api.js +34 -34
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/esm/api/api-keys-api.d.ts +17 -17
- package/dist/esm/api/api-keys-api.js +17 -17
- package/dist/esm/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/esm/api/{default-api.js → app-api.js} +14 -14
- package/dist/esm/api/docker-registry-api.d.ts +18 -18
- package/dist/esm/api/docker-registry-api.js +33 -33
- package/dist/esm/api/nodes-api.d.ts +9 -8
- package/dist/esm/api/nodes-api.js +16 -16
- package/dist/esm/api/toolbox-api.d.ts +72 -72
- package/dist/esm/api/toolbox-api.js +125 -125
- package/dist/esm/api/users-api.d.ts +9 -8
- package/dist/esm/api/users-api.js +16 -16
- package/dist/esm/api/workspace-api.d.ts +28 -28
- package/dist/esm/api/workspace-api.js +34 -34
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/esm/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{models/create-api-key-dto.d.ts → esm/models/create-api-key.d.ts} +3 -3
- package/dist/{models/create-docker-registry-dto.d.ts → esm/models/create-docker-registry.d.ts} +8 -8
- package/dist/esm/models/create-node.d.ts +24 -0
- package/dist/esm/models/create-user.d.ts +30 -0
- package/dist/{models/create-workspace-dto.d.ts → esm/models/create-workspace.d.ts} +21 -21
- package/dist/esm/models/{create-workspace-dto.js → create-workspace.js} +2 -2
- package/dist/{models/execute-request-dto.d.ts → esm/models/execute-request.d.ts} +4 -4
- package/dist/{models/execute-response-dto.d.ts → esm/models/execute-response.d.ts} +5 -5
- package/dist/esm/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{models/git-branch-request-dto.d.ts → esm/models/git-branch-request.d.ts} +4 -4
- package/dist/esm/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{models/git-commit-request-dto.d.ts → esm/models/git-commit-request.d.ts} +6 -6
- package/dist/esm/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/esm/models/index.d.ts +19 -17
- package/dist/esm/models/index.js +19 -17
- package/dist/esm/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/esm/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{models/workspace-info-dto.d.ts → esm/models/workspace-info.d.ts} +5 -5
- package/dist/{models/workspace-labels-dto.d.ts → esm/models/workspace-labels.d.ts} +3 -3
- package/dist/esm/models/workspace-labels.js +14 -0
- package/dist/{models/workspace-dto.d.ts → esm/models/workspace.d.ts} +18 -18
- package/dist/esm/models/workspace.js +14 -0
- package/dist/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{esm/models/create-api-key-dto.d.ts → models/create-api-key.d.ts} +3 -3
- package/dist/{esm/models/create-docker-registry-dto.d.ts → models/create-docker-registry.d.ts} +8 -8
- package/dist/models/create-node.d.ts +24 -0
- package/dist/models/create-user.d.ts +30 -0
- package/dist/{esm/models/create-workspace-dto.d.ts → models/create-workspace.d.ts} +21 -21
- package/dist/models/{create-workspace-dto.js → create-workspace.js} +3 -3
- package/dist/{esm/models/execute-request-dto.d.ts → models/execute-request.d.ts} +4 -4
- package/dist/{esm/models/execute-response-dto.d.ts → models/execute-response.d.ts} +5 -5
- package/dist/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{esm/models/git-branch-request-dto.d.ts → models/git-branch-request.d.ts} +4 -4
- package/dist/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{esm/models/git-commit-request-dto.d.ts → models/git-commit-request.d.ts} +6 -6
- package/dist/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/models/index.d.ts +19 -17
- package/dist/models/index.js +19 -17
- package/dist/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{esm/models/workspace-info-dto.d.ts → models/workspace-info.d.ts} +5 -5
- package/dist/{esm/models/workspace-labels-dto.d.ts → models/workspace-labels.d.ts} +3 -3
- package/dist/models/workspace-labels.js +15 -0
- package/dist/{esm/models/workspace-dto.d.ts → models/workspace.d.ts} +18 -18
- package/dist/models/workspace.js +15 -0
- package/models/{api-key-list-dto.ts → api-key-list.ts} +5 -5
- package/models/{api-key-response-dto.ts → api-key-response.ts} +5 -5
- package/models/{create-api-key-dto.ts → create-api-key.ts} +3 -3
- package/models/{create-docker-registry-dto.ts → create-docker-registry.ts} +8 -8
- package/models/create-node.ts +30 -0
- package/models/create-user.ts +36 -0
- package/models/{create-workspace-dto.ts → create-workspace.ts} +21 -21
- package/models/{execute-request-dto.ts → execute-request.ts} +4 -4
- package/models/{execute-response-dto.ts → execute-response.ts} +5 -5
- package/models/{git-add-request-dto.ts → git-add-request.ts} +4 -4
- package/models/{git-branch-request-dto.ts → git-branch-request.ts} +4 -4
- package/models/{git-clone-request-dto.ts → git-clone-request.ts} +8 -8
- package/models/{git-commit-request-dto.ts → git-commit-request.ts} +6 -6
- package/models/{git-repo-request-dto.ts → git-repo-request.ts} +5 -5
- package/models/index.ts +19 -17
- package/models/{replace-request-dto.ts → replace-request.ts} +5 -5
- package/models/{update-docker-registry-dto.ts → update-docker-registry.ts} +8 -8
- package/models/{workspace-info-dto.ts → workspace-info.ts} +5 -5
- package/models/{workspace-labels-dto.ts → workspace-labels.ts} +3 -3
- package/models/{workspace-dto.ts → workspace.ts} +18 -18
- package/package.json +1 -1
- /package/dist/esm/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/esm/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/esm/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/esm/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/esm/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/esm/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/esm/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/esm/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/esm/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
- /package/dist/esm/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/esm/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/esm/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/esm/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/esm/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/esm/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/esm/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
- /package/dist/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
- /package/dist/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
package/dist/api/users-api.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { CreateUser } from '../models';
|
|
15
16
|
/**
|
|
16
17
|
* UsersApi - axios parameter creator
|
|
17
18
|
* @export
|
|
@@ -20,11 +21,11 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
20
21
|
/**
|
|
21
22
|
*
|
|
22
23
|
* @summary Create user
|
|
23
|
-
* @param {
|
|
24
|
+
* @param {CreateUser} createUser
|
|
24
25
|
* @param {*} [options] Override http request option.
|
|
25
26
|
* @throws {RequiredError}
|
|
26
27
|
*/
|
|
27
|
-
createUser: (
|
|
28
|
+
createUser: (createUser: CreateUser, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
29
|
/**
|
|
29
30
|
*
|
|
30
31
|
* @summary List all users
|
|
@@ -49,11 +50,11 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
49
50
|
/**
|
|
50
51
|
*
|
|
51
52
|
* @summary Create user
|
|
52
|
-
* @param {
|
|
53
|
+
* @param {CreateUser} createUser
|
|
53
54
|
* @param {*} [options] Override http request option.
|
|
54
55
|
* @throws {RequiredError}
|
|
55
56
|
*/
|
|
56
|
-
createUser(
|
|
57
|
+
createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
57
58
|
/**
|
|
58
59
|
*
|
|
59
60
|
* @summary List all users
|
|
@@ -78,11 +79,11 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
78
79
|
/**
|
|
79
80
|
*
|
|
80
81
|
* @summary Create user
|
|
81
|
-
* @param {
|
|
82
|
+
* @param {CreateUser} createUser
|
|
82
83
|
* @param {*} [options] Override http request option.
|
|
83
84
|
* @throws {RequiredError}
|
|
84
85
|
*/
|
|
85
|
-
createUser(
|
|
86
|
+
createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
86
87
|
/**
|
|
87
88
|
*
|
|
88
89
|
* @summary List all users
|
|
@@ -109,12 +110,12 @@ export declare class UsersApi extends BaseAPI {
|
|
|
109
110
|
/**
|
|
110
111
|
*
|
|
111
112
|
* @summary Create user
|
|
112
|
-
* @param {
|
|
113
|
+
* @param {CreateUser} createUser
|
|
113
114
|
* @param {*} [options] Override http request option.
|
|
114
115
|
* @throws {RequiredError}
|
|
115
116
|
* @memberof UsersApi
|
|
116
117
|
*/
|
|
117
|
-
createUser(
|
|
118
|
+
createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
118
119
|
/**
|
|
119
120
|
*
|
|
120
121
|
* @summary List all users
|
package/dist/api/users-api.js
CHANGED
|
@@ -38,13 +38,13 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @summary Create user
|
|
41
|
-
* @param {
|
|
41
|
+
* @param {CreateUser} createUser
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
44
44
|
*/
|
|
45
|
-
createUser: (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
(0, common_1.assertParamExists)('createUser', '
|
|
45
|
+
createUser: (createUser_1, ...args_1) => __awaiter(this, [createUser_1, ...args_1], void 0, function* (createUser, options = {}) {
|
|
46
|
+
// verify required parameter 'createUser' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('createUser', 'createUser', createUser);
|
|
48
48
|
const localVarPath = `/users`;
|
|
49
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
50
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -62,7 +62,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
62
62
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
63
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
64
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
65
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUser, localVarRequestOptions, configuration);
|
|
66
66
|
return {
|
|
67
67
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
68
68
|
options: localVarRequestOptions,
|
|
@@ -74,7 +74,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
74
74
|
* @param {*} [options] Override http request option.
|
|
75
75
|
* @throws {RequiredError}
|
|
76
76
|
*/
|
|
77
|
-
listUsers: (...
|
|
77
|
+
listUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
78
78
|
const localVarPath = `/users`;
|
|
79
79
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
80
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -103,7 +103,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
104
104
|
* @throws {RequiredError}
|
|
105
105
|
*/
|
|
106
|
-
regenerateKeyPair: (id_1, ...
|
|
106
|
+
regenerateKeyPair: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
107
107
|
// verify required parameter 'id' is not null or undefined
|
|
108
108
|
(0, common_1.assertParamExists)('regenerateKeyPair', 'id', id);
|
|
109
109
|
const localVarPath = `/users/{id}/regenerate-key-pair`
|
|
@@ -141,14 +141,14 @@ const UsersApiFp = function (configuration) {
|
|
|
141
141
|
/**
|
|
142
142
|
*
|
|
143
143
|
* @summary Create user
|
|
144
|
-
* @param {
|
|
144
|
+
* @param {CreateUser} createUser
|
|
145
145
|
* @param {*} [options] Override http request option.
|
|
146
146
|
* @throws {RequiredError}
|
|
147
147
|
*/
|
|
148
|
-
createUser(
|
|
148
|
+
createUser(createUser, options) {
|
|
149
149
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
150
|
var _a, _b, _c;
|
|
151
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUser(
|
|
151
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUser(createUser, options);
|
|
152
152
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
153
153
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.createUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
154
154
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -198,12 +198,12 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
198
198
|
/**
|
|
199
199
|
*
|
|
200
200
|
* @summary Create user
|
|
201
|
-
* @param {
|
|
201
|
+
* @param {CreateUser} createUser
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
205
|
-
createUser(
|
|
206
|
-
return localVarFp.createUser(
|
|
205
|
+
createUser(createUser, options) {
|
|
206
|
+
return localVarFp.createUser(createUser, options).then((request) => request(axios, basePath));
|
|
207
207
|
},
|
|
208
208
|
/**
|
|
209
209
|
*
|
|
@@ -237,13 +237,13 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
237
237
|
/**
|
|
238
238
|
*
|
|
239
239
|
* @summary Create user
|
|
240
|
-
* @param {
|
|
240
|
+
* @param {CreateUser} createUser
|
|
241
241
|
* @param {*} [options] Override http request option.
|
|
242
242
|
* @throws {RequiredError}
|
|
243
243
|
* @memberof UsersApi
|
|
244
244
|
*/
|
|
245
|
-
createUser(
|
|
246
|
-
return (0, exports.UsersApiFp)(this.configuration).createUser(
|
|
245
|
+
createUser(createUser, options) {
|
|
246
|
+
return (0, exports.UsersApiFp)(this.configuration).createUser(createUser, options).then((request) => request(this.axios, this.basePath));
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
249
249
|
*
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
15
|
+
import type { CreateWorkspace } from '../models';
|
|
16
|
+
import type { Workspace } from '../models';
|
|
17
|
+
import type { WorkspaceLabels } from '../models';
|
|
18
18
|
/**
|
|
19
19
|
* WorkspaceApi - axios parameter creator
|
|
20
20
|
* @export
|
|
@@ -31,11 +31,11 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @summary Create a new workspace
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {CreateWorkspace} createWorkspace
|
|
35
35
|
* @param {*} [options] Override http request option.
|
|
36
36
|
* @throws {RequiredError}
|
|
37
37
|
*/
|
|
38
|
-
createWorkspace: (
|
|
38
|
+
createWorkspace: (createWorkspace: CreateWorkspace, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @summary Delete workspace
|
|
@@ -66,11 +66,11 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
66
66
|
*
|
|
67
67
|
* @summary Replace workspace labels
|
|
68
68
|
* @param {string} workspaceId
|
|
69
|
-
* @param {
|
|
69
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
70
70
|
* @param {*} [options] Override http request option.
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
|
-
replaceLabels: (workspaceId: string,
|
|
73
|
+
replaceLabels: (workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @summary Start workspace
|
|
@@ -109,15 +109,15 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
112
|
-
createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
112
|
+
createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>>;
|
|
113
113
|
/**
|
|
114
114
|
*
|
|
115
115
|
* @summary Create a new workspace
|
|
116
|
-
* @param {
|
|
116
|
+
* @param {CreateWorkspace} createWorkspace
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
119
|
*/
|
|
120
|
-
createWorkspace(
|
|
120
|
+
createWorkspace(createWorkspace: CreateWorkspace, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>>;
|
|
121
121
|
/**
|
|
122
122
|
*
|
|
123
123
|
* @summary Delete workspace
|
|
@@ -135,7 +135,7 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
135
135
|
* @param {*} [options] Override http request option.
|
|
136
136
|
* @throws {RequiredError}
|
|
137
137
|
*/
|
|
138
|
-
getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
138
|
+
getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>>;
|
|
139
139
|
/**
|
|
140
140
|
*
|
|
141
141
|
* @summary List all workspaces
|
|
@@ -143,16 +143,16 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
143
143
|
* @param {*} [options] Override http request option.
|
|
144
144
|
* @throws {RequiredError}
|
|
145
145
|
*/
|
|
146
|
-
listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
146
|
+
listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Workspace>>>;
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
149
|
* @summary Replace workspace labels
|
|
150
150
|
* @param {string} workspaceId
|
|
151
|
-
* @param {
|
|
151
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
152
152
|
* @param {*} [options] Override http request option.
|
|
153
153
|
* @throws {RequiredError}
|
|
154
154
|
*/
|
|
155
|
-
replaceLabels(workspaceId: string,
|
|
155
|
+
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabels>>;
|
|
156
156
|
/**
|
|
157
157
|
*
|
|
158
158
|
* @summary Start workspace
|
|
@@ -191,15 +191,15 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
191
191
|
* @param {*} [options] Override http request option.
|
|
192
192
|
* @throws {RequiredError}
|
|
193
193
|
*/
|
|
194
|
-
createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
194
|
+
createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Workspace>;
|
|
195
195
|
/**
|
|
196
196
|
*
|
|
197
197
|
* @summary Create a new workspace
|
|
198
|
-
* @param {
|
|
198
|
+
* @param {CreateWorkspace} createWorkspace
|
|
199
199
|
* @param {*} [options] Override http request option.
|
|
200
200
|
* @throws {RequiredError}
|
|
201
201
|
*/
|
|
202
|
-
createWorkspace(
|
|
202
|
+
createWorkspace(createWorkspace: CreateWorkspace, options?: RawAxiosRequestConfig): AxiosPromise<Workspace>;
|
|
203
203
|
/**
|
|
204
204
|
*
|
|
205
205
|
* @summary Delete workspace
|
|
@@ -217,7 +217,7 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
217
217
|
* @param {*} [options] Override http request option.
|
|
218
218
|
* @throws {RequiredError}
|
|
219
219
|
*/
|
|
220
|
-
getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
220
|
+
getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Workspace>;
|
|
221
221
|
/**
|
|
222
222
|
*
|
|
223
223
|
* @summary List all workspaces
|
|
@@ -225,16 +225,16 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
225
225
|
* @param {*} [options] Override http request option.
|
|
226
226
|
* @throws {RequiredError}
|
|
227
227
|
*/
|
|
228
|
-
listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
228
|
+
listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Workspace>>;
|
|
229
229
|
/**
|
|
230
230
|
*
|
|
231
231
|
* @summary Replace workspace labels
|
|
232
232
|
* @param {string} workspaceId
|
|
233
|
-
* @param {
|
|
233
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
234
234
|
* @param {*} [options] Override http request option.
|
|
235
235
|
* @throws {RequiredError}
|
|
236
236
|
*/
|
|
237
|
-
replaceLabels(workspaceId: string,
|
|
237
|
+
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabels>;
|
|
238
238
|
/**
|
|
239
239
|
*
|
|
240
240
|
* @summary Start workspace
|
|
@@ -276,16 +276,16 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
276
276
|
* @throws {RequiredError}
|
|
277
277
|
* @memberof WorkspaceApi
|
|
278
278
|
*/
|
|
279
|
-
createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
279
|
+
createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace, any>>;
|
|
280
280
|
/**
|
|
281
281
|
*
|
|
282
282
|
* @summary Create a new workspace
|
|
283
|
-
* @param {
|
|
283
|
+
* @param {CreateWorkspace} createWorkspace
|
|
284
284
|
* @param {*} [options] Override http request option.
|
|
285
285
|
* @throws {RequiredError}
|
|
286
286
|
* @memberof WorkspaceApi
|
|
287
287
|
*/
|
|
288
|
-
createWorkspace(
|
|
288
|
+
createWorkspace(createWorkspace: CreateWorkspace, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace, any>>;
|
|
289
289
|
/**
|
|
290
290
|
*
|
|
291
291
|
* @summary Delete workspace
|
|
@@ -305,7 +305,7 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
305
305
|
* @throws {RequiredError}
|
|
306
306
|
* @memberof WorkspaceApi
|
|
307
307
|
*/
|
|
308
|
-
getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
308
|
+
getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace, any>>;
|
|
309
309
|
/**
|
|
310
310
|
*
|
|
311
311
|
* @summary List all workspaces
|
|
@@ -314,17 +314,17 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
314
314
|
* @throws {RequiredError}
|
|
315
315
|
* @memberof WorkspaceApi
|
|
316
316
|
*/
|
|
317
|
-
listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
317
|
+
listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace[], any>>;
|
|
318
318
|
/**
|
|
319
319
|
*
|
|
320
320
|
* @summary Replace workspace labels
|
|
321
321
|
* @param {string} workspaceId
|
|
322
|
-
* @param {
|
|
322
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
323
323
|
* @param {*} [options] Override http request option.
|
|
324
324
|
* @throws {RequiredError}
|
|
325
325
|
* @memberof WorkspaceApi
|
|
326
326
|
*/
|
|
327
|
-
replaceLabels(workspaceId: string,
|
|
327
|
+
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceLabels, any>>;
|
|
328
328
|
/**
|
|
329
329
|
*
|
|
330
330
|
* @summary Start workspace
|
|
@@ -70,13 +70,13 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @summary Create a new workspace
|
|
73
|
-
* @param {
|
|
73
|
+
* @param {CreateWorkspace} createWorkspace
|
|
74
74
|
* @param {*} [options] Override http request option.
|
|
75
75
|
* @throws {RequiredError}
|
|
76
76
|
*/
|
|
77
|
-
createWorkspace: (
|
|
78
|
-
// verify required parameter '
|
|
79
|
-
(0, common_1.assertParamExists)('createWorkspace', '
|
|
77
|
+
createWorkspace: (createWorkspace_1, ...args_1) => __awaiter(this, [createWorkspace_1, ...args_1], void 0, function* (createWorkspace, options = {}) {
|
|
78
|
+
// verify required parameter 'createWorkspace' is not null or undefined
|
|
79
|
+
(0, common_1.assertParamExists)('createWorkspace', 'createWorkspace', createWorkspace);
|
|
80
80
|
const localVarPath = `/workspace`;
|
|
81
81
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82
82
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -94,7 +94,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
94
94
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
95
95
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
96
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
97
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
97
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkspace, localVarRequestOptions, configuration);
|
|
98
98
|
return {
|
|
99
99
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
100
100
|
options: localVarRequestOptions,
|
|
@@ -108,7 +108,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
109
109
|
* @throws {RequiredError}
|
|
110
110
|
*/
|
|
111
|
-
deleteWorkspace: (
|
|
111
|
+
deleteWorkspace: (workspaceId_1, force_1, ...args_1) => __awaiter(this, [workspaceId_1, force_1, ...args_1], void 0, function* (workspaceId, force, options = {}) {
|
|
112
112
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
113
113
|
(0, common_1.assertParamExists)('deleteWorkspace', 'workspaceId', workspaceId);
|
|
114
114
|
// verify required parameter 'force' is not null or undefined
|
|
@@ -146,7 +146,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
* @param {*} [options] Override http request option.
|
|
147
147
|
* @throws {RequiredError}
|
|
148
148
|
*/
|
|
149
|
-
getWorkspace: (
|
|
149
|
+
getWorkspace: (workspaceId_1, verbose_1, ...args_1) => __awaiter(this, [workspaceId_1, verbose_1, ...args_1], void 0, function* (workspaceId, verbose, options = {}) {
|
|
150
150
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
151
151
|
(0, common_1.assertParamExists)('getWorkspace', 'workspaceId', workspaceId);
|
|
152
152
|
const localVarPath = `/workspace/{workspaceId}`
|
|
@@ -181,7 +181,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
181
181
|
* @param {*} [options] Override http request option.
|
|
182
182
|
* @throws {RequiredError}
|
|
183
183
|
*/
|
|
184
|
-
listWorkspaces: (
|
|
184
|
+
listWorkspaces: (verbose_1, ...args_1) => __awaiter(this, [verbose_1, ...args_1], void 0, function* (verbose, options = {}) {
|
|
185
185
|
const localVarPath = `/workspace`;
|
|
186
186
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
187
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -210,15 +210,15 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
210
210
|
*
|
|
211
211
|
* @summary Replace workspace labels
|
|
212
212
|
* @param {string} workspaceId
|
|
213
|
-
* @param {
|
|
213
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
214
214
|
* @param {*} [options] Override http request option.
|
|
215
215
|
* @throws {RequiredError}
|
|
216
216
|
*/
|
|
217
|
-
replaceLabels: (
|
|
217
|
+
replaceLabels: (workspaceId_1, workspaceLabels_1, ...args_1) => __awaiter(this, [workspaceId_1, workspaceLabels_1, ...args_1], void 0, function* (workspaceId, workspaceLabels, options = {}) {
|
|
218
218
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
219
219
|
(0, common_1.assertParamExists)('replaceLabels', 'workspaceId', workspaceId);
|
|
220
|
-
// verify required parameter '
|
|
221
|
-
(0, common_1.assertParamExists)('replaceLabels', '
|
|
220
|
+
// verify required parameter 'workspaceLabels' is not null or undefined
|
|
221
|
+
(0, common_1.assertParamExists)('replaceLabels', 'workspaceLabels', workspaceLabels);
|
|
222
222
|
const localVarPath = `/workspace/{workspaceId}/labels`
|
|
223
223
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
224
224
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -237,7 +237,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
237
237
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
238
238
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
239
239
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
240
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
240
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(workspaceLabels, localVarRequestOptions, configuration);
|
|
241
241
|
return {
|
|
242
242
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
243
243
|
options: localVarRequestOptions,
|
|
@@ -250,7 +250,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
250
250
|
* @param {*} [options] Override http request option.
|
|
251
251
|
* @throws {RequiredError}
|
|
252
252
|
*/
|
|
253
|
-
startWorkspace: (
|
|
253
|
+
startWorkspace: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
254
254
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
255
255
|
(0, common_1.assertParamExists)('startWorkspace', 'workspaceId', workspaceId);
|
|
256
256
|
const localVarPath = `/workspace/{workspaceId}/start`
|
|
@@ -282,7 +282,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
282
282
|
* @param {*} [options] Override http request option.
|
|
283
283
|
* @throws {RequiredError}
|
|
284
284
|
*/
|
|
285
|
-
stopWorkspace: (
|
|
285
|
+
stopWorkspace: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
286
286
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
287
287
|
(0, common_1.assertParamExists)('stopWorkspace', 'workspaceId', workspaceId);
|
|
288
288
|
const localVarPath = `/workspace/{workspaceId}/stop`
|
|
@@ -315,7 +315,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
315
315
|
* @param {*} [options] Override http request option.
|
|
316
316
|
* @throws {RequiredError}
|
|
317
317
|
*/
|
|
318
|
-
updatePublicStatus: (
|
|
318
|
+
updatePublicStatus: (workspaceId_1, isPublic_1, ...args_1) => __awaiter(this, [workspaceId_1, isPublic_1, ...args_1], void 0, function* (workspaceId, isPublic, options = {}) {
|
|
319
319
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
320
320
|
(0, common_1.assertParamExists)('updatePublicStatus', 'workspaceId', workspaceId);
|
|
321
321
|
// verify required parameter 'isPublic' is not null or undefined
|
|
@@ -372,14 +372,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
372
372
|
/**
|
|
373
373
|
*
|
|
374
374
|
* @summary Create a new workspace
|
|
375
|
-
* @param {
|
|
375
|
+
* @param {CreateWorkspace} createWorkspace
|
|
376
376
|
* @param {*} [options] Override http request option.
|
|
377
377
|
* @throws {RequiredError}
|
|
378
378
|
*/
|
|
379
|
-
createWorkspace(
|
|
379
|
+
createWorkspace(createWorkspace, options) {
|
|
380
380
|
return __awaiter(this, void 0, void 0, function* () {
|
|
381
381
|
var _a, _b, _c;
|
|
382
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWorkspace(
|
|
382
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWorkspace(createWorkspace, options);
|
|
383
383
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
384
384
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.createWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
385
385
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -439,14 +439,14 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
439
439
|
*
|
|
440
440
|
* @summary Replace workspace labels
|
|
441
441
|
* @param {string} workspaceId
|
|
442
|
-
* @param {
|
|
442
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
443
443
|
* @param {*} [options] Override http request option.
|
|
444
444
|
* @throws {RequiredError}
|
|
445
445
|
*/
|
|
446
|
-
replaceLabels(workspaceId,
|
|
446
|
+
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
447
447
|
return __awaiter(this, void 0, void 0, function* () {
|
|
448
448
|
var _a, _b, _c;
|
|
449
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceLabels(workspaceId,
|
|
449
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceLabels(workspaceId, workspaceLabels, options);
|
|
450
450
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
451
451
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.replaceLabels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
452
452
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -524,12 +524,12 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
524
524
|
/**
|
|
525
525
|
*
|
|
526
526
|
* @summary Create a new workspace
|
|
527
|
-
* @param {
|
|
527
|
+
* @param {CreateWorkspace} createWorkspace
|
|
528
528
|
* @param {*} [options] Override http request option.
|
|
529
529
|
* @throws {RequiredError}
|
|
530
530
|
*/
|
|
531
|
-
createWorkspace(
|
|
532
|
-
return localVarFp.createWorkspace(
|
|
531
|
+
createWorkspace(createWorkspace, options) {
|
|
532
|
+
return localVarFp.createWorkspace(createWorkspace, options).then((request) => request(axios, basePath));
|
|
533
533
|
},
|
|
534
534
|
/**
|
|
535
535
|
*
|
|
@@ -567,12 +567,12 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
567
567
|
*
|
|
568
568
|
* @summary Replace workspace labels
|
|
569
569
|
* @param {string} workspaceId
|
|
570
|
-
* @param {
|
|
570
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
571
571
|
* @param {*} [options] Override http request option.
|
|
572
572
|
* @throws {RequiredError}
|
|
573
573
|
*/
|
|
574
|
-
replaceLabels(workspaceId,
|
|
575
|
-
return localVarFp.replaceLabels(workspaceId,
|
|
574
|
+
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
575
|
+
return localVarFp.replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(axios, basePath));
|
|
576
576
|
},
|
|
577
577
|
/**
|
|
578
578
|
*
|
|
@@ -629,13 +629,13 @@ class WorkspaceApi extends base_1.BaseAPI {
|
|
|
629
629
|
/**
|
|
630
630
|
*
|
|
631
631
|
* @summary Create a new workspace
|
|
632
|
-
* @param {
|
|
632
|
+
* @param {CreateWorkspace} createWorkspace
|
|
633
633
|
* @param {*} [options] Override http request option.
|
|
634
634
|
* @throws {RequiredError}
|
|
635
635
|
* @memberof WorkspaceApi
|
|
636
636
|
*/
|
|
637
|
-
createWorkspace(
|
|
638
|
-
return (0, exports.WorkspaceApiFp)(this.configuration).createWorkspace(
|
|
637
|
+
createWorkspace(createWorkspace, options) {
|
|
638
|
+
return (0, exports.WorkspaceApiFp)(this.configuration).createWorkspace(createWorkspace, options).then((request) => request(this.axios, this.basePath));
|
|
639
639
|
}
|
|
640
640
|
/**
|
|
641
641
|
*
|
|
@@ -676,13 +676,13 @@ class WorkspaceApi extends base_1.BaseAPI {
|
|
|
676
676
|
*
|
|
677
677
|
* @summary Replace workspace labels
|
|
678
678
|
* @param {string} workspaceId
|
|
679
|
-
* @param {
|
|
679
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
680
680
|
* @param {*} [options] Override http request option.
|
|
681
681
|
* @throws {RequiredError}
|
|
682
682
|
* @memberof WorkspaceApi
|
|
683
683
|
*/
|
|
684
|
-
replaceLabels(workspaceId,
|
|
685
|
-
return (0, exports.WorkspaceApiFp)(this.configuration).replaceLabels(workspaceId,
|
|
684
|
+
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
685
|
+
return (0, exports.WorkspaceApiFp)(this.configuration).replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(this.axios, this.basePath));
|
|
686
686
|
}
|
|
687
687
|
/**
|
|
688
688
|
*
|
package/dist/api.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
export * from './api/api-keys-api';
|
|
13
|
-
export * from './api/
|
|
13
|
+
export * from './api/app-api';
|
|
14
14
|
export * from './api/docker-registry-api';
|
|
15
15
|
export * from './api/nodes-api';
|
|
16
16
|
export * from './api/toolbox-api';
|
package/dist/api.js
CHANGED
|
@@ -28,7 +28,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/api-keys-api"), exports);
|
|
31
|
-
__exportStar(require("./api/
|
|
31
|
+
__exportStar(require("./api/app-api"), exports);
|
|
32
32
|
__exportStar(require("./api/docker-registry-api"), exports);
|
|
33
33
|
__exportStar(require("./api/nodes-api"), exports);
|
|
34
34
|
__exportStar(require("./api/toolbox-api"), exports);
|