@daytonaio/api-client 0.15.0 → 0.17.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 +5 -3
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +412 -324
- package/api/docker-registry-api.ts +731 -549
- package/api/images-api.ts +596 -346
- package/api/nodes-api.ts +259 -210
- package/api/organizations-api.ts +2504 -1671
- package/api/preview-api.ts +330 -0
- package/api/toolbox-api.ts +4651 -3186
- package/api/users-api.ts +317 -271
- package/api/workspace-api.ts +1536 -969
- package/api.ts +10 -12
- package/base.ts +35 -30
- package/common.ts +78 -66
- package/configuration.ts +102 -89
- package/dist/api/api-keys-api.js +66 -63
- package/dist/api/docker-registry-api.js +123 -107
- package/dist/api/images-api.d.ts +42 -0
- package/dist/api/images-api.js +161 -66
- package/dist/api/nodes-api.js +46 -47
- package/dist/api/organizations-api.d.ts +71 -0
- package/dist/api/organizations-api.js +560 -336
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +269 -0
- package/dist/api/toolbox-api.js +709 -569
- package/dist/api/users-api.js +49 -59
- package/dist/api/workspace-api.d.ts +51 -4
- package/dist/api/workspace-api.js +330 -190
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +6 -7
- package/dist/common.d.ts +3 -3
- package/dist/common.js +27 -45
- package/dist/configuration.js +2 -1
- package/dist/esm/api/api-keys-api.js +67 -64
- package/dist/esm/api/docker-registry-api.js +124 -108
- package/dist/esm/api/images-api.d.ts +42 -0
- package/dist/esm/api/images-api.js +162 -67
- package/dist/esm/api/nodes-api.js +47 -48
- package/dist/esm/api/organizations-api.d.ts +71 -0
- package/dist/esm/api/organizations-api.js +561 -337
- package/dist/esm/api/preview-api.d.ts +143 -0
- package/dist/esm/api/preview-api.js +262 -0
- package/dist/esm/api/toolbox-api.js +710 -570
- package/dist/esm/api/users-api.js +50 -60
- package/dist/esm/api/workspace-api.d.ts +51 -4
- package/dist/esm/api/workspace-api.js +331 -191
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/base.js +6 -7
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +28 -46
- package/dist/esm/configuration.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/models/api-key-list.d.ts +12 -12
- package/dist/esm/models/api-key-list.js +6 -6
- package/dist/esm/models/api-key-response.d.ts +12 -12
- package/dist/esm/models/api-key-response.js +6 -6
- package/dist/esm/models/command.d.ts +3 -3
- package/dist/esm/models/completion-context.d.ts +2 -2
- package/dist/esm/models/completion-item.d.ts +7 -7
- package/dist/esm/models/completion-list.d.ts +2 -2
- package/dist/esm/models/create-api-key.d.ts +9 -9
- package/dist/esm/models/create-api-key.js +6 -6
- package/dist/esm/models/create-docker-registry.d.ts +8 -8
- package/dist/esm/models/create-docker-registry.js +1 -1
- package/dist/esm/models/create-image.d.ts +9 -3
- package/dist/esm/models/create-node.d.ts +13 -13
- package/dist/esm/models/create-node.js +2 -2
- package/dist/esm/models/create-organization-invitation.d.ts +6 -6
- package/dist/esm/models/create-organization-invitation.js +1 -1
- package/dist/esm/models/create-organization-quota.d.ts +11 -11
- package/dist/esm/models/create-organization-role.d.ts +10 -10
- package/dist/esm/models/create-organization-role.js +6 -6
- package/dist/esm/models/create-organization.d.ts +1 -67
- package/dist/esm/models/create-session-request.d.ts +1 -1
- package/dist/esm/models/create-user.d.ts +15 -4
- package/dist/esm/models/create-user.js +4 -1
- package/dist/esm/models/create-workspace.d.ts +14 -26
- package/dist/esm/models/create-workspace.js +2 -2
- package/dist/esm/models/docker-registry.d.ts +11 -11
- package/dist/esm/models/docker-registry.js +1 -1
- package/dist/esm/models/execute-request.d.ts +3 -3
- package/dist/esm/models/execute-response.d.ts +2 -2
- package/dist/esm/models/file-info.d.ts +8 -8
- package/dist/esm/models/file-status.d.ts +4 -4
- package/dist/esm/models/git-add-request.d.ts +2 -2
- package/dist/esm/models/git-branch-request.d.ts +2 -2
- package/dist/esm/models/git-clone-request.d.ts +6 -6
- package/dist/esm/models/git-commit-info.d.ts +5 -5
- package/dist/esm/models/git-commit-request.d.ts +4 -4
- package/dist/esm/models/git-commit-response.d.ts +1 -1
- package/dist/esm/models/git-repo-request.d.ts +3 -3
- package/dist/esm/models/git-status.d.ts +4 -4
- package/dist/esm/models/image-dto.d.ts +21 -15
- package/dist/esm/models/image-state.d.ts +1 -1
- package/dist/esm/models/image-state.js +1 -1
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/list-branch-response.d.ts +1 -1
- package/dist/esm/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/esm/models/list-workspaces-labels-parameter.js +14 -0
- package/dist/esm/models/lsp-completion-params.d.ts +5 -5
- package/dist/esm/models/lsp-document-request.d.ts +3 -3
- package/dist/esm/models/lsp-location.d.ts +2 -2
- package/dist/esm/models/lsp-server-request.d.ts +2 -2
- package/dist/esm/models/lsp-symbol.d.ts +3 -3
- package/dist/esm/models/match.d.ts +3 -3
- package/dist/esm/models/organization-invitation.d.ts +21 -15
- package/dist/esm/models/organization-invitation.js +2 -2
- package/dist/esm/models/organization-role.d.ts +16 -16
- package/dist/esm/models/organization-role.js +6 -6
- package/dist/esm/models/organization-suspension.d.ts +30 -0
- package/dist/esm/models/organization-suspension.js +14 -0
- package/dist/esm/models/organization-user.d.ts +11 -11
- package/dist/esm/models/organization-user.js +1 -1
- package/dist/esm/models/organization.d.ts +31 -7
- package/dist/esm/models/paginated-images-dto.d.ts +4 -4
- package/dist/esm/models/port-preview-url.d.ts +30 -0
- package/dist/esm/models/port-preview-url.js +14 -0
- package/dist/esm/models/position.d.ts +2 -2
- package/dist/esm/models/project-dir-response.d.ts +1 -1
- package/dist/esm/models/range.d.ts +2 -2
- package/dist/esm/models/registry-push-access-dto.d.ts +6 -6
- package/dist/esm/models/replace-request.d.ts +3 -3
- package/dist/esm/models/replace-result.d.ts +3 -3
- package/dist/esm/models/search-files-response.d.ts +1 -1
- package/dist/esm/models/session-execute-request.d.ts +9 -2
- package/dist/esm/models/session-execute-response.d.ts +3 -3
- package/dist/esm/models/session.d.ts +2 -2
- package/dist/esm/models/set-image-general-status.d.ts +24 -0
- package/dist/esm/models/set-image-general-status.js +14 -0
- package/dist/esm/models/toggle-state.d.ts +1 -1
- package/dist/esm/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/esm/models/update-docker-registry.d.ts +3 -3
- package/dist/esm/models/update-organization-invitation.d.ts +5 -5
- package/dist/esm/models/update-organization-invitation.js +1 -1
- package/dist/esm/models/update-organization-member-role.d.ts +2 -2
- package/dist/esm/models/update-organization-member-role.js +1 -1
- package/dist/esm/models/update-organization-quota.d.ts +11 -11
- package/dist/esm/models/update-organization-role.d.ts +10 -10
- package/dist/esm/models/update-organization-role.js +6 -6
- package/dist/esm/models/usage-overview.d.ts +15 -15
- package/dist/esm/models/user-public-key.d.ts +2 -2
- package/dist/esm/models/user.d.ts +4 -4
- package/dist/esm/models/workspace-info.d.ts +5 -4
- package/dist/esm/models/workspace-labels.d.ts +1 -1
- package/dist/esm/models/workspace-state.d.ts +2 -2
- package/dist/esm/models/workspace-state.js +2 -2
- package/dist/esm/models/workspace.d.ts +26 -19
- package/dist/esm/models/workspace.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/models/api-key-list.d.ts +12 -12
- package/dist/models/api-key-list.js +6 -6
- package/dist/models/api-key-response.d.ts +12 -12
- package/dist/models/api-key-response.js +6 -6
- package/dist/models/command.d.ts +3 -3
- package/dist/models/completion-context.d.ts +2 -2
- package/dist/models/completion-item.d.ts +7 -7
- package/dist/models/completion-list.d.ts +2 -2
- package/dist/models/create-api-key.d.ts +9 -9
- package/dist/models/create-api-key.js +6 -6
- package/dist/models/create-docker-registry.d.ts +8 -8
- package/dist/models/create-docker-registry.js +1 -1
- package/dist/models/create-image.d.ts +9 -3
- package/dist/models/create-node.d.ts +13 -13
- package/dist/models/create-node.js +2 -2
- package/dist/models/create-organization-invitation.d.ts +6 -6
- package/dist/models/create-organization-invitation.js +1 -1
- package/dist/models/create-organization-quota.d.ts +11 -11
- package/dist/models/create-organization-role.d.ts +10 -10
- package/dist/models/create-organization-role.js +6 -6
- package/dist/models/create-organization.d.ts +1 -67
- package/dist/models/create-session-request.d.ts +1 -1
- package/dist/models/create-user.d.ts +15 -4
- package/dist/models/create-user.js +5 -0
- package/dist/models/create-workspace.d.ts +14 -26
- package/dist/models/create-workspace.js +2 -2
- package/dist/models/docker-registry.d.ts +11 -11
- package/dist/models/docker-registry.js +1 -1
- package/dist/models/execute-request.d.ts +3 -3
- package/dist/models/execute-response.d.ts +2 -2
- package/dist/models/file-info.d.ts +8 -8
- package/dist/models/file-status.d.ts +4 -4
- package/dist/models/git-add-request.d.ts +2 -2
- package/dist/models/git-branch-request.d.ts +2 -2
- package/dist/models/git-clone-request.d.ts +6 -6
- package/dist/models/git-commit-info.d.ts +5 -5
- package/dist/models/git-commit-request.d.ts +4 -4
- package/dist/models/git-commit-response.d.ts +1 -1
- package/dist/models/git-repo-request.d.ts +3 -3
- package/dist/models/git-status.d.ts +4 -4
- package/dist/models/image-dto.d.ts +21 -15
- package/dist/models/image-state.d.ts +1 -1
- package/dist/models/image-state.js +1 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-branch-response.d.ts +1 -1
- package/dist/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/models/list-workspaces-labels-parameter.js +15 -0
- package/dist/models/lsp-completion-params.d.ts +5 -5
- package/dist/models/lsp-document-request.d.ts +3 -3
- package/dist/models/lsp-location.d.ts +2 -2
- package/dist/models/lsp-server-request.d.ts +2 -2
- package/dist/models/lsp-symbol.d.ts +3 -3
- package/dist/models/match.d.ts +3 -3
- package/dist/models/organization-invitation.d.ts +21 -15
- package/dist/models/organization-invitation.js +2 -2
- package/dist/models/organization-role.d.ts +16 -16
- package/dist/models/organization-role.js +6 -6
- package/dist/models/organization-suspension.d.ts +30 -0
- package/dist/models/organization-suspension.js +15 -0
- package/dist/models/organization-user.d.ts +11 -11
- package/dist/models/organization-user.js +1 -1
- package/dist/models/organization.d.ts +31 -7
- package/dist/models/paginated-images-dto.d.ts +4 -4
- package/dist/models/port-preview-url.d.ts +30 -0
- package/dist/models/port-preview-url.js +15 -0
- package/dist/models/position.d.ts +2 -2
- package/dist/models/project-dir-response.d.ts +1 -1
- package/dist/models/range.d.ts +2 -2
- package/dist/models/registry-push-access-dto.d.ts +6 -6
- package/dist/models/replace-request.d.ts +3 -3
- package/dist/models/replace-result.d.ts +3 -3
- package/dist/models/search-files-response.d.ts +1 -1
- package/dist/models/session-execute-request.d.ts +9 -2
- package/dist/models/session-execute-response.d.ts +3 -3
- package/dist/models/session.d.ts +2 -2
- package/dist/models/set-image-general-status.d.ts +24 -0
- package/dist/models/set-image-general-status.js +15 -0
- package/dist/models/toggle-state.d.ts +1 -1
- package/dist/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/models/update-docker-registry.d.ts +3 -3
- package/dist/models/update-organization-invitation.d.ts +5 -5
- package/dist/models/update-organization-invitation.js +1 -1
- package/dist/models/update-organization-member-role.d.ts +2 -2
- package/dist/models/update-organization-member-role.js +1 -1
- package/dist/models/update-organization-quota.d.ts +11 -11
- package/dist/models/update-organization-role.d.ts +10 -10
- package/dist/models/update-organization-role.js +6 -6
- package/dist/models/usage-overview.d.ts +15 -15
- package/dist/models/user-public-key.d.ts +2 -2
- package/dist/models/user.d.ts +4 -4
- package/dist/models/workspace-info.d.ts +5 -4
- package/dist/models/workspace-labels.d.ts +1 -1
- package/dist/models/workspace-state.d.ts +2 -2
- package/dist/models/workspace-state.js +2 -2
- package/dist/models/workspace.d.ts +26 -19
- package/dist/models/workspace.js +1 -1
- package/index.ts +4 -5
- package/models/api-key-list.ts +34 -38
- package/models/api-key-response.ts +35 -38
- package/models/command.ts +20 -23
- package/models/completion-context.ts +14 -17
- package/models/completion-item.ts +44 -47
- package/models/completion-list.ts +15 -17
- package/models/create-api-key.ts +22 -26
- package/models/create-docker-registry.ts +51 -54
- package/models/create-image.ts +20 -17
- package/models/create-node.ts +78 -82
- package/models/create-organization-invitation.ts +31 -34
- package/models/create-organization-quota.ts +68 -71
- package/models/create-organization-role.ts +29 -32
- package/models/create-organization.ts +8 -77
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +39 -28
- package/models/create-workspace.ts +84 -100
- package/models/docker-registry.ts +57 -60
- package/models/execute-request.ts +20 -23
- package/models/execute-response.ts +14 -17
- package/models/file-info.ts +50 -53
- package/models/file-status.ts +26 -29
- package/models/git-add-request.ts +14 -17
- package/models/git-branch-request.ts +14 -17
- package/models/git-clone-request.ts +38 -41
- package/models/git-commit-info.ts +32 -35
- package/models/git-commit-request.ts +26 -29
- package/models/git-commit-response.ts +8 -11
- package/models/git-repo-request.ts +20 -23
- package/models/git-status.ts +33 -35
- package/models/image-dto.ts +75 -73
- package/models/image-state.ts +12 -17
- package/models/index.ts +72 -68
- package/models/list-branch-response.ts +8 -11
- package/models/list-workspaces-labels-parameter.ts +27 -0
- package/models/lsp-completion-params.ts +34 -36
- package/models/lsp-document-request.ts +20 -23
- package/models/lsp-location.ts +15 -17
- package/models/lsp-server-request.ts +14 -17
- package/models/lsp-symbol.ts +21 -23
- package/models/match.ts +20 -23
- package/models/organization-invitation.ts +81 -76
- package/models/organization-role.ts +53 -56
- package/models/organization-suspension.ts +33 -0
- package/models/organization-user.ts +55 -58
- package/models/organization.ts +62 -41
- package/models/paginated-images-dto.ts +27 -29
- package/models/port-preview-url.ts +33 -0
- package/models/position.ts +14 -17
- package/models/project-dir-response.ts +8 -11
- package/models/range.ts +15 -17
- package/models/registry-push-access-dto.ts +38 -41
- package/models/replace-request.ts +20 -23
- package/models/replace-result.ts +20 -23
- package/models/search-files-response.ts +8 -11
- package/models/session-execute-request.ts +21 -17
- package/models/session-execute-response.ts +20 -23
- package/models/session.ts +15 -17
- package/models/set-image-general-status.ts +27 -0
- package/models/toggle-state.ts +8 -11
- package/models/update-assigned-organization-roles.ts +8 -11
- package/models/update-docker-registry.ts +20 -23
- package/models/update-organization-invitation.ts +25 -28
- package/models/update-organization-member-role.ts +13 -16
- package/models/update-organization-quota.ts +68 -71
- package/models/update-organization-role.ts +29 -32
- package/models/usage-overview.ts +92 -95
- package/models/user-public-key.ts +14 -17
- package/models/user.ts +27 -29
- package/models/workspace-info.ts +21 -23
- package/models/workspace-labels.ts +8 -11
- package/models/workspace-state.ts +19 -24
- package/models/workspace.ts +126 -122
- package/package.json +2 -2
- package/project.json +49 -0
- package/tsconfig.json +3 -8
- package/README.md +0 -46
- package/git_push.sh +0 -57
|
@@ -11,19 +11,10 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
14
|
import globalAxios from 'axios';
|
|
24
15
|
// Some imports not used depending on template conditions
|
|
25
16
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
17
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from '../common';
|
|
27
18
|
// @ts-ignore
|
|
28
19
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
20
|
/**
|
|
@@ -39,7 +30,7 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
39
30
|
* @param {*} [options] Override http request option.
|
|
40
31
|
* @throws {RequiredError}
|
|
41
32
|
*/
|
|
42
|
-
createNode:
|
|
33
|
+
createNode: async (createNode, options = {}) => {
|
|
43
34
|
// verify required parameter 'createNode' is not null or undefined
|
|
44
35
|
assertParamExists('createNode', 'createNode', createNode);
|
|
45
36
|
const localVarPath = `/nodes`;
|
|
@@ -52,9 +43,12 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
52
43
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
53
44
|
const localVarHeaderParameter = {};
|
|
54
45
|
const localVarQueryParameter = {};
|
|
46
|
+
// authentication bearer required
|
|
47
|
+
// http bearer authentication required
|
|
48
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
55
49
|
// authentication oauth2 required
|
|
56
50
|
// oauth required
|
|
57
|
-
|
|
51
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
58
52
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
59
53
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
54
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -64,14 +58,14 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
64
58
|
url: toPathString(localVarUrlObj),
|
|
65
59
|
options: localVarRequestOptions,
|
|
66
60
|
};
|
|
67
|
-
}
|
|
61
|
+
},
|
|
68
62
|
/**
|
|
69
63
|
*
|
|
70
64
|
* @summary List all nodes
|
|
71
65
|
* @param {*} [options] Override http request option.
|
|
72
66
|
* @throws {RequiredError}
|
|
73
67
|
*/
|
|
74
|
-
listNodes:
|
|
68
|
+
listNodes: async (options = {}) => {
|
|
75
69
|
const localVarPath = `/nodes`;
|
|
76
70
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
71
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -82,9 +76,12 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
82
76
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
83
77
|
const localVarHeaderParameter = {};
|
|
84
78
|
const localVarQueryParameter = {};
|
|
79
|
+
// authentication bearer required
|
|
80
|
+
// http bearer authentication required
|
|
81
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
85
82
|
// authentication oauth2 required
|
|
86
83
|
// oauth required
|
|
87
|
-
|
|
84
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
88
85
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
86
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
87
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -92,7 +89,7 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
92
89
|
url: toPathString(localVarUrlObj),
|
|
93
90
|
options: localVarRequestOptions,
|
|
94
91
|
};
|
|
95
|
-
}
|
|
92
|
+
},
|
|
96
93
|
/**
|
|
97
94
|
*
|
|
98
95
|
* @summary Update node scheduling status
|
|
@@ -100,11 +97,10 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
100
97
|
* @param {*} [options] Override http request option.
|
|
101
98
|
* @throws {RequiredError}
|
|
102
99
|
*/
|
|
103
|
-
updateNodeScheduling:
|
|
100
|
+
updateNodeScheduling: async (id, options = {}) => {
|
|
104
101
|
// verify required parameter 'id' is not null or undefined
|
|
105
102
|
assertParamExists('updateNodeScheduling', 'id', id);
|
|
106
|
-
const localVarPath = `/nodes/{id}/scheduling`
|
|
107
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
103
|
+
const localVarPath = `/nodes/{id}/scheduling`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
108
104
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
105
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
106
|
let baseOptions;
|
|
@@ -114,9 +110,12 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
114
110
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
115
111
|
const localVarHeaderParameter = {};
|
|
116
112
|
const localVarQueryParameter = {};
|
|
113
|
+
// authentication bearer required
|
|
114
|
+
// http bearer authentication required
|
|
115
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
117
116
|
// authentication oauth2 required
|
|
118
117
|
// oauth required
|
|
119
|
-
|
|
118
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
120
119
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
121
120
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
122
121
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -124,7 +123,7 @@ export const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
124
123
|
url: toPathString(localVarUrlObj),
|
|
125
124
|
options: localVarRequestOptions,
|
|
126
125
|
};
|
|
127
|
-
}
|
|
126
|
+
},
|
|
128
127
|
};
|
|
129
128
|
};
|
|
130
129
|
/**
|
|
@@ -141,14 +140,12 @@ export const NodesApiFp = function (configuration) {
|
|
|
141
140
|
* @param {*} [options] Override http request option.
|
|
142
141
|
* @throws {RequiredError}
|
|
143
142
|
*/
|
|
144
|
-
createNode(createNode, options) {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
151
|
-
});
|
|
143
|
+
async createNode(createNode, options) {
|
|
144
|
+
var _a, _b, _c;
|
|
145
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createNode(createNode, options);
|
|
146
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
147
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['NodesApi.createNode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
148
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
152
149
|
},
|
|
153
150
|
/**
|
|
154
151
|
*
|
|
@@ -156,14 +153,12 @@ export const NodesApiFp = function (configuration) {
|
|
|
156
153
|
* @param {*} [options] Override http request option.
|
|
157
154
|
* @throws {RequiredError}
|
|
158
155
|
*/
|
|
159
|
-
listNodes(options) {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
166
|
-
});
|
|
156
|
+
async listNodes(options) {
|
|
157
|
+
var _a, _b, _c;
|
|
158
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNodes(options);
|
|
159
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
160
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['NodesApi.listNodes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
161
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
167
162
|
},
|
|
168
163
|
/**
|
|
169
164
|
*
|
|
@@ -172,14 +167,12 @@ export const NodesApiFp = function (configuration) {
|
|
|
172
167
|
* @param {*} [options] Override http request option.
|
|
173
168
|
* @throws {RequiredError}
|
|
174
169
|
*/
|
|
175
|
-
updateNodeScheduling(id, options) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
182
|
-
});
|
|
170
|
+
async updateNodeScheduling(id, options) {
|
|
171
|
+
var _a, _b, _c;
|
|
172
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateNodeScheduling(id, options);
|
|
173
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
174
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['NodesApi.updateNodeScheduling']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
175
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
183
176
|
},
|
|
184
177
|
};
|
|
185
178
|
};
|
|
@@ -237,7 +230,9 @@ export class NodesApi extends BaseAPI {
|
|
|
237
230
|
* @memberof NodesApi
|
|
238
231
|
*/
|
|
239
232
|
createNode(createNode, options) {
|
|
240
|
-
return NodesApiFp(this.configuration)
|
|
233
|
+
return NodesApiFp(this.configuration)
|
|
234
|
+
.createNode(createNode, options)
|
|
235
|
+
.then((request) => request(this.axios, this.basePath));
|
|
241
236
|
}
|
|
242
237
|
/**
|
|
243
238
|
*
|
|
@@ -247,7 +242,9 @@ export class NodesApi extends BaseAPI {
|
|
|
247
242
|
* @memberof NodesApi
|
|
248
243
|
*/
|
|
249
244
|
listNodes(options) {
|
|
250
|
-
return NodesApiFp(this.configuration)
|
|
245
|
+
return NodesApiFp(this.configuration)
|
|
246
|
+
.listNodes(options)
|
|
247
|
+
.then((request) => request(this.axios, this.basePath));
|
|
251
248
|
}
|
|
252
249
|
/**
|
|
253
250
|
*
|
|
@@ -258,6 +255,8 @@ export class NodesApi extends BaseAPI {
|
|
|
258
255
|
* @memberof NodesApi
|
|
259
256
|
*/
|
|
260
257
|
updateNodeScheduling(id, options) {
|
|
261
|
-
return NodesApiFp(this.configuration)
|
|
258
|
+
return NodesApiFp(this.configuration)
|
|
259
|
+
.updateNodeScheduling(id, options)
|
|
260
|
+
.then((request) => request(this.axios, this.basePath));
|
|
262
261
|
}
|
|
263
262
|
}
|
|
@@ -18,6 +18,7 @@ import type { CreateOrganizationRole } from '../models';
|
|
|
18
18
|
import type { Organization } from '../models';
|
|
19
19
|
import type { OrganizationInvitation } from '../models';
|
|
20
20
|
import type { OrganizationRole } from '../models';
|
|
21
|
+
import type { OrganizationSuspension } from '../models';
|
|
21
22
|
import type { OrganizationUser } from '../models';
|
|
22
23
|
import type { UpdateAssignedOrganizationRoles } from '../models';
|
|
23
24
|
import type { UpdateOrganizationInvitation } from '../models';
|
|
@@ -176,6 +177,23 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
|
|
|
176
177
|
* @throws {RequiredError}
|
|
177
178
|
*/
|
|
178
179
|
listOrganizations: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @summary Suspend organization
|
|
183
|
+
* @param {string} organizationId Organization ID
|
|
184
|
+
* @param {OrganizationSuspension} [organizationSuspension]
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
suspendOrganization: (organizationId: string, organizationSuspension?: OrganizationSuspension, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @summary Unsuspend organization
|
|
192
|
+
* @param {string} organizationId Organization ID
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
unsuspendOrganization: (organizationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
179
197
|
/**
|
|
180
198
|
*
|
|
181
199
|
* @summary Update assigned roles to organization member
|
|
@@ -377,6 +395,23 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
|
|
|
377
395
|
* @throws {RequiredError}
|
|
378
396
|
*/
|
|
379
397
|
listOrganizations(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Organization>>>;
|
|
398
|
+
/**
|
|
399
|
+
*
|
|
400
|
+
* @summary Suspend organization
|
|
401
|
+
* @param {string} organizationId Organization ID
|
|
402
|
+
* @param {OrganizationSuspension} [organizationSuspension]
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
suspendOrganization(organizationId: string, organizationSuspension?: OrganizationSuspension, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
407
|
+
/**
|
|
408
|
+
*
|
|
409
|
+
* @summary Unsuspend organization
|
|
410
|
+
* @param {string} organizationId Organization ID
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
*/
|
|
414
|
+
unsuspendOrganization(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
380
415
|
/**
|
|
381
416
|
*
|
|
382
417
|
* @summary Update assigned roles to organization member
|
|
@@ -578,6 +613,23 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
|
|
|
578
613
|
* @throws {RequiredError}
|
|
579
614
|
*/
|
|
580
615
|
listOrganizations(options?: RawAxiosRequestConfig): AxiosPromise<Array<Organization>>;
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @summary Suspend organization
|
|
619
|
+
* @param {string} organizationId Organization ID
|
|
620
|
+
* @param {OrganizationSuspension} [organizationSuspension]
|
|
621
|
+
* @param {*} [options] Override http request option.
|
|
622
|
+
* @throws {RequiredError}
|
|
623
|
+
*/
|
|
624
|
+
suspendOrganization(organizationId: string, organizationSuspension?: OrganizationSuspension, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
625
|
+
/**
|
|
626
|
+
*
|
|
627
|
+
* @summary Unsuspend organization
|
|
628
|
+
* @param {string} organizationId Organization ID
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
unsuspendOrganization(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
581
633
|
/**
|
|
582
634
|
*
|
|
583
635
|
* @summary Update assigned roles to organization member
|
|
@@ -799,6 +851,25 @@ export declare class OrganizationsApi extends BaseAPI {
|
|
|
799
851
|
* @memberof OrganizationsApi
|
|
800
852
|
*/
|
|
801
853
|
listOrganizations(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Organization[], any>>;
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @summary Suspend organization
|
|
857
|
+
* @param {string} organizationId Organization ID
|
|
858
|
+
* @param {OrganizationSuspension} [organizationSuspension]
|
|
859
|
+
* @param {*} [options] Override http request option.
|
|
860
|
+
* @throws {RequiredError}
|
|
861
|
+
* @memberof OrganizationsApi
|
|
862
|
+
*/
|
|
863
|
+
suspendOrganization(organizationId: string, organizationSuspension?: OrganizationSuspension, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
864
|
+
/**
|
|
865
|
+
*
|
|
866
|
+
* @summary Unsuspend organization
|
|
867
|
+
* @param {string} organizationId Organization ID
|
|
868
|
+
* @param {*} [options] Override http request option.
|
|
869
|
+
* @throws {RequiredError}
|
|
870
|
+
* @memberof OrganizationsApi
|
|
871
|
+
*/
|
|
872
|
+
unsuspendOrganization(organizationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
802
873
|
/**
|
|
803
874
|
*
|
|
804
875
|
* @summary Update assigned roles to organization member
|