@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
package/.openapi-generator/FILES
CHANGED
|
@@ -42,6 +42,7 @@ models/git-commit-response.ts
|
|
|
42
42
|
models/git-repo-request.ts
|
|
43
43
|
models/git-status.ts
|
|
44
44
|
models/image-dto.ts
|
|
45
|
+
models/image-state.ts
|
|
45
46
|
models/index.ts
|
|
46
47
|
models/list-branch-response.ts
|
|
47
48
|
models/lsp-completion-params.ts
|
|
@@ -54,6 +55,7 @@ models/paginated-images-dto.ts
|
|
|
54
55
|
models/position.ts
|
|
55
56
|
models/project-dir-response.ts
|
|
56
57
|
models/range.ts
|
|
58
|
+
models/registry-push-access-dto.ts
|
|
57
59
|
models/replace-request.ts
|
|
58
60
|
models/replace-result.ts
|
|
59
61
|
models/search-files-response.ts
|
|
@@ -62,9 +64,11 @@ models/session-execute-response.ts
|
|
|
62
64
|
models/session.ts
|
|
63
65
|
models/toggle-state.ts
|
|
64
66
|
models/update-docker-registry.ts
|
|
67
|
+
models/update-user-quota-dto.ts
|
|
65
68
|
models/usage-overview.ts
|
|
66
69
|
models/workspace-info.ts
|
|
67
70
|
models/workspace-labels.ts
|
|
71
|
+
models/workspace-state.ts
|
|
68
72
|
models/workspace.ts
|
|
69
73
|
package.json
|
|
70
74
|
tsconfig.esm.json
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @daytonaio/api-client@0.
|
|
1
|
+
## @daytonaio/api-client@0.14.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @daytonaio/api-client@0.
|
|
39
|
+
npm install @daytonaio/api-client@0.14.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -26,6 +26,8 @@ import type { CreateDockerRegistry } from '../models';
|
|
|
26
26
|
// @ts-ignore
|
|
27
27
|
import type { DockerRegistry } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
+
import type { RegistryPushAccessDto } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
29
31
|
import type { UpdateDockerRegistry } from '../models';
|
|
30
32
|
/**
|
|
31
33
|
* DockerRegistryApi - axios parameter creator
|
|
@@ -140,6 +142,40 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration?: Conf
|
|
|
140
142
|
|
|
141
143
|
|
|
142
144
|
|
|
145
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
148
|
+
|
|
149
|
+
return {
|
|
150
|
+
url: toPathString(localVarUrlObj),
|
|
151
|
+
options: localVarRequestOptions,
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @summary Get temporary registry access for pushing images
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
getTransientPushAccess: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
161
|
+
const localVarPath = `/docker-registry/registry-push-access`;
|
|
162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
163
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
164
|
+
let baseOptions;
|
|
165
|
+
if (configuration) {
|
|
166
|
+
baseOptions = configuration.baseOptions;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
170
|
+
const localVarHeaderParameter = {} as any;
|
|
171
|
+
const localVarQueryParameter = {} as any;
|
|
172
|
+
|
|
173
|
+
// authentication oauth2 required
|
|
174
|
+
// oauth required
|
|
175
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
143
179
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
144
180
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
181
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -314,6 +350,18 @@ export const DockerRegistryApiFp = function(configuration?: Configuration) {
|
|
|
314
350
|
const localVarOperationServerBasePath = operationServerMap['DockerRegistryApi.getRegistry']?.[localVarOperationServerIndex]?.url;
|
|
315
351
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
316
352
|
},
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @summary Get temporary registry access for pushing images
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
*/
|
|
359
|
+
async getTransientPushAccess(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegistryPushAccessDto>> {
|
|
360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransientPushAccess(options);
|
|
361
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
362
|
+
const localVarOperationServerBasePath = operationServerMap['DockerRegistryApi.getTransientPushAccess']?.[localVarOperationServerIndex]?.url;
|
|
363
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
364
|
+
},
|
|
317
365
|
/**
|
|
318
366
|
*
|
|
319
367
|
* @summary List registries
|
|
@@ -393,6 +441,15 @@ export const DockerRegistryApiFactory = function (configuration?: Configuration,
|
|
|
393
441
|
getRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry> {
|
|
394
442
|
return localVarFp.getRegistry(id, options).then((request) => request(axios, basePath));
|
|
395
443
|
},
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @summary Get temporary registry access for pushing images
|
|
447
|
+
* @param {*} [options] Override http request option.
|
|
448
|
+
* @throws {RequiredError}
|
|
449
|
+
*/
|
|
450
|
+
getTransientPushAccess(options?: RawAxiosRequestConfig): AxiosPromise<RegistryPushAccessDto> {
|
|
451
|
+
return localVarFp.getTransientPushAccess(options).then((request) => request(axios, basePath));
|
|
452
|
+
},
|
|
396
453
|
/**
|
|
397
454
|
*
|
|
398
455
|
* @summary List registries
|
|
@@ -469,6 +526,17 @@ export class DockerRegistryApi extends BaseAPI {
|
|
|
469
526
|
return DockerRegistryApiFp(this.configuration).getRegistry(id, options).then((request) => request(this.axios, this.basePath));
|
|
470
527
|
}
|
|
471
528
|
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @summary Get temporary registry access for pushing images
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
* @memberof DockerRegistryApi
|
|
535
|
+
*/
|
|
536
|
+
public getTransientPushAccess(options?: RawAxiosRequestConfig) {
|
|
537
|
+
return DockerRegistryApiFp(this.configuration).getTransientPushAccess(options).then((request) => request(this.axios, this.basePath));
|
|
538
|
+
}
|
|
539
|
+
|
|
472
540
|
/**
|
|
473
541
|
*
|
|
474
542
|
* @summary List registries
|
package/api/users-api.ts
CHANGED
|
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { CreateUser } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { UpdateUserQuotaDto } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
27
29
|
import type { UsageOverview } from '../models';
|
|
28
30
|
/**
|
|
29
31
|
* UsersApi - axios parameter creator
|
|
@@ -172,6 +174,50 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
172
174
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
175
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
174
176
|
|
|
177
|
+
return {
|
|
178
|
+
url: toPathString(localVarUrlObj),
|
|
179
|
+
options: localVarRequestOptions,
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @summary Update user quota
|
|
185
|
+
* @param {string} id
|
|
186
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
updateUserQuota: async (id: string, updateUserQuotaDto: UpdateUserQuotaDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
191
|
+
// verify required parameter 'id' is not null or undefined
|
|
192
|
+
assertParamExists('updateUserQuota', 'id', id)
|
|
193
|
+
// verify required parameter 'updateUserQuotaDto' is not null or undefined
|
|
194
|
+
assertParamExists('updateUserQuota', 'updateUserQuotaDto', updateUserQuotaDto)
|
|
195
|
+
const localVarPath = `/users/{id}/quota`
|
|
196
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
199
|
+
let baseOptions;
|
|
200
|
+
if (configuration) {
|
|
201
|
+
baseOptions = configuration.baseOptions;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
205
|
+
const localVarHeaderParameter = {} as any;
|
|
206
|
+
const localVarQueryParameter = {} as any;
|
|
207
|
+
|
|
208
|
+
// authentication oauth2 required
|
|
209
|
+
// oauth required
|
|
210
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
215
|
+
|
|
216
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
217
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
218
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
219
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateUserQuotaDto, localVarRequestOptions, configuration)
|
|
220
|
+
|
|
175
221
|
return {
|
|
176
222
|
url: toPathString(localVarUrlObj),
|
|
177
223
|
options: localVarRequestOptions,
|
|
@@ -237,6 +283,20 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
237
283
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.regenerateKeyPair']?.[localVarOperationServerIndex]?.url;
|
|
238
284
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
239
285
|
},
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @summary Update user quota
|
|
289
|
+
* @param {string} id
|
|
290
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
async updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
295
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserQuota(id, updateUserQuotaDto, options);
|
|
296
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
297
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.updateUserQuota']?.[localVarOperationServerIndex]?.url;
|
|
298
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
299
|
+
},
|
|
240
300
|
}
|
|
241
301
|
};
|
|
242
302
|
|
|
@@ -285,6 +345,17 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
285
345
|
regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
286
346
|
return localVarFp.regenerateKeyPair(id, options).then((request) => request(axios, basePath));
|
|
287
347
|
},
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @summary Update user quota
|
|
351
|
+
* @param {string} id
|
|
352
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
*/
|
|
356
|
+
updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
357
|
+
return localVarFp.updateUserQuota(id, updateUserQuotaDto, options).then((request) => request(axios, basePath));
|
|
358
|
+
},
|
|
288
359
|
};
|
|
289
360
|
};
|
|
290
361
|
|
|
@@ -340,5 +411,18 @@ export class UsersApi extends BaseAPI {
|
|
|
340
411
|
public regenerateKeyPair(id: string, options?: RawAxiosRequestConfig) {
|
|
341
412
|
return UsersApiFp(this.configuration).regenerateKeyPair(id, options).then((request) => request(this.axios, this.basePath));
|
|
342
413
|
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @summary Update user quota
|
|
418
|
+
* @param {string} id
|
|
419
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
* @memberof UsersApi
|
|
423
|
+
*/
|
|
424
|
+
public updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig) {
|
|
425
|
+
return UsersApiFp(this.configuration).updateUserQuota(id, updateUserQuotaDto, options).then((request) => request(this.axios, this.basePath));
|
|
426
|
+
}
|
|
343
427
|
}
|
|
344
428
|
|
package/api/workspace-api.ts
CHANGED
|
@@ -33,6 +33,44 @@ import type { WorkspaceLabels } from '../models';
|
|
|
33
33
|
*/
|
|
34
34
|
export const WorkspaceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35
35
|
return {
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @summary Archive workspace
|
|
39
|
+
* @param {string} workspaceId
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
archiveWorkspace: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
45
|
+
assertParamExists('archiveWorkspace', 'workspaceId', workspaceId)
|
|
46
|
+
const localVarPath = `/workspace/{workspaceId}/archive`
|
|
47
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
56
|
+
const localVarHeaderParameter = {} as any;
|
|
57
|
+
const localVarQueryParameter = {} as any;
|
|
58
|
+
|
|
59
|
+
// authentication oauth2 required
|
|
60
|
+
// oauth required
|
|
61
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
66
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
url: toPathString(localVarUrlObj),
|
|
71
|
+
options: localVarRequestOptions,
|
|
72
|
+
};
|
|
73
|
+
},
|
|
36
74
|
/**
|
|
37
75
|
*
|
|
38
76
|
* @summary Create workspace snapshot
|
|
@@ -282,6 +320,48 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
282
320
|
options: localVarRequestOptions,
|
|
283
321
|
};
|
|
284
322
|
},
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* @summary Set workspace auto-stop interval
|
|
326
|
+
* @param {string} workspaceId ID of the workspace
|
|
327
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
328
|
+
* @param {*} [options] Override http request option.
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
*/
|
|
331
|
+
setAutostopInterval: async (workspaceId: string, interval: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
332
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
333
|
+
assertParamExists('setAutostopInterval', 'workspaceId', workspaceId)
|
|
334
|
+
// verify required parameter 'interval' is not null or undefined
|
|
335
|
+
assertParamExists('setAutostopInterval', 'interval', interval)
|
|
336
|
+
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
337
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
338
|
+
.replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
|
|
339
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
340
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
341
|
+
let baseOptions;
|
|
342
|
+
if (configuration) {
|
|
343
|
+
baseOptions = configuration.baseOptions;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
347
|
+
const localVarHeaderParameter = {} as any;
|
|
348
|
+
const localVarQueryParameter = {} as any;
|
|
349
|
+
|
|
350
|
+
// authentication oauth2 required
|
|
351
|
+
// oauth required
|
|
352
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
357
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
358
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
359
|
+
|
|
360
|
+
return {
|
|
361
|
+
url: toPathString(localVarUrlObj),
|
|
362
|
+
options: localVarRequestOptions,
|
|
363
|
+
};
|
|
364
|
+
},
|
|
285
365
|
/**
|
|
286
366
|
*
|
|
287
367
|
* @summary Start workspace
|
|
@@ -453,6 +533,19 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
453
533
|
export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
454
534
|
const localVarAxiosParamCreator = WorkspaceApiAxiosParamCreator(configuration)
|
|
455
535
|
return {
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @summary Archive workspace
|
|
539
|
+
* @param {string} workspaceId
|
|
540
|
+
* @param {*} [options] Override http request option.
|
|
541
|
+
* @throws {RequiredError}
|
|
542
|
+
*/
|
|
543
|
+
async archiveWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
544
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveWorkspace(workspaceId, options);
|
|
545
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
546
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.archiveWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
547
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
548
|
+
},
|
|
456
549
|
/**
|
|
457
550
|
*
|
|
458
551
|
* @summary Create workspace snapshot
|
|
@@ -534,6 +627,20 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
534
627
|
const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.replaceLabels']?.[localVarOperationServerIndex]?.url;
|
|
535
628
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
536
629
|
},
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
* @summary Set workspace auto-stop interval
|
|
633
|
+
* @param {string} workspaceId ID of the workspace
|
|
634
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
635
|
+
* @param {*} [options] Override http request option.
|
|
636
|
+
* @throws {RequiredError}
|
|
637
|
+
*/
|
|
638
|
+
async setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
639
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, options);
|
|
640
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
641
|
+
const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.setAutostopInterval']?.[localVarOperationServerIndex]?.url;
|
|
642
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
643
|
+
},
|
|
537
644
|
/**
|
|
538
645
|
*
|
|
539
646
|
* @summary Start workspace
|
|
@@ -597,6 +704,16 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
597
704
|
export const WorkspaceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
598
705
|
const localVarFp = WorkspaceApiFp(configuration)
|
|
599
706
|
return {
|
|
707
|
+
/**
|
|
708
|
+
*
|
|
709
|
+
* @summary Archive workspace
|
|
710
|
+
* @param {string} workspaceId
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
*/
|
|
714
|
+
archiveWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
715
|
+
return localVarFp.archiveWorkspace(workspaceId, options).then((request) => request(axios, basePath));
|
|
716
|
+
},
|
|
600
717
|
/**
|
|
601
718
|
*
|
|
602
719
|
* @summary Create workspace snapshot
|
|
@@ -660,6 +777,17 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
660
777
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabels> {
|
|
661
778
|
return localVarFp.replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(axios, basePath));
|
|
662
779
|
},
|
|
780
|
+
/**
|
|
781
|
+
*
|
|
782
|
+
* @summary Set workspace auto-stop interval
|
|
783
|
+
* @param {string} workspaceId ID of the workspace
|
|
784
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
789
|
+
return localVarFp.setAutostopInterval(workspaceId, interval, options).then((request) => request(axios, basePath));
|
|
790
|
+
},
|
|
663
791
|
/**
|
|
664
792
|
*
|
|
665
793
|
* @summary Start workspace
|
|
@@ -711,6 +839,18 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
711
839
|
* @extends {BaseAPI}
|
|
712
840
|
*/
|
|
713
841
|
export class WorkspaceApi extends BaseAPI {
|
|
842
|
+
/**
|
|
843
|
+
*
|
|
844
|
+
* @summary Archive workspace
|
|
845
|
+
* @param {string} workspaceId
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
* @memberof WorkspaceApi
|
|
849
|
+
*/
|
|
850
|
+
public archiveWorkspace(workspaceId: string, options?: RawAxiosRequestConfig) {
|
|
851
|
+
return WorkspaceApiFp(this.configuration).archiveWorkspace(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
852
|
+
}
|
|
853
|
+
|
|
714
854
|
/**
|
|
715
855
|
*
|
|
716
856
|
* @summary Create workspace snapshot
|
|
@@ -786,6 +926,19 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
786
926
|
return WorkspaceApiFp(this.configuration).replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(this.axios, this.basePath));
|
|
787
927
|
}
|
|
788
928
|
|
|
929
|
+
/**
|
|
930
|
+
*
|
|
931
|
+
* @summary Set workspace auto-stop interval
|
|
932
|
+
* @param {string} workspaceId ID of the workspace
|
|
933
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
934
|
+
* @param {*} [options] Override http request option.
|
|
935
|
+
* @throws {RequiredError}
|
|
936
|
+
* @memberof WorkspaceApi
|
|
937
|
+
*/
|
|
938
|
+
public setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig) {
|
|
939
|
+
return WorkspaceApiFp(this.configuration).setAutostopInterval(workspaceId, interval, options).then((request) => request(this.axios, this.basePath));
|
|
940
|
+
}
|
|
941
|
+
|
|
789
942
|
/**
|
|
790
943
|
*
|
|
791
944
|
* @summary Start workspace
|
|
@@ -14,6 +14,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { CreateDockerRegistry } from '../models';
|
|
16
16
|
import type { DockerRegistry } from '../models';
|
|
17
|
+
import type { RegistryPushAccessDto } from '../models';
|
|
17
18
|
import type { UpdateDockerRegistry } from '../models';
|
|
18
19
|
/**
|
|
19
20
|
* DockerRegistryApi - axios parameter creator
|
|
@@ -44,6 +45,13 @@ export declare const DockerRegistryApiAxiosParamCreator: (configuration?: Config
|
|
|
44
45
|
* @throws {RequiredError}
|
|
45
46
|
*/
|
|
46
47
|
getRegistry: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @summary Get temporary registry access for pushing images
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
getTransientPushAccess: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
55
|
/**
|
|
48
56
|
*
|
|
49
57
|
* @summary List registries
|
|
@@ -98,6 +106,13 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
98
106
|
* @throws {RequiredError}
|
|
99
107
|
*/
|
|
100
108
|
getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @summary Get temporary registry access for pushing images
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
getTransientPushAccess(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegistryPushAccessDto>>;
|
|
101
116
|
/**
|
|
102
117
|
*
|
|
103
118
|
* @summary List registries
|
|
@@ -152,6 +167,13 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
152
167
|
* @throws {RequiredError}
|
|
153
168
|
*/
|
|
154
169
|
getRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry>;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @summary Get temporary registry access for pushing images
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
getTransientPushAccess(options?: RawAxiosRequestConfig): AxiosPromise<RegistryPushAccessDto>;
|
|
155
177
|
/**
|
|
156
178
|
*
|
|
157
179
|
* @summary List registries
|
|
@@ -211,6 +233,14 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
211
233
|
* @memberof DockerRegistryApi
|
|
212
234
|
*/
|
|
213
235
|
getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry, any>>;
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @summary Get temporary registry access for pushing images
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
* @memberof DockerRegistryApi
|
|
242
|
+
*/
|
|
243
|
+
getTransientPushAccess(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RegistryPushAccessDto, any>>;
|
|
214
244
|
/**
|
|
215
245
|
*
|
|
216
246
|
* @summary List registries
|
|
@@ -132,6 +132,34 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
132
132
|
options: localVarRequestOptions,
|
|
133
133
|
};
|
|
134
134
|
}),
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @summary Get temporary registry access for pushing images
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
getTransientPushAccess: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
142
|
+
const localVarPath = `/docker-registry/registry-push-access`;
|
|
143
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
144
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
145
|
+
let baseOptions;
|
|
146
|
+
if (configuration) {
|
|
147
|
+
baseOptions = configuration.baseOptions;
|
|
148
|
+
}
|
|
149
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
150
|
+
const localVarHeaderParameter = {};
|
|
151
|
+
const localVarQueryParameter = {};
|
|
152
|
+
// authentication oauth2 required
|
|
153
|
+
// oauth required
|
|
154
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
155
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
156
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
157
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
158
|
+
return {
|
|
159
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
160
|
+
options: localVarRequestOptions,
|
|
161
|
+
};
|
|
162
|
+
}),
|
|
135
163
|
/**
|
|
136
164
|
*
|
|
137
165
|
* @summary List registries
|
|
@@ -287,6 +315,21 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
287
315
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
288
316
|
});
|
|
289
317
|
},
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @summary Get temporary registry access for pushing images
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
getTransientPushAccess(options) {
|
|
325
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
326
|
+
var _a, _b, _c;
|
|
327
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTransientPushAccess(options);
|
|
328
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
329
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.getTransientPushAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
330
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
331
|
+
});
|
|
332
|
+
},
|
|
290
333
|
/**
|
|
291
334
|
*
|
|
292
335
|
* @summary List registries
|
|
@@ -375,6 +418,15 @@ const DockerRegistryApiFactory = function (configuration, basePath, axios) {
|
|
|
375
418
|
getRegistry(id, options) {
|
|
376
419
|
return localVarFp.getRegistry(id, options).then((request) => request(axios, basePath));
|
|
377
420
|
},
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
* @summary Get temporary registry access for pushing images
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
getTransientPushAccess(options) {
|
|
428
|
+
return localVarFp.getTransientPushAccess(options).then((request) => request(axios, basePath));
|
|
429
|
+
},
|
|
378
430
|
/**
|
|
379
431
|
*
|
|
380
432
|
* @summary List registries
|
|
@@ -448,6 +500,16 @@ class DockerRegistryApi extends base_1.BaseAPI {
|
|
|
448
500
|
getRegistry(id, options) {
|
|
449
501
|
return (0, exports.DockerRegistryApiFp)(this.configuration).getRegistry(id, options).then((request) => request(this.axios, this.basePath));
|
|
450
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @summary Get temporary registry access for pushing images
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
* @memberof DockerRegistryApi
|
|
509
|
+
*/
|
|
510
|
+
getTransientPushAccess(options) {
|
|
511
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration).getTransientPushAccess(options).then((request) => request(this.axios, this.basePath));
|
|
512
|
+
}
|
|
451
513
|
/**
|
|
452
514
|
*
|
|
453
515
|
* @summary List registries
|