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