Skip to content

Commit 49d4c25

Browse files
authored
feat: update generated apis (#248)
1 parent 6a15f0c commit 49d4c25

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,10 @@ type ListServersRequest struct {
13801380
WithoutIP *bool `json:"-"`
13811381
// CommercialType list servers of this commercial type
13821382
CommercialType *string `json:"-"`
1383+
// State list servers in this state
1384+
//
1385+
// Default value: running
1386+
State *ServerState `json:"-"`
13831387
}
13841388

13851389
// ListServers list servers
@@ -1404,6 +1408,7 @@ func (s *API) ListServers(req *ListServersRequest, opts ...scw.RequestOption) (*
14041408
parameter.AddToQuery(query, "private_ip", req.PrivateIP)
14051409
parameter.AddToQuery(query, "without_ip", req.WithoutIP)
14061410
parameter.AddToQuery(query, "commercial_type", req.CommercialType)
1411+
parameter.AddToQuery(query, "state", req.State)
14071412

14081413
if fmt.Sprint(req.Zone) == "" {
14091414
return nil, errors.New("field Zone cannot be empty in request")

0 commit comments

Comments
 (0)