@emilgroup/tenant-sdk-node 1.39.1-beta.26 → 1.39.1-beta.28

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.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +2 -2
  3. package/api/ssoconnection-api.ts +90 -0
  4. package/api/test-tenant-pool-api.ts +957 -0
  5. package/api.ts +2 -0
  6. package/dist/api/ssoconnection-api.d.ts +47 -0
  7. package/dist/api/ssoconnection-api.js +87 -0
  8. package/dist/api/test-tenant-pool-api.d.ts +506 -0
  9. package/dist/api/test-tenant-pool-api.js +932 -0
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/checkout-request-dto.d.ts +36 -0
  13. package/dist/models/checkout-request-dto.js +15 -0
  14. package/dist/models/checkout-response-class.d.ts +36 -0
  15. package/dist/models/checkout-response-class.js +15 -0
  16. package/dist/models/cleanup-registry-entity-dto.d.ts +36 -0
  17. package/dist/models/cleanup-registry-entity-dto.js +15 -0
  18. package/dist/models/cleanup-registry-request-dto.d.ts +25 -0
  19. package/dist/models/cleanup-registry-request-dto.js +15 -0
  20. package/dist/models/cleanup-registry-response-class.d.ts +31 -0
  21. package/dist/models/cleanup-registry-response-class.js +15 -0
  22. package/dist/models/get-sso-connection-setup-response-class.d.ts +25 -0
  23. package/dist/models/get-sso-connection-setup-response-class.js +15 -0
  24. package/dist/models/index.d.ts +13 -0
  25. package/dist/models/index.js +13 -0
  26. package/dist/models/oidc-sso-setup-class.d.ts +31 -0
  27. package/dist/models/oidc-sso-setup-class.js +15 -0
  28. package/dist/models/pool-tenant-response-class.d.ts +54 -0
  29. package/dist/models/pool-tenant-response-class.js +15 -0
  30. package/dist/models/register-pool-tenant-request-dto.d.ts +30 -0
  31. package/dist/models/register-pool-tenant-request-dto.js +15 -0
  32. package/dist/models/saml-sso-setup-class.d.ts +37 -0
  33. package/dist/models/saml-sso-setup-class.js +15 -0
  34. package/dist/models/sso-attribute-mapping-template-class.d.ts +36 -0
  35. package/dist/models/sso-attribute-mapping-template-class.js +15 -0
  36. package/dist/models/sso-connection-setup-class.d.ts +32 -0
  37. package/dist/models/sso-connection-setup-class.js +15 -0
  38. package/dist/models/update-tags-body-dto.d.ts +24 -0
  39. package/dist/models/update-tags-body-dto.js +15 -0
  40. package/models/checkout-request-dto.ts +42 -0
  41. package/models/checkout-response-class.ts +42 -0
  42. package/models/cleanup-registry-entity-dto.ts +42 -0
  43. package/models/cleanup-registry-request-dto.ts +31 -0
  44. package/models/cleanup-registry-response-class.ts +37 -0
  45. package/models/get-sso-connection-setup-response-class.ts +31 -0
  46. package/models/index.ts +13 -0
  47. package/models/oidc-sso-setup-class.ts +37 -0
  48. package/models/pool-tenant-response-class.ts +60 -0
  49. package/models/register-pool-tenant-request-dto.ts +36 -0
  50. package/models/saml-sso-setup-class.ts +43 -0
  51. package/models/sso-attribute-mapping-template-class.ts +42 -0
  52. package/models/sso-connection-setup-class.ts +38 -0
  53. package/models/update-tags-body-dto.ts +30 -0
  54. package/package.json +1 -1
@@ -0,0 +1,932 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Tenant Service
6
+ * The EMIL TenantService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.TestTenantPoolApi = exports.TestTenantPoolApiFactory = exports.TestTenantPoolApiFp = exports.TestTenantPoolApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * TestTenantPoolApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
101
+ * @param {CheckoutRequestDto} checkoutRequestDto
102
+ * @param {string} [authorization] Bearer Token
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ checkout: function (checkoutRequestDto, authorization, options) {
107
+ if (options === void 0) { options = {}; }
108
+ return __awaiter(_this, void 0, void 0, function () {
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0:
113
+ // verify required parameter 'checkoutRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('checkout', 'checkoutRequestDto', checkoutRequestDto);
115
+ localVarPath = "/tenantservice/v1/test-tenant-pool/checkout";
116
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ baseAccessToken = configuration.accessToken;
120
+ }
121
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
122
+ localVarHeaderParameter = {};
123
+ localVarQueryParameter = {};
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ case 1:
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ _a.sent();
131
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
+ }
134
+ localVarHeaderParameter['Content-Type'] = 'application/json';
135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkoutRequestDto, localVarRequestOptions, configuration);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ }
144
+ });
145
+ });
146
+ },
147
+ /**
148
+ * undefined **Required Permissions** \"tenant-management.tenants.delete\"
149
+ * @param {number} id
150
+ * @param {string} [authorization] Bearer Token
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ deregister: function (id, authorization, options) {
155
+ if (options === void 0) { options = {}; }
156
+ return __awaiter(_this, void 0, void 0, function () {
157
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ return __generator(this, function (_a) {
159
+ switch (_a.label) {
160
+ case 0:
161
+ // verify required parameter 'id' is not null or undefined
162
+ (0, common_1.assertParamExists)('deregister', 'id', id);
163
+ localVarPath = "/tenantservice/v1/test-tenant-pool/{id}"
164
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
165
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
166
+ if (configuration) {
167
+ baseOptions = configuration.baseOptions;
168
+ baseAccessToken = configuration.accessToken;
169
+ }
170
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
171
+ localVarHeaderParameter = {};
172
+ localVarQueryParameter = {};
173
+ // authentication bearer required
174
+ // http bearer authentication required
175
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ case 1:
177
+ // authentication bearer required
178
+ // http bearer authentication required
179
+ _a.sent();
180
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
+ }
183
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
186
+ return [2 /*return*/, {
187
+ url: (0, common_1.toPathString)(localVarUrlObj),
188
+ options: localVarRequestOptions,
189
+ }];
190
+ }
191
+ });
192
+ });
193
+ },
194
+ /**
195
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
196
+ * @param {string} [authorization] Bearer Token
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ getCleanupRegistry: function (authorization, options) {
201
+ if (options === void 0) { options = {}; }
202
+ return __awaiter(_this, void 0, void 0, function () {
203
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
+ return __generator(this, function (_a) {
205
+ switch (_a.label) {
206
+ case 0:
207
+ localVarPath = "/tenantservice/v1/test-tenant-pool/cleanup-registry";
208
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ baseAccessToken = configuration.accessToken;
212
+ }
213
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
214
+ localVarHeaderParameter = {};
215
+ localVarQueryParameter = {};
216
+ // authentication bearer required
217
+ // http bearer authentication required
218
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
219
+ case 1:
220
+ // authentication bearer required
221
+ // http bearer authentication required
222
+ _a.sent();
223
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
225
+ }
226
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
227
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
228
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
229
+ return [2 /*return*/, {
230
+ url: (0, common_1.toPathString)(localVarUrlObj),
231
+ options: localVarRequestOptions,
232
+ }];
233
+ }
234
+ });
235
+ });
236
+ },
237
+ /**
238
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
239
+ * @param {string} leaseId
240
+ * @param {string} [authorization] Bearer Token
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ heartbeat: function (leaseId, authorization, options) {
245
+ if (options === void 0) { options = {}; }
246
+ return __awaiter(_this, void 0, void 0, function () {
247
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
248
+ return __generator(this, function (_a) {
249
+ switch (_a.label) {
250
+ case 0:
251
+ // verify required parameter 'leaseId' is not null or undefined
252
+ (0, common_1.assertParamExists)('heartbeat', 'leaseId', leaseId);
253
+ localVarPath = "/tenantservice/v1/test-tenant-pool/{leaseId}/heartbeat"
254
+ .replace("{".concat("leaseId", "}"), encodeURIComponent(String(leaseId)));
255
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
256
+ if (configuration) {
257
+ baseOptions = configuration.baseOptions;
258
+ baseAccessToken = configuration.accessToken;
259
+ }
260
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
261
+ localVarHeaderParameter = {};
262
+ localVarQueryParameter = {};
263
+ // authentication bearer required
264
+ // http bearer authentication required
265
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
266
+ case 1:
267
+ // authentication bearer required
268
+ // http bearer authentication required
269
+ _a.sent();
270
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
271
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
272
+ }
273
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
274
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
275
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
276
+ return [2 /*return*/, {
277
+ url: (0, common_1.toPathString)(localVarUrlObj),
278
+ options: localVarRequestOptions,
279
+ }];
280
+ }
281
+ });
282
+ });
283
+ },
284
+ /**
285
+ * undefined **Required Permissions** \"tenant-management.tenants.create\"
286
+ * @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
287
+ * @param {string} [authorization] Bearer Token
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ register: function (registerPoolTenantRequestDto, authorization, options) {
292
+ if (options === void 0) { options = {}; }
293
+ return __awaiter(_this, void 0, void 0, function () {
294
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
295
+ return __generator(this, function (_a) {
296
+ switch (_a.label) {
297
+ case 0:
298
+ // verify required parameter 'registerPoolTenantRequestDto' is not null or undefined
299
+ (0, common_1.assertParamExists)('register', 'registerPoolTenantRequestDto', registerPoolTenantRequestDto);
300
+ localVarPath = "/tenantservice/v1/test-tenant-pool";
301
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
302
+ if (configuration) {
303
+ baseOptions = configuration.baseOptions;
304
+ baseAccessToken = configuration.accessToken;
305
+ }
306
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
307
+ localVarHeaderParameter = {};
308
+ localVarQueryParameter = {};
309
+ // authentication bearer required
310
+ // http bearer authentication required
311
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
312
+ case 1:
313
+ // authentication bearer required
314
+ // http bearer authentication required
315
+ _a.sent();
316
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
317
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
318
+ }
319
+ localVarHeaderParameter['Content-Type'] = 'application/json';
320
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
323
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerPoolTenantRequestDto, localVarRequestOptions, configuration);
324
+ return [2 /*return*/, {
325
+ url: (0, common_1.toPathString)(localVarUrlObj),
326
+ options: localVarRequestOptions,
327
+ }];
328
+ }
329
+ });
330
+ });
331
+ },
332
+ /**
333
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
334
+ * @param {string} leaseId
335
+ * @param {string} [authorization] Bearer Token
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ release: function (leaseId, authorization, options) {
340
+ if (options === void 0) { options = {}; }
341
+ return __awaiter(_this, void 0, void 0, function () {
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
343
+ return __generator(this, function (_a) {
344
+ switch (_a.label) {
345
+ case 0:
346
+ // verify required parameter 'leaseId' is not null or undefined
347
+ (0, common_1.assertParamExists)('release', 'leaseId', leaseId);
348
+ localVarPath = "/tenantservice/v1/test-tenant-pool/{leaseId}/release"
349
+ .replace("{".concat("leaseId", "}"), encodeURIComponent(String(leaseId)));
350
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
351
+ if (configuration) {
352
+ baseOptions = configuration.baseOptions;
353
+ baseAccessToken = configuration.accessToken;
354
+ }
355
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
356
+ localVarHeaderParameter = {};
357
+ localVarQueryParameter = {};
358
+ // authentication bearer required
359
+ // http bearer authentication required
360
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
361
+ case 1:
362
+ // authentication bearer required
363
+ // http bearer authentication required
364
+ _a.sent();
365
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
366
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
367
+ }
368
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
369
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
370
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
371
+ return [2 /*return*/, {
372
+ url: (0, common_1.toPathString)(localVarUrlObj),
373
+ options: localVarRequestOptions,
374
+ }];
375
+ }
376
+ });
377
+ });
378
+ },
379
+ /**
380
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
381
+ * @param {number} id
382
+ * @param {string} [authorization] Bearer Token
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ retriggerCleanup: function (id, authorization, options) {
387
+ if (options === void 0) { options = {}; }
388
+ return __awaiter(_this, void 0, void 0, function () {
389
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
390
+ return __generator(this, function (_a) {
391
+ switch (_a.label) {
392
+ case 0:
393
+ // verify required parameter 'id' is not null or undefined
394
+ (0, common_1.assertParamExists)('retriggerCleanup', 'id', id);
395
+ localVarPath = "/tenantservice/v1/test-tenant-pool/{id}/retrigger-cleanup"
396
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
397
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
398
+ if (configuration) {
399
+ baseOptions = configuration.baseOptions;
400
+ baseAccessToken = configuration.accessToken;
401
+ }
402
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
403
+ localVarHeaderParameter = {};
404
+ localVarQueryParameter = {};
405
+ // authentication bearer required
406
+ // http bearer authentication required
407
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
408
+ case 1:
409
+ // authentication bearer required
410
+ // http bearer authentication required
411
+ _a.sent();
412
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
413
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
414
+ }
415
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
416
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
417
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
418
+ return [2 /*return*/, {
419
+ url: (0, common_1.toPathString)(localVarUrlObj),
420
+ options: localVarRequestOptions,
421
+ }];
422
+ }
423
+ });
424
+ });
425
+ },
426
+ /**
427
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
428
+ * @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
429
+ * @param {string} [authorization] Bearer Token
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ updateCleanupRegistry: function (cleanupRegistryRequestDto, authorization, options) {
434
+ if (options === void 0) { options = {}; }
435
+ return __awaiter(_this, void 0, void 0, function () {
436
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
437
+ return __generator(this, function (_a) {
438
+ switch (_a.label) {
439
+ case 0:
440
+ // verify required parameter 'cleanupRegistryRequestDto' is not null or undefined
441
+ (0, common_1.assertParamExists)('updateCleanupRegistry', 'cleanupRegistryRequestDto', cleanupRegistryRequestDto);
442
+ localVarPath = "/tenantservice/v1/test-tenant-pool/cleanup-registry";
443
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
444
+ if (configuration) {
445
+ baseOptions = configuration.baseOptions;
446
+ baseAccessToken = configuration.accessToken;
447
+ }
448
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
449
+ localVarHeaderParameter = {};
450
+ localVarQueryParameter = {};
451
+ // authentication bearer required
452
+ // http bearer authentication required
453
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
454
+ case 1:
455
+ // authentication bearer required
456
+ // http bearer authentication required
457
+ _a.sent();
458
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
459
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
460
+ }
461
+ localVarHeaderParameter['Content-Type'] = 'application/json';
462
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
463
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
464
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
465
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cleanupRegistryRequestDto, localVarRequestOptions, configuration);
466
+ return [2 /*return*/, {
467
+ url: (0, common_1.toPathString)(localVarUrlObj),
468
+ options: localVarRequestOptions,
469
+ }];
470
+ }
471
+ });
472
+ });
473
+ },
474
+ /**
475
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
476
+ * @param {string} tenantSlug
477
+ * @param {UpdateTagsBodyDto} updateTagsBodyDto
478
+ * @param {string} [authorization] Bearer Token
479
+ * @param {*} [options] Override http request option.
480
+ * @throws {RequiredError}
481
+ */
482
+ updateTags: function (tenantSlug, updateTagsBodyDto, authorization, options) {
483
+ if (options === void 0) { options = {}; }
484
+ return __awaiter(_this, void 0, void 0, function () {
485
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
486
+ return __generator(this, function (_a) {
487
+ switch (_a.label) {
488
+ case 0:
489
+ // verify required parameter 'tenantSlug' is not null or undefined
490
+ (0, common_1.assertParamExists)('updateTags', 'tenantSlug', tenantSlug);
491
+ // verify required parameter 'updateTagsBodyDto' is not null or undefined
492
+ (0, common_1.assertParamExists)('updateTags', 'updateTagsBodyDto', updateTagsBodyDto);
493
+ localVarPath = "/tenantservice/v1/test-tenant-pool/{tenantSlug}/tags"
494
+ .replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)));
495
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
496
+ if (configuration) {
497
+ baseOptions = configuration.baseOptions;
498
+ baseAccessToken = configuration.accessToken;
499
+ }
500
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
501
+ localVarHeaderParameter = {};
502
+ localVarQueryParameter = {};
503
+ // authentication bearer required
504
+ // http bearer authentication required
505
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
506
+ case 1:
507
+ // authentication bearer required
508
+ // http bearer authentication required
509
+ _a.sent();
510
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
511
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
512
+ }
513
+ localVarHeaderParameter['Content-Type'] = 'application/json';
514
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
515
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
516
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
517
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTagsBodyDto, localVarRequestOptions, configuration);
518
+ return [2 /*return*/, {
519
+ url: (0, common_1.toPathString)(localVarUrlObj),
520
+ options: localVarRequestOptions,
521
+ }];
522
+ }
523
+ });
524
+ });
525
+ },
526
+ };
527
+ };
528
+ exports.TestTenantPoolApiAxiosParamCreator = TestTenantPoolApiAxiosParamCreator;
529
+ /**
530
+ * TestTenantPoolApi - functional programming interface
531
+ * @export
532
+ */
533
+ var TestTenantPoolApiFp = function (configuration) {
534
+ var localVarAxiosParamCreator = (0, exports.TestTenantPoolApiAxiosParamCreator)(configuration);
535
+ return {
536
+ /**
537
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
538
+ * @param {CheckoutRequestDto} checkoutRequestDto
539
+ * @param {string} [authorization] Bearer Token
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ checkout: function (checkoutRequestDto, authorization, options) {
544
+ return __awaiter(this, void 0, void 0, function () {
545
+ var localVarAxiosArgs;
546
+ return __generator(this, function (_a) {
547
+ switch (_a.label) {
548
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.checkout(checkoutRequestDto, authorization, options)];
549
+ case 1:
550
+ localVarAxiosArgs = _a.sent();
551
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
552
+ }
553
+ });
554
+ });
555
+ },
556
+ /**
557
+ * undefined **Required Permissions** \"tenant-management.tenants.delete\"
558
+ * @param {number} id
559
+ * @param {string} [authorization] Bearer Token
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ deregister: function (id, authorization, options) {
564
+ return __awaiter(this, void 0, void 0, function () {
565
+ var localVarAxiosArgs;
566
+ return __generator(this, function (_a) {
567
+ switch (_a.label) {
568
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deregister(id, authorization, options)];
569
+ case 1:
570
+ localVarAxiosArgs = _a.sent();
571
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
572
+ }
573
+ });
574
+ });
575
+ },
576
+ /**
577
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
578
+ * @param {string} [authorization] Bearer Token
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ getCleanupRegistry: function (authorization, options) {
583
+ return __awaiter(this, void 0, void 0, function () {
584
+ var localVarAxiosArgs;
585
+ return __generator(this, function (_a) {
586
+ switch (_a.label) {
587
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCleanupRegistry(authorization, options)];
588
+ case 1:
589
+ localVarAxiosArgs = _a.sent();
590
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
591
+ }
592
+ });
593
+ });
594
+ },
595
+ /**
596
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
597
+ * @param {string} leaseId
598
+ * @param {string} [authorization] Bearer Token
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ */
602
+ heartbeat: function (leaseId, authorization, options) {
603
+ return __awaiter(this, void 0, void 0, function () {
604
+ var localVarAxiosArgs;
605
+ return __generator(this, function (_a) {
606
+ switch (_a.label) {
607
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.heartbeat(leaseId, authorization, options)];
608
+ case 1:
609
+ localVarAxiosArgs = _a.sent();
610
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
611
+ }
612
+ });
613
+ });
614
+ },
615
+ /**
616
+ * undefined **Required Permissions** \"tenant-management.tenants.create\"
617
+ * @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
618
+ * @param {string} [authorization] Bearer Token
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ */
622
+ register: function (registerPoolTenantRequestDto, authorization, options) {
623
+ return __awaiter(this, void 0, void 0, function () {
624
+ var localVarAxiosArgs;
625
+ return __generator(this, function (_a) {
626
+ switch (_a.label) {
627
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.register(registerPoolTenantRequestDto, authorization, options)];
628
+ case 1:
629
+ localVarAxiosArgs = _a.sent();
630
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
631
+ }
632
+ });
633
+ });
634
+ },
635
+ /**
636
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
637
+ * @param {string} leaseId
638
+ * @param {string} [authorization] Bearer Token
639
+ * @param {*} [options] Override http request option.
640
+ * @throws {RequiredError}
641
+ */
642
+ release: function (leaseId, authorization, options) {
643
+ return __awaiter(this, void 0, void 0, function () {
644
+ var localVarAxiosArgs;
645
+ return __generator(this, function (_a) {
646
+ switch (_a.label) {
647
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.release(leaseId, authorization, options)];
648
+ case 1:
649
+ localVarAxiosArgs = _a.sent();
650
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
651
+ }
652
+ });
653
+ });
654
+ },
655
+ /**
656
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
657
+ * @param {number} id
658
+ * @param {string} [authorization] Bearer Token
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ retriggerCleanup: function (id, authorization, options) {
663
+ return __awaiter(this, void 0, void 0, function () {
664
+ var localVarAxiosArgs;
665
+ return __generator(this, function (_a) {
666
+ switch (_a.label) {
667
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.retriggerCleanup(id, authorization, options)];
668
+ case 1:
669
+ localVarAxiosArgs = _a.sent();
670
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
671
+ }
672
+ });
673
+ });
674
+ },
675
+ /**
676
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
677
+ * @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
678
+ * @param {string} [authorization] Bearer Token
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ updateCleanupRegistry: function (cleanupRegistryRequestDto, authorization, options) {
683
+ return __awaiter(this, void 0, void 0, function () {
684
+ var localVarAxiosArgs;
685
+ return __generator(this, function (_a) {
686
+ switch (_a.label) {
687
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCleanupRegistry(cleanupRegistryRequestDto, authorization, options)];
688
+ case 1:
689
+ localVarAxiosArgs = _a.sent();
690
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
691
+ }
692
+ });
693
+ });
694
+ },
695
+ /**
696
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
697
+ * @param {string} tenantSlug
698
+ * @param {UpdateTagsBodyDto} updateTagsBodyDto
699
+ * @param {string} [authorization] Bearer Token
700
+ * @param {*} [options] Override http request option.
701
+ * @throws {RequiredError}
702
+ */
703
+ updateTags: function (tenantSlug, updateTagsBodyDto, authorization, options) {
704
+ return __awaiter(this, void 0, void 0, function () {
705
+ var localVarAxiosArgs;
706
+ return __generator(this, function (_a) {
707
+ switch (_a.label) {
708
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateTags(tenantSlug, updateTagsBodyDto, authorization, options)];
709
+ case 1:
710
+ localVarAxiosArgs = _a.sent();
711
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
712
+ }
713
+ });
714
+ });
715
+ },
716
+ };
717
+ };
718
+ exports.TestTenantPoolApiFp = TestTenantPoolApiFp;
719
+ /**
720
+ * TestTenantPoolApi - factory interface
721
+ * @export
722
+ */
723
+ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
724
+ var localVarFp = (0, exports.TestTenantPoolApiFp)(configuration);
725
+ return {
726
+ /**
727
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
728
+ * @param {CheckoutRequestDto} checkoutRequestDto
729
+ * @param {string} [authorization] Bearer Token
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ */
733
+ checkout: function (checkoutRequestDto, authorization, options) {
734
+ return localVarFp.checkout(checkoutRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
735
+ },
736
+ /**
737
+ * undefined **Required Permissions** \"tenant-management.tenants.delete\"
738
+ * @param {number} id
739
+ * @param {string} [authorization] Bearer Token
740
+ * @param {*} [options] Override http request option.
741
+ * @throws {RequiredError}
742
+ */
743
+ deregister: function (id, authorization, options) {
744
+ return localVarFp.deregister(id, authorization, options).then(function (request) { return request(axios, basePath); });
745
+ },
746
+ /**
747
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
748
+ * @param {string} [authorization] Bearer Token
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ getCleanupRegistry: function (authorization, options) {
753
+ return localVarFp.getCleanupRegistry(authorization, options).then(function (request) { return request(axios, basePath); });
754
+ },
755
+ /**
756
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
757
+ * @param {string} leaseId
758
+ * @param {string} [authorization] Bearer Token
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ */
762
+ heartbeat: function (leaseId, authorization, options) {
763
+ return localVarFp.heartbeat(leaseId, authorization, options).then(function (request) { return request(axios, basePath); });
764
+ },
765
+ /**
766
+ * undefined **Required Permissions** \"tenant-management.tenants.create\"
767
+ * @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
768
+ * @param {string} [authorization] Bearer Token
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ */
772
+ register: function (registerPoolTenantRequestDto, authorization, options) {
773
+ return localVarFp.register(registerPoolTenantRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
774
+ },
775
+ /**
776
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
777
+ * @param {string} leaseId
778
+ * @param {string} [authorization] Bearer Token
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ release: function (leaseId, authorization, options) {
783
+ return localVarFp.release(leaseId, authorization, options).then(function (request) { return request(axios, basePath); });
784
+ },
785
+ /**
786
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
787
+ * @param {number} id
788
+ * @param {string} [authorization] Bearer Token
789
+ * @param {*} [options] Override http request option.
790
+ * @throws {RequiredError}
791
+ */
792
+ retriggerCleanup: function (id, authorization, options) {
793
+ return localVarFp.retriggerCleanup(id, authorization, options).then(function (request) { return request(axios, basePath); });
794
+ },
795
+ /**
796
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
797
+ * @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
798
+ * @param {string} [authorization] Bearer Token
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ updateCleanupRegistry: function (cleanupRegistryRequestDto, authorization, options) {
803
+ return localVarFp.updateCleanupRegistry(cleanupRegistryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
804
+ },
805
+ /**
806
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
807
+ * @param {string} tenantSlug
808
+ * @param {UpdateTagsBodyDto} updateTagsBodyDto
809
+ * @param {string} [authorization] Bearer Token
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ updateTags: function (tenantSlug, updateTagsBodyDto, authorization, options) {
814
+ return localVarFp.updateTags(tenantSlug, updateTagsBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
815
+ },
816
+ };
817
+ };
818
+ exports.TestTenantPoolApiFactory = TestTenantPoolApiFactory;
819
+ /**
820
+ * TestTenantPoolApi - object-oriented interface
821
+ * @export
822
+ * @class TestTenantPoolApi
823
+ * @extends {BaseAPI}
824
+ */
825
+ var TestTenantPoolApi = /** @class */ (function (_super) {
826
+ __extends(TestTenantPoolApi, _super);
827
+ function TestTenantPoolApi() {
828
+ return _super !== null && _super.apply(this, arguments) || this;
829
+ }
830
+ /**
831
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
832
+ * @param {TestTenantPoolApiCheckoutRequest} requestParameters Request parameters.
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ * @memberof TestTenantPoolApi
836
+ */
837
+ TestTenantPoolApi.prototype.checkout = function (requestParameters, options) {
838
+ var _this = this;
839
+ return (0, exports.TestTenantPoolApiFp)(this.configuration).checkout(requestParameters.checkoutRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
840
+ };
841
+ /**
842
+ * undefined **Required Permissions** \"tenant-management.tenants.delete\"
843
+ * @param {TestTenantPoolApiDeregisterRequest} requestParameters Request parameters.
844
+ * @param {*} [options] Override http request option.
845
+ * @throws {RequiredError}
846
+ * @memberof TestTenantPoolApi
847
+ */
848
+ TestTenantPoolApi.prototype.deregister = function (requestParameters, options) {
849
+ var _this = this;
850
+ return (0, exports.TestTenantPoolApiFp)(this.configuration).deregister(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
851
+ };
852
+ /**
853
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
854
+ * @param {TestTenantPoolApiGetCleanupRegistryRequest} requestParameters Request parameters.
855
+ * @param {*} [options] Override http request option.
856
+ * @throws {RequiredError}
857
+ * @memberof TestTenantPoolApi
858
+ */
859
+ TestTenantPoolApi.prototype.getCleanupRegistry = function (requestParameters, options) {
860
+ var _this = this;
861
+ if (requestParameters === void 0) { requestParameters = {}; }
862
+ return (0, exports.TestTenantPoolApiFp)(this.configuration).getCleanupRegistry(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
863
+ };
864
+ /**
865
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
866
+ * @param {TestTenantPoolApiHeartbeatRequest} requestParameters Request parameters.
867
+ * @param {*} [options] Override http request option.
868
+ * @throws {RequiredError}
869
+ * @memberof TestTenantPoolApi
870
+ */
871
+ TestTenantPoolApi.prototype.heartbeat = function (requestParameters, options) {
872
+ var _this = this;
873
+ return (0, exports.TestTenantPoolApiFp)(this.configuration).heartbeat(requestParameters.leaseId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
874
+ };
875
+ /**
876
+ * undefined **Required Permissions** \"tenant-management.tenants.create\"
877
+ * @param {TestTenantPoolApiRegisterRequest} requestParameters Request parameters.
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ * @memberof TestTenantPoolApi
881
+ */
882
+ TestTenantPoolApi.prototype.register = function (requestParameters, options) {
883
+ var _this = this;
884
+ return (0, exports.TestTenantPoolApiFp)(this.configuration).register(requestParameters.registerPoolTenantRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
885
+ };
886
+ /**
887
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
888
+ * @param {TestTenantPoolApiReleaseRequest} requestParameters Request parameters.
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ * @memberof TestTenantPoolApi
892
+ */
893
+ TestTenantPoolApi.prototype.release = function (requestParameters, options) {
894
+ var _this = this;
895
+ return (0, exports.TestTenantPoolApiFp)(this.configuration).release(requestParameters.leaseId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
896
+ };
897
+ /**
898
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
899
+ * @param {TestTenantPoolApiRetriggerCleanupRequest} requestParameters Request parameters.
900
+ * @param {*} [options] Override http request option.
901
+ * @throws {RequiredError}
902
+ * @memberof TestTenantPoolApi
903
+ */
904
+ TestTenantPoolApi.prototype.retriggerCleanup = function (requestParameters, options) {
905
+ var _this = this;
906
+ return (0, exports.TestTenantPoolApiFp)(this.configuration).retriggerCleanup(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
907
+ };
908
+ /**
909
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
910
+ * @param {TestTenantPoolApiUpdateCleanupRegistryRequest} requestParameters Request parameters.
911
+ * @param {*} [options] Override http request option.
912
+ * @throws {RequiredError}
913
+ * @memberof TestTenantPoolApi
914
+ */
915
+ TestTenantPoolApi.prototype.updateCleanupRegistry = function (requestParameters, options) {
916
+ var _this = this;
917
+ return (0, exports.TestTenantPoolApiFp)(this.configuration).updateCleanupRegistry(requestParameters.cleanupRegistryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
918
+ };
919
+ /**
920
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
921
+ * @param {TestTenantPoolApiUpdateTagsRequest} requestParameters Request parameters.
922
+ * @param {*} [options] Override http request option.
923
+ * @throws {RequiredError}
924
+ * @memberof TestTenantPoolApi
925
+ */
926
+ TestTenantPoolApi.prototype.updateTags = function (requestParameters, options) {
927
+ var _this = this;
928
+ return (0, exports.TestTenantPoolApiFp)(this.configuration).updateTags(requestParameters.tenantSlug, requestParameters.updateTagsBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
929
+ };
930
+ return TestTenantPoolApi;
931
+ }(base_1.BaseAPI));
932
+ exports.TestTenantPoolApi = TestTenantPoolApi;