@daytonaio/api-client 0.18.0-alpha.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -8
- 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/images-api.d.ts +317 -0
- package/src/api/images-api.js +624 -0
- package/src/api/images-api.js.map +1 -0
- package/src/api/nodes-api.d.ts +136 -0
- package/src/api/nodes-api.js +261 -0
- package/src/api/nodes-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/toolbox-api.d.ts +1599 -0
- package/src/api/toolbox-api.js +3250 -0
- package/src/api/toolbox-api.js.map +1 -0
- package/src/api/users-api.d.ts +166 -0
- package/src/api/users-api.js +311 -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 +516 -0
- package/src/api/workspace-api.js +1043 -0
- package/src/api/workspace-api.js.map +1 -0
- package/src/api.d.ts +22 -0
- package/src/api.js +28 -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 +20 -0
- package/src/index.js.map +1 -0
- package/src/models/api-key-list.d.ts +54 -0
- package/src/models/api-key-list.js +28 -0
- package/src/models/api-key-list.js.map +1 -0
- package/src/models/api-key-response.d.ts +54 -0
- package/src/models/api-key-response.js +28 -0
- package/src/models/api-key-response.js.map +1 -0
- package/src/models/build-image.d.ts +31 -0
- package/src/models/build-image.js +16 -0
- package/src/models/build-image.js.map +1 -0
- package/src/models/{command.ts → command.d.ts} +18 -21
- package/src/models/command.js +16 -0
- package/src/models/command.js.map +1 -0
- package/src/models/{completion-context.ts → completion-context.d.ts} +12 -15
- package/src/models/completion-context.js +16 -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 +16 -0
- package/src/models/completion-item.js.map +1 -0
- package/src/models/{completion-list.ts → completion-list.d.ts} +13 -19
- 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 +42 -0
- package/src/models/create-api-key.js +28 -0
- package/src/models/create-api-key.js.map +1 -0
- package/src/models/{create-build-info.ts → create-build-info.d.ts} +12 -15
- package/src/models/create-build-info.js +16 -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 +23 -0
- package/src/models/create-docker-registry.js.map +1 -0
- package/src/models/create-image.d.ts +36 -0
- package/src/models/create-image.js +16 -0
- package/src/models/create-image.js.map +1 -0
- package/src/models/create-node.d.ts +96 -0
- package/src/models/create-node.js +27 -0
- package/src/models/create-node.js.map +1 -0
- package/src/models/create-organization-invitation.d.ts +47 -0
- package/src/models/create-organization-invitation.js +21 -0
- package/src/models/create-organization-invitation.js.map +1 -0
- package/src/models/create-organization-quota.d.ts +84 -0
- package/src/models/create-organization-quota.js +16 -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 +28 -0
- package/src/models/create-organization-role.js.map +1 -0
- package/src/models/{create-organization.ts → create-organization.d.ts} +6 -9
- package/src/models/create-organization.js +16 -0
- package/src/models/create-organization.js.map +1 -0
- package/src/models/{create-session-request.ts → create-session-request.d.ts} +6 -9
- package/src/models/create-session-request.js +16 -0
- package/src/models/create-session-request.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.ts → create-volume.d.ts} +6 -9
- package/src/models/create-volume.js +16 -0
- package/src/models/create-volume.js.map +1 -0
- package/src/models/create-workspace.d.ts +120 -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 +23 -0
- package/src/models/docker-registry.js.map +1 -0
- package/src/models/{execute-request.ts → execute-request.d.ts} +18 -21
- package/src/models/execute-request.js +16 -0
- package/src/models/execute-request.js.map +1 -0
- package/src/models/{execute-response.ts → execute-response.d.ts} +12 -15
- package/src/models/execute-response.js +16 -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 +16 -0
- package/src/models/file-info.js.map +1 -0
- package/src/models/{file-status.ts → file-status.d.ts} +24 -27
- package/src/models/file-status.js +16 -0
- package/src/models/file-status.js.map +1 -0
- package/src/models/{git-add-request.ts → git-add-request.d.ts} +12 -15
- package/src/models/git-add-request.js +16 -0
- package/src/models/git-add-request.js.map +1 -0
- package/src/models/{git-branch-request.ts → git-branch-request.d.ts} +12 -15
- package/src/models/git-branch-request.js +16 -0
- package/src/models/git-branch-request.js.map +1 -0
- package/src/models/git-clone-request.d.ts +54 -0
- package/src/models/git-clone-request.js +16 -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 +16 -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 +16 -0
- package/src/models/git-commit-request.js.map +1 -0
- package/src/models/{git-commit-response.ts → git-commit-response.d.ts} +6 -9
- package/src/models/git-commit-response.js +16 -0
- package/src/models/git-commit-response.js.map +1 -0
- package/src/models/{git-repo-request.ts → git-repo-request.d.ts} +18 -21
- package/src/models/git-repo-request.js +16 -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/image-dto.d.ts +91 -0
- package/src/models/image-dto.js +16 -0
- package/src/models/image-dto.js.map +1 -0
- package/src/models/{image-state.ts → image-state.d.ts} +12 -17
- package/src/models/image-state.js +33 -0
- package/src/models/image-state.js.map +1 -0
- package/src/models/index.d.ts +77 -0
- package/src/models/index.js +81 -0
- package/src/models/index.js.map +1 -0
- package/src/models/{list-branch-response.ts → list-branch-response.d.ts} +6 -9
- package/src/models/list-branch-response.js +16 -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.ts → lsp-document-request.d.ts} +18 -21
- package/src/models/lsp-document-request.js +16 -0
- package/src/models/lsp-document-request.js.map +1 -0
- package/src/models/{lsp-location.ts → lsp-location.d.ts} +13 -19
- package/src/models/lsp-location.js +16 -0
- package/src/models/lsp-location.js.map +1 -0
- package/src/models/{lsp-server-request.ts → lsp-server-request.d.ts} +12 -15
- package/src/models/lsp-server-request.js +16 -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.ts → match.d.ts} +18 -21
- package/src/models/match.js +16 -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 +28 -0
- package/src/models/organization-role.js.map +1 -0
- package/src/models/{organization-suspension.ts → organization-suspension.d.ts} +12 -15
- package/src/models/organization-suspension.js +16 -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 +16 -0
- package/src/models/organization.js.map +1 -0
- package/src/models/paginated-images-dto.d.ts +43 -0
- package/src/models/paginated-images-dto.js +16 -0
- package/src/models/paginated-images-dto.js.map +1 -0
- package/src/models/{port-preview-url.ts → port-preview-url.d.ts} +12 -15
- package/src/models/port-preview-url.js +16 -0
- package/src/models/port-preview-url.js.map +1 -0
- package/src/models/{position.ts → position.d.ts} +12 -15
- package/src/models/position.js +16 -0
- package/src/models/position.js.map +1 -0
- package/src/models/{project-dir-response.ts → project-dir-response.d.ts} +6 -9
- package/src/models/project-dir-response.js +16 -0
- package/src/models/project-dir-response.js.map +1 -0
- package/src/models/{range.ts → range.d.ts} +13 -19
- 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 +16 -0
- package/src/models/registry-push-access-dto.js.map +1 -0
- package/src/models/{replace-request.ts → replace-request.d.ts} +18 -21
- package/src/models/replace-request.js +16 -0
- package/src/models/replace-request.js.map +1 -0
- package/src/models/{replace-result.ts → replace-result.d.ts} +18 -21
- package/src/models/replace-result.js +16 -0
- package/src/models/replace-result.js.map +1 -0
- package/src/models/{search-files-response.ts → search-files-response.d.ts} +6 -9
- package/src/models/search-files-response.js +16 -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 +16 -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 +16 -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-image-general-status.ts → set-image-general-status.d.ts} +6 -9
- package/src/models/set-image-general-status.js +16 -0
- package/src/models/set-image-general-status.js.map +1 -0
- package/src/models/storage-access-dto.d.ts +54 -0
- package/src/models/storage-access-dto.js +16 -0
- package/src/models/storage-access-dto.js.map +1 -0
- package/src/models/{toggle-state.ts → toggle-state.d.ts} +6 -9
- package/src/models/toggle-state.js +16 -0
- package/src/models/toggle-state.js.map +1 -0
- package/src/models/{update-assigned-organization-roles.ts → update-assigned-organization-roles.d.ts} +6 -9
- package/src/models/update-assigned-organization-roles.js +16 -0
- package/src/models/update-assigned-organization-roles.js.map +1 -0
- package/src/models/{update-docker-registry.ts → update-docker-registry.d.ts} +18 -21
- package/src/models/update-docker-registry.js +16 -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 +21 -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 +21 -0
- package/src/models/update-organization-member-role.js.map +1 -0
- package/src/models/update-organization-quota.d.ts +84 -0
- package/src/models/update-organization-quota.js +16 -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 +28 -0
- package/src/models/update-organization-role.js.map +1 -0
- package/src/models/usage-overview.d.ts +108 -0
- package/src/models/usage-overview.js +16 -0
- package/src/models/usage-overview.js.map +1 -0
- package/src/models/{user-public-key.ts → user-public-key.d.ts} +12 -15
- package/src/models/user-public-key.js +16 -0
- package/src/models/user-public-key.js.map +1 -0
- package/src/models/user.d.ts +43 -0
- package/src/{index.ts → models/user.js} +3 -4
- package/src/models/user.js.map +1 -0
- package/src/models/volume-dto.d.ts +70 -0
- package/src/models/volume-dto.js +26 -0
- package/src/models/volume-dto.js.map +1 -0
- package/src/models/workspace-info.d.ts +37 -0
- package/src/models/workspace-info.js +16 -0
- package/src/models/workspace-info.js.map +1 -0
- package/src/models/{workspace-labels.ts → workspace-labels.d.ts} +8 -9
- package/src/models/workspace-labels.js +16 -0
- package/src/models/workspace-labels.js.map +1 -0
- package/src/models/workspace-state.d.ts +34 -0
- package/src/models/workspace-state.js +39 -0
- package/src/models/workspace-state.js.map +1 -0
- package/src/models/{workspace-volume.ts → workspace-volume.d.ts} +12 -15
- package/src/models/workspace-volume.js +16 -0
- package/src/models/workspace-volume.js.map +1 -0
- package/src/models/workspace.d.ts +154 -0
- package/src/models/workspace.js +24 -0
- package/src/models/workspace.js.map +1 -0
- package/project.json +0 -55
- package/src/.openapi-generator/FILES +0 -97
- package/src/.openapi-generator/VERSION +0 -1
- package/src/.openapi-generator-ignore +0 -23
- package/src/api/api-keys-api.ts +0 -553
- package/src/api/docker-registry-api.ts +0 -800
- package/src/api/images-api.ts +0 -957
- package/src/api/nodes-api.ts +0 -319
- package/src/api/object-storage-api.ts +0 -159
- package/src/api/organizations-api.ts +0 -2641
- package/src/api/preview-api.ts +0 -328
- package/src/api/toolbox-api.ts +0 -4879
- package/src/api/users-api.ts +0 -382
- package/src/api/volumes-api.ts +0 -594
- package/src/api/workspace-api.ts +0 -1610
- package/src/api.ts +0 -25
- package/src/base.ts +0 -91
- package/src/common.ts +0 -162
- package/src/configuration.ts +0 -122
- package/src/git_push.sh +0 -57
- package/src/models/api-key-list.ts +0 -59
- package/src/models/api-key-response.ts +0 -60
- package/src/models/build-image.ts +0 -37
- package/src/models/build-info.ts +0 -51
- package/src/models/completion-item.ts +0 -63
- package/src/models/create-api-key.ts +0 -47
- package/src/models/create-docker-registry.ts +0 -73
- package/src/models/create-image.ts +0 -39
- package/src/models/create-node.ts +0 -102
- package/src/models/create-organization-invitation.ts +0 -53
- package/src/models/create-organization-quota.ts +0 -87
- package/src/models/create-organization-role.ts +0 -54
- package/src/models/create-user.ts +0 -68
- package/src/models/create-workspace.ts +0 -127
- package/src/models/docker-registry.ts +0 -79
- package/src/models/file-info.ts +0 -69
- package/src/models/get-build-logs400-response.ts +0 -33
- package/src/models/git-clone-request.ts +0 -57
- package/src/models/git-commit-info.ts +0 -51
- package/src/models/git-commit-request.ts +0 -45
- package/src/models/git-status.ts +0 -55
- package/src/models/image-dto.ts +0 -97
- package/src/models/index.ts +0 -77
- package/src/models/lsp-completion-params.ts +0 -58
- package/src/models/lsp-symbol.ts +0 -43
- package/src/models/organization-invitation.ts +0 -108
- package/src/models/organization-role.ts +0 -78
- package/src/models/organization-user.ts +0 -80
- package/src/models/organization.ts +0 -81
- package/src/models/paginated-images-dto.ts +0 -49
- package/src/models/registry-push-access-dto.ts +0 -57
- package/src/models/session-execute-request.ts +0 -40
- package/src/models/session-execute-response.ts +0 -39
- package/src/models/session.ts +0 -37
- package/src/models/storage-access-dto.ts +0 -63
- package/src/models/update-organization-invitation.ts +0 -47
- package/src/models/update-organization-member-role.ts +0 -35
- package/src/models/update-organization-quota.ts +0 -87
- package/src/models/update-organization-role.ts +0 -54
- package/src/models/usage-overview.ts +0 -111
- package/src/models/user.ts +0 -49
- package/src/models/volume-dto.ts +0 -75
- package/src/models/workspace-info.ts +0 -40
- package/src/models/workspace-state.ts +0 -39
- package/src/models/workspace.ts +0 -162
- package/tsconfig.json +0 -20
- package/tsconfig.lib.json +0 -9
|
@@ -1,800 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Daytona
|
|
5
|
-
* Daytona AI platform API Docs
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: support@daytona.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import type { Configuration } from '../configuration'
|
|
16
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'
|
|
17
|
-
import globalAxios from 'axios'
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import {
|
|
21
|
-
DUMMY_BASE_URL,
|
|
22
|
-
assertParamExists,
|
|
23
|
-
setApiKeyToObject,
|
|
24
|
-
setBasicAuthToObject,
|
|
25
|
-
setBearerAuthToObject,
|
|
26
|
-
setOAuthToObject,
|
|
27
|
-
setSearchParams,
|
|
28
|
-
serializeDataIfNeeded,
|
|
29
|
-
toPathString,
|
|
30
|
-
createRequestFunction,
|
|
31
|
-
} from '../common'
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
import type { CreateDockerRegistry } from '../models'
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
import type { DockerRegistry } from '../models'
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
import type { RegistryPushAccessDto } from '../models'
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
import type { UpdateDockerRegistry } from '../models'
|
|
42
|
-
/**
|
|
43
|
-
* DockerRegistryApi - axios parameter creator
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
|
-
export const DockerRegistryApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
47
|
-
return {
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @summary Create registry
|
|
51
|
-
* @param {CreateDockerRegistry} createDockerRegistry
|
|
52
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
53
|
-
* @param {*} [options] Override http request option.
|
|
54
|
-
* @throws {RequiredError}
|
|
55
|
-
*/
|
|
56
|
-
createRegistry: async (
|
|
57
|
-
createDockerRegistry: CreateDockerRegistry,
|
|
58
|
-
xDaytonaOrganizationID?: string,
|
|
59
|
-
options: RawAxiosRequestConfig = {},
|
|
60
|
-
): Promise<RequestArgs> => {
|
|
61
|
-
// verify required parameter 'createDockerRegistry' is not null or undefined
|
|
62
|
-
assertParamExists('createRegistry', 'createDockerRegistry', createDockerRegistry)
|
|
63
|
-
const localVarPath = `/docker-registry`
|
|
64
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
66
|
-
let baseOptions
|
|
67
|
-
if (configuration) {
|
|
68
|
-
baseOptions = configuration.baseOptions
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
72
|
-
const localVarHeaderParameter = {} as any
|
|
73
|
-
const localVarQueryParameter = {} as any
|
|
74
|
-
|
|
75
|
-
// authentication bearer required
|
|
76
|
-
// http bearer authentication required
|
|
77
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
78
|
-
|
|
79
|
-
// authentication oauth2 required
|
|
80
|
-
|
|
81
|
-
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
82
|
-
|
|
83
|
-
if (xDaytonaOrganizationID != null) {
|
|
84
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
85
|
-
}
|
|
86
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
87
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
88
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
89
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createDockerRegistry, localVarRequestOptions, configuration)
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
url: toPathString(localVarUrlObj),
|
|
93
|
-
options: localVarRequestOptions,
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @summary Delete registry
|
|
99
|
-
* @param {string} id ID of the docker registry
|
|
100
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
101
|
-
* @param {*} [options] Override http request option.
|
|
102
|
-
* @throws {RequiredError}
|
|
103
|
-
*/
|
|
104
|
-
deleteRegistry: async (
|
|
105
|
-
id: string,
|
|
106
|
-
xDaytonaOrganizationID?: string,
|
|
107
|
-
options: RawAxiosRequestConfig = {},
|
|
108
|
-
): Promise<RequestArgs> => {
|
|
109
|
-
// verify required parameter 'id' is not null or undefined
|
|
110
|
-
assertParamExists('deleteRegistry', 'id', id)
|
|
111
|
-
const localVarPath = `/docker-registry/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
112
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
113
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
114
|
-
let baseOptions
|
|
115
|
-
if (configuration) {
|
|
116
|
-
baseOptions = configuration.baseOptions
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
|
120
|
-
const localVarHeaderParameter = {} as any
|
|
121
|
-
const localVarQueryParameter = {} as any
|
|
122
|
-
|
|
123
|
-
// authentication bearer required
|
|
124
|
-
// http bearer authentication required
|
|
125
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
126
|
-
|
|
127
|
-
// authentication oauth2 required
|
|
128
|
-
|
|
129
|
-
if (xDaytonaOrganizationID != null) {
|
|
130
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
131
|
-
}
|
|
132
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
133
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
134
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
135
|
-
|
|
136
|
-
return {
|
|
137
|
-
url: toPathString(localVarUrlObj),
|
|
138
|
-
options: localVarRequestOptions,
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @summary Get registry
|
|
144
|
-
* @param {string} id ID of the docker registry
|
|
145
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
146
|
-
* @param {*} [options] Override http request option.
|
|
147
|
-
* @throws {RequiredError}
|
|
148
|
-
*/
|
|
149
|
-
getRegistry: async (
|
|
150
|
-
id: string,
|
|
151
|
-
xDaytonaOrganizationID?: string,
|
|
152
|
-
options: RawAxiosRequestConfig = {},
|
|
153
|
-
): Promise<RequestArgs> => {
|
|
154
|
-
// verify required parameter 'id' is not null or undefined
|
|
155
|
-
assertParamExists('getRegistry', 'id', id)
|
|
156
|
-
const localVarPath = `/docker-registry/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
157
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
158
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
159
|
-
let baseOptions
|
|
160
|
-
if (configuration) {
|
|
161
|
-
baseOptions = configuration.baseOptions
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
165
|
-
const localVarHeaderParameter = {} as any
|
|
166
|
-
const localVarQueryParameter = {} as any
|
|
167
|
-
|
|
168
|
-
// authentication bearer required
|
|
169
|
-
// http bearer authentication required
|
|
170
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
171
|
-
|
|
172
|
-
// authentication oauth2 required
|
|
173
|
-
|
|
174
|
-
if (xDaytonaOrganizationID != null) {
|
|
175
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
176
|
-
}
|
|
177
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
178
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
179
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
180
|
-
|
|
181
|
-
return {
|
|
182
|
-
url: toPathString(localVarUrlObj),
|
|
183
|
-
options: localVarRequestOptions,
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
* @summary Get temporary registry access for pushing images
|
|
189
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
190
|
-
* @param {*} [options] Override http request option.
|
|
191
|
-
* @throws {RequiredError}
|
|
192
|
-
*/
|
|
193
|
-
getTransientPushAccess: async (
|
|
194
|
-
xDaytonaOrganizationID?: string,
|
|
195
|
-
options: RawAxiosRequestConfig = {},
|
|
196
|
-
): Promise<RequestArgs> => {
|
|
197
|
-
const localVarPath = `/docker-registry/registry-push-access`
|
|
198
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
200
|
-
let baseOptions
|
|
201
|
-
if (configuration) {
|
|
202
|
-
baseOptions = configuration.baseOptions
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
206
|
-
const localVarHeaderParameter = {} as any
|
|
207
|
-
const localVarQueryParameter = {} as any
|
|
208
|
-
|
|
209
|
-
// authentication bearer required
|
|
210
|
-
// http bearer authentication required
|
|
211
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
212
|
-
|
|
213
|
-
// authentication oauth2 required
|
|
214
|
-
|
|
215
|
-
if (xDaytonaOrganizationID != null) {
|
|
216
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
217
|
-
}
|
|
218
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
219
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
220
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
221
|
-
|
|
222
|
-
return {
|
|
223
|
-
url: toPathString(localVarUrlObj),
|
|
224
|
-
options: localVarRequestOptions,
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
/**
|
|
228
|
-
*
|
|
229
|
-
* @summary List registries
|
|
230
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
231
|
-
* @param {*} [options] Override http request option.
|
|
232
|
-
* @throws {RequiredError}
|
|
233
|
-
*/
|
|
234
|
-
listRegistries: async (
|
|
235
|
-
xDaytonaOrganizationID?: string,
|
|
236
|
-
options: RawAxiosRequestConfig = {},
|
|
237
|
-
): Promise<RequestArgs> => {
|
|
238
|
-
const localVarPath = `/docker-registry`
|
|
239
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
240
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
241
|
-
let baseOptions
|
|
242
|
-
if (configuration) {
|
|
243
|
-
baseOptions = configuration.baseOptions
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
247
|
-
const localVarHeaderParameter = {} as any
|
|
248
|
-
const localVarQueryParameter = {} as any
|
|
249
|
-
|
|
250
|
-
// authentication bearer required
|
|
251
|
-
// http bearer authentication required
|
|
252
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
253
|
-
|
|
254
|
-
// authentication oauth2 required
|
|
255
|
-
|
|
256
|
-
if (xDaytonaOrganizationID != null) {
|
|
257
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
258
|
-
}
|
|
259
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
260
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
261
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
262
|
-
|
|
263
|
-
return {
|
|
264
|
-
url: toPathString(localVarUrlObj),
|
|
265
|
-
options: localVarRequestOptions,
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
/**
|
|
269
|
-
*
|
|
270
|
-
* @summary Set default registry
|
|
271
|
-
* @param {string} id ID of the docker registry
|
|
272
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
273
|
-
* @param {*} [options] Override http request option.
|
|
274
|
-
* @throws {RequiredError}
|
|
275
|
-
*/
|
|
276
|
-
setDefaultRegistry: async (
|
|
277
|
-
id: string,
|
|
278
|
-
xDaytonaOrganizationID?: string,
|
|
279
|
-
options: RawAxiosRequestConfig = {},
|
|
280
|
-
): Promise<RequestArgs> => {
|
|
281
|
-
// verify required parameter 'id' is not null or undefined
|
|
282
|
-
assertParamExists('setDefaultRegistry', 'id', id)
|
|
283
|
-
const localVarPath = `/docker-registry/{id}/set-default`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
284
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
285
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
286
|
-
let baseOptions
|
|
287
|
-
if (configuration) {
|
|
288
|
-
baseOptions = configuration.baseOptions
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
292
|
-
const localVarHeaderParameter = {} as any
|
|
293
|
-
const localVarQueryParameter = {} as any
|
|
294
|
-
|
|
295
|
-
// authentication bearer required
|
|
296
|
-
// http bearer authentication required
|
|
297
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
298
|
-
|
|
299
|
-
// authentication oauth2 required
|
|
300
|
-
|
|
301
|
-
if (xDaytonaOrganizationID != null) {
|
|
302
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
303
|
-
}
|
|
304
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
305
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
306
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
307
|
-
|
|
308
|
-
return {
|
|
309
|
-
url: toPathString(localVarUrlObj),
|
|
310
|
-
options: localVarRequestOptions,
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
/**
|
|
314
|
-
*
|
|
315
|
-
* @summary Update registry
|
|
316
|
-
* @param {string} id ID of the docker registry
|
|
317
|
-
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
318
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
319
|
-
* @param {*} [options] Override http request option.
|
|
320
|
-
* @throws {RequiredError}
|
|
321
|
-
*/
|
|
322
|
-
updateRegistry: async (
|
|
323
|
-
id: string,
|
|
324
|
-
updateDockerRegistry: UpdateDockerRegistry,
|
|
325
|
-
xDaytonaOrganizationID?: string,
|
|
326
|
-
options: RawAxiosRequestConfig = {},
|
|
327
|
-
): Promise<RequestArgs> => {
|
|
328
|
-
// verify required parameter 'id' is not null or undefined
|
|
329
|
-
assertParamExists('updateRegistry', 'id', id)
|
|
330
|
-
// verify required parameter 'updateDockerRegistry' is not null or undefined
|
|
331
|
-
assertParamExists('updateRegistry', 'updateDockerRegistry', updateDockerRegistry)
|
|
332
|
-
const localVarPath = `/docker-registry/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
333
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
334
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
335
|
-
let baseOptions
|
|
336
|
-
if (configuration) {
|
|
337
|
-
baseOptions = configuration.baseOptions
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options }
|
|
341
|
-
const localVarHeaderParameter = {} as any
|
|
342
|
-
const localVarQueryParameter = {} as any
|
|
343
|
-
|
|
344
|
-
// authentication bearer required
|
|
345
|
-
// http bearer authentication required
|
|
346
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
347
|
-
|
|
348
|
-
// authentication oauth2 required
|
|
349
|
-
|
|
350
|
-
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
351
|
-
|
|
352
|
-
if (xDaytonaOrganizationID != null) {
|
|
353
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
354
|
-
}
|
|
355
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
356
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
357
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
358
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateDockerRegistry, localVarRequestOptions, configuration)
|
|
359
|
-
|
|
360
|
-
return {
|
|
361
|
-
url: toPathString(localVarUrlObj),
|
|
362
|
-
options: localVarRequestOptions,
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* DockerRegistryApi - functional programming interface
|
|
370
|
-
* @export
|
|
371
|
-
*/
|
|
372
|
-
export const DockerRegistryApiFp = function (configuration?: Configuration) {
|
|
373
|
-
const localVarAxiosParamCreator = DockerRegistryApiAxiosParamCreator(configuration)
|
|
374
|
-
return {
|
|
375
|
-
/**
|
|
376
|
-
*
|
|
377
|
-
* @summary Create registry
|
|
378
|
-
* @param {CreateDockerRegistry} createDockerRegistry
|
|
379
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
380
|
-
* @param {*} [options] Override http request option.
|
|
381
|
-
* @throws {RequiredError}
|
|
382
|
-
*/
|
|
383
|
-
async createRegistry(
|
|
384
|
-
createDockerRegistry: CreateDockerRegistry,
|
|
385
|
-
xDaytonaOrganizationID?: string,
|
|
386
|
-
options?: RawAxiosRequestConfig,
|
|
387
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>> {
|
|
388
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createRegistry(
|
|
389
|
-
createDockerRegistry,
|
|
390
|
-
xDaytonaOrganizationID,
|
|
391
|
-
options,
|
|
392
|
-
)
|
|
393
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
394
|
-
const localVarOperationServerBasePath =
|
|
395
|
-
operationServerMap['DockerRegistryApi.createRegistry']?.[localVarOperationServerIndex]?.url
|
|
396
|
-
return (axios, basePath) =>
|
|
397
|
-
createRequestFunction(
|
|
398
|
-
localVarAxiosArgs,
|
|
399
|
-
globalAxios,
|
|
400
|
-
BASE_PATH,
|
|
401
|
-
configuration,
|
|
402
|
-
)(axios, localVarOperationServerBasePath || basePath)
|
|
403
|
-
},
|
|
404
|
-
/**
|
|
405
|
-
*
|
|
406
|
-
* @summary Delete registry
|
|
407
|
-
* @param {string} id ID of the docker registry
|
|
408
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
409
|
-
* @param {*} [options] Override http request option.
|
|
410
|
-
* @throws {RequiredError}
|
|
411
|
-
*/
|
|
412
|
-
async deleteRegistry(
|
|
413
|
-
id: string,
|
|
414
|
-
xDaytonaOrganizationID?: string,
|
|
415
|
-
options?: RawAxiosRequestConfig,
|
|
416
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
417
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRegistry(id, xDaytonaOrganizationID, options)
|
|
418
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
419
|
-
const localVarOperationServerBasePath =
|
|
420
|
-
operationServerMap['DockerRegistryApi.deleteRegistry']?.[localVarOperationServerIndex]?.url
|
|
421
|
-
return (axios, basePath) =>
|
|
422
|
-
createRequestFunction(
|
|
423
|
-
localVarAxiosArgs,
|
|
424
|
-
globalAxios,
|
|
425
|
-
BASE_PATH,
|
|
426
|
-
configuration,
|
|
427
|
-
)(axios, localVarOperationServerBasePath || basePath)
|
|
428
|
-
},
|
|
429
|
-
/**
|
|
430
|
-
*
|
|
431
|
-
* @summary Get registry
|
|
432
|
-
* @param {string} id ID of the docker registry
|
|
433
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
434
|
-
* @param {*} [options] Override http request option.
|
|
435
|
-
* @throws {RequiredError}
|
|
436
|
-
*/
|
|
437
|
-
async getRegistry(
|
|
438
|
-
id: string,
|
|
439
|
-
xDaytonaOrganizationID?: string,
|
|
440
|
-
options?: RawAxiosRequestConfig,
|
|
441
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>> {
|
|
442
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getRegistry(id, xDaytonaOrganizationID, options)
|
|
443
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
444
|
-
const localVarOperationServerBasePath =
|
|
445
|
-
operationServerMap['DockerRegistryApi.getRegistry']?.[localVarOperationServerIndex]?.url
|
|
446
|
-
return (axios, basePath) =>
|
|
447
|
-
createRequestFunction(
|
|
448
|
-
localVarAxiosArgs,
|
|
449
|
-
globalAxios,
|
|
450
|
-
BASE_PATH,
|
|
451
|
-
configuration,
|
|
452
|
-
)(axios, localVarOperationServerBasePath || basePath)
|
|
453
|
-
},
|
|
454
|
-
/**
|
|
455
|
-
*
|
|
456
|
-
* @summary Get temporary registry access for pushing images
|
|
457
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
458
|
-
* @param {*} [options] Override http request option.
|
|
459
|
-
* @throws {RequiredError}
|
|
460
|
-
*/
|
|
461
|
-
async getTransientPushAccess(
|
|
462
|
-
xDaytonaOrganizationID?: string,
|
|
463
|
-
options?: RawAxiosRequestConfig,
|
|
464
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegistryPushAccessDto>> {
|
|
465
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransientPushAccess(xDaytonaOrganizationID, options)
|
|
466
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
467
|
-
const localVarOperationServerBasePath =
|
|
468
|
-
operationServerMap['DockerRegistryApi.getTransientPushAccess']?.[localVarOperationServerIndex]?.url
|
|
469
|
-
return (axios, basePath) =>
|
|
470
|
-
createRequestFunction(
|
|
471
|
-
localVarAxiosArgs,
|
|
472
|
-
globalAxios,
|
|
473
|
-
BASE_PATH,
|
|
474
|
-
configuration,
|
|
475
|
-
)(axios, localVarOperationServerBasePath || basePath)
|
|
476
|
-
},
|
|
477
|
-
/**
|
|
478
|
-
*
|
|
479
|
-
* @summary List registries
|
|
480
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
481
|
-
* @param {*} [options] Override http request option.
|
|
482
|
-
* @throws {RequiredError}
|
|
483
|
-
*/
|
|
484
|
-
async listRegistries(
|
|
485
|
-
xDaytonaOrganizationID?: string,
|
|
486
|
-
options?: RawAxiosRequestConfig,
|
|
487
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DockerRegistry>>> {
|
|
488
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listRegistries(xDaytonaOrganizationID, options)
|
|
489
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
490
|
-
const localVarOperationServerBasePath =
|
|
491
|
-
operationServerMap['DockerRegistryApi.listRegistries']?.[localVarOperationServerIndex]?.url
|
|
492
|
-
return (axios, basePath) =>
|
|
493
|
-
createRequestFunction(
|
|
494
|
-
localVarAxiosArgs,
|
|
495
|
-
globalAxios,
|
|
496
|
-
BASE_PATH,
|
|
497
|
-
configuration,
|
|
498
|
-
)(axios, localVarOperationServerBasePath || basePath)
|
|
499
|
-
},
|
|
500
|
-
/**
|
|
501
|
-
*
|
|
502
|
-
* @summary Set default registry
|
|
503
|
-
* @param {string} id ID of the docker registry
|
|
504
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
505
|
-
* @param {*} [options] Override http request option.
|
|
506
|
-
* @throws {RequiredError}
|
|
507
|
-
*/
|
|
508
|
-
async setDefaultRegistry(
|
|
509
|
-
id: string,
|
|
510
|
-
xDaytonaOrganizationID?: string,
|
|
511
|
-
options?: RawAxiosRequestConfig,
|
|
512
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>> {
|
|
513
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.setDefaultRegistry(id, xDaytonaOrganizationID, options)
|
|
514
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
515
|
-
const localVarOperationServerBasePath =
|
|
516
|
-
operationServerMap['DockerRegistryApi.setDefaultRegistry']?.[localVarOperationServerIndex]?.url
|
|
517
|
-
return (axios, basePath) =>
|
|
518
|
-
createRequestFunction(
|
|
519
|
-
localVarAxiosArgs,
|
|
520
|
-
globalAxios,
|
|
521
|
-
BASE_PATH,
|
|
522
|
-
configuration,
|
|
523
|
-
)(axios, localVarOperationServerBasePath || basePath)
|
|
524
|
-
},
|
|
525
|
-
/**
|
|
526
|
-
*
|
|
527
|
-
* @summary Update registry
|
|
528
|
-
* @param {string} id ID of the docker registry
|
|
529
|
-
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
530
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
531
|
-
* @param {*} [options] Override http request option.
|
|
532
|
-
* @throws {RequiredError}
|
|
533
|
-
*/
|
|
534
|
-
async updateRegistry(
|
|
535
|
-
id: string,
|
|
536
|
-
updateDockerRegistry: UpdateDockerRegistry,
|
|
537
|
-
xDaytonaOrganizationID?: string,
|
|
538
|
-
options?: RawAxiosRequestConfig,
|
|
539
|
-
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>> {
|
|
540
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRegistry(
|
|
541
|
-
id,
|
|
542
|
-
updateDockerRegistry,
|
|
543
|
-
xDaytonaOrganizationID,
|
|
544
|
-
options,
|
|
545
|
-
)
|
|
546
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
547
|
-
const localVarOperationServerBasePath =
|
|
548
|
-
operationServerMap['DockerRegistryApi.updateRegistry']?.[localVarOperationServerIndex]?.url
|
|
549
|
-
return (axios, basePath) =>
|
|
550
|
-
createRequestFunction(
|
|
551
|
-
localVarAxiosArgs,
|
|
552
|
-
globalAxios,
|
|
553
|
-
BASE_PATH,
|
|
554
|
-
configuration,
|
|
555
|
-
)(axios, localVarOperationServerBasePath || basePath)
|
|
556
|
-
},
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* DockerRegistryApi - factory interface
|
|
562
|
-
* @export
|
|
563
|
-
*/
|
|
564
|
-
export const DockerRegistryApiFactory = function (
|
|
565
|
-
configuration?: Configuration,
|
|
566
|
-
basePath?: string,
|
|
567
|
-
axios?: AxiosInstance,
|
|
568
|
-
) {
|
|
569
|
-
const localVarFp = DockerRegistryApiFp(configuration)
|
|
570
|
-
return {
|
|
571
|
-
/**
|
|
572
|
-
*
|
|
573
|
-
* @summary Create registry
|
|
574
|
-
* @param {CreateDockerRegistry} createDockerRegistry
|
|
575
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
576
|
-
* @param {*} [options] Override http request option.
|
|
577
|
-
* @throws {RequiredError}
|
|
578
|
-
*/
|
|
579
|
-
createRegistry(
|
|
580
|
-
createDockerRegistry: CreateDockerRegistry,
|
|
581
|
-
xDaytonaOrganizationID?: string,
|
|
582
|
-
options?: RawAxiosRequestConfig,
|
|
583
|
-
): AxiosPromise<DockerRegistry> {
|
|
584
|
-
return localVarFp
|
|
585
|
-
.createRegistry(createDockerRegistry, xDaytonaOrganizationID, options)
|
|
586
|
-
.then((request) => request(axios, basePath))
|
|
587
|
-
},
|
|
588
|
-
/**
|
|
589
|
-
*
|
|
590
|
-
* @summary Delete registry
|
|
591
|
-
* @param {string} id ID of the docker registry
|
|
592
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
593
|
-
* @param {*} [options] Override http request option.
|
|
594
|
-
* @throws {RequiredError}
|
|
595
|
-
*/
|
|
596
|
-
deleteRegistry(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
597
|
-
return localVarFp.deleteRegistry(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath))
|
|
598
|
-
},
|
|
599
|
-
/**
|
|
600
|
-
*
|
|
601
|
-
* @summary Get registry
|
|
602
|
-
* @param {string} id ID of the docker registry
|
|
603
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
604
|
-
* @param {*} [options] Override http request option.
|
|
605
|
-
* @throws {RequiredError}
|
|
606
|
-
*/
|
|
607
|
-
getRegistry(
|
|
608
|
-
id: string,
|
|
609
|
-
xDaytonaOrganizationID?: string,
|
|
610
|
-
options?: RawAxiosRequestConfig,
|
|
611
|
-
): AxiosPromise<DockerRegistry> {
|
|
612
|
-
return localVarFp.getRegistry(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath))
|
|
613
|
-
},
|
|
614
|
-
/**
|
|
615
|
-
*
|
|
616
|
-
* @summary Get temporary registry access for pushing images
|
|
617
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
618
|
-
* @param {*} [options] Override http request option.
|
|
619
|
-
* @throws {RequiredError}
|
|
620
|
-
*/
|
|
621
|
-
getTransientPushAccess(
|
|
622
|
-
xDaytonaOrganizationID?: string,
|
|
623
|
-
options?: RawAxiosRequestConfig,
|
|
624
|
-
): AxiosPromise<RegistryPushAccessDto> {
|
|
625
|
-
return localVarFp
|
|
626
|
-
.getTransientPushAccess(xDaytonaOrganizationID, options)
|
|
627
|
-
.then((request) => request(axios, basePath))
|
|
628
|
-
},
|
|
629
|
-
/**
|
|
630
|
-
*
|
|
631
|
-
* @summary List registries
|
|
632
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
633
|
-
* @param {*} [options] Override http request option.
|
|
634
|
-
* @throws {RequiredError}
|
|
635
|
-
*/
|
|
636
|
-
listRegistries(
|
|
637
|
-
xDaytonaOrganizationID?: string,
|
|
638
|
-
options?: RawAxiosRequestConfig,
|
|
639
|
-
): AxiosPromise<Array<DockerRegistry>> {
|
|
640
|
-
return localVarFp.listRegistries(xDaytonaOrganizationID, options).then((request) => request(axios, basePath))
|
|
641
|
-
},
|
|
642
|
-
/**
|
|
643
|
-
*
|
|
644
|
-
* @summary Set default registry
|
|
645
|
-
* @param {string} id ID of the docker registry
|
|
646
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
647
|
-
* @param {*} [options] Override http request option.
|
|
648
|
-
* @throws {RequiredError}
|
|
649
|
-
*/
|
|
650
|
-
setDefaultRegistry(
|
|
651
|
-
id: string,
|
|
652
|
-
xDaytonaOrganizationID?: string,
|
|
653
|
-
options?: RawAxiosRequestConfig,
|
|
654
|
-
): AxiosPromise<DockerRegistry> {
|
|
655
|
-
return localVarFp
|
|
656
|
-
.setDefaultRegistry(id, xDaytonaOrganizationID, options)
|
|
657
|
-
.then((request) => request(axios, basePath))
|
|
658
|
-
},
|
|
659
|
-
/**
|
|
660
|
-
*
|
|
661
|
-
* @summary Update registry
|
|
662
|
-
* @param {string} id ID of the docker registry
|
|
663
|
-
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
664
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
665
|
-
* @param {*} [options] Override http request option.
|
|
666
|
-
* @throws {RequiredError}
|
|
667
|
-
*/
|
|
668
|
-
updateRegistry(
|
|
669
|
-
id: string,
|
|
670
|
-
updateDockerRegistry: UpdateDockerRegistry,
|
|
671
|
-
xDaytonaOrganizationID?: string,
|
|
672
|
-
options?: RawAxiosRequestConfig,
|
|
673
|
-
): AxiosPromise<DockerRegistry> {
|
|
674
|
-
return localVarFp
|
|
675
|
-
.updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options)
|
|
676
|
-
.then((request) => request(axios, basePath))
|
|
677
|
-
},
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
/**
|
|
682
|
-
* DockerRegistryApi - object-oriented interface
|
|
683
|
-
* @export
|
|
684
|
-
* @class DockerRegistryApi
|
|
685
|
-
* @extends {BaseAPI}
|
|
686
|
-
*/
|
|
687
|
-
export class DockerRegistryApi extends BaseAPI {
|
|
688
|
-
/**
|
|
689
|
-
*
|
|
690
|
-
* @summary Create registry
|
|
691
|
-
* @param {CreateDockerRegistry} createDockerRegistry
|
|
692
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
693
|
-
* @param {*} [options] Override http request option.
|
|
694
|
-
* @throws {RequiredError}
|
|
695
|
-
* @memberof DockerRegistryApi
|
|
696
|
-
*/
|
|
697
|
-
public createRegistry(
|
|
698
|
-
createDockerRegistry: CreateDockerRegistry,
|
|
699
|
-
xDaytonaOrganizationID?: string,
|
|
700
|
-
options?: RawAxiosRequestConfig,
|
|
701
|
-
) {
|
|
702
|
-
return DockerRegistryApiFp(this.configuration)
|
|
703
|
-
.createRegistry(createDockerRegistry, xDaytonaOrganizationID, options)
|
|
704
|
-
.then((request) => request(this.axios, this.basePath))
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
*
|
|
709
|
-
* @summary Delete registry
|
|
710
|
-
* @param {string} id ID of the docker registry
|
|
711
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
712
|
-
* @param {*} [options] Override http request option.
|
|
713
|
-
* @throws {RequiredError}
|
|
714
|
-
* @memberof DockerRegistryApi
|
|
715
|
-
*/
|
|
716
|
-
public deleteRegistry(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
717
|
-
return DockerRegistryApiFp(this.configuration)
|
|
718
|
-
.deleteRegistry(id, xDaytonaOrganizationID, options)
|
|
719
|
-
.then((request) => request(this.axios, this.basePath))
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
*
|
|
724
|
-
* @summary Get registry
|
|
725
|
-
* @param {string} id ID of the docker registry
|
|
726
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
727
|
-
* @param {*} [options] Override http request option.
|
|
728
|
-
* @throws {RequiredError}
|
|
729
|
-
* @memberof DockerRegistryApi
|
|
730
|
-
*/
|
|
731
|
-
public getRegistry(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
732
|
-
return DockerRegistryApiFp(this.configuration)
|
|
733
|
-
.getRegistry(id, xDaytonaOrganizationID, options)
|
|
734
|
-
.then((request) => request(this.axios, this.basePath))
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
*
|
|
739
|
-
* @summary Get temporary registry access for pushing images
|
|
740
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
741
|
-
* @param {*} [options] Override http request option.
|
|
742
|
-
* @throws {RequiredError}
|
|
743
|
-
* @memberof DockerRegistryApi
|
|
744
|
-
*/
|
|
745
|
-
public getTransientPushAccess(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
746
|
-
return DockerRegistryApiFp(this.configuration)
|
|
747
|
-
.getTransientPushAccess(xDaytonaOrganizationID, options)
|
|
748
|
-
.then((request) => request(this.axios, this.basePath))
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
*
|
|
753
|
-
* @summary List registries
|
|
754
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
755
|
-
* @param {*} [options] Override http request option.
|
|
756
|
-
* @throws {RequiredError}
|
|
757
|
-
* @memberof DockerRegistryApi
|
|
758
|
-
*/
|
|
759
|
-
public listRegistries(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
760
|
-
return DockerRegistryApiFp(this.configuration)
|
|
761
|
-
.listRegistries(xDaytonaOrganizationID, options)
|
|
762
|
-
.then((request) => request(this.axios, this.basePath))
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
*
|
|
767
|
-
* @summary Set default registry
|
|
768
|
-
* @param {string} id ID of the docker registry
|
|
769
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
770
|
-
* @param {*} [options] Override http request option.
|
|
771
|
-
* @throws {RequiredError}
|
|
772
|
-
* @memberof DockerRegistryApi
|
|
773
|
-
*/
|
|
774
|
-
public setDefaultRegistry(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
775
|
-
return DockerRegistryApiFp(this.configuration)
|
|
776
|
-
.setDefaultRegistry(id, xDaytonaOrganizationID, options)
|
|
777
|
-
.then((request) => request(this.axios, this.basePath))
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
*
|
|
782
|
-
* @summary Update registry
|
|
783
|
-
* @param {string} id ID of the docker registry
|
|
784
|
-
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
785
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
786
|
-
* @param {*} [options] Override http request option.
|
|
787
|
-
* @throws {RequiredError}
|
|
788
|
-
* @memberof DockerRegistryApi
|
|
789
|
-
*/
|
|
790
|
-
public updateRegistry(
|
|
791
|
-
id: string,
|
|
792
|
-
updateDockerRegistry: UpdateDockerRegistry,
|
|
793
|
-
xDaytonaOrganizationID?: string,
|
|
794
|
-
options?: RawAxiosRequestConfig,
|
|
795
|
-
) {
|
|
796
|
-
return DockerRegistryApiFp(this.configuration)
|
|
797
|
-
.updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options)
|
|
798
|
-
.then((request) => request(this.axios, this.basePath))
|
|
799
|
-
}
|
|
800
|
-
}
|