@emilgroup/tenant-sdk 1.42.1-beta.28 → 1.42.1-beta.29
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/README.md +2 -2
- package/api/test-tenant-pool-api.ts +92 -56
- package/dist/api/test-tenant-pool-api.d.ts +92 -56
- package/dist/api/test-tenant-pool-api.js +87 -51
- package/package.json +1 -1
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.
|
|
20
|
+
npm install @emilgroup/tenant-sdk@1.42.1-beta.29 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk@1.42.1-beta.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk@1.42.1-beta.29
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
|
@@ -41,7 +41,8 @@ import { UpdateTagsBodyDto } from '../models';
|
|
|
41
41
|
export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
42
|
return {
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
45
|
+
* @summary Check out an available pool tenant
|
|
45
46
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
46
47
|
* @param {string} [authorization] Bearer Token
|
|
47
48
|
* @param {*} [options] Override http request option.
|
|
@@ -87,8 +88,9 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
87
88
|
};
|
|
88
89
|
},
|
|
89
90
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @
|
|
91
|
+
* 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
|
+
* @summary Deregister a pool tenant
|
|
93
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
92
94
|
* @param {string} [authorization] Bearer Token
|
|
93
95
|
* @param {*} [options] Override http request option.
|
|
94
96
|
* @throws {RequiredError}
|
|
@@ -131,7 +133,8 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
131
133
|
};
|
|
132
134
|
},
|
|
133
135
|
/**
|
|
134
|
-
*
|
|
136
|
+
* 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\"
|
|
137
|
+
* @summary Read the shared cleanup registry
|
|
135
138
|
* @param {string} [authorization] Bearer Token
|
|
136
139
|
* @param {*} [options] Override http request option.
|
|
137
140
|
* @throws {RequiredError}
|
|
@@ -171,8 +174,9 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
171
174
|
};
|
|
172
175
|
},
|
|
173
176
|
/**
|
|
174
|
-
*
|
|
175
|
-
* @
|
|
177
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
178
|
+
* @summary Extend a checked-out lease
|
|
179
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
176
180
|
* @param {string} [authorization] Bearer Token
|
|
177
181
|
* @param {*} [options] Override http request option.
|
|
178
182
|
* @throws {RequiredError}
|
|
@@ -215,7 +219,8 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
215
219
|
};
|
|
216
220
|
},
|
|
217
221
|
/**
|
|
218
|
-
*
|
|
222
|
+
* 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\"
|
|
223
|
+
* @summary Register a tenant into the test pool
|
|
219
224
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
220
225
|
* @param {string} [authorization] Bearer Token
|
|
221
226
|
* @param {*} [options] Override http request option.
|
|
@@ -261,8 +266,9 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
261
266
|
};
|
|
262
267
|
},
|
|
263
268
|
/**
|
|
264
|
-
*
|
|
265
|
-
* @
|
|
269
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
270
|
+
* @summary Release a checked-out lease
|
|
271
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
266
272
|
* @param {string} [authorization] Bearer Token
|
|
267
273
|
* @param {*} [options] Override http request option.
|
|
268
274
|
* @throws {RequiredError}
|
|
@@ -305,8 +311,9 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
305
311
|
};
|
|
306
312
|
},
|
|
307
313
|
/**
|
|
308
|
-
*
|
|
309
|
-
* @
|
|
314
|
+
* 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
|
+
* @summary Retry a failed cleanup
|
|
316
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
310
317
|
* @param {string} [authorization] Bearer Token
|
|
311
318
|
* @param {*} [options] Override http request option.
|
|
312
319
|
* @throws {RequiredError}
|
|
@@ -349,7 +356,8 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
349
356
|
};
|
|
350
357
|
},
|
|
351
358
|
/**
|
|
352
|
-
*
|
|
359
|
+
* 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\"
|
|
360
|
+
* @summary Replace the shared cleanup registry
|
|
353
361
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
354
362
|
* @param {string} [authorization] Bearer Token
|
|
355
363
|
* @param {*} [options] Override http request option.
|
|
@@ -395,8 +403,9 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
395
403
|
};
|
|
396
404
|
},
|
|
397
405
|
/**
|
|
398
|
-
*
|
|
399
|
-
* @
|
|
406
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
407
|
+
* @summary Replace a pool tenant\'s tags
|
|
408
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
400
409
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
401
410
|
* @param {string} [authorization] Bearer Token
|
|
402
411
|
* @param {*} [options] Override http request option.
|
|
@@ -455,7 +464,8 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
455
464
|
const localVarAxiosParamCreator = TestTenantPoolApiAxiosParamCreator(configuration)
|
|
456
465
|
return {
|
|
457
466
|
/**
|
|
458
|
-
*
|
|
467
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
468
|
+
* @summary Check out an available pool tenant
|
|
459
469
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
460
470
|
* @param {string} [authorization] Bearer Token
|
|
461
471
|
* @param {*} [options] Override http request option.
|
|
@@ -466,8 +476,9 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
466
476
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
467
477
|
},
|
|
468
478
|
/**
|
|
469
|
-
*
|
|
470
|
-
* @
|
|
479
|
+
* 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
|
+
* @summary Deregister a pool tenant
|
|
481
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
471
482
|
* @param {string} [authorization] Bearer Token
|
|
472
483
|
* @param {*} [options] Override http request option.
|
|
473
484
|
* @throws {RequiredError}
|
|
@@ -477,7 +488,8 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
477
488
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
478
489
|
},
|
|
479
490
|
/**
|
|
480
|
-
*
|
|
491
|
+
* 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\"
|
|
492
|
+
* @summary Read the shared cleanup registry
|
|
481
493
|
* @param {string} [authorization] Bearer Token
|
|
482
494
|
* @param {*} [options] Override http request option.
|
|
483
495
|
* @throws {RequiredError}
|
|
@@ -487,8 +499,9 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
487
499
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
488
500
|
},
|
|
489
501
|
/**
|
|
490
|
-
*
|
|
491
|
-
* @
|
|
502
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
503
|
+
* @summary Extend a checked-out lease
|
|
504
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
492
505
|
* @param {string} [authorization] Bearer Token
|
|
493
506
|
* @param {*} [options] Override http request option.
|
|
494
507
|
* @throws {RequiredError}
|
|
@@ -498,7 +511,8 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
498
511
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
499
512
|
},
|
|
500
513
|
/**
|
|
501
|
-
*
|
|
514
|
+
* 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
|
+
* @summary Register a tenant into the test pool
|
|
502
516
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
503
517
|
* @param {string} [authorization] Bearer Token
|
|
504
518
|
* @param {*} [options] Override http request option.
|
|
@@ -509,8 +523,9 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
509
523
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
510
524
|
},
|
|
511
525
|
/**
|
|
512
|
-
*
|
|
513
|
-
* @
|
|
526
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
527
|
+
* @summary Release a checked-out lease
|
|
528
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
514
529
|
* @param {string} [authorization] Bearer Token
|
|
515
530
|
* @param {*} [options] Override http request option.
|
|
516
531
|
* @throws {RequiredError}
|
|
@@ -520,8 +535,9 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
520
535
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
521
536
|
},
|
|
522
537
|
/**
|
|
523
|
-
*
|
|
524
|
-
* @
|
|
538
|
+
* 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
|
+
* @summary Retry a failed cleanup
|
|
540
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
525
541
|
* @param {string} [authorization] Bearer Token
|
|
526
542
|
* @param {*} [options] Override http request option.
|
|
527
543
|
* @throws {RequiredError}
|
|
@@ -531,7 +547,8 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
531
547
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
532
548
|
},
|
|
533
549
|
/**
|
|
534
|
-
*
|
|
550
|
+
* 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\"
|
|
551
|
+
* @summary Replace the shared cleanup registry
|
|
535
552
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
536
553
|
* @param {string} [authorization] Bearer Token
|
|
537
554
|
* @param {*} [options] Override http request option.
|
|
@@ -542,8 +559,9 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
542
559
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
543
560
|
},
|
|
544
561
|
/**
|
|
545
|
-
*
|
|
546
|
-
* @
|
|
562
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
563
|
+
* @summary Replace a pool tenant\'s tags
|
|
564
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
547
565
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
548
566
|
* @param {string} [authorization] Bearer Token
|
|
549
567
|
* @param {*} [options] Override http request option.
|
|
@@ -564,7 +582,8 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
564
582
|
const localVarFp = TestTenantPoolApiFp(configuration)
|
|
565
583
|
return {
|
|
566
584
|
/**
|
|
567
|
-
*
|
|
585
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
586
|
+
* @summary Check out an available pool tenant
|
|
568
587
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
569
588
|
* @param {string} [authorization] Bearer Token
|
|
570
589
|
* @param {*} [options] Override http request option.
|
|
@@ -574,8 +593,9 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
574
593
|
return localVarFp.checkout(checkoutRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
575
594
|
},
|
|
576
595
|
/**
|
|
577
|
-
*
|
|
578
|
-
* @
|
|
596
|
+
* 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
|
+
* @summary Deregister a pool tenant
|
|
598
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
579
599
|
* @param {string} [authorization] Bearer Token
|
|
580
600
|
* @param {*} [options] Override http request option.
|
|
581
601
|
* @throws {RequiredError}
|
|
@@ -584,7 +604,8 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
584
604
|
return localVarFp.deregister(id, authorization, options).then((request) => request(axios, basePath));
|
|
585
605
|
},
|
|
586
606
|
/**
|
|
587
|
-
*
|
|
607
|
+
* 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\"
|
|
608
|
+
* @summary Read the shared cleanup registry
|
|
588
609
|
* @param {string} [authorization] Bearer Token
|
|
589
610
|
* @param {*} [options] Override http request option.
|
|
590
611
|
* @throws {RequiredError}
|
|
@@ -593,8 +614,9 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
593
614
|
return localVarFp.getCleanupRegistry(authorization, options).then((request) => request(axios, basePath));
|
|
594
615
|
},
|
|
595
616
|
/**
|
|
596
|
-
*
|
|
597
|
-
* @
|
|
617
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
618
|
+
* @summary Extend a checked-out lease
|
|
619
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
598
620
|
* @param {string} [authorization] Bearer Token
|
|
599
621
|
* @param {*} [options] Override http request option.
|
|
600
622
|
* @throws {RequiredError}
|
|
@@ -603,7 +625,8 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
603
625
|
return localVarFp.heartbeat(leaseId, authorization, options).then((request) => request(axios, basePath));
|
|
604
626
|
},
|
|
605
627
|
/**
|
|
606
|
-
*
|
|
628
|
+
* 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
|
+
* @summary Register a tenant into the test pool
|
|
607
630
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
608
631
|
* @param {string} [authorization] Bearer Token
|
|
609
632
|
* @param {*} [options] Override http request option.
|
|
@@ -613,8 +636,9 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
613
636
|
return localVarFp.register(registerPoolTenantRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
614
637
|
},
|
|
615
638
|
/**
|
|
616
|
-
*
|
|
617
|
-
* @
|
|
639
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
640
|
+
* @summary Release a checked-out lease
|
|
641
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
618
642
|
* @param {string} [authorization] Bearer Token
|
|
619
643
|
* @param {*} [options] Override http request option.
|
|
620
644
|
* @throws {RequiredError}
|
|
@@ -623,8 +647,9 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
623
647
|
return localVarFp.release(leaseId, authorization, options).then((request) => request(axios, basePath));
|
|
624
648
|
},
|
|
625
649
|
/**
|
|
626
|
-
*
|
|
627
|
-
* @
|
|
650
|
+
* 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
|
+
* @summary Retry a failed cleanup
|
|
652
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
628
653
|
* @param {string} [authorization] Bearer Token
|
|
629
654
|
* @param {*} [options] Override http request option.
|
|
630
655
|
* @throws {RequiredError}
|
|
@@ -633,7 +658,8 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
633
658
|
return localVarFp.retriggerCleanup(id, authorization, options).then((request) => request(axios, basePath));
|
|
634
659
|
},
|
|
635
660
|
/**
|
|
636
|
-
*
|
|
661
|
+
* 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\"
|
|
662
|
+
* @summary Replace the shared cleanup registry
|
|
637
663
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
638
664
|
* @param {string} [authorization] Bearer Token
|
|
639
665
|
* @param {*} [options] Override http request option.
|
|
@@ -643,8 +669,9 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
643
669
|
return localVarFp.updateCleanupRegistry(cleanupRegistryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
644
670
|
},
|
|
645
671
|
/**
|
|
646
|
-
*
|
|
647
|
-
* @
|
|
672
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
673
|
+
* @summary Replace a pool tenant\'s tags
|
|
674
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
648
675
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
649
676
|
* @param {string} [authorization] Bearer Token
|
|
650
677
|
* @param {*} [options] Override http request option.
|
|
@@ -684,7 +711,7 @@ export interface TestTenantPoolApiCheckoutRequest {
|
|
|
684
711
|
*/
|
|
685
712
|
export interface TestTenantPoolApiDeregisterRequest {
|
|
686
713
|
/**
|
|
687
|
-
*
|
|
714
|
+
* The pool registration id (not the tenant id).
|
|
688
715
|
* @type {number}
|
|
689
716
|
* @memberof TestTenantPoolApiDeregister
|
|
690
717
|
*/
|
|
@@ -719,7 +746,7 @@ export interface TestTenantPoolApiGetCleanupRegistryRequest {
|
|
|
719
746
|
*/
|
|
720
747
|
export interface TestTenantPoolApiHeartbeatRequest {
|
|
721
748
|
/**
|
|
722
|
-
*
|
|
749
|
+
* The lease id returned by checkout.
|
|
723
750
|
* @type {string}
|
|
724
751
|
* @memberof TestTenantPoolApiHeartbeat
|
|
725
752
|
*/
|
|
@@ -761,7 +788,7 @@ export interface TestTenantPoolApiRegisterRequest {
|
|
|
761
788
|
*/
|
|
762
789
|
export interface TestTenantPoolApiReleaseRequest {
|
|
763
790
|
/**
|
|
764
|
-
*
|
|
791
|
+
* The lease id returned by checkout.
|
|
765
792
|
* @type {string}
|
|
766
793
|
* @memberof TestTenantPoolApiRelease
|
|
767
794
|
*/
|
|
@@ -782,7 +809,7 @@ export interface TestTenantPoolApiReleaseRequest {
|
|
|
782
809
|
*/
|
|
783
810
|
export interface TestTenantPoolApiRetriggerCleanupRequest {
|
|
784
811
|
/**
|
|
785
|
-
*
|
|
812
|
+
* The pool registration id (not the tenant id).
|
|
786
813
|
* @type {number}
|
|
787
814
|
* @memberof TestTenantPoolApiRetriggerCleanup
|
|
788
815
|
*/
|
|
@@ -824,7 +851,7 @@ export interface TestTenantPoolApiUpdateCleanupRegistryRequest {
|
|
|
824
851
|
*/
|
|
825
852
|
export interface TestTenantPoolApiUpdateTagsRequest {
|
|
826
853
|
/**
|
|
827
|
-
*
|
|
854
|
+
* The slug of the tenant it was registered under.
|
|
828
855
|
* @type {string}
|
|
829
856
|
* @memberof TestTenantPoolApiUpdateTags
|
|
830
857
|
*/
|
|
@@ -853,7 +880,8 @@ export interface TestTenantPoolApiUpdateTagsRequest {
|
|
|
853
880
|
*/
|
|
854
881
|
export class TestTenantPoolApi extends BaseAPI {
|
|
855
882
|
/**
|
|
856
|
-
*
|
|
883
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
884
|
+
* @summary Check out an available pool tenant
|
|
857
885
|
* @param {TestTenantPoolApiCheckoutRequest} requestParameters Request parameters.
|
|
858
886
|
* @param {*} [options] Override http request option.
|
|
859
887
|
* @throws {RequiredError}
|
|
@@ -864,7 +892,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
864
892
|
}
|
|
865
893
|
|
|
866
894
|
/**
|
|
867
|
-
*
|
|
895
|
+
* 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\"
|
|
896
|
+
* @summary Deregister a pool tenant
|
|
868
897
|
* @param {TestTenantPoolApiDeregisterRequest} requestParameters Request parameters.
|
|
869
898
|
* @param {*} [options] Override http request option.
|
|
870
899
|
* @throws {RequiredError}
|
|
@@ -875,7 +904,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
875
904
|
}
|
|
876
905
|
|
|
877
906
|
/**
|
|
878
|
-
*
|
|
907
|
+
* 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\"
|
|
908
|
+
* @summary Read the shared cleanup registry
|
|
879
909
|
* @param {TestTenantPoolApiGetCleanupRegistryRequest} requestParameters Request parameters.
|
|
880
910
|
* @param {*} [options] Override http request option.
|
|
881
911
|
* @throws {RequiredError}
|
|
@@ -886,7 +916,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
886
916
|
}
|
|
887
917
|
|
|
888
918
|
/**
|
|
889
|
-
*
|
|
919
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
920
|
+
* @summary Extend a checked-out lease
|
|
890
921
|
* @param {TestTenantPoolApiHeartbeatRequest} requestParameters Request parameters.
|
|
891
922
|
* @param {*} [options] Override http request option.
|
|
892
923
|
* @throws {RequiredError}
|
|
@@ -897,7 +928,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
897
928
|
}
|
|
898
929
|
|
|
899
930
|
/**
|
|
900
|
-
*
|
|
931
|
+
* 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
|
+
* @summary Register a tenant into the test pool
|
|
901
933
|
* @param {TestTenantPoolApiRegisterRequest} requestParameters Request parameters.
|
|
902
934
|
* @param {*} [options] Override http request option.
|
|
903
935
|
* @throws {RequiredError}
|
|
@@ -908,7 +940,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
908
940
|
}
|
|
909
941
|
|
|
910
942
|
/**
|
|
911
|
-
*
|
|
943
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
944
|
+
* @summary Release a checked-out lease
|
|
912
945
|
* @param {TestTenantPoolApiReleaseRequest} requestParameters Request parameters.
|
|
913
946
|
* @param {*} [options] Override http request option.
|
|
914
947
|
* @throws {RequiredError}
|
|
@@ -919,7 +952,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
919
952
|
}
|
|
920
953
|
|
|
921
954
|
/**
|
|
922
|
-
*
|
|
955
|
+
* 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
|
+
* @summary Retry a failed cleanup
|
|
923
957
|
* @param {TestTenantPoolApiRetriggerCleanupRequest} requestParameters Request parameters.
|
|
924
958
|
* @param {*} [options] Override http request option.
|
|
925
959
|
* @throws {RequiredError}
|
|
@@ -930,7 +964,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
930
964
|
}
|
|
931
965
|
|
|
932
966
|
/**
|
|
933
|
-
*
|
|
967
|
+
* 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\"
|
|
968
|
+
* @summary Replace the shared cleanup registry
|
|
934
969
|
* @param {TestTenantPoolApiUpdateCleanupRegistryRequest} requestParameters Request parameters.
|
|
935
970
|
* @param {*} [options] Override http request option.
|
|
936
971
|
* @throws {RequiredError}
|
|
@@ -941,7 +976,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
941
976
|
}
|
|
942
977
|
|
|
943
978
|
/**
|
|
944
|
-
*
|
|
979
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
980
|
+
* @summary Replace a pool tenant\'s tags
|
|
945
981
|
* @param {TestTenantPoolApiUpdateTagsRequest} requestParameters Request parameters.
|
|
946
982
|
* @param {*} [options] Override http request option.
|
|
947
983
|
* @throws {RequiredError}
|
|
@@ -25,7 +25,8 @@ import { UpdateTagsBodyDto } from '../models';
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const TestTenantPoolApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
29
|
+
* @summary Check out an available pool tenant
|
|
29
30
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
30
31
|
* @param {string} [authorization] Bearer Token
|
|
31
32
|
* @param {*} [options] Override http request option.
|
|
@@ -33,30 +34,34 @@ export declare const TestTenantPoolApiAxiosParamCreator: (configuration?: Config
|
|
|
33
34
|
*/
|
|
34
35
|
checkout: (checkoutRequestDto: CheckoutRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
36
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @
|
|
37
|
+
* 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\"
|
|
38
|
+
* @summary Deregister a pool tenant
|
|
39
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
38
40
|
* @param {string} [authorization] Bearer Token
|
|
39
41
|
* @param {*} [options] Override http request option.
|
|
40
42
|
* @throws {RequiredError}
|
|
41
43
|
*/
|
|
42
44
|
deregister: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
45
|
/**
|
|
44
|
-
*
|
|
46
|
+
* 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\"
|
|
47
|
+
* @summary Read the shared cleanup registry
|
|
45
48
|
* @param {string} [authorization] Bearer Token
|
|
46
49
|
* @param {*} [options] Override http request option.
|
|
47
50
|
* @throws {RequiredError}
|
|
48
51
|
*/
|
|
49
52
|
getCleanupRegistry: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
53
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @
|
|
54
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
55
|
+
* @summary Extend a checked-out lease
|
|
56
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
53
57
|
* @param {string} [authorization] Bearer Token
|
|
54
58
|
* @param {*} [options] Override http request option.
|
|
55
59
|
* @throws {RequiredError}
|
|
56
60
|
*/
|
|
57
61
|
heartbeat: (leaseId: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
62
|
/**
|
|
59
|
-
*
|
|
63
|
+
* 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\"
|
|
64
|
+
* @summary Register a tenant into the test pool
|
|
60
65
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
61
66
|
* @param {string} [authorization] Bearer Token
|
|
62
67
|
* @param {*} [options] Override http request option.
|
|
@@ -64,23 +69,26 @@ export declare const TestTenantPoolApiAxiosParamCreator: (configuration?: Config
|
|
|
64
69
|
*/
|
|
65
70
|
register: (registerPoolTenantRequestDto: RegisterPoolTenantRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
66
71
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @
|
|
72
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
73
|
+
* @summary Release a checked-out lease
|
|
74
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
69
75
|
* @param {string} [authorization] Bearer Token
|
|
70
76
|
* @param {*} [options] Override http request option.
|
|
71
77
|
* @throws {RequiredError}
|
|
72
78
|
*/
|
|
73
79
|
release: (leaseId: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
80
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @
|
|
81
|
+
* 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\"
|
|
82
|
+
* @summary Retry a failed cleanup
|
|
83
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
77
84
|
* @param {string} [authorization] Bearer Token
|
|
78
85
|
* @param {*} [options] Override http request option.
|
|
79
86
|
* @throws {RequiredError}
|
|
80
87
|
*/
|
|
81
88
|
retriggerCleanup: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
82
89
|
/**
|
|
83
|
-
*
|
|
90
|
+
* 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\"
|
|
91
|
+
* @summary Replace the shared cleanup registry
|
|
84
92
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
85
93
|
* @param {string} [authorization] Bearer Token
|
|
86
94
|
* @param {*} [options] Override http request option.
|
|
@@ -88,8 +96,9 @@ export declare const TestTenantPoolApiAxiosParamCreator: (configuration?: Config
|
|
|
88
96
|
*/
|
|
89
97
|
updateCleanupRegistry: (cleanupRegistryRequestDto: CleanupRegistryRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
90
98
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @
|
|
99
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
100
|
+
* @summary Replace a pool tenant\'s tags
|
|
101
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
93
102
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
94
103
|
* @param {string} [authorization] Bearer Token
|
|
95
104
|
* @param {*} [options] Override http request option.
|
|
@@ -103,7 +112,8 @@ export declare const TestTenantPoolApiAxiosParamCreator: (configuration?: Config
|
|
|
103
112
|
*/
|
|
104
113
|
export declare const TestTenantPoolApiFp: (configuration?: Configuration) => {
|
|
105
114
|
/**
|
|
106
|
-
*
|
|
115
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
116
|
+
* @summary Check out an available pool tenant
|
|
107
117
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
108
118
|
* @param {string} [authorization] Bearer Token
|
|
109
119
|
* @param {*} [options] Override http request option.
|
|
@@ -111,30 +121,34 @@ export declare const TestTenantPoolApiFp: (configuration?: Configuration) => {
|
|
|
111
121
|
*/
|
|
112
122
|
checkout(checkoutRequestDto: CheckoutRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckoutResponseClass>>;
|
|
113
123
|
/**
|
|
114
|
-
*
|
|
115
|
-
* @
|
|
124
|
+
* 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\"
|
|
125
|
+
* @summary Deregister a pool tenant
|
|
126
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
116
127
|
* @param {string} [authorization] Bearer Token
|
|
117
128
|
* @param {*} [options] Override http request option.
|
|
118
129
|
* @throws {RequiredError}
|
|
119
130
|
*/
|
|
120
131
|
deregister(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
121
132
|
/**
|
|
122
|
-
*
|
|
133
|
+
* 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\"
|
|
134
|
+
* @summary Read the shared cleanup registry
|
|
123
135
|
* @param {string} [authorization] Bearer Token
|
|
124
136
|
* @param {*} [options] Override http request option.
|
|
125
137
|
* @throws {RequiredError}
|
|
126
138
|
*/
|
|
127
139
|
getCleanupRegistry(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CleanupRegistryResponseClass>>;
|
|
128
140
|
/**
|
|
129
|
-
*
|
|
130
|
-
* @
|
|
141
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
142
|
+
* @summary Extend a checked-out lease
|
|
143
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
131
144
|
* @param {string} [authorization] Bearer Token
|
|
132
145
|
* @param {*} [options] Override http request option.
|
|
133
146
|
* @throws {RequiredError}
|
|
134
147
|
*/
|
|
135
148
|
heartbeat(leaseId: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckoutResponseClass>>;
|
|
136
149
|
/**
|
|
137
|
-
*
|
|
150
|
+
* 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\"
|
|
151
|
+
* @summary Register a tenant into the test pool
|
|
138
152
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
139
153
|
* @param {string} [authorization] Bearer Token
|
|
140
154
|
* @param {*} [options] Override http request option.
|
|
@@ -142,23 +156,26 @@ export declare const TestTenantPoolApiFp: (configuration?: Configuration) => {
|
|
|
142
156
|
*/
|
|
143
157
|
register(registerPoolTenantRequestDto: RegisterPoolTenantRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PoolTenantResponseClass>>;
|
|
144
158
|
/**
|
|
145
|
-
*
|
|
146
|
-
* @
|
|
159
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
160
|
+
* @summary Release a checked-out lease
|
|
161
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
147
162
|
* @param {string} [authorization] Bearer Token
|
|
148
163
|
* @param {*} [options] Override http request option.
|
|
149
164
|
* @throws {RequiredError}
|
|
150
165
|
*/
|
|
151
166
|
release(leaseId: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
152
167
|
/**
|
|
153
|
-
*
|
|
154
|
-
* @
|
|
168
|
+
* 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\"
|
|
169
|
+
* @summary Retry a failed cleanup
|
|
170
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
155
171
|
* @param {string} [authorization] Bearer Token
|
|
156
172
|
* @param {*} [options] Override http request option.
|
|
157
173
|
* @throws {RequiredError}
|
|
158
174
|
*/
|
|
159
175
|
retriggerCleanup(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
160
176
|
/**
|
|
161
|
-
*
|
|
177
|
+
* 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\"
|
|
178
|
+
* @summary Replace the shared cleanup registry
|
|
162
179
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
163
180
|
* @param {string} [authorization] Bearer Token
|
|
164
181
|
* @param {*} [options] Override http request option.
|
|
@@ -166,8 +183,9 @@ export declare const TestTenantPoolApiFp: (configuration?: Configuration) => {
|
|
|
166
183
|
*/
|
|
167
184
|
updateCleanupRegistry(cleanupRegistryRequestDto: CleanupRegistryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CleanupRegistryResponseClass>>;
|
|
168
185
|
/**
|
|
169
|
-
*
|
|
170
|
-
* @
|
|
186
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
187
|
+
* @summary Replace a pool tenant\'s tags
|
|
188
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
171
189
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
172
190
|
* @param {string} [authorization] Bearer Token
|
|
173
191
|
* @param {*} [options] Override http request option.
|
|
@@ -181,7 +199,8 @@ export declare const TestTenantPoolApiFp: (configuration?: Configuration) => {
|
|
|
181
199
|
*/
|
|
182
200
|
export declare const TestTenantPoolApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
183
201
|
/**
|
|
184
|
-
*
|
|
202
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
203
|
+
* @summary Check out an available pool tenant
|
|
185
204
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
186
205
|
* @param {string} [authorization] Bearer Token
|
|
187
206
|
* @param {*} [options] Override http request option.
|
|
@@ -189,30 +208,34 @@ export declare const TestTenantPoolApiFactory: (configuration?: Configuration, b
|
|
|
189
208
|
*/
|
|
190
209
|
checkout(checkoutRequestDto: CheckoutRequestDto, authorization?: string, options?: any): AxiosPromise<CheckoutResponseClass>;
|
|
191
210
|
/**
|
|
192
|
-
*
|
|
193
|
-
* @
|
|
211
|
+
* 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\"
|
|
212
|
+
* @summary Deregister a pool tenant
|
|
213
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
194
214
|
* @param {string} [authorization] Bearer Token
|
|
195
215
|
* @param {*} [options] Override http request option.
|
|
196
216
|
* @throws {RequiredError}
|
|
197
217
|
*/
|
|
198
218
|
deregister(id: number, authorization?: string, options?: any): AxiosPromise<void>;
|
|
199
219
|
/**
|
|
200
|
-
*
|
|
220
|
+
* 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\"
|
|
221
|
+
* @summary Read the shared cleanup registry
|
|
201
222
|
* @param {string} [authorization] Bearer Token
|
|
202
223
|
* @param {*} [options] Override http request option.
|
|
203
224
|
* @throws {RequiredError}
|
|
204
225
|
*/
|
|
205
226
|
getCleanupRegistry(authorization?: string, options?: any): AxiosPromise<CleanupRegistryResponseClass>;
|
|
206
227
|
/**
|
|
207
|
-
*
|
|
208
|
-
* @
|
|
228
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
229
|
+
* @summary Extend a checked-out lease
|
|
230
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
209
231
|
* @param {string} [authorization] Bearer Token
|
|
210
232
|
* @param {*} [options] Override http request option.
|
|
211
233
|
* @throws {RequiredError}
|
|
212
234
|
*/
|
|
213
235
|
heartbeat(leaseId: string, authorization?: string, options?: any): AxiosPromise<CheckoutResponseClass>;
|
|
214
236
|
/**
|
|
215
|
-
*
|
|
237
|
+
* 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\"
|
|
238
|
+
* @summary Register a tenant into the test pool
|
|
216
239
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
217
240
|
* @param {string} [authorization] Bearer Token
|
|
218
241
|
* @param {*} [options] Override http request option.
|
|
@@ -220,23 +243,26 @@ export declare const TestTenantPoolApiFactory: (configuration?: Configuration, b
|
|
|
220
243
|
*/
|
|
221
244
|
register(registerPoolTenantRequestDto: RegisterPoolTenantRequestDto, authorization?: string, options?: any): AxiosPromise<PoolTenantResponseClass>;
|
|
222
245
|
/**
|
|
223
|
-
*
|
|
224
|
-
* @
|
|
246
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
247
|
+
* @summary Release a checked-out lease
|
|
248
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
225
249
|
* @param {string} [authorization] Bearer Token
|
|
226
250
|
* @param {*} [options] Override http request option.
|
|
227
251
|
* @throws {RequiredError}
|
|
228
252
|
*/
|
|
229
253
|
release(leaseId: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
230
254
|
/**
|
|
231
|
-
*
|
|
232
|
-
* @
|
|
255
|
+
* 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\"
|
|
256
|
+
* @summary Retry a failed cleanup
|
|
257
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
233
258
|
* @param {string} [authorization] Bearer Token
|
|
234
259
|
* @param {*} [options] Override http request option.
|
|
235
260
|
* @throws {RequiredError}
|
|
236
261
|
*/
|
|
237
262
|
retriggerCleanup(id: number, authorization?: string, options?: any): AxiosPromise<void>;
|
|
238
263
|
/**
|
|
239
|
-
*
|
|
264
|
+
* 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\"
|
|
265
|
+
* @summary Replace the shared cleanup registry
|
|
240
266
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
241
267
|
* @param {string} [authorization] Bearer Token
|
|
242
268
|
* @param {*} [options] Override http request option.
|
|
@@ -244,8 +270,9 @@ export declare const TestTenantPoolApiFactory: (configuration?: Configuration, b
|
|
|
244
270
|
*/
|
|
245
271
|
updateCleanupRegistry(cleanupRegistryRequestDto: CleanupRegistryRequestDto, authorization?: string, options?: any): AxiosPromise<CleanupRegistryResponseClass>;
|
|
246
272
|
/**
|
|
247
|
-
*
|
|
248
|
-
* @
|
|
273
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
274
|
+
* @summary Replace a pool tenant\'s tags
|
|
275
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
249
276
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
250
277
|
* @param {string} [authorization] Bearer Token
|
|
251
278
|
* @param {*} [options] Override http request option.
|
|
@@ -279,7 +306,7 @@ export interface TestTenantPoolApiCheckoutRequest {
|
|
|
279
306
|
*/
|
|
280
307
|
export interface TestTenantPoolApiDeregisterRequest {
|
|
281
308
|
/**
|
|
282
|
-
*
|
|
309
|
+
* The pool registration id (not the tenant id).
|
|
283
310
|
* @type {number}
|
|
284
311
|
* @memberof TestTenantPoolApiDeregister
|
|
285
312
|
*/
|
|
@@ -311,7 +338,7 @@ export interface TestTenantPoolApiGetCleanupRegistryRequest {
|
|
|
311
338
|
*/
|
|
312
339
|
export interface TestTenantPoolApiHeartbeatRequest {
|
|
313
340
|
/**
|
|
314
|
-
*
|
|
341
|
+
* The lease id returned by checkout.
|
|
315
342
|
* @type {string}
|
|
316
343
|
* @memberof TestTenantPoolApiHeartbeat
|
|
317
344
|
*/
|
|
@@ -349,7 +376,7 @@ export interface TestTenantPoolApiRegisterRequest {
|
|
|
349
376
|
*/
|
|
350
377
|
export interface TestTenantPoolApiReleaseRequest {
|
|
351
378
|
/**
|
|
352
|
-
*
|
|
379
|
+
* The lease id returned by checkout.
|
|
353
380
|
* @type {string}
|
|
354
381
|
* @memberof TestTenantPoolApiRelease
|
|
355
382
|
*/
|
|
@@ -368,7 +395,7 @@ export interface TestTenantPoolApiReleaseRequest {
|
|
|
368
395
|
*/
|
|
369
396
|
export interface TestTenantPoolApiRetriggerCleanupRequest {
|
|
370
397
|
/**
|
|
371
|
-
*
|
|
398
|
+
* The pool registration id (not the tenant id).
|
|
372
399
|
* @type {number}
|
|
373
400
|
* @memberof TestTenantPoolApiRetriggerCleanup
|
|
374
401
|
*/
|
|
@@ -406,7 +433,7 @@ export interface TestTenantPoolApiUpdateCleanupRegistryRequest {
|
|
|
406
433
|
*/
|
|
407
434
|
export interface TestTenantPoolApiUpdateTagsRequest {
|
|
408
435
|
/**
|
|
409
|
-
*
|
|
436
|
+
* The slug of the tenant it was registered under.
|
|
410
437
|
* @type {string}
|
|
411
438
|
* @memberof TestTenantPoolApiUpdateTags
|
|
412
439
|
*/
|
|
@@ -432,7 +459,8 @@ export interface TestTenantPoolApiUpdateTagsRequest {
|
|
|
432
459
|
*/
|
|
433
460
|
export declare class TestTenantPoolApi extends BaseAPI {
|
|
434
461
|
/**
|
|
435
|
-
*
|
|
462
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
463
|
+
* @summary Check out an available pool tenant
|
|
436
464
|
* @param {TestTenantPoolApiCheckoutRequest} requestParameters Request parameters.
|
|
437
465
|
* @param {*} [options] Override http request option.
|
|
438
466
|
* @throws {RequiredError}
|
|
@@ -440,7 +468,8 @@ export declare class TestTenantPoolApi extends BaseAPI {
|
|
|
440
468
|
*/
|
|
441
469
|
checkout(requestParameters: TestTenantPoolApiCheckoutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckoutResponseClass, any, {}>>;
|
|
442
470
|
/**
|
|
443
|
-
*
|
|
471
|
+
* 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\"
|
|
472
|
+
* @summary Deregister a pool tenant
|
|
444
473
|
* @param {TestTenantPoolApiDeregisterRequest} requestParameters Request parameters.
|
|
445
474
|
* @param {*} [options] Override http request option.
|
|
446
475
|
* @throws {RequiredError}
|
|
@@ -448,7 +477,8 @@ export declare class TestTenantPoolApi extends BaseAPI {
|
|
|
448
477
|
*/
|
|
449
478
|
deregister(requestParameters: TestTenantPoolApiDeregisterRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
450
479
|
/**
|
|
451
|
-
*
|
|
480
|
+
* 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\"
|
|
481
|
+
* @summary Read the shared cleanup registry
|
|
452
482
|
* @param {TestTenantPoolApiGetCleanupRegistryRequest} requestParameters Request parameters.
|
|
453
483
|
* @param {*} [options] Override http request option.
|
|
454
484
|
* @throws {RequiredError}
|
|
@@ -456,7 +486,8 @@ export declare class TestTenantPoolApi extends BaseAPI {
|
|
|
456
486
|
*/
|
|
457
487
|
getCleanupRegistry(requestParameters?: TestTenantPoolApiGetCleanupRegistryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CleanupRegistryResponseClass, any, {}>>;
|
|
458
488
|
/**
|
|
459
|
-
*
|
|
489
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
490
|
+
* @summary Extend a checked-out lease
|
|
460
491
|
* @param {TestTenantPoolApiHeartbeatRequest} requestParameters Request parameters.
|
|
461
492
|
* @param {*} [options] Override http request option.
|
|
462
493
|
* @throws {RequiredError}
|
|
@@ -464,7 +495,8 @@ export declare class TestTenantPoolApi extends BaseAPI {
|
|
|
464
495
|
*/
|
|
465
496
|
heartbeat(requestParameters: TestTenantPoolApiHeartbeatRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CheckoutResponseClass, any, {}>>;
|
|
466
497
|
/**
|
|
467
|
-
*
|
|
498
|
+
* 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\"
|
|
499
|
+
* @summary Register a tenant into the test pool
|
|
468
500
|
* @param {TestTenantPoolApiRegisterRequest} requestParameters Request parameters.
|
|
469
501
|
* @param {*} [options] Override http request option.
|
|
470
502
|
* @throws {RequiredError}
|
|
@@ -472,7 +504,8 @@ export declare class TestTenantPoolApi extends BaseAPI {
|
|
|
472
504
|
*/
|
|
473
505
|
register(requestParameters: TestTenantPoolApiRegisterRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PoolTenantResponseClass, any, {}>>;
|
|
474
506
|
/**
|
|
475
|
-
*
|
|
507
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
508
|
+
* @summary Release a checked-out lease
|
|
476
509
|
* @param {TestTenantPoolApiReleaseRequest} requestParameters Request parameters.
|
|
477
510
|
* @param {*} [options] Override http request option.
|
|
478
511
|
* @throws {RequiredError}
|
|
@@ -480,7 +513,8 @@ export declare class TestTenantPoolApi extends BaseAPI {
|
|
|
480
513
|
*/
|
|
481
514
|
release(requestParameters: TestTenantPoolApiReleaseRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
482
515
|
/**
|
|
483
|
-
*
|
|
516
|
+
* 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\"
|
|
517
|
+
* @summary Retry a failed cleanup
|
|
484
518
|
* @param {TestTenantPoolApiRetriggerCleanupRequest} requestParameters Request parameters.
|
|
485
519
|
* @param {*} [options] Override http request option.
|
|
486
520
|
* @throws {RequiredError}
|
|
@@ -488,7 +522,8 @@ export declare class TestTenantPoolApi extends BaseAPI {
|
|
|
488
522
|
*/
|
|
489
523
|
retriggerCleanup(requestParameters: TestTenantPoolApiRetriggerCleanupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
490
524
|
/**
|
|
491
|
-
*
|
|
525
|
+
* 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\"
|
|
526
|
+
* @summary Replace the shared cleanup registry
|
|
492
527
|
* @param {TestTenantPoolApiUpdateCleanupRegistryRequest} requestParameters Request parameters.
|
|
493
528
|
* @param {*} [options] Override http request option.
|
|
494
529
|
* @throws {RequiredError}
|
|
@@ -496,7 +531,8 @@ export declare class TestTenantPoolApi extends BaseAPI {
|
|
|
496
531
|
*/
|
|
497
532
|
updateCleanupRegistry(requestParameters: TestTenantPoolApiUpdateCleanupRegistryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CleanupRegistryResponseClass, any, {}>>;
|
|
498
533
|
/**
|
|
499
|
-
*
|
|
534
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
535
|
+
* @summary Replace a pool tenant\'s tags
|
|
500
536
|
* @param {TestTenantPoolApiUpdateTagsRequest} requestParameters Request parameters.
|
|
501
537
|
* @param {*} [options] Override http request option.
|
|
502
538
|
* @throws {RequiredError}
|
|
@@ -93,7 +93,8 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
97
|
+
* @summary Check out an available pool tenant
|
|
97
98
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
98
99
|
* @param {string} [authorization] Bearer Token
|
|
99
100
|
* @param {*} [options] Override http request option.
|
|
@@ -141,8 +142,9 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
141
142
|
});
|
|
142
143
|
},
|
|
143
144
|
/**
|
|
144
|
-
*
|
|
145
|
-
* @
|
|
145
|
+
* 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\"
|
|
146
|
+
* @summary Deregister a pool tenant
|
|
147
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
146
148
|
* @param {string} [authorization] Bearer Token
|
|
147
149
|
* @param {*} [options] Override http request option.
|
|
148
150
|
* @throws {RequiredError}
|
|
@@ -188,7 +190,8 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
188
190
|
});
|
|
189
191
|
},
|
|
190
192
|
/**
|
|
191
|
-
*
|
|
193
|
+
* 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\"
|
|
194
|
+
* @summary Read the shared cleanup registry
|
|
192
195
|
* @param {string} [authorization] Bearer Token
|
|
193
196
|
* @param {*} [options] Override http request option.
|
|
194
197
|
* @throws {RequiredError}
|
|
@@ -231,8 +234,9 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
231
234
|
});
|
|
232
235
|
},
|
|
233
236
|
/**
|
|
234
|
-
*
|
|
235
|
-
* @
|
|
237
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
238
|
+
* @summary Extend a checked-out lease
|
|
239
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
236
240
|
* @param {string} [authorization] Bearer Token
|
|
237
241
|
* @param {*} [options] Override http request option.
|
|
238
242
|
* @throws {RequiredError}
|
|
@@ -278,7 +282,8 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
278
282
|
});
|
|
279
283
|
},
|
|
280
284
|
/**
|
|
281
|
-
*
|
|
285
|
+
* 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\"
|
|
286
|
+
* @summary Register a tenant into the test pool
|
|
282
287
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
283
288
|
* @param {string} [authorization] Bearer Token
|
|
284
289
|
* @param {*} [options] Override http request option.
|
|
@@ -326,8 +331,9 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
326
331
|
});
|
|
327
332
|
},
|
|
328
333
|
/**
|
|
329
|
-
*
|
|
330
|
-
* @
|
|
334
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
335
|
+
* @summary Release a checked-out lease
|
|
336
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
331
337
|
* @param {string} [authorization] Bearer Token
|
|
332
338
|
* @param {*} [options] Override http request option.
|
|
333
339
|
* @throws {RequiredError}
|
|
@@ -373,8 +379,9 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
373
379
|
});
|
|
374
380
|
},
|
|
375
381
|
/**
|
|
376
|
-
*
|
|
377
|
-
* @
|
|
382
|
+
* 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\"
|
|
383
|
+
* @summary Retry a failed cleanup
|
|
384
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
378
385
|
* @param {string} [authorization] Bearer Token
|
|
379
386
|
* @param {*} [options] Override http request option.
|
|
380
387
|
* @throws {RequiredError}
|
|
@@ -420,7 +427,8 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
420
427
|
});
|
|
421
428
|
},
|
|
422
429
|
/**
|
|
423
|
-
*
|
|
430
|
+
* 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\"
|
|
431
|
+
* @summary Replace the shared cleanup registry
|
|
424
432
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
425
433
|
* @param {string} [authorization] Bearer Token
|
|
426
434
|
* @param {*} [options] Override http request option.
|
|
@@ -468,8 +476,9 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
468
476
|
});
|
|
469
477
|
},
|
|
470
478
|
/**
|
|
471
|
-
*
|
|
472
|
-
* @
|
|
479
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
480
|
+
* @summary Replace a pool tenant\'s tags
|
|
481
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
473
482
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
474
483
|
* @param {string} [authorization] Bearer Token
|
|
475
484
|
* @param {*} [options] Override http request option.
|
|
@@ -530,7 +539,8 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
530
539
|
var localVarAxiosParamCreator = (0, exports.TestTenantPoolApiAxiosParamCreator)(configuration);
|
|
531
540
|
return {
|
|
532
541
|
/**
|
|
533
|
-
*
|
|
542
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
543
|
+
* @summary Check out an available pool tenant
|
|
534
544
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
535
545
|
* @param {string} [authorization] Bearer Token
|
|
536
546
|
* @param {*} [options] Override http request option.
|
|
@@ -550,8 +560,9 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
550
560
|
});
|
|
551
561
|
},
|
|
552
562
|
/**
|
|
553
|
-
*
|
|
554
|
-
* @
|
|
563
|
+
* 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\"
|
|
564
|
+
* @summary Deregister a pool tenant
|
|
565
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
555
566
|
* @param {string} [authorization] Bearer Token
|
|
556
567
|
* @param {*} [options] Override http request option.
|
|
557
568
|
* @throws {RequiredError}
|
|
@@ -570,7 +581,8 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
570
581
|
});
|
|
571
582
|
},
|
|
572
583
|
/**
|
|
573
|
-
*
|
|
584
|
+
* 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\"
|
|
585
|
+
* @summary Read the shared cleanup registry
|
|
574
586
|
* @param {string} [authorization] Bearer Token
|
|
575
587
|
* @param {*} [options] Override http request option.
|
|
576
588
|
* @throws {RequiredError}
|
|
@@ -589,8 +601,9 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
589
601
|
});
|
|
590
602
|
},
|
|
591
603
|
/**
|
|
592
|
-
*
|
|
593
|
-
* @
|
|
604
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
605
|
+
* @summary Extend a checked-out lease
|
|
606
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
594
607
|
* @param {string} [authorization] Bearer Token
|
|
595
608
|
* @param {*} [options] Override http request option.
|
|
596
609
|
* @throws {RequiredError}
|
|
@@ -609,7 +622,8 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
609
622
|
});
|
|
610
623
|
},
|
|
611
624
|
/**
|
|
612
|
-
*
|
|
625
|
+
* 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\"
|
|
626
|
+
* @summary Register a tenant into the test pool
|
|
613
627
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
614
628
|
* @param {string} [authorization] Bearer Token
|
|
615
629
|
* @param {*} [options] Override http request option.
|
|
@@ -629,8 +643,9 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
629
643
|
});
|
|
630
644
|
},
|
|
631
645
|
/**
|
|
632
|
-
*
|
|
633
|
-
* @
|
|
646
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
647
|
+
* @summary Release a checked-out lease
|
|
648
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
634
649
|
* @param {string} [authorization] Bearer Token
|
|
635
650
|
* @param {*} [options] Override http request option.
|
|
636
651
|
* @throws {RequiredError}
|
|
@@ -649,8 +664,9 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
649
664
|
});
|
|
650
665
|
},
|
|
651
666
|
/**
|
|
652
|
-
*
|
|
653
|
-
* @
|
|
667
|
+
* 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\"
|
|
668
|
+
* @summary Retry a failed cleanup
|
|
669
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
654
670
|
* @param {string} [authorization] Bearer Token
|
|
655
671
|
* @param {*} [options] Override http request option.
|
|
656
672
|
* @throws {RequiredError}
|
|
@@ -669,7 +685,8 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
669
685
|
});
|
|
670
686
|
},
|
|
671
687
|
/**
|
|
672
|
-
*
|
|
688
|
+
* 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\"
|
|
689
|
+
* @summary Replace the shared cleanup registry
|
|
673
690
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
674
691
|
* @param {string} [authorization] Bearer Token
|
|
675
692
|
* @param {*} [options] Override http request option.
|
|
@@ -689,8 +706,9 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
689
706
|
});
|
|
690
707
|
},
|
|
691
708
|
/**
|
|
692
|
-
*
|
|
693
|
-
* @
|
|
709
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
710
|
+
* @summary Replace a pool tenant\'s tags
|
|
711
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
694
712
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
695
713
|
* @param {string} [authorization] Bearer Token
|
|
696
714
|
* @param {*} [options] Override http request option.
|
|
@@ -720,7 +738,8 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
720
738
|
var localVarFp = (0, exports.TestTenantPoolApiFp)(configuration);
|
|
721
739
|
return {
|
|
722
740
|
/**
|
|
723
|
-
*
|
|
741
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
742
|
+
* @summary Check out an available pool tenant
|
|
724
743
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
725
744
|
* @param {string} [authorization] Bearer Token
|
|
726
745
|
* @param {*} [options] Override http request option.
|
|
@@ -730,8 +749,9 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
730
749
|
return localVarFp.checkout(checkoutRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
731
750
|
},
|
|
732
751
|
/**
|
|
733
|
-
*
|
|
734
|
-
* @
|
|
752
|
+
* 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\"
|
|
753
|
+
* @summary Deregister a pool tenant
|
|
754
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
735
755
|
* @param {string} [authorization] Bearer Token
|
|
736
756
|
* @param {*} [options] Override http request option.
|
|
737
757
|
* @throws {RequiredError}
|
|
@@ -740,7 +760,8 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
740
760
|
return localVarFp.deregister(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
741
761
|
},
|
|
742
762
|
/**
|
|
743
|
-
*
|
|
763
|
+
* 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\"
|
|
764
|
+
* @summary Read the shared cleanup registry
|
|
744
765
|
* @param {string} [authorization] Bearer Token
|
|
745
766
|
* @param {*} [options] Override http request option.
|
|
746
767
|
* @throws {RequiredError}
|
|
@@ -749,8 +770,9 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
749
770
|
return localVarFp.getCleanupRegistry(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
750
771
|
},
|
|
751
772
|
/**
|
|
752
|
-
*
|
|
753
|
-
* @
|
|
773
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
774
|
+
* @summary Extend a checked-out lease
|
|
775
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
754
776
|
* @param {string} [authorization] Bearer Token
|
|
755
777
|
* @param {*} [options] Override http request option.
|
|
756
778
|
* @throws {RequiredError}
|
|
@@ -759,7 +781,8 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
759
781
|
return localVarFp.heartbeat(leaseId, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
760
782
|
},
|
|
761
783
|
/**
|
|
762
|
-
*
|
|
784
|
+
* 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\"
|
|
785
|
+
* @summary Register a tenant into the test pool
|
|
763
786
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
764
787
|
* @param {string} [authorization] Bearer Token
|
|
765
788
|
* @param {*} [options] Override http request option.
|
|
@@ -769,8 +792,9 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
769
792
|
return localVarFp.register(registerPoolTenantRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
770
793
|
},
|
|
771
794
|
/**
|
|
772
|
-
*
|
|
773
|
-
* @
|
|
795
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
796
|
+
* @summary Release a checked-out lease
|
|
797
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
774
798
|
* @param {string} [authorization] Bearer Token
|
|
775
799
|
* @param {*} [options] Override http request option.
|
|
776
800
|
* @throws {RequiredError}
|
|
@@ -779,8 +803,9 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
779
803
|
return localVarFp.release(leaseId, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
780
804
|
},
|
|
781
805
|
/**
|
|
782
|
-
*
|
|
783
|
-
* @
|
|
806
|
+
* 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\"
|
|
807
|
+
* @summary Retry a failed cleanup
|
|
808
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
784
809
|
* @param {string} [authorization] Bearer Token
|
|
785
810
|
* @param {*} [options] Override http request option.
|
|
786
811
|
* @throws {RequiredError}
|
|
@@ -789,7 +814,8 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
789
814
|
return localVarFp.retriggerCleanup(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
790
815
|
},
|
|
791
816
|
/**
|
|
792
|
-
*
|
|
817
|
+
* 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\"
|
|
818
|
+
* @summary Replace the shared cleanup registry
|
|
793
819
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
794
820
|
* @param {string} [authorization] Bearer Token
|
|
795
821
|
* @param {*} [options] Override http request option.
|
|
@@ -799,8 +825,9 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
799
825
|
return localVarFp.updateCleanupRegistry(cleanupRegistryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
800
826
|
},
|
|
801
827
|
/**
|
|
802
|
-
*
|
|
803
|
-
* @
|
|
828
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
829
|
+
* @summary Replace a pool tenant\'s tags
|
|
830
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
804
831
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
805
832
|
* @param {string} [authorization] Bearer Token
|
|
806
833
|
* @param {*} [options] Override http request option.
|
|
@@ -824,7 +851,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
824
851
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
825
852
|
}
|
|
826
853
|
/**
|
|
827
|
-
*
|
|
854
|
+
* Atomically claims one available pool tenant whose tags match the given filter and marks it leased for the given duration (defaults to 30 minutes). Concurrent callers requesting the same tags never receive the same tenant. **Required Permissions** \"tenant-management.tenants.update\"
|
|
855
|
+
* @summary Check out an available pool tenant
|
|
828
856
|
* @param {TestTenantPoolApiCheckoutRequest} requestParameters Request parameters.
|
|
829
857
|
* @param {*} [options] Override http request option.
|
|
830
858
|
* @throws {RequiredError}
|
|
@@ -835,7 +863,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
835
863
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).checkout(requestParameters.checkoutRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
836
864
|
};
|
|
837
865
|
/**
|
|
838
|
-
*
|
|
866
|
+
* 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\"
|
|
867
|
+
* @summary Deregister a pool tenant
|
|
839
868
|
* @param {TestTenantPoolApiDeregisterRequest} requestParameters Request parameters.
|
|
840
869
|
* @param {*} [options] Override http request option.
|
|
841
870
|
* @throws {RequiredError}
|
|
@@ -846,7 +875,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
846
875
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).deregister(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
847
876
|
};
|
|
848
877
|
/**
|
|
849
|
-
*
|
|
878
|
+
* 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\"
|
|
879
|
+
* @summary Read the shared cleanup registry
|
|
850
880
|
* @param {TestTenantPoolApiGetCleanupRegistryRequest} requestParameters Request parameters.
|
|
851
881
|
* @param {*} [options] Override http request option.
|
|
852
882
|
* @throws {RequiredError}
|
|
@@ -858,7 +888,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
858
888
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).getCleanupRegistry(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
859
889
|
};
|
|
860
890
|
/**
|
|
861
|
-
*
|
|
891
|
+
* Resets the countdown on the lease held by leaseId to the given duration (defaults to 30 minutes). Callers should call this periodically while still using the tenant, since an unextended lease eventually expires and is reclaimed by the background sweep. **Required Permissions** \"tenant-management.tenants.update\"
|
|
892
|
+
* @summary Extend a checked-out lease
|
|
862
893
|
* @param {TestTenantPoolApiHeartbeatRequest} requestParameters Request parameters.
|
|
863
894
|
* @param {*} [options] Override http request option.
|
|
864
895
|
* @throws {RequiredError}
|
|
@@ -869,7 +900,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
869
900
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).heartbeat(requestParameters.leaseId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
870
901
|
};
|
|
871
902
|
/**
|
|
872
|
-
*
|
|
903
|
+
* 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\"
|
|
904
|
+
* @summary Register a tenant into the test pool
|
|
873
905
|
* @param {TestTenantPoolApiRegisterRequest} requestParameters Request parameters.
|
|
874
906
|
* @param {*} [options] Override http request option.
|
|
875
907
|
* @throws {RequiredError}
|
|
@@ -880,7 +912,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
880
912
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).register(requestParameters.registerPoolTenantRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
881
913
|
};
|
|
882
914
|
/**
|
|
883
|
-
*
|
|
915
|
+
* Ends the lease immediately and asynchronously triggers the tenant\'s cleanup, so it becomes available again once cleanup finishes. Cleanup is fire-and-forget: this call returns before cleanup completes. **Required Permissions** \"tenant-management.tenants.update\"
|
|
916
|
+
* @summary Release a checked-out lease
|
|
884
917
|
* @param {TestTenantPoolApiReleaseRequest} requestParameters Request parameters.
|
|
885
918
|
* @param {*} [options] Override http request option.
|
|
886
919
|
* @throws {RequiredError}
|
|
@@ -891,7 +924,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
891
924
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).release(requestParameters.leaseId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
892
925
|
};
|
|
893
926
|
/**
|
|
894
|
-
*
|
|
927
|
+
* 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\"
|
|
928
|
+
* @summary Retry a failed cleanup
|
|
895
929
|
* @param {TestTenantPoolApiRetriggerCleanupRequest} requestParameters Request parameters.
|
|
896
930
|
* @param {*} [options] Override http request option.
|
|
897
931
|
* @throws {RequiredError}
|
|
@@ -902,7 +936,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
902
936
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).retriggerCleanup(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
903
937
|
};
|
|
904
938
|
/**
|
|
905
|
-
*
|
|
939
|
+
* 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\"
|
|
940
|
+
* @summary Replace the shared cleanup registry
|
|
906
941
|
* @param {TestTenantPoolApiUpdateCleanupRegistryRequest} requestParameters Request parameters.
|
|
907
942
|
* @param {*} [options] Override http request option.
|
|
908
943
|
* @throws {RequiredError}
|
|
@@ -913,7 +948,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
913
948
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).updateCleanupRegistry(requestParameters.cleanupRegistryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
914
949
|
};
|
|
915
950
|
/**
|
|
916
|
-
*
|
|
951
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
952
|
+
* @summary Replace a pool tenant\'s tags
|
|
917
953
|
* @param {TestTenantPoolApiUpdateTagsRequest} requestParameters Request parameters.
|
|
918
954
|
* @param {*} [options] Override http request option.
|
|
919
955
|
* @throws {RequiredError}
|