@daytonaio/api-client 0.17.0 → 0.18.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -1
- package/api/volumes-api.ts +584 -0
- package/api/workspace-api.ts +9 -13
- package/api.ts +1 -0
- package/dist/api/api-keys-api.js +57 -40
- package/dist/api/docker-registry-api.js +93 -70
- package/dist/api/images-api.js +69 -50
- package/dist/api/nodes-api.js +45 -30
- package/dist/api/organizations-api.js +309 -250
- package/dist/api/preview-api.js +41 -26
- package/dist/api/toolbox-api.js +441 -360
- package/dist/api/users-api.js +53 -36
- package/dist/api/volumes-api.d.ts +227 -0
- package/dist/api/volumes-api.js +465 -0
- package/dist/api/workspace-api.d.ts +8 -9
- package/dist/api/workspace-api.js +170 -137
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/common.js +34 -19
- package/dist/esm/api/api-keys-api.js +57 -40
- package/dist/esm/api/docker-registry-api.js +93 -70
- package/dist/esm/api/images-api.js +69 -50
- package/dist/esm/api/nodes-api.js +45 -30
- package/dist/esm/api/organizations-api.js +309 -250
- package/dist/esm/api/preview-api.js +41 -26
- package/dist/esm/api/toolbox-api.js +441 -360
- package/dist/esm/api/users-api.js +53 -36
- package/dist/esm/api/volumes-api.d.ts +227 -0
- package/dist/esm/api/volumes-api.js +458 -0
- package/dist/esm/api/workspace-api.d.ts +8 -9
- package/dist/esm/api/workspace-api.js +170 -137
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/common.js +34 -19
- package/dist/esm/models/api-key-list.d.ts +3 -0
- package/dist/esm/models/api-key-list.js +3 -0
- package/dist/esm/models/api-key-response.d.ts +3 -0
- package/dist/esm/models/api-key-response.js +3 -0
- package/dist/esm/models/create-api-key.d.ts +3 -0
- package/dist/esm/models/create-api-key.js +3 -0
- package/dist/esm/models/create-organization-role.d.ts +3 -0
- package/dist/esm/models/create-organization-role.js +3 -0
- package/dist/esm/models/{list-workspaces-labels-parameter.d.ts → create-volume.d.ts} +5 -7
- package/dist/esm/models/create-workspace.d.ts +7 -0
- package/dist/esm/models/index.d.ts +3 -1
- package/dist/esm/models/index.js +3 -1
- package/dist/esm/models/organization-role.d.ts +3 -0
- package/dist/esm/models/organization-role.js +3 -0
- package/dist/esm/models/update-organization-role.d.ts +3 -0
- package/dist/esm/models/update-organization-role.js +3 -0
- package/dist/esm/models/volume-dto.d.ts +70 -0
- package/dist/esm/models/volume-dto.js +22 -0
- package/dist/esm/models/volume-mount-dto.d.ts +30 -0
- package/dist/esm/models/volume-mount-dto.js +2 -0
- package/dist/esm/models/workspace-volume.d.ts +30 -0
- package/dist/esm/models/workspace-volume.js +14 -0
- package/dist/esm/models/workspace.d.ts +7 -0
- package/dist/models/api-key-list.d.ts +3 -0
- package/dist/models/api-key-list.js +3 -0
- package/dist/models/api-key-response.d.ts +3 -0
- package/dist/models/api-key-response.js +3 -0
- package/dist/models/create-api-key.d.ts +3 -0
- package/dist/models/create-api-key.js +3 -0
- package/dist/models/create-organization-role.d.ts +3 -0
- package/dist/models/create-organization-role.js +3 -0
- package/dist/models/{list-workspaces-labels-parameter.d.ts → create-volume.d.ts} +5 -7
- package/dist/models/create-workspace.d.ts +7 -0
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/dist/models/organization-role.d.ts +3 -0
- package/dist/models/organization-role.js +3 -0
- package/dist/models/update-organization-role.d.ts +3 -0
- package/dist/models/update-organization-role.js +3 -0
- package/dist/models/volume-dto.d.ts +70 -0
- package/dist/models/volume-dto.js +25 -0
- package/dist/models/volume-mount-dto.d.ts +30 -0
- package/dist/models/volume-mount-dto.js +3 -0
- package/dist/models/workspace-volume.d.ts +30 -0
- package/dist/models/workspace-volume.js +15 -0
- package/dist/models/workspace.d.ts +7 -0
- package/models/api-key-list.ts +3 -0
- package/models/api-key-response.ts +3 -0
- package/models/create-api-key.ts +3 -0
- package/models/create-organization-role.ts +3 -0
- package/models/{list-workspaces-labels-parameter.ts → create-volume.ts} +5 -5
- package/models/create-workspace.ts +10 -0
- package/models/index.ts +3 -1
- package/models/organization-role.ts +3 -0
- package/models/update-organization-role.ts +3 -0
- package/models/volume-dto.ts +75 -0
- package/models/volume-mount-dto.ts +33 -0
- package/models/workspace-volume.ts +33 -0
- package/models/workspace.ts +9 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- /package/dist/esm/models/{list-workspaces-labels-parameter.js → create-volume.js} +0 -0
- /package/dist/models/{list-workspaces-labels-parameter.js → create-volume.js} +0 -0
|
@@ -0,0 +1,458 @@
|
|
|
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
|
+
* VolumesApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const VolumesApiAxiosParamCreator = function (configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary Create a new volume
|
|
38
|
+
* @param {CreateVolume} createVolume
|
|
39
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
createVolume: (createVolume_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [createVolume_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (createVolume, xDaytonaOrganizationID, options = {}) {
|
|
44
|
+
// verify required parameter 'createVolume' is not null or undefined
|
|
45
|
+
assertParamExists('createVolume', 'createVolume', createVolume);
|
|
46
|
+
const localVarPath = `/volumes`;
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
}
|
|
53
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
54
|
+
const localVarHeaderParameter = {};
|
|
55
|
+
const localVarQueryParameter = {};
|
|
56
|
+
// authentication oauth2 required
|
|
57
|
+
// oauth required
|
|
58
|
+
yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
59
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
60
|
+
if (xDaytonaOrganizationID != null) {
|
|
61
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
62
|
+
}
|
|
63
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
66
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createVolume, localVarRequestOptions, configuration);
|
|
67
|
+
return {
|
|
68
|
+
url: toPathString(localVarUrlObj),
|
|
69
|
+
options: localVarRequestOptions,
|
|
70
|
+
};
|
|
71
|
+
}),
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @summary Delete volume
|
|
75
|
+
* @param {string} volumeId ID of the volume
|
|
76
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
deleteVolume: (volumeId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [volumeId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (volumeId, xDaytonaOrganizationID, options = {}) {
|
|
81
|
+
// verify required parameter 'volumeId' is not null or undefined
|
|
82
|
+
assertParamExists('deleteVolume', 'volumeId', volumeId);
|
|
83
|
+
const localVarPath = `/volumes/{volumeId}`.replace(`{${'volumeId'}}`, encodeURIComponent(String(volumeId)));
|
|
84
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
85
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
86
|
+
let baseOptions;
|
|
87
|
+
if (configuration) {
|
|
88
|
+
baseOptions = configuration.baseOptions;
|
|
89
|
+
}
|
|
90
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
91
|
+
const localVarHeaderParameter = {};
|
|
92
|
+
const localVarQueryParameter = {};
|
|
93
|
+
// authentication oauth2 required
|
|
94
|
+
// oauth required
|
|
95
|
+
yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
96
|
+
if (xDaytonaOrganizationID != null) {
|
|
97
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
98
|
+
}
|
|
99
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
102
|
+
return {
|
|
103
|
+
url: toPathString(localVarUrlObj),
|
|
104
|
+
options: localVarRequestOptions,
|
|
105
|
+
};
|
|
106
|
+
}),
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @summary Get volume details
|
|
110
|
+
* @param {string} volumeId ID of the volume
|
|
111
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
getVolume: (volumeId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [volumeId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (volumeId, xDaytonaOrganizationID, options = {}) {
|
|
116
|
+
// verify required parameter 'volumeId' is not null or undefined
|
|
117
|
+
assertParamExists('getVolume', 'volumeId', volumeId);
|
|
118
|
+
const localVarPath = `/volumes/{volumeId}`.replace(`{${'volumeId'}}`, encodeURIComponent(String(volumeId)));
|
|
119
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
120
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
121
|
+
let baseOptions;
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
}
|
|
125
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
126
|
+
const localVarHeaderParameter = {};
|
|
127
|
+
const localVarQueryParameter = {};
|
|
128
|
+
// authentication oauth2 required
|
|
129
|
+
// oauth required
|
|
130
|
+
yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
131
|
+
if (xDaytonaOrganizationID != null) {
|
|
132
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
133
|
+
}
|
|
134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
137
|
+
return {
|
|
138
|
+
url: toPathString(localVarUrlObj),
|
|
139
|
+
options: localVarRequestOptions,
|
|
140
|
+
};
|
|
141
|
+
}),
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary Get volume details by name
|
|
145
|
+
* @param {string} name Name of the volume
|
|
146
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
getVolumeByName: (name_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [name_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (name, xDaytonaOrganizationID, options = {}) {
|
|
151
|
+
// verify required parameter 'name' is not null or undefined
|
|
152
|
+
assertParamExists('getVolumeByName', 'name', name);
|
|
153
|
+
const localVarPath = `/volumes/by-name/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
|
|
154
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
156
|
+
let baseOptions;
|
|
157
|
+
if (configuration) {
|
|
158
|
+
baseOptions = configuration.baseOptions;
|
|
159
|
+
}
|
|
160
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
161
|
+
const localVarHeaderParameter = {};
|
|
162
|
+
const localVarQueryParameter = {};
|
|
163
|
+
// authentication oauth2 required
|
|
164
|
+
// oauth required
|
|
165
|
+
yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
166
|
+
if (xDaytonaOrganizationID != null) {
|
|
167
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
168
|
+
}
|
|
169
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
170
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
172
|
+
return {
|
|
173
|
+
url: toPathString(localVarUrlObj),
|
|
174
|
+
options: localVarRequestOptions,
|
|
175
|
+
};
|
|
176
|
+
}),
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @summary List all volumes
|
|
180
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
181
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
*/
|
|
185
|
+
listVolumes: (xDaytonaOrganizationID_1, includeDeleted_1, ...args_1) => __awaiter(this, [xDaytonaOrganizationID_1, includeDeleted_1, ...args_1], void 0, function* (xDaytonaOrganizationID, includeDeleted, options = {}) {
|
|
186
|
+
const localVarPath = `/volumes`;
|
|
187
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
188
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
189
|
+
let baseOptions;
|
|
190
|
+
if (configuration) {
|
|
191
|
+
baseOptions = configuration.baseOptions;
|
|
192
|
+
}
|
|
193
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
194
|
+
const localVarHeaderParameter = {};
|
|
195
|
+
const localVarQueryParameter = {};
|
|
196
|
+
// authentication oauth2 required
|
|
197
|
+
// oauth required
|
|
198
|
+
yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
199
|
+
if (includeDeleted !== undefined) {
|
|
200
|
+
localVarQueryParameter['includeDeleted'] = includeDeleted;
|
|
201
|
+
}
|
|
202
|
+
if (xDaytonaOrganizationID != null) {
|
|
203
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
204
|
+
}
|
|
205
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
206
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
207
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
208
|
+
return {
|
|
209
|
+
url: toPathString(localVarUrlObj),
|
|
210
|
+
options: localVarRequestOptions,
|
|
211
|
+
};
|
|
212
|
+
}),
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* VolumesApi - functional programming interface
|
|
217
|
+
* @export
|
|
218
|
+
*/
|
|
219
|
+
export const VolumesApiFp = function (configuration) {
|
|
220
|
+
const localVarAxiosParamCreator = VolumesApiAxiosParamCreator(configuration);
|
|
221
|
+
return {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @summary Create a new volume
|
|
225
|
+
* @param {CreateVolume} createVolume
|
|
226
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
createVolume(createVolume, xDaytonaOrganizationID, options) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
var _a, _b, _c;
|
|
233
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createVolume(createVolume, xDaytonaOrganizationID, options);
|
|
234
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
235
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VolumesApi.createVolume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
236
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
237
|
+
});
|
|
238
|
+
},
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @summary Delete volume
|
|
242
|
+
* @param {string} volumeId ID of the volume
|
|
243
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
deleteVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
249
|
+
var _a, _b, _c;
|
|
250
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteVolume(volumeId, xDaytonaOrganizationID, options);
|
|
251
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
252
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VolumesApi.deleteVolume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
253
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
254
|
+
});
|
|
255
|
+
},
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @summary Get volume details
|
|
259
|
+
* @param {string} volumeId ID of the volume
|
|
260
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
*/
|
|
264
|
+
getVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
var _a, _b, _c;
|
|
267
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVolume(volumeId, xDaytonaOrganizationID, options);
|
|
268
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
269
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VolumesApi.getVolume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
270
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
271
|
+
});
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @summary Get volume details by name
|
|
276
|
+
* @param {string} name Name of the volume
|
|
277
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
*/
|
|
281
|
+
getVolumeByName(name, xDaytonaOrganizationID, options) {
|
|
282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
283
|
+
var _a, _b, _c;
|
|
284
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVolumeByName(name, xDaytonaOrganizationID, options);
|
|
285
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
286
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VolumesApi.getVolumeByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
287
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
288
|
+
});
|
|
289
|
+
},
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* @summary List all volumes
|
|
293
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
294
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
*/
|
|
298
|
+
listVolumes(xDaytonaOrganizationID, includeDeleted, options) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
var _a, _b, _c;
|
|
301
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listVolumes(xDaytonaOrganizationID, includeDeleted, options);
|
|
302
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
303
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VolumesApi.listVolumes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
304
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
305
|
+
});
|
|
306
|
+
},
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* VolumesApi - factory interface
|
|
311
|
+
* @export
|
|
312
|
+
*/
|
|
313
|
+
export const VolumesApiFactory = function (configuration, basePath, axios) {
|
|
314
|
+
const localVarFp = VolumesApiFp(configuration);
|
|
315
|
+
return {
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @summary Create a new volume
|
|
319
|
+
* @param {CreateVolume} createVolume
|
|
320
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
createVolume(createVolume, xDaytonaOrganizationID, options) {
|
|
325
|
+
return localVarFp
|
|
326
|
+
.createVolume(createVolume, xDaytonaOrganizationID, options)
|
|
327
|
+
.then((request) => request(axios, basePath));
|
|
328
|
+
},
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @summary Delete volume
|
|
332
|
+
* @param {string} volumeId ID of the volume
|
|
333
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
deleteVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
338
|
+
return localVarFp
|
|
339
|
+
.deleteVolume(volumeId, xDaytonaOrganizationID, options)
|
|
340
|
+
.then((request) => request(axios, basePath));
|
|
341
|
+
},
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @summary Get volume details
|
|
345
|
+
* @param {string} volumeId ID of the volume
|
|
346
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
347
|
+
* @param {*} [options] Override http request option.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
*/
|
|
350
|
+
getVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
351
|
+
return localVarFp.getVolume(volumeId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
352
|
+
},
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @summary Get volume details by name
|
|
356
|
+
* @param {string} name Name of the volume
|
|
357
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
358
|
+
* @param {*} [options] Override http request option.
|
|
359
|
+
* @throws {RequiredError}
|
|
360
|
+
*/
|
|
361
|
+
getVolumeByName(name, xDaytonaOrganizationID, options) {
|
|
362
|
+
return localVarFp
|
|
363
|
+
.getVolumeByName(name, xDaytonaOrganizationID, options)
|
|
364
|
+
.then((request) => request(axios, basePath));
|
|
365
|
+
},
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @summary List all volumes
|
|
369
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
370
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
listVolumes(xDaytonaOrganizationID, includeDeleted, options) {
|
|
375
|
+
return localVarFp
|
|
376
|
+
.listVolumes(xDaytonaOrganizationID, includeDeleted, options)
|
|
377
|
+
.then((request) => request(axios, basePath));
|
|
378
|
+
},
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* VolumesApi - object-oriented interface
|
|
383
|
+
* @export
|
|
384
|
+
* @class VolumesApi
|
|
385
|
+
* @extends {BaseAPI}
|
|
386
|
+
*/
|
|
387
|
+
export class VolumesApi extends BaseAPI {
|
|
388
|
+
/**
|
|
389
|
+
*
|
|
390
|
+
* @summary Create a new volume
|
|
391
|
+
* @param {CreateVolume} createVolume
|
|
392
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
* @memberof VolumesApi
|
|
396
|
+
*/
|
|
397
|
+
createVolume(createVolume, xDaytonaOrganizationID, options) {
|
|
398
|
+
return VolumesApiFp(this.configuration)
|
|
399
|
+
.createVolume(createVolume, xDaytonaOrganizationID, options)
|
|
400
|
+
.then((request) => request(this.axios, this.basePath));
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @summary Delete volume
|
|
405
|
+
* @param {string} volumeId ID of the volume
|
|
406
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
407
|
+
* @param {*} [options] Override http request option.
|
|
408
|
+
* @throws {RequiredError}
|
|
409
|
+
* @memberof VolumesApi
|
|
410
|
+
*/
|
|
411
|
+
deleteVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
412
|
+
return VolumesApiFp(this.configuration)
|
|
413
|
+
.deleteVolume(volumeId, xDaytonaOrganizationID, options)
|
|
414
|
+
.then((request) => request(this.axios, this.basePath));
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @summary Get volume details
|
|
419
|
+
* @param {string} volumeId ID of the volume
|
|
420
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
421
|
+
* @param {*} [options] Override http request option.
|
|
422
|
+
* @throws {RequiredError}
|
|
423
|
+
* @memberof VolumesApi
|
|
424
|
+
*/
|
|
425
|
+
getVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
426
|
+
return VolumesApiFp(this.configuration)
|
|
427
|
+
.getVolume(volumeId, xDaytonaOrganizationID, options)
|
|
428
|
+
.then((request) => request(this.axios, this.basePath));
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @summary Get volume details by name
|
|
433
|
+
* @param {string} name Name of the volume
|
|
434
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
* @memberof VolumesApi
|
|
438
|
+
*/
|
|
439
|
+
getVolumeByName(name, xDaytonaOrganizationID, options) {
|
|
440
|
+
return VolumesApiFp(this.configuration)
|
|
441
|
+
.getVolumeByName(name, xDaytonaOrganizationID, options)
|
|
442
|
+
.then((request) => request(this.axios, this.basePath));
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @summary List all volumes
|
|
447
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
448
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
* @memberof VolumesApi
|
|
452
|
+
*/
|
|
453
|
+
listVolumes(xDaytonaOrganizationID, includeDeleted, options) {
|
|
454
|
+
return VolumesApiFp(this.configuration)
|
|
455
|
+
.listVolumes(xDaytonaOrganizationID, includeDeleted, options)
|
|
456
|
+
.then((request) => request(this.axios, this.basePath));
|
|
457
|
+
}
|
|
458
|
+
}
|
|
@@ -13,7 +13,6 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { CreateWorkspace } from '../models';
|
|
16
|
-
import type { ListWorkspacesLabelsParameter } from '../models';
|
|
17
16
|
import type { PortPreviewUrl } from '../models';
|
|
18
17
|
import type { Workspace } from '../models';
|
|
19
18
|
import type { WorkspaceLabels } from '../models';
|
|
@@ -84,11 +83,11 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
84
83
|
* @summary List all workspaces
|
|
85
84
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
86
85
|
* @param {boolean} [verbose] Include verbose output
|
|
87
|
-
* @param {
|
|
86
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
88
87
|
* @param {*} [options] Override http request option.
|
|
89
88
|
* @throws {RequiredError}
|
|
90
89
|
*/
|
|
91
|
-
listWorkspaces: (xDaytonaOrganizationID?: string, verbose?: boolean, labels?:
|
|
90
|
+
listWorkspaces: (xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
92
91
|
/**
|
|
93
92
|
*
|
|
94
93
|
* @summary Replace workspace labels
|
|
@@ -215,11 +214,11 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
215
214
|
* @summary List all workspaces
|
|
216
215
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
217
216
|
* @param {boolean} [verbose] Include verbose output
|
|
218
|
-
* @param {
|
|
217
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
219
218
|
* @param {*} [options] Override http request option.
|
|
220
219
|
* @throws {RequiredError}
|
|
221
220
|
*/
|
|
222
|
-
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, labels?:
|
|
221
|
+
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Workspace>>>;
|
|
223
222
|
/**
|
|
224
223
|
*
|
|
225
224
|
* @summary Replace workspace labels
|
|
@@ -346,11 +345,11 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
346
345
|
* @summary List all workspaces
|
|
347
346
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
348
347
|
* @param {boolean} [verbose] Include verbose output
|
|
349
|
-
* @param {
|
|
348
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
350
349
|
* @param {*} [options] Override http request option.
|
|
351
350
|
* @throws {RequiredError}
|
|
352
351
|
*/
|
|
353
|
-
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, labels?:
|
|
352
|
+
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Workspace>>;
|
|
354
353
|
/**
|
|
355
354
|
*
|
|
356
355
|
* @summary Replace workspace labels
|
|
@@ -485,12 +484,12 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
485
484
|
* @summary List all workspaces
|
|
486
485
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
487
486
|
* @param {boolean} [verbose] Include verbose output
|
|
488
|
-
* @param {
|
|
487
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
489
488
|
* @param {*} [options] Override http request option.
|
|
490
489
|
* @throws {RequiredError}
|
|
491
490
|
* @memberof WorkspaceApi
|
|
492
491
|
*/
|
|
493
|
-
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, labels?:
|
|
492
|
+
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace[], any>>;
|
|
494
493
|
/**
|
|
495
494
|
*
|
|
496
495
|
* @summary Replace workspace labels
|