Skip to content

Commit f28251c

Browse files
committed
feat: update generated apis
1 parent d2b83c1 commit f28251c

File tree

12 files changed

+17
-0
lines changed

12 files changed

+17
-0
lines changed

api/account/v2alpha1/account_sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net"
1212
"net/http"
1313
"net/url"
14+
"strings"
1415
"time"
1516

1617
"github.com/scaleway/scaleway-sdk-go/internal/errors"

api/baremetal/v1alpha1/baremetal_sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net"
1212
"net/http"
1313
"net/url"
14+
"strings"
1415
"time"
1516

1617
"github.com/scaleway/scaleway-sdk-go/internal/errors"

api/domain/v2alpha2/domain_sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net"
1212
"net/http"
1313
"net/url"
14+
"strings"
1415
"time"
1516

1617
"github.com/scaleway/scaleway-sdk-go/internal/errors"

api/instance/v1/instance_sdk.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net"
1212
"net/http"
1313
"net/url"
14+
"strings"
1415
"time"
1516

1617
"github.com/scaleway/scaleway-sdk-go/internal/errors"
@@ -1413,6 +1414,8 @@ type ListServersRequest struct {
14131414
//
14141415
// Default value: running
14151416
State *ServerState `json:"-"`
1417+
// Tags: list servers with these exact tags
1418+
Tags []string `json:"-"`
14161419
}
14171420

14181421
// ListServers: list servers
@@ -1438,6 +1441,9 @@ func (s *API) ListServers(req *ListServersRequest, opts ...scw.RequestOption) (*
14381441
parameter.AddToQuery(query, "without_ip", req.WithoutIP)
14391442
parameter.AddToQuery(query, "commercial_type", req.CommercialType)
14401443
parameter.AddToQuery(query, "state", req.State)
1444+
if len(req.Tags) != 0 {
1445+
parameter.AddToQuery(query, "tags", strings.Join(req.Tags, ","))
1446+
}
14411447

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

api/k8s/v1/k8s_sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net"
1212
"net/http"
1313
"net/url"
14+
"strings"
1415
"time"
1516

1617
"github.com/scaleway/scaleway-sdk-go/internal/errors"

api/k8s/v1beta3/k8s_sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net"
1212
"net/http"
1313
"net/url"
14+
"strings"
1415
"time"
1516

1617
"github.com/scaleway/scaleway-sdk-go/internal/errors"

api/k8s/v1beta4/k8s_sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net"
1212
"net/http"
1313
"net/url"
14+
"strings"
1415
"time"
1516

1617
"github.com/scaleway/scaleway-sdk-go/internal/errors"

api/lb/v1/lb_sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net"
1212
"net/http"
1313
"net/url"
14+
"strings"
1415
"time"
1516

1617
"github.com/scaleway/scaleway-sdk-go/internal/errors"

api/marketplace/v1/marketplace_sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net"
1212
"net/http"
1313
"net/url"
14+
"strings"
1415
"time"
1516

1617
"github.com/scaleway/scaleway-sdk-go/internal/errors"

api/rdb/v1/rdb_sdk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"net"
1212
"net/http"
1313
"net/url"
14+
"strings"
1415
"time"
1516

1617
"github.com/scaleway/scaleway-sdk-go/internal/errors"

0 commit comments

Comments
 (0)