Skip to content

Commit

Permalink
fix: breaking change and add older API
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Sep 14, 2024
1 parent 06b32c3 commit 54a897b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion idp-commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,12 @@ func (adm *AdminClient) ListAccessKeysLDAP(ctx context.Context, userDN string, l
}

// ListAccessKeysLDAPBulk - list access keys belonging to the given users or all users
func (adm *AdminClient) ListAccessKeysLDAPBulk(ctx context.Context, users []string, opts ListAccessKeysOpts) (map[string]ListAccessKeysLDAPResp, error) {
func (adm *AdminClient) ListAccessKeysLDAPBulk(ctx context.Context, users []string, listType string, all bool) (map[string]ListAccessKeysLDAPResp, error) {
return adm.ListAccessKeysLDAPBulkWithOpts(ctx, users, ListAccessKeysOpts{ListType: listType, All: all})
}

// ListAccessKeysLDAPBulkWithOpts - list access keys belonging to the given users or all users
func (adm *AdminClient) ListAccessKeysLDAPBulkWithOpts(ctx context.Context, users []string, opts ListAccessKeysOpts) (map[string]ListAccessKeysLDAPResp, error) {
if len(users) > 0 && opts.All {
return nil, errors.New("either specify userDNs or all, not both")
}
Expand Down

0 comments on commit 54a897b

Please sign in to comment.