Skip to content

Commit a64b907

Browse files
authored
feat(rdb): add skip_size_retrieval option to ListDatabases endpoint (#2456)
1 parent 104db95 commit a64b907

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages_generated/rdb/src/v1/api.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,7 @@ The configured endpoints do not change.
10921092
'page_size',
10931093
request.pageSize ?? this.client.settings.defaultPageSize,
10941094
],
1095+
['skip_size_retrieval', request.skipSizeRetrieval],
10951096
),
10961097
},
10971098
unmarshalListDatabasesResponse,

packages_generated/rdb/src/v1/types.gen.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ export interface Database {
618618
*/
619619
managed: boolean
620620
/**
621-
* Size of the database.
621+
* Size of the database. Set to 0 if the size retrieval is too time-consuming or `skip_size_retrieval` is set to true.
622622
*/
623623
size: number
624624
}
@@ -1542,6 +1542,10 @@ export type ListDatabasesRequest = {
15421542
* Criteria to use when ordering database listing.
15431543
*/
15441544
orderBy?: ListDatabasesRequestOrderBy
1545+
/**
1546+
* Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0.
1547+
*/
1548+
skipSizeRetrieval: boolean
15451549
page?: number
15461550
pageSize?: number
15471551
}

0 commit comments

Comments
 (0)