diff --git a/netbox.go b/netbox.go index e270143..2fb47f4 100644 --- a/netbox.go +++ b/netbox.go @@ -128,12 +128,14 @@ func NewClient(apiurl string, httpClient *http.Client) (*Client, error) { c.common.client = c c.Clusters = (*ClustersService)(&c.common) + c.ClusterTypes = (*ClusterTypesService)(&c.common) c.Devices = (*DevicesService)(&c.common) c.DeviceRoles = (*DeviceRolesService)(&c.common) c.DeviceTypes = (*DeviceTypesService)(&c.common) c.Interfaces = (*InterfacesService)(&c.common) c.InventoryItems = (*InventoryItemsService)(&c.common) c.Prefixes = (*PrefixesService)(&c.common) + c.Platforms = (*PlatformsService)(&c.common) c.RearPorts = (*RearPortsService)(&c.common) c.Tenants = (*TenantsService)(&c.common) c.Secrets = (*SecretsService)(&c.common) @@ -254,6 +256,6 @@ func (c *Client) do(req *http.Request, v interface{}) (*http.Response, error) { // debugf is used as a formtter for debugging information func (c *Client) debugf(fmt string, v ...interface{}) { if c.Debug { - log.Printf("cendot client: "+fmt, v...) + log.Printf("netbox client: "+fmt, v...) } }