@daytonaio/api-client 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +26 -23
- package/README.md +3 -3
- package/api/default-api.ts +3621 -0
- package/api/docker-registry-api.ts +572 -0
- package/api.ts +19 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api/default-api.d.ts +1621 -0
- package/dist/api/default-api.js +3393 -0
- package/dist/api/docker-registry-api.d.ts +269 -0
- package/dist/api/docker-registry-api.js +547 -0
- package/dist/api.d.ts +13 -0
- package/dist/{apis/index.js → api.js} +15 -4
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api/default-api.d.ts +1621 -0
- package/dist/esm/api/default-api.js +3386 -0
- package/dist/esm/api/docker-registry-api.d.ts +269 -0
- package/dist/esm/api/docker-registry-api.js +540 -0
- package/dist/esm/api.d.ts +13 -0
- package/dist/esm/api.js +15 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +14 -3
- package/dist/esm/index.js +14 -3
- package/dist/esm/models/{ApiKeyListDto.d.ts → api-key-list-dto.d.ts} +4 -12
- package/dist/esm/models/api-key-list-dto.js +14 -0
- package/dist/esm/models/{ApiKeyResponseDto.d.ts → api-key-response-dto.d.ts} +4 -12
- package/dist/esm/models/api-key-response-dto.js +14 -0
- package/dist/esm/models/create-api-key-dto.d.ts +24 -0
- package/dist/esm/models/create-api-key-dto.js +14 -0
- package/dist/{models/CreateDockerRegistryDto.d.ts → esm/models/create-docker-registry-dto.d.ts} +6 -14
- package/dist/esm/models/create-docker-registry-dto.js +14 -0
- package/dist/{models/CreateWorkspaceDto.d.ts → esm/models/create-workspace-dto.d.ts} +6 -14
- package/dist/esm/models/create-workspace-dto.js +14 -0
- package/dist/esm/models/execute-request-dto.d.ts +30 -0
- package/dist/esm/models/execute-request-dto.js +14 -0
- package/dist/esm/models/execute-response-dto.d.ts +30 -0
- package/dist/esm/models/execute-response-dto.js +14 -0
- package/dist/esm/models/git-add-request-dto.d.ts +30 -0
- package/dist/esm/models/git-add-request-dto.js +14 -0
- package/dist/esm/models/git-branch-request-dto.d.ts +30 -0
- package/dist/esm/models/git-branch-request-dto.js +14 -0
- package/dist/{models/GitCloneRequestDto.d.ts → esm/models/git-clone-request-dto.d.ts} +6 -14
- package/dist/esm/models/git-clone-request-dto.js +14 -0
- package/dist/{models/GitCommitRequestDto.d.ts → esm/models/git-commit-request-dto.d.ts} +4 -12
- package/dist/esm/models/git-commit-request-dto.js +14 -0
- package/dist/esm/models/git-repo-request-dto.d.ts +36 -0
- package/dist/esm/models/git-repo-request-dto.js +14 -0
- package/dist/esm/models/index.d.ts +17 -17
- package/dist/esm/models/index.js +17 -19
- package/dist/esm/models/replace-request-dto.d.ts +36 -0
- package/dist/esm/models/replace-request-dto.js +14 -0
- package/dist/{models/UpdateDockerRegistryDto.d.ts → esm/models/update-docker-registry-dto.d.ts} +6 -14
- package/dist/esm/models/update-docker-registry-dto.js +14 -0
- package/dist/{models/WorkspaceDto.d.ts → esm/models/workspace-dto.d.ts} +8 -16
- package/dist/esm/models/workspace-dto.js +14 -0
- package/dist/esm/models/{WorkspaceInfoDto.d.ts → workspace-info-dto.d.ts} +3 -11
- package/dist/esm/models/workspace-info-dto.js +14 -0
- package/dist/esm/models/workspace-labels-dto.d.ts +26 -0
- package/dist/esm/models/workspace-labels-dto.js +14 -0
- package/dist/index.d.ts +14 -3
- package/dist/index.js +16 -5
- package/dist/models/{ApiKeyListDto.d.ts → api-key-list-dto.d.ts} +4 -12
- package/dist/models/api-key-list-dto.js +15 -0
- package/dist/models/{ApiKeyResponseDto.d.ts → api-key-response-dto.d.ts} +4 -12
- package/dist/models/api-key-response-dto.js +15 -0
- package/dist/models/create-api-key-dto.d.ts +24 -0
- package/dist/models/create-api-key-dto.js +15 -0
- package/dist/{esm/models/CreateDockerRegistryDto.d.ts → models/create-docker-registry-dto.d.ts} +6 -14
- package/dist/models/create-docker-registry-dto.js +15 -0
- package/dist/{esm/models/CreateWorkspaceDto.d.ts → models/create-workspace-dto.d.ts} +6 -14
- package/dist/models/create-workspace-dto.js +15 -0
- package/dist/models/execute-request-dto.d.ts +30 -0
- package/dist/models/execute-request-dto.js +15 -0
- package/dist/models/execute-response-dto.d.ts +30 -0
- package/dist/models/execute-response-dto.js +15 -0
- package/dist/models/git-add-request-dto.d.ts +30 -0
- package/dist/models/git-add-request-dto.js +15 -0
- package/dist/models/git-branch-request-dto.d.ts +30 -0
- package/dist/models/git-branch-request-dto.js +15 -0
- package/dist/{esm/models/GitCloneRequestDto.d.ts → models/git-clone-request-dto.d.ts} +6 -14
- package/dist/models/git-clone-request-dto.js +15 -0
- package/dist/{esm/models/GitCommitRequestDto.d.ts → models/git-commit-request-dto.d.ts} +4 -12
- package/dist/models/git-commit-request-dto.js +15 -0
- package/dist/models/git-repo-request-dto.d.ts +36 -0
- package/dist/models/git-repo-request-dto.js +15 -0
- package/dist/models/index.d.ts +17 -17
- package/dist/models/index.js +17 -19
- package/dist/models/replace-request-dto.d.ts +36 -0
- package/dist/models/replace-request-dto.js +15 -0
- package/dist/{esm/models/UpdateDockerRegistryDto.d.ts → models/update-docker-registry-dto.d.ts} +6 -14
- package/dist/models/update-docker-registry-dto.js +15 -0
- package/dist/{esm/models/WorkspaceDto.d.ts → models/workspace-dto.d.ts} +8 -16
- package/dist/models/workspace-dto.js +15 -0
- package/dist/models/{WorkspaceInfoDto.d.ts → workspace-info-dto.d.ts} +3 -11
- package/dist/models/workspace-info-dto.js +15 -0
- package/dist/models/workspace-labels-dto.d.ts +26 -0
- package/dist/models/workspace-labels-dto.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/models/api-key-list-dto.ts +42 -0
- package/models/api-key-response-dto.ts +42 -0
- package/models/create-api-key-dto.ts +30 -0
- package/models/create-docker-registry-dto.ts +60 -0
- package/models/create-workspace-dto.ts +60 -0
- package/models/execute-request-dto.ts +36 -0
- package/models/execute-response-dto.ts +36 -0
- package/models/git-add-request-dto.ts +36 -0
- package/models/git-branch-request-dto.ts +36 -0
- package/models/git-clone-request-dto.ts +60 -0
- package/models/git-commit-request-dto.ts +48 -0
- package/models/git-repo-request-dto.ts +42 -0
- package/models/index.ts +17 -0
- package/models/replace-request-dto.ts +42 -0
- package/models/update-docker-registry-dto.ts +60 -0
- package/models/workspace-dto.ts +69 -0
- package/models/workspace-info-dto.ts +42 -0
- package/models/workspace-labels-dto.ts +30 -0
- package/package.json +14 -3
- package/tsconfig.json +4 -2
- package/dist/apis/DefaultApi.d.ts +0 -551
- package/dist/apis/DefaultApi.js +0 -1645
- package/dist/apis/DockerRegistryApi.d.ts +0 -90
- package/dist/apis/DockerRegistryApi.js +0 -257
- package/dist/apis/index.d.ts +0 -2
- package/dist/esm/apis/DefaultApi.d.ts +0 -551
- package/dist/esm/apis/DefaultApi.js +0 -1641
- package/dist/esm/apis/DockerRegistryApi.d.ts +0 -90
- package/dist/esm/apis/DockerRegistryApi.js +0 -253
- package/dist/esm/apis/index.d.ts +0 -2
- package/dist/esm/apis/index.js +0 -4
- package/dist/esm/models/ApiKeyListDto.js +0 -51
- package/dist/esm/models/ApiKeyResponseDto.js +0 -51
- package/dist/esm/models/CreateApiKeyDto.d.ts +0 -32
- package/dist/esm/models/CreateApiKeyDto.js +0 -43
- package/dist/esm/models/CreateDockerRegistryDto.js +0 -61
- package/dist/esm/models/CreateWorkspaceDto.js +0 -63
- package/dist/esm/models/ExecuteRequestDto.d.ts +0 -38
- package/dist/esm/models/ExecuteRequestDto.js +0 -45
- package/dist/esm/models/ExecuteResponseDto.d.ts +0 -38
- package/dist/esm/models/ExecuteResponseDto.js +0 -47
- package/dist/esm/models/GitAddRequestDto.d.ts +0 -38
- package/dist/esm/models/GitAddRequestDto.js +0 -47
- package/dist/esm/models/GitBranchRequestDto.d.ts +0 -38
- package/dist/esm/models/GitBranchRequestDto.js +0 -47
- package/dist/esm/models/GitCloneRequestDto.js +0 -55
- package/dist/esm/models/GitCommitRequestDto.js +0 -55
- package/dist/esm/models/GitRepoRequestDto.d.ts +0 -44
- package/dist/esm/models/GitRepoRequestDto.js +0 -47
- package/dist/esm/models/ReplaceRequestDto.d.ts +0 -44
- package/dist/esm/models/ReplaceRequestDto.js +0 -51
- package/dist/esm/models/UpdateDockerRegistryDto.js +0 -51
- package/dist/esm/models/WorkspaceDto.js +0 -66
- package/dist/esm/models/WorkspaceInfoDto.js +0 -49
- package/dist/esm/models/WorkspaceLabelsDto.d.ts +0 -34
- package/dist/esm/models/WorkspaceLabelsDto.js +0 -43
- package/dist/esm/runtime.d.ts +0 -181
- package/dist/esm/runtime.js +0 -326
- package/dist/models/ApiKeyListDto.js +0 -59
- package/dist/models/ApiKeyResponseDto.js +0 -59
- package/dist/models/CreateApiKeyDto.d.ts +0 -32
- package/dist/models/CreateApiKeyDto.js +0 -51
- package/dist/models/CreateDockerRegistryDto.js +0 -69
- package/dist/models/CreateWorkspaceDto.js +0 -71
- package/dist/models/ExecuteRequestDto.d.ts +0 -38
- package/dist/models/ExecuteRequestDto.js +0 -53
- package/dist/models/ExecuteResponseDto.d.ts +0 -38
- package/dist/models/ExecuteResponseDto.js +0 -55
- package/dist/models/GitAddRequestDto.d.ts +0 -38
- package/dist/models/GitAddRequestDto.js +0 -55
- package/dist/models/GitBranchRequestDto.d.ts +0 -38
- package/dist/models/GitBranchRequestDto.js +0 -55
- package/dist/models/GitCloneRequestDto.js +0 -63
- package/dist/models/GitCommitRequestDto.js +0 -63
- package/dist/models/GitRepoRequestDto.d.ts +0 -44
- package/dist/models/GitRepoRequestDto.js +0 -55
- package/dist/models/ReplaceRequestDto.d.ts +0 -44
- package/dist/models/ReplaceRequestDto.js +0 -59
- package/dist/models/UpdateDockerRegistryDto.js +0 -59
- package/dist/models/WorkspaceDto.js +0 -74
- package/dist/models/WorkspaceInfoDto.js +0 -57
- package/dist/models/WorkspaceLabelsDto.d.ts +0 -34
- package/dist/models/WorkspaceLabelsDto.js +0 -51
- package/dist/runtime.d.ts +0 -181
- package/dist/runtime.js +0 -341
- package/src/apis/DefaultApi.ts +0 -2380
- package/src/apis/DockerRegistryApi.ts +0 -318
- package/src/apis/index.ts +0 -4
- package/src/index.ts +0 -5
- package/src/models/ApiKeyListDto.ts +0 -84
- package/src/models/ApiKeyResponseDto.ts +0 -84
- package/src/models/CreateApiKeyDto.ts +0 -66
- package/src/models/CreateDockerRegistryDto.ts +0 -110
- package/src/models/CreateWorkspaceDto.ts +0 -111
- package/src/models/ExecuteRequestDto.ts +0 -74
- package/src/models/ExecuteResponseDto.ts +0 -75
- package/src/models/GitAddRequestDto.ts +0 -75
- package/src/models/GitBranchRequestDto.ts +0 -75
- package/src/models/GitCloneRequestDto.ts +0 -107
- package/src/models/GitCommitRequestDto.ts +0 -93
- package/src/models/GitRepoRequestDto.ts +0 -82
- package/src/models/ReplaceRequestDto.ts +0 -84
- package/src/models/UpdateDockerRegistryDto.ts +0 -105
- package/src/models/WorkspaceDto.ts +0 -127
- package/src/models/WorkspaceInfoDto.ts +0 -83
- package/src/models/WorkspaceLabelsDto.ts +0 -66
- package/src/models/index.ts +0 -19
- package/src/runtime.ts +0 -426
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Daytona Workspaces
|
|
6
|
+
* Daytona Workspaces API Docs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.DockerRegistryApi = exports.DockerRegistryApiFactory = exports.DockerRegistryApiFp = exports.DockerRegistryApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* DockerRegistryApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary Create a new docker registry
|
|
41
|
+
* @param {CreateDockerRegistryDto} createDockerRegistryDto
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
dockerRegistryControllerCreate: (createDockerRegistryDto_1, ...args_1) => __awaiter(this, [createDockerRegistryDto_1, ...args_1], void 0, function* (createDockerRegistryDto, options = {}) {
|
|
46
|
+
// verify required parameter 'createDockerRegistryDto' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('dockerRegistryControllerCreate', 'createDockerRegistryDto', createDockerRegistryDto);
|
|
48
|
+
const localVarPath = `/docker-registry`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
// authentication oauth2 required
|
|
59
|
+
// oauth required
|
|
60
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
61
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDockerRegistryDto, localVarRequestOptions, configuration);
|
|
66
|
+
return {
|
|
67
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
68
|
+
options: localVarRequestOptions,
|
|
69
|
+
};
|
|
70
|
+
}),
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @summary Get all docker registries
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
dockerRegistryControllerFindAll: (...args_2) => __awaiter(this, [...args_2], void 0, function* (options = {}) {
|
|
78
|
+
const localVarPath = `/docker-registry`;
|
|
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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
86
|
+
const localVarHeaderParameter = {};
|
|
87
|
+
const localVarQueryParameter = {};
|
|
88
|
+
// authentication oauth2 required
|
|
89
|
+
// oauth required
|
|
90
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
91
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
92
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
94
|
+
return {
|
|
95
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
96
|
+
options: localVarRequestOptions,
|
|
97
|
+
};
|
|
98
|
+
}),
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @summary Get a docker registry by id
|
|
102
|
+
* @param {string} id
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
dockerRegistryControllerFindOne: (id_1, ...args_3) => __awaiter(this, [id_1, ...args_3], void 0, function* (id, options = {}) {
|
|
107
|
+
// verify required parameter 'id' is not null or undefined
|
|
108
|
+
(0, common_1.assertParamExists)('dockerRegistryControllerFindOne', 'id', id);
|
|
109
|
+
const localVarPath = `/docker-registry/{id}`
|
|
110
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
111
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
113
|
+
let baseOptions;
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
}
|
|
117
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
118
|
+
const localVarHeaderParameter = {};
|
|
119
|
+
const localVarQueryParameter = {};
|
|
120
|
+
// authentication oauth2 required
|
|
121
|
+
// oauth required
|
|
122
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
123
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
124
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
126
|
+
return {
|
|
127
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
128
|
+
options: localVarRequestOptions,
|
|
129
|
+
};
|
|
130
|
+
}),
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @summary Get the default docker registry
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
dockerRegistryControllerGetDefault: (...args_4) => __awaiter(this, [...args_4], void 0, function* (options = {}) {
|
|
138
|
+
const localVarPath = `/docker-registry/default`;
|
|
139
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
140
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
141
|
+
let baseOptions;
|
|
142
|
+
if (configuration) {
|
|
143
|
+
baseOptions = configuration.baseOptions;
|
|
144
|
+
}
|
|
145
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
146
|
+
const localVarHeaderParameter = {};
|
|
147
|
+
const localVarQueryParameter = {};
|
|
148
|
+
// authentication oauth2 required
|
|
149
|
+
// oauth required
|
|
150
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
151
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
154
|
+
return {
|
|
155
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions,
|
|
157
|
+
};
|
|
158
|
+
}),
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @summary Delete a docker registry
|
|
162
|
+
* @param {string} id
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
dockerRegistryControllerRemove: (id_2, ...args_5) => __awaiter(this, [id_2, ...args_5], void 0, function* (id, options = {}) {
|
|
167
|
+
// verify required parameter 'id' is not null or undefined
|
|
168
|
+
(0, common_1.assertParamExists)('dockerRegistryControllerRemove', 'id', id);
|
|
169
|
+
const localVarPath = `/docker-registry/{id}`
|
|
170
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
172
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
173
|
+
let baseOptions;
|
|
174
|
+
if (configuration) {
|
|
175
|
+
baseOptions = configuration.baseOptions;
|
|
176
|
+
}
|
|
177
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
178
|
+
const localVarHeaderParameter = {};
|
|
179
|
+
const localVarQueryParameter = {};
|
|
180
|
+
// authentication oauth2 required
|
|
181
|
+
// oauth required
|
|
182
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
183
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
186
|
+
return {
|
|
187
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
188
|
+
options: localVarRequestOptions,
|
|
189
|
+
};
|
|
190
|
+
}),
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @summary Set a docker registry as default
|
|
194
|
+
* @param {string} id
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
dockerRegistryControllerSetDefault: (id_3, ...args_6) => __awaiter(this, [id_3, ...args_6], void 0, function* (id, options = {}) {
|
|
199
|
+
// verify required parameter 'id' is not null or undefined
|
|
200
|
+
(0, common_1.assertParamExists)('dockerRegistryControllerSetDefault', 'id', id);
|
|
201
|
+
const localVarPath = `/docker-registry/{id}/set-default`
|
|
202
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
203
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
204
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
205
|
+
let baseOptions;
|
|
206
|
+
if (configuration) {
|
|
207
|
+
baseOptions = configuration.baseOptions;
|
|
208
|
+
}
|
|
209
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
210
|
+
const localVarHeaderParameter = {};
|
|
211
|
+
const localVarQueryParameter = {};
|
|
212
|
+
// authentication oauth2 required
|
|
213
|
+
// oauth required
|
|
214
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
215
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
217
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
218
|
+
return {
|
|
219
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
220
|
+
options: localVarRequestOptions,
|
|
221
|
+
};
|
|
222
|
+
}),
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @summary Update a docker registry
|
|
226
|
+
* @param {string} id
|
|
227
|
+
* @param {UpdateDockerRegistryDto} updateDockerRegistryDto
|
|
228
|
+
* @param {*} [options] Override http request option.
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
*/
|
|
231
|
+
dockerRegistryControllerUpdate: (id_4, updateDockerRegistryDto_1, ...args_7) => __awaiter(this, [id_4, updateDockerRegistryDto_1, ...args_7], void 0, function* (id, updateDockerRegistryDto, options = {}) {
|
|
232
|
+
// verify required parameter 'id' is not null or undefined
|
|
233
|
+
(0, common_1.assertParamExists)('dockerRegistryControllerUpdate', 'id', id);
|
|
234
|
+
// verify required parameter 'updateDockerRegistryDto' is not null or undefined
|
|
235
|
+
(0, common_1.assertParamExists)('dockerRegistryControllerUpdate', 'updateDockerRegistryDto', updateDockerRegistryDto);
|
|
236
|
+
const localVarPath = `/docker-registry/{id}`
|
|
237
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
238
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
239
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
240
|
+
let baseOptions;
|
|
241
|
+
if (configuration) {
|
|
242
|
+
baseOptions = configuration.baseOptions;
|
|
243
|
+
}
|
|
244
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
245
|
+
const localVarHeaderParameter = {};
|
|
246
|
+
const localVarQueryParameter = {};
|
|
247
|
+
// authentication oauth2 required
|
|
248
|
+
// oauth required
|
|
249
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
250
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
251
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
252
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
253
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
254
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDockerRegistryDto, localVarRequestOptions, configuration);
|
|
255
|
+
return {
|
|
256
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
257
|
+
options: localVarRequestOptions,
|
|
258
|
+
};
|
|
259
|
+
}),
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
exports.DockerRegistryApiAxiosParamCreator = DockerRegistryApiAxiosParamCreator;
|
|
263
|
+
/**
|
|
264
|
+
* DockerRegistryApi - functional programming interface
|
|
265
|
+
* @export
|
|
266
|
+
*/
|
|
267
|
+
const DockerRegistryApiFp = function (configuration) {
|
|
268
|
+
const localVarAxiosParamCreator = (0, exports.DockerRegistryApiAxiosParamCreator)(configuration);
|
|
269
|
+
return {
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @summary Create a new docker registry
|
|
273
|
+
* @param {CreateDockerRegistryDto} createDockerRegistryDto
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
dockerRegistryControllerCreate(createDockerRegistryDto, options) {
|
|
278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
279
|
+
var _a, _b, _c;
|
|
280
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerCreate(createDockerRegistryDto, options);
|
|
281
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
282
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
283
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
284
|
+
});
|
|
285
|
+
},
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @summary Get all docker registries
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
dockerRegistryControllerFindAll(options) {
|
|
293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
var _a, _b, _c;
|
|
295
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerFindAll(options);
|
|
296
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
297
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
298
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
299
|
+
});
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @summary Get a docker registry by id
|
|
304
|
+
* @param {string} id
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
dockerRegistryControllerFindOne(id, options) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
var _a, _b, _c;
|
|
311
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerFindOne(id, options);
|
|
312
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
313
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerFindOne']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
314
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
315
|
+
});
|
|
316
|
+
},
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
* @summary Get the default docker registry
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
*/
|
|
323
|
+
dockerRegistryControllerGetDefault(options) {
|
|
324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
+
var _a, _b, _c;
|
|
326
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerGetDefault(options);
|
|
327
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
328
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerGetDefault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
329
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
330
|
+
});
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @summary Delete a docker registry
|
|
335
|
+
* @param {string} id
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
dockerRegistryControllerRemove(id, options) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
var _a, _b, _c;
|
|
342
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerRemove(id, options);
|
|
343
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
344
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerRemove']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
345
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
346
|
+
});
|
|
347
|
+
},
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @summary Set a docker registry as default
|
|
351
|
+
* @param {string} id
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
dockerRegistryControllerSetDefault(id, options) {
|
|
356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
+
var _a, _b, _c;
|
|
358
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerSetDefault(id, options);
|
|
359
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
360
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerSetDefault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
361
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
362
|
+
});
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @summary Update a docker registry
|
|
367
|
+
* @param {string} id
|
|
368
|
+
* @param {UpdateDockerRegistryDto} updateDockerRegistryDto
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
|
|
373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
var _a, _b, _c;
|
|
375
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options);
|
|
376
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
377
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.dockerRegistryControllerUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
378
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
379
|
+
});
|
|
380
|
+
},
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
exports.DockerRegistryApiFp = DockerRegistryApiFp;
|
|
384
|
+
/**
|
|
385
|
+
* DockerRegistryApi - factory interface
|
|
386
|
+
* @export
|
|
387
|
+
*/
|
|
388
|
+
const DockerRegistryApiFactory = function (configuration, basePath, axios) {
|
|
389
|
+
const localVarFp = (0, exports.DockerRegistryApiFp)(configuration);
|
|
390
|
+
return {
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @summary Create a new docker registry
|
|
394
|
+
* @param {CreateDockerRegistryDto} createDockerRegistryDto
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
dockerRegistryControllerCreate(createDockerRegistryDto, options) {
|
|
399
|
+
return localVarFp.dockerRegistryControllerCreate(createDockerRegistryDto, options).then((request) => request(axios, basePath));
|
|
400
|
+
},
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* @summary Get all docker registries
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
*/
|
|
407
|
+
dockerRegistryControllerFindAll(options) {
|
|
408
|
+
return localVarFp.dockerRegistryControllerFindAll(options).then((request) => request(axios, basePath));
|
|
409
|
+
},
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @summary Get a docker registry by id
|
|
413
|
+
* @param {string} id
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
dockerRegistryControllerFindOne(id, options) {
|
|
418
|
+
return localVarFp.dockerRegistryControllerFindOne(id, options).then((request) => request(axios, basePath));
|
|
419
|
+
},
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @summary Get the default docker registry
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
dockerRegistryControllerGetDefault(options) {
|
|
427
|
+
return localVarFp.dockerRegistryControllerGetDefault(options).then((request) => request(axios, basePath));
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
* @summary Delete a docker registry
|
|
432
|
+
* @param {string} id
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
dockerRegistryControllerRemove(id, options) {
|
|
437
|
+
return localVarFp.dockerRegistryControllerRemove(id, options).then((request) => request(axios, basePath));
|
|
438
|
+
},
|
|
439
|
+
/**
|
|
440
|
+
*
|
|
441
|
+
* @summary Set a docker registry as default
|
|
442
|
+
* @param {string} id
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
*/
|
|
446
|
+
dockerRegistryControllerSetDefault(id, options) {
|
|
447
|
+
return localVarFp.dockerRegistryControllerSetDefault(id, options).then((request) => request(axios, basePath));
|
|
448
|
+
},
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @summary Update a docker registry
|
|
452
|
+
* @param {string} id
|
|
453
|
+
* @param {UpdateDockerRegistryDto} updateDockerRegistryDto
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
*/
|
|
457
|
+
dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
|
|
458
|
+
return localVarFp.dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options).then((request) => request(axios, basePath));
|
|
459
|
+
},
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
exports.DockerRegistryApiFactory = DockerRegistryApiFactory;
|
|
463
|
+
/**
|
|
464
|
+
* DockerRegistryApi - object-oriented interface
|
|
465
|
+
* @export
|
|
466
|
+
* @class DockerRegistryApi
|
|
467
|
+
* @extends {BaseAPI}
|
|
468
|
+
*/
|
|
469
|
+
class DockerRegistryApi extends base_1.BaseAPI {
|
|
470
|
+
/**
|
|
471
|
+
*
|
|
472
|
+
* @summary Create a new docker registry
|
|
473
|
+
* @param {CreateDockerRegistryDto} createDockerRegistryDto
|
|
474
|
+
* @param {*} [options] Override http request option.
|
|
475
|
+
* @throws {RequiredError}
|
|
476
|
+
* @memberof DockerRegistryApi
|
|
477
|
+
*/
|
|
478
|
+
dockerRegistryControllerCreate(createDockerRegistryDto, options) {
|
|
479
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerCreate(createDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @summary Get all docker registries
|
|
484
|
+
* @param {*} [options] Override http request option.
|
|
485
|
+
* @throws {RequiredError}
|
|
486
|
+
* @memberof DockerRegistryApi
|
|
487
|
+
*/
|
|
488
|
+
dockerRegistryControllerFindAll(options) {
|
|
489
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerFindAll(options).then((request) => request(this.axios, this.basePath));
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
*
|
|
493
|
+
* @summary Get a docker registry by id
|
|
494
|
+
* @param {string} id
|
|
495
|
+
* @param {*} [options] Override http request option.
|
|
496
|
+
* @throws {RequiredError}
|
|
497
|
+
* @memberof DockerRegistryApi
|
|
498
|
+
*/
|
|
499
|
+
dockerRegistryControllerFindOne(id, options) {
|
|
500
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @summary Get the default docker registry
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
* @memberof DockerRegistryApi
|
|
508
|
+
*/
|
|
509
|
+
dockerRegistryControllerGetDefault(options) {
|
|
510
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerGetDefault(options).then((request) => request(this.axios, this.basePath));
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* @summary Delete a docker registry
|
|
515
|
+
* @param {string} id
|
|
516
|
+
* @param {*} [options] Override http request option.
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
* @memberof DockerRegistryApi
|
|
519
|
+
*/
|
|
520
|
+
dockerRegistryControllerRemove(id, options) {
|
|
521
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
*
|
|
525
|
+
* @summary Set a docker registry as default
|
|
526
|
+
* @param {string} id
|
|
527
|
+
* @param {*} [options] Override http request option.
|
|
528
|
+
* @throws {RequiredError}
|
|
529
|
+
* @memberof DockerRegistryApi
|
|
530
|
+
*/
|
|
531
|
+
dockerRegistryControllerSetDefault(id, options) {
|
|
532
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerSetDefault(id, options).then((request) => request(this.axios, this.basePath));
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @summary Update a docker registry
|
|
537
|
+
* @param {string} id
|
|
538
|
+
* @param {UpdateDockerRegistryDto} updateDockerRegistryDto
|
|
539
|
+
* @param {*} [options] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
* @memberof DockerRegistryApi
|
|
542
|
+
*/
|
|
543
|
+
dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
|
|
544
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration).dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
exports.DockerRegistryApi = DockerRegistryApi;
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daytona Workspaces
|
|
3
|
+
* Daytona Workspaces API Docs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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
|
+
export * from './api/default-api';
|
|
13
|
+
export * from './api/docker-registry-api';
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Daytona Workspaces
|
|
6
|
+
* Daytona Workspaces API Docs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
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
|
+
*/
|
|
2
15
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
16
|
if (k2 === undefined) k2 = k;
|
|
4
17
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -14,7 +27,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
28
|
};
|
|
16
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
__exportStar(require("./DefaultApi"), exports);
|
|
20
|
-
__exportStar(require("./DockerRegistryApi"), exports);
|
|
30
|
+
__exportStar(require("./api/default-api"), exports);
|
|
31
|
+
__exportStar(require("./api/docker-registry-api"), exports);
|
package/dist/base.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daytona Workspaces
|
|
3
|
+
* Daytona Workspaces API Docs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
constructor(field: string, msg?: string);
|
|
54
|
+
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|