@emilgroup/tenant-sdk-node 1.39.1-beta.29 → 1.39.1-beta.30

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.
@@ -118,6 +118,7 @@ models/list-invites-response-class.ts
118
118
  models/list-org-invitations-response-class.ts
119
119
  models/list-organization-migrations-response-class.ts
120
120
  models/list-organizations-response-class.ts
121
+ models/list-pool-tenants-response-class.ts
121
122
  models/list-report-schedule-logs-response-class.ts
122
123
  models/list-report-schedules-response-class.ts
123
124
  models/list-roles-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/tenant-sdk-node@1.39.1-beta.29 --save
20
+ npm install @emilgroup/tenant-sdk-node@1.39.1-beta.30 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk-node@1.39.1-beta.29
24
+ yarn add @emilgroup/tenant-sdk-node@1.39.1-beta.30
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -29,6 +29,8 @@ import { CleanupRegistryRequestDto } from '../models';
29
29
  // @ts-ignore
30
30
  import { CleanupRegistryResponseClass } from '../models';
31
31
  // @ts-ignore
32
+ import { ListPoolTenantsResponseClass } from '../models';
33
+ // @ts-ignore
32
34
  import { PoolTenantResponseClass } from '../models';
33
35
  // @ts-ignore
34
36
  import { RegisterPoolTenantRequestDto } from '../models';
@@ -94,16 +96,16 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
94
96
  /**
95
97
  * Removes the pool registration only -- never the underlying tenant. Refused unless the pool tenant is available, so an active lease or in-flight cleanup can never be deregistered out from under itself. **Required Permissions** \"tenant-management.tenants.delete\"
96
98
  * @summary Deregister a pool tenant
97
- * @param {number} id The pool registration id (not the tenant id).
99
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
98
100
  * @param {string} [authorization] Bearer Token
99
101
  * @param {*} [options] Override http request option.
100
102
  * @throws {RequiredError}
101
103
  */
102
- deregister: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
- // verify required parameter 'id' is not null or undefined
104
- assertParamExists('deregister', 'id', id)
105
- const localVarPath = `/tenantservice/v1/test-tenant-pool/{id}`
106
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
104
+ deregister: async (tenantSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
105
+ // verify required parameter 'tenantSlug' is not null or undefined
106
+ assertParamExists('deregister', 'tenantSlug', tenantSlug)
107
+ const localVarPath = `/tenantservice/v1/test-tenant-pool/{tenantSlug}`
108
+ .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
107
109
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
108
110
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
109
111
  let baseOptions;
@@ -213,6 +215,92 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
213
215
 
214
216
 
215
217
 
218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
221
+
222
+ return {
223
+ url: toPathString(localVarUrlObj),
224
+ options: localVarRequestOptions,
225
+ };
226
+ },
227
+ /**
228
+ * Same as heartbeat by lease id, for callers that only track which tenant they leased rather than the lease id checkout returned. **Required Permissions** \"tenant-management.tenants.update\"
229
+ * @summary Extend a checked-out lease, by tenant slug
230
+ * @param {string} tenantSlug The slug of the leased tenant.
231
+ * @param {string} [authorization] Bearer Token
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ heartbeatByTenantSlug: async (tenantSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
236
+ // verify required parameter 'tenantSlug' is not null or undefined
237
+ assertParamExists('heartbeatByTenantSlug', 'tenantSlug', tenantSlug)
238
+ const localVarPath = `/tenantservice/v1/test-tenant-pool/by-tenant/{tenantSlug}/heartbeat`
239
+ .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
240
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
241
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
242
+ let baseOptions;
243
+ let baseAccessToken;
244
+ if (configuration) {
245
+ baseOptions = configuration.baseOptions;
246
+ baseAccessToken = configuration.accessToken;
247
+ }
248
+
249
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
250
+ const localVarHeaderParameter = {} as any;
251
+ const localVarQueryParameter = {} as any;
252
+
253
+ // authentication bearer required
254
+ // http bearer authentication required
255
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
256
+
257
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
258
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
259
+ }
260
+
261
+
262
+
263
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
264
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
265
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
266
+
267
+ return {
268
+ url: toPathString(localVarUrlObj),
269
+ options: localVarRequestOptions,
270
+ };
271
+ },
272
+ /**
273
+ * Returns every registered pool tenant, including its tags and status, regardless of availability. **Required Permissions** \"tenant-management.tenants.view\"
274
+ * @summary List every tenant in the test pool
275
+ * @param {string} [authorization] Bearer Token
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ listPoolTenants: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
280
+ const localVarPath = `/tenantservice/v1/test-tenant-pool`;
281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
283
+ let baseOptions;
284
+ let baseAccessToken;
285
+ if (configuration) {
286
+ baseOptions = configuration.baseOptions;
287
+ baseAccessToken = configuration.accessToken;
288
+ }
289
+
290
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
291
+ const localVarHeaderParameter = {} as any;
292
+ const localVarQueryParameter = {} as any;
293
+
294
+ // authentication bearer required
295
+ // http bearer authentication required
296
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
297
+
298
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ }
301
+
302
+
303
+
216
304
  setSearchParams(localVarUrlObj, localVarQueryParameter);
217
305
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
218
306
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -305,6 +393,51 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
305
393
 
306
394
 
307
395
 
396
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
397
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
398
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
399
+
400
+ return {
401
+ url: toPathString(localVarUrlObj),
402
+ options: localVarRequestOptions,
403
+ };
404
+ },
405
+ /**
406
+ * Same as release by lease id, for callers that only track which tenant they leased rather than the lease id checkout returned. **Required Permissions** \"tenant-management.tenants.update\"
407
+ * @summary Release a checked-out lease, by tenant slug
408
+ * @param {string} tenantSlug The slug of the leased tenant.
409
+ * @param {string} [authorization] Bearer Token
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ releaseByTenantSlug: async (tenantSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
414
+ // verify required parameter 'tenantSlug' is not null or undefined
415
+ assertParamExists('releaseByTenantSlug', 'tenantSlug', tenantSlug)
416
+ const localVarPath = `/tenantservice/v1/test-tenant-pool/by-tenant/{tenantSlug}/release`
417
+ .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
419
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
420
+ let baseOptions;
421
+ let baseAccessToken;
422
+ if (configuration) {
423
+ baseOptions = configuration.baseOptions;
424
+ baseAccessToken = configuration.accessToken;
425
+ }
426
+
427
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
428
+ const localVarHeaderParameter = {} as any;
429
+ const localVarQueryParameter = {} as any;
430
+
431
+ // authentication bearer required
432
+ // http bearer authentication required
433
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
434
+
435
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
436
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
437
+ }
438
+
439
+
440
+
308
441
  setSearchParams(localVarUrlObj, localVarQueryParameter);
309
442
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
310
443
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -317,16 +450,16 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
317
450
  /**
318
451
  * Re-attempts cleanup for a pool tenant stuck in reset_failed, moving it back to leased and resubmitting the cleanup job. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
319
452
  * @summary Retry a failed cleanup
320
- * @param {number} id The pool registration id (not the tenant id).
453
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
321
454
  * @param {string} [authorization] Bearer Token
322
455
  * @param {*} [options] Override http request option.
323
456
  * @throws {RequiredError}
324
457
  */
325
- retriggerCleanup: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
326
- // verify required parameter 'id' is not null or undefined
327
- assertParamExists('retriggerCleanup', 'id', id)
328
- const localVarPath = `/tenantservice/v1/test-tenant-pool/{id}/retrigger-cleanup`
329
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
458
+ retriggerCleanup: async (tenantSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
459
+ // verify required parameter 'tenantSlug' is not null or undefined
460
+ assertParamExists('retriggerCleanup', 'tenantSlug', tenantSlug)
461
+ const localVarPath = `/tenantservice/v1/test-tenant-pool/{tenantSlug}/retrigger-cleanup`
462
+ .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
330
463
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
331
464
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
332
465
  let baseOptions;
@@ -482,13 +615,13 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
482
615
  /**
483
616
  * Removes the pool registration only -- never the underlying tenant. Refused unless the pool tenant is available, so an active lease or in-flight cleanup can never be deregistered out from under itself. **Required Permissions** \"tenant-management.tenants.delete\"
484
617
  * @summary Deregister a pool tenant
485
- * @param {number} id The pool registration id (not the tenant id).
618
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
486
619
  * @param {string} [authorization] Bearer Token
487
620
  * @param {*} [options] Override http request option.
488
621
  * @throws {RequiredError}
489
622
  */
490
- async deregister(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
491
- const localVarAxiosArgs = await localVarAxiosParamCreator.deregister(id, authorization, options);
623
+ async deregister(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
624
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deregister(tenantSlug, authorization, options);
492
625
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
493
626
  },
494
627
  /**
@@ -514,6 +647,29 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
514
647
  const localVarAxiosArgs = await localVarAxiosParamCreator.heartbeat(leaseId, authorization, options);
515
648
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
516
649
  },
650
+ /**
651
+ * Same as heartbeat by lease id, for callers that only track which tenant they leased rather than the lease id checkout returned. **Required Permissions** \"tenant-management.tenants.update\"
652
+ * @summary Extend a checked-out lease, by tenant slug
653
+ * @param {string} tenantSlug The slug of the leased tenant.
654
+ * @param {string} [authorization] Bearer Token
655
+ * @param {*} [options] Override http request option.
656
+ * @throws {RequiredError}
657
+ */
658
+ async heartbeatByTenantSlug(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckoutResponseClass>> {
659
+ const localVarAxiosArgs = await localVarAxiosParamCreator.heartbeatByTenantSlug(tenantSlug, authorization, options);
660
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
661
+ },
662
+ /**
663
+ * Returns every registered pool tenant, including its tags and status, regardless of availability. **Required Permissions** \"tenant-management.tenants.view\"
664
+ * @summary List every tenant in the test pool
665
+ * @param {string} [authorization] Bearer Token
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ async listPoolTenants(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoolTenantsResponseClass>> {
670
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPoolTenants(authorization, options);
671
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
672
+ },
517
673
  /**
518
674
  * Adds an existing tenant to the pool with the given tags, making it eligible for checkout by tests requesting matching tags. Does not create or modify the tenant itself. **Required Permissions** \"tenant-management.tenants.create\"
519
675
  * @summary Register a tenant into the test pool
@@ -538,16 +694,28 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
538
694
  const localVarAxiosArgs = await localVarAxiosParamCreator.release(leaseId, authorization, options);
539
695
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
540
696
  },
697
+ /**
698
+ * Same as release by lease id, for callers that only track which tenant they leased rather than the lease id checkout returned. **Required Permissions** \"tenant-management.tenants.update\"
699
+ * @summary Release a checked-out lease, by tenant slug
700
+ * @param {string} tenantSlug The slug of the leased tenant.
701
+ * @param {string} [authorization] Bearer Token
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ async releaseByTenantSlug(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
706
+ const localVarAxiosArgs = await localVarAxiosParamCreator.releaseByTenantSlug(tenantSlug, authorization, options);
707
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
708
+ },
541
709
  /**
542
710
  * Re-attempts cleanup for a pool tenant stuck in reset_failed, moving it back to leased and resubmitting the cleanup job. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
543
711
  * @summary Retry a failed cleanup
544
- * @param {number} id The pool registration id (not the tenant id).
712
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
545
713
  * @param {string} [authorization] Bearer Token
546
714
  * @param {*} [options] Override http request option.
547
715
  * @throws {RequiredError}
548
716
  */
549
- async retriggerCleanup(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
550
- const localVarAxiosArgs = await localVarAxiosParamCreator.retriggerCleanup(id, authorization, options);
717
+ async retriggerCleanup(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retriggerCleanup(tenantSlug, authorization, options);
551
719
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
552
720
  },
553
721
  /**
@@ -599,13 +767,13 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
599
767
  /**
600
768
  * Removes the pool registration only -- never the underlying tenant. Refused unless the pool tenant is available, so an active lease or in-flight cleanup can never be deregistered out from under itself. **Required Permissions** \"tenant-management.tenants.delete\"
601
769
  * @summary Deregister a pool tenant
602
- * @param {number} id The pool registration id (not the tenant id).
770
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
603
771
  * @param {string} [authorization] Bearer Token
604
772
  * @param {*} [options] Override http request option.
605
773
  * @throws {RequiredError}
606
774
  */
607
- deregister(id: number, authorization?: string, options?: any): AxiosPromise<void> {
608
- return localVarFp.deregister(id, authorization, options).then((request) => request(axios, basePath));
775
+ deregister(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<void> {
776
+ return localVarFp.deregister(tenantSlug, authorization, options).then((request) => request(axios, basePath));
609
777
  },
610
778
  /**
611
779
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
@@ -628,6 +796,27 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
628
796
  heartbeat(leaseId: string, authorization?: string, options?: any): AxiosPromise<CheckoutResponseClass> {
629
797
  return localVarFp.heartbeat(leaseId, authorization, options).then((request) => request(axios, basePath));
630
798
  },
799
+ /**
800
+ * Same as heartbeat by lease id, for callers that only track which tenant they leased rather than the lease id checkout returned. **Required Permissions** \"tenant-management.tenants.update\"
801
+ * @summary Extend a checked-out lease, by tenant slug
802
+ * @param {string} tenantSlug The slug of the leased tenant.
803
+ * @param {string} [authorization] Bearer Token
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ heartbeatByTenantSlug(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<CheckoutResponseClass> {
808
+ return localVarFp.heartbeatByTenantSlug(tenantSlug, authorization, options).then((request) => request(axios, basePath));
809
+ },
810
+ /**
811
+ * Returns every registered pool tenant, including its tags and status, regardless of availability. **Required Permissions** \"tenant-management.tenants.view\"
812
+ * @summary List every tenant in the test pool
813
+ * @param {string} [authorization] Bearer Token
814
+ * @param {*} [options] Override http request option.
815
+ * @throws {RequiredError}
816
+ */
817
+ listPoolTenants(authorization?: string, options?: any): AxiosPromise<ListPoolTenantsResponseClass> {
818
+ return localVarFp.listPoolTenants(authorization, options).then((request) => request(axios, basePath));
819
+ },
631
820
  /**
632
821
  * Adds an existing tenant to the pool with the given tags, making it eligible for checkout by tests requesting matching tags. Does not create or modify the tenant itself. **Required Permissions** \"tenant-management.tenants.create\"
633
822
  * @summary Register a tenant into the test pool
@@ -650,16 +839,27 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
650
839
  release(leaseId: string, authorization?: string, options?: any): AxiosPromise<void> {
651
840
  return localVarFp.release(leaseId, authorization, options).then((request) => request(axios, basePath));
652
841
  },
842
+ /**
843
+ * Same as release by lease id, for callers that only track which tenant they leased rather than the lease id checkout returned. **Required Permissions** \"tenant-management.tenants.update\"
844
+ * @summary Release a checked-out lease, by tenant slug
845
+ * @param {string} tenantSlug The slug of the leased tenant.
846
+ * @param {string} [authorization] Bearer Token
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ */
850
+ releaseByTenantSlug(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<void> {
851
+ return localVarFp.releaseByTenantSlug(tenantSlug, authorization, options).then((request) => request(axios, basePath));
852
+ },
653
853
  /**
654
854
  * Re-attempts cleanup for a pool tenant stuck in reset_failed, moving it back to leased and resubmitting the cleanup job. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
655
855
  * @summary Retry a failed cleanup
656
- * @param {number} id The pool registration id (not the tenant id).
856
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
657
857
  * @param {string} [authorization] Bearer Token
658
858
  * @param {*} [options] Override http request option.
659
859
  * @throws {RequiredError}
660
860
  */
661
- retriggerCleanup(id: number, authorization?: string, options?: any): AxiosPromise<void> {
662
- return localVarFp.retriggerCleanup(id, authorization, options).then((request) => request(axios, basePath));
861
+ retriggerCleanup(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<void> {
862
+ return localVarFp.retriggerCleanup(tenantSlug, authorization, options).then((request) => request(axios, basePath));
663
863
  },
664
864
  /**
665
865
  * Replaces the full list of entities cleaned up when a pool tenant is released. There is only one registry, shared by every pool tenant. **Required Permissions** \"tenant-management.tenants.update\"
@@ -715,11 +915,11 @@ export interface TestTenantPoolApiCheckoutRequest {
715
915
  */
716
916
  export interface TestTenantPoolApiDeregisterRequest {
717
917
  /**
718
- * The pool registration id (not the tenant id).
719
- * @type {number}
918
+ * The slug of the tenant it was registered under.
919
+ * @type {string}
720
920
  * @memberof TestTenantPoolApiDeregister
721
921
  */
722
- readonly id: number
922
+ readonly tenantSlug: string
723
923
 
724
924
  /**
725
925
  * Bearer Token
@@ -764,6 +964,41 @@ export interface TestTenantPoolApiHeartbeatRequest {
764
964
  readonly authorization?: string
765
965
  }
766
966
 
967
+ /**
968
+ * Request parameters for heartbeatByTenantSlug operation in TestTenantPoolApi.
969
+ * @export
970
+ * @interface TestTenantPoolApiHeartbeatByTenantSlugRequest
971
+ */
972
+ export interface TestTenantPoolApiHeartbeatByTenantSlugRequest {
973
+ /**
974
+ * The slug of the leased tenant.
975
+ * @type {string}
976
+ * @memberof TestTenantPoolApiHeartbeatByTenantSlug
977
+ */
978
+ readonly tenantSlug: string
979
+
980
+ /**
981
+ * Bearer Token
982
+ * @type {string}
983
+ * @memberof TestTenantPoolApiHeartbeatByTenantSlug
984
+ */
985
+ readonly authorization?: string
986
+ }
987
+
988
+ /**
989
+ * Request parameters for listPoolTenants operation in TestTenantPoolApi.
990
+ * @export
991
+ * @interface TestTenantPoolApiListPoolTenantsRequest
992
+ */
993
+ export interface TestTenantPoolApiListPoolTenantsRequest {
994
+ /**
995
+ * Bearer Token
996
+ * @type {string}
997
+ * @memberof TestTenantPoolApiListPoolTenants
998
+ */
999
+ readonly authorization?: string
1000
+ }
1001
+
767
1002
  /**
768
1003
  * Request parameters for register operation in TestTenantPoolApi.
769
1004
  * @export
@@ -806,6 +1041,27 @@ export interface TestTenantPoolApiReleaseRequest {
806
1041
  readonly authorization?: string
807
1042
  }
808
1043
 
1044
+ /**
1045
+ * Request parameters for releaseByTenantSlug operation in TestTenantPoolApi.
1046
+ * @export
1047
+ * @interface TestTenantPoolApiReleaseByTenantSlugRequest
1048
+ */
1049
+ export interface TestTenantPoolApiReleaseByTenantSlugRequest {
1050
+ /**
1051
+ * The slug of the leased tenant.
1052
+ * @type {string}
1053
+ * @memberof TestTenantPoolApiReleaseByTenantSlug
1054
+ */
1055
+ readonly tenantSlug: string
1056
+
1057
+ /**
1058
+ * Bearer Token
1059
+ * @type {string}
1060
+ * @memberof TestTenantPoolApiReleaseByTenantSlug
1061
+ */
1062
+ readonly authorization?: string
1063
+ }
1064
+
809
1065
  /**
810
1066
  * Request parameters for retriggerCleanup operation in TestTenantPoolApi.
811
1067
  * @export
@@ -813,11 +1069,11 @@ export interface TestTenantPoolApiReleaseRequest {
813
1069
  */
814
1070
  export interface TestTenantPoolApiRetriggerCleanupRequest {
815
1071
  /**
816
- * The pool registration id (not the tenant id).
817
- * @type {number}
1072
+ * The slug of the tenant it was registered under.
1073
+ * @type {string}
818
1074
  * @memberof TestTenantPoolApiRetriggerCleanup
819
1075
  */
820
- readonly id: number
1076
+ readonly tenantSlug: string
821
1077
 
822
1078
  /**
823
1079
  * Bearer Token
@@ -904,7 +1160,7 @@ export class TestTenantPoolApi extends BaseAPI {
904
1160
  * @memberof TestTenantPoolApi
905
1161
  */
906
1162
  public deregister(requestParameters: TestTenantPoolApiDeregisterRequest, options?: AxiosRequestConfig) {
907
- return TestTenantPoolApiFp(this.configuration).deregister(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1163
+ return TestTenantPoolApiFp(this.configuration).deregister(requestParameters.tenantSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
908
1164
  }
909
1165
 
910
1166
  /**
@@ -931,6 +1187,30 @@ export class TestTenantPoolApi extends BaseAPI {
931
1187
  return TestTenantPoolApiFp(this.configuration).heartbeat(requestParameters.leaseId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
932
1188
  }
933
1189
 
1190
+ /**
1191
+ * Same as heartbeat by lease id, for callers that only track which tenant they leased rather than the lease id checkout returned. **Required Permissions** \"tenant-management.tenants.update\"
1192
+ * @summary Extend a checked-out lease, by tenant slug
1193
+ * @param {TestTenantPoolApiHeartbeatByTenantSlugRequest} requestParameters Request parameters.
1194
+ * @param {*} [options] Override http request option.
1195
+ * @throws {RequiredError}
1196
+ * @memberof TestTenantPoolApi
1197
+ */
1198
+ public heartbeatByTenantSlug(requestParameters: TestTenantPoolApiHeartbeatByTenantSlugRequest, options?: AxiosRequestConfig) {
1199
+ return TestTenantPoolApiFp(this.configuration).heartbeatByTenantSlug(requestParameters.tenantSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1200
+ }
1201
+
1202
+ /**
1203
+ * Returns every registered pool tenant, including its tags and status, regardless of availability. **Required Permissions** \"tenant-management.tenants.view\"
1204
+ * @summary List every tenant in the test pool
1205
+ * @param {TestTenantPoolApiListPoolTenantsRequest} requestParameters Request parameters.
1206
+ * @param {*} [options] Override http request option.
1207
+ * @throws {RequiredError}
1208
+ * @memberof TestTenantPoolApi
1209
+ */
1210
+ public listPoolTenants(requestParameters: TestTenantPoolApiListPoolTenantsRequest = {}, options?: AxiosRequestConfig) {
1211
+ return TestTenantPoolApiFp(this.configuration).listPoolTenants(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1212
+ }
1213
+
934
1214
  /**
935
1215
  * Adds an existing tenant to the pool with the given tags, making it eligible for checkout by tests requesting matching tags. Does not create or modify the tenant itself. **Required Permissions** \"tenant-management.tenants.create\"
936
1216
  * @summary Register a tenant into the test pool
@@ -955,6 +1235,18 @@ export class TestTenantPoolApi extends BaseAPI {
955
1235
  return TestTenantPoolApiFp(this.configuration).release(requestParameters.leaseId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
956
1236
  }
957
1237
 
1238
+ /**
1239
+ * Same as release by lease id, for callers that only track which tenant they leased rather than the lease id checkout returned. **Required Permissions** \"tenant-management.tenants.update\"
1240
+ * @summary Release a checked-out lease, by tenant slug
1241
+ * @param {TestTenantPoolApiReleaseByTenantSlugRequest} requestParameters Request parameters.
1242
+ * @param {*} [options] Override http request option.
1243
+ * @throws {RequiredError}
1244
+ * @memberof TestTenantPoolApi
1245
+ */
1246
+ public releaseByTenantSlug(requestParameters: TestTenantPoolApiReleaseByTenantSlugRequest, options?: AxiosRequestConfig) {
1247
+ return TestTenantPoolApiFp(this.configuration).releaseByTenantSlug(requestParameters.tenantSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1248
+ }
1249
+
958
1250
  /**
959
1251
  * Re-attempts cleanup for a pool tenant stuck in reset_failed, moving it back to leased and resubmitting the cleanup job. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
960
1252
  * @summary Retry a failed cleanup
@@ -964,7 +1256,7 @@ export class TestTenantPoolApi extends BaseAPI {
964
1256
  * @memberof TestTenantPoolApi
965
1257
  */
966
1258
  public retriggerCleanup(requestParameters: TestTenantPoolApiRetriggerCleanupRequest, options?: AxiosRequestConfig) {
967
- return TestTenantPoolApiFp(this.configuration).retriggerCleanup(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1259
+ return TestTenantPoolApiFp(this.configuration).retriggerCleanup(requestParameters.tenantSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
968
1260
  }
969
1261
 
970
1262
  /**