Renaming PortConf to PortProfile; cleanup Device API func names
This commit is contained in:
committed by
Paul Tyng
parent
4b8ec1e2f8
commit
6203ee9620
25
unifi/port_profile.go
Normal file
25
unifi/port_profile.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user