Skip to content

Commit eee4b9b

Browse files
authored
feat(redis): allow filtering the list of Clusters using version attribute (#1442)
1 parent 46b0ab7 commit eee4b9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/redis/v1/redis_sdk.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,8 @@ type ListClustersRequest struct {
633633
ProjectID *string `json:"-"`
634634
// OrganizationID: organization ID to list the cluster of
635635
OrganizationID *string `json:"-"`
636+
// Version: version of the clusters to filter upon
637+
Version *string `json:"-"`
636638

637639
Page *int32 `json:"-"`
638640

@@ -659,6 +661,7 @@ func (s *API) ListClusters(req *ListClustersRequest, opts ...scw.RequestOption)
659661
parameter.AddToQuery(query, "order_by", req.OrderBy)
660662
parameter.AddToQuery(query, "project_id", req.ProjectID)
661663
parameter.AddToQuery(query, "organization_id", req.OrganizationID)
664+
parameter.AddToQuery(query, "version", req.Version)
662665
parameter.AddToQuery(query, "page", req.Page)
663666
parameter.AddToQuery(query, "page_size", req.PageSize)
664667

0 commit comments

Comments
 (0)