@@ -304,6 +304,8 @@ const (
304304 InstanceStatusError = InstanceStatus ("error" )
305305 // InstanceStatusLocked is [insert doc].
306306 InstanceStatusLocked = InstanceStatus ("locked" )
307+ // InstanceStatusMigrating is [insert doc].
308+ InstanceStatusMigrating = InstanceStatus ("migrating" )
307309)
308310
309311func (enum InstanceStatus ) String () string {
@@ -344,6 +346,8 @@ const (
344346 LbStatusError = LbStatus ("error" )
345347 // LbStatusLocked is [insert doc].
346348 LbStatusLocked = LbStatus ("locked" )
349+ // LbStatusMigrating is [insert doc].
350+ LbStatusMigrating = LbStatus ("migrating" )
347351)
348352
349353func (enum LbStatus ) String () string {
@@ -1757,7 +1761,7 @@ type UpdateIPRequest struct {
17571761 // IPID iP address ID
17581762 IPID string `json:"-"`
17591763 // Reverse reverse DNS
1760- Reverse * string `json:"- "`
1764+ Reverse * string `json:"reverse "`
17611765}
17621766
17631767// UpdateIP update IP
@@ -1769,9 +1773,6 @@ func (s *API) UpdateIP(req *UpdateIPRequest, opts ...scw.RequestOption) (*IP, er
17691773 req .Region = defaultRegion
17701774 }
17711775
1772- query := url.Values {}
1773- parameter .AddToQuery (query , "reverse" , req .Reverse )
1774-
17751776 if fmt .Sprint (req .Region ) == "" {
17761777 return nil , errors .New ("field Region cannot be empty in request" )
17771778 }
@@ -1783,10 +1784,14 @@ func (s *API) UpdateIP(req *UpdateIPRequest, opts ...scw.RequestOption) (*IP, er
17831784 scwReq := & scw.ScalewayRequest {
17841785 Method : "PATCH" ,
17851786 Path : "/lb/v1/regions/" + fmt .Sprint (req .Region ) + "/ips/" + fmt .Sprint (req .IPID ) + "" ,
1786- Query : query ,
17871787 Headers : http.Header {},
17881788 }
17891789
1790+ err = scwReq .SetBody (req )
1791+ if err != nil {
1792+ return nil , err
1793+ }
1794+
17901795 var resp IP
17911796
17921797 err = s .client .Do (scwReq , & resp , opts ... )
@@ -2194,7 +2199,7 @@ type AddBackendServersRequest struct {
21942199 Region scw.Region `json:"-"`
21952200 // BackendID backend ID
21962201 BackendID string `json:"-"`
2197- // ServerIP set all IPs to remove of your backend
2202+ // ServerIP set all IPs to add on your backend
21982203 ServerIP []string `json:"server_ip"`
21992204}
22002205
@@ -2282,7 +2287,7 @@ type SetBackendServersRequest struct {
22822287 Region scw.Region `json:"-"`
22832288 // BackendID backend ID
22842289 BackendID string `json:"-"`
2285- // ServerIP set all IPs to add of your backend and remove all other
2290+ // ServerIP set all IPs to add on your backend and remove all other
22862291 ServerIP []string `json:"server_ip"`
22872292}
22882293
0 commit comments