Expose PortConf ("port profiles") API
This commit is contained in:
committed by
Paul Tyng
parent
b2581f5eb3
commit
14e88eece9
25
unifi/port_conf.go
Normal file
25
unifi/port_conf.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package unifi
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
func (c *Client) ListPortConf(ctx context.Context, site string) ([]PortConf, error) {
|
||||
return c.listPortConf(ctx, site)
|
||||
}
|
||||
|
||||
func (c *Client) GetPortConf(ctx context.Context, site, id string) (*PortConf, error) {
|
||||
return c.getPortConf(ctx, site, id)
|
||||
}
|
||||
|
||||
func (c *Client) DeletePortConf(ctx context.Context, site, id string) error {
|
||||
return c.deletePortConf(ctx, site, id)
|
||||
}
|
||||
|
||||
func (c *Client) CreatePortConf(ctx context.Context, site string, d *PortConf) (*PortConf, error) {
|
||||
return c.createPortConf(ctx, site, d)
|
||||
}
|
||||
|
||||
func (c *Client) UpdatePortConf(ctx context.Context, site string, d *PortConf) (*PortConf, error) {
|
||||
return c.updatePortConf(ctx, site, d)
|
||||
}
|
||||
Reference in New Issue
Block a user