Renaming PortConf to PortProfile; cleanup Device API func names

This commit is contained in:
James Stephenson
2020-10-07 08:58:59 -04:00
committed by Paul Tyng
parent 4b8ec1e2f8
commit 6203ee9620
6 changed files with 44 additions and 42 deletions

25
unifi/port_profile.go Normal file
View File

@@ -0,0 +1,25 @@
package unifi
import (
"context"
)
func (c *Client) ListPortProfile(ctx context.Context, site string) ([]PortProfile, error) {
return c.listPortProfile(ctx, site)
}
func (c *Client) GetPortProfile(ctx context.Context, site, id string) (*PortProfile, error) {
return c.getPortProfile(ctx, site, id)
}
func (c *Client) DeletePortProfile(ctx context.Context, site, id string) error {
return c.deletePortProfile(ctx, site, id)
}
func (c *Client) CreatePortProfile(ctx context.Context, site string, d *PortProfile) (*PortProfile, error) {
return c.createPortProfile(ctx, site, d)
}
func (c *Client) UpdatePortProfile(ctx context.Context, site string, d *PortProfile) (*PortProfile, error) {
return c.updatePortProfile(ctx, site, d)
}