@daytonaio/api-client 0.20.1 → 0.21.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/package.json +1 -1
- package/src/api/docker-registry-api.d.ts +4 -4
- package/src/api/docker-registry-api.js +4 -4
- package/src/api/preview-api.d.ts +40 -40
- package/src/api/preview-api.js +65 -65
- package/src/api/preview-api.js.map +1 -1
- package/src/api/runners-api.d.ts +136 -0
- package/src/api/{nodes-api.js → runners-api.js} +70 -70
- package/src/api/runners-api.js.map +1 -0
- package/src/api/sandbox-api.d.ts +598 -0
- package/src/api/sandbox-api.js +1212 -0
- package/src/api/sandbox-api.js.map +1 -0
- package/src/api/snapshots-api.d.ts +320 -0
- package/src/api/{images-api.js → snapshots-api.js} +162 -241
- package/src/api/snapshots-api.js.map +1 -0
- package/src/api/toolbox-api.d.ts +412 -412
- package/src/api/toolbox-api.js +676 -676
- package/src/api/toolbox-api.js.map +1 -1
- package/src/api/users-api.d.ts +67 -0
- package/src/api/users-api.js +138 -0
- package/src/api/users-api.js.map +1 -1
- package/src/api/workspace-api.d.ts +174 -118
- package/src/api/workspace-api.js +251 -194
- package/src/api/workspace-api.js.map +1 -1
- package/src/api.d.ts +3 -2
- package/src/api.js +3 -2
- package/src/api.js.map +1 -1
- package/src/models/api-key-list.d.ts +2 -2
- package/src/models/api-key-list.js +2 -2
- package/src/models/api-key-list.js.map +1 -1
- package/src/models/api-key-response.d.ts +2 -2
- package/src/models/api-key-response.js +2 -2
- package/src/models/api-key-response.js.map +1 -1
- package/src/models/build-snapshot.d.ts +55 -0
- package/src/models/{workspace-info.js → build-snapshot.js} +1 -1
- package/src/models/build-snapshot.js.map +1 -0
- package/src/models/create-api-key.d.ts +2 -2
- package/src/models/create-api-key.js +2 -2
- package/src/models/create-api-key.js.map +1 -1
- package/src/models/{build-image.d.ts → create-linked-account.d.ts} +9 -10
- package/src/models/{paginated-images-dto.js → create-linked-account.js} +1 -1
- package/src/models/create-linked-account.js.map +1 -0
- package/src/models/create-organization-quota.d.ts +5 -5
- package/src/models/create-organization-role.d.ts +2 -2
- package/src/models/create-organization-role.js +2 -2
- package/src/models/create-organization-role.js.map +1 -1
- package/src/models/{create-node.d.ts → create-runner.d.ts} +19 -19
- package/src/models/{create-node.js → create-runner.js} +4 -4
- package/src/models/create-runner.js.map +1 -0
- package/src/models/create-sandbox.d.ts +126 -0
- package/src/models/create-sandbox.js +27 -0
- package/src/models/create-sandbox.js.map +1 -0
- package/src/models/create-snapshot.d.ts +73 -0
- package/src/models/create-snapshot.js +16 -0
- package/src/models/create-snapshot.js.map +1 -0
- package/src/models/create-workspace.d.ts +4 -4
- package/src/models/index.d.ts +13 -12
- package/src/models/index.js +13 -12
- package/src/models/index.js.map +1 -1
- package/src/models/organization-role.d.ts +2 -2
- package/src/models/organization-role.js +2 -2
- package/src/models/organization-role.js.map +1 -1
- package/src/models/{paginated-images-dto.d.ts → paginated-snapshots-dto.d.ts} +9 -9
- package/src/models/paginated-snapshots-dto.js +16 -0
- package/src/models/paginated-snapshots-dto.js.map +1 -0
- package/src/models/{workspace-info.d.ts → sandbox-info.d.ts} +6 -6
- package/src/models/{image-dto.js → sandbox-info.js} +1 -1
- package/src/models/sandbox-info.js.map +1 -0
- package/src/models/{workspace-labels.d.ts → sandbox-labels.d.ts} +3 -3
- package/src/models/{create-image.js → sandbox-labels.js} +1 -1
- package/src/models/sandbox-labels.js.map +1 -0
- package/src/models/{workspace-state.d.ts → sandbox-state.d.ts} +5 -5
- package/src/models/{workspace-state.js → sandbox-state.js} +6 -6
- package/src/models/sandbox-state.js.map +1 -0
- package/src/models/{workspace-volume.d.ts → sandbox-volume.d.ts} +4 -4
- package/src/models/sandbox-volume.js +16 -0
- package/src/models/sandbox-volume.js.map +1 -0
- package/src/models/sandbox.d.ts +160 -0
- package/src/models/{workspace.js → sandbox.js} +3 -3
- package/src/models/sandbox.js.map +1 -0
- package/src/models/{set-image-general-status.d.ts → set-snapshot-general-status-dto.d.ts} +4 -4
- package/src/models/set-snapshot-general-status-dto.js +16 -0
- package/src/models/set-snapshot-general-status-dto.js.map +1 -0
- package/src/models/{image-dto.d.ts → snapshot-dto.d.ts} +47 -17
- package/src/models/{build-image.js → snapshot-dto.js} +1 -1
- package/src/models/snapshot-dto.js.map +1 -0
- package/src/models/{image-state.d.ts → snapshot-state.d.ts} +3 -3
- package/src/models/{image-state.js → snapshot-state.js} +4 -4
- package/src/models/snapshot-state.js.map +1 -0
- package/src/models/toggle-state.d.ts +1 -1
- package/src/models/update-organization-quota.d.ts +5 -5
- package/src/models/update-organization-role.d.ts +2 -2
- package/src/models/update-organization-role.js +2 -2
- package/src/models/update-organization-role.js.map +1 -1
- package/src/models/volume-dto.d.ts +1 -1
- package/src/api/images-api.d.ts +0 -358
- package/src/api/images-api.js.map +0 -1
- package/src/api/nodes-api.d.ts +0 -136
- package/src/api/nodes-api.js.map +0 -1
- package/src/models/build-image.js.map +0 -1
- package/src/models/create-image.d.ts +0 -36
- package/src/models/create-image.js.map +0 -1
- package/src/models/create-node.js.map +0 -1
- package/src/models/image-dto.js.map +0 -1
- package/src/models/image-state.js.map +0 -1
- package/src/models/paginated-images-dto.js.map +0 -1
- package/src/models/set-image-general-status.js +0 -16
- package/src/models/set-image-general-status.js.map +0 -1
- package/src/models/workspace-info.js.map +0 -1
- package/src/models/workspace-labels.js +0 -16
- package/src/models/workspace-labels.js.map +0 -1
- package/src/models/workspace-state.js.map +0 -1
- package/src/models/workspace-volume.js +0 -16
- package/src/models/workspace-volume.js.map +0 -1
- package/src/models/workspace.d.ts +0 -160
- package/src/models/workspace.js.map +0 -1
package/src/api/workspace-api.js
CHANGED
|
@@ -28,15 +28,16 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
28
28
|
return {
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @summary Archive workspace
|
|
31
|
+
* @summary [DEPRECATED] Archive workspace
|
|
32
32
|
* @param {string} workspaceId
|
|
33
33
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
35
|
+
* @deprecated
|
|
35
36
|
* @throws {RequiredError}
|
|
36
37
|
*/
|
|
37
|
-
|
|
38
|
+
archiveWorkspaceDeprecated: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
|
|
38
39
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
39
|
-
(0, common_1.assertParamExists)('
|
|
40
|
+
(0, common_1.assertParamExists)('archiveWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
40
41
|
const localVarPath = `/workspace/{workspaceId}/archive`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
41
42
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
43
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -64,16 +65,17 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
64
65
|
},
|
|
65
66
|
/**
|
|
66
67
|
*
|
|
67
|
-
* @summary Create workspace
|
|
68
|
+
* @summary [DEPRECATED] Create workspace backup
|
|
68
69
|
* @param {string} workspaceId ID of the workspace
|
|
69
70
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
70
71
|
* @param {*} [options] Override http request option.
|
|
72
|
+
* @deprecated
|
|
71
73
|
* @throws {RequiredError}
|
|
72
74
|
*/
|
|
73
|
-
|
|
75
|
+
createBackupWorkspaceDeprecated: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
|
|
74
76
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
75
|
-
(0, common_1.assertParamExists)('
|
|
76
|
-
const localVarPath = `/workspace/{workspaceId}/
|
|
77
|
+
(0, common_1.assertParamExists)('createBackupWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
78
|
+
const localVarPath = `/workspace/{workspaceId}/backup`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
77
79
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
78
80
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
79
81
|
let baseOptions;
|
|
@@ -100,15 +102,16 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
100
102
|
},
|
|
101
103
|
/**
|
|
102
104
|
*
|
|
103
|
-
* @summary Create a new workspace
|
|
105
|
+
* @summary [DEPRECATED] Create a new workspace
|
|
104
106
|
* @param {CreateWorkspace} createWorkspace
|
|
105
107
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
106
108
|
* @param {*} [options] Override http request option.
|
|
109
|
+
* @deprecated
|
|
107
110
|
* @throws {RequiredError}
|
|
108
111
|
*/
|
|
109
|
-
|
|
112
|
+
createWorkspaceDeprecated: async (createWorkspace, xDaytonaOrganizationID, options = {}) => {
|
|
110
113
|
// verify required parameter 'createWorkspace' is not null or undefined
|
|
111
|
-
(0, common_1.assertParamExists)('
|
|
114
|
+
(0, common_1.assertParamExists)('createWorkspaceDeprecated', 'createWorkspace', createWorkspace);
|
|
112
115
|
const localVarPath = `/workspace`;
|
|
113
116
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
117
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -138,18 +141,19 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
138
141
|
},
|
|
139
142
|
/**
|
|
140
143
|
*
|
|
141
|
-
* @summary Delete workspace
|
|
144
|
+
* @summary [DEPRECATED] Delete workspace
|
|
142
145
|
* @param {string} workspaceId ID of the workspace
|
|
143
146
|
* @param {boolean} force
|
|
144
147
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
145
148
|
* @param {*} [options] Override http request option.
|
|
149
|
+
* @deprecated
|
|
146
150
|
* @throws {RequiredError}
|
|
147
151
|
*/
|
|
148
|
-
|
|
152
|
+
deleteWorkspaceDeprecated: async (workspaceId, force, xDaytonaOrganizationID, options = {}) => {
|
|
149
153
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
150
|
-
(0, common_1.assertParamExists)('
|
|
154
|
+
(0, common_1.assertParamExists)('deleteWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
151
155
|
// verify required parameter 'force' is not null or undefined
|
|
152
|
-
(0, common_1.assertParamExists)('
|
|
156
|
+
(0, common_1.assertParamExists)('deleteWorkspaceDeprecated', 'force', force);
|
|
153
157
|
const localVarPath = `/workspace/{workspaceId}`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
154
158
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
159
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -180,16 +184,17 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
180
184
|
},
|
|
181
185
|
/**
|
|
182
186
|
*
|
|
183
|
-
* @summary Get build logs
|
|
187
|
+
* @summary [DEPRECATED] Get build logs
|
|
184
188
|
* @param {string} workspaceId ID of the workspace
|
|
185
189
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
186
190
|
* @param {boolean} [follow] Whether to follow the logs stream
|
|
187
191
|
* @param {*} [options] Override http request option.
|
|
192
|
+
* @deprecated
|
|
188
193
|
* @throws {RequiredError}
|
|
189
194
|
*/
|
|
190
|
-
|
|
195
|
+
getBuildLogsWorkspaceDeprecated: async (workspaceId, xDaytonaOrganizationID, follow, options = {}) => {
|
|
191
196
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
192
|
-
(0, common_1.assertParamExists)('
|
|
197
|
+
(0, common_1.assertParamExists)('getBuildLogsWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
193
198
|
const localVarPath = `/workspace/{workspaceId}/build-logs`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
194
199
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
195
200
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -220,18 +225,19 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
220
225
|
},
|
|
221
226
|
/**
|
|
222
227
|
*
|
|
223
|
-
* @summary Get preview URL for a workspace port
|
|
228
|
+
* @summary [DEPRECATED] Get preview URL for a workspace port
|
|
224
229
|
* @param {string} workspaceId ID of the workspace
|
|
225
230
|
* @param {number} port Port number to get preview URL for
|
|
226
231
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
227
232
|
* @param {*} [options] Override http request option.
|
|
233
|
+
* @deprecated
|
|
228
234
|
* @throws {RequiredError}
|
|
229
235
|
*/
|
|
230
|
-
|
|
236
|
+
getPortPreviewUrlWorkspaceDeprecated: async (workspaceId, port, xDaytonaOrganizationID, options = {}) => {
|
|
231
237
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
232
|
-
(0, common_1.assertParamExists)('
|
|
238
|
+
(0, common_1.assertParamExists)('getPortPreviewUrlWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
233
239
|
// verify required parameter 'port' is not null or undefined
|
|
234
|
-
(0, common_1.assertParamExists)('
|
|
240
|
+
(0, common_1.assertParamExists)('getPortPreviewUrlWorkspaceDeprecated', 'port', port);
|
|
235
241
|
const localVarPath = `/workspace/{workspaceId}/ports/{port}/preview-url`
|
|
236
242
|
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
237
243
|
.replace(`{${'port'}}`, encodeURIComponent(String(port)));
|
|
@@ -261,16 +267,17 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
261
267
|
},
|
|
262
268
|
/**
|
|
263
269
|
*
|
|
264
|
-
* @summary Get workspace details
|
|
270
|
+
* @summary [DEPRECATED] Get workspace details
|
|
265
271
|
* @param {string} workspaceId ID of the workspace
|
|
266
272
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
267
273
|
* @param {boolean} [verbose] Include verbose output
|
|
268
274
|
* @param {*} [options] Override http request option.
|
|
275
|
+
* @deprecated
|
|
269
276
|
* @throws {RequiredError}
|
|
270
277
|
*/
|
|
271
|
-
|
|
278
|
+
getWorkspaceDeprecated: async (workspaceId, xDaytonaOrganizationID, verbose, options = {}) => {
|
|
272
279
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
273
|
-
(0, common_1.assertParamExists)('
|
|
280
|
+
(0, common_1.assertParamExists)('getWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
274
281
|
const localVarPath = `/workspace/{workspaceId}`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
275
282
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
276
283
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -301,14 +308,15 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
301
308
|
},
|
|
302
309
|
/**
|
|
303
310
|
*
|
|
304
|
-
* @summary List all workspaces
|
|
311
|
+
* @summary [DEPRECATED] List all workspaces
|
|
305
312
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
306
313
|
* @param {boolean} [verbose] Include verbose output
|
|
307
314
|
* @param {string} [labels] JSON encoded labels to filter by
|
|
308
315
|
* @param {*} [options] Override http request option.
|
|
316
|
+
* @deprecated
|
|
309
317
|
* @throws {RequiredError}
|
|
310
318
|
*/
|
|
311
|
-
|
|
319
|
+
listWorkspacesDeprecated: async (xDaytonaOrganizationID, verbose, labels, options = {}) => {
|
|
312
320
|
const localVarPath = `/workspace`;
|
|
313
321
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
322
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -342,18 +350,19 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
342
350
|
},
|
|
343
351
|
/**
|
|
344
352
|
*
|
|
345
|
-
* @summary Replace workspace labels
|
|
353
|
+
* @summary [DEPRECATED] Replace workspace labels
|
|
346
354
|
* @param {string} workspaceId ID of the workspace
|
|
347
|
-
* @param {
|
|
355
|
+
* @param {SandboxLabels} sandboxLabels
|
|
348
356
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
349
357
|
* @param {*} [options] Override http request option.
|
|
358
|
+
* @deprecated
|
|
350
359
|
* @throws {RequiredError}
|
|
351
360
|
*/
|
|
352
|
-
|
|
361
|
+
replaceLabelsWorkspaceDeprecated: async (workspaceId, sandboxLabels, xDaytonaOrganizationID, options = {}) => {
|
|
353
362
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
354
|
-
(0, common_1.assertParamExists)('
|
|
355
|
-
// verify required parameter '
|
|
356
|
-
(0, common_1.assertParamExists)('
|
|
363
|
+
(0, common_1.assertParamExists)('replaceLabelsWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
364
|
+
// verify required parameter 'sandboxLabels' is not null or undefined
|
|
365
|
+
(0, common_1.assertParamExists)('replaceLabelsWorkspaceDeprecated', 'sandboxLabels', sandboxLabels);
|
|
357
366
|
const localVarPath = `/workspace/{workspaceId}/labels`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
358
367
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
359
368
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -375,7 +384,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
375
384
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
376
385
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
377
386
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
378
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
387
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sandboxLabels, localVarRequestOptions, configuration);
|
|
379
388
|
return {
|
|
380
389
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
381
390
|
options: localVarRequestOptions,
|
|
@@ -383,18 +392,19 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
383
392
|
},
|
|
384
393
|
/**
|
|
385
394
|
*
|
|
386
|
-
* @summary Set workspace auto-archive interval
|
|
395
|
+
* @summary [DEPRECATED] Set workspace auto-archive interval
|
|
387
396
|
* @param {string} workspaceId ID of the workspace
|
|
388
397
|
* @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
|
|
389
398
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
390
399
|
* @param {*} [options] Override http request option.
|
|
400
|
+
* @deprecated
|
|
391
401
|
* @throws {RequiredError}
|
|
392
402
|
*/
|
|
393
|
-
|
|
403
|
+
setAutoArchiveIntervalWorkspaceDeprecated: async (workspaceId, interval, xDaytonaOrganizationID, options = {}) => {
|
|
394
404
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
395
|
-
(0, common_1.assertParamExists)('
|
|
405
|
+
(0, common_1.assertParamExists)('setAutoArchiveIntervalWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
396
406
|
// verify required parameter 'interval' is not null or undefined
|
|
397
|
-
(0, common_1.assertParamExists)('
|
|
407
|
+
(0, common_1.assertParamExists)('setAutoArchiveIntervalWorkspaceDeprecated', 'interval', interval);
|
|
398
408
|
const localVarPath = `/workspace/{workspaceId}/autoarchive/{interval}`
|
|
399
409
|
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
400
410
|
.replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
|
|
@@ -424,18 +434,19 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
424
434
|
},
|
|
425
435
|
/**
|
|
426
436
|
*
|
|
427
|
-
* @summary Set workspace auto-stop interval
|
|
437
|
+
* @summary [DEPRECATED] Set workspace auto-stop interval
|
|
428
438
|
* @param {string} workspaceId ID of the workspace
|
|
429
439
|
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
430
440
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
431
441
|
* @param {*} [options] Override http request option.
|
|
442
|
+
* @deprecated
|
|
432
443
|
* @throws {RequiredError}
|
|
433
444
|
*/
|
|
434
|
-
|
|
445
|
+
setAutostopIntervalWorkspaceDeprecated: async (workspaceId, interval, xDaytonaOrganizationID, options = {}) => {
|
|
435
446
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
436
|
-
(0, common_1.assertParamExists)('
|
|
447
|
+
(0, common_1.assertParamExists)('setAutostopIntervalWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
437
448
|
// verify required parameter 'interval' is not null or undefined
|
|
438
|
-
(0, common_1.assertParamExists)('
|
|
449
|
+
(0, common_1.assertParamExists)('setAutostopIntervalWorkspaceDeprecated', 'interval', interval);
|
|
439
450
|
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
440
451
|
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
441
452
|
.replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
|
|
@@ -465,15 +476,16 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
465
476
|
},
|
|
466
477
|
/**
|
|
467
478
|
*
|
|
468
|
-
* @summary Start workspace
|
|
479
|
+
* @summary [DEPRECATED] Start workspace
|
|
469
480
|
* @param {string} workspaceId ID of the workspace
|
|
470
481
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
471
482
|
* @param {*} [options] Override http request option.
|
|
483
|
+
* @deprecated
|
|
472
484
|
* @throws {RequiredError}
|
|
473
485
|
*/
|
|
474
|
-
|
|
486
|
+
startWorkspaceDeprecated: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
|
|
475
487
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
476
|
-
(0, common_1.assertParamExists)('
|
|
488
|
+
(0, common_1.assertParamExists)('startWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
477
489
|
const localVarPath = `/workspace/{workspaceId}/start`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
478
490
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
479
491
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -501,15 +513,16 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
501
513
|
},
|
|
502
514
|
/**
|
|
503
515
|
*
|
|
504
|
-
* @summary Stop workspace
|
|
516
|
+
* @summary [DEPRECATED] Stop workspace
|
|
505
517
|
* @param {string} workspaceId ID of the workspace
|
|
506
518
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
507
519
|
* @param {*} [options] Override http request option.
|
|
520
|
+
* @deprecated
|
|
508
521
|
* @throws {RequiredError}
|
|
509
522
|
*/
|
|
510
|
-
|
|
523
|
+
stopWorkspaceDeprecated: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
|
|
511
524
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
512
|
-
(0, common_1.assertParamExists)('
|
|
525
|
+
(0, common_1.assertParamExists)('stopWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
513
526
|
const localVarPath = `/workspace/{workspaceId}/stop`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
514
527
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
515
528
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -537,18 +550,19 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
537
550
|
},
|
|
538
551
|
/**
|
|
539
552
|
*
|
|
540
|
-
* @summary Update public status
|
|
553
|
+
* @summary [DEPRECATED] Update public status
|
|
541
554
|
* @param {string} workspaceId ID of the workspace
|
|
542
555
|
* @param {boolean} isPublic Public status to set
|
|
543
556
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
544
557
|
* @param {*} [options] Override http request option.
|
|
558
|
+
* @deprecated
|
|
545
559
|
* @throws {RequiredError}
|
|
546
560
|
*/
|
|
547
|
-
|
|
561
|
+
updatePublicStatusWorkspaceDeprecated: async (workspaceId, isPublic, xDaytonaOrganizationID, options = {}) => {
|
|
548
562
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
549
|
-
(0, common_1.assertParamExists)('
|
|
563
|
+
(0, common_1.assertParamExists)('updatePublicStatusWorkspaceDeprecated', 'workspaceId', workspaceId);
|
|
550
564
|
// verify required parameter 'isPublic' is not null or undefined
|
|
551
|
-
(0, common_1.assertParamExists)('
|
|
565
|
+
(0, common_1.assertParamExists)('updatePublicStatusWorkspaceDeprecated', 'isPublic', isPublic);
|
|
552
566
|
const localVarPath = `/workspace/{workspaceId}/public/{isPublic}`
|
|
553
567
|
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
554
568
|
.replace(`{${'isPublic'}}`, encodeURIComponent(String(isPublic)));
|
|
@@ -588,207 +602,222 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
588
602
|
return {
|
|
589
603
|
/**
|
|
590
604
|
*
|
|
591
|
-
* @summary Archive workspace
|
|
605
|
+
* @summary [DEPRECATED] Archive workspace
|
|
592
606
|
* @param {string} workspaceId
|
|
593
607
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
594
608
|
* @param {*} [options] Override http request option.
|
|
609
|
+
* @deprecated
|
|
595
610
|
* @throws {RequiredError}
|
|
596
611
|
*/
|
|
597
|
-
async
|
|
598
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
612
|
+
async archiveWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options);
|
|
599
614
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
600
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
615
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.archiveWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
601
616
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
602
617
|
},
|
|
603
618
|
/**
|
|
604
619
|
*
|
|
605
|
-
* @summary Create workspace
|
|
620
|
+
* @summary [DEPRECATED] Create workspace backup
|
|
606
621
|
* @param {string} workspaceId ID of the workspace
|
|
607
622
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
608
623
|
* @param {*} [options] Override http request option.
|
|
624
|
+
* @deprecated
|
|
609
625
|
* @throws {RequiredError}
|
|
610
626
|
*/
|
|
611
|
-
async
|
|
612
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
627
|
+
async createBackupWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBackupWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options);
|
|
613
629
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
614
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
630
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.createBackupWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
615
631
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
616
632
|
},
|
|
617
633
|
/**
|
|
618
634
|
*
|
|
619
|
-
* @summary Create a new workspace
|
|
635
|
+
* @summary [DEPRECATED] Create a new workspace
|
|
620
636
|
* @param {CreateWorkspace} createWorkspace
|
|
621
637
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
622
638
|
* @param {*} [options] Override http request option.
|
|
639
|
+
* @deprecated
|
|
623
640
|
* @throws {RequiredError}
|
|
624
641
|
*/
|
|
625
|
-
async
|
|
626
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
642
|
+
async createWorkspaceDeprecated(createWorkspace, xDaytonaOrganizationID, options) {
|
|
643
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkspaceDeprecated(createWorkspace, xDaytonaOrganizationID, options);
|
|
627
644
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
628
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
645
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.createWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
629
646
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
630
647
|
},
|
|
631
648
|
/**
|
|
632
649
|
*
|
|
633
|
-
* @summary Delete workspace
|
|
650
|
+
* @summary [DEPRECATED] Delete workspace
|
|
634
651
|
* @param {string} workspaceId ID of the workspace
|
|
635
652
|
* @param {boolean} force
|
|
636
653
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
637
654
|
* @param {*} [options] Override http request option.
|
|
655
|
+
* @deprecated
|
|
638
656
|
* @throws {RequiredError}
|
|
639
657
|
*/
|
|
640
|
-
async
|
|
641
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
658
|
+
async deleteWorkspaceDeprecated(workspaceId, force, xDaytonaOrganizationID, options) {
|
|
659
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWorkspaceDeprecated(workspaceId, force, xDaytonaOrganizationID, options);
|
|
642
660
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
643
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
661
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.deleteWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
644
662
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
645
663
|
},
|
|
646
664
|
/**
|
|
647
665
|
*
|
|
648
|
-
* @summary Get build logs
|
|
666
|
+
* @summary [DEPRECATED] Get build logs
|
|
649
667
|
* @param {string} workspaceId ID of the workspace
|
|
650
668
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
651
669
|
* @param {boolean} [follow] Whether to follow the logs stream
|
|
652
670
|
* @param {*} [options] Override http request option.
|
|
671
|
+
* @deprecated
|
|
653
672
|
* @throws {RequiredError}
|
|
654
673
|
*/
|
|
655
|
-
async
|
|
656
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
674
|
+
async getBuildLogsWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, follow, options) {
|
|
675
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBuildLogsWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, follow, options);
|
|
657
676
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
658
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
677
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.getBuildLogsWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
659
678
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
660
679
|
},
|
|
661
680
|
/**
|
|
662
681
|
*
|
|
663
|
-
* @summary Get preview URL for a workspace port
|
|
682
|
+
* @summary [DEPRECATED] Get preview URL for a workspace port
|
|
664
683
|
* @param {string} workspaceId ID of the workspace
|
|
665
684
|
* @param {number} port Port number to get preview URL for
|
|
666
685
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
667
686
|
* @param {*} [options] Override http request option.
|
|
687
|
+
* @deprecated
|
|
668
688
|
* @throws {RequiredError}
|
|
669
689
|
*/
|
|
670
|
-
async
|
|
671
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
690
|
+
async getPortPreviewUrlWorkspaceDeprecated(workspaceId, port, xDaytonaOrganizationID, options) {
|
|
691
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrlWorkspaceDeprecated(workspaceId, port, xDaytonaOrganizationID, options);
|
|
672
692
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
673
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
693
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.getPortPreviewUrlWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
674
694
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
675
695
|
},
|
|
676
696
|
/**
|
|
677
697
|
*
|
|
678
|
-
* @summary Get workspace details
|
|
698
|
+
* @summary [DEPRECATED] Get workspace details
|
|
679
699
|
* @param {string} workspaceId ID of the workspace
|
|
680
700
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
681
701
|
* @param {boolean} [verbose] Include verbose output
|
|
682
702
|
* @param {*} [options] Override http request option.
|
|
703
|
+
* @deprecated
|
|
683
704
|
* @throws {RequiredError}
|
|
684
705
|
*/
|
|
685
|
-
async
|
|
686
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
706
|
+
async getWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, verbose, options) {
|
|
707
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, verbose, options);
|
|
687
708
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
688
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
709
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.getWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
689
710
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
690
711
|
},
|
|
691
712
|
/**
|
|
692
713
|
*
|
|
693
|
-
* @summary List all workspaces
|
|
714
|
+
* @summary [DEPRECATED] List all workspaces
|
|
694
715
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
695
716
|
* @param {boolean} [verbose] Include verbose output
|
|
696
717
|
* @param {string} [labels] JSON encoded labels to filter by
|
|
697
718
|
* @param {*} [options] Override http request option.
|
|
719
|
+
* @deprecated
|
|
698
720
|
* @throws {RequiredError}
|
|
699
721
|
*/
|
|
700
|
-
async
|
|
701
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
722
|
+
async listWorkspacesDeprecated(xDaytonaOrganizationID, verbose, labels, options) {
|
|
723
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspacesDeprecated(xDaytonaOrganizationID, verbose, labels, options);
|
|
702
724
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
703
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
725
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.listWorkspacesDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
704
726
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
705
727
|
},
|
|
706
728
|
/**
|
|
707
729
|
*
|
|
708
|
-
* @summary Replace workspace labels
|
|
730
|
+
* @summary [DEPRECATED] Replace workspace labels
|
|
709
731
|
* @param {string} workspaceId ID of the workspace
|
|
710
|
-
* @param {
|
|
732
|
+
* @param {SandboxLabels} sandboxLabels
|
|
711
733
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
712
734
|
* @param {*} [options] Override http request option.
|
|
735
|
+
* @deprecated
|
|
713
736
|
* @throws {RequiredError}
|
|
714
737
|
*/
|
|
715
|
-
async
|
|
716
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
738
|
+
async replaceLabelsWorkspaceDeprecated(workspaceId, sandboxLabels, xDaytonaOrganizationID, options) {
|
|
739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabelsWorkspaceDeprecated(workspaceId, sandboxLabels, xDaytonaOrganizationID, options);
|
|
717
740
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
718
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
741
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.replaceLabelsWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
719
742
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
720
743
|
},
|
|
721
744
|
/**
|
|
722
745
|
*
|
|
723
|
-
* @summary Set workspace auto-archive interval
|
|
746
|
+
* @summary [DEPRECATED] Set workspace auto-archive interval
|
|
724
747
|
* @param {string} workspaceId ID of the workspace
|
|
725
748
|
* @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
|
|
726
749
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
727
750
|
* @param {*} [options] Override http request option.
|
|
751
|
+
* @deprecated
|
|
728
752
|
* @throws {RequiredError}
|
|
729
753
|
*/
|
|
730
|
-
async
|
|
731
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
754
|
+
async setAutoArchiveIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
755
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoArchiveIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options);
|
|
732
756
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
733
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
757
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.setAutoArchiveIntervalWorkspaceDeprecated']?.[localVarOperationServerIndex]
|
|
758
|
+
?.url;
|
|
734
759
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
735
760
|
},
|
|
736
761
|
/**
|
|
737
762
|
*
|
|
738
|
-
* @summary Set workspace auto-stop interval
|
|
763
|
+
* @summary [DEPRECATED] Set workspace auto-stop interval
|
|
739
764
|
* @param {string} workspaceId ID of the workspace
|
|
740
765
|
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
741
766
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
742
767
|
* @param {*} [options] Override http request option.
|
|
768
|
+
* @deprecated
|
|
743
769
|
* @throws {RequiredError}
|
|
744
770
|
*/
|
|
745
|
-
async
|
|
746
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
771
|
+
async setAutostopIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
772
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options);
|
|
747
773
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
748
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
774
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.setAutostopIntervalWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
749
775
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
750
776
|
},
|
|
751
777
|
/**
|
|
752
778
|
*
|
|
753
|
-
* @summary Start workspace
|
|
779
|
+
* @summary [DEPRECATED] Start workspace
|
|
754
780
|
* @param {string} workspaceId ID of the workspace
|
|
755
781
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
756
782
|
* @param {*} [options] Override http request option.
|
|
783
|
+
* @deprecated
|
|
757
784
|
* @throws {RequiredError}
|
|
758
785
|
*/
|
|
759
|
-
async
|
|
760
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
786
|
+
async startWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
787
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options);
|
|
761
788
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
762
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
789
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.startWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
763
790
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
764
791
|
},
|
|
765
792
|
/**
|
|
766
793
|
*
|
|
767
|
-
* @summary Stop workspace
|
|
794
|
+
* @summary [DEPRECATED] Stop workspace
|
|
768
795
|
* @param {string} workspaceId ID of the workspace
|
|
769
796
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
770
797
|
* @param {*} [options] Override http request option.
|
|
798
|
+
* @deprecated
|
|
771
799
|
* @throws {RequiredError}
|
|
772
800
|
*/
|
|
773
|
-
async
|
|
774
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
801
|
+
async stopWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
802
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.stopWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options);
|
|
775
803
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
776
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
804
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.stopWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
777
805
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
778
806
|
},
|
|
779
807
|
/**
|
|
780
808
|
*
|
|
781
|
-
* @summary Update public status
|
|
809
|
+
* @summary [DEPRECATED] Update public status
|
|
782
810
|
* @param {string} workspaceId ID of the workspace
|
|
783
811
|
* @param {boolean} isPublic Public status to set
|
|
784
812
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
785
813
|
* @param {*} [options] Override http request option.
|
|
814
|
+
* @deprecated
|
|
786
815
|
* @throws {RequiredError}
|
|
787
816
|
*/
|
|
788
|
-
async
|
|
789
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
817
|
+
async updatePublicStatusWorkspaceDeprecated(workspaceId, isPublic, xDaytonaOrganizationID, options) {
|
|
818
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatusWorkspaceDeprecated(workspaceId, isPublic, xDaytonaOrganizationID, options);
|
|
790
819
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
791
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.
|
|
820
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['WorkspaceApi.updatePublicStatusWorkspaceDeprecated']?.[localVarOperationServerIndex]?.url;
|
|
792
821
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
793
822
|
},
|
|
794
823
|
};
|
|
@@ -803,193 +832,207 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
803
832
|
return {
|
|
804
833
|
/**
|
|
805
834
|
*
|
|
806
|
-
* @summary Archive workspace
|
|
835
|
+
* @summary [DEPRECATED] Archive workspace
|
|
807
836
|
* @param {string} workspaceId
|
|
808
837
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
809
838
|
* @param {*} [options] Override http request option.
|
|
839
|
+
* @deprecated
|
|
810
840
|
* @throws {RequiredError}
|
|
811
841
|
*/
|
|
812
|
-
|
|
842
|
+
archiveWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
813
843
|
return localVarFp
|
|
814
|
-
.
|
|
844
|
+
.archiveWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options)
|
|
815
845
|
.then((request) => request(axios, basePath));
|
|
816
846
|
},
|
|
817
847
|
/**
|
|
818
848
|
*
|
|
819
|
-
* @summary Create workspace
|
|
849
|
+
* @summary [DEPRECATED] Create workspace backup
|
|
820
850
|
* @param {string} workspaceId ID of the workspace
|
|
821
851
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
822
852
|
* @param {*} [options] Override http request option.
|
|
853
|
+
* @deprecated
|
|
823
854
|
* @throws {RequiredError}
|
|
824
855
|
*/
|
|
825
|
-
|
|
856
|
+
createBackupWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
826
857
|
return localVarFp
|
|
827
|
-
.
|
|
858
|
+
.createBackupWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options)
|
|
828
859
|
.then((request) => request(axios, basePath));
|
|
829
860
|
},
|
|
830
861
|
/**
|
|
831
862
|
*
|
|
832
|
-
* @summary Create a new workspace
|
|
863
|
+
* @summary [DEPRECATED] Create a new workspace
|
|
833
864
|
* @param {CreateWorkspace} createWorkspace
|
|
834
865
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
835
866
|
* @param {*} [options] Override http request option.
|
|
867
|
+
* @deprecated
|
|
836
868
|
* @throws {RequiredError}
|
|
837
869
|
*/
|
|
838
|
-
|
|
870
|
+
createWorkspaceDeprecated(createWorkspace, xDaytonaOrganizationID, options) {
|
|
839
871
|
return localVarFp
|
|
840
|
-
.
|
|
872
|
+
.createWorkspaceDeprecated(createWorkspace, xDaytonaOrganizationID, options)
|
|
841
873
|
.then((request) => request(axios, basePath));
|
|
842
874
|
},
|
|
843
875
|
/**
|
|
844
876
|
*
|
|
845
|
-
* @summary Delete workspace
|
|
877
|
+
* @summary [DEPRECATED] Delete workspace
|
|
846
878
|
* @param {string} workspaceId ID of the workspace
|
|
847
879
|
* @param {boolean} force
|
|
848
880
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
849
881
|
* @param {*} [options] Override http request option.
|
|
882
|
+
* @deprecated
|
|
850
883
|
* @throws {RequiredError}
|
|
851
884
|
*/
|
|
852
|
-
|
|
885
|
+
deleteWorkspaceDeprecated(workspaceId, force, xDaytonaOrganizationID, options) {
|
|
853
886
|
return localVarFp
|
|
854
|
-
.
|
|
887
|
+
.deleteWorkspaceDeprecated(workspaceId, force, xDaytonaOrganizationID, options)
|
|
855
888
|
.then((request) => request(axios, basePath));
|
|
856
889
|
},
|
|
857
890
|
/**
|
|
858
891
|
*
|
|
859
|
-
* @summary Get build logs
|
|
892
|
+
* @summary [DEPRECATED] Get build logs
|
|
860
893
|
* @param {string} workspaceId ID of the workspace
|
|
861
894
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
862
895
|
* @param {boolean} [follow] Whether to follow the logs stream
|
|
863
896
|
* @param {*} [options] Override http request option.
|
|
897
|
+
* @deprecated
|
|
864
898
|
* @throws {RequiredError}
|
|
865
899
|
*/
|
|
866
|
-
|
|
900
|
+
getBuildLogsWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, follow, options) {
|
|
867
901
|
return localVarFp
|
|
868
|
-
.
|
|
902
|
+
.getBuildLogsWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, follow, options)
|
|
869
903
|
.then((request) => request(axios, basePath));
|
|
870
904
|
},
|
|
871
905
|
/**
|
|
872
906
|
*
|
|
873
|
-
* @summary Get preview URL for a workspace port
|
|
907
|
+
* @summary [DEPRECATED] Get preview URL for a workspace port
|
|
874
908
|
* @param {string} workspaceId ID of the workspace
|
|
875
909
|
* @param {number} port Port number to get preview URL for
|
|
876
910
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
877
911
|
* @param {*} [options] Override http request option.
|
|
912
|
+
* @deprecated
|
|
878
913
|
* @throws {RequiredError}
|
|
879
914
|
*/
|
|
880
|
-
|
|
915
|
+
getPortPreviewUrlWorkspaceDeprecated(workspaceId, port, xDaytonaOrganizationID, options) {
|
|
881
916
|
return localVarFp
|
|
882
|
-
.
|
|
917
|
+
.getPortPreviewUrlWorkspaceDeprecated(workspaceId, port, xDaytonaOrganizationID, options)
|
|
883
918
|
.then((request) => request(axios, basePath));
|
|
884
919
|
},
|
|
885
920
|
/**
|
|
886
921
|
*
|
|
887
|
-
* @summary Get workspace details
|
|
922
|
+
* @summary [DEPRECATED] Get workspace details
|
|
888
923
|
* @param {string} workspaceId ID of the workspace
|
|
889
924
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
890
925
|
* @param {boolean} [verbose] Include verbose output
|
|
891
926
|
* @param {*} [options] Override http request option.
|
|
927
|
+
* @deprecated
|
|
892
928
|
* @throws {RequiredError}
|
|
893
929
|
*/
|
|
894
|
-
|
|
930
|
+
getWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, verbose, options) {
|
|
895
931
|
return localVarFp
|
|
896
|
-
.
|
|
932
|
+
.getWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, verbose, options)
|
|
897
933
|
.then((request) => request(axios, basePath));
|
|
898
934
|
},
|
|
899
935
|
/**
|
|
900
936
|
*
|
|
901
|
-
* @summary List all workspaces
|
|
937
|
+
* @summary [DEPRECATED] List all workspaces
|
|
902
938
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
903
939
|
* @param {boolean} [verbose] Include verbose output
|
|
904
940
|
* @param {string} [labels] JSON encoded labels to filter by
|
|
905
941
|
* @param {*} [options] Override http request option.
|
|
942
|
+
* @deprecated
|
|
906
943
|
* @throws {RequiredError}
|
|
907
944
|
*/
|
|
908
|
-
|
|
945
|
+
listWorkspacesDeprecated(xDaytonaOrganizationID, verbose, labels, options) {
|
|
909
946
|
return localVarFp
|
|
910
|
-
.
|
|
947
|
+
.listWorkspacesDeprecated(xDaytonaOrganizationID, verbose, labels, options)
|
|
911
948
|
.then((request) => request(axios, basePath));
|
|
912
949
|
},
|
|
913
950
|
/**
|
|
914
951
|
*
|
|
915
|
-
* @summary Replace workspace labels
|
|
952
|
+
* @summary [DEPRECATED] Replace workspace labels
|
|
916
953
|
* @param {string} workspaceId ID of the workspace
|
|
917
|
-
* @param {
|
|
954
|
+
* @param {SandboxLabels} sandboxLabels
|
|
918
955
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
919
956
|
* @param {*} [options] Override http request option.
|
|
957
|
+
* @deprecated
|
|
920
958
|
* @throws {RequiredError}
|
|
921
959
|
*/
|
|
922
|
-
|
|
960
|
+
replaceLabelsWorkspaceDeprecated(workspaceId, sandboxLabels, xDaytonaOrganizationID, options) {
|
|
923
961
|
return localVarFp
|
|
924
|
-
.
|
|
962
|
+
.replaceLabelsWorkspaceDeprecated(workspaceId, sandboxLabels, xDaytonaOrganizationID, options)
|
|
925
963
|
.then((request) => request(axios, basePath));
|
|
926
964
|
},
|
|
927
965
|
/**
|
|
928
966
|
*
|
|
929
|
-
* @summary Set workspace auto-archive interval
|
|
967
|
+
* @summary [DEPRECATED] Set workspace auto-archive interval
|
|
930
968
|
* @param {string} workspaceId ID of the workspace
|
|
931
969
|
* @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
|
|
932
970
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
933
971
|
* @param {*} [options] Override http request option.
|
|
972
|
+
* @deprecated
|
|
934
973
|
* @throws {RequiredError}
|
|
935
974
|
*/
|
|
936
|
-
|
|
975
|
+
setAutoArchiveIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
937
976
|
return localVarFp
|
|
938
|
-
.
|
|
977
|
+
.setAutoArchiveIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options)
|
|
939
978
|
.then((request) => request(axios, basePath));
|
|
940
979
|
},
|
|
941
980
|
/**
|
|
942
981
|
*
|
|
943
|
-
* @summary Set workspace auto-stop interval
|
|
982
|
+
* @summary [DEPRECATED] Set workspace auto-stop interval
|
|
944
983
|
* @param {string} workspaceId ID of the workspace
|
|
945
984
|
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
946
985
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
947
986
|
* @param {*} [options] Override http request option.
|
|
987
|
+
* @deprecated
|
|
948
988
|
* @throws {RequiredError}
|
|
949
989
|
*/
|
|
950
|
-
|
|
990
|
+
setAutostopIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
951
991
|
return localVarFp
|
|
952
|
-
.
|
|
992
|
+
.setAutostopIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options)
|
|
953
993
|
.then((request) => request(axios, basePath));
|
|
954
994
|
},
|
|
955
995
|
/**
|
|
956
996
|
*
|
|
957
|
-
* @summary Start workspace
|
|
997
|
+
* @summary [DEPRECATED] Start workspace
|
|
958
998
|
* @param {string} workspaceId ID of the workspace
|
|
959
999
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
960
1000
|
* @param {*} [options] Override http request option.
|
|
1001
|
+
* @deprecated
|
|
961
1002
|
* @throws {RequiredError}
|
|
962
1003
|
*/
|
|
963
|
-
|
|
1004
|
+
startWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
964
1005
|
return localVarFp
|
|
965
|
-
.
|
|
1006
|
+
.startWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options)
|
|
966
1007
|
.then((request) => request(axios, basePath));
|
|
967
1008
|
},
|
|
968
1009
|
/**
|
|
969
1010
|
*
|
|
970
|
-
* @summary Stop workspace
|
|
1011
|
+
* @summary [DEPRECATED] Stop workspace
|
|
971
1012
|
* @param {string} workspaceId ID of the workspace
|
|
972
1013
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
973
1014
|
* @param {*} [options] Override http request option.
|
|
1015
|
+
* @deprecated
|
|
974
1016
|
* @throws {RequiredError}
|
|
975
1017
|
*/
|
|
976
|
-
|
|
1018
|
+
stopWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
977
1019
|
return localVarFp
|
|
978
|
-
.
|
|
1020
|
+
.stopWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options)
|
|
979
1021
|
.then((request) => request(axios, basePath));
|
|
980
1022
|
},
|
|
981
1023
|
/**
|
|
982
1024
|
*
|
|
983
|
-
* @summary Update public status
|
|
1025
|
+
* @summary [DEPRECATED] Update public status
|
|
984
1026
|
* @param {string} workspaceId ID of the workspace
|
|
985
1027
|
* @param {boolean} isPublic Public status to set
|
|
986
1028
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
987
1029
|
* @param {*} [options] Override http request option.
|
|
1030
|
+
* @deprecated
|
|
988
1031
|
* @throws {RequiredError}
|
|
989
1032
|
*/
|
|
990
|
-
|
|
1033
|
+
updatePublicStatusWorkspaceDeprecated(workspaceId, isPublic, xDaytonaOrganizationID, options) {
|
|
991
1034
|
return localVarFp
|
|
992
|
-
.
|
|
1035
|
+
.updatePublicStatusWorkspaceDeprecated(workspaceId, isPublic, xDaytonaOrganizationID, options)
|
|
993
1036
|
.then((request) => request(axios, basePath));
|
|
994
1037
|
},
|
|
995
1038
|
};
|
|
@@ -1004,207 +1047,221 @@ exports.WorkspaceApiFactory = WorkspaceApiFactory;
|
|
|
1004
1047
|
class WorkspaceApi extends base_1.BaseAPI {
|
|
1005
1048
|
/**
|
|
1006
1049
|
*
|
|
1007
|
-
* @summary Archive workspace
|
|
1050
|
+
* @summary [DEPRECATED] Archive workspace
|
|
1008
1051
|
* @param {string} workspaceId
|
|
1009
1052
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1010
1053
|
* @param {*} [options] Override http request option.
|
|
1054
|
+
* @deprecated
|
|
1011
1055
|
* @throws {RequiredError}
|
|
1012
1056
|
* @memberof WorkspaceApi
|
|
1013
1057
|
*/
|
|
1014
|
-
|
|
1058
|
+
archiveWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
1015
1059
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1016
|
-
.
|
|
1060
|
+
.archiveWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options)
|
|
1017
1061
|
.then((request) => request(this.axios, this.basePath));
|
|
1018
1062
|
}
|
|
1019
1063
|
/**
|
|
1020
1064
|
*
|
|
1021
|
-
* @summary Create workspace
|
|
1065
|
+
* @summary [DEPRECATED] Create workspace backup
|
|
1022
1066
|
* @param {string} workspaceId ID of the workspace
|
|
1023
1067
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1024
1068
|
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @deprecated
|
|
1025
1070
|
* @throws {RequiredError}
|
|
1026
1071
|
* @memberof WorkspaceApi
|
|
1027
1072
|
*/
|
|
1028
|
-
|
|
1073
|
+
createBackupWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
1029
1074
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1030
|
-
.
|
|
1075
|
+
.createBackupWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options)
|
|
1031
1076
|
.then((request) => request(this.axios, this.basePath));
|
|
1032
1077
|
}
|
|
1033
1078
|
/**
|
|
1034
1079
|
*
|
|
1035
|
-
* @summary Create a new workspace
|
|
1080
|
+
* @summary [DEPRECATED] Create a new workspace
|
|
1036
1081
|
* @param {CreateWorkspace} createWorkspace
|
|
1037
1082
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1038
1083
|
* @param {*} [options] Override http request option.
|
|
1084
|
+
* @deprecated
|
|
1039
1085
|
* @throws {RequiredError}
|
|
1040
1086
|
* @memberof WorkspaceApi
|
|
1041
1087
|
*/
|
|
1042
|
-
|
|
1088
|
+
createWorkspaceDeprecated(createWorkspace, xDaytonaOrganizationID, options) {
|
|
1043
1089
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1044
|
-
.
|
|
1090
|
+
.createWorkspaceDeprecated(createWorkspace, xDaytonaOrganizationID, options)
|
|
1045
1091
|
.then((request) => request(this.axios, this.basePath));
|
|
1046
1092
|
}
|
|
1047
1093
|
/**
|
|
1048
1094
|
*
|
|
1049
|
-
* @summary Delete workspace
|
|
1095
|
+
* @summary [DEPRECATED] Delete workspace
|
|
1050
1096
|
* @param {string} workspaceId ID of the workspace
|
|
1051
1097
|
* @param {boolean} force
|
|
1052
1098
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1053
1099
|
* @param {*} [options] Override http request option.
|
|
1100
|
+
* @deprecated
|
|
1054
1101
|
* @throws {RequiredError}
|
|
1055
1102
|
* @memberof WorkspaceApi
|
|
1056
1103
|
*/
|
|
1057
|
-
|
|
1104
|
+
deleteWorkspaceDeprecated(workspaceId, force, xDaytonaOrganizationID, options) {
|
|
1058
1105
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1059
|
-
.
|
|
1106
|
+
.deleteWorkspaceDeprecated(workspaceId, force, xDaytonaOrganizationID, options)
|
|
1060
1107
|
.then((request) => request(this.axios, this.basePath));
|
|
1061
1108
|
}
|
|
1062
1109
|
/**
|
|
1063
1110
|
*
|
|
1064
|
-
* @summary Get build logs
|
|
1111
|
+
* @summary [DEPRECATED] Get build logs
|
|
1065
1112
|
* @param {string} workspaceId ID of the workspace
|
|
1066
1113
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1067
1114
|
* @param {boolean} [follow] Whether to follow the logs stream
|
|
1068
1115
|
* @param {*} [options] Override http request option.
|
|
1116
|
+
* @deprecated
|
|
1069
1117
|
* @throws {RequiredError}
|
|
1070
1118
|
* @memberof WorkspaceApi
|
|
1071
1119
|
*/
|
|
1072
|
-
|
|
1120
|
+
getBuildLogsWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, follow, options) {
|
|
1073
1121
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1074
|
-
.
|
|
1122
|
+
.getBuildLogsWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, follow, options)
|
|
1075
1123
|
.then((request) => request(this.axios, this.basePath));
|
|
1076
1124
|
}
|
|
1077
1125
|
/**
|
|
1078
1126
|
*
|
|
1079
|
-
* @summary Get preview URL for a workspace port
|
|
1127
|
+
* @summary [DEPRECATED] Get preview URL for a workspace port
|
|
1080
1128
|
* @param {string} workspaceId ID of the workspace
|
|
1081
1129
|
* @param {number} port Port number to get preview URL for
|
|
1082
1130
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1083
1131
|
* @param {*} [options] Override http request option.
|
|
1132
|
+
* @deprecated
|
|
1084
1133
|
* @throws {RequiredError}
|
|
1085
1134
|
* @memberof WorkspaceApi
|
|
1086
1135
|
*/
|
|
1087
|
-
|
|
1136
|
+
getPortPreviewUrlWorkspaceDeprecated(workspaceId, port, xDaytonaOrganizationID, options) {
|
|
1088
1137
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1089
|
-
.
|
|
1138
|
+
.getPortPreviewUrlWorkspaceDeprecated(workspaceId, port, xDaytonaOrganizationID, options)
|
|
1090
1139
|
.then((request) => request(this.axios, this.basePath));
|
|
1091
1140
|
}
|
|
1092
1141
|
/**
|
|
1093
1142
|
*
|
|
1094
|
-
* @summary Get workspace details
|
|
1143
|
+
* @summary [DEPRECATED] Get workspace details
|
|
1095
1144
|
* @param {string} workspaceId ID of the workspace
|
|
1096
1145
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1097
1146
|
* @param {boolean} [verbose] Include verbose output
|
|
1098
1147
|
* @param {*} [options] Override http request option.
|
|
1148
|
+
* @deprecated
|
|
1099
1149
|
* @throws {RequiredError}
|
|
1100
1150
|
* @memberof WorkspaceApi
|
|
1101
1151
|
*/
|
|
1102
|
-
|
|
1152
|
+
getWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, verbose, options) {
|
|
1103
1153
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1104
|
-
.
|
|
1154
|
+
.getWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, verbose, options)
|
|
1105
1155
|
.then((request) => request(this.axios, this.basePath));
|
|
1106
1156
|
}
|
|
1107
1157
|
/**
|
|
1108
1158
|
*
|
|
1109
|
-
* @summary List all workspaces
|
|
1159
|
+
* @summary [DEPRECATED] List all workspaces
|
|
1110
1160
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1111
1161
|
* @param {boolean} [verbose] Include verbose output
|
|
1112
1162
|
* @param {string} [labels] JSON encoded labels to filter by
|
|
1113
1163
|
* @param {*} [options] Override http request option.
|
|
1164
|
+
* @deprecated
|
|
1114
1165
|
* @throws {RequiredError}
|
|
1115
1166
|
* @memberof WorkspaceApi
|
|
1116
1167
|
*/
|
|
1117
|
-
|
|
1168
|
+
listWorkspacesDeprecated(xDaytonaOrganizationID, verbose, labels, options) {
|
|
1118
1169
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1119
|
-
.
|
|
1170
|
+
.listWorkspacesDeprecated(xDaytonaOrganizationID, verbose, labels, options)
|
|
1120
1171
|
.then((request) => request(this.axios, this.basePath));
|
|
1121
1172
|
}
|
|
1122
1173
|
/**
|
|
1123
1174
|
*
|
|
1124
|
-
* @summary Replace workspace labels
|
|
1175
|
+
* @summary [DEPRECATED] Replace workspace labels
|
|
1125
1176
|
* @param {string} workspaceId ID of the workspace
|
|
1126
|
-
* @param {
|
|
1177
|
+
* @param {SandboxLabels} sandboxLabels
|
|
1127
1178
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1128
1179
|
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @deprecated
|
|
1129
1181
|
* @throws {RequiredError}
|
|
1130
1182
|
* @memberof WorkspaceApi
|
|
1131
1183
|
*/
|
|
1132
|
-
|
|
1184
|
+
replaceLabelsWorkspaceDeprecated(workspaceId, sandboxLabels, xDaytonaOrganizationID, options) {
|
|
1133
1185
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1134
|
-
.
|
|
1186
|
+
.replaceLabelsWorkspaceDeprecated(workspaceId, sandboxLabels, xDaytonaOrganizationID, options)
|
|
1135
1187
|
.then((request) => request(this.axios, this.basePath));
|
|
1136
1188
|
}
|
|
1137
1189
|
/**
|
|
1138
1190
|
*
|
|
1139
|
-
* @summary Set workspace auto-archive interval
|
|
1191
|
+
* @summary [DEPRECATED] Set workspace auto-archive interval
|
|
1140
1192
|
* @param {string} workspaceId ID of the workspace
|
|
1141
1193
|
* @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
|
|
1142
1194
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1143
1195
|
* @param {*} [options] Override http request option.
|
|
1196
|
+
* @deprecated
|
|
1144
1197
|
* @throws {RequiredError}
|
|
1145
1198
|
* @memberof WorkspaceApi
|
|
1146
1199
|
*/
|
|
1147
|
-
|
|
1200
|
+
setAutoArchiveIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
1148
1201
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1149
|
-
.
|
|
1202
|
+
.setAutoArchiveIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options)
|
|
1150
1203
|
.then((request) => request(this.axios, this.basePath));
|
|
1151
1204
|
}
|
|
1152
1205
|
/**
|
|
1153
1206
|
*
|
|
1154
|
-
* @summary Set workspace auto-stop interval
|
|
1207
|
+
* @summary [DEPRECATED] Set workspace auto-stop interval
|
|
1155
1208
|
* @param {string} workspaceId ID of the workspace
|
|
1156
1209
|
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
1157
1210
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1158
1211
|
* @param {*} [options] Override http request option.
|
|
1212
|
+
* @deprecated
|
|
1159
1213
|
* @throws {RequiredError}
|
|
1160
1214
|
* @memberof WorkspaceApi
|
|
1161
1215
|
*/
|
|
1162
|
-
|
|
1216
|
+
setAutostopIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
1163
1217
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1164
|
-
.
|
|
1218
|
+
.setAutostopIntervalWorkspaceDeprecated(workspaceId, interval, xDaytonaOrganizationID, options)
|
|
1165
1219
|
.then((request) => request(this.axios, this.basePath));
|
|
1166
1220
|
}
|
|
1167
1221
|
/**
|
|
1168
1222
|
*
|
|
1169
|
-
* @summary Start workspace
|
|
1223
|
+
* @summary [DEPRECATED] Start workspace
|
|
1170
1224
|
* @param {string} workspaceId ID of the workspace
|
|
1171
1225
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1172
1226
|
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @deprecated
|
|
1173
1228
|
* @throws {RequiredError}
|
|
1174
1229
|
* @memberof WorkspaceApi
|
|
1175
1230
|
*/
|
|
1176
|
-
|
|
1231
|
+
startWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
1177
1232
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1178
|
-
.
|
|
1233
|
+
.startWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options)
|
|
1179
1234
|
.then((request) => request(this.axios, this.basePath));
|
|
1180
1235
|
}
|
|
1181
1236
|
/**
|
|
1182
1237
|
*
|
|
1183
|
-
* @summary Stop workspace
|
|
1238
|
+
* @summary [DEPRECATED] Stop workspace
|
|
1184
1239
|
* @param {string} workspaceId ID of the workspace
|
|
1185
1240
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1186
1241
|
* @param {*} [options] Override http request option.
|
|
1242
|
+
* @deprecated
|
|
1187
1243
|
* @throws {RequiredError}
|
|
1188
1244
|
* @memberof WorkspaceApi
|
|
1189
1245
|
*/
|
|
1190
|
-
|
|
1246
|
+
stopWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options) {
|
|
1191
1247
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1192
|
-
.
|
|
1248
|
+
.stopWorkspaceDeprecated(workspaceId, xDaytonaOrganizationID, options)
|
|
1193
1249
|
.then((request) => request(this.axios, this.basePath));
|
|
1194
1250
|
}
|
|
1195
1251
|
/**
|
|
1196
1252
|
*
|
|
1197
|
-
* @summary Update public status
|
|
1253
|
+
* @summary [DEPRECATED] Update public status
|
|
1198
1254
|
* @param {string} workspaceId ID of the workspace
|
|
1199
1255
|
* @param {boolean} isPublic Public status to set
|
|
1200
1256
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1201
1257
|
* @param {*} [options] Override http request option.
|
|
1258
|
+
* @deprecated
|
|
1202
1259
|
* @throws {RequiredError}
|
|
1203
1260
|
* @memberof WorkspaceApi
|
|
1204
1261
|
*/
|
|
1205
|
-
|
|
1262
|
+
updatePublicStatusWorkspaceDeprecated(workspaceId, isPublic, xDaytonaOrganizationID, options) {
|
|
1206
1263
|
return (0, exports.WorkspaceApiFp)(this.configuration)
|
|
1207
|
-
.
|
|
1264
|
+
.updatePublicStatusWorkspaceDeprecated(workspaceId, isPublic, xDaytonaOrganizationID, options)
|
|
1208
1265
|
.then((request) => request(this.axios, this.basePath));
|
|
1209
1266
|
}
|
|
1210
1267
|
}
|