@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,227 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daytona
|
|
3
|
+
* Daytona AI platform API Docs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: support@daytona.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { CreateVolume } from '../models';
|
|
16
|
+
import type { VolumeDto } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* VolumesApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const VolumesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @summary Create a new volume
|
|
25
|
+
* @param {CreateVolume} createVolume
|
|
26
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
createVolume: (createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary Delete volume
|
|
34
|
+
* @param {string} volumeId ID of the volume
|
|
35
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
deleteVolume: (volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @summary Get volume details
|
|
43
|
+
* @param {string} volumeId ID of the volume
|
|
44
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
getVolume: (volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary Get volume details by name
|
|
52
|
+
* @param {string} name Name of the volume
|
|
53
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
getVolumeByName: (name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @summary List all volumes
|
|
61
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
62
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
listVolumes: (xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* VolumesApi - functional programming interface
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const VolumesApiFp: (configuration?: Configuration) => {
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @summary Create a new volume
|
|
76
|
+
* @param {CreateVolume} createVolume
|
|
77
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
createVolume(createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VolumeDto>>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @summary Delete volume
|
|
85
|
+
* @param {string} volumeId ID of the volume
|
|
86
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
deleteVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary Get volume details
|
|
94
|
+
* @param {string} volumeId ID of the volume
|
|
95
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
getVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VolumeDto>>;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @summary Get volume details by name
|
|
103
|
+
* @param {string} name Name of the volume
|
|
104
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
getVolumeByName(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VolumeDto>>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @summary List all volumes
|
|
112
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
113
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
listVolumes(xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VolumeDto>>>;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* VolumesApi - factory interface
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export declare const VolumesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @summary Create a new volume
|
|
127
|
+
* @param {CreateVolume} createVolume
|
|
128
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
createVolume(createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<VolumeDto>;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @summary Delete volume
|
|
136
|
+
* @param {string} volumeId ID of the volume
|
|
137
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
deleteVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary Get volume details
|
|
145
|
+
* @param {string} volumeId ID of the volume
|
|
146
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
getVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<VolumeDto>;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @summary Get volume details by name
|
|
154
|
+
* @param {string} name Name of the volume
|
|
155
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
getVolumeByName(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<VolumeDto>;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @summary List all volumes
|
|
163
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
164
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
listVolumes(xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<VolumeDto>>;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* VolumesApi - object-oriented interface
|
|
172
|
+
* @export
|
|
173
|
+
* @class VolumesApi
|
|
174
|
+
* @extends {BaseAPI}
|
|
175
|
+
*/
|
|
176
|
+
export declare class VolumesApi extends BaseAPI {
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @summary Create a new volume
|
|
180
|
+
* @param {CreateVolume} createVolume
|
|
181
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
* @memberof VolumesApi
|
|
185
|
+
*/
|
|
186
|
+
createVolume(createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto, any>>;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @summary Delete volume
|
|
190
|
+
* @param {string} volumeId ID of the volume
|
|
191
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
* @memberof VolumesApi
|
|
195
|
+
*/
|
|
196
|
+
deleteVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @summary Get volume details
|
|
200
|
+
* @param {string} volumeId ID of the volume
|
|
201
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
* @memberof VolumesApi
|
|
205
|
+
*/
|
|
206
|
+
getVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto, any>>;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @summary Get volume details by name
|
|
210
|
+
* @param {string} name Name of the volume
|
|
211
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
* @memberof VolumesApi
|
|
215
|
+
*/
|
|
216
|
+
getVolumeByName(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto, any>>;
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* @summary List all volumes
|
|
220
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
221
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
* @memberof VolumesApi
|
|
225
|
+
*/
|
|
226
|
+
listVolumes(xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto[], any>>;
|
|
227
|
+
}
|
|
@@ -0,0 +1,447 @@
|
|
|
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.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = exports.VolumesApiAxiosParamCreator = 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
|
+
* VolumesApi - axios parameter creator
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
const VolumesApiAxiosParamCreator = function (configuration) {
|
|
28
|
+
return {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @summary Create a new volume
|
|
32
|
+
* @param {CreateVolume} createVolume
|
|
33
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
createVolume: async (createVolume, xDaytonaOrganizationID, options = {}) => {
|
|
38
|
+
// verify required parameter 'createVolume' is not null or undefined
|
|
39
|
+
(0, common_1.assertParamExists)('createVolume', 'createVolume', createVolume);
|
|
40
|
+
const localVarPath = `/volumes`;
|
|
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
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
55
|
+
if (xDaytonaOrganizationID != null) {
|
|
56
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
57
|
+
}
|
|
58
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
59
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
60
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
61
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVolume, localVarRequestOptions, configuration);
|
|
62
|
+
return {
|
|
63
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
64
|
+
options: localVarRequestOptions,
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @summary Delete volume
|
|
70
|
+
* @param {string} volumeId ID of the volume
|
|
71
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
*/
|
|
75
|
+
deleteVolume: async (volumeId, xDaytonaOrganizationID, options = {}) => {
|
|
76
|
+
// verify required parameter 'volumeId' is not null or undefined
|
|
77
|
+
(0, common_1.assertParamExists)('deleteVolume', 'volumeId', volumeId);
|
|
78
|
+
const localVarPath = `/volumes/{volumeId}`.replace(`{${'volumeId'}}`, encodeURIComponent(String(volumeId)));
|
|
79
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
81
|
+
let baseOptions;
|
|
82
|
+
if (configuration) {
|
|
83
|
+
baseOptions = configuration.baseOptions;
|
|
84
|
+
}
|
|
85
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
86
|
+
const localVarHeaderParameter = {};
|
|
87
|
+
const localVarQueryParameter = {};
|
|
88
|
+
// authentication bearer required
|
|
89
|
+
// http bearer authentication required
|
|
90
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
91
|
+
// authentication oauth2 required
|
|
92
|
+
if (xDaytonaOrganizationID != null) {
|
|
93
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
94
|
+
}
|
|
95
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
96
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
97
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
98
|
+
return {
|
|
99
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary Get volume details
|
|
106
|
+
* @param {string} volumeId ID of the volume
|
|
107
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
getVolume: async (volumeId, xDaytonaOrganizationID, options = {}) => {
|
|
112
|
+
// verify required parameter 'volumeId' is not null or undefined
|
|
113
|
+
(0, common_1.assertParamExists)('getVolume', 'volumeId', volumeId);
|
|
114
|
+
const localVarPath = `/volumes/{volumeId}`.replace(`{${'volumeId'}}`, encodeURIComponent(String(volumeId)));
|
|
115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
let baseOptions;
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
}
|
|
121
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
122
|
+
const localVarHeaderParameter = {};
|
|
123
|
+
const localVarQueryParameter = {};
|
|
124
|
+
// authentication bearer required
|
|
125
|
+
// http bearer authentication required
|
|
126
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
127
|
+
// authentication oauth2 required
|
|
128
|
+
if (xDaytonaOrganizationID != null) {
|
|
129
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
130
|
+
}
|
|
131
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
134
|
+
return {
|
|
135
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @summary Get volume details by name
|
|
142
|
+
* @param {string} name Name of the volume
|
|
143
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
getVolumeByName: async (name, xDaytonaOrganizationID, options = {}) => {
|
|
148
|
+
// verify required parameter 'name' is not null or undefined
|
|
149
|
+
(0, common_1.assertParamExists)('getVolumeByName', 'name', name);
|
|
150
|
+
const localVarPath = `/volumes/by-name/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
|
|
151
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
153
|
+
let baseOptions;
|
|
154
|
+
if (configuration) {
|
|
155
|
+
baseOptions = configuration.baseOptions;
|
|
156
|
+
}
|
|
157
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
158
|
+
const localVarHeaderParameter = {};
|
|
159
|
+
const localVarQueryParameter = {};
|
|
160
|
+
// authentication bearer required
|
|
161
|
+
// http bearer authentication required
|
|
162
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
163
|
+
// authentication oauth2 required
|
|
164
|
+
if (xDaytonaOrganizationID != null) {
|
|
165
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
166
|
+
}
|
|
167
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
170
|
+
return {
|
|
171
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
172
|
+
options: localVarRequestOptions,
|
|
173
|
+
};
|
|
174
|
+
},
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @summary List all volumes
|
|
178
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
179
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
*/
|
|
183
|
+
listVolumes: async (xDaytonaOrganizationID, includeDeleted, options = {}) => {
|
|
184
|
+
const localVarPath = `/volumes`;
|
|
185
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
186
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
187
|
+
let baseOptions;
|
|
188
|
+
if (configuration) {
|
|
189
|
+
baseOptions = configuration.baseOptions;
|
|
190
|
+
}
|
|
191
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
192
|
+
const localVarHeaderParameter = {};
|
|
193
|
+
const localVarQueryParameter = {};
|
|
194
|
+
// authentication bearer required
|
|
195
|
+
// http bearer authentication required
|
|
196
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
197
|
+
// authentication oauth2 required
|
|
198
|
+
if (includeDeleted !== undefined) {
|
|
199
|
+
localVarQueryParameter['includeDeleted'] = includeDeleted;
|
|
200
|
+
}
|
|
201
|
+
if (xDaytonaOrganizationID != null) {
|
|
202
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
203
|
+
}
|
|
204
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
205
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
206
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
207
|
+
return {
|
|
208
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
209
|
+
options: localVarRequestOptions,
|
|
210
|
+
};
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
exports.VolumesApiAxiosParamCreator = VolumesApiAxiosParamCreator;
|
|
215
|
+
/**
|
|
216
|
+
* VolumesApi - functional programming interface
|
|
217
|
+
* @export
|
|
218
|
+
*/
|
|
219
|
+
const VolumesApiFp = function (configuration) {
|
|
220
|
+
const localVarAxiosParamCreator = (0, exports.VolumesApiAxiosParamCreator)(configuration);
|
|
221
|
+
return {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @summary Create a new volume
|
|
225
|
+
* @param {CreateVolume} createVolume
|
|
226
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
async createVolume(createVolume, xDaytonaOrganizationID, options) {
|
|
231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createVolume(createVolume, xDaytonaOrganizationID, options);
|
|
232
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
233
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VolumesApi.createVolume']?.[localVarOperationServerIndex]?.url;
|
|
234
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @summary Delete volume
|
|
239
|
+
* @param {string} volumeId ID of the volume
|
|
240
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
async deleteVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
245
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteVolume(volumeId, xDaytonaOrganizationID, options);
|
|
246
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
247
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VolumesApi.deleteVolume']?.[localVarOperationServerIndex]?.url;
|
|
248
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
249
|
+
},
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @summary Get volume details
|
|
253
|
+
* @param {string} volumeId ID of the volume
|
|
254
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
*/
|
|
258
|
+
async getVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
259
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVolume(volumeId, xDaytonaOrganizationID, options);
|
|
260
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
261
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VolumesApi.getVolume']?.[localVarOperationServerIndex]?.url;
|
|
262
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Get volume details by name
|
|
267
|
+
* @param {string} name Name of the volume
|
|
268
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
async getVolumeByName(name, xDaytonaOrganizationID, options) {
|
|
273
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVolumeByName(name, xDaytonaOrganizationID, options);
|
|
274
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
275
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VolumesApi.getVolumeByName']?.[localVarOperationServerIndex]?.url;
|
|
276
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
277
|
+
},
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @summary List all volumes
|
|
281
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
282
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
async listVolumes(xDaytonaOrganizationID, includeDeleted, options) {
|
|
287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listVolumes(xDaytonaOrganizationID, includeDeleted, options);
|
|
288
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
289
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VolumesApi.listVolumes']?.[localVarOperationServerIndex]?.url;
|
|
290
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
291
|
+
},
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
exports.VolumesApiFp = VolumesApiFp;
|
|
295
|
+
/**
|
|
296
|
+
* VolumesApi - factory interface
|
|
297
|
+
* @export
|
|
298
|
+
*/
|
|
299
|
+
const VolumesApiFactory = function (configuration, basePath, axios) {
|
|
300
|
+
const localVarFp = (0, exports.VolumesApiFp)(configuration);
|
|
301
|
+
return {
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @summary Create a new volume
|
|
305
|
+
* @param {CreateVolume} createVolume
|
|
306
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
307
|
+
* @param {*} [options] Override http request option.
|
|
308
|
+
* @throws {RequiredError}
|
|
309
|
+
*/
|
|
310
|
+
createVolume(createVolume, xDaytonaOrganizationID, options) {
|
|
311
|
+
return localVarFp
|
|
312
|
+
.createVolume(createVolume, xDaytonaOrganizationID, options)
|
|
313
|
+
.then((request) => request(axios, basePath));
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @summary Delete volume
|
|
318
|
+
* @param {string} volumeId ID of the volume
|
|
319
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
*/
|
|
323
|
+
deleteVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
324
|
+
return localVarFp
|
|
325
|
+
.deleteVolume(volumeId, xDaytonaOrganizationID, options)
|
|
326
|
+
.then((request) => request(axios, basePath));
|
|
327
|
+
},
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @summary Get volume details
|
|
331
|
+
* @param {string} volumeId ID of the volume
|
|
332
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
getVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
337
|
+
return localVarFp.getVolume(volumeId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
338
|
+
},
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @summary Get volume details by name
|
|
342
|
+
* @param {string} name Name of the volume
|
|
343
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
*/
|
|
347
|
+
getVolumeByName(name, xDaytonaOrganizationID, options) {
|
|
348
|
+
return localVarFp
|
|
349
|
+
.getVolumeByName(name, xDaytonaOrganizationID, options)
|
|
350
|
+
.then((request) => request(axios, basePath));
|
|
351
|
+
},
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* @summary List all volumes
|
|
355
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
356
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
listVolumes(xDaytonaOrganizationID, includeDeleted, options) {
|
|
361
|
+
return localVarFp
|
|
362
|
+
.listVolumes(xDaytonaOrganizationID, includeDeleted, options)
|
|
363
|
+
.then((request) => request(axios, basePath));
|
|
364
|
+
},
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
exports.VolumesApiFactory = VolumesApiFactory;
|
|
368
|
+
/**
|
|
369
|
+
* VolumesApi - object-oriented interface
|
|
370
|
+
* @export
|
|
371
|
+
* @class VolumesApi
|
|
372
|
+
* @extends {BaseAPI}
|
|
373
|
+
*/
|
|
374
|
+
class VolumesApi extends base_1.BaseAPI {
|
|
375
|
+
/**
|
|
376
|
+
*
|
|
377
|
+
* @summary Create a new volume
|
|
378
|
+
* @param {CreateVolume} createVolume
|
|
379
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
* @memberof VolumesApi
|
|
383
|
+
*/
|
|
384
|
+
createVolume(createVolume, xDaytonaOrganizationID, options) {
|
|
385
|
+
return (0, exports.VolumesApiFp)(this.configuration)
|
|
386
|
+
.createVolume(createVolume, xDaytonaOrganizationID, options)
|
|
387
|
+
.then((request) => request(this.axios, this.basePath));
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @summary Delete volume
|
|
392
|
+
* @param {string} volumeId ID of the volume
|
|
393
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
* @memberof VolumesApi
|
|
397
|
+
*/
|
|
398
|
+
deleteVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
399
|
+
return (0, exports.VolumesApiFp)(this.configuration)
|
|
400
|
+
.deleteVolume(volumeId, xDaytonaOrganizationID, options)
|
|
401
|
+
.then((request) => request(this.axios, this.basePath));
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @summary Get volume details
|
|
406
|
+
* @param {string} volumeId ID of the volume
|
|
407
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
408
|
+
* @param {*} [options] Override http request option.
|
|
409
|
+
* @throws {RequiredError}
|
|
410
|
+
* @memberof VolumesApi
|
|
411
|
+
*/
|
|
412
|
+
getVolume(volumeId, xDaytonaOrganizationID, options) {
|
|
413
|
+
return (0, exports.VolumesApiFp)(this.configuration)
|
|
414
|
+
.getVolume(volumeId, xDaytonaOrganizationID, options)
|
|
415
|
+
.then((request) => request(this.axios, this.basePath));
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
* @summary Get volume details by name
|
|
420
|
+
* @param {string} name Name of the volume
|
|
421
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
* @memberof VolumesApi
|
|
425
|
+
*/
|
|
426
|
+
getVolumeByName(name, xDaytonaOrganizationID, options) {
|
|
427
|
+
return (0, exports.VolumesApiFp)(this.configuration)
|
|
428
|
+
.getVolumeByName(name, xDaytonaOrganizationID, options)
|
|
429
|
+
.then((request) => request(this.axios, this.basePath));
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
* @summary List all volumes
|
|
434
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
435
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
* @memberof VolumesApi
|
|
439
|
+
*/
|
|
440
|
+
listVolumes(xDaytonaOrganizationID, includeDeleted, options) {
|
|
441
|
+
return (0, exports.VolumesApiFp)(this.configuration)
|
|
442
|
+
.listVolumes(xDaytonaOrganizationID, includeDeleted, options)
|
|
443
|
+
.then((request) => request(this.axios, this.basePath));
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
exports.VolumesApi = VolumesApi;
|
|
447
|
+
//# sourceMappingURL=volumes-api.js.map
|