Forgot to add the new services to the client
This commit is contained in:
parent
9d226de485
commit
14c9b748c6
1 changed files with 3 additions and 1 deletions
|
@ -128,12 +128,14 @@ func NewClient(apiurl string, httpClient *http.Client) (*Client, error) {
|
||||||
|
|
||||||
c.common.client = c
|
c.common.client = c
|
||||||
c.Clusters = (*ClustersService)(&c.common)
|
c.Clusters = (*ClustersService)(&c.common)
|
||||||
|
c.ClusterTypes = (*ClusterTypesService)(&c.common)
|
||||||
c.Devices = (*DevicesService)(&c.common)
|
c.Devices = (*DevicesService)(&c.common)
|
||||||
c.DeviceRoles = (*DeviceRolesService)(&c.common)
|
c.DeviceRoles = (*DeviceRolesService)(&c.common)
|
||||||
c.DeviceTypes = (*DeviceTypesService)(&c.common)
|
c.DeviceTypes = (*DeviceTypesService)(&c.common)
|
||||||
c.Interfaces = (*InterfacesService)(&c.common)
|
c.Interfaces = (*InterfacesService)(&c.common)
|
||||||
c.InventoryItems = (*InventoryItemsService)(&c.common)
|
c.InventoryItems = (*InventoryItemsService)(&c.common)
|
||||||
c.Prefixes = (*PrefixesService)(&c.common)
|
c.Prefixes = (*PrefixesService)(&c.common)
|
||||||
|
c.Platforms = (*PlatformsService)(&c.common)
|
||||||
c.RearPorts = (*RearPortsService)(&c.common)
|
c.RearPorts = (*RearPortsService)(&c.common)
|
||||||
c.Tenants = (*TenantsService)(&c.common)
|
c.Tenants = (*TenantsService)(&c.common)
|
||||||
c.Secrets = (*SecretsService)(&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
|
// debugf is used as a formtter for debugging information
|
||||||
func (c *Client) debugf(fmt string, v ...interface{}) {
|
func (c *Client) debugf(fmt string, v ...interface{}) {
|
||||||
if c.Debug {
|
if c.Debug {
|
||||||
log.Printf("cendot client: "+fmt, v...)
|
log.Printf("netbox client: "+fmt, v...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue