Skip to content

Commit d82b699

Browse files
authored
feat(account): add the possibility to filter by project_ids (#1409)
1 parent 7943946 commit d82b699

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/account/v2/account_sdk.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ type ListProjectsRequest struct {
166166
//
167167
// Default value: created_at_asc
168168
OrderBy ListProjectsRequestOrderBy `json:"-"`
169+
// ProjectIDs: filter out by a list of project ID
170+
ProjectIDs []string `json:"-"`
169171
}
170172

171173
// ListProjects: list projects
@@ -188,6 +190,7 @@ func (s *API) ListProjects(req *ListProjectsRequest, opts ...scw.RequestOption)
188190
parameter.AddToQuery(query, "page", req.Page)
189191
parameter.AddToQuery(query, "page_size", req.PageSize)
190192
parameter.AddToQuery(query, "order_by", req.OrderBy)
193+
parameter.AddToQuery(query, "project_ids", req.ProjectIDs)
191194

192195
scwReq := &scw.ScalewayRequest{
193196
Method: "GET",

0 commit comments

Comments
 (0)