@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/dist/api/users-api.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/api/users-api.js
CHANGED
|
@@ -156,6 +156,43 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
156
156
|
options: localVarRequestOptions,
|
|
157
157
|
};
|
|
158
158
|
}),
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @summary Update user quota
|
|
162
|
+
* @param {string} id
|
|
163
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
updateUserQuota: (id_1, updateUserQuotaDto_1, ...args_1) => __awaiter(this, [id_1, updateUserQuotaDto_1, ...args_1], void 0, function* (id, updateUserQuotaDto, options = {}) {
|
|
168
|
+
// verify required parameter 'id' is not null or undefined
|
|
169
|
+
(0, common_1.assertParamExists)('updateUserQuota', 'id', id);
|
|
170
|
+
// verify required parameter 'updateUserQuotaDto' is not null or undefined
|
|
171
|
+
(0, common_1.assertParamExists)('updateUserQuota', 'updateUserQuotaDto', updateUserQuotaDto);
|
|
172
|
+
const localVarPath = `/users/{id}/quota`
|
|
173
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
174
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
175
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
176
|
+
let baseOptions;
|
|
177
|
+
if (configuration) {
|
|
178
|
+
baseOptions = configuration.baseOptions;
|
|
179
|
+
}
|
|
180
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
181
|
+
const localVarHeaderParameter = {};
|
|
182
|
+
const localVarQueryParameter = {};
|
|
183
|
+
// authentication oauth2 required
|
|
184
|
+
// oauth required
|
|
185
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
186
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
187
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
188
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
190
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserQuotaDto, localVarRequestOptions, configuration);
|
|
191
|
+
return {
|
|
192
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
193
|
+
options: localVarRequestOptions,
|
|
194
|
+
};
|
|
195
|
+
}),
|
|
159
196
|
};
|
|
160
197
|
};
|
|
161
198
|
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
@@ -228,6 +265,23 @@ const UsersApiFp = function (configuration) {
|
|
|
228
265
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
229
266
|
});
|
|
230
267
|
},
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* @summary Update user quota
|
|
271
|
+
* @param {string} id
|
|
272
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
updateUserQuota(id, updateUserQuotaDto, options) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
var _a, _b, _c;
|
|
279
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserQuota(id, updateUserQuotaDto, options);
|
|
280
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
281
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.updateUserQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
282
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
283
|
+
});
|
|
284
|
+
},
|
|
231
285
|
};
|
|
232
286
|
};
|
|
233
287
|
exports.UsersApiFp = UsersApiFp;
|
|
@@ -276,6 +330,17 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
276
330
|
regenerateKeyPair(id, options) {
|
|
277
331
|
return localVarFp.regenerateKeyPair(id, options).then((request) => request(axios, basePath));
|
|
278
332
|
},
|
|
333
|
+
/**
|
|
334
|
+
*
|
|
335
|
+
* @summary Update user quota
|
|
336
|
+
* @param {string} id
|
|
337
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
updateUserQuota(id, updateUserQuotaDto, options) {
|
|
342
|
+
return localVarFp.updateUserQuota(id, updateUserQuotaDto, options).then((request) => request(axios, basePath));
|
|
343
|
+
},
|
|
279
344
|
};
|
|
280
345
|
};
|
|
281
346
|
exports.UsersApiFactory = UsersApiFactory;
|
|
@@ -328,5 +393,17 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
328
393
|
regenerateKeyPair(id, options) {
|
|
329
394
|
return (0, exports.UsersApiFp)(this.configuration).regenerateKeyPair(id, options).then((request) => request(this.axios, this.basePath));
|
|
330
395
|
}
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @summary Update user quota
|
|
399
|
+
* @param {string} id
|
|
400
|
+
* @param {UpdateUserQuotaDto} updateUserQuotaDto
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
* @memberof UsersApi
|
|
404
|
+
*/
|
|
405
|
+
updateUserQuota(id, updateUserQuotaDto, options) {
|
|
406
|
+
return (0, exports.UsersApiFp)(this.configuration).updateUserQuota(id, updateUserQuotaDto, options).then((request) => request(this.axios, this.basePath));
|
|
407
|
+
}
|
|
331
408
|
}
|
|
332
409
|
exports.UsersApi = UsersApi;
|
|
@@ -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
|
|
@@ -35,6 +35,38 @@ const base_1 = require("../base");
|
|
|
35
35
|
*/
|
|
36
36
|
const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
37
37
|
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary Archive workspace
|
|
41
|
+
* @param {string} workspaceId
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
archiveWorkspace: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
46
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('archiveWorkspace', 'workspaceId', workspaceId);
|
|
48
|
+
const localVarPath = `/workspace/{workspaceId}/archive`
|
|
49
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
50
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
52
|
+
let baseOptions;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
}
|
|
56
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
57
|
+
const localVarHeaderParameter = {};
|
|
58
|
+
const localVarQueryParameter = {};
|
|
59
|
+
// authentication oauth2 required
|
|
60
|
+
// oauth required
|
|
61
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
62
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
+
return {
|
|
66
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
38
70
|
/**
|
|
39
71
|
*
|
|
40
72
|
* @summary Create workspace snapshot
|
|
@@ -243,6 +275,42 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
243
275
|
options: localVarRequestOptions,
|
|
244
276
|
};
|
|
245
277
|
}),
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @summary Set workspace auto-stop interval
|
|
281
|
+
* @param {string} workspaceId ID of the workspace
|
|
282
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
setAutostopInterval: (workspaceId_1, interval_1, ...args_1) => __awaiter(this, [workspaceId_1, interval_1, ...args_1], void 0, function* (workspaceId, interval, options = {}) {
|
|
287
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
288
|
+
(0, common_1.assertParamExists)('setAutostopInterval', 'workspaceId', workspaceId);
|
|
289
|
+
// verify required parameter 'interval' is not null or undefined
|
|
290
|
+
(0, common_1.assertParamExists)('setAutostopInterval', 'interval', interval);
|
|
291
|
+
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
292
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
293
|
+
.replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
|
|
294
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
295
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
296
|
+
let baseOptions;
|
|
297
|
+
if (configuration) {
|
|
298
|
+
baseOptions = configuration.baseOptions;
|
|
299
|
+
}
|
|
300
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
301
|
+
const localVarHeaderParameter = {};
|
|
302
|
+
const localVarQueryParameter = {};
|
|
303
|
+
// authentication oauth2 required
|
|
304
|
+
// oauth required
|
|
305
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
306
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
308
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
309
|
+
return {
|
|
310
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
311
|
+
options: localVarRequestOptions,
|
|
312
|
+
};
|
|
313
|
+
}),
|
|
246
314
|
/**
|
|
247
315
|
*
|
|
248
316
|
* @summary Start workspace
|
|
@@ -389,6 +457,22 @@ exports.WorkspaceApiAxiosParamCreator = WorkspaceApiAxiosParamCreator;
|
|
|
389
457
|
const WorkspaceApiFp = function (configuration) {
|
|
390
458
|
const localVarAxiosParamCreator = (0, exports.WorkspaceApiAxiosParamCreator)(configuration);
|
|
391
459
|
return {
|
|
460
|
+
/**
|
|
461
|
+
*
|
|
462
|
+
* @summary Archive workspace
|
|
463
|
+
* @param {string} workspaceId
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
*/
|
|
467
|
+
archiveWorkspace(workspaceId, options) {
|
|
468
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
469
|
+
var _a, _b, _c;
|
|
470
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveWorkspace(workspaceId, options);
|
|
471
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
472
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.archiveWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
473
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
474
|
+
});
|
|
475
|
+
},
|
|
392
476
|
/**
|
|
393
477
|
*
|
|
394
478
|
* @summary Create workspace snapshot
|
|
@@ -488,6 +572,23 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
488
572
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
489
573
|
});
|
|
490
574
|
},
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @summary Set workspace auto-stop interval
|
|
578
|
+
* @param {string} workspaceId ID of the workspace
|
|
579
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
580
|
+
* @param {*} [options] Override http request option.
|
|
581
|
+
* @throws {RequiredError}
|
|
582
|
+
*/
|
|
583
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
584
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
585
|
+
var _a, _b, _c;
|
|
586
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, options);
|
|
587
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
588
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
589
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
590
|
+
});
|
|
591
|
+
},
|
|
491
592
|
/**
|
|
492
593
|
*
|
|
493
594
|
* @summary Start workspace
|
|
@@ -563,6 +664,16 @@ exports.WorkspaceApiFp = WorkspaceApiFp;
|
|
|
563
664
|
const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
564
665
|
const localVarFp = (0, exports.WorkspaceApiFp)(configuration);
|
|
565
666
|
return {
|
|
667
|
+
/**
|
|
668
|
+
*
|
|
669
|
+
* @summary Archive workspace
|
|
670
|
+
* @param {string} workspaceId
|
|
671
|
+
* @param {*} [options] Override http request option.
|
|
672
|
+
* @throws {RequiredError}
|
|
673
|
+
*/
|
|
674
|
+
archiveWorkspace(workspaceId, options) {
|
|
675
|
+
return localVarFp.archiveWorkspace(workspaceId, options).then((request) => request(axios, basePath));
|
|
676
|
+
},
|
|
566
677
|
/**
|
|
567
678
|
*
|
|
568
679
|
* @summary Create workspace snapshot
|
|
@@ -626,6 +737,17 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
626
737
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
627
738
|
return localVarFp.replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(axios, basePath));
|
|
628
739
|
},
|
|
740
|
+
/**
|
|
741
|
+
*
|
|
742
|
+
* @summary Set workspace auto-stop interval
|
|
743
|
+
* @param {string} workspaceId ID of the workspace
|
|
744
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
745
|
+
* @param {*} [options] Override http request option.
|
|
746
|
+
* @throws {RequiredError}
|
|
747
|
+
*/
|
|
748
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
749
|
+
return localVarFp.setAutostopInterval(workspaceId, interval, options).then((request) => request(axios, basePath));
|
|
750
|
+
},
|
|
629
751
|
/**
|
|
630
752
|
*
|
|
631
753
|
* @summary Start workspace
|
|
@@ -677,6 +799,17 @@ exports.WorkspaceApiFactory = WorkspaceApiFactory;
|
|
|
677
799
|
* @extends {BaseAPI}
|
|
678
800
|
*/
|
|
679
801
|
class WorkspaceApi extends base_1.BaseAPI {
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @summary Archive workspace
|
|
805
|
+
* @param {string} workspaceId
|
|
806
|
+
* @param {*} [options] Override http request option.
|
|
807
|
+
* @throws {RequiredError}
|
|
808
|
+
* @memberof WorkspaceApi
|
|
809
|
+
*/
|
|
810
|
+
archiveWorkspace(workspaceId, options) {
|
|
811
|
+
return (0, exports.WorkspaceApiFp)(this.configuration).archiveWorkspace(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
812
|
+
}
|
|
680
813
|
/**
|
|
681
814
|
*
|
|
682
815
|
* @summary Create workspace snapshot
|
|
@@ -746,6 +879,18 @@ class WorkspaceApi extends base_1.BaseAPI {
|
|
|
746
879
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
747
880
|
return (0, exports.WorkspaceApiFp)(this.configuration).replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(this.axios, this.basePath));
|
|
748
881
|
}
|
|
882
|
+
/**
|
|
883
|
+
*
|
|
884
|
+
* @summary Set workspace auto-stop interval
|
|
885
|
+
* @param {string} workspaceId ID of the workspace
|
|
886
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
887
|
+
* @param {*} [options] Override http request option.
|
|
888
|
+
* @throws {RequiredError}
|
|
889
|
+
* @memberof WorkspaceApi
|
|
890
|
+
*/
|
|
891
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
892
|
+
return (0, exports.WorkspaceApiFp)(this.configuration).setAutostopInterval(workspaceId, interval, options).then((request) => request(this.axios, this.basePath));
|
|
893
|
+
}
|
|
749
894
|
/**
|
|
750
895
|
*
|
|
751
896
|
* @summary Start workspace
|
package/dist/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>;
|
|
@@ -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
|
|
@@ -129,6 +129,34 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
129
129
|
options: localVarRequestOptions,
|
|
130
130
|
};
|
|
131
131
|
}),
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @summary Get temporary registry access for pushing images
|
|
135
|
+
* @param {*} [options] Override http request option.
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
*/
|
|
138
|
+
getTransientPushAccess: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
139
|
+
const localVarPath = `/docker-registry/registry-push-access`;
|
|
140
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
142
|
+
let baseOptions;
|
|
143
|
+
if (configuration) {
|
|
144
|
+
baseOptions = configuration.baseOptions;
|
|
145
|
+
}
|
|
146
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
147
|
+
const localVarHeaderParameter = {};
|
|
148
|
+
const localVarQueryParameter = {};
|
|
149
|
+
// authentication oauth2 required
|
|
150
|
+
// oauth required
|
|
151
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
152
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
155
|
+
return {
|
|
156
|
+
url: toPathString(localVarUrlObj),
|
|
157
|
+
options: localVarRequestOptions,
|
|
158
|
+
};
|
|
159
|
+
}),
|
|
132
160
|
/**
|
|
133
161
|
*
|
|
134
162
|
* @summary List registries
|
|
@@ -283,6 +311,21 @@ export const DockerRegistryApiFp = function (configuration) {
|
|
|
283
311
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
284
312
|
});
|
|
285
313
|
},
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @summary Get temporary registry access for pushing images
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @throws {RequiredError}
|
|
319
|
+
*/
|
|
320
|
+
getTransientPushAccess(options) {
|
|
321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
var _a, _b, _c;
|
|
323
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTransientPushAccess(options);
|
|
324
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
325
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.getTransientPushAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
326
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
327
|
+
});
|
|
328
|
+
},
|
|
286
329
|
/**
|
|
287
330
|
*
|
|
288
331
|
* @summary List registries
|
|
@@ -370,6 +413,15 @@ export const DockerRegistryApiFactory = function (configuration, basePath, axios
|
|
|
370
413
|
getRegistry(id, options) {
|
|
371
414
|
return localVarFp.getRegistry(id, options).then((request) => request(axios, basePath));
|
|
372
415
|
},
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @summary Get temporary registry access for pushing images
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
getTransientPushAccess(options) {
|
|
423
|
+
return localVarFp.getTransientPushAccess(options).then((request) => request(axios, basePath));
|
|
424
|
+
},
|
|
373
425
|
/**
|
|
374
426
|
*
|
|
375
427
|
* @summary List registries
|
|
@@ -442,6 +494,16 @@ export class DockerRegistryApi extends BaseAPI {
|
|
|
442
494
|
getRegistry(id, options) {
|
|
443
495
|
return DockerRegistryApiFp(this.configuration).getRegistry(id, options).then((request) => request(this.axios, this.basePath));
|
|
444
496
|
}
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @summary Get temporary registry access for pushing images
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
* @memberof DockerRegistryApi
|
|
503
|
+
*/
|
|
504
|
+
getTransientPushAccess(options) {
|
|
505
|
+
return DockerRegistryApiFp(this.configuration).getTransientPushAccess(options).then((request) => request(this.axios, this.basePath));
|
|
506
|
+
}
|
|
445
507
|
/**
|
|
446
508
|
*
|
|
447
509
|
* @summary List registries
|