Skip to content

Commit

Permalink
feat(iam): add username order by in ListUsers (scaleway#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Dec 9, 2024
1 parent b224dc3 commit 92afa47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/iam/v1alpha1/iam_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,10 @@ const (
ListUsersRequestOrderByLastLoginAsc = ListUsersRequestOrderBy("last_login_asc")
// Last login descending.
ListUsersRequestOrderByLastLoginDesc = ListUsersRequestOrderBy("last_login_desc")
// Username ascending.
ListUsersRequestOrderByUsernameAsc = ListUsersRequestOrderBy("username_asc")
// Username descending.
ListUsersRequestOrderByUsernameDesc = ListUsersRequestOrderBy("username_desc")
)

func (enum ListUsersRequestOrderBy) String() string {
Expand All @@ -585,6 +589,8 @@ func (enum ListUsersRequestOrderBy) Values() []ListUsersRequestOrderBy {
"email_desc",
"last_login_asc",
"last_login_desc",
"username_asc",
"username_desc",
}
}

Expand Down

0 comments on commit 92afa47

Please sign in to comment.