@daytonaio/api-client 0.17.0 → 0.17.1
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 +0 -1
- package/api/workspace-api.ts +9 -13
- package/dist/api/api-keys-api.js +57 -40
- package/dist/api/docker-registry-api.js +93 -70
- package/dist/api/images-api.js +69 -50
- package/dist/api/nodes-api.js +45 -30
- package/dist/api/organizations-api.js +309 -250
- package/dist/api/preview-api.js +41 -26
- package/dist/api/toolbox-api.js +441 -360
- package/dist/api/users-api.js +53 -36
- package/dist/api/workspace-api.d.ts +8 -9
- package/dist/api/workspace-api.js +170 -137
- package/dist/common.js +34 -19
- package/dist/esm/api/api-keys-api.js +57 -40
- package/dist/esm/api/docker-registry-api.js +93 -70
- package/dist/esm/api/images-api.js +69 -50
- package/dist/esm/api/nodes-api.js +45 -30
- package/dist/esm/api/organizations-api.js +309 -250
- package/dist/esm/api/preview-api.js +41 -26
- package/dist/esm/api/toolbox-api.js +441 -360
- package/dist/esm/api/users-api.js +53 -36
- package/dist/esm/api/workspace-api.d.ts +8 -9
- package/dist/esm/api/workspace-api.js +170 -137
- package/dist/esm/common.js +34 -19
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/models/index.ts +0 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/dist/esm/models/list-workspaces-labels-parameter.d.ts +0 -26
- package/dist/esm/models/list-workspaces-labels-parameter.js +0 -14
- package/dist/models/list-workspaces-labels-parameter.d.ts +0 -26
- package/dist/models/list-workspaces-labels-parameter.js +0 -15
- package/models/list-workspaces-labels-parameter.ts +0 -27
|
@@ -12,6 +12,15 @@
|
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
15
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
25
|
exports.DockerRegistryApi = exports.DockerRegistryApiFactory = exports.DockerRegistryApiFp = exports.DockerRegistryApiAxiosParamCreator = void 0;
|
|
17
26
|
const axios_1 = require("axios");
|
|
@@ -34,7 +43,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
34
43
|
* @param {*} [options] Override http request option.
|
|
35
44
|
* @throws {RequiredError}
|
|
36
45
|
*/
|
|
37
|
-
createRegistry:
|
|
46
|
+
createRegistry: (createDockerRegistry_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [createDockerRegistry_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (createDockerRegistry, xDaytonaOrganizationID, options = {}) {
|
|
38
47
|
// verify required parameter 'createDockerRegistry' is not null or undefined
|
|
39
48
|
(0, common_1.assertParamExists)('createRegistry', 'createDockerRegistry', createDockerRegistry);
|
|
40
49
|
const localVarPath = `/docker-registry`;
|
|
@@ -49,10 +58,10 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
49
58
|
const localVarQueryParameter = {};
|
|
50
59
|
// authentication bearer required
|
|
51
60
|
// http bearer authentication required
|
|
52
|
-
|
|
61
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
53
62
|
// authentication oauth2 required
|
|
54
63
|
// oauth required
|
|
55
|
-
|
|
64
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
56
65
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
57
66
|
if (xDaytonaOrganizationID != null) {
|
|
58
67
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
@@ -65,7 +74,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
65
74
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
66
75
|
options: localVarRequestOptions,
|
|
67
76
|
};
|
|
68
|
-
},
|
|
77
|
+
}),
|
|
69
78
|
/**
|
|
70
79
|
*
|
|
71
80
|
* @summary Delete registry
|
|
@@ -74,7 +83,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
74
83
|
* @param {*} [options] Override http request option.
|
|
75
84
|
* @throws {RequiredError}
|
|
76
85
|
*/
|
|
77
|
-
deleteRegistry:
|
|
86
|
+
deleteRegistry: (id_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [id_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (id, xDaytonaOrganizationID, options = {}) {
|
|
78
87
|
// verify required parameter 'id' is not null or undefined
|
|
79
88
|
(0, common_1.assertParamExists)('deleteRegistry', 'id', id);
|
|
80
89
|
const localVarPath = `/docker-registry/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -89,10 +98,10 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
89
98
|
const localVarQueryParameter = {};
|
|
90
99
|
// authentication bearer required
|
|
91
100
|
// http bearer authentication required
|
|
92
|
-
|
|
101
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
93
102
|
// authentication oauth2 required
|
|
94
103
|
// oauth required
|
|
95
|
-
|
|
104
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
96
105
|
if (xDaytonaOrganizationID != null) {
|
|
97
106
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
98
107
|
}
|
|
@@ -103,7 +112,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
103
112
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
104
113
|
options: localVarRequestOptions,
|
|
105
114
|
};
|
|
106
|
-
},
|
|
115
|
+
}),
|
|
107
116
|
/**
|
|
108
117
|
*
|
|
109
118
|
* @summary Get registry
|
|
@@ -112,7 +121,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
112
121
|
* @param {*} [options] Override http request option.
|
|
113
122
|
* @throws {RequiredError}
|
|
114
123
|
*/
|
|
115
|
-
getRegistry:
|
|
124
|
+
getRegistry: (id_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [id_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (id, xDaytonaOrganizationID, options = {}) {
|
|
116
125
|
// verify required parameter 'id' is not null or undefined
|
|
117
126
|
(0, common_1.assertParamExists)('getRegistry', 'id', id);
|
|
118
127
|
const localVarPath = `/docker-registry/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -127,10 +136,10 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
127
136
|
const localVarQueryParameter = {};
|
|
128
137
|
// authentication bearer required
|
|
129
138
|
// http bearer authentication required
|
|
130
|
-
|
|
139
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
131
140
|
// authentication oauth2 required
|
|
132
141
|
// oauth required
|
|
133
|
-
|
|
142
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
134
143
|
if (xDaytonaOrganizationID != null) {
|
|
135
144
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
136
145
|
}
|
|
@@ -141,7 +150,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
141
150
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
151
|
options: localVarRequestOptions,
|
|
143
152
|
};
|
|
144
|
-
},
|
|
153
|
+
}),
|
|
145
154
|
/**
|
|
146
155
|
*
|
|
147
156
|
* @summary Get temporary registry access for pushing images
|
|
@@ -149,7 +158,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
149
158
|
* @param {*} [options] Override http request option.
|
|
150
159
|
* @throws {RequiredError}
|
|
151
160
|
*/
|
|
152
|
-
getTransientPushAccess:
|
|
161
|
+
getTransientPushAccess: (xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [xDaytonaOrganizationID_1, ...args_1], void 0, function* (xDaytonaOrganizationID, options = {}) {
|
|
153
162
|
const localVarPath = `/docker-registry/registry-push-access`;
|
|
154
163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
164
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -162,10 +171,10 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
162
171
|
const localVarQueryParameter = {};
|
|
163
172
|
// authentication bearer required
|
|
164
173
|
// http bearer authentication required
|
|
165
|
-
|
|
174
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
166
175
|
// authentication oauth2 required
|
|
167
176
|
// oauth required
|
|
168
|
-
|
|
177
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
169
178
|
if (xDaytonaOrganizationID != null) {
|
|
170
179
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
171
180
|
}
|
|
@@ -176,7 +185,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
176
185
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
177
186
|
options: localVarRequestOptions,
|
|
178
187
|
};
|
|
179
|
-
},
|
|
188
|
+
}),
|
|
180
189
|
/**
|
|
181
190
|
*
|
|
182
191
|
* @summary List registries
|
|
@@ -184,7 +193,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
184
193
|
* @param {*} [options] Override http request option.
|
|
185
194
|
* @throws {RequiredError}
|
|
186
195
|
*/
|
|
187
|
-
listRegistries:
|
|
196
|
+
listRegistries: (xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [xDaytonaOrganizationID_1, ...args_1], void 0, function* (xDaytonaOrganizationID, options = {}) {
|
|
188
197
|
const localVarPath = `/docker-registry`;
|
|
189
198
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
190
199
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -197,10 +206,10 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
197
206
|
const localVarQueryParameter = {};
|
|
198
207
|
// authentication bearer required
|
|
199
208
|
// http bearer authentication required
|
|
200
|
-
|
|
209
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
201
210
|
// authentication oauth2 required
|
|
202
211
|
// oauth required
|
|
203
|
-
|
|
212
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
204
213
|
if (xDaytonaOrganizationID != null) {
|
|
205
214
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
206
215
|
}
|
|
@@ -211,7 +220,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
211
220
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
212
221
|
options: localVarRequestOptions,
|
|
213
222
|
};
|
|
214
|
-
},
|
|
223
|
+
}),
|
|
215
224
|
/**
|
|
216
225
|
*
|
|
217
226
|
* @summary Set default registry
|
|
@@ -220,7 +229,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
220
229
|
* @param {*} [options] Override http request option.
|
|
221
230
|
* @throws {RequiredError}
|
|
222
231
|
*/
|
|
223
|
-
setDefaultRegistry:
|
|
232
|
+
setDefaultRegistry: (id_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [id_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (id, xDaytonaOrganizationID, options = {}) {
|
|
224
233
|
// verify required parameter 'id' is not null or undefined
|
|
225
234
|
(0, common_1.assertParamExists)('setDefaultRegistry', 'id', id);
|
|
226
235
|
const localVarPath = `/docker-registry/{id}/set-default`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -235,10 +244,10 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
235
244
|
const localVarQueryParameter = {};
|
|
236
245
|
// authentication bearer required
|
|
237
246
|
// http bearer authentication required
|
|
238
|
-
|
|
247
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
239
248
|
// authentication oauth2 required
|
|
240
249
|
// oauth required
|
|
241
|
-
|
|
250
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
242
251
|
if (xDaytonaOrganizationID != null) {
|
|
243
252
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
244
253
|
}
|
|
@@ -249,7 +258,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
249
258
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
250
259
|
options: localVarRequestOptions,
|
|
251
260
|
};
|
|
252
|
-
},
|
|
261
|
+
}),
|
|
253
262
|
/**
|
|
254
263
|
*
|
|
255
264
|
* @summary Update registry
|
|
@@ -259,7 +268,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
259
268
|
* @param {*} [options] Override http request option.
|
|
260
269
|
* @throws {RequiredError}
|
|
261
270
|
*/
|
|
262
|
-
updateRegistry:
|
|
271
|
+
updateRegistry: (id_1, updateDockerRegistry_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [id_1, updateDockerRegistry_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (id, updateDockerRegistry, xDaytonaOrganizationID, options = {}) {
|
|
263
272
|
// verify required parameter 'id' is not null or undefined
|
|
264
273
|
(0, common_1.assertParamExists)('updateRegistry', 'id', id);
|
|
265
274
|
// verify required parameter 'updateDockerRegistry' is not null or undefined
|
|
@@ -276,10 +285,10 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
276
285
|
const localVarQueryParameter = {};
|
|
277
286
|
// authentication bearer required
|
|
278
287
|
// http bearer authentication required
|
|
279
|
-
|
|
288
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
280
289
|
// authentication oauth2 required
|
|
281
290
|
// oauth required
|
|
282
|
-
|
|
291
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
283
292
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
284
293
|
if (xDaytonaOrganizationID != null) {
|
|
285
294
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
@@ -292,7 +301,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
292
301
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
293
302
|
options: localVarRequestOptions,
|
|
294
303
|
};
|
|
295
|
-
},
|
|
304
|
+
}),
|
|
296
305
|
};
|
|
297
306
|
};
|
|
298
307
|
exports.DockerRegistryApiAxiosParamCreator = DockerRegistryApiAxiosParamCreator;
|
|
@@ -311,12 +320,14 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
311
320
|
* @param {*} [options] Override http request option.
|
|
312
321
|
* @throws {RequiredError}
|
|
313
322
|
*/
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
323
|
+
createRegistry(createDockerRegistry, xDaytonaOrganizationID, options) {
|
|
324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
+
var _a, _b, _c;
|
|
326
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createRegistry(createDockerRegistry, xDaytonaOrganizationID, options);
|
|
327
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
328
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.createRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
329
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
330
|
+
});
|
|
320
331
|
},
|
|
321
332
|
/**
|
|
322
333
|
*
|
|
@@ -326,12 +337,14 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
326
337
|
* @param {*} [options] Override http request option.
|
|
327
338
|
* @throws {RequiredError}
|
|
328
339
|
*/
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
340
|
+
deleteRegistry(id, xDaytonaOrganizationID, options) {
|
|
341
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
342
|
+
var _a, _b, _c;
|
|
343
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteRegistry(id, xDaytonaOrganizationID, options);
|
|
344
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
345
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.deleteRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
346
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
347
|
+
});
|
|
335
348
|
},
|
|
336
349
|
/**
|
|
337
350
|
*
|
|
@@ -341,12 +354,14 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
341
354
|
* @param {*} [options] Override http request option.
|
|
342
355
|
* @throws {RequiredError}
|
|
343
356
|
*/
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
357
|
+
getRegistry(id, xDaytonaOrganizationID, options) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
+
var _a, _b, _c;
|
|
360
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRegistry(id, xDaytonaOrganizationID, options);
|
|
361
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
362
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.getRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
363
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
364
|
+
});
|
|
350
365
|
},
|
|
351
366
|
/**
|
|
352
367
|
*
|
|
@@ -355,12 +370,14 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
355
370
|
* @param {*} [options] Override http request option.
|
|
356
371
|
* @throws {RequiredError}
|
|
357
372
|
*/
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
373
|
+
getTransientPushAccess(xDaytonaOrganizationID, options) {
|
|
374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
375
|
+
var _a, _b, _c;
|
|
376
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTransientPushAccess(xDaytonaOrganizationID, options);
|
|
377
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
378
|
+
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;
|
|
379
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
380
|
+
});
|
|
364
381
|
},
|
|
365
382
|
/**
|
|
366
383
|
*
|
|
@@ -369,12 +386,14 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
369
386
|
* @param {*} [options] Override http request option.
|
|
370
387
|
* @throws {RequiredError}
|
|
371
388
|
*/
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
389
|
+
listRegistries(xDaytonaOrganizationID, options) {
|
|
390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
391
|
+
var _a, _b, _c;
|
|
392
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listRegistries(xDaytonaOrganizationID, options);
|
|
393
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
394
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.listRegistries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
395
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
396
|
+
});
|
|
378
397
|
},
|
|
379
398
|
/**
|
|
380
399
|
*
|
|
@@ -384,12 +403,14 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
384
403
|
* @param {*} [options] Override http request option.
|
|
385
404
|
* @throws {RequiredError}
|
|
386
405
|
*/
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
406
|
+
setDefaultRegistry(id, xDaytonaOrganizationID, options) {
|
|
407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
+
var _a, _b, _c;
|
|
409
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setDefaultRegistry(id, xDaytonaOrganizationID, options);
|
|
410
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
411
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.setDefaultRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
412
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
413
|
+
});
|
|
393
414
|
},
|
|
394
415
|
/**
|
|
395
416
|
*
|
|
@@ -400,12 +421,14 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
400
421
|
* @param {*} [options] Override http request option.
|
|
401
422
|
* @throws {RequiredError}
|
|
402
423
|
*/
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
424
|
+
updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options) {
|
|
425
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
426
|
+
var _a, _b, _c;
|
|
427
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options);
|
|
428
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
429
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.updateRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
430
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
431
|
+
});
|
|
409
432
|
},
|
|
410
433
|
};
|
|
411
434
|
};
|