Skip to content

Commit af5c083

Browse files
authored
fix(rdb): add name and version optional fields on ListDatabaseEngineRequest (#1437)
1 parent 10c85af commit af5c083

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/rdb/v1/rdb_sdk.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,10 @@ type ListDatabaseEnginesRequest struct {
13961396
//
13971397
// Region to target. If none is passed will use default region from the config
13981398
Region scw.Region `json:"-"`
1399+
// Name: name of the Database Engine
1400+
Name *string `json:"-"`
1401+
// Version: version of the Database Engine
1402+
Version *string `json:"-"`
13991403

14001404
Page *int32 `json:"-"`
14011405

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

14191423
query := url.Values{}
1424+
parameter.AddToQuery(query, "name", req.Name)
1425+
parameter.AddToQuery(query, "version", req.Version)
14201426
parameter.AddToQuery(query, "page", req.Page)
14211427
parameter.AddToQuery(query, "page_size", req.PageSize)
14221428

0 commit comments

Comments
 (0)