Skip to content

Commit 8df14b1

Browse files
authored
feat(ipam): add support for IsIPv6 (#1592)
1 parent 3d9d6f0 commit 8df14b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/ipam/v1alpha1/ipam_sdk.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ type ListIPsRequest struct {
220220
MacAddress *string `json:"-"`
221221

222222
Tags *[]string `json:"-"`
223+
224+
IsIPv6 *bool `json:"-"`
223225
}
224226

225227
// ListIPs: find IP addresses.
@@ -248,6 +250,7 @@ func (s *API) ListIPs(req *ListIPsRequest, opts ...scw.RequestOption) (*ListIPsR
248250
parameter.AddToQuery(query, "resource_type", req.ResourceType)
249251
parameter.AddToQuery(query, "mac_address", req.MacAddress)
250252
parameter.AddToQuery(query, "tags", req.Tags)
253+
parameter.AddToQuery(query, "is_ipv6", req.IsIPv6)
251254

252255
if fmt.Sprint(req.Region) == "" {
253256
return nil, errors.New("field Region cannot be empty in request")

0 commit comments

Comments
 (0)