From ae40573bb7b42c16c05fa655d640836f3c4ccfb2 Mon Sep 17 00:00:00 2001 From: Paul Tyng Date: Wed, 20 May 2020 22:01:23 -0400 Subject: [PATCH] Surface radius profiles --- unifi/radius_profile.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 unifi/radius_profile.go diff --git a/unifi/radius_profile.go b/unifi/radius_profile.go new file mode 100644 index 0000000..20387ed --- /dev/null +++ b/unifi/radius_profile.go @@ -0,0 +1,25 @@ +package unifi + +import ( + "context" +) + +func (c *Client) ListRADIUSProfile(ctx context.Context, site string) ([]RADIUSProfile, error) { + return c.listRADIUSProfile(ctx, site) +} + +func (c *Client) GetRADIUSProfile(ctx context.Context, site, id string) (*RADIUSProfile, error) { + return c.getRADIUSProfile(ctx, site, id) +} + +func (c *Client) DeleteRADIUSProfile(ctx context.Context, site, id string) error { + return c.deleteRADIUSProfile(ctx, site, id) +} + +func (c *Client) CreateRADIUSProfile(ctx context.Context, site string, d *RADIUSProfile) (*RADIUSProfile, error) { + return c.createRADIUSProfile(ctx, site, d) +} + +func (c *Client) UpdateRADIUSProfile(ctx context.Context, site string, d *RADIUSProfile) (*RADIUSProfile, error) { + return c.updateRADIUSProfile(ctx, site, d) +}