Skip to content

Commit b7e2590

Browse files
author
Jeremy Albinet
committed
Upgrade for Netbox 2.9
Add `x-omitempty: true` on arrays of NestedTag
1 parent eea8573 commit b7e2590

File tree

2 files changed

+6616
-2990
lines changed

2 files changed

+6616
-2990
lines changed

netbox/netbox.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
// NewNetboxAt returns a client which will connect to the given
2828
// hostname, which can optionally include a port, e.g. localhost:8000
29-
func NewNetboxAt(host string) *client.NetBox {
29+
func NewNetboxAt(host string) *client.NetBoxAPI {
3030
t := client.DefaultTransportConfig().WithHost(host)
3131
return client.NewHTTPClientWithConfig(strfmt.Default, t)
3232
}
@@ -37,7 +37,7 @@ const authHeaderFormat = "Token %v"
3737
// NewNetboxWithAPIKey returns a client which will connect to the given
3838
// hostname (and optionally port), and will set the expected Authorization
3939
// header on each request
40-
func NewNetboxWithAPIKey(host string, apiToken string) *client.NetBox {
40+
func NewNetboxWithAPIKey(host string, apiToken string) *client.NetBoxAPI {
4141
t := runtimeclient.New(host, client.DefaultBasePath, client.DefaultSchemes)
4242
t.DefaultAuthentication = runtimeclient.APIKeyAuth(authHeaderName, "header", fmt.Sprintf(authHeaderFormat, apiToken))
4343
return client.New(t, strfmt.Default)

0 commit comments

Comments
 (0)