@daytonaio/api-client 0.0.0-dev
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 +25 -0
- package/src/api/api-keys-api.d.ts +220 -0
- package/src/api/api-keys-api.js +428 -0
- package/src/api/api-keys-api.js.map +1 -0
- package/src/api/docker-registry-api.d.ts +299 -0
- package/src/api/docker-registry-api.js +592 -0
- package/src/api/docker-registry-api.js.map +1 -0
- package/src/api/object-storage-api.d.ts +74 -0
- package/src/api/object-storage-api.js +127 -0
- package/src/api/object-storage-api.js.map +1 -0
- package/src/api/organizations-api.d.ts +927 -0
- package/src/api/organizations-api.js +1891 -0
- package/src/api/organizations-api.js.map +1 -0
- package/src/api/preview-api.d.ts +143 -0
- package/src/api/preview-api.js +265 -0
- package/src/api/preview-api.js.map +1 -0
- package/src/api/runners-api.d.ts +204 -0
- package/src/api/runners-api.js +402 -0
- 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/snapshots-api.js +629 -0
- package/src/api/snapshots-api.js.map +1 -0
- package/src/api/toolbox-api.d.ts +1724 -0
- package/src/api/toolbox-api.js +3501 -0
- package/src/api/toolbox-api.js.map +1 -0
- package/src/api/users-api.d.ts +300 -0
- package/src/api/users-api.js +599 -0
- package/src/api/users-api.js.map +1 -0
- package/src/api/volumes-api.d.ts +227 -0
- package/src/api/volumes-api.js +447 -0
- package/src/api/volumes-api.js.map +1 -0
- package/src/api/workspace-api.d.ts +654 -0
- package/src/api/workspace-api.js +1269 -0
- package/src/api/workspace-api.js.map +1 -0
- package/src/api.d.ts +23 -0
- package/src/api.js +41 -0
- package/src/api.js.map +1 -0
- package/src/base.d.ts +66 -0
- package/src/base.js +68 -0
- package/src/base.js.map +1 -0
- package/src/common.d.ts +65 -0
- package/src/common.js +146 -0
- package/src/common.js.map +1 -0
- package/src/configuration.d.ts +91 -0
- package/src/configuration.js +105 -0
- package/src/configuration.js.map +1 -0
- package/src/index.d.ts +14 -0
- package/src/index.js +32 -0
- package/src/index.js.map +1 -0
- package/src/models/account-provider.d.ts +30 -0
- package/src/models/account-provider.js +4 -0
- package/src/models/account-provider.js.map +1 -0
- package/src/models/api-key-list.d.ts +66 -0
- package/src/models/api-key-list.js +16 -0
- package/src/models/api-key-list.js.map +1 -0
- package/src/models/api-key-response.d.ts +60 -0
- package/src/models/api-key-response.js +16 -0
- package/src/models/api-key-response.js.map +1 -0
- package/src/models/build-info.d.ts +42 -0
- package/src/models/build-info.js +4 -0
- package/src/models/build-info.js.map +1 -0
- package/src/models/command.d.ts +36 -0
- package/src/models/command.js +4 -0
- package/src/models/command.js.map +1 -0
- package/src/models/completion-context.d.ts +30 -0
- package/src/models/completion-context.js +4 -0
- package/src/models/completion-context.js.map +1 -0
- package/src/models/completion-item.d.ts +60 -0
- package/src/models/completion-item.js +4 -0
- package/src/models/completion-item.js.map +1 -0
- package/src/models/completion-list.d.ts +31 -0
- package/src/models/completion-list.js +16 -0
- package/src/models/completion-list.js.map +1 -0
- package/src/models/create-api-key.d.ts +48 -0
- package/src/models/create-api-key.js +16 -0
- package/src/models/create-api-key.js.map +1 -0
- package/src/models/create-build-info.d.ts +30 -0
- package/src/models/create-build-info.js +4 -0
- package/src/models/create-build-info.js.map +1 -0
- package/src/models/create-docker-registry.d.ts +67 -0
- package/src/models/create-docker-registry.js +11 -0
- package/src/models/create-docker-registry.js.map +1 -0
- package/src/models/create-linked-account.d.ts +30 -0
- package/src/models/create-linked-account.js +4 -0
- package/src/models/create-linked-account.js.map +1 -0
- package/src/models/create-organization-invitation.d.ts +47 -0
- package/src/models/create-organization-invitation.js +9 -0
- package/src/models/create-organization-invitation.js.map +1 -0
- package/src/models/create-organization-quota.d.ts +72 -0
- package/src/models/create-organization-quota.js +4 -0
- package/src/models/create-organization-quota.js.map +1 -0
- package/src/models/create-organization-role.d.ts +48 -0
- package/src/models/create-organization-role.js +16 -0
- package/src/models/create-organization-role.js.map +1 -0
- package/src/models/create-organization.d.ts +24 -0
- package/src/models/create-organization.js +4 -0
- package/src/models/create-organization.js.map +1 -0
- package/src/models/create-runner.d.ts +96 -0
- package/src/models/create-runner.js +15 -0
- 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-session-request.d.ts +24 -0
- package/src/models/create-session-request.js +4 -0
- package/src/models/create-session-request.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-user.d.ts +60 -0
- package/src/models/create-user.js +21 -0
- package/src/models/create-user.js.map +1 -0
- package/src/models/create-volume.d.ts +24 -0
- package/src/models/create-volume.js +4 -0
- package/src/models/create-volume.js.map +1 -0
- package/src/models/create-workspace.d.ts +126 -0
- package/src/models/create-workspace.js +27 -0
- package/src/models/create-workspace.js.map +1 -0
- package/src/models/docker-registry.d.ts +73 -0
- package/src/models/docker-registry.js +11 -0
- package/src/models/docker-registry.js.map +1 -0
- package/src/models/execute-request.d.ts +36 -0
- package/src/models/execute-request.js +4 -0
- package/src/models/execute-request.js.map +1 -0
- package/src/models/execute-response.d.ts +30 -0
- package/src/models/execute-response.js +4 -0
- package/src/models/execute-response.js.map +1 -0
- package/src/models/file-info.d.ts +66 -0
- package/src/models/file-info.js +4 -0
- package/src/models/file-info.js.map +1 -0
- package/src/models/file-status.d.ts +42 -0
- package/src/models/file-status.js +4 -0
- package/src/models/file-status.js.map +1 -0
- package/src/models/git-add-request.d.ts +30 -0
- package/src/models/git-add-request.js +4 -0
- package/src/models/git-add-request.js.map +1 -0
- package/src/models/git-branch-request.d.ts +30 -0
- package/src/models/git-branch-request.js +4 -0
- package/src/models/git-branch-request.js.map +1 -0
- package/src/models/git-checkout-request.d.ts +30 -0
- package/src/models/git-checkout-request.js +4 -0
- package/src/models/git-checkout-request.js.map +1 -0
- package/src/models/git-clone-request.d.ts +54 -0
- package/src/models/git-clone-request.js +4 -0
- package/src/models/git-clone-request.js.map +1 -0
- package/src/models/git-commit-info.d.ts +48 -0
- package/src/models/git-commit-info.js +4 -0
- package/src/models/git-commit-info.js.map +1 -0
- package/src/models/git-commit-request.d.ts +42 -0
- package/src/models/git-commit-request.js +4 -0
- package/src/models/git-commit-request.js.map +1 -0
- package/src/models/git-commit-response.d.ts +24 -0
- package/src/models/git-commit-response.js +4 -0
- package/src/models/git-commit-response.js.map +1 -0
- package/src/models/git-delete-branch-request.d.ts +30 -0
- package/src/models/git-delete-branch-request.js +4 -0
- package/src/models/git-delete-branch-request.js.map +1 -0
- package/src/models/git-repo-request.d.ts +36 -0
- package/src/models/git-repo-request.js +4 -0
- package/src/models/git-repo-request.js.map +1 -0
- package/src/models/git-status.d.ts +49 -0
- package/src/models/git-status.js +16 -0
- package/src/models/git-status.js.map +1 -0
- package/src/models/index.d.ts +89 -0
- package/src/models/index.js +106 -0
- package/src/models/index.js.map +1 -0
- package/src/models/list-branch-response.d.ts +24 -0
- package/src/models/list-branch-response.js +4 -0
- package/src/models/list-branch-response.js.map +1 -0
- package/src/models/lsp-completion-params.d.ts +50 -0
- package/src/models/lsp-completion-params.js +16 -0
- package/src/models/lsp-completion-params.js.map +1 -0
- package/src/models/lsp-document-request.d.ts +36 -0
- package/src/models/lsp-document-request.js +4 -0
- package/src/models/lsp-document-request.js.map +1 -0
- package/src/models/lsp-location.d.ts +31 -0
- package/src/models/lsp-location.js +16 -0
- package/src/models/lsp-location.js.map +1 -0
- package/src/models/lsp-server-request.d.ts +30 -0
- package/src/models/lsp-server-request.js +4 -0
- package/src/models/lsp-server-request.js.map +1 -0
- package/src/models/lsp-symbol.d.ts +37 -0
- package/src/models/lsp-symbol.js +16 -0
- package/src/models/lsp-symbol.js.map +1 -0
- package/src/models/match.d.ts +36 -0
- package/src/models/match.js +4 -0
- package/src/models/match.js.map +1 -0
- package/src/models/organization-invitation.d.ts +97 -0
- package/src/models/organization-invitation.js +27 -0
- package/src/models/organization-invitation.js.map +1 -0
- package/src/models/organization-role.d.ts +72 -0
- package/src/models/organization-role.js +16 -0
- package/src/models/organization-role.js.map +1 -0
- package/src/models/organization-suspension.d.ts +30 -0
- package/src/models/organization-suspension.js +4 -0
- package/src/models/organization-suspension.js.map +1 -0
- package/src/models/organization-user.d.ts +72 -0
- package/src/models/organization-user.js +21 -0
- package/src/models/organization-user.js.map +1 -0
- package/src/models/organization.d.ts +78 -0
- package/src/models/organization.js +4 -0
- package/src/models/organization.js.map +1 -0
- package/src/models/paginated-snapshots-dto.d.ts +43 -0
- package/src/models/paginated-snapshots-dto.js +16 -0
- package/src/models/paginated-snapshots-dto.js.map +1 -0
- package/src/models/port-preview-url.d.ts +30 -0
- package/src/models/port-preview-url.js +4 -0
- package/src/models/port-preview-url.js.map +1 -0
- package/src/models/position.d.ts +30 -0
- package/src/models/position.js +4 -0
- package/src/models/position.js.map +1 -0
- package/src/models/project-dir-response.d.ts +24 -0
- package/src/models/project-dir-response.js +4 -0
- package/src/models/project-dir-response.js.map +1 -0
- package/src/models/range.d.ts +31 -0
- package/src/models/range.js +16 -0
- package/src/models/range.js.map +1 -0
- package/src/models/registry-push-access-dto.d.ts +54 -0
- package/src/models/registry-push-access-dto.js +4 -0
- package/src/models/registry-push-access-dto.js.map +1 -0
- package/src/models/replace-request.d.ts +36 -0
- package/src/models/replace-request.js +4 -0
- package/src/models/replace-request.js.map +1 -0
- package/src/models/replace-result.d.ts +36 -0
- package/src/models/replace-result.js +4 -0
- package/src/models/replace-result.js.map +1 -0
- package/src/models/runner-region.d.ts +22 -0
- package/src/models/runner-region.js +26 -0
- package/src/models/runner-region.js.map +1 -0
- package/src/models/runner-snapshot-dto.d.ts +36 -0
- package/src/models/runner-snapshot-dto.js +4 -0
- package/src/models/runner-snapshot-dto.js.map +1 -0
- package/src/models/runner-state.d.ts +24 -0
- package/src/models/runner-state.js +28 -0
- package/src/models/runner-state.js.map +1 -0
- package/src/models/runner.d.ts +129 -0
- package/src/models/runner.js +16 -0
- package/src/models/runner.js.map +1 -0
- package/src/models/sandbox-class.d.ts +22 -0
- package/src/models/sandbox-class.js +26 -0
- package/src/models/sandbox-class.js.map +1 -0
- package/src/models/sandbox-info.d.ts +37 -0
- package/src/models/sandbox-info.js +4 -0
- package/src/models/sandbox-info.js.map +1 -0
- package/src/models/sandbox-labels.d.ts +26 -0
- package/src/models/sandbox-labels.js +4 -0
- package/src/models/sandbox-labels.js.map +1 -0
- package/src/models/sandbox-state.d.ts +35 -0
- package/src/models/sandbox-state.js +39 -0
- package/src/models/sandbox-state.js.map +1 -0
- package/src/models/sandbox-volume.d.ts +30 -0
- package/src/models/sandbox-volume.js +4 -0
- package/src/models/sandbox-volume.js.map +1 -0
- package/src/models/sandbox.d.ts +190 -0
- package/src/models/sandbox.js +29 -0
- package/src/models/sandbox.js.map +1 -0
- package/src/models/search-files-response.d.ts +24 -0
- package/src/models/search-files-response.js +4 -0
- package/src/models/search-files-response.js.map +1 -0
- package/src/models/session-execute-request.d.ts +37 -0
- package/src/models/session-execute-request.js +4 -0
- package/src/models/session-execute-request.js.map +1 -0
- package/src/models/session-execute-response.d.ts +36 -0
- package/src/models/session-execute-response.js +4 -0
- package/src/models/session-execute-response.js.map +1 -0
- package/src/models/session.d.ts +31 -0
- package/src/models/session.js +16 -0
- package/src/models/session.js.map +1 -0
- package/src/models/set-snapshot-general-status-dto.d.ts +24 -0
- package/src/models/set-snapshot-general-status-dto.js +4 -0
- package/src/models/set-snapshot-general-status-dto.js.map +1 -0
- package/src/models/snapshot-dto.d.ts +128 -0
- package/src/models/snapshot-dto.js +16 -0
- package/src/models/snapshot-dto.js.map +1 -0
- package/src/models/snapshot-state.d.ts +29 -0
- package/src/models/snapshot-state.js +33 -0
- package/src/models/snapshot-state.js.map +1 -0
- package/src/models/storage-access-dto.d.ts +54 -0
- package/src/models/storage-access-dto.js +4 -0
- package/src/models/storage-access-dto.js.map +1 -0
- package/src/models/toggle-state.d.ts +24 -0
- package/src/models/toggle-state.js +4 -0
- package/src/models/toggle-state.js.map +1 -0
- package/src/models/update-assigned-organization-roles.d.ts +24 -0
- package/src/models/update-assigned-organization-roles.js +4 -0
- package/src/models/update-assigned-organization-roles.js.map +1 -0
- package/src/models/update-docker-registry.d.ts +36 -0
- package/src/models/update-docker-registry.js +4 -0
- package/src/models/update-docker-registry.js.map +1 -0
- package/src/models/update-organization-invitation.d.ts +41 -0
- package/src/models/update-organization-invitation.js +9 -0
- package/src/models/update-organization-invitation.js.map +1 -0
- package/src/models/update-organization-member-role.d.ts +29 -0
- package/src/models/update-organization-member-role.js +9 -0
- package/src/models/update-organization-member-role.js.map +1 -0
- package/src/models/update-organization-quota.d.ts +72 -0
- package/src/models/update-organization-quota.js +4 -0
- package/src/models/update-organization-quota.js.map +1 -0
- package/src/models/update-organization-role.d.ts +48 -0
- package/src/models/update-organization-role.js +16 -0
- package/src/models/update-organization-role.js.map +1 -0
- package/src/models/usage-overview.d.ts +60 -0
- package/src/models/usage-overview.js +4 -0
- package/src/models/usage-overview.js.map +1 -0
- package/src/models/user-public-key.d.ts +30 -0
- package/src/models/user-public-key.js +4 -0
- package/src/models/user-public-key.js.map +1 -0
- package/src/models/user.d.ts +43 -0
- package/src/models/user.js +16 -0
- package/src/models/user.js.map +1 -0
- package/src/models/volume-dto.d.ts +67 -0
- package/src/models/volume-dto.js +16 -0
- package/src/models/volume-dto.js.map +1 -0
- package/src/models/volume-state.d.ts +26 -0
- package/src/models/volume-state.js +30 -0
- package/src/models/volume-state.js.map +1 -0
- package/src/models/workspace.d.ts +229 -0
- package/src/models/workspace.js +36 -0
- package/src/models/workspace.js.map +1 -0
|
@@ -0,0 +1,1212 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Daytona
|
|
6
|
+
* Daytona AI platform API Docs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: support@daytona.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SandboxApi = exports.SandboxApiFactory = exports.SandboxApiFp = exports.SandboxApiAxiosParamCreator = void 0;
|
|
17
|
+
const axios_1 = require("axios");
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
const common_1 = require("../common");
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
const base_1 = require("../base");
|
|
23
|
+
/**
|
|
24
|
+
* SandboxApi - axios parameter creator
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
const SandboxApiAxiosParamCreator = function (configuration) {
|
|
28
|
+
return {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @summary Archive sandbox
|
|
32
|
+
* @param {string} sandboxId
|
|
33
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
archiveSandbox: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
|
|
38
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
39
|
+
(0, common_1.assertParamExists)('archiveSandbox', 'sandboxId', sandboxId);
|
|
40
|
+
const localVarPath = `/sandbox/{sandboxId}/archive`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
41
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
43
|
+
let baseOptions;
|
|
44
|
+
if (configuration) {
|
|
45
|
+
baseOptions = configuration.baseOptions;
|
|
46
|
+
}
|
|
47
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
48
|
+
const localVarHeaderParameter = {};
|
|
49
|
+
const localVarQueryParameter = {};
|
|
50
|
+
// authentication bearer required
|
|
51
|
+
// http bearer authentication required
|
|
52
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
53
|
+
// authentication oauth2 required
|
|
54
|
+
if (xDaytonaOrganizationID != null) {
|
|
55
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
56
|
+
}
|
|
57
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
58
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
60
|
+
return {
|
|
61
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Create sandbox backup
|
|
68
|
+
* @param {string} sandboxId ID of the sandbox
|
|
69
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
createBackup: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
|
|
74
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
75
|
+
(0, common_1.assertParamExists)('createBackup', 'sandboxId', sandboxId);
|
|
76
|
+
const localVarPath = `/sandbox/{sandboxId}/backup`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
77
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
78
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
79
|
+
let baseOptions;
|
|
80
|
+
if (configuration) {
|
|
81
|
+
baseOptions = configuration.baseOptions;
|
|
82
|
+
}
|
|
83
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
84
|
+
const localVarHeaderParameter = {};
|
|
85
|
+
const localVarQueryParameter = {};
|
|
86
|
+
// authentication bearer required
|
|
87
|
+
// http bearer authentication required
|
|
88
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
89
|
+
// authentication oauth2 required
|
|
90
|
+
if (xDaytonaOrganizationID != null) {
|
|
91
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
92
|
+
}
|
|
93
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
94
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
95
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
96
|
+
return {
|
|
97
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
98
|
+
options: localVarRequestOptions,
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @summary Create a new sandbox
|
|
104
|
+
* @param {CreateSandbox} createSandbox
|
|
105
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
createSandbox: async (createSandbox, xDaytonaOrganizationID, options = {}) => {
|
|
110
|
+
// verify required parameter 'createSandbox' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createSandbox', 'createSandbox', createSandbox);
|
|
112
|
+
const localVarPath = `/sandbox`;
|
|
113
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
let baseOptions;
|
|
116
|
+
if (configuration) {
|
|
117
|
+
baseOptions = configuration.baseOptions;
|
|
118
|
+
}
|
|
119
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
120
|
+
const localVarHeaderParameter = {};
|
|
121
|
+
const localVarQueryParameter = {};
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
125
|
+
// authentication oauth2 required
|
|
126
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
127
|
+
if (xDaytonaOrganizationID != null) {
|
|
128
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
129
|
+
}
|
|
130
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
132
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
133
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSandbox, localVarRequestOptions, configuration);
|
|
134
|
+
return {
|
|
135
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @summary Delete sandbox
|
|
142
|
+
* @param {string} sandboxId ID of the sandbox
|
|
143
|
+
* @param {boolean} force
|
|
144
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
*/
|
|
148
|
+
deleteSandbox: async (sandboxId, force, xDaytonaOrganizationID, options = {}) => {
|
|
149
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
150
|
+
(0, common_1.assertParamExists)('deleteSandbox', 'sandboxId', sandboxId);
|
|
151
|
+
// verify required parameter 'force' is not null or undefined
|
|
152
|
+
(0, common_1.assertParamExists)('deleteSandbox', 'force', force);
|
|
153
|
+
const localVarPath = `/sandbox/{sandboxId}`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
154
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
156
|
+
let baseOptions;
|
|
157
|
+
if (configuration) {
|
|
158
|
+
baseOptions = configuration.baseOptions;
|
|
159
|
+
}
|
|
160
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
161
|
+
const localVarHeaderParameter = {};
|
|
162
|
+
const localVarQueryParameter = {};
|
|
163
|
+
// authentication bearer required
|
|
164
|
+
// http bearer authentication required
|
|
165
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
166
|
+
// authentication oauth2 required
|
|
167
|
+
if (force !== undefined) {
|
|
168
|
+
localVarQueryParameter['force'] = force;
|
|
169
|
+
}
|
|
170
|
+
if (xDaytonaOrganizationID != null) {
|
|
171
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
172
|
+
}
|
|
173
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
176
|
+
return {
|
|
177
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
178
|
+
options: localVarRequestOptions,
|
|
179
|
+
};
|
|
180
|
+
},
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @summary Get build logs
|
|
184
|
+
* @param {string} sandboxId ID of the sandbox
|
|
185
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
186
|
+
* @param {boolean} [follow] Whether to follow the logs stream
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
getBuildLogs: async (sandboxId, xDaytonaOrganizationID, follow, options = {}) => {
|
|
191
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
192
|
+
(0, common_1.assertParamExists)('getBuildLogs', 'sandboxId', sandboxId);
|
|
193
|
+
const localVarPath = `/sandbox/{sandboxId}/build-logs`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
194
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
195
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
196
|
+
let baseOptions;
|
|
197
|
+
if (configuration) {
|
|
198
|
+
baseOptions = configuration.baseOptions;
|
|
199
|
+
}
|
|
200
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
201
|
+
const localVarHeaderParameter = {};
|
|
202
|
+
const localVarQueryParameter = {};
|
|
203
|
+
// authentication bearer required
|
|
204
|
+
// http bearer authentication required
|
|
205
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
206
|
+
// authentication oauth2 required
|
|
207
|
+
if (follow !== undefined) {
|
|
208
|
+
localVarQueryParameter['follow'] = follow;
|
|
209
|
+
}
|
|
210
|
+
if (xDaytonaOrganizationID != null) {
|
|
211
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
212
|
+
}
|
|
213
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
215
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
216
|
+
return {
|
|
217
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
218
|
+
options: localVarRequestOptions,
|
|
219
|
+
};
|
|
220
|
+
},
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @summary Get preview URL for a sandbox port
|
|
224
|
+
* @param {string} sandboxId ID of the sandbox
|
|
225
|
+
* @param {number} port Port number to get preview URL for
|
|
226
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
getPortPreviewUrl: async (sandboxId, port, xDaytonaOrganizationID, options = {}) => {
|
|
231
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
232
|
+
(0, common_1.assertParamExists)('getPortPreviewUrl', 'sandboxId', sandboxId);
|
|
233
|
+
// verify required parameter 'port' is not null or undefined
|
|
234
|
+
(0, common_1.assertParamExists)('getPortPreviewUrl', 'port', port);
|
|
235
|
+
const localVarPath = `/sandbox/{sandboxId}/ports/{port}/preview-url`
|
|
236
|
+
.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
|
|
237
|
+
.replace(`{${'port'}}`, encodeURIComponent(String(port)));
|
|
238
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
239
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
240
|
+
let baseOptions;
|
|
241
|
+
if (configuration) {
|
|
242
|
+
baseOptions = configuration.baseOptions;
|
|
243
|
+
}
|
|
244
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
245
|
+
const localVarHeaderParameter = {};
|
|
246
|
+
const localVarQueryParameter = {};
|
|
247
|
+
// authentication bearer required
|
|
248
|
+
// http bearer authentication required
|
|
249
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
250
|
+
// authentication oauth2 required
|
|
251
|
+
if (xDaytonaOrganizationID != null) {
|
|
252
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
253
|
+
}
|
|
254
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
255
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
256
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
257
|
+
return {
|
|
258
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
259
|
+
options: localVarRequestOptions,
|
|
260
|
+
};
|
|
261
|
+
},
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @summary Get sandbox details
|
|
265
|
+
* @param {string} sandboxId ID of the sandbox
|
|
266
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
267
|
+
* @param {boolean} [verbose] Include verbose output
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
getSandbox: async (sandboxId, xDaytonaOrganizationID, verbose, options = {}) => {
|
|
272
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
273
|
+
(0, common_1.assertParamExists)('getSandbox', 'sandboxId', sandboxId);
|
|
274
|
+
const localVarPath = `/sandbox/{sandboxId}`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
275
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
276
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
277
|
+
let baseOptions;
|
|
278
|
+
if (configuration) {
|
|
279
|
+
baseOptions = configuration.baseOptions;
|
|
280
|
+
}
|
|
281
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
282
|
+
const localVarHeaderParameter = {};
|
|
283
|
+
const localVarQueryParameter = {};
|
|
284
|
+
// authentication bearer required
|
|
285
|
+
// http bearer authentication required
|
|
286
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
287
|
+
// authentication oauth2 required
|
|
288
|
+
if (verbose !== undefined) {
|
|
289
|
+
localVarQueryParameter['verbose'] = verbose;
|
|
290
|
+
}
|
|
291
|
+
if (xDaytonaOrganizationID != null) {
|
|
292
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
293
|
+
}
|
|
294
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
297
|
+
return {
|
|
298
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
299
|
+
options: localVarRequestOptions,
|
|
300
|
+
};
|
|
301
|
+
},
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @summary List all sandboxes
|
|
305
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
306
|
+
* @param {boolean} [verbose] Include verbose output
|
|
307
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
listSandboxes: async (xDaytonaOrganizationID, verbose, labels, options = {}) => {
|
|
312
|
+
const localVarPath = `/sandbox`;
|
|
313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
315
|
+
let baseOptions;
|
|
316
|
+
if (configuration) {
|
|
317
|
+
baseOptions = configuration.baseOptions;
|
|
318
|
+
}
|
|
319
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
320
|
+
const localVarHeaderParameter = {};
|
|
321
|
+
const localVarQueryParameter = {};
|
|
322
|
+
// authentication bearer required
|
|
323
|
+
// http bearer authentication required
|
|
324
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
325
|
+
// authentication oauth2 required
|
|
326
|
+
if (verbose !== undefined) {
|
|
327
|
+
localVarQueryParameter['verbose'] = verbose;
|
|
328
|
+
}
|
|
329
|
+
if (labels !== undefined) {
|
|
330
|
+
localVarQueryParameter['labels'] = labels;
|
|
331
|
+
}
|
|
332
|
+
if (xDaytonaOrganizationID != null) {
|
|
333
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
334
|
+
}
|
|
335
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
337
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
338
|
+
return {
|
|
339
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
340
|
+
options: localVarRequestOptions,
|
|
341
|
+
};
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @summary Replace sandbox labels
|
|
346
|
+
* @param {string} sandboxId ID of the sandbox
|
|
347
|
+
* @param {SandboxLabels} sandboxLabels
|
|
348
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
349
|
+
* @param {*} [options] Override http request option.
|
|
350
|
+
* @throws {RequiredError}
|
|
351
|
+
*/
|
|
352
|
+
replaceLabels: async (sandboxId, sandboxLabels, xDaytonaOrganizationID, options = {}) => {
|
|
353
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
354
|
+
(0, common_1.assertParamExists)('replaceLabels', 'sandboxId', sandboxId);
|
|
355
|
+
// verify required parameter 'sandboxLabels' is not null or undefined
|
|
356
|
+
(0, common_1.assertParamExists)('replaceLabels', 'sandboxLabels', sandboxLabels);
|
|
357
|
+
const localVarPath = `/sandbox/{sandboxId}/labels`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
359
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
360
|
+
let baseOptions;
|
|
361
|
+
if (configuration) {
|
|
362
|
+
baseOptions = configuration.baseOptions;
|
|
363
|
+
}
|
|
364
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
365
|
+
const localVarHeaderParameter = {};
|
|
366
|
+
const localVarQueryParameter = {};
|
|
367
|
+
// authentication bearer required
|
|
368
|
+
// http bearer authentication required
|
|
369
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
370
|
+
// authentication oauth2 required
|
|
371
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
372
|
+
if (xDaytonaOrganizationID != null) {
|
|
373
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
374
|
+
}
|
|
375
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
376
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
377
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
378
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sandboxLabels, localVarRequestOptions, configuration);
|
|
379
|
+
return {
|
|
380
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
381
|
+
options: localVarRequestOptions,
|
|
382
|
+
};
|
|
383
|
+
},
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @summary Set sandbox auto-archive interval
|
|
387
|
+
* @param {string} sandboxId ID of the sandbox
|
|
388
|
+
* @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
|
|
389
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
setAutoArchiveInterval: async (sandboxId, interval, xDaytonaOrganizationID, options = {}) => {
|
|
394
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
395
|
+
(0, common_1.assertParamExists)('setAutoArchiveInterval', 'sandboxId', sandboxId);
|
|
396
|
+
// verify required parameter 'interval' is not null or undefined
|
|
397
|
+
(0, common_1.assertParamExists)('setAutoArchiveInterval', 'interval', interval);
|
|
398
|
+
const localVarPath = `/sandbox/{sandboxId}/autoarchive/{interval}`
|
|
399
|
+
.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
|
|
400
|
+
.replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
|
|
401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
402
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
403
|
+
let baseOptions;
|
|
404
|
+
if (configuration) {
|
|
405
|
+
baseOptions = configuration.baseOptions;
|
|
406
|
+
}
|
|
407
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
408
|
+
const localVarHeaderParameter = {};
|
|
409
|
+
const localVarQueryParameter = {};
|
|
410
|
+
// authentication bearer required
|
|
411
|
+
// http bearer authentication required
|
|
412
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
413
|
+
// authentication oauth2 required
|
|
414
|
+
if (xDaytonaOrganizationID != null) {
|
|
415
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
416
|
+
}
|
|
417
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
418
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
419
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
420
|
+
return {
|
|
421
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
422
|
+
options: localVarRequestOptions,
|
|
423
|
+
};
|
|
424
|
+
},
|
|
425
|
+
/**
|
|
426
|
+
*
|
|
427
|
+
* @summary Set sandbox auto-stop interval
|
|
428
|
+
* @param {string} sandboxId ID of the sandbox
|
|
429
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
430
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
setAutostopInterval: async (sandboxId, interval, xDaytonaOrganizationID, options = {}) => {
|
|
435
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
436
|
+
(0, common_1.assertParamExists)('setAutostopInterval', 'sandboxId', sandboxId);
|
|
437
|
+
// verify required parameter 'interval' is not null or undefined
|
|
438
|
+
(0, common_1.assertParamExists)('setAutostopInterval', 'interval', interval);
|
|
439
|
+
const localVarPath = `/sandbox/{sandboxId}/autostop/{interval}`
|
|
440
|
+
.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
|
|
441
|
+
.replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
|
|
442
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
443
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
444
|
+
let baseOptions;
|
|
445
|
+
if (configuration) {
|
|
446
|
+
baseOptions = configuration.baseOptions;
|
|
447
|
+
}
|
|
448
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
449
|
+
const localVarHeaderParameter = {};
|
|
450
|
+
const localVarQueryParameter = {};
|
|
451
|
+
// authentication bearer required
|
|
452
|
+
// http bearer authentication required
|
|
453
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
454
|
+
// authentication oauth2 required
|
|
455
|
+
if (xDaytonaOrganizationID != null) {
|
|
456
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
457
|
+
}
|
|
458
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
459
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
460
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
461
|
+
return {
|
|
462
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
463
|
+
options: localVarRequestOptions,
|
|
464
|
+
};
|
|
465
|
+
},
|
|
466
|
+
/**
|
|
467
|
+
*
|
|
468
|
+
* @summary Start sandbox
|
|
469
|
+
* @param {string} sandboxId ID of the sandbox
|
|
470
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
startSandbox: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
|
|
475
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
476
|
+
(0, common_1.assertParamExists)('startSandbox', 'sandboxId', sandboxId);
|
|
477
|
+
const localVarPath = `/sandbox/{sandboxId}/start`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
479
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
480
|
+
let baseOptions;
|
|
481
|
+
if (configuration) {
|
|
482
|
+
baseOptions = configuration.baseOptions;
|
|
483
|
+
}
|
|
484
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
485
|
+
const localVarHeaderParameter = {};
|
|
486
|
+
const localVarQueryParameter = {};
|
|
487
|
+
// authentication bearer required
|
|
488
|
+
// http bearer authentication required
|
|
489
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
490
|
+
// authentication oauth2 required
|
|
491
|
+
if (xDaytonaOrganizationID != null) {
|
|
492
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
493
|
+
}
|
|
494
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
495
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
496
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
497
|
+
return {
|
|
498
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
499
|
+
options: localVarRequestOptions,
|
|
500
|
+
};
|
|
501
|
+
},
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @summary Stop sandbox
|
|
505
|
+
* @param {string} sandboxId ID of the sandbox
|
|
506
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
stopSandbox: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
|
|
511
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
512
|
+
(0, common_1.assertParamExists)('stopSandbox', 'sandboxId', sandboxId);
|
|
513
|
+
const localVarPath = `/sandbox/{sandboxId}/stop`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
514
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
515
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
516
|
+
let baseOptions;
|
|
517
|
+
if (configuration) {
|
|
518
|
+
baseOptions = configuration.baseOptions;
|
|
519
|
+
}
|
|
520
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
521
|
+
const localVarHeaderParameter = {};
|
|
522
|
+
const localVarQueryParameter = {};
|
|
523
|
+
// authentication bearer required
|
|
524
|
+
// http bearer authentication required
|
|
525
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
526
|
+
// authentication oauth2 required
|
|
527
|
+
if (xDaytonaOrganizationID != null) {
|
|
528
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
529
|
+
}
|
|
530
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
531
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
532
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
533
|
+
return {
|
|
534
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
535
|
+
options: localVarRequestOptions,
|
|
536
|
+
};
|
|
537
|
+
},
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @summary Update public status
|
|
541
|
+
* @param {string} sandboxId ID of the sandbox
|
|
542
|
+
* @param {boolean} isPublic Public status to set
|
|
543
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
*/
|
|
547
|
+
updatePublicStatus: async (sandboxId, isPublic, xDaytonaOrganizationID, options = {}) => {
|
|
548
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
549
|
+
(0, common_1.assertParamExists)('updatePublicStatus', 'sandboxId', sandboxId);
|
|
550
|
+
// verify required parameter 'isPublic' is not null or undefined
|
|
551
|
+
(0, common_1.assertParamExists)('updatePublicStatus', 'isPublic', isPublic);
|
|
552
|
+
const localVarPath = `/sandbox/{sandboxId}/public/{isPublic}`
|
|
553
|
+
.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
|
|
554
|
+
.replace(`{${'isPublic'}}`, encodeURIComponent(String(isPublic)));
|
|
555
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
556
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
557
|
+
let baseOptions;
|
|
558
|
+
if (configuration) {
|
|
559
|
+
baseOptions = configuration.baseOptions;
|
|
560
|
+
}
|
|
561
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
562
|
+
const localVarHeaderParameter = {};
|
|
563
|
+
const localVarQueryParameter = {};
|
|
564
|
+
// authentication bearer required
|
|
565
|
+
// http bearer authentication required
|
|
566
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
567
|
+
// authentication oauth2 required
|
|
568
|
+
if (xDaytonaOrganizationID != null) {
|
|
569
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
570
|
+
}
|
|
571
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
572
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
573
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
574
|
+
return {
|
|
575
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
576
|
+
options: localVarRequestOptions,
|
|
577
|
+
};
|
|
578
|
+
},
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
exports.SandboxApiAxiosParamCreator = SandboxApiAxiosParamCreator;
|
|
582
|
+
/**
|
|
583
|
+
* SandboxApi - functional programming interface
|
|
584
|
+
* @export
|
|
585
|
+
*/
|
|
586
|
+
const SandboxApiFp = function (configuration) {
|
|
587
|
+
const localVarAxiosParamCreator = (0, exports.SandboxApiAxiosParamCreator)(configuration);
|
|
588
|
+
return {
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @summary Archive sandbox
|
|
592
|
+
* @param {string} sandboxId
|
|
593
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
*/
|
|
597
|
+
async archiveSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
598
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveSandbox(sandboxId, xDaytonaOrganizationID, options);
|
|
599
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
600
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.archiveSandbox']?.[localVarOperationServerIndex]?.url;
|
|
601
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
602
|
+
},
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @summary Create sandbox backup
|
|
606
|
+
* @param {string} sandboxId ID of the sandbox
|
|
607
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
608
|
+
* @param {*} [options] Override http request option.
|
|
609
|
+
* @throws {RequiredError}
|
|
610
|
+
*/
|
|
611
|
+
async createBackup(sandboxId, xDaytonaOrganizationID, options) {
|
|
612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBackup(sandboxId, xDaytonaOrganizationID, options);
|
|
613
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
614
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createBackup']?.[localVarOperationServerIndex]?.url;
|
|
615
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
616
|
+
},
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @summary Create a new sandbox
|
|
620
|
+
* @param {CreateSandbox} createSandbox
|
|
621
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
*/
|
|
625
|
+
async createSandbox(createSandbox, xDaytonaOrganizationID, options) {
|
|
626
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSandbox(createSandbox, xDaytonaOrganizationID, options);
|
|
627
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
628
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createSandbox']?.[localVarOperationServerIndex]?.url;
|
|
629
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
630
|
+
},
|
|
631
|
+
/**
|
|
632
|
+
*
|
|
633
|
+
* @summary Delete sandbox
|
|
634
|
+
* @param {string} sandboxId ID of the sandbox
|
|
635
|
+
* @param {boolean} force
|
|
636
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
async deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options) {
|
|
641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options);
|
|
642
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
643
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.deleteSandbox']?.[localVarOperationServerIndex]?.url;
|
|
644
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
645
|
+
},
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @summary Get build logs
|
|
649
|
+
* @param {string} sandboxId ID of the sandbox
|
|
650
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
651
|
+
* @param {boolean} [follow] Whether to follow the logs stream
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
async getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options) {
|
|
656
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options);
|
|
657
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
658
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getBuildLogs']?.[localVarOperationServerIndex]?.url;
|
|
659
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
660
|
+
},
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @summary Get preview URL for a sandbox port
|
|
664
|
+
* @param {string} sandboxId ID of the sandbox
|
|
665
|
+
* @param {number} port Port number to get preview URL for
|
|
666
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
*/
|
|
670
|
+
async getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options) {
|
|
671
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options);
|
|
672
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
673
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getPortPreviewUrl']?.[localVarOperationServerIndex]?.url;
|
|
674
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
675
|
+
},
|
|
676
|
+
/**
|
|
677
|
+
*
|
|
678
|
+
* @summary Get sandbox details
|
|
679
|
+
* @param {string} sandboxId ID of the sandbox
|
|
680
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
681
|
+
* @param {boolean} [verbose] Include verbose output
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
*/
|
|
685
|
+
async getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options) {
|
|
686
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options);
|
|
687
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
688
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandbox']?.[localVarOperationServerIndex]?.url;
|
|
689
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
690
|
+
},
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @summary List all sandboxes
|
|
694
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
695
|
+
* @param {boolean} [verbose] Include verbose output
|
|
696
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
async listSandboxes(xDaytonaOrganizationID, verbose, labels, options) {
|
|
701
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxes(xDaytonaOrganizationID, verbose, labels, options);
|
|
702
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
703
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxes']?.[localVarOperationServerIndex]?.url;
|
|
704
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
705
|
+
},
|
|
706
|
+
/**
|
|
707
|
+
*
|
|
708
|
+
* @summary Replace sandbox labels
|
|
709
|
+
* @param {string} sandboxId ID of the sandbox
|
|
710
|
+
* @param {SandboxLabels} sandboxLabels
|
|
711
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
712
|
+
* @param {*} [options] Override http request option.
|
|
713
|
+
* @throws {RequiredError}
|
|
714
|
+
*/
|
|
715
|
+
async replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options) {
|
|
716
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options);
|
|
717
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
718
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.replaceLabels']?.[localVarOperationServerIndex]?.url;
|
|
719
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
720
|
+
},
|
|
721
|
+
/**
|
|
722
|
+
*
|
|
723
|
+
* @summary Set sandbox auto-archive interval
|
|
724
|
+
* @param {string} sandboxId ID of the sandbox
|
|
725
|
+
* @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
|
|
726
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
async setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
|
|
731
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options);
|
|
732
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
733
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutoArchiveInterval']?.[localVarOperationServerIndex]?.url;
|
|
734
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
735
|
+
},
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @summary Set sandbox auto-stop interval
|
|
739
|
+
* @param {string} sandboxId ID of the sandbox
|
|
740
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
741
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
async setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
|
|
746
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options);
|
|
747
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
748
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutostopInterval']?.[localVarOperationServerIndex]?.url;
|
|
749
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
750
|
+
},
|
|
751
|
+
/**
|
|
752
|
+
*
|
|
753
|
+
* @summary Start sandbox
|
|
754
|
+
* @param {string} sandboxId ID of the sandbox
|
|
755
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
756
|
+
* @param {*} [options] Override http request option.
|
|
757
|
+
* @throws {RequiredError}
|
|
758
|
+
*/
|
|
759
|
+
async startSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
760
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startSandbox(sandboxId, xDaytonaOrganizationID, options);
|
|
761
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
762
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.startSandbox']?.[localVarOperationServerIndex]?.url;
|
|
763
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
764
|
+
},
|
|
765
|
+
/**
|
|
766
|
+
*
|
|
767
|
+
* @summary Stop sandbox
|
|
768
|
+
* @param {string} sandboxId ID of the sandbox
|
|
769
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
770
|
+
* @param {*} [options] Override http request option.
|
|
771
|
+
* @throws {RequiredError}
|
|
772
|
+
*/
|
|
773
|
+
async stopSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.stopSandbox(sandboxId, xDaytonaOrganizationID, options);
|
|
775
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
776
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.stopSandbox']?.[localVarOperationServerIndex]?.url;
|
|
777
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
778
|
+
},
|
|
779
|
+
/**
|
|
780
|
+
*
|
|
781
|
+
* @summary Update public status
|
|
782
|
+
* @param {string} sandboxId ID of the sandbox
|
|
783
|
+
* @param {boolean} isPublic Public status to set
|
|
784
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
async updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options) {
|
|
789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options);
|
|
790
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
791
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.updatePublicStatus']?.[localVarOperationServerIndex]?.url;
|
|
792
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
793
|
+
},
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
exports.SandboxApiFp = SandboxApiFp;
|
|
797
|
+
/**
|
|
798
|
+
* SandboxApi - factory interface
|
|
799
|
+
* @export
|
|
800
|
+
*/
|
|
801
|
+
const SandboxApiFactory = function (configuration, basePath, axios) {
|
|
802
|
+
const localVarFp = (0, exports.SandboxApiFp)(configuration);
|
|
803
|
+
return {
|
|
804
|
+
/**
|
|
805
|
+
*
|
|
806
|
+
* @summary Archive sandbox
|
|
807
|
+
* @param {string} sandboxId
|
|
808
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
archiveSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
813
|
+
return localVarFp
|
|
814
|
+
.archiveSandbox(sandboxId, xDaytonaOrganizationID, options)
|
|
815
|
+
.then((request) => request(axios, basePath));
|
|
816
|
+
},
|
|
817
|
+
/**
|
|
818
|
+
*
|
|
819
|
+
* @summary Create sandbox backup
|
|
820
|
+
* @param {string} sandboxId ID of the sandbox
|
|
821
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
822
|
+
* @param {*} [options] Override http request option.
|
|
823
|
+
* @throws {RequiredError}
|
|
824
|
+
*/
|
|
825
|
+
createBackup(sandboxId, xDaytonaOrganizationID, options) {
|
|
826
|
+
return localVarFp
|
|
827
|
+
.createBackup(sandboxId, xDaytonaOrganizationID, options)
|
|
828
|
+
.then((request) => request(axios, basePath));
|
|
829
|
+
},
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @summary Create a new sandbox
|
|
833
|
+
* @param {CreateSandbox} createSandbox
|
|
834
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
*/
|
|
838
|
+
createSandbox(createSandbox, xDaytonaOrganizationID, options) {
|
|
839
|
+
return localVarFp
|
|
840
|
+
.createSandbox(createSandbox, xDaytonaOrganizationID, options)
|
|
841
|
+
.then((request) => request(axios, basePath));
|
|
842
|
+
},
|
|
843
|
+
/**
|
|
844
|
+
*
|
|
845
|
+
* @summary Delete sandbox
|
|
846
|
+
* @param {string} sandboxId ID of the sandbox
|
|
847
|
+
* @param {boolean} force
|
|
848
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
849
|
+
* @param {*} [options] Override http request option.
|
|
850
|
+
* @throws {RequiredError}
|
|
851
|
+
*/
|
|
852
|
+
deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options) {
|
|
853
|
+
return localVarFp
|
|
854
|
+
.deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options)
|
|
855
|
+
.then((request) => request(axios, basePath));
|
|
856
|
+
},
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @summary Get build logs
|
|
860
|
+
* @param {string} sandboxId ID of the sandbox
|
|
861
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
862
|
+
* @param {boolean} [follow] Whether to follow the logs stream
|
|
863
|
+
* @param {*} [options] Override http request option.
|
|
864
|
+
* @throws {RequiredError}
|
|
865
|
+
*/
|
|
866
|
+
getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options) {
|
|
867
|
+
return localVarFp
|
|
868
|
+
.getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options)
|
|
869
|
+
.then((request) => request(axios, basePath));
|
|
870
|
+
},
|
|
871
|
+
/**
|
|
872
|
+
*
|
|
873
|
+
* @summary Get preview URL for a sandbox port
|
|
874
|
+
* @param {string} sandboxId ID of the sandbox
|
|
875
|
+
* @param {number} port Port number to get preview URL for
|
|
876
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @throws {RequiredError}
|
|
879
|
+
*/
|
|
880
|
+
getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options) {
|
|
881
|
+
return localVarFp
|
|
882
|
+
.getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options)
|
|
883
|
+
.then((request) => request(axios, basePath));
|
|
884
|
+
},
|
|
885
|
+
/**
|
|
886
|
+
*
|
|
887
|
+
* @summary Get sandbox details
|
|
888
|
+
* @param {string} sandboxId ID of the sandbox
|
|
889
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
890
|
+
* @param {boolean} [verbose] Include verbose output
|
|
891
|
+
* @param {*} [options] Override http request option.
|
|
892
|
+
* @throws {RequiredError}
|
|
893
|
+
*/
|
|
894
|
+
getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options) {
|
|
895
|
+
return localVarFp
|
|
896
|
+
.getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options)
|
|
897
|
+
.then((request) => request(axios, basePath));
|
|
898
|
+
},
|
|
899
|
+
/**
|
|
900
|
+
*
|
|
901
|
+
* @summary List all sandboxes
|
|
902
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
903
|
+
* @param {boolean} [verbose] Include verbose output
|
|
904
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
*/
|
|
908
|
+
listSandboxes(xDaytonaOrganizationID, verbose, labels, options) {
|
|
909
|
+
return localVarFp
|
|
910
|
+
.listSandboxes(xDaytonaOrganizationID, verbose, labels, options)
|
|
911
|
+
.then((request) => request(axios, basePath));
|
|
912
|
+
},
|
|
913
|
+
/**
|
|
914
|
+
*
|
|
915
|
+
* @summary Replace sandbox labels
|
|
916
|
+
* @param {string} sandboxId ID of the sandbox
|
|
917
|
+
* @param {SandboxLabels} sandboxLabels
|
|
918
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
919
|
+
* @param {*} [options] Override http request option.
|
|
920
|
+
* @throws {RequiredError}
|
|
921
|
+
*/
|
|
922
|
+
replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options) {
|
|
923
|
+
return localVarFp
|
|
924
|
+
.replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options)
|
|
925
|
+
.then((request) => request(axios, basePath));
|
|
926
|
+
},
|
|
927
|
+
/**
|
|
928
|
+
*
|
|
929
|
+
* @summary Set sandbox auto-archive interval
|
|
930
|
+
* @param {string} sandboxId ID of the sandbox
|
|
931
|
+
* @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
|
|
932
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
933
|
+
* @param {*} [options] Override http request option.
|
|
934
|
+
* @throws {RequiredError}
|
|
935
|
+
*/
|
|
936
|
+
setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
|
|
937
|
+
return localVarFp
|
|
938
|
+
.setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options)
|
|
939
|
+
.then((request) => request(axios, basePath));
|
|
940
|
+
},
|
|
941
|
+
/**
|
|
942
|
+
*
|
|
943
|
+
* @summary Set sandbox auto-stop interval
|
|
944
|
+
* @param {string} sandboxId ID of the sandbox
|
|
945
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
946
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
947
|
+
* @param {*} [options] Override http request option.
|
|
948
|
+
* @throws {RequiredError}
|
|
949
|
+
*/
|
|
950
|
+
setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
|
|
951
|
+
return localVarFp
|
|
952
|
+
.setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options)
|
|
953
|
+
.then((request) => request(axios, basePath));
|
|
954
|
+
},
|
|
955
|
+
/**
|
|
956
|
+
*
|
|
957
|
+
* @summary Start sandbox
|
|
958
|
+
* @param {string} sandboxId ID of the sandbox
|
|
959
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
960
|
+
* @param {*} [options] Override http request option.
|
|
961
|
+
* @throws {RequiredError}
|
|
962
|
+
*/
|
|
963
|
+
startSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
964
|
+
return localVarFp
|
|
965
|
+
.startSandbox(sandboxId, xDaytonaOrganizationID, options)
|
|
966
|
+
.then((request) => request(axios, basePath));
|
|
967
|
+
},
|
|
968
|
+
/**
|
|
969
|
+
*
|
|
970
|
+
* @summary Stop sandbox
|
|
971
|
+
* @param {string} sandboxId ID of the sandbox
|
|
972
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
973
|
+
* @param {*} [options] Override http request option.
|
|
974
|
+
* @throws {RequiredError}
|
|
975
|
+
*/
|
|
976
|
+
stopSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
977
|
+
return localVarFp
|
|
978
|
+
.stopSandbox(sandboxId, xDaytonaOrganizationID, options)
|
|
979
|
+
.then((request) => request(axios, basePath));
|
|
980
|
+
},
|
|
981
|
+
/**
|
|
982
|
+
*
|
|
983
|
+
* @summary Update public status
|
|
984
|
+
* @param {string} sandboxId ID of the sandbox
|
|
985
|
+
* @param {boolean} isPublic Public status to set
|
|
986
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
987
|
+
* @param {*} [options] Override http request option.
|
|
988
|
+
* @throws {RequiredError}
|
|
989
|
+
*/
|
|
990
|
+
updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options) {
|
|
991
|
+
return localVarFp
|
|
992
|
+
.updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options)
|
|
993
|
+
.then((request) => request(axios, basePath));
|
|
994
|
+
},
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
exports.SandboxApiFactory = SandboxApiFactory;
|
|
998
|
+
/**
|
|
999
|
+
* SandboxApi - object-oriented interface
|
|
1000
|
+
* @export
|
|
1001
|
+
* @class SandboxApi
|
|
1002
|
+
* @extends {BaseAPI}
|
|
1003
|
+
*/
|
|
1004
|
+
class SandboxApi extends base_1.BaseAPI {
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @summary Archive sandbox
|
|
1008
|
+
* @param {string} sandboxId
|
|
1009
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
* @memberof SandboxApi
|
|
1013
|
+
*/
|
|
1014
|
+
archiveSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
1015
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1016
|
+
.archiveSandbox(sandboxId, xDaytonaOrganizationID, options)
|
|
1017
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
*
|
|
1021
|
+
* @summary Create sandbox backup
|
|
1022
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1023
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1024
|
+
* @param {*} [options] Override http request option.
|
|
1025
|
+
* @throws {RequiredError}
|
|
1026
|
+
* @memberof SandboxApi
|
|
1027
|
+
*/
|
|
1028
|
+
createBackup(sandboxId, xDaytonaOrganizationID, options) {
|
|
1029
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1030
|
+
.createBackup(sandboxId, xDaytonaOrganizationID, options)
|
|
1031
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
*
|
|
1035
|
+
* @summary Create a new sandbox
|
|
1036
|
+
* @param {CreateSandbox} createSandbox
|
|
1037
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1038
|
+
* @param {*} [options] Override http request option.
|
|
1039
|
+
* @throws {RequiredError}
|
|
1040
|
+
* @memberof SandboxApi
|
|
1041
|
+
*/
|
|
1042
|
+
createSandbox(createSandbox, xDaytonaOrganizationID, options) {
|
|
1043
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1044
|
+
.createSandbox(createSandbox, xDaytonaOrganizationID, options)
|
|
1045
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1046
|
+
}
|
|
1047
|
+
/**
|
|
1048
|
+
*
|
|
1049
|
+
* @summary Delete sandbox
|
|
1050
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1051
|
+
* @param {boolean} force
|
|
1052
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1053
|
+
* @param {*} [options] Override http request option.
|
|
1054
|
+
* @throws {RequiredError}
|
|
1055
|
+
* @memberof SandboxApi
|
|
1056
|
+
*/
|
|
1057
|
+
deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options) {
|
|
1058
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1059
|
+
.deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options)
|
|
1060
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
*
|
|
1064
|
+
* @summary Get build logs
|
|
1065
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1066
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1067
|
+
* @param {boolean} [follow] Whether to follow the logs stream
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
* @memberof SandboxApi
|
|
1071
|
+
*/
|
|
1072
|
+
getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options) {
|
|
1073
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1074
|
+
.getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options)
|
|
1075
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
*
|
|
1079
|
+
* @summary Get preview URL for a sandbox port
|
|
1080
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1081
|
+
* @param {number} port Port number to get preview URL for
|
|
1082
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1083
|
+
* @param {*} [options] Override http request option.
|
|
1084
|
+
* @throws {RequiredError}
|
|
1085
|
+
* @memberof SandboxApi
|
|
1086
|
+
*/
|
|
1087
|
+
getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options) {
|
|
1088
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1089
|
+
.getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options)
|
|
1090
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
*
|
|
1094
|
+
* @summary Get sandbox details
|
|
1095
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1096
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1097
|
+
* @param {boolean} [verbose] Include verbose output
|
|
1098
|
+
* @param {*} [options] Override http request option.
|
|
1099
|
+
* @throws {RequiredError}
|
|
1100
|
+
* @memberof SandboxApi
|
|
1101
|
+
*/
|
|
1102
|
+
getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options) {
|
|
1103
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1104
|
+
.getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options)
|
|
1105
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
* @summary List all sandboxes
|
|
1110
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1111
|
+
* @param {boolean} [verbose] Include verbose output
|
|
1112
|
+
* @param {string} [labels] JSON encoded labels to filter by
|
|
1113
|
+
* @param {*} [options] Override http request option.
|
|
1114
|
+
* @throws {RequiredError}
|
|
1115
|
+
* @memberof SandboxApi
|
|
1116
|
+
*/
|
|
1117
|
+
listSandboxes(xDaytonaOrganizationID, verbose, labels, options) {
|
|
1118
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1119
|
+
.listSandboxes(xDaytonaOrganizationID, verbose, labels, options)
|
|
1120
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
*
|
|
1124
|
+
* @summary Replace sandbox labels
|
|
1125
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1126
|
+
* @param {SandboxLabels} sandboxLabels
|
|
1127
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1128
|
+
* @param {*} [options] Override http request option.
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
* @memberof SandboxApi
|
|
1131
|
+
*/
|
|
1132
|
+
replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options) {
|
|
1133
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1134
|
+
.replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options)
|
|
1135
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
*
|
|
1139
|
+
* @summary Set sandbox auto-archive interval
|
|
1140
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1141
|
+
* @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
|
|
1142
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1143
|
+
* @param {*} [options] Override http request option.
|
|
1144
|
+
* @throws {RequiredError}
|
|
1145
|
+
* @memberof SandboxApi
|
|
1146
|
+
*/
|
|
1147
|
+
setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
|
|
1148
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1149
|
+
.setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options)
|
|
1150
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
*
|
|
1154
|
+
* @summary Set sandbox auto-stop interval
|
|
1155
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1156
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
1157
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1158
|
+
* @param {*} [options] Override http request option.
|
|
1159
|
+
* @throws {RequiredError}
|
|
1160
|
+
* @memberof SandboxApi
|
|
1161
|
+
*/
|
|
1162
|
+
setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
|
|
1163
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1164
|
+
.setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options)
|
|
1165
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
*
|
|
1169
|
+
* @summary Start sandbox
|
|
1170
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1171
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1172
|
+
* @param {*} [options] Override http request option.
|
|
1173
|
+
* @throws {RequiredError}
|
|
1174
|
+
* @memberof SandboxApi
|
|
1175
|
+
*/
|
|
1176
|
+
startSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
1177
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1178
|
+
.startSandbox(sandboxId, xDaytonaOrganizationID, options)
|
|
1179
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
*
|
|
1183
|
+
* @summary Stop sandbox
|
|
1184
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1185
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1186
|
+
* @param {*} [options] Override http request option.
|
|
1187
|
+
* @throws {RequiredError}
|
|
1188
|
+
* @memberof SandboxApi
|
|
1189
|
+
*/
|
|
1190
|
+
stopSandbox(sandboxId, xDaytonaOrganizationID, options) {
|
|
1191
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1192
|
+
.stopSandbox(sandboxId, xDaytonaOrganizationID, options)
|
|
1193
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
*
|
|
1197
|
+
* @summary Update public status
|
|
1198
|
+
* @param {string} sandboxId ID of the sandbox
|
|
1199
|
+
* @param {boolean} isPublic Public status to set
|
|
1200
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1201
|
+
* @param {*} [options] Override http request option.
|
|
1202
|
+
* @throws {RequiredError}
|
|
1203
|
+
* @memberof SandboxApi
|
|
1204
|
+
*/
|
|
1205
|
+
updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options) {
|
|
1206
|
+
return (0, exports.SandboxApiFp)(this.configuration)
|
|
1207
|
+
.updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options)
|
|
1208
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
exports.SandboxApi = SandboxApi;
|
|
1212
|
+
//# sourceMappingURL=sandbox-api.js.map
|