Skip to content

Commit 359c80c

Browse files
authored
feat(iam): add filtering on multiple IDs on listing endpoints (#1094)
1 parent ba55c0b commit 359c80c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/clients/src/api/iam/v1alpha1/api.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ export class API extends ParentAPI {
720720
'page_size',
721721
request.pageSize ?? this.client.settings.defaultPageSize,
722722
],
723+
['policy_ids', request.policyIds],
723724
['policy_name', request.policyName],
724725
['tag', request.tag],
725726
['user_ids', request.userIds],
@@ -946,6 +947,7 @@ export class API extends ParentAPI {
946947
path: `/iam/v1alpha1/api-keys`,
947948
urlParams: urlParams(
948949
['access_key', request.accessKey],
950+
['access_keys', request.accessKeys],
949951
['bearer_id', request.bearerId],
950952
['bearer_type', request.bearerType],
951953
['description', request.description],

packages/clients/src/api/iam/v1alpha1/types.gen.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,14 +630,16 @@ export type ListAPIKeysRequest = {
630630
editable?: boolean
631631
/** Defines whether to filter out expired API keys or not. */
632632
expired?: boolean
633-
/** Filter by access key. */
633+
/** @deprecated Filter by access key (deprecated in favor of `access_keys`). */
634634
accessKey?: string
635635
/** Filter by description. */
636636
description?: string
637637
/** Filter by bearer ID. */
638638
bearerId?: string
639639
/** Filter by type of bearer. */
640640
bearerType?: BearerType
641+
/** Filter by a list of access keys. */
642+
accessKeys?: string[]
641643
}
642644

643645
export interface ListAPIKeysResponse {
@@ -788,6 +790,8 @@ export type ListPoliciesRequest = {
788790
policyName?: string
789791
/** Filter by tags containing a given string. */
790792
tag?: string
793+
/** Filter by a list of IDs. */
794+
policyIds?: string[]
791795
}
792796

793797
export interface ListPoliciesResponse {

0 commit comments

Comments
 (0)