@daytonaio/api-client 0.5.2 → 0.6.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 +20 -18
- package/README.md +2 -2
- package/api/api-keys-api.ts +21 -21
- package/api/{default-api.ts → app-api.ts} +14 -14
- package/api/docker-registry-api.ts +30 -30
- package/api/nodes-api.ts +16 -14
- package/api/toolbox-api.ts +120 -120
- package/api/users-api.ts +16 -14
- package/api/workspace-api.ts +37 -37
- package/api.ts +1 -1
- package/dist/api/api-keys-api.d.ts +17 -17
- package/dist/api/api-keys-api.js +17 -17
- package/dist/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/api/{default-api.js → app-api.js} +19 -19
- package/dist/api/docker-registry-api.d.ts +18 -18
- package/dist/api/docker-registry-api.js +33 -33
- package/dist/api/nodes-api.d.ts +9 -8
- package/dist/api/nodes-api.js +16 -16
- package/dist/api/toolbox-api.d.ts +72 -72
- package/dist/api/toolbox-api.js +125 -125
- package/dist/api/users-api.d.ts +9 -8
- package/dist/api/users-api.js +16 -16
- package/dist/api/workspace-api.d.ts +28 -28
- package/dist/api/workspace-api.js +34 -34
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/esm/api/api-keys-api.d.ts +17 -17
- package/dist/esm/api/api-keys-api.js +17 -17
- package/dist/esm/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/esm/api/{default-api.js → app-api.js} +14 -14
- package/dist/esm/api/docker-registry-api.d.ts +18 -18
- package/dist/esm/api/docker-registry-api.js +33 -33
- package/dist/esm/api/nodes-api.d.ts +9 -8
- package/dist/esm/api/nodes-api.js +16 -16
- package/dist/esm/api/toolbox-api.d.ts +72 -72
- package/dist/esm/api/toolbox-api.js +125 -125
- package/dist/esm/api/users-api.d.ts +9 -8
- package/dist/esm/api/users-api.js +16 -16
- package/dist/esm/api/workspace-api.d.ts +28 -28
- package/dist/esm/api/workspace-api.js +34 -34
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/esm/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{models/create-api-key-dto.d.ts → esm/models/create-api-key.d.ts} +3 -3
- package/dist/{models/create-docker-registry-dto.d.ts → esm/models/create-docker-registry.d.ts} +8 -8
- package/dist/esm/models/create-node.d.ts +24 -0
- package/dist/esm/models/create-user.d.ts +30 -0
- package/dist/{models/create-workspace-dto.d.ts → esm/models/create-workspace.d.ts} +21 -21
- package/dist/esm/models/{create-workspace-dto.js → create-workspace.js} +2 -2
- package/dist/{models/execute-request-dto.d.ts → esm/models/execute-request.d.ts} +4 -4
- package/dist/{models/execute-response-dto.d.ts → esm/models/execute-response.d.ts} +5 -5
- package/dist/esm/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{models/git-branch-request-dto.d.ts → esm/models/git-branch-request.d.ts} +4 -4
- package/dist/esm/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{models/git-commit-request-dto.d.ts → esm/models/git-commit-request.d.ts} +6 -6
- package/dist/esm/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/esm/models/index.d.ts +19 -17
- package/dist/esm/models/index.js +19 -17
- package/dist/esm/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/esm/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{models/workspace-info-dto.d.ts → esm/models/workspace-info.d.ts} +5 -5
- package/dist/{models/workspace-labels-dto.d.ts → esm/models/workspace-labels.d.ts} +3 -3
- package/dist/esm/models/workspace-labels.js +14 -0
- package/dist/{models/workspace-dto.d.ts → esm/models/workspace.d.ts} +18 -18
- package/dist/esm/models/workspace.js +14 -0
- package/dist/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{esm/models/create-api-key-dto.d.ts → models/create-api-key.d.ts} +3 -3
- package/dist/{esm/models/create-docker-registry-dto.d.ts → models/create-docker-registry.d.ts} +8 -8
- package/dist/models/create-node.d.ts +24 -0
- package/dist/models/create-user.d.ts +30 -0
- package/dist/{esm/models/create-workspace-dto.d.ts → models/create-workspace.d.ts} +21 -21
- package/dist/models/{create-workspace-dto.js → create-workspace.js} +3 -3
- package/dist/{esm/models/execute-request-dto.d.ts → models/execute-request.d.ts} +4 -4
- package/dist/{esm/models/execute-response-dto.d.ts → models/execute-response.d.ts} +5 -5
- package/dist/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{esm/models/git-branch-request-dto.d.ts → models/git-branch-request.d.ts} +4 -4
- package/dist/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{esm/models/git-commit-request-dto.d.ts → models/git-commit-request.d.ts} +6 -6
- package/dist/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/models/index.d.ts +19 -17
- package/dist/models/index.js +19 -17
- package/dist/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{esm/models/workspace-info-dto.d.ts → models/workspace-info.d.ts} +5 -5
- package/dist/{esm/models/workspace-labels-dto.d.ts → models/workspace-labels.d.ts} +3 -3
- package/dist/models/workspace-labels.js +15 -0
- package/dist/{esm/models/workspace-dto.d.ts → models/workspace.d.ts} +18 -18
- package/dist/models/workspace.js +15 -0
- package/models/{api-key-list-dto.ts → api-key-list.ts} +5 -5
- package/models/{api-key-response-dto.ts → api-key-response.ts} +5 -5
- package/models/{create-api-key-dto.ts → create-api-key.ts} +3 -3
- package/models/{create-docker-registry-dto.ts → create-docker-registry.ts} +8 -8
- package/models/create-node.ts +30 -0
- package/models/create-user.ts +36 -0
- package/models/{create-workspace-dto.ts → create-workspace.ts} +21 -21
- package/models/{execute-request-dto.ts → execute-request.ts} +4 -4
- package/models/{execute-response-dto.ts → execute-response.ts} +5 -5
- package/models/{git-add-request-dto.ts → git-add-request.ts} +4 -4
- package/models/{git-branch-request-dto.ts → git-branch-request.ts} +4 -4
- package/models/{git-clone-request-dto.ts → git-clone-request.ts} +8 -8
- package/models/{git-commit-request-dto.ts → git-commit-request.ts} +6 -6
- package/models/{git-repo-request-dto.ts → git-repo-request.ts} +5 -5
- package/models/index.ts +19 -17
- package/models/{replace-request-dto.ts → replace-request.ts} +5 -5
- package/models/{update-docker-registry-dto.ts → update-docker-registry.ts} +8 -8
- package/models/{workspace-info-dto.ts → workspace-info.ts} +5 -5
- package/models/{workspace-labels-dto.ts → workspace-labels.ts} +3 -3
- package/models/{workspace-dto.ts → workspace.ts} +18 -18
- package/package.json +1 -1
- /package/dist/esm/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/esm/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/esm/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/esm/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/esm/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/esm/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/esm/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/esm/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/esm/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
- /package/dist/esm/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/esm/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/esm/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/esm/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/esm/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/esm/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/esm/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
- /package/dist/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
- /package/dist/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
|
@@ -35,13 +35,13 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @summary Create registry
|
|
38
|
-
* @param {
|
|
38
|
+
* @param {CreateDockerRegistry} createDockerRegistry
|
|
39
39
|
* @param {*} [options] Override http request option.
|
|
40
40
|
* @throws {RequiredError}
|
|
41
41
|
*/
|
|
42
|
-
createRegistry: (
|
|
43
|
-
// verify required parameter '
|
|
44
|
-
assertParamExists('createRegistry', '
|
|
42
|
+
createRegistry: (createDockerRegistry_1, ...args_1) => __awaiter(this, [createDockerRegistry_1, ...args_1], void 0, function* (createDockerRegistry, options = {}) {
|
|
43
|
+
// verify required parameter 'createDockerRegistry' is not null or undefined
|
|
44
|
+
assertParamExists('createRegistry', 'createDockerRegistry', createDockerRegistry);
|
|
45
45
|
const localVarPath = `/docker-registry`;
|
|
46
46
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
47
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -59,7 +59,7 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
59
59
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
60
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
61
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
62
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDockerRegistry, localVarRequestOptions, configuration);
|
|
63
63
|
return {
|
|
64
64
|
url: toPathString(localVarUrlObj),
|
|
65
65
|
options: localVarRequestOptions,
|
|
@@ -72,7 +72,7 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
72
72
|
* @param {*} [options] Override http request option.
|
|
73
73
|
* @throws {RequiredError}
|
|
74
74
|
*/
|
|
75
|
-
deleteRegistry: (id_1, ...
|
|
75
|
+
deleteRegistry: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
76
76
|
// verify required parameter 'id' is not null or undefined
|
|
77
77
|
assertParamExists('deleteRegistry', 'id', id);
|
|
78
78
|
const localVarPath = `/docker-registry/{id}`
|
|
@@ -103,7 +103,7 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
104
104
|
* @throws {RequiredError}
|
|
105
105
|
*/
|
|
106
|
-
getDefaultRegistry: (...
|
|
106
|
+
getDefaultRegistry: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
107
107
|
const localVarPath = `/docker-registry/default`;
|
|
108
108
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
109
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -132,7 +132,7 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
132
132
|
* @param {*} [options] Override http request option.
|
|
133
133
|
* @throws {RequiredError}
|
|
134
134
|
*/
|
|
135
|
-
getRegistry: (
|
|
135
|
+
getRegistry: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
136
136
|
// verify required parameter 'id' is not null or undefined
|
|
137
137
|
assertParamExists('getRegistry', 'id', id);
|
|
138
138
|
const localVarPath = `/docker-registry/{id}`
|
|
@@ -163,7 +163,7 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
166
|
-
listRegistries: (...
|
|
166
|
+
listRegistries: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
167
167
|
const localVarPath = `/docker-registry`;
|
|
168
168
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
169
169
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -192,7 +192,7 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
192
192
|
* @param {*} [options] Override http request option.
|
|
193
193
|
* @throws {RequiredError}
|
|
194
194
|
*/
|
|
195
|
-
setDefaultRegistry: (
|
|
195
|
+
setDefaultRegistry: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
196
196
|
// verify required parameter 'id' is not null or undefined
|
|
197
197
|
assertParamExists('setDefaultRegistry', 'id', id);
|
|
198
198
|
const localVarPath = `/docker-registry/{id}/set-default`
|
|
@@ -221,15 +221,15 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
221
221
|
*
|
|
222
222
|
* @summary Update registry
|
|
223
223
|
* @param {string} id
|
|
224
|
-
* @param {
|
|
224
|
+
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
225
225
|
* @param {*} [options] Override http request option.
|
|
226
226
|
* @throws {RequiredError}
|
|
227
227
|
*/
|
|
228
|
-
updateRegistry: (
|
|
228
|
+
updateRegistry: (id_1, updateDockerRegistry_1, ...args_1) => __awaiter(this, [id_1, updateDockerRegistry_1, ...args_1], void 0, function* (id, updateDockerRegistry, options = {}) {
|
|
229
229
|
// verify required parameter 'id' is not null or undefined
|
|
230
230
|
assertParamExists('updateRegistry', 'id', id);
|
|
231
|
-
// verify required parameter '
|
|
232
|
-
assertParamExists('updateRegistry', '
|
|
231
|
+
// verify required parameter 'updateDockerRegistry' is not null or undefined
|
|
232
|
+
assertParamExists('updateRegistry', 'updateDockerRegistry', updateDockerRegistry);
|
|
233
233
|
const localVarPath = `/docker-registry/{id}`
|
|
234
234
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
235
235
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -248,7 +248,7 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
248
248
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
249
249
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
250
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
251
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
251
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateDockerRegistry, localVarRequestOptions, configuration);
|
|
252
252
|
return {
|
|
253
253
|
url: toPathString(localVarUrlObj),
|
|
254
254
|
options: localVarRequestOptions,
|
|
@@ -266,14 +266,14 @@ export const DockerRegistryApiFp = function (configuration) {
|
|
|
266
266
|
/**
|
|
267
267
|
*
|
|
268
268
|
* @summary Create registry
|
|
269
|
-
* @param {
|
|
269
|
+
* @param {CreateDockerRegistry} createDockerRegistry
|
|
270
270
|
* @param {*} [options] Override http request option.
|
|
271
271
|
* @throws {RequiredError}
|
|
272
272
|
*/
|
|
273
|
-
createRegistry(
|
|
273
|
+
createRegistry(createDockerRegistry, options) {
|
|
274
274
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
275
|
var _a, _b, _c;
|
|
276
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createRegistry(
|
|
276
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createRegistry(createDockerRegistry, options);
|
|
277
277
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
278
278
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.createRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
279
279
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -361,14 +361,14 @@ export const DockerRegistryApiFp = function (configuration) {
|
|
|
361
361
|
*
|
|
362
362
|
* @summary Update registry
|
|
363
363
|
* @param {string} id
|
|
364
|
-
* @param {
|
|
364
|
+
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
365
365
|
* @param {*} [options] Override http request option.
|
|
366
366
|
* @throws {RequiredError}
|
|
367
367
|
*/
|
|
368
|
-
updateRegistry(id,
|
|
368
|
+
updateRegistry(id, updateDockerRegistry, options) {
|
|
369
369
|
return __awaiter(this, void 0, void 0, function* () {
|
|
370
370
|
var _a, _b, _c;
|
|
371
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRegistry(id,
|
|
371
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRegistry(id, updateDockerRegistry, options);
|
|
372
372
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
373
373
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.updateRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
374
374
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -386,12 +386,12 @@ export const DockerRegistryApiFactory = function (configuration, basePath, axios
|
|
|
386
386
|
/**
|
|
387
387
|
*
|
|
388
388
|
* @summary Create registry
|
|
389
|
-
* @param {
|
|
389
|
+
* @param {CreateDockerRegistry} createDockerRegistry
|
|
390
390
|
* @param {*} [options] Override http request option.
|
|
391
391
|
* @throws {RequiredError}
|
|
392
392
|
*/
|
|
393
|
-
createRegistry(
|
|
394
|
-
return localVarFp.createRegistry(
|
|
393
|
+
createRegistry(createDockerRegistry, options) {
|
|
394
|
+
return localVarFp.createRegistry(createDockerRegistry, options).then((request) => request(axios, basePath));
|
|
395
395
|
},
|
|
396
396
|
/**
|
|
397
397
|
*
|
|
@@ -445,12 +445,12 @@ export const DockerRegistryApiFactory = function (configuration, basePath, axios
|
|
|
445
445
|
*
|
|
446
446
|
* @summary Update registry
|
|
447
447
|
* @param {string} id
|
|
448
|
-
* @param {
|
|
448
|
+
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
449
449
|
* @param {*} [options] Override http request option.
|
|
450
450
|
* @throws {RequiredError}
|
|
451
451
|
*/
|
|
452
|
-
updateRegistry(id,
|
|
453
|
-
return localVarFp.updateRegistry(id,
|
|
452
|
+
updateRegistry(id, updateDockerRegistry, options) {
|
|
453
|
+
return localVarFp.updateRegistry(id, updateDockerRegistry, options).then((request) => request(axios, basePath));
|
|
454
454
|
},
|
|
455
455
|
};
|
|
456
456
|
};
|
|
@@ -464,13 +464,13 @@ export class DockerRegistryApi extends BaseAPI {
|
|
|
464
464
|
/**
|
|
465
465
|
*
|
|
466
466
|
* @summary Create registry
|
|
467
|
-
* @param {
|
|
467
|
+
* @param {CreateDockerRegistry} createDockerRegistry
|
|
468
468
|
* @param {*} [options] Override http request option.
|
|
469
469
|
* @throws {RequiredError}
|
|
470
470
|
* @memberof DockerRegistryApi
|
|
471
471
|
*/
|
|
472
|
-
createRegistry(
|
|
473
|
-
return DockerRegistryApiFp(this.configuration).createRegistry(
|
|
472
|
+
createRegistry(createDockerRegistry, options) {
|
|
473
|
+
return DockerRegistryApiFp(this.configuration).createRegistry(createDockerRegistry, options).then((request) => request(this.axios, this.basePath));
|
|
474
474
|
}
|
|
475
475
|
/**
|
|
476
476
|
*
|
|
@@ -529,12 +529,12 @@ export class DockerRegistryApi extends BaseAPI {
|
|
|
529
529
|
*
|
|
530
530
|
* @summary Update registry
|
|
531
531
|
* @param {string} id
|
|
532
|
-
* @param {
|
|
532
|
+
* @param {UpdateDockerRegistry} updateDockerRegistry
|
|
533
533
|
* @param {*} [options] Override http request option.
|
|
534
534
|
* @throws {RequiredError}
|
|
535
535
|
* @memberof DockerRegistryApi
|
|
536
536
|
*/
|
|
537
|
-
updateRegistry(id,
|
|
538
|
-
return DockerRegistryApiFp(this.configuration).updateRegistry(id,
|
|
537
|
+
updateRegistry(id, updateDockerRegistry, options) {
|
|
538
|
+
return DockerRegistryApiFp(this.configuration).updateRegistry(id, updateDockerRegistry, options).then((request) => request(this.axios, this.basePath));
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { CreateNode } from '../models';
|
|
15
16
|
/**
|
|
16
17
|
* NodesApi - axios parameter creator
|
|
17
18
|
* @export
|
|
@@ -20,11 +21,11 @@ export declare const NodesApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
20
21
|
/**
|
|
21
22
|
*
|
|
22
23
|
* @summary Create node
|
|
23
|
-
* @param {
|
|
24
|
+
* @param {CreateNode} createNode
|
|
24
25
|
* @param {*} [options] Override http request option.
|
|
25
26
|
* @throws {RequiredError}
|
|
26
27
|
*/
|
|
27
|
-
createNode: (
|
|
28
|
+
createNode: (createNode: CreateNode, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
29
|
/**
|
|
29
30
|
*
|
|
30
31
|
* @summary List all nodes
|
|
@@ -49,11 +50,11 @@ export declare const NodesApiFp: (configuration?: Configuration) => {
|
|
|
49
50
|
/**
|
|
50
51
|
*
|
|
51
52
|
* @summary Create node
|
|
52
|
-
* @param {
|
|
53
|
+
* @param {CreateNode} createNode
|
|
53
54
|
* @param {*} [options] Override http request option.
|
|
54
55
|
* @throws {RequiredError}
|
|
55
56
|
*/
|
|
56
|
-
createNode(
|
|
57
|
+
createNode(createNode: CreateNode, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
57
58
|
/**
|
|
58
59
|
*
|
|
59
60
|
* @summary List all nodes
|
|
@@ -78,11 +79,11 @@ export declare const NodesApiFactory: (configuration?: Configuration, basePath?:
|
|
|
78
79
|
/**
|
|
79
80
|
*
|
|
80
81
|
* @summary Create node
|
|
81
|
-
* @param {
|
|
82
|
+
* @param {CreateNode} createNode
|
|
82
83
|
* @param {*} [options] Override http request option.
|
|
83
84
|
* @throws {RequiredError}
|
|
84
85
|
*/
|
|
85
|
-
createNode(
|
|
86
|
+
createNode(createNode: CreateNode, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
86
87
|
/**
|
|
87
88
|
*
|
|
88
89
|
* @summary List all nodes
|
|
@@ -109,12 +110,12 @@ export declare class NodesApi extends BaseAPI {
|
|
|
109
110
|
/**
|
|
110
111
|
*
|
|
111
112
|
* @summary Create node
|
|
112
|
-
* @param {
|
|
113
|
+
* @param {CreateNode} createNode
|
|
113
114
|
* @param {*} [options] Override http request option.
|
|
114
115
|
* @throws {RequiredError}
|
|
115
116
|
* @memberof NodesApi
|
|
116
117
|
*/
|
|
117
|
-
createNode(
|
|
118
|
+
createNode(createNode: CreateNode, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
118
119
|
/**
|
|
119
120
|
*
|
|
120
121
|
* @summary List all nodes
|
|
@@ -35,13 +35,13 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @summary Create node
|
|
38
|
-
* @param {
|
|
38
|
+
* @param {CreateNode} createNode
|
|
39
39
|
* @param {*} [options] Override http request option.
|
|
40
40
|
* @throws {RequiredError}
|
|
41
41
|
*/
|
|
42
|
-
createNode: (
|
|
43
|
-
// verify required parameter '
|
|
44
|
-
assertParamExists('createNode', '
|
|
42
|
+
createNode: (createNode_1, ...args_1) => __awaiter(this, [createNode_1, ...args_1], void 0, function* (createNode, options = {}) {
|
|
43
|
+
// verify required parameter 'createNode' is not null or undefined
|
|
44
|
+
assertParamExists('createNode', 'createNode', createNode);
|
|
45
45
|
const localVarPath = `/nodes`;
|
|
46
46
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
47
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -59,7 +59,7 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
59
59
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
60
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
61
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
62
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createNode, localVarRequestOptions, configuration);
|
|
63
63
|
return {
|
|
64
64
|
url: toPathString(localVarUrlObj),
|
|
65
65
|
options: localVarRequestOptions,
|
|
@@ -71,7 +71,7 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
71
71
|
* @param {*} [options] Override http request option.
|
|
72
72
|
* @throws {RequiredError}
|
|
73
73
|
*/
|
|
74
|
-
listNodes: (...
|
|
74
|
+
listNodes: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
75
75
|
const localVarPath = `/nodes`;
|
|
76
76
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
77
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -100,7 +100,7 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
updateNodeScheduling: (id_1, ...
|
|
103
|
+
updateNodeScheduling: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
104
104
|
// verify required parameter 'id' is not null or undefined
|
|
105
105
|
assertParamExists('updateNodeScheduling', 'id', id);
|
|
106
106
|
const localVarPath = `/nodes/{id}/scheduling`
|
|
@@ -137,14 +137,14 @@ export const NodesApiFp = function (configuration) {
|
|
|
137
137
|
/**
|
|
138
138
|
*
|
|
139
139
|
* @summary Create node
|
|
140
|
-
* @param {
|
|
140
|
+
* @param {CreateNode} createNode
|
|
141
141
|
* @param {*} [options] Override http request option.
|
|
142
142
|
* @throws {RequiredError}
|
|
143
143
|
*/
|
|
144
|
-
createNode(
|
|
144
|
+
createNode(createNode, options) {
|
|
145
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
146
146
|
var _a, _b, _c;
|
|
147
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createNode(
|
|
147
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createNode(createNode, options);
|
|
148
148
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
149
149
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['NodesApi.createNode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
150
150
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -193,12 +193,12 @@ export const NodesApiFactory = function (configuration, basePath, axios) {
|
|
|
193
193
|
/**
|
|
194
194
|
*
|
|
195
195
|
* @summary Create node
|
|
196
|
-
* @param {
|
|
196
|
+
* @param {CreateNode} createNode
|
|
197
197
|
* @param {*} [options] Override http request option.
|
|
198
198
|
* @throws {RequiredError}
|
|
199
199
|
*/
|
|
200
|
-
createNode(
|
|
201
|
-
return localVarFp.createNode(
|
|
200
|
+
createNode(createNode, options) {
|
|
201
|
+
return localVarFp.createNode(createNode, options).then((request) => request(axios, basePath));
|
|
202
202
|
},
|
|
203
203
|
/**
|
|
204
204
|
*
|
|
@@ -231,13 +231,13 @@ export class NodesApi extends BaseAPI {
|
|
|
231
231
|
/**
|
|
232
232
|
*
|
|
233
233
|
* @summary Create node
|
|
234
|
-
* @param {
|
|
234
|
+
* @param {CreateNode} createNode
|
|
235
235
|
* @param {*} [options] Override http request option.
|
|
236
236
|
* @throws {RequiredError}
|
|
237
237
|
* @memberof NodesApi
|
|
238
238
|
*/
|
|
239
|
-
createNode(
|
|
240
|
-
return NodesApiFp(this.configuration).createNode(
|
|
239
|
+
createNode(createNode, options) {
|
|
240
|
+
return NodesApiFp(this.configuration).createNode(createNode, options).then((request) => request(this.axios, this.basePath));
|
|
241
241
|
}
|
|
242
242
|
/**
|
|
243
243
|
*
|