Skip to content

Commit 622c3a0

Browse files
authored
Add global params for limit and offset (#3096)
1 parent 4389548 commit 622c3a0

14 files changed

+366
-244
lines changed

.github/workflows/jobs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ jobs:
11691169
go tool cover -func=all.out | grep total > tmp2
11701170
result=`cat tmp2 | awk 'END {print $3}'`
11711171
result=${result%\%}
1172-
threshold=71.4
1172+
threshold=71.3
11731173
echo "Result:"
11741174
echo "$result%"
11751175
if (( $(echo "$result >= $threshold" |bc -l) )); then

portal-ui/src/api/consoleApi.ts

Lines changed: 79 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,10 +1707,9 @@ export class HttpClient<SecurityDataType = unknown> {
17071707
? { "Content-Type": type }
17081708
: {}),
17091709
},
1710-
signal:
1711-
(cancelToken
1712-
? this.createAbortSignal(cancelToken)
1713-
: requestParams.signal) || null,
1710+
signal: cancelToken
1711+
? this.createAbortSignal(cancelToken)
1712+
: requestParams.signal,
17141713
body:
17151714
typeof body === "undefined" || body === null
17161715
? null
@@ -2027,7 +2026,10 @@ export class Api<
20272026
recursive?: boolean;
20282027
with_versions?: boolean;
20292028
with_metadata?: boolean;
2030-
/** @format int32 */
2029+
/**
2030+
* @format int32
2031+
* @default 20
2032+
*/
20312033
limit?: number;
20322034
},
20332035
params: RequestParams = {},
@@ -2463,9 +2465,15 @@ export class Api<
24632465
listBucketEvents: (
24642466
bucketName: string,
24652467
query?: {
2466-
/** @format int32 */
2468+
/**
2469+
* @format int32
2470+
* @default 0
2471+
*/
24672472
offset?: number;
2468-
/** @format int32 */
2473+
/**
2474+
* @format int32
2475+
* @default 20
2476+
*/
24692477
limit?: number;
24702478
},
24712479
params: RequestParams = {},
@@ -2969,9 +2977,15 @@ export class Api<
29692977
*/
29702978
listUserServiceAccounts: (
29712979
query?: {
2972-
/** @format int32 */
2980+
/**
2981+
* @format int32
2982+
* @default 0
2983+
*/
29732984
offset?: number;
2974-
/** @format int32 */
2985+
/**
2986+
* @format int32
2987+
* @default 20
2988+
*/
29752989
limit?: number;
29762990
},
29772991
params: RequestParams = {},
@@ -3121,9 +3135,15 @@ export class Api<
31213135
*/
31223136
listUsers: (
31233137
query?: {
3124-
/** @format int32 */
3138+
/**
3139+
* @format int32
3140+
* @default 0
3141+
*/
31253142
offset?: number;
3126-
/** @format int32 */
3143+
/**
3144+
* @format int32
3145+
* @default 20
3146+
*/
31273147
limit?: number;
31283148
},
31293149
params: RequestParams = {},
@@ -3395,9 +3415,15 @@ export class Api<
33953415
*/
33963416
listGroups: (
33973417
query?: {
3398-
/** @format int32 */
3418+
/**
3419+
* @format int32
3420+
* @default 0
3421+
*/
33993422
offset?: number;
3400-
/** @format int32 */
3423+
/**
3424+
* @format int32
3425+
* @default 20
3426+
*/
34013427
limit?: number;
34023428
},
34033429
params: RequestParams = {},
@@ -3502,9 +3528,15 @@ export class Api<
35023528
*/
35033529
listPolicies: (
35043530
query?: {
3505-
/** @format int32 */
3531+
/**
3532+
* @format int32
3533+
* @default 0
3534+
*/
35063535
offset?: number;
3507-
/** @format int32 */
3536+
/**
3537+
* @format int32
3538+
* @default 20
3539+
*/
35083540
limit?: number;
35093541
},
35103542
params: RequestParams = {},
@@ -3587,9 +3619,15 @@ export class Api<
35873619
listPoliciesWithBucket: (
35883620
bucket: string,
35893621
query?: {
3590-
/** @format int32 */
3622+
/**
3623+
* @format int32
3624+
* @default 0
3625+
*/
35913626
offset?: number;
3592-
/** @format int32 */
3627+
/**
3628+
* @format int32
3629+
* @default 20
3630+
*/
35933631
limit?: number;
35943632
},
35953633
params: RequestParams = {},
@@ -3640,9 +3678,15 @@ export class Api<
36403678
listAccessRulesWithBucket: (
36413679
bucket: string,
36423680
query?: {
3643-
/** @format int32 */
3681+
/**
3682+
* @format int32
3683+
* @default 0
3684+
*/
36443685
offset?: number;
3645-
/** @format int32 */
3686+
/**
3687+
* @format int32
3688+
* @default 20
3689+
*/
36463690
limit?: number;
36473691
},
36483692
params: RequestParams = {},
@@ -3693,9 +3737,15 @@ export class Api<
36933737
listUsersWithAccessToBucket: (
36943738
bucket: string,
36953739
query?: {
3696-
/** @format int32 */
3740+
/**
3741+
* @format int32
3742+
* @default 0
3743+
*/
36973744
offset?: number;
3698-
/** @format int32 */
3745+
/**
3746+
* @format int32
3747+
* @default 20
3748+
*/
36993749
limit?: number;
37003750
},
37013751
params: RequestParams = {},
@@ -3757,9 +3807,15 @@ export class Api<
37573807
*/
37583808
listConfig: (
37593809
query?: {
3760-
/** @format int32 */
3810+
/**
3811+
* @format int32
3812+
* @default 0
3813+
*/
37613814
offset?: number;
3762-
/** @format int32 */
3815+
/**
3816+
* @format int32
3817+
* @default 20
3818+
*/
37633819
limit?: number;
37643820
},
37653821
params: RequestParams = {},

0 commit comments

Comments
 (0)