Skip to content

Commit 882e0a3

Browse files
feat(iam): allow filtering by name in ListQuotas (#2040)
Co-authored-by: Mia-Cross <lmarabese@scaleway.com>
1 parent 697d354 commit 882e0a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/iam/v1alpha1/iam_sdk.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,6 +1667,9 @@ type ListQuotaRequest struct {
16671667

16681668
// OrganizationID: filter by Organization ID.
16691669
OrganizationID string `json:"-"`
1670+
1671+
// QuotumNames: list of quotum names to filter from.
1672+
QuotumNames []string `json:"-"`
16701673
}
16711674

16721675
// ListQuotaResponse: list quota response.
@@ -3047,6 +3050,7 @@ func (s *API) ListQuota(req *ListQuotaRequest, opts ...scw.RequestOption) (*List
30473050
parameter.AddToQuery(query, "page_size", req.PageSize)
30483051
parameter.AddToQuery(query, "page", req.Page)
30493052
parameter.AddToQuery(query, "organization_id", req.OrganizationID)
3053+
parameter.AddToQuery(query, "quotum_names", req.QuotumNames)
30503054

30513055
scwReq := &scw.ScalewayRequest{
30523056
Method: "GET",

0 commit comments

Comments
 (0)