Skip to content

Commit

Permalink
fix(rdb): add name and version optional fields on ListDatabaseEngineR…
Browse files Browse the repository at this point in the history
…equest (#1437)
  • Loading branch information
scaleway-bot authored Oct 21, 2022
1 parent 10c85af commit af5c083
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/rdb/v1/rdb_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,10 @@ type ListDatabaseEnginesRequest struct {
//
// Region to target. If none is passed will use default region from the config
Region scw.Region `json:"-"`
// Name: name of the Database Engine
Name *string `json:"-"`
// Version: version of the Database Engine
Version *string `json:"-"`

Page *int32 `json:"-"`

Expand All @@ -1417,6 +1421,8 @@ func (s *API) ListDatabaseEngines(req *ListDatabaseEnginesRequest, opts ...scw.R
}

query := url.Values{}
parameter.AddToQuery(query, "name", req.Name)
parameter.AddToQuery(query, "version", req.Version)
parameter.AddToQuery(query, "page", req.Page)
parameter.AddToQuery(query, "page_size", req.PageSize)

Expand Down

0 comments on commit af5c083

Please sign in to comment.