@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
package/api/nodes-api.ts
CHANGED
|
@@ -5,272 +5,321 @@
|
|
|
5
5
|
* Daytona Workspaces API Docs
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
import type {
|
|
17
|
-
import
|
|
18
|
-
import globalAxios from 'axios';
|
|
15
|
+
import type { Configuration } from '../configuration'
|
|
16
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'
|
|
17
|
+
import globalAxios from 'axios'
|
|
19
18
|
// Some imports not used depending on template conditions
|
|
20
19
|
// @ts-ignore
|
|
21
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
DUMMY_BASE_URL,
|
|
22
|
+
assertParamExists,
|
|
23
|
+
setApiKeyToObject,
|
|
24
|
+
setBasicAuthToObject,
|
|
25
|
+
setBearerAuthToObject,
|
|
26
|
+
setOAuthToObject,
|
|
27
|
+
setSearchParams,
|
|
28
|
+
serializeDataIfNeeded,
|
|
29
|
+
toPathString,
|
|
30
|
+
createRequestFunction,
|
|
31
|
+
} from '../common'
|
|
22
32
|
// @ts-ignore
|
|
23
|
-
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'
|
|
33
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'
|
|
24
34
|
// @ts-ignore
|
|
25
|
-
import type { CreateNode } from '../models'
|
|
35
|
+
import type { CreateNode } from '../models'
|
|
26
36
|
/**
|
|
27
37
|
* NodesApi - axios parameter creator
|
|
28
38
|
* @export
|
|
29
39
|
*/
|
|
30
40
|
export const NodesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
return {
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @summary Create node
|
|
45
|
+
* @param {CreateNode} createNode
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
createNode: async (createNode: CreateNode, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'createNode' is not null or undefined
|
|
51
|
+
assertParamExists('createNode', 'createNode', createNode)
|
|
52
|
+
const localVarPath = `/nodes`
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
55
|
+
let baseOptions
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions
|
|
58
|
+
}
|
|
49
59
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
60
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
61
|
+
const localVarHeaderParameter = {} as any
|
|
62
|
+
const localVarQueryParameter = {} as any
|
|
53
63
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
64
|
+
// authentication bearer required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57
67
|
|
|
68
|
+
// authentication oauth2 required
|
|
69
|
+
// oauth required
|
|
70
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
58
71
|
|
|
59
|
-
|
|
60
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
72
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
61
73
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
76
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createNode, localVarRequestOptions, configuration)
|
|
66
78
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @summary List all nodes
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
listNodes: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
91
|
+
const localVarPath = `/nodes`
|
|
92
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
93
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
94
|
+
let baseOptions
|
|
95
|
+
if (configuration) {
|
|
96
|
+
baseOptions = configuration.baseOptions
|
|
97
|
+
}
|
|
86
98
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
99
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
100
|
+
const localVarHeaderParameter = {} as any
|
|
101
|
+
const localVarQueryParameter = {} as any
|
|
90
102
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
103
|
+
// authentication bearer required
|
|
104
|
+
// http bearer authentication required
|
|
105
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
94
106
|
|
|
107
|
+
// authentication oauth2 required
|
|
108
|
+
// oauth required
|
|
109
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
95
110
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
111
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
112
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
113
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
100
114
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
115
|
+
return {
|
|
116
|
+
url: toPathString(localVarUrlObj),
|
|
117
|
+
options: localVarRequestOptions,
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @summary Update node scheduling status
|
|
123
|
+
* @param {string} id
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
updateNodeScheduling: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
128
|
+
// verify required parameter 'id' is not null or undefined
|
|
129
|
+
assertParamExists('updateNodeScheduling', 'id', id)
|
|
130
|
+
const localVarPath = `/nodes/{id}/scheduling`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
131
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
132
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
133
|
+
let baseOptions
|
|
134
|
+
if (configuration) {
|
|
135
|
+
baseOptions = configuration.baseOptions
|
|
136
|
+
}
|
|
124
137
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
138
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options }
|
|
139
|
+
const localVarHeaderParameter = {} as any
|
|
140
|
+
const localVarQueryParameter = {} as any
|
|
128
141
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
142
|
+
// authentication bearer required
|
|
143
|
+
// http bearer authentication required
|
|
144
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
132
145
|
|
|
146
|
+
// authentication oauth2 required
|
|
147
|
+
// oauth required
|
|
148
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
133
149
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
150
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
151
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
152
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
138
153
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
154
|
+
return {
|
|
155
|
+
url: toPathString(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions,
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
}
|
|
160
|
+
}
|
|
146
161
|
|
|
147
162
|
/**
|
|
148
163
|
* NodesApi - functional programming interface
|
|
149
164
|
* @export
|
|
150
165
|
*/
|
|
151
|
-
export const NodesApiFp = function(configuration?: Configuration) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
166
|
+
export const NodesApiFp = function (configuration?: Configuration) {
|
|
167
|
+
const localVarAxiosParamCreator = NodesApiAxiosParamCreator(configuration)
|
|
168
|
+
return {
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @summary Create node
|
|
172
|
+
* @param {CreateNode} createNode
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
async createNode(
|
|
177
|
+
createNode: CreateNode,
|
|
178
|
+
options?: RawAxiosRequestConfig,
|
|
179
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
180
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createNode(createNode, options)
|
|
181
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
182
|
+
const localVarOperationServerBasePath =
|
|
183
|
+
operationServerMap['NodesApi.createNode']?.[localVarOperationServerIndex]?.url
|
|
184
|
+
return (axios, basePath) =>
|
|
185
|
+
createRequestFunction(
|
|
186
|
+
localVarAxiosArgs,
|
|
187
|
+
globalAxios,
|
|
188
|
+
BASE_PATH,
|
|
189
|
+
configuration,
|
|
190
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
191
|
+
},
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @summary List all nodes
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
async listNodes(
|
|
199
|
+
options?: RawAxiosRequestConfig,
|
|
200
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
201
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNodes(options)
|
|
202
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
203
|
+
const localVarOperationServerBasePath =
|
|
204
|
+
operationServerMap['NodesApi.listNodes']?.[localVarOperationServerIndex]?.url
|
|
205
|
+
return (axios, basePath) =>
|
|
206
|
+
createRequestFunction(
|
|
207
|
+
localVarAxiosArgs,
|
|
208
|
+
globalAxios,
|
|
209
|
+
BASE_PATH,
|
|
210
|
+
configuration,
|
|
211
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @summary Update node scheduling status
|
|
216
|
+
* @param {string} id
|
|
217
|
+
* @param {*} [options] Override http request option.
|
|
218
|
+
* @throws {RequiredError}
|
|
219
|
+
*/
|
|
220
|
+
async updateNodeScheduling(
|
|
221
|
+
id: string,
|
|
222
|
+
options?: RawAxiosRequestConfig,
|
|
223
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateNodeScheduling(id, options)
|
|
225
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
226
|
+
const localVarOperationServerBasePath =
|
|
227
|
+
operationServerMap['NodesApi.updateNodeScheduling']?.[localVarOperationServerIndex]?.url
|
|
228
|
+
return (axios, basePath) =>
|
|
229
|
+
createRequestFunction(
|
|
230
|
+
localVarAxiosArgs,
|
|
231
|
+
globalAxios,
|
|
232
|
+
BASE_PATH,
|
|
233
|
+
configuration,
|
|
234
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
235
|
+
},
|
|
236
|
+
}
|
|
237
|
+
}
|
|
194
238
|
|
|
195
239
|
/**
|
|
196
240
|
* NodesApi - factory interface
|
|
197
241
|
* @export
|
|
198
242
|
*/
|
|
199
243
|
export const NodesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* @summary Create node
|
|
205
|
-
* @param {CreateNode} createNode
|
|
206
|
-
* @param {*} [options] Override http request option.
|
|
207
|
-
* @throws {RequiredError}
|
|
208
|
-
*/
|
|
209
|
-
createNode(createNode: CreateNode, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
210
|
-
return localVarFp.createNode(createNode, options).then((request) => request(axios, basePath));
|
|
211
|
-
},
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
* @summary List all nodes
|
|
215
|
-
* @param {*} [options] Override http request option.
|
|
216
|
-
* @throws {RequiredError}
|
|
217
|
-
*/
|
|
218
|
-
listNodes(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
219
|
-
return localVarFp.listNodes(options).then((request) => request(axios, basePath));
|
|
220
|
-
},
|
|
221
|
-
/**
|
|
222
|
-
*
|
|
223
|
-
* @summary Update node scheduling status
|
|
224
|
-
* @param {string} id
|
|
225
|
-
* @param {*} [options] Override http request option.
|
|
226
|
-
* @throws {RequiredError}
|
|
227
|
-
*/
|
|
228
|
-
updateNodeScheduling(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
229
|
-
return localVarFp.updateNodeScheduling(id, options).then((request) => request(axios, basePath));
|
|
230
|
-
},
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* NodesApi - object-oriented interface
|
|
236
|
-
* @export
|
|
237
|
-
* @class NodesApi
|
|
238
|
-
* @extends {BaseAPI}
|
|
239
|
-
*/
|
|
240
|
-
export class NodesApi extends BaseAPI {
|
|
244
|
+
const localVarFp = NodesApiFp(configuration)
|
|
245
|
+
return {
|
|
241
246
|
/**
|
|
242
|
-
*
|
|
247
|
+
*
|
|
243
248
|
* @summary Create node
|
|
244
|
-
* @param {CreateNode} createNode
|
|
249
|
+
* @param {CreateNode} createNode
|
|
245
250
|
* @param {*} [options] Override http request option.
|
|
246
251
|
* @throws {RequiredError}
|
|
247
|
-
* @memberof NodesApi
|
|
248
252
|
*/
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
+
createNode(createNode: CreateNode, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
254
|
+
return localVarFp.createNode(createNode, options).then((request) => request(axios, basePath))
|
|
255
|
+
},
|
|
253
256
|
/**
|
|
254
|
-
*
|
|
257
|
+
*
|
|
255
258
|
* @summary List all nodes
|
|
256
259
|
* @param {*} [options] Override http request option.
|
|
257
260
|
* @throws {RequiredError}
|
|
258
|
-
* @memberof NodesApi
|
|
259
261
|
*/
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
|
|
262
|
+
listNodes(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
263
|
+
return localVarFp.listNodes(options).then((request) => request(axios, basePath))
|
|
264
|
+
},
|
|
264
265
|
/**
|
|
265
|
-
*
|
|
266
|
+
*
|
|
266
267
|
* @summary Update node scheduling status
|
|
267
|
-
* @param {string} id
|
|
268
|
+
* @param {string} id
|
|
268
269
|
* @param {*} [options] Override http request option.
|
|
269
270
|
* @throws {RequiredError}
|
|
270
|
-
* @memberof NodesApi
|
|
271
271
|
*/
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
272
|
+
updateNodeScheduling(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
273
|
+
return localVarFp.updateNodeScheduling(id, options).then((request) => request(axios, basePath))
|
|
274
|
+
},
|
|
275
|
+
}
|
|
275
276
|
}
|
|
276
277
|
|
|
278
|
+
/**
|
|
279
|
+
* NodesApi - object-oriented interface
|
|
280
|
+
* @export
|
|
281
|
+
* @class NodesApi
|
|
282
|
+
* @extends {BaseAPI}
|
|
283
|
+
*/
|
|
284
|
+
export class NodesApi extends BaseAPI {
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @summary Create node
|
|
288
|
+
* @param {CreateNode} createNode
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
* @memberof NodesApi
|
|
292
|
+
*/
|
|
293
|
+
public createNode(createNode: CreateNode, options?: RawAxiosRequestConfig) {
|
|
294
|
+
return NodesApiFp(this.configuration)
|
|
295
|
+
.createNode(createNode, options)
|
|
296
|
+
.then((request) => request(this.axios, this.basePath))
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
*
|
|
301
|
+
* @summary List all nodes
|
|
302
|
+
* @param {*} [options] Override http request option.
|
|
303
|
+
* @throws {RequiredError}
|
|
304
|
+
* @memberof NodesApi
|
|
305
|
+
*/
|
|
306
|
+
public listNodes(options?: RawAxiosRequestConfig) {
|
|
307
|
+
return NodesApiFp(this.configuration)
|
|
308
|
+
.listNodes(options)
|
|
309
|
+
.then((request) => request(this.axios, this.basePath))
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* @summary Update node scheduling status
|
|
315
|
+
* @param {string} id
|
|
316
|
+
* @param {*} [options] Override http request option.
|
|
317
|
+
* @throws {RequiredError}
|
|
318
|
+
* @memberof NodesApi
|
|
319
|
+
*/
|
|
320
|
+
public updateNodeScheduling(id: string, options?: RawAxiosRequestConfig) {
|
|
321
|
+
return NodesApiFp(this.configuration)
|
|
322
|
+
.updateNodeScheduling(id, options)
|
|
323
|
+
.then((request) => request(this.axios, this.basePath))
|
|
324
|
+
}
|
|
325
|
+
}
|