Skip to content

Commit

Permalink
feat(k8s): add support for listing options for ListNodes (#2379)
Browse files Browse the repository at this point in the history
Co-authored-by: Rémy Léone <[email protected]>
  • Loading branch information
scaleway-bot and remyleone authored Dec 31, 2024
1 parent 1ab18bc commit befb9b9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions api/k8s/v1/k8s_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,14 @@ type ListNodesRequestOrderBy string
const (
ListNodesRequestOrderByCreatedAtAsc = ListNodesRequestOrderBy("created_at_asc")
ListNodesRequestOrderByCreatedAtDesc = ListNodesRequestOrderBy("created_at_desc")
ListNodesRequestOrderByUpdatedAtAsc = ListNodesRequestOrderBy("updated_at_asc")
ListNodesRequestOrderByUpdatedAtDesc = ListNodesRequestOrderBy("updated_at_desc")
ListNodesRequestOrderByNameAsc = ListNodesRequestOrderBy("name_asc")
ListNodesRequestOrderByNameDesc = ListNodesRequestOrderBy("name_desc")
ListNodesRequestOrderByStatusAsc = ListNodesRequestOrderBy("status_asc")
ListNodesRequestOrderByStatusDesc = ListNodesRequestOrderBy("status_desc")
ListNodesRequestOrderByVersionAsc = ListNodesRequestOrderBy("version_asc")
ListNodesRequestOrderByVersionDesc = ListNodesRequestOrderBy("version_desc")
)

func (enum ListNodesRequestOrderBy) String() string {
Expand All @@ -383,6 +391,14 @@ func (enum ListNodesRequestOrderBy) Values() []ListNodesRequestOrderBy {
return []ListNodesRequestOrderBy{
"created_at_asc",
"created_at_desc",
"updated_at_asc",
"updated_at_desc",
"name_asc",
"name_desc",
"status_asc",
"status_desc",
"version_asc",
"version_desc",
}
}

Expand Down

0 comments on commit befb9b9

Please sign in to comment.