@daytonaio/api-client 0.20.1 → 0.21.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/docker-registry-api.d.ts +4 -4
- package/src/api/docker-registry-api.js +4 -4
- package/src/api/preview-api.d.ts +40 -40
- package/src/api/preview-api.js +65 -65
- package/src/api/preview-api.js.map +1 -1
- package/src/api/runners-api.d.ts +136 -0
- package/src/api/{nodes-api.js → runners-api.js} +70 -70
- package/src/api/runners-api.js.map +1 -0
- package/src/api/sandbox-api.d.ts +598 -0
- package/src/api/sandbox-api.js +1212 -0
- package/src/api/sandbox-api.js.map +1 -0
- package/src/api/snapshots-api.d.ts +320 -0
- package/src/api/{images-api.js → snapshots-api.js} +162 -241
- package/src/api/snapshots-api.js.map +1 -0
- package/src/api/toolbox-api.d.ts +412 -412
- package/src/api/toolbox-api.js +676 -676
- package/src/api/toolbox-api.js.map +1 -1
- package/src/api/users-api.d.ts +67 -0
- package/src/api/users-api.js +138 -0
- package/src/api/users-api.js.map +1 -1
- package/src/api/workspace-api.d.ts +174 -118
- package/src/api/workspace-api.js +251 -194
- package/src/api/workspace-api.js.map +1 -1
- package/src/api.d.ts +3 -2
- package/src/api.js +3 -2
- package/src/api.js.map +1 -1
- package/src/models/api-key-list.d.ts +2 -2
- package/src/models/api-key-list.js +2 -2
- package/src/models/api-key-list.js.map +1 -1
- package/src/models/api-key-response.d.ts +2 -2
- package/src/models/api-key-response.js +2 -2
- package/src/models/api-key-response.js.map +1 -1
- package/src/models/build-snapshot.d.ts +55 -0
- package/src/models/{workspace-info.js → build-snapshot.js} +1 -1
- package/src/models/build-snapshot.js.map +1 -0
- package/src/models/create-api-key.d.ts +2 -2
- package/src/models/create-api-key.js +2 -2
- package/src/models/create-api-key.js.map +1 -1
- package/src/models/{build-image.d.ts → create-linked-account.d.ts} +9 -10
- package/src/models/{paginated-images-dto.js → create-linked-account.js} +1 -1
- package/src/models/create-linked-account.js.map +1 -0
- package/src/models/create-organization-quota.d.ts +5 -5
- package/src/models/create-organization-role.d.ts +2 -2
- package/src/models/create-organization-role.js +2 -2
- package/src/models/create-organization-role.js.map +1 -1
- package/src/models/{create-node.d.ts → create-runner.d.ts} +19 -19
- package/src/models/{create-node.js → create-runner.js} +4 -4
- package/src/models/create-runner.js.map +1 -0
- package/src/models/create-sandbox.d.ts +126 -0
- package/src/models/create-sandbox.js +27 -0
- package/src/models/create-sandbox.js.map +1 -0
- package/src/models/create-snapshot.d.ts +73 -0
- package/src/models/create-snapshot.js +16 -0
- package/src/models/create-snapshot.js.map +1 -0
- package/src/models/create-workspace.d.ts +4 -4
- package/src/models/index.d.ts +13 -12
- package/src/models/index.js +13 -12
- package/src/models/index.js.map +1 -1
- package/src/models/organization-role.d.ts +2 -2
- package/src/models/organization-role.js +2 -2
- package/src/models/organization-role.js.map +1 -1
- package/src/models/{paginated-images-dto.d.ts → paginated-snapshots-dto.d.ts} +9 -9
- package/src/models/paginated-snapshots-dto.js +16 -0
- package/src/models/paginated-snapshots-dto.js.map +1 -0
- package/src/models/{workspace-info.d.ts → sandbox-info.d.ts} +6 -6
- package/src/models/{image-dto.js → sandbox-info.js} +1 -1
- package/src/models/sandbox-info.js.map +1 -0
- package/src/models/{workspace-labels.d.ts → sandbox-labels.d.ts} +3 -3
- package/src/models/{create-image.js → sandbox-labels.js} +1 -1
- package/src/models/sandbox-labels.js.map +1 -0
- package/src/models/{workspace-state.d.ts → sandbox-state.d.ts} +5 -5
- package/src/models/{workspace-state.js → sandbox-state.js} +6 -6
- package/src/models/sandbox-state.js.map +1 -0
- package/src/models/{workspace-volume.d.ts → sandbox-volume.d.ts} +4 -4
- package/src/models/sandbox-volume.js +16 -0
- package/src/models/sandbox-volume.js.map +1 -0
- package/src/models/sandbox.d.ts +160 -0
- package/src/models/{workspace.js → sandbox.js} +3 -3
- package/src/models/sandbox.js.map +1 -0
- package/src/models/{set-image-general-status.d.ts → set-snapshot-general-status-dto.d.ts} +4 -4
- package/src/models/set-snapshot-general-status-dto.js +16 -0
- package/src/models/set-snapshot-general-status-dto.js.map +1 -0
- package/src/models/{image-dto.d.ts → snapshot-dto.d.ts} +47 -17
- package/src/models/{build-image.js → snapshot-dto.js} +1 -1
- package/src/models/snapshot-dto.js.map +1 -0
- package/src/models/{image-state.d.ts → snapshot-state.d.ts} +3 -3
- package/src/models/{image-state.js → snapshot-state.js} +4 -4
- package/src/models/snapshot-state.js.map +1 -0
- package/src/models/toggle-state.d.ts +1 -1
- package/src/models/update-organization-quota.d.ts +5 -5
- package/src/models/update-organization-role.d.ts +2 -2
- package/src/models/update-organization-role.js +2 -2
- package/src/models/update-organization-role.js.map +1 -1
- package/src/models/volume-dto.d.ts +1 -1
- package/src/api/images-api.d.ts +0 -358
- package/src/api/images-api.js.map +0 -1
- package/src/api/nodes-api.d.ts +0 -136
- package/src/api/nodes-api.js.map +0 -1
- package/src/models/build-image.js.map +0 -1
- package/src/models/create-image.d.ts +0 -36
- package/src/models/create-image.js.map +0 -1
- package/src/models/create-node.js.map +0 -1
- package/src/models/image-dto.js.map +0 -1
- package/src/models/image-state.js.map +0 -1
- package/src/models/paginated-images-dto.js.map +0 -1
- package/src/models/set-image-general-status.js +0 -16
- package/src/models/set-image-general-status.js.map +0 -1
- package/src/models/workspace-info.js.map +0 -1
- package/src/models/workspace-labels.js +0 -16
- package/src/models/workspace-labels.js.map +0 -1
- package/src/models/workspace-state.js.map +0 -1
- package/src/models/workspace-volume.js +0 -16
- package/src/models/workspace-volume.js.map +0 -1
- package/src/models/workspace.d.ts +0 -160
- package/src/models/workspace.js.map +0 -1
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daytona
|
|
3
|
+
* Daytona AI platform API Docs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: support@daytona.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { CreateRunner } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* RunnersApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const RunnersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Create runner
|
|
24
|
+
* @param {CreateRunner} createRunner
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
createRunner: (createRunner: CreateRunner, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @summary List all runners
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
listRunners: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @summary Update runner scheduling status
|
|
39
|
+
* @param {string} id
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
updateRunnerScheduling: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* RunnersApi - functional programming interface
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export declare const RunnersApiFp: (configuration?: Configuration) => {
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @summary Create runner
|
|
53
|
+
* @param {CreateRunner} createRunner
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
createRunner(createRunner: CreateRunner, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @summary List all runners
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
listRunners(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Update runner scheduling status
|
|
68
|
+
* @param {string} id
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
updateRunnerScheduling(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* RunnersApi - factory interface
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const RunnersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @summary Create runner
|
|
82
|
+
* @param {CreateRunner} createRunner
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
createRunner(createRunner: CreateRunner, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @summary List all runners
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
listRunners(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @summary Update runner scheduling status
|
|
97
|
+
* @param {string} id
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
updateRunnerScheduling(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* RunnersApi - object-oriented interface
|
|
105
|
+
* @export
|
|
106
|
+
* @class RunnersApi
|
|
107
|
+
* @extends {BaseAPI}
|
|
108
|
+
*/
|
|
109
|
+
export declare class RunnersApi extends BaseAPI {
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @summary Create runner
|
|
113
|
+
* @param {CreateRunner} createRunner
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
* @memberof RunnersApi
|
|
117
|
+
*/
|
|
118
|
+
createRunner(createRunner: CreateRunner, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @summary List all runners
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
* @memberof RunnersApi
|
|
125
|
+
*/
|
|
126
|
+
listRunners(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @summary Update runner scheduling status
|
|
130
|
+
* @param {string} id
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
* @memberof RunnersApi
|
|
134
|
+
*/
|
|
135
|
+
updateRunnerScheduling(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
136
|
+
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.RunnersApi = exports.RunnersApiFactory = exports.RunnersApiFp = exports.RunnersApiAxiosParamCreator = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
18
|
// Some imports not used depending on template conditions
|
|
19
19
|
// @ts-ignore
|
|
@@ -21,22 +21,22 @@ const common_1 = require("../common");
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
const base_1 = require("../base");
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* RunnersApi - axios parameter creator
|
|
25
25
|
* @export
|
|
26
26
|
*/
|
|
27
|
-
const
|
|
27
|
+
const RunnersApiAxiosParamCreator = function (configuration) {
|
|
28
28
|
return {
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @summary Create
|
|
32
|
-
* @param {
|
|
31
|
+
* @summary Create runner
|
|
32
|
+
* @param {CreateRunner} createRunner
|
|
33
33
|
* @param {*} [options] Override http request option.
|
|
34
34
|
* @throws {RequiredError}
|
|
35
35
|
*/
|
|
36
|
-
|
|
37
|
-
// verify required parameter '
|
|
38
|
-
(0, common_1.assertParamExists)('
|
|
39
|
-
const localVarPath = `/
|
|
36
|
+
createRunner: async (createRunner, options = {}) => {
|
|
37
|
+
// verify required parameter 'createRunner' is not null or undefined
|
|
38
|
+
(0, common_1.assertParamExists)('createRunner', 'createRunner', createRunner);
|
|
39
|
+
const localVarPath = `/runners`;
|
|
40
40
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
41
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
42
42
|
let baseOptions;
|
|
@@ -54,7 +54,7 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
54
54
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
55
55
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56
56
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
57
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
57
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createRunner, localVarRequestOptions, configuration);
|
|
58
58
|
return {
|
|
59
59
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
60
60
|
options: localVarRequestOptions,
|
|
@@ -62,12 +62,12 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
62
62
|
},
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
|
-
* @summary List all
|
|
65
|
+
* @summary List all runners
|
|
66
66
|
* @param {*} [options] Override http request option.
|
|
67
67
|
* @throws {RequiredError}
|
|
68
68
|
*/
|
|
69
|
-
|
|
70
|
-
const localVarPath = `/
|
|
69
|
+
listRunners: async (options = {}) => {
|
|
70
|
+
const localVarPath = `/runners`;
|
|
71
71
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
72
72
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
73
73
|
let baseOptions;
|
|
@@ -91,15 +91,15 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
91
91
|
},
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
|
-
* @summary Update
|
|
94
|
+
* @summary Update runner scheduling status
|
|
95
95
|
* @param {string} id
|
|
96
96
|
* @param {*} [options] Override http request option.
|
|
97
97
|
* @throws {RequiredError}
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
updateRunnerScheduling: async (id, options = {}) => {
|
|
100
100
|
// verify required parameter 'id' is not null or undefined
|
|
101
|
-
(0, common_1.assertParamExists)('
|
|
102
|
-
const localVarPath = `/
|
|
101
|
+
(0, common_1.assertParamExists)('updateRunnerScheduling', 'id', id);
|
|
102
|
+
const localVarPath = `/runners/{id}/scheduling`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
103
103
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
104
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
105
105
|
let baseOptions;
|
|
@@ -123,139 +123,139 @@ const NodesApiAxiosParamCreator = function (configuration) {
|
|
|
123
123
|
},
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
exports.
|
|
126
|
+
exports.RunnersApiAxiosParamCreator = RunnersApiAxiosParamCreator;
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* RunnersApi - functional programming interface
|
|
129
129
|
* @export
|
|
130
130
|
*/
|
|
131
|
-
const
|
|
132
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
131
|
+
const RunnersApiFp = function (configuration) {
|
|
132
|
+
const localVarAxiosParamCreator = (0, exports.RunnersApiAxiosParamCreator)(configuration);
|
|
133
133
|
return {
|
|
134
134
|
/**
|
|
135
135
|
*
|
|
136
|
-
* @summary Create
|
|
137
|
-
* @param {
|
|
136
|
+
* @summary Create runner
|
|
137
|
+
* @param {CreateRunner} createRunner
|
|
138
138
|
* @param {*} [options] Override http request option.
|
|
139
139
|
* @throws {RequiredError}
|
|
140
140
|
*/
|
|
141
|
-
async
|
|
142
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
141
|
+
async createRunner(createRunner, options) {
|
|
142
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createRunner(createRunner, options);
|
|
143
143
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
144
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
144
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['RunnersApi.createRunner']?.[localVarOperationServerIndex]?.url;
|
|
145
145
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
146
146
|
},
|
|
147
147
|
/**
|
|
148
148
|
*
|
|
149
|
-
* @summary List all
|
|
149
|
+
* @summary List all runners
|
|
150
150
|
* @param {*} [options] Override http request option.
|
|
151
151
|
* @throws {RequiredError}
|
|
152
152
|
*/
|
|
153
|
-
async
|
|
154
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
153
|
+
async listRunners(options) {
|
|
154
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listRunners(options);
|
|
155
155
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
156
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
156
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['RunnersApi.listRunners']?.[localVarOperationServerIndex]?.url;
|
|
157
157
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
158
158
|
},
|
|
159
159
|
/**
|
|
160
160
|
*
|
|
161
|
-
* @summary Update
|
|
161
|
+
* @summary Update runner scheduling status
|
|
162
162
|
* @param {string} id
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
166
|
-
async
|
|
167
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
166
|
+
async updateRunnerScheduling(id, options) {
|
|
167
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRunnerScheduling(id, options);
|
|
168
168
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
169
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
169
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['RunnersApi.updateRunnerScheduling']?.[localVarOperationServerIndex]?.url;
|
|
170
170
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
171
171
|
},
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
exports.
|
|
174
|
+
exports.RunnersApiFp = RunnersApiFp;
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
176
|
+
* RunnersApi - factory interface
|
|
177
177
|
* @export
|
|
178
178
|
*/
|
|
179
|
-
const
|
|
180
|
-
const localVarFp = (0, exports.
|
|
179
|
+
const RunnersApiFactory = function (configuration, basePath, axios) {
|
|
180
|
+
const localVarFp = (0, exports.RunnersApiFp)(configuration);
|
|
181
181
|
return {
|
|
182
182
|
/**
|
|
183
183
|
*
|
|
184
|
-
* @summary Create
|
|
185
|
-
* @param {
|
|
184
|
+
* @summary Create runner
|
|
185
|
+
* @param {CreateRunner} createRunner
|
|
186
186
|
* @param {*} [options] Override http request option.
|
|
187
187
|
* @throws {RequiredError}
|
|
188
188
|
*/
|
|
189
|
-
|
|
190
|
-
return localVarFp.
|
|
189
|
+
createRunner(createRunner, options) {
|
|
190
|
+
return localVarFp.createRunner(createRunner, options).then((request) => request(axios, basePath));
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
193
|
*
|
|
194
|
-
* @summary List all
|
|
194
|
+
* @summary List all runners
|
|
195
195
|
* @param {*} [options] Override http request option.
|
|
196
196
|
* @throws {RequiredError}
|
|
197
197
|
*/
|
|
198
|
-
|
|
199
|
-
return localVarFp.
|
|
198
|
+
listRunners(options) {
|
|
199
|
+
return localVarFp.listRunners(options).then((request) => request(axios, basePath));
|
|
200
200
|
},
|
|
201
201
|
/**
|
|
202
202
|
*
|
|
203
|
-
* @summary Update
|
|
203
|
+
* @summary Update runner scheduling status
|
|
204
204
|
* @param {string} id
|
|
205
205
|
* @param {*} [options] Override http request option.
|
|
206
206
|
* @throws {RequiredError}
|
|
207
207
|
*/
|
|
208
|
-
|
|
209
|
-
return localVarFp.
|
|
208
|
+
updateRunnerScheduling(id, options) {
|
|
209
|
+
return localVarFp.updateRunnerScheduling(id, options).then((request) => request(axios, basePath));
|
|
210
210
|
},
|
|
211
211
|
};
|
|
212
212
|
};
|
|
213
|
-
exports.
|
|
213
|
+
exports.RunnersApiFactory = RunnersApiFactory;
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
215
|
+
* RunnersApi - object-oriented interface
|
|
216
216
|
* @export
|
|
217
|
-
* @class
|
|
217
|
+
* @class RunnersApi
|
|
218
218
|
* @extends {BaseAPI}
|
|
219
219
|
*/
|
|
220
|
-
class
|
|
220
|
+
class RunnersApi extends base_1.BaseAPI {
|
|
221
221
|
/**
|
|
222
222
|
*
|
|
223
|
-
* @summary Create
|
|
224
|
-
* @param {
|
|
223
|
+
* @summary Create runner
|
|
224
|
+
* @param {CreateRunner} createRunner
|
|
225
225
|
* @param {*} [options] Override http request option.
|
|
226
226
|
* @throws {RequiredError}
|
|
227
|
-
* @memberof
|
|
227
|
+
* @memberof RunnersApi
|
|
228
228
|
*/
|
|
229
|
-
|
|
230
|
-
return (0, exports.
|
|
231
|
-
.
|
|
229
|
+
createRunner(createRunner, options) {
|
|
230
|
+
return (0, exports.RunnersApiFp)(this.configuration)
|
|
231
|
+
.createRunner(createRunner, options)
|
|
232
232
|
.then((request) => request(this.axios, this.basePath));
|
|
233
233
|
}
|
|
234
234
|
/**
|
|
235
235
|
*
|
|
236
|
-
* @summary List all
|
|
236
|
+
* @summary List all runners
|
|
237
237
|
* @param {*} [options] Override http request option.
|
|
238
238
|
* @throws {RequiredError}
|
|
239
|
-
* @memberof
|
|
239
|
+
* @memberof RunnersApi
|
|
240
240
|
*/
|
|
241
|
-
|
|
242
|
-
return (0, exports.
|
|
243
|
-
.
|
|
241
|
+
listRunners(options) {
|
|
242
|
+
return (0, exports.RunnersApiFp)(this.configuration)
|
|
243
|
+
.listRunners(options)
|
|
244
244
|
.then((request) => request(this.axios, this.basePath));
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
247
247
|
*
|
|
248
|
-
* @summary Update
|
|
248
|
+
* @summary Update runner scheduling status
|
|
249
249
|
* @param {string} id
|
|
250
250
|
* @param {*} [options] Override http request option.
|
|
251
251
|
* @throws {RequiredError}
|
|
252
|
-
* @memberof
|
|
252
|
+
* @memberof RunnersApi
|
|
253
253
|
*/
|
|
254
|
-
|
|
255
|
-
return (0, exports.
|
|
256
|
-
.
|
|
254
|
+
updateRunnerScheduling(id, options) {
|
|
255
|
+
return (0, exports.RunnersApiFp)(this.configuration)
|
|
256
|
+
.updateRunnerScheduling(id, options)
|
|
257
257
|
.then((request) => request(this.axios, this.basePath));
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
exports.
|
|
261
|
-
//# sourceMappingURL=
|
|
260
|
+
exports.RunnersApi = RunnersApi;
|
|
261
|
+
//# sourceMappingURL=runners-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runners-api.js","sourceRoot":"","sources":["../../../../../libs/api-client/src/api/runners-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,iCAA+B;AAC/B,yDAAyD;AACzD,aAAa;AACb,sCAWkB;AAClB,aAAa;AACb,kCAAqH;AAGrH;;;GAGG;AACI,MAAM,2BAA2B,GAAG,UAAU,aAA6B;IAChF,OAAO;QACL;;;;;;WAMG;QACH,YAAY,EAAE,KAAK,EAAE,YAA0B,EAAE,UAAiC,EAAE,EAAwB,EAAE;YAC5G,oEAAoE;YACpE,IAAA,0BAAiB,EAAC,cAAc,EAAE,cAAc,EAAE,YAAY,CAAC,CAAA;YAC/D,MAAM,YAAY,GAAG,UAAU,CAAA;YAC/B,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAA;YAC5D,IAAI,WAAW,CAAA;YACf,IAAI,aAAa,EAAE,CAAC;gBAClB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;YACzC,CAAC;YAED,MAAM,sBAAsB,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,EAAE,CAAA;YAC7E,MAAM,uBAAuB,GAAG,EAAS,CAAA;YACzC,MAAM,sBAAsB,GAAG,EAAS,CAAA;YAExC,iCAAiC;YACjC,sCAAsC;YAC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