@emilgroup/tenant-sdk-node 1.39.1-beta.28 → 1.39.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-node@1.39.1-beta.
|
|
20
|
+
npm install @emilgroup/tenant-sdk-node@1.39.1-beta.29 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk-node@1.39.1-beta.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk-node@1.39.1-beta.29
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
|
@@ -45,7 +45,8 @@ const FormData = require('form-data');
|
|
|
45
45
|
export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
46
46
|
return {
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* 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\"
|
|
49
|
+
* @summary Check out an available pool tenant
|
|
49
50
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
50
51
|
* @param {string} [authorization] Bearer Token
|
|
51
52
|
* @param {*} [options] Override http request option.
|
|
@@ -91,8 +92,9 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
91
92
|
};
|
|
92
93
|
},
|
|
93
94
|
/**
|
|
94
|
-
*
|
|
95
|
-
* @
|
|
95
|
+
* Removes the pool registration only -- never the underlying tenant. Refused unless the pool tenant is available, so an active lease or in-flight cleanup can never be deregistered out from under itself. **Required Permissions** \"tenant-management.tenants.delete\"
|
|
96
|
+
* @summary Deregister a pool tenant
|
|
97
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
96
98
|
* @param {string} [authorization] Bearer Token
|
|
97
99
|
* @param {*} [options] Override http request option.
|
|
98
100
|
* @throws {RequiredError}
|
|
@@ -135,7 +137,8 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
135
137
|
};
|
|
136
138
|
},
|
|
137
139
|
/**
|
|
138
|
-
*
|
|
140
|
+
* 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\"
|
|
141
|
+
* @summary Read the shared cleanup registry
|
|
139
142
|
* @param {string} [authorization] Bearer Token
|
|
140
143
|
* @param {*} [options] Override http request option.
|
|
141
144
|
* @throws {RequiredError}
|
|
@@ -175,8 +178,9 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
175
178
|
};
|
|
176
179
|
},
|
|
177
180
|
/**
|
|
178
|
-
*
|
|
179
|
-
* @
|
|
181
|
+
* 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\"
|
|
182
|
+
* @summary Extend a checked-out lease
|
|
183
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
180
184
|
* @param {string} [authorization] Bearer Token
|
|
181
185
|
* @param {*} [options] Override http request option.
|
|
182
186
|
* @throws {RequiredError}
|
|
@@ -219,7 +223,8 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
219
223
|
};
|
|
220
224
|
},
|
|
221
225
|
/**
|
|
222
|
-
*
|
|
226
|
+
* 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\"
|
|
227
|
+
* @summary Register a tenant into the test pool
|
|
223
228
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
224
229
|
* @param {string} [authorization] Bearer Token
|
|
225
230
|
* @param {*} [options] Override http request option.
|
|
@@ -265,8 +270,9 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
265
270
|
};
|
|
266
271
|
},
|
|
267
272
|
/**
|
|
268
|
-
*
|
|
269
|
-
* @
|
|
273
|
+
* 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\"
|
|
274
|
+
* @summary Release a checked-out lease
|
|
275
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
270
276
|
* @param {string} [authorization] Bearer Token
|
|
271
277
|
* @param {*} [options] Override http request option.
|
|
272
278
|
* @throws {RequiredError}
|
|
@@ -309,8 +315,9 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
309
315
|
};
|
|
310
316
|
},
|
|
311
317
|
/**
|
|
312
|
-
*
|
|
313
|
-
* @
|
|
318
|
+
* Re-attempts cleanup for a pool tenant stuck in reset_failed, moving it back to leased and resubmitting the cleanup job. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
|
|
319
|
+
* @summary Retry a failed cleanup
|
|
320
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
314
321
|
* @param {string} [authorization] Bearer Token
|
|
315
322
|
* @param {*} [options] Override http request option.
|
|
316
323
|
* @throws {RequiredError}
|
|
@@ -353,7 +360,8 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
353
360
|
};
|
|
354
361
|
},
|
|
355
362
|
/**
|
|
356
|
-
*
|
|
363
|
+
* 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\"
|
|
364
|
+
* @summary Replace the shared cleanup registry
|
|
357
365
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
358
366
|
* @param {string} [authorization] Bearer Token
|
|
359
367
|
* @param {*} [options] Override http request option.
|
|
@@ -399,8 +407,9 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
|
|
|
399
407
|
};
|
|
400
408
|
},
|
|
401
409
|
/**
|
|
402
|
-
*
|
|
403
|
-
* @
|
|
410
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
411
|
+
* @summary Replace a pool tenant\'s tags
|
|
412
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
404
413
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
405
414
|
* @param {string} [authorization] Bearer Token
|
|
406
415
|
* @param {*} [options] Override http request option.
|
|
@@ -459,7 +468,8 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
459
468
|
const localVarAxiosParamCreator = TestTenantPoolApiAxiosParamCreator(configuration)
|
|
460
469
|
return {
|
|
461
470
|
/**
|
|
462
|
-
*
|
|
471
|
+
* 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\"
|
|
472
|
+
* @summary Check out an available pool tenant
|
|
463
473
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
464
474
|
* @param {string} [authorization] Bearer Token
|
|
465
475
|
* @param {*} [options] Override http request option.
|
|
@@ -470,8 +480,9 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
470
480
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
471
481
|
},
|
|
472
482
|
/**
|
|
473
|
-
*
|
|
474
|
-
* @
|
|
483
|
+
* Removes the pool registration only -- never the underlying tenant. Refused unless the pool tenant is available, so an active lease or in-flight cleanup can never be deregistered out from under itself. **Required Permissions** \"tenant-management.tenants.delete\"
|
|
484
|
+
* @summary Deregister a pool tenant
|
|
485
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
475
486
|
* @param {string} [authorization] Bearer Token
|
|
476
487
|
* @param {*} [options] Override http request option.
|
|
477
488
|
* @throws {RequiredError}
|
|
@@ -481,7 +492,8 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
481
492
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
482
493
|
},
|
|
483
494
|
/**
|
|
484
|
-
*
|
|
495
|
+
* 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\"
|
|
496
|
+
* @summary Read the shared cleanup registry
|
|
485
497
|
* @param {string} [authorization] Bearer Token
|
|
486
498
|
* @param {*} [options] Override http request option.
|
|
487
499
|
* @throws {RequiredError}
|
|
@@ -491,8 +503,9 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
491
503
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
492
504
|
},
|
|
493
505
|
/**
|
|
494
|
-
*
|
|
495
|
-
* @
|
|
506
|
+
* 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\"
|
|
507
|
+
* @summary Extend a checked-out lease
|
|
508
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
496
509
|
* @param {string} [authorization] Bearer Token
|
|
497
510
|
* @param {*} [options] Override http request option.
|
|
498
511
|
* @throws {RequiredError}
|
|
@@ -502,7 +515,8 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
502
515
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
503
516
|
},
|
|
504
517
|
/**
|
|
505
|
-
*
|
|
518
|
+
* Adds an existing tenant to the pool with the given tags, making it eligible for checkout by tests requesting matching tags. Does not create or modify the tenant itself. **Required Permissions** \"tenant-management.tenants.create\"
|
|
519
|
+
* @summary Register a tenant into the test pool
|
|
506
520
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
507
521
|
* @param {string} [authorization] Bearer Token
|
|
508
522
|
* @param {*} [options] Override http request option.
|
|
@@ -513,8 +527,9 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
513
527
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
514
528
|
},
|
|
515
529
|
/**
|
|
516
|
-
*
|
|
517
|
-
* @
|
|
530
|
+
* 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\"
|
|
531
|
+
* @summary Release a checked-out lease
|
|
532
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
518
533
|
* @param {string} [authorization] Bearer Token
|
|
519
534
|
* @param {*} [options] Override http request option.
|
|
520
535
|
* @throws {RequiredError}
|
|
@@ -524,8 +539,9 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
524
539
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
525
540
|
},
|
|
526
541
|
/**
|
|
527
|
-
*
|
|
528
|
-
* @
|
|
542
|
+
* Re-attempts cleanup for a pool tenant stuck in reset_failed, moving it back to leased and resubmitting the cleanup job. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
|
|
543
|
+
* @summary Retry a failed cleanup
|
|
544
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
529
545
|
* @param {string} [authorization] Bearer Token
|
|
530
546
|
* @param {*} [options] Override http request option.
|
|
531
547
|
* @throws {RequiredError}
|
|
@@ -535,7 +551,8 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
535
551
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
536
552
|
},
|
|
537
553
|
/**
|
|
538
|
-
*
|
|
554
|
+
* 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\"
|
|
555
|
+
* @summary Replace the shared cleanup registry
|
|
539
556
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
540
557
|
* @param {string} [authorization] Bearer Token
|
|
541
558
|
* @param {*} [options] Override http request option.
|
|
@@ -546,8 +563,9 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
|
|
|
546
563
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
547
564
|
},
|
|
548
565
|
/**
|
|
549
|
-
*
|
|
550
|
-
* @
|
|
566
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
567
|
+
* @summary Replace a pool tenant\'s tags
|
|
568
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
551
569
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
552
570
|
* @param {string} [authorization] Bearer Token
|
|
553
571
|
* @param {*} [options] Override http request option.
|
|
@@ -568,7 +586,8 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
568
586
|
const localVarFp = TestTenantPoolApiFp(configuration)
|
|
569
587
|
return {
|
|
570
588
|
/**
|
|
571
|
-
*
|
|
589
|
+
* 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\"
|
|
590
|
+
* @summary Check out an available pool tenant
|
|
572
591
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
573
592
|
* @param {string} [authorization] Bearer Token
|
|
574
593
|
* @param {*} [options] Override http request option.
|
|
@@ -578,8 +597,9 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
578
597
|
return localVarFp.checkout(checkoutRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
579
598
|
},
|
|
580
599
|
/**
|
|
581
|
-
*
|
|
582
|
-
* @
|
|
600
|
+
* Removes the pool registration only -- never the underlying tenant. Refused unless the pool tenant is available, so an active lease or in-flight cleanup can never be deregistered out from under itself. **Required Permissions** \"tenant-management.tenants.delete\"
|
|
601
|
+
* @summary Deregister a pool tenant
|
|
602
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
583
603
|
* @param {string} [authorization] Bearer Token
|
|
584
604
|
* @param {*} [options] Override http request option.
|
|
585
605
|
* @throws {RequiredError}
|
|
@@ -588,7 +608,8 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
588
608
|
return localVarFp.deregister(id, authorization, options).then((request) => request(axios, basePath));
|
|
589
609
|
},
|
|
590
610
|
/**
|
|
591
|
-
*
|
|
611
|
+
* 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\"
|
|
612
|
+
* @summary Read the shared cleanup registry
|
|
592
613
|
* @param {string} [authorization] Bearer Token
|
|
593
614
|
* @param {*} [options] Override http request option.
|
|
594
615
|
* @throws {RequiredError}
|
|
@@ -597,8 +618,9 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
597
618
|
return localVarFp.getCleanupRegistry(authorization, options).then((request) => request(axios, basePath));
|
|
598
619
|
},
|
|
599
620
|
/**
|
|
600
|
-
*
|
|
601
|
-
* @
|
|
621
|
+
* 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\"
|
|
622
|
+
* @summary Extend a checked-out lease
|
|
623
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
602
624
|
* @param {string} [authorization] Bearer Token
|
|
603
625
|
* @param {*} [options] Override http request option.
|
|
604
626
|
* @throws {RequiredError}
|
|
@@ -607,7 +629,8 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
607
629
|
return localVarFp.heartbeat(leaseId, authorization, options).then((request) => request(axios, basePath));
|
|
608
630
|
},
|
|
609
631
|
/**
|
|
610
|
-
*
|
|
632
|
+
* Adds an existing tenant to the pool with the given tags, making it eligible for checkout by tests requesting matching tags. Does not create or modify the tenant itself. **Required Permissions** \"tenant-management.tenants.create\"
|
|
633
|
+
* @summary Register a tenant into the test pool
|
|
611
634
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
612
635
|
* @param {string} [authorization] Bearer Token
|
|
613
636
|
* @param {*} [options] Override http request option.
|
|
@@ -617,8 +640,9 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
617
640
|
return localVarFp.register(registerPoolTenantRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
618
641
|
},
|
|
619
642
|
/**
|
|
620
|
-
*
|
|
621
|
-
* @
|
|
643
|
+
* 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\"
|
|
644
|
+
* @summary Release a checked-out lease
|
|
645
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
622
646
|
* @param {string} [authorization] Bearer Token
|
|
623
647
|
* @param {*} [options] Override http request option.
|
|
624
648
|
* @throws {RequiredError}
|
|
@@ -627,8 +651,9 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
627
651
|
return localVarFp.release(leaseId, authorization, options).then((request) => request(axios, basePath));
|
|
628
652
|
},
|
|
629
653
|
/**
|
|
630
|
-
*
|
|
631
|
-
* @
|
|
654
|
+
* Re-attempts cleanup for a pool tenant stuck in reset_failed, moving it back to leased and resubmitting the cleanup job. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
|
|
655
|
+
* @summary Retry a failed cleanup
|
|
656
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
632
657
|
* @param {string} [authorization] Bearer Token
|
|
633
658
|
* @param {*} [options] Override http request option.
|
|
634
659
|
* @throws {RequiredError}
|
|
@@ -637,7 +662,8 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
637
662
|
return localVarFp.retriggerCleanup(id, authorization, options).then((request) => request(axios, basePath));
|
|
638
663
|
},
|
|
639
664
|
/**
|
|
640
|
-
*
|
|
665
|
+
* 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\"
|
|
666
|
+
* @summary Replace the shared cleanup registry
|
|
641
667
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
642
668
|
* @param {string} [authorization] Bearer Token
|
|
643
669
|
* @param {*} [options] Override http request option.
|
|
@@ -647,8 +673,9 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
|
|
|
647
673
|
return localVarFp.updateCleanupRegistry(cleanupRegistryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
648
674
|
},
|
|
649
675
|
/**
|
|
650
|
-
*
|
|
651
|
-
* @
|
|
676
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
677
|
+
* @summary Replace a pool tenant\'s tags
|
|
678
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
652
679
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
653
680
|
* @param {string} [authorization] Bearer Token
|
|
654
681
|
* @param {*} [options] Override http request option.
|
|
@@ -688,7 +715,7 @@ export interface TestTenantPoolApiCheckoutRequest {
|
|
|
688
715
|
*/
|
|
689
716
|
export interface TestTenantPoolApiDeregisterRequest {
|
|
690
717
|
/**
|
|
691
|
-
*
|
|
718
|
+
* The pool registration id (not the tenant id).
|
|
692
719
|
* @type {number}
|
|
693
720
|
* @memberof TestTenantPoolApiDeregister
|
|
694
721
|
*/
|
|
@@ -723,7 +750,7 @@ export interface TestTenantPoolApiGetCleanupRegistryRequest {
|
|
|
723
750
|
*/
|
|
724
751
|
export interface TestTenantPoolApiHeartbeatRequest {
|
|
725
752
|
/**
|
|
726
|
-
*
|
|
753
|
+
* The lease id returned by checkout.
|
|
727
754
|
* @type {string}
|
|
728
755
|
* @memberof TestTenantPoolApiHeartbeat
|
|
729
756
|
*/
|
|
@@ -765,7 +792,7 @@ export interface TestTenantPoolApiRegisterRequest {
|
|
|
765
792
|
*/
|
|
766
793
|
export interface TestTenantPoolApiReleaseRequest {
|
|
767
794
|
/**
|
|
768
|
-
*
|
|
795
|
+
* The lease id returned by checkout.
|
|
769
796
|
* @type {string}
|
|
770
797
|
* @memberof TestTenantPoolApiRelease
|
|
771
798
|
*/
|
|
@@ -786,7 +813,7 @@ export interface TestTenantPoolApiReleaseRequest {
|
|
|
786
813
|
*/
|
|
787
814
|
export interface TestTenantPoolApiRetriggerCleanupRequest {
|
|
788
815
|
/**
|
|
789
|
-
*
|
|
816
|
+
* The pool registration id (not the tenant id).
|
|
790
817
|
* @type {number}
|
|
791
818
|
* @memberof TestTenantPoolApiRetriggerCleanup
|
|
792
819
|
*/
|
|
@@ -828,7 +855,7 @@ export interface TestTenantPoolApiUpdateCleanupRegistryRequest {
|
|
|
828
855
|
*/
|
|
829
856
|
export interface TestTenantPoolApiUpdateTagsRequest {
|
|
830
857
|
/**
|
|
831
|
-
*
|
|
858
|
+
* The slug of the tenant it was registered under.
|
|
832
859
|
* @type {string}
|
|
833
860
|
* @memberof TestTenantPoolApiUpdateTags
|
|
834
861
|
*/
|
|
@@ -857,7 +884,8 @@ export interface TestTenantPoolApiUpdateTagsRequest {
|
|
|
857
884
|
*/
|
|
858
885
|
export class TestTenantPoolApi extends BaseAPI {
|
|
859
886
|
/**
|
|
860
|
-
*
|
|
887
|
+
* 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\"
|
|
888
|
+
* @summary Check out an available pool tenant
|
|
861
889
|
* @param {TestTenantPoolApiCheckoutRequest} requestParameters Request parameters.
|
|
862
890
|
* @param {*} [options] Override http request option.
|
|
863
891
|
* @throws {RequiredError}
|
|
@@ -868,7 +896,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
868
896
|
}
|
|
869
897
|
|
|
870
898
|
/**
|
|
871
|
-
*
|
|
899
|
+
* 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\"
|
|
900
|
+
* @summary Deregister a pool tenant
|
|
872
901
|
* @param {TestTenantPoolApiDeregisterRequest} requestParameters Request parameters.
|
|
873
902
|
* @param {*} [options] Override http request option.
|
|
874
903
|
* @throws {RequiredError}
|
|
@@ -879,7 +908,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
879
908
|
}
|
|
880
909
|
|
|
881
910
|
/**
|
|
882
|
-
*
|
|
911
|
+
* 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\"
|
|
912
|
+
* @summary Read the shared cleanup registry
|
|
883
913
|
* @param {TestTenantPoolApiGetCleanupRegistryRequest} requestParameters Request parameters.
|
|
884
914
|
* @param {*} [options] Override http request option.
|
|
885
915
|
* @throws {RequiredError}
|
|
@@ -890,7 +920,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
890
920
|
}
|
|
891
921
|
|
|
892
922
|
/**
|
|
893
|
-
*
|
|
923
|
+
* 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\"
|
|
924
|
+
* @summary Extend a checked-out lease
|
|
894
925
|
* @param {TestTenantPoolApiHeartbeatRequest} requestParameters Request parameters.
|
|
895
926
|
* @param {*} [options] Override http request option.
|
|
896
927
|
* @throws {RequiredError}
|
|
@@ -901,7 +932,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
901
932
|
}
|
|
902
933
|
|
|
903
934
|
/**
|
|
904
|
-
*
|
|
935
|
+
* Adds an existing tenant to the pool with the given tags, making it eligible for checkout by tests requesting matching tags. Does not create or modify the tenant itself. **Required Permissions** \"tenant-management.tenants.create\"
|
|
936
|
+
* @summary Register a tenant into the test pool
|
|
905
937
|
* @param {TestTenantPoolApiRegisterRequest} requestParameters Request parameters.
|
|
906
938
|
* @param {*} [options] Override http request option.
|
|
907
939
|
* @throws {RequiredError}
|
|
@@ -912,7 +944,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
912
944
|
}
|
|
913
945
|
|
|
914
946
|
/**
|
|
915
|
-
*
|
|
947
|
+
* 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\"
|
|
948
|
+
* @summary Release a checked-out lease
|
|
916
949
|
* @param {TestTenantPoolApiReleaseRequest} requestParameters Request parameters.
|
|
917
950
|
* @param {*} [options] Override http request option.
|
|
918
951
|
* @throws {RequiredError}
|
|
@@ -923,7 +956,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
923
956
|
}
|
|
924
957
|
|
|
925
958
|
/**
|
|
926
|
-
*
|
|
959
|
+
* Re-attempts cleanup for a pool tenant stuck in reset_failed, moving it back to leased and resubmitting the cleanup job. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
|
|
960
|
+
* @summary Retry a failed cleanup
|
|
927
961
|
* @param {TestTenantPoolApiRetriggerCleanupRequest} requestParameters Request parameters.
|
|
928
962
|
* @param {*} [options] Override http request option.
|
|
929
963
|
* @throws {RequiredError}
|
|
@@ -934,7 +968,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
934
968
|
}
|
|
935
969
|
|
|
936
970
|
/**
|
|
937
|
-
*
|
|
971
|
+
* 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\"
|
|
972
|
+
* @summary Replace the shared cleanup registry
|
|
938
973
|
* @param {TestTenantPoolApiUpdateCleanupRegistryRequest} requestParameters Request parameters.
|
|
939
974
|
* @param {*} [options] Override http request option.
|
|
940
975
|
* @throws {RequiredError}
|
|
@@ -945,7 +980,8 @@ export class TestTenantPoolApi extends BaseAPI {
|
|
|
945
980
|
}
|
|
946
981
|
|
|
947
982
|
/**
|
|
948
|
-
*
|
|
983
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
984
|
+
* @summary Replace a pool tenant\'s tags
|
|
949
985
|
* @param {TestTenantPoolApiUpdateTagsRequest} requestParameters Request parameters.
|
|
950
986
|
* @param {*} [options] Override http request option.
|
|
951
987
|
* @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}
|
|
@@ -97,7 +97,8 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* 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\"
|
|
101
|
+
* @summary Check out an available pool tenant
|
|
101
102
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
102
103
|
* @param {string} [authorization] Bearer Token
|
|
103
104
|
* @param {*} [options] Override http request option.
|
|
@@ -145,8 +146,9 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
145
146
|
});
|
|
146
147
|
},
|
|
147
148
|
/**
|
|
148
|
-
*
|
|
149
|
-
* @
|
|
149
|
+
* 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\"
|
|
150
|
+
* @summary Deregister a pool tenant
|
|
151
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
150
152
|
* @param {string} [authorization] Bearer Token
|
|
151
153
|
* @param {*} [options] Override http request option.
|
|
152
154
|
* @throws {RequiredError}
|
|
@@ -192,7 +194,8 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
192
194
|
});
|
|
193
195
|
},
|
|
194
196
|
/**
|
|
195
|
-
*
|
|
197
|
+
* 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\"
|
|
198
|
+
* @summary Read the shared cleanup registry
|
|
196
199
|
* @param {string} [authorization] Bearer Token
|
|
197
200
|
* @param {*} [options] Override http request option.
|
|
198
201
|
* @throws {RequiredError}
|
|
@@ -235,8 +238,9 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
235
238
|
});
|
|
236
239
|
},
|
|
237
240
|
/**
|
|
238
|
-
*
|
|
239
|
-
* @
|
|
241
|
+
* 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\"
|
|
242
|
+
* @summary Extend a checked-out lease
|
|
243
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
240
244
|
* @param {string} [authorization] Bearer Token
|
|
241
245
|
* @param {*} [options] Override http request option.
|
|
242
246
|
* @throws {RequiredError}
|
|
@@ -282,7 +286,8 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
282
286
|
});
|
|
283
287
|
},
|
|
284
288
|
/**
|
|
285
|
-
*
|
|
289
|
+
* 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\"
|
|
290
|
+
* @summary Register a tenant into the test pool
|
|
286
291
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
287
292
|
* @param {string} [authorization] Bearer Token
|
|
288
293
|
* @param {*} [options] Override http request option.
|
|
@@ -330,8 +335,9 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
330
335
|
});
|
|
331
336
|
},
|
|
332
337
|
/**
|
|
333
|
-
*
|
|
334
|
-
* @
|
|
338
|
+
* 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\"
|
|
339
|
+
* @summary Release a checked-out lease
|
|
340
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
335
341
|
* @param {string} [authorization] Bearer Token
|
|
336
342
|
* @param {*} [options] Override http request option.
|
|
337
343
|
* @throws {RequiredError}
|
|
@@ -377,8 +383,9 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
377
383
|
});
|
|
378
384
|
},
|
|
379
385
|
/**
|
|
380
|
-
*
|
|
381
|
-
* @
|
|
386
|
+
* 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\"
|
|
387
|
+
* @summary Retry a failed cleanup
|
|
388
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
382
389
|
* @param {string} [authorization] Bearer Token
|
|
383
390
|
* @param {*} [options] Override http request option.
|
|
384
391
|
* @throws {RequiredError}
|
|
@@ -424,7 +431,8 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
424
431
|
});
|
|
425
432
|
},
|
|
426
433
|
/**
|
|
427
|
-
*
|
|
434
|
+
* 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\"
|
|
435
|
+
* @summary Replace the shared cleanup registry
|
|
428
436
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
429
437
|
* @param {string} [authorization] Bearer Token
|
|
430
438
|
* @param {*} [options] Override http request option.
|
|
@@ -472,8 +480,9 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
|
|
|
472
480
|
});
|
|
473
481
|
},
|
|
474
482
|
/**
|
|
475
|
-
*
|
|
476
|
-
* @
|
|
483
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
484
|
+
* @summary Replace a pool tenant\'s tags
|
|
485
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
477
486
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
478
487
|
* @param {string} [authorization] Bearer Token
|
|
479
488
|
* @param {*} [options] Override http request option.
|
|
@@ -534,7 +543,8 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
534
543
|
var localVarAxiosParamCreator = (0, exports.TestTenantPoolApiAxiosParamCreator)(configuration);
|
|
535
544
|
return {
|
|
536
545
|
/**
|
|
537
|
-
*
|
|
546
|
+
* 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\"
|
|
547
|
+
* @summary Check out an available pool tenant
|
|
538
548
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
539
549
|
* @param {string} [authorization] Bearer Token
|
|
540
550
|
* @param {*} [options] Override http request option.
|
|
@@ -554,8 +564,9 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
554
564
|
});
|
|
555
565
|
},
|
|
556
566
|
/**
|
|
557
|
-
*
|
|
558
|
-
* @
|
|
567
|
+
* 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\"
|
|
568
|
+
* @summary Deregister a pool tenant
|
|
569
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
559
570
|
* @param {string} [authorization] Bearer Token
|
|
560
571
|
* @param {*} [options] Override http request option.
|
|
561
572
|
* @throws {RequiredError}
|
|
@@ -574,7 +585,8 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
574
585
|
});
|
|
575
586
|
},
|
|
576
587
|
/**
|
|
577
|
-
*
|
|
588
|
+
* 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\"
|
|
589
|
+
* @summary Read the shared cleanup registry
|
|
578
590
|
* @param {string} [authorization] Bearer Token
|
|
579
591
|
* @param {*} [options] Override http request option.
|
|
580
592
|
* @throws {RequiredError}
|
|
@@ -593,8 +605,9 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
593
605
|
});
|
|
594
606
|
},
|
|
595
607
|
/**
|
|
596
|
-
*
|
|
597
|
-
* @
|
|
608
|
+
* 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\"
|
|
609
|
+
* @summary Extend a checked-out lease
|
|
610
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
598
611
|
* @param {string} [authorization] Bearer Token
|
|
599
612
|
* @param {*} [options] Override http request option.
|
|
600
613
|
* @throws {RequiredError}
|
|
@@ -613,7 +626,8 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
613
626
|
});
|
|
614
627
|
},
|
|
615
628
|
/**
|
|
616
|
-
*
|
|
629
|
+
* 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\"
|
|
630
|
+
* @summary Register a tenant into the test pool
|
|
617
631
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
618
632
|
* @param {string} [authorization] Bearer Token
|
|
619
633
|
* @param {*} [options] Override http request option.
|
|
@@ -633,8 +647,9 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
633
647
|
});
|
|
634
648
|
},
|
|
635
649
|
/**
|
|
636
|
-
*
|
|
637
|
-
* @
|
|
650
|
+
* 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\"
|
|
651
|
+
* @summary Release a checked-out lease
|
|
652
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
638
653
|
* @param {string} [authorization] Bearer Token
|
|
639
654
|
* @param {*} [options] Override http request option.
|
|
640
655
|
* @throws {RequiredError}
|
|
@@ -653,8 +668,9 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
653
668
|
});
|
|
654
669
|
},
|
|
655
670
|
/**
|
|
656
|
-
*
|
|
657
|
-
* @
|
|
671
|
+
* 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\"
|
|
672
|
+
* @summary Retry a failed cleanup
|
|
673
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
658
674
|
* @param {string} [authorization] Bearer Token
|
|
659
675
|
* @param {*} [options] Override http request option.
|
|
660
676
|
* @throws {RequiredError}
|
|
@@ -673,7 +689,8 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
673
689
|
});
|
|
674
690
|
},
|
|
675
691
|
/**
|
|
676
|
-
*
|
|
692
|
+
* 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\"
|
|
693
|
+
* @summary Replace the shared cleanup registry
|
|
677
694
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
678
695
|
* @param {string} [authorization] Bearer Token
|
|
679
696
|
* @param {*} [options] Override http request option.
|
|
@@ -693,8 +710,9 @@ var TestTenantPoolApiFp = function (configuration) {
|
|
|
693
710
|
});
|
|
694
711
|
},
|
|
695
712
|
/**
|
|
696
|
-
*
|
|
697
|
-
* @
|
|
713
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
714
|
+
* @summary Replace a pool tenant\'s tags
|
|
715
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
698
716
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
699
717
|
* @param {string} [authorization] Bearer Token
|
|
700
718
|
* @param {*} [options] Override http request option.
|
|
@@ -724,7 +742,8 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
724
742
|
var localVarFp = (0, exports.TestTenantPoolApiFp)(configuration);
|
|
725
743
|
return {
|
|
726
744
|
/**
|
|
727
|
-
*
|
|
745
|
+
* 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\"
|
|
746
|
+
* @summary Check out an available pool tenant
|
|
728
747
|
* @param {CheckoutRequestDto} checkoutRequestDto
|
|
729
748
|
* @param {string} [authorization] Bearer Token
|
|
730
749
|
* @param {*} [options] Override http request option.
|
|
@@ -734,8 +753,9 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
734
753
|
return localVarFp.checkout(checkoutRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
735
754
|
},
|
|
736
755
|
/**
|
|
737
|
-
*
|
|
738
|
-
* @
|
|
756
|
+
* 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\"
|
|
757
|
+
* @summary Deregister a pool tenant
|
|
758
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
739
759
|
* @param {string} [authorization] Bearer Token
|
|
740
760
|
* @param {*} [options] Override http request option.
|
|
741
761
|
* @throws {RequiredError}
|
|
@@ -744,7 +764,8 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
744
764
|
return localVarFp.deregister(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
745
765
|
},
|
|
746
766
|
/**
|
|
747
|
-
*
|
|
767
|
+
* 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\"
|
|
768
|
+
* @summary Read the shared cleanup registry
|
|
748
769
|
* @param {string} [authorization] Bearer Token
|
|
749
770
|
* @param {*} [options] Override http request option.
|
|
750
771
|
* @throws {RequiredError}
|
|
@@ -753,8 +774,9 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
753
774
|
return localVarFp.getCleanupRegistry(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
754
775
|
},
|
|
755
776
|
/**
|
|
756
|
-
*
|
|
757
|
-
* @
|
|
777
|
+
* 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\"
|
|
778
|
+
* @summary Extend a checked-out lease
|
|
779
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
758
780
|
* @param {string} [authorization] Bearer Token
|
|
759
781
|
* @param {*} [options] Override http request option.
|
|
760
782
|
* @throws {RequiredError}
|
|
@@ -763,7 +785,8 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
763
785
|
return localVarFp.heartbeat(leaseId, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
764
786
|
},
|
|
765
787
|
/**
|
|
766
|
-
*
|
|
788
|
+
* 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\"
|
|
789
|
+
* @summary Register a tenant into the test pool
|
|
767
790
|
* @param {RegisterPoolTenantRequestDto} registerPoolTenantRequestDto
|
|
768
791
|
* @param {string} [authorization] Bearer Token
|
|
769
792
|
* @param {*} [options] Override http request option.
|
|
@@ -773,8 +796,9 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
773
796
|
return localVarFp.register(registerPoolTenantRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
774
797
|
},
|
|
775
798
|
/**
|
|
776
|
-
*
|
|
777
|
-
* @
|
|
799
|
+
* 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\"
|
|
800
|
+
* @summary Release a checked-out lease
|
|
801
|
+
* @param {string} leaseId The lease id returned by checkout.
|
|
778
802
|
* @param {string} [authorization] Bearer Token
|
|
779
803
|
* @param {*} [options] Override http request option.
|
|
780
804
|
* @throws {RequiredError}
|
|
@@ -783,8 +807,9 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
783
807
|
return localVarFp.release(leaseId, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
784
808
|
},
|
|
785
809
|
/**
|
|
786
|
-
*
|
|
787
|
-
* @
|
|
810
|
+
* 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\"
|
|
811
|
+
* @summary Retry a failed cleanup
|
|
812
|
+
* @param {number} id The pool registration id (not the tenant id).
|
|
788
813
|
* @param {string} [authorization] Bearer Token
|
|
789
814
|
* @param {*} [options] Override http request option.
|
|
790
815
|
* @throws {RequiredError}
|
|
@@ -793,7 +818,8 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
793
818
|
return localVarFp.retriggerCleanup(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
794
819
|
},
|
|
795
820
|
/**
|
|
796
|
-
*
|
|
821
|
+
* 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\"
|
|
822
|
+
* @summary Replace the shared cleanup registry
|
|
797
823
|
* @param {CleanupRegistryRequestDto} cleanupRegistryRequestDto
|
|
798
824
|
* @param {string} [authorization] Bearer Token
|
|
799
825
|
* @param {*} [options] Override http request option.
|
|
@@ -803,8 +829,9 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
|
|
|
803
829
|
return localVarFp.updateCleanupRegistry(cleanupRegistryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
804
830
|
},
|
|
805
831
|
/**
|
|
806
|
-
*
|
|
807
|
-
* @
|
|
832
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
833
|
+
* @summary Replace a pool tenant\'s tags
|
|
834
|
+
* @param {string} tenantSlug The slug of the tenant it was registered under.
|
|
808
835
|
* @param {UpdateTagsBodyDto} updateTagsBodyDto
|
|
809
836
|
* @param {string} [authorization] Bearer Token
|
|
810
837
|
* @param {*} [options] Override http request option.
|
|
@@ -828,7 +855,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
828
855
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
829
856
|
}
|
|
830
857
|
/**
|
|
831
|
-
*
|
|
858
|
+
* 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\"
|
|
859
|
+
* @summary Check out an available pool tenant
|
|
832
860
|
* @param {TestTenantPoolApiCheckoutRequest} requestParameters Request parameters.
|
|
833
861
|
* @param {*} [options] Override http request option.
|
|
834
862
|
* @throws {RequiredError}
|
|
@@ -839,7 +867,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
839
867
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).checkout(requestParameters.checkoutRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
840
868
|
};
|
|
841
869
|
/**
|
|
842
|
-
*
|
|
870
|
+
* 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\"
|
|
871
|
+
* @summary Deregister a pool tenant
|
|
843
872
|
* @param {TestTenantPoolApiDeregisterRequest} requestParameters Request parameters.
|
|
844
873
|
* @param {*} [options] Override http request option.
|
|
845
874
|
* @throws {RequiredError}
|
|
@@ -850,7 +879,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
850
879
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).deregister(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
851
880
|
};
|
|
852
881
|
/**
|
|
853
|
-
*
|
|
882
|
+
* 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\"
|
|
883
|
+
* @summary Read the shared cleanup registry
|
|
854
884
|
* @param {TestTenantPoolApiGetCleanupRegistryRequest} requestParameters Request parameters.
|
|
855
885
|
* @param {*} [options] Override http request option.
|
|
856
886
|
* @throws {RequiredError}
|
|
@@ -862,7 +892,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
862
892
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).getCleanupRegistry(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
863
893
|
};
|
|
864
894
|
/**
|
|
865
|
-
*
|
|
895
|
+
* 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\"
|
|
896
|
+
* @summary Extend a checked-out lease
|
|
866
897
|
* @param {TestTenantPoolApiHeartbeatRequest} requestParameters Request parameters.
|
|
867
898
|
* @param {*} [options] Override http request option.
|
|
868
899
|
* @throws {RequiredError}
|
|
@@ -873,7 +904,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
873
904
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).heartbeat(requestParameters.leaseId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
874
905
|
};
|
|
875
906
|
/**
|
|
876
|
-
*
|
|
907
|
+
* 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\"
|
|
908
|
+
* @summary Register a tenant into the test pool
|
|
877
909
|
* @param {TestTenantPoolApiRegisterRequest} requestParameters Request parameters.
|
|
878
910
|
* @param {*} [options] Override http request option.
|
|
879
911
|
* @throws {RequiredError}
|
|
@@ -884,7 +916,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
884
916
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).register(requestParameters.registerPoolTenantRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
885
917
|
};
|
|
886
918
|
/**
|
|
887
|
-
*
|
|
919
|
+
* 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\"
|
|
920
|
+
* @summary Release a checked-out lease
|
|
888
921
|
* @param {TestTenantPoolApiReleaseRequest} requestParameters Request parameters.
|
|
889
922
|
* @param {*} [options] Override http request option.
|
|
890
923
|
* @throws {RequiredError}
|
|
@@ -895,7 +928,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
895
928
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).release(requestParameters.leaseId, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
896
929
|
};
|
|
897
930
|
/**
|
|
898
|
-
*
|
|
931
|
+
* 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\"
|
|
932
|
+
* @summary Retry a failed cleanup
|
|
899
933
|
* @param {TestTenantPoolApiRetriggerCleanupRequest} requestParameters Request parameters.
|
|
900
934
|
* @param {*} [options] Override http request option.
|
|
901
935
|
* @throws {RequiredError}
|
|
@@ -906,7 +940,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
906
940
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).retriggerCleanup(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
907
941
|
};
|
|
908
942
|
/**
|
|
909
|
-
*
|
|
943
|
+
* 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\"
|
|
944
|
+
* @summary Replace the shared cleanup registry
|
|
910
945
|
* @param {TestTenantPoolApiUpdateCleanupRegistryRequest} requestParameters Request parameters.
|
|
911
946
|
* @param {*} [options] Override http request option.
|
|
912
947
|
* @throws {RequiredError}
|
|
@@ -917,7 +952,8 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
|
|
|
917
952
|
return (0, exports.TestTenantPoolApiFp)(this.configuration).updateCleanupRegistry(requestParameters.cleanupRegistryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
918
953
|
};
|
|
919
954
|
/**
|
|
920
|
-
*
|
|
955
|
+
* Replaces the full tag set of the pool tenant registered under the given tenant slug. **Required Permissions** \"tenant-management.tenants.update\"
|
|
956
|
+
* @summary Replace a pool tenant\'s tags
|
|
921
957
|
* @param {TestTenantPoolApiUpdateTagsRequest} requestParameters Request parameters.
|
|
922
958
|
* @param {*} [options] Override http request option.
|
|
923
959
|
* @throws {RequiredError}
|