@emilgroup/tenant-sdk 1.42.1-beta.29 → 1.42.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@1.42.1-beta.29 --save
20
+ npm install @emilgroup/tenant-sdk@1.42.1-beta.30 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.42.1-beta.29
24
+ yarn add @emilgroup/tenant-sdk@1.42.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';
@@ -90,16 +92,16 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
90
92
  /**
91
93
  * 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\"
92
94
  * @summary Deregister a pool tenant
93
- * @param {number} id The pool registration id (not the tenant id).
95
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
94
96
  * @param {string} [authorization] Bearer Token
95
97
  * @param {*} [options] Override http request option.
96
98
  * @throws {RequiredError}
97
99
  */
98
- deregister: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
99
- // verify required parameter 'id' is not null or undefined
100
- assertParamExists('deregister', 'id', id)
101
- const localVarPath = `/tenantservice/v1/test-tenant-pool/{id}`
102
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
100
+ deregister: async (tenantSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'tenantSlug' is not null or undefined
102
+ assertParamExists('deregister', 'tenantSlug', tenantSlug)
103
+ const localVarPath = `/tenantservice/v1/test-tenant-pool/{tenantSlug}`
104
+ .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
103
105
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
104
106
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
105
107
  let baseOptions;
@@ -209,6 +211,92 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
209
211
 
210
212
 
211
213
 
214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
217
+
218
+ return {
219
+ url: toPathString(localVarUrlObj),
220
+ options: localVarRequestOptions,
221
+ };
222
+ },
223
+ /**
224
+ * 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\"
225
+ * @summary Extend a checked-out lease, by tenant slug
226
+ * @param {string} tenantSlug The slug of the leased tenant.
227
+ * @param {string} [authorization] Bearer Token
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ heartbeatByTenantSlug: async (tenantSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
232
+ // verify required parameter 'tenantSlug' is not null or undefined
233
+ assertParamExists('heartbeatByTenantSlug', 'tenantSlug', tenantSlug)
234
+ const localVarPath = `/tenantservice/v1/test-tenant-pool/by-tenant/{tenantSlug}/heartbeat`
235
+ .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
236
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
237
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
238
+ let baseOptions;
239
+ let baseAccessToken;
240
+ if (configuration) {
241
+ baseOptions = configuration.baseOptions;
242
+ baseAccessToken = configuration.accessToken;
243
+ }
244
+
245
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
246
+ const localVarHeaderParameter = {} as any;
247
+ const localVarQueryParameter = {} as any;
248
+
249
+ // authentication bearer required
250
+ // http bearer authentication required
251
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
252
+
253
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
254
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
255
+ }
256
+
257
+
258
+
259
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
260
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
261
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
262
+
263
+ return {
264
+ url: toPathString(localVarUrlObj),
265
+ options: localVarRequestOptions,
266
+ };
267
+ },
268
+ /**
269
+ * Returns every registered pool tenant, including its tags and status, regardless of availability. **Required Permissions** \"tenant-management.tenants.view\"
270
+ * @summary List every tenant in the test pool
271
+ * @param {string} [authorization] Bearer Token
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ listPoolTenants: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
276
+ const localVarPath = `/tenantservice/v1/test-tenant-pool`;
277
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
278
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
279
+ let baseOptions;
280
+ let baseAccessToken;
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ baseAccessToken = configuration.accessToken;
284
+ }
285
+
286
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
287
+ const localVarHeaderParameter = {} as any;
288
+ const localVarQueryParameter = {} as any;
289
+
290
+ // authentication bearer required
291
+ // http bearer authentication required
292
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
293
+
294
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
+ }
297
+
298
+
299
+
212
300
  setSearchParams(localVarUrlObj, localVarQueryParameter);
213
301
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
302
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -301,6 +389,51 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
301
389
 
302
390
 
303
391
 
392
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
393
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
394
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
395
+
396
+ return {
397
+ url: toPathString(localVarUrlObj),
398
+ options: localVarRequestOptions,
399
+ };
400
+ },
401
+ /**
402
+ * 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\"
403
+ * @summary Release a checked-out lease, by tenant slug
404
+ * @param {string} tenantSlug The slug of the leased tenant.
405
+ * @param {string} [authorization] Bearer Token
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ releaseByTenantSlug: async (tenantSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
410
+ // verify required parameter 'tenantSlug' is not null or undefined
411
+ assertParamExists('releaseByTenantSlug', 'tenantSlug', tenantSlug)
412
+ const localVarPath = `/tenantservice/v1/test-tenant-pool/by-tenant/{tenantSlug}/release`
413
+ .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
414
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
415
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
416
+ let baseOptions;
417
+ let baseAccessToken;
418
+ if (configuration) {
419
+ baseOptions = configuration.baseOptions;
420
+ baseAccessToken = configuration.accessToken;
421
+ }
422
+
423
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
424
+ const localVarHeaderParameter = {} as any;
425
+ const localVarQueryParameter = {} as any;
426
+
427
+ // authentication bearer required
428
+ // http bearer authentication required
429
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
430
+
431
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
432
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
433
+ }
434
+
435
+
436
+
304
437
  setSearchParams(localVarUrlObj, localVarQueryParameter);
305
438
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
306
439
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -313,16 +446,16 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
313
446
  /**
314
447
  * 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\"
315
448
  * @summary Retry a failed cleanup
316
- * @param {number} id The pool registration id (not the tenant id).
449
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
317
450
  * @param {string} [authorization] Bearer Token
318
451
  * @param {*} [options] Override http request option.
319
452
  * @throws {RequiredError}
320
453
  */
321
- retriggerCleanup: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
322
- // verify required parameter 'id' is not null or undefined
323
- assertParamExists('retriggerCleanup', 'id', id)
324
- const localVarPath = `/tenantservice/v1/test-tenant-pool/{id}/retrigger-cleanup`
325
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
454
+ retriggerCleanup: async (tenantSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
455
+ // verify required parameter 'tenantSlug' is not null or undefined
456
+ assertParamExists('retriggerCleanup', 'tenantSlug', tenantSlug)
457
+ const localVarPath = `/tenantservice/v1/test-tenant-pool/{tenantSlug}/retrigger-cleanup`
458
+ .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
326
459
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
327
460
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
328
461
  let baseOptions;
@@ -478,13 +611,13 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
478
611
  /**
479
612
  * 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\"
480
613
  * @summary Deregister a pool tenant
481
- * @param {number} id The pool registration id (not the tenant id).
614
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
482
615
  * @param {string} [authorization] Bearer Token
483
616
  * @param {*} [options] Override http request option.
484
617
  * @throws {RequiredError}
485
618
  */
486
- async deregister(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
487
- const localVarAxiosArgs = await localVarAxiosParamCreator.deregister(id, authorization, options);
619
+ async deregister(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
620
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deregister(tenantSlug, authorization, options);
488
621
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
489
622
  },
490
623
  /**
@@ -510,6 +643,29 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
510
643
  const localVarAxiosArgs = await localVarAxiosParamCreator.heartbeat(leaseId, authorization, options);
511
644
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
512
645
  },
646
+ /**
647
+ * 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\"
648
+ * @summary Extend a checked-out lease, by tenant slug
649
+ * @param {string} tenantSlug The slug of the leased tenant.
650
+ * @param {string} [authorization] Bearer Token
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ async heartbeatByTenantSlug(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckoutResponseClass>> {
655
+ const localVarAxiosArgs = await localVarAxiosParamCreator.heartbeatByTenantSlug(tenantSlug, authorization, options);
656
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
657
+ },
658
+ /**
659
+ * Returns every registered pool tenant, including its tags and status, regardless of availability. **Required Permissions** \"tenant-management.tenants.view\"
660
+ * @summary List every tenant in the test pool
661
+ * @param {string} [authorization] Bearer Token
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ */
665
+ async listPoolTenants(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoolTenantsResponseClass>> {
666
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPoolTenants(authorization, options);
667
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
668
+ },
513
669
  /**
514
670
  * 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\"
515
671
  * @summary Register a tenant into the test pool
@@ -534,16 +690,28 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
534
690
  const localVarAxiosArgs = await localVarAxiosParamCreator.release(leaseId, authorization, options);
535
691
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
536
692
  },
693
+ /**
694
+ * 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\"
695
+ * @summary Release a checked-out lease, by tenant slug
696
+ * @param {string} tenantSlug The slug of the leased tenant.
697
+ * @param {string} [authorization] Bearer Token
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ async releaseByTenantSlug(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
702
+ const localVarAxiosArgs = await localVarAxiosParamCreator.releaseByTenantSlug(tenantSlug, authorization, options);
703
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
704
+ },
537
705
  /**
538
706
  * 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\"
539
707
  * @summary Retry a failed cleanup
540
- * @param {number} id The pool registration id (not the tenant id).
708
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
541
709
  * @param {string} [authorization] Bearer Token
542
710
  * @param {*} [options] Override http request option.
543
711
  * @throws {RequiredError}
544
712
  */
545
- async retriggerCleanup(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
546
- const localVarAxiosArgs = await localVarAxiosParamCreator.retriggerCleanup(id, authorization, options);
713
+ async retriggerCleanup(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retriggerCleanup(tenantSlug, authorization, options);
547
715
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
548
716
  },
549
717
  /**
@@ -595,13 +763,13 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
595
763
  /**
596
764
  * 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\"
597
765
  * @summary Deregister a pool tenant
598
- * @param {number} id The pool registration id (not the tenant id).
766
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
599
767
  * @param {string} [authorization] Bearer Token
600
768
  * @param {*} [options] Override http request option.
601
769
  * @throws {RequiredError}
602
770
  */
603
- deregister(id: number, authorization?: string, options?: any): AxiosPromise<void> {
604
- return localVarFp.deregister(id, authorization, options).then((request) => request(axios, basePath));
771
+ deregister(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<void> {
772
+ return localVarFp.deregister(tenantSlug, authorization, options).then((request) => request(axios, basePath));
605
773
  },
606
774
  /**
607
775
  * 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\"
@@ -624,6 +792,27 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
624
792
  heartbeat(leaseId: string, authorization?: string, options?: any): AxiosPromise<CheckoutResponseClass> {
625
793
  return localVarFp.heartbeat(leaseId, authorization, options).then((request) => request(axios, basePath));
626
794
  },
795
+ /**
796
+ * 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\"
797
+ * @summary Extend a checked-out lease, by tenant slug
798
+ * @param {string} tenantSlug The slug of the leased tenant.
799
+ * @param {string} [authorization] Bearer Token
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ */
803
+ heartbeatByTenantSlug(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<CheckoutResponseClass> {
804
+ return localVarFp.heartbeatByTenantSlug(tenantSlug, authorization, options).then((request) => request(axios, basePath));
805
+ },
806
+ /**
807
+ * Returns every registered pool tenant, including its tags and status, regardless of availability. **Required Permissions** \"tenant-management.tenants.view\"
808
+ * @summary List every tenant in the test pool
809
+ * @param {string} [authorization] Bearer Token
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ listPoolTenants(authorization?: string, options?: any): AxiosPromise<ListPoolTenantsResponseClass> {
814
+ return localVarFp.listPoolTenants(authorization, options).then((request) => request(axios, basePath));
815
+ },
627
816
  /**
628
817
  * 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\"
629
818
  * @summary Register a tenant into the test pool
@@ -646,16 +835,27 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
646
835
  release(leaseId: string, authorization?: string, options?: any): AxiosPromise<void> {
647
836
  return localVarFp.release(leaseId, authorization, options).then((request) => request(axios, basePath));
648
837
  },
838
+ /**
839
+ * 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\"
840
+ * @summary Release a checked-out lease, by tenant slug
841
+ * @param {string} tenantSlug The slug of the leased tenant.
842
+ * @param {string} [authorization] Bearer Token
843
+ * @param {*} [options] Override http request option.
844
+ * @throws {RequiredError}
845
+ */
846
+ releaseByTenantSlug(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<void> {
847
+ return localVarFp.releaseByTenantSlug(tenantSlug, authorization, options).then((request) => request(axios, basePath));
848
+ },
649
849
  /**
650
850
  * 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\"
651
851
  * @summary Retry a failed cleanup
652
- * @param {number} id The pool registration id (not the tenant id).
852
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
653
853
  * @param {string} [authorization] Bearer Token
654
854
  * @param {*} [options] Override http request option.
655
855
  * @throws {RequiredError}
656
856
  */
657
- retriggerCleanup(id: number, authorization?: string, options?: any): AxiosPromise<void> {
658
- return localVarFp.retriggerCleanup(id, authorization, options).then((request) => request(axios, basePath));
857
+ retriggerCleanup(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<void> {
858
+ return localVarFp.retriggerCleanup(tenantSlug, authorization, options).then((request) => request(axios, basePath));
659
859
  },
660
860
  /**
661
861
  * 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\"
@@ -711,11 +911,11 @@ export interface TestTenantPoolApiCheckoutRequest {
711
911
  */
712
912
  export interface TestTenantPoolApiDeregisterRequest {
713
913
  /**
714
- * The pool registration id (not the tenant id).
715
- * @type {number}
914
+ * The slug of the tenant it was registered under.
915
+ * @type {string}
716
916
  * @memberof TestTenantPoolApiDeregister
717
917
  */
718
- readonly id: number
918
+ readonly tenantSlug: string
719
919
 
720
920
  /**
721
921
  * Bearer Token
@@ -760,6 +960,41 @@ export interface TestTenantPoolApiHeartbeatRequest {
760
960
  readonly authorization?: string
761
961
  }
762
962
 
963
+ /**
964
+ * Request parameters for heartbeatByTenantSlug operation in TestTenantPoolApi.
965
+ * @export
966
+ * @interface TestTenantPoolApiHeartbeatByTenantSlugRequest
967
+ */
968
+ export interface TestTenantPoolApiHeartbeatByTenantSlugRequest {
969
+ /**
970
+ * The slug of the leased tenant.
971
+ * @type {string}
972
+ * @memberof TestTenantPoolApiHeartbeatByTenantSlug
973
+ */
974
+ readonly tenantSlug: string
975
+
976
+ /**
977
+ * Bearer Token
978
+ * @type {string}
979
+ * @memberof TestTenantPoolApiHeartbeatByTenantSlug
980
+ */
981
+ readonly authorization?: string
982
+ }
983
+
984
+ /**
985
+ * Request parameters for listPoolTenants operation in TestTenantPoolApi.
986
+ * @export
987
+ * @interface TestTenantPoolApiListPoolTenantsRequest
988
+ */
989
+ export interface TestTenantPoolApiListPoolTenantsRequest {
990
+ /**
991
+ * Bearer Token
992
+ * @type {string}
993
+ * @memberof TestTenantPoolApiListPoolTenants
994
+ */
995
+ readonly authorization?: string
996
+ }
997
+
763
998
  /**
764
999
  * Request parameters for register operation in TestTenantPoolApi.
765
1000
  * @export
@@ -802,6 +1037,27 @@ export interface TestTenantPoolApiReleaseRequest {
802
1037
  readonly authorization?: string
803
1038
  }
804
1039
 
1040
+ /**
1041
+ * Request parameters for releaseByTenantSlug operation in TestTenantPoolApi.
1042
+ * @export
1043
+ * @interface TestTenantPoolApiReleaseByTenantSlugRequest
1044
+ */
1045
+ export interface TestTenantPoolApiReleaseByTenantSlugRequest {
1046
+ /**
1047
+ * The slug of the leased tenant.
1048
+ * @type {string}
1049
+ * @memberof TestTenantPoolApiReleaseByTenantSlug
1050
+ */
1051
+ readonly tenantSlug: string
1052
+
1053
+ /**
1054
+ * Bearer Token
1055
+ * @type {string}
1056
+ * @memberof TestTenantPoolApiReleaseByTenantSlug
1057
+ */
1058
+ readonly authorization?: string
1059
+ }
1060
+
805
1061
  /**
806
1062
  * Request parameters for retriggerCleanup operation in TestTenantPoolApi.
807
1063
  * @export
@@ -809,11 +1065,11 @@ export interface TestTenantPoolApiReleaseRequest {
809
1065
  */
810
1066
  export interface TestTenantPoolApiRetriggerCleanupRequest {
811
1067
  /**
812
- * The pool registration id (not the tenant id).
813
- * @type {number}
1068
+ * The slug of the tenant it was registered under.
1069
+ * @type {string}
814
1070
  * @memberof TestTenantPoolApiRetriggerCleanup
815
1071
  */
816
- readonly id: number
1072
+ readonly tenantSlug: string
817
1073
 
818
1074
  /**
819
1075
  * Bearer Token
@@ -900,7 +1156,7 @@ export class TestTenantPoolApi extends BaseAPI {
900
1156
  * @memberof TestTenantPoolApi
901
1157
  */
902
1158
  public deregister(requestParameters: TestTenantPoolApiDeregisterRequest, options?: AxiosRequestConfig) {
903
- return TestTenantPoolApiFp(this.configuration).deregister(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1159
+ return TestTenantPoolApiFp(this.configuration).deregister(requestParameters.tenantSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
904
1160
  }
905
1161
 
906
1162
  /**
@@ -927,6 +1183,30 @@ export class TestTenantPoolApi extends BaseAPI {
927
1183
  return TestTenantPoolApiFp(this.configuration).heartbeat(requestParameters.leaseId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
928
1184
  }
929
1185
 
1186
+ /**
1187
+ * 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\"
1188
+ * @summary Extend a checked-out lease, by tenant slug
1189
+ * @param {TestTenantPoolApiHeartbeatByTenantSlugRequest} requestParameters Request parameters.
1190
+ * @param {*} [options] Override http request option.
1191
+ * @throws {RequiredError}
1192
+ * @memberof TestTenantPoolApi
1193
+ */
1194
+ public heartbeatByTenantSlug(requestParameters: TestTenantPoolApiHeartbeatByTenantSlugRequest, options?: AxiosRequestConfig) {
1195
+ return TestTenantPoolApiFp(this.configuration).heartbeatByTenantSlug(requestParameters.tenantSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1196
+ }
1197
+
1198
+ /**
1199
+ * Returns every registered pool tenant, including its tags and status, regardless of availability. **Required Permissions** \"tenant-management.tenants.view\"
1200
+ * @summary List every tenant in the test pool
1201
+ * @param {TestTenantPoolApiListPoolTenantsRequest} requestParameters Request parameters.
1202
+ * @param {*} [options] Override http request option.
1203
+ * @throws {RequiredError}
1204
+ * @memberof TestTenantPoolApi
1205
+ */
1206
+ public listPoolTenants(requestParameters: TestTenantPoolApiListPoolTenantsRequest = {}, options?: AxiosRequestConfig) {
1207
+ return TestTenantPoolApiFp(this.configuration).listPoolTenants(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1208
+ }
1209
+
930
1210
  /**
931
1211
  * 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\"
932
1212
  * @summary Register a tenant into the test pool
@@ -951,6 +1231,18 @@ export class TestTenantPoolApi extends BaseAPI {
951
1231
  return TestTenantPoolApiFp(this.configuration).release(requestParameters.leaseId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
952
1232
  }
953
1233
 
1234
+ /**
1235
+ * 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\"
1236
+ * @summary Release a checked-out lease, by tenant slug
1237
+ * @param {TestTenantPoolApiReleaseByTenantSlugRequest} requestParameters Request parameters.
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ * @memberof TestTenantPoolApi
1241
+ */
1242
+ public releaseByTenantSlug(requestParameters: TestTenantPoolApiReleaseByTenantSlugRequest, options?: AxiosRequestConfig) {
1243
+ return TestTenantPoolApiFp(this.configuration).releaseByTenantSlug(requestParameters.tenantSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1244
+ }
1245
+
954
1246
  /**
955
1247
  * 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\"
956
1248
  * @summary Retry a failed cleanup
@@ -960,7 +1252,7 @@ export class TestTenantPoolApi extends BaseAPI {
960
1252
  * @memberof TestTenantPoolApi
961
1253
  */
962
1254
  public retriggerCleanup(requestParameters: TestTenantPoolApiRetriggerCleanupRequest, options?: AxiosRequestConfig) {
963
- return TestTenantPoolApiFp(this.configuration).retriggerCleanup(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1255
+ return TestTenantPoolApiFp(this.configuration).retriggerCleanup(requestParameters.tenantSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
964
1256
  }
965
1257
 
966
1258
  /**