@daytonaio/api-client 0.12.2 → 0.14.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 +4 -0
- package/README.md +2 -2
- package/api/docker-registry-api.ts +68 -0
- package/api/users-api.ts +84 -0
- package/api/workspace-api.ts +153 -0
- package/dist/api/docker-registry-api.d.ts +30 -0
- package/dist/api/docker-registry-api.js +62 -0
- package/dist/api/users-api.d.ts +38 -0
- package/dist/api/users-api.js +77 -0
- package/dist/api/workspace-api.d.ts +70 -0
- package/dist/api/workspace-api.js +145 -0
- package/dist/common.d.ts +1 -1
- package/dist/esm/api/docker-registry-api.d.ts +30 -0
- package/dist/esm/api/docker-registry-api.js +62 -0
- package/dist/esm/api/users-api.d.ts +38 -0
- package/dist/esm/api/users-api.js +77 -0
- package/dist/esm/api/workspace-api.d.ts +70 -0
- package/dist/esm/api/workspace-api.js +145 -0
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/models/create-docker-registry.d.ts +19 -0
- package/dist/esm/models/create-docker-registry.js +6 -1
- package/dist/esm/models/create-node.d.ts +72 -0
- package/dist/esm/models/create-node.js +10 -1
- package/dist/esm/models/create-user.d.ts +66 -0
- package/dist/esm/models/create-workspace.d.ts +12 -6
- package/dist/esm/models/create-workspace.js +6 -6
- package/dist/esm/models/docker-registry.d.ts +13 -0
- package/dist/esm/models/docker-registry.js +6 -1
- package/dist/esm/models/image-dto.d.ts +3 -11
- package/dist/esm/models/image-dto.js +1 -8
- package/dist/esm/models/image-state.d.ts +26 -0
- package/dist/esm/models/image-state.js +27 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/registry-push-access-dto.d.ts +54 -0
- package/dist/esm/models/registry-push-access-dto.js +14 -0
- package/dist/esm/models/update-user-quota-dto.d.ts +84 -0
- package/dist/esm/models/update-user-quota-dto.js +14 -0
- package/dist/esm/models/workspace-state.d.ts +33 -0
- package/dist/esm/models/workspace-state.js +34 -0
- package/dist/esm/models/workspace.d.ts +18 -3
- package/dist/esm/models/workspace.js +7 -1
- package/dist/models/create-docker-registry.d.ts +19 -0
- package/dist/models/create-docker-registry.js +7 -0
- package/dist/models/create-node.d.ts +72 -0
- package/dist/models/create-node.js +11 -0
- package/dist/models/create-user.d.ts +66 -0
- package/dist/models/create-workspace.d.ts +12 -6
- package/dist/models/create-workspace.js +6 -6
- package/dist/models/docker-registry.d.ts +13 -0
- package/dist/models/docker-registry.js +7 -0
- package/dist/models/image-dto.d.ts +3 -11
- package/dist/models/image-dto.js +0 -9
- package/dist/models/image-state.d.ts +26 -0
- package/dist/models/image-state.js +30 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/registry-push-access-dto.d.ts +54 -0
- package/dist/models/registry-push-access-dto.js +15 -0
- package/dist/models/update-user-quota-dto.d.ts +84 -0
- package/dist/models/update-user-quota-dto.js +15 -0
- package/dist/models/workspace-state.d.ts +33 -0
- package/dist/models/workspace-state.js +37 -0
- package/dist/models/workspace.d.ts +18 -3
- package/dist/models/workspace.js +8 -0
- package/models/create-docker-registry.ts +22 -0
- package/models/create-node.ts +76 -0
- package/models/create-user.ts +66 -0
- package/models/create-workspace.ts +12 -6
- package/models/docker-registry.ts +16 -0
- package/models/image-dto.ts +5 -12
- package/models/image-state.ts +36 -0
- package/models/index.ts +4 -0
- package/models/registry-push-access-dto.ts +60 -0
- package/models/update-user-quota-dto.ts +90 -0
- package/models/workspace-state.ts +43 -0
- package/models/workspace.ts +23 -3
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { CreateUser } from '../models';
|
|
16
|
+
import type { UpdateUserQuotaDto } from '../models';
|
|
16
17
|
import type { UsageOverview } from '../models';
|
|
17
18
|
/**
|
|
18
19
|
* UsersApi - axios parameter creator
|
|
@@ -49,6 +50,15 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
49
50
|
* @throws {RequiredError}
|
|
50
51
|
*/
|
|
51
52
|
regenerateKeyPair: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @summary Update user quota
|
|
56
|
+
* @param {string} id
|
|
57
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
updateUserQuota: (id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
62
|
};
|
|
53
63
|
/**
|
|
54
64
|
* UsersApi - functional programming interface
|
|
@@ -85,6 +95,15 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
85
95
|
* @throws {RequiredError}
|
|
86
96
|
*/
|
|
87
97
|
regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary Update user quota
|
|
101
|
+
* @param {string} id
|
|
102
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
88
107
|
};
|
|
89
108
|
/**
|
|
90
109
|
* UsersApi - factory interface
|
|
@@ -121,6 +140,15 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
121
140
|
* @throws {RequiredError}
|
|
122
141
|
*/
|
|
123
142
|
regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @summary Update user quota
|
|
146
|
+
* @param {string} id
|
|
147
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
124
152
|
};
|
|
125
153
|
/**
|
|
126
154
|
* UsersApi - object-oriented interface
|
|
@@ -163,4 +191,14 @@ export declare class UsersApi extends BaseAPI {
|
|
|
163
191
|
* @memberof UsersApi
|
|
164
192
|
*/
|
|
165
193
|
regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @summary Update user quota
|
|
197
|
+
* @param {string} id
|
|
198
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
* @memberof UsersApi
|
|
202
|
+
*/
|
|
203
|
+
updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
166
204
|
}
|
|
@@ -153,6 +153,43 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
153
153
|
options: localVarRequestOptions,
|
|
154
154
|
};
|
|
155
155
|
}),
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @summary Update user quota
|
|
159
|
+
* @param {string} id
|
|
160
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
updateUserQuota: (id_1, updateUserQuotaDto_1, ...args_1) => __awaiter(this, [id_1, updateUserQuotaDto_1, ...args_1], void 0, function* (id, updateUserQuotaDto, options = {}) {
|
|
165
|
+
// verify required parameter 'id' is not null or undefined
|
|
166
|
+
assertParamExists('updateUserQuota', 'id', id);
|
|
167
|
+
// verify required parameter 'updateUserQuotaDto' is not null or undefined
|
|
168
|
+
assertParamExists('updateUserQuota', 'updateUserQuotaDto', updateUserQuotaDto);
|
|
169
|
+
const localVarPath = `/users/{id}/quota`
|
|
170
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
172
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
173
|
+
let baseOptions;
|
|
174
|
+
if (configuration) {
|
|
175
|
+
baseOptions = configuration.baseOptions;
|
|
176
|
+
}
|
|
177
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
178
|
+
const localVarHeaderParameter = {};
|
|
179
|
+
const localVarQueryParameter = {};
|
|
180
|
+
// authentication oauth2 required
|
|
181
|
+
// oauth required
|
|
182
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
184
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
187
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateUserQuotaDto, localVarRequestOptions, configuration);
|
|
188
|
+
return {
|
|
189
|
+
url: toPathString(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
}),
|
|
156
193
|
};
|
|
157
194
|
};
|
|
158
195
|
/**
|
|
@@ -224,6 +261,23 @@ export const UsersApiFp = function (configuration) {
|
|
|
224
261
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
225
262
|
});
|
|
226
263
|
},
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Update user quota
|
|
267
|
+
* @param {string} id
|
|
268
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
updateUserQuota(id, updateUserQuotaDto, options) {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
var _a, _b, _c;
|
|
275
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserQuota(id, updateUserQuotaDto, options);
|
|
276
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
277
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.updateUserQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
278
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
279
|
+
});
|
|
280
|
+
},
|
|
227
281
|
};
|
|
228
282
|
};
|
|
229
283
|
/**
|
|
@@ -271,6 +325,17 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
271
325
|
regenerateKeyPair(id, options) {
|
|
272
326
|
return localVarFp.regenerateKeyPair(id, options).then((request) => request(axios, basePath));
|
|
273
327
|
},
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @summary Update user quota
|
|
331
|
+
* @param {string} id
|
|
332
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
*/
|
|
336
|
+
updateUserQuota(id, updateUserQuotaDto, options) {
|
|
337
|
+
return localVarFp.updateUserQuota(id, updateUserQuotaDto, options).then((request) => request(axios, basePath));
|
|
338
|
+
},
|
|
274
339
|
};
|
|
275
340
|
};
|
|
276
341
|
/**
|
|
@@ -322,4 +387,16 @@ export class UsersApi extends BaseAPI {
|
|
|
322
387
|
regenerateKeyPair(id, options) {
|
|
323
388
|
return UsersApiFp(this.configuration).regenerateKeyPair(id, options).then((request) => request(this.axios, this.basePath));
|
|
324
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @summary Update user quota
|
|
393
|
+
* @param {string} id
|
|
394
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
* @memberof UsersApi
|
|
398
|
+
*/
|
|
399
|
+
updateUserQuota(id, updateUserQuotaDto, options) {
|
|
400
|
+
return UsersApiFp(this.configuration).updateUserQuota(id, updateUserQuotaDto, options).then((request) => request(this.axios, this.basePath));
|
|
401
|
+
}
|
|
325
402
|
}
|
|
@@ -20,6 +20,14 @@ import type { WorkspaceLabels } from '../models';
|
|
|
20
20
|
* @export
|
|
21
21
|
*/
|
|
22
22
|
export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @summary Archive workspace
|
|
26
|
+
* @param {string} workspaceId
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
archiveWorkspace: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
23
31
|
/**
|
|
24
32
|
*
|
|
25
33
|
* @summary Create workspace snapshot
|
|
@@ -71,6 +79,15 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
71
79
|
* @throws {RequiredError}
|
|
72
80
|
*/
|
|
73
81
|
replaceLabels: (workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @summary Set workspace auto-stop interval
|
|
85
|
+
* @param {string} workspaceId ID of the workspace
|
|
86
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
setAutostopInterval: (workspaceId: string, interval: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
91
|
/**
|
|
75
92
|
*
|
|
76
93
|
* @summary Start workspace
|
|
@@ -110,6 +127,14 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
110
127
|
* @export
|
|
111
128
|
*/
|
|
112
129
|
export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @summary Archive workspace
|
|
133
|
+
* @param {string} workspaceId
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
archiveWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
113
138
|
/**
|
|
114
139
|
*
|
|
115
140
|
* @summary Create workspace snapshot
|
|
@@ -161,6 +186,15 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
161
186
|
* @throws {RequiredError}
|
|
162
187
|
*/
|
|
163
188
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabels>>;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @summary Set workspace auto-stop interval
|
|
192
|
+
* @param {string} workspaceId ID of the workspace
|
|
193
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
164
198
|
/**
|
|
165
199
|
*
|
|
166
200
|
* @summary Start workspace
|
|
@@ -200,6 +234,14 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
200
234
|
* @export
|
|
201
235
|
*/
|
|
202
236
|
export declare const WorkspaceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @summary Archive workspace
|
|
240
|
+
* @param {string} workspaceId
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
archiveWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
203
245
|
/**
|
|
204
246
|
*
|
|
205
247
|
* @summary Create workspace snapshot
|
|
@@ -251,6 +293,15 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
251
293
|
* @throws {RequiredError}
|
|
252
294
|
*/
|
|
253
295
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabels>;
|
|
296
|
+
/**
|
|
297
|
+
*
|
|
298
|
+
* @summary Set workspace auto-stop interval
|
|
299
|
+
* @param {string} workspaceId ID of the workspace
|
|
300
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
254
305
|
/**
|
|
255
306
|
*
|
|
256
307
|
* @summary Start workspace
|
|
@@ -292,6 +343,15 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
292
343
|
* @extends {BaseAPI}
|
|
293
344
|
*/
|
|
294
345
|
export declare class WorkspaceApi extends BaseAPI {
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
* @summary Archive workspace
|
|
349
|
+
* @param {string} workspaceId
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
* @memberof WorkspaceApi
|
|
353
|
+
*/
|
|
354
|
+
archiveWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
295
355
|
/**
|
|
296
356
|
*
|
|
297
357
|
* @summary Create workspace snapshot
|
|
@@ -349,6 +409,16 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
349
409
|
* @memberof WorkspaceApi
|
|
350
410
|
*/
|
|
351
411
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceLabels, any>>;
|
|
412
|
+
/**
|
|
413
|
+
*
|
|
414
|
+
* @summary Set workspace auto-stop interval
|
|
415
|
+
* @param {string} workspaceId ID of the workspace
|
|
416
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
* @memberof WorkspaceApi
|
|
420
|
+
*/
|
|
421
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
352
422
|
/**
|
|
353
423
|
*
|
|
354
424
|
* @summary Start workspace
|
|
@@ -32,6 +32,38 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
|
32
32
|
*/
|
|
33
33
|
export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
34
34
|
return {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @summary Archive workspace
|
|
38
|
+
* @param {string} workspaceId
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
archiveWorkspace: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
43
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
44
|
+
assertParamExists('archiveWorkspace', 'workspaceId', workspaceId);
|
|
45
|
+
const localVarPath = `/workspace/{workspaceId}/archive`
|
|
46
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
}
|
|
53
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
54
|
+
const localVarHeaderParameter = {};
|
|
55
|
+
const localVarQueryParameter = {};
|
|
56
|
+
// authentication oauth2 required
|
|
57
|
+
// oauth required
|
|
58
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
+
return {
|
|
63
|
+
url: toPathString(localVarUrlObj),
|
|
64
|
+
options: localVarRequestOptions,
|
|
65
|
+
};
|
|
66
|
+
}),
|
|
35
67
|
/**
|
|
36
68
|
*
|
|
37
69
|
* @summary Create workspace snapshot
|
|
@@ -240,6 +272,42 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
240
272
|
options: localVarRequestOptions,
|
|
241
273
|
};
|
|
242
274
|
}),
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @summary Set workspace auto-stop interval
|
|
278
|
+
* @param {string} workspaceId ID of the workspace
|
|
279
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
*/
|
|
283
|
+
setAutostopInterval: (workspaceId_1, interval_1, ...args_1) => __awaiter(this, [workspaceId_1, interval_1, ...args_1], void 0, function* (workspaceId, interval, options = {}) {
|
|
284
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
285
|
+
assertParamExists('setAutostopInterval', 'workspaceId', workspaceId);
|
|
286
|
+
// verify required parameter 'interval' is not null or undefined
|
|
287
|
+
assertParamExists('setAutostopInterval', 'interval', interval);
|
|
288
|
+
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
289
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
290
|
+
.replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
|
|
291
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
292
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
293
|
+
let baseOptions;
|
|
294
|
+
if (configuration) {
|
|
295
|
+
baseOptions = configuration.baseOptions;
|
|
296
|
+
}
|
|
297
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
298
|
+
const localVarHeaderParameter = {};
|
|
299
|
+
const localVarQueryParameter = {};
|
|
300
|
+
// authentication oauth2 required
|
|
301
|
+
// oauth required
|
|
302
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
303
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
304
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
305
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
306
|
+
return {
|
|
307
|
+
url: toPathString(localVarUrlObj),
|
|
308
|
+
options: localVarRequestOptions,
|
|
309
|
+
};
|
|
310
|
+
}),
|
|
243
311
|
/**
|
|
244
312
|
*
|
|
245
313
|
* @summary Start workspace
|
|
@@ -385,6 +453,22 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
385
453
|
export const WorkspaceApiFp = function (configuration) {
|
|
386
454
|
const localVarAxiosParamCreator = WorkspaceApiAxiosParamCreator(configuration);
|
|
387
455
|
return {
|
|
456
|
+
/**
|
|
457
|
+
*
|
|
458
|
+
* @summary Archive workspace
|
|
459
|
+
* @param {string} workspaceId
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
*/
|
|
463
|
+
archiveWorkspace(workspaceId, options) {
|
|
464
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
465
|
+
var _a, _b, _c;
|
|
466
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveWorkspace(workspaceId, options);
|
|
467
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
468
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.archiveWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
469
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
470
|
+
});
|
|
471
|
+
},
|
|
388
472
|
/**
|
|
389
473
|
*
|
|
390
474
|
* @summary Create workspace snapshot
|
|
@@ -484,6 +568,23 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
484
568
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
485
569
|
});
|
|
486
570
|
},
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @summary Set workspace auto-stop interval
|
|
574
|
+
* @param {string} workspaceId ID of the workspace
|
|
575
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
*/
|
|
579
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
580
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
581
|
+
var _a, _b, _c;
|
|
582
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, options);
|
|
583
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
584
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
585
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
586
|
+
});
|
|
587
|
+
},
|
|
487
588
|
/**
|
|
488
589
|
*
|
|
489
590
|
* @summary Start workspace
|
|
@@ -558,6 +659,16 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
558
659
|
export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
559
660
|
const localVarFp = WorkspaceApiFp(configuration);
|
|
560
661
|
return {
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @summary Archive workspace
|
|
665
|
+
* @param {string} workspaceId
|
|
666
|
+
* @param {*} [options] Override http request option.
|
|
667
|
+
* @throws {RequiredError}
|
|
668
|
+
*/
|
|
669
|
+
archiveWorkspace(workspaceId, options) {
|
|
670
|
+
return localVarFp.archiveWorkspace(workspaceId, options).then((request) => request(axios, basePath));
|
|
671
|
+
},
|
|
561
672
|
/**
|
|
562
673
|
*
|
|
563
674
|
* @summary Create workspace snapshot
|
|
@@ -621,6 +732,17 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
621
732
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
622
733
|
return localVarFp.replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(axios, basePath));
|
|
623
734
|
},
|
|
735
|
+
/**
|
|
736
|
+
*
|
|
737
|
+
* @summary Set workspace auto-stop interval
|
|
738
|
+
* @param {string} workspaceId ID of the workspace
|
|
739
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
740
|
+
* @param {*} [options] Override http request option.
|
|
741
|
+
* @throws {RequiredError}
|
|
742
|
+
*/
|
|
743
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
744
|
+
return localVarFp.setAutostopInterval(workspaceId, interval, options).then((request) => request(axios, basePath));
|
|
745
|
+
},
|
|
624
746
|
/**
|
|
625
747
|
*
|
|
626
748
|
* @summary Start workspace
|
|
@@ -671,6 +793,17 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
671
793
|
* @extends {BaseAPI}
|
|
672
794
|
*/
|
|
673
795
|
export class WorkspaceApi extends BaseAPI {
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @summary Archive workspace
|
|
799
|
+
* @param {string} workspaceId
|
|
800
|
+
* @param {*} [options] Override http request option.
|
|
801
|
+
* @throws {RequiredError}
|
|
802
|
+
* @memberof WorkspaceApi
|
|
803
|
+
*/
|
|
804
|
+
archiveWorkspace(workspaceId, options) {
|
|
805
|
+
return WorkspaceApiFp(this.configuration).archiveWorkspace(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
806
|
+
}
|
|
674
807
|
/**
|
|
675
808
|
*
|
|
676
809
|
* @summary Create workspace snapshot
|
|
@@ -740,6 +873,18 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
740
873
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
741
874
|
return WorkspaceApiFp(this.configuration).replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(this.axios, this.basePath));
|
|
742
875
|
}
|
|
876
|
+
/**
|
|
877
|
+
*
|
|
878
|
+
* @summary Set workspace auto-stop interval
|
|
879
|
+
* @param {string} workspaceId ID of the workspace
|
|
880
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
* @memberof WorkspaceApi
|
|
884
|
+
*/
|
|
885
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
886
|
+
return WorkspaceApiFp(this.configuration).setAutostopInterval(workspaceId, interval, options).then((request) => request(this.axios, this.basePath));
|
|
887
|
+
}
|
|
743
888
|
/**
|
|
744
889
|
*
|
|
745
890
|
* @summary Start workspace
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -45,4 +45,23 @@ export interface CreateDockerRegistry {
|
|
|
45
45
|
* @memberof CreateDockerRegistry
|
|
46
46
|
*/
|
|
47
47
|
'project': string;
|
|
48
|
+
/**
|
|
49
|
+
* Registry type
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateDockerRegistry
|
|
52
|
+
*/
|
|
53
|
+
'registryType': CreateDockerRegistryRegistryTypeEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Set as default registry
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof CreateDockerRegistry
|
|
58
|
+
*/
|
|
59
|
+
'isDefault': boolean;
|
|
48
60
|
}
|
|
61
|
+
export declare const CreateDockerRegistryRegistryTypeEnum: {
|
|
62
|
+
readonly INTERNAL: "internal";
|
|
63
|
+
readonly USER: "user";
|
|
64
|
+
readonly PUBLIC: "public";
|
|
65
|
+
readonly TRANSIENT: "transient";
|
|
66
|
+
};
|
|
67
|
+
export type CreateDockerRegistryRegistryTypeEnum = typeof CreateDockerRegistryRegistryTypeEnum[keyof typeof CreateDockerRegistryRegistryTypeEnum];
|
|
@@ -21,4 +21,76 @@ export interface CreateNode {
|
|
|
21
21
|
* @memberof CreateNode
|
|
22
22
|
*/
|
|
23
23
|
'domain': string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateNode
|
|
28
|
+
*/
|
|
29
|
+
'apiUrl': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateNode
|
|
34
|
+
*/
|
|
35
|
+
'apiKey': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CreateNode
|
|
40
|
+
*/
|
|
41
|
+
'cpu': number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CreateNode
|
|
46
|
+
*/
|
|
47
|
+
'memory': number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CreateNode
|
|
52
|
+
*/
|
|
53
|
+
'disk': number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof CreateNode
|
|
58
|
+
*/
|
|
59
|
+
'gpu': number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CreateNode
|
|
64
|
+
*/
|
|
65
|
+
'gpuType': string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CreateNode
|
|
70
|
+
*/
|
|
71
|
+
'class': CreateNodeClassEnum;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof CreateNode
|
|
76
|
+
*/
|
|
77
|
+
'capacity': number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CreateNode
|
|
82
|
+
*/
|
|
83
|
+
'region': CreateNodeRegionEnum;
|
|
24
84
|
}
|
|
85
|
+
export declare const CreateNodeClassEnum: {
|
|
86
|
+
readonly SMALL: "small";
|
|
87
|
+
readonly MEDIUM: "medium";
|
|
88
|
+
readonly LARGE: "large";
|
|
89
|
+
};
|
|
90
|
+
export type CreateNodeClassEnum = typeof CreateNodeClassEnum[keyof typeof CreateNodeClassEnum];
|
|
91
|
+
export declare const CreateNodeRegionEnum: {
|
|
92
|
+
readonly EU: "eu";
|
|
93
|
+
readonly US: "us";
|
|
94
|
+
readonly ASIA: "asia";
|
|
95
|
+
};
|
|
96
|
+
export type CreateNodeRegionEnum = typeof CreateNodeRegionEnum[keyof typeof CreateNodeRegionEnum];
|
|
@@ -11,4 +11,13 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
export {
|
|
14
|
+
export const CreateNodeClassEnum = {
|
|
15
|
+
SMALL: 'small',
|
|
16
|
+
MEDIUM: 'medium',
|
|
17
|
+
LARGE: 'large'
|
|
18
|
+
};
|
|
19
|
+
export const CreateNodeRegionEnum = {
|
|
20
|
+
EU: 'eu',
|
|
21
|
+
US: 'us',
|
|
22
|
+
ASIA: 'asia'
|
|
23
|
+
};
|