From ef2c57574bc9b2b1c4d08a377f64daa64d7014f1 Mon Sep 17 00:00:00 2001 From: Jesse Peterson Date: Fri, 4 Nov 2022 13:38:36 -0700 Subject: [PATCH] Variadic serial parameter for RemoveProfile --- godep/profile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/godep/profile.go b/godep/profile.go index 00ed684..85bdf4d 100644 --- a/godep/profile.go +++ b/godep/profile.go @@ -93,12 +93,12 @@ type ClearProfileResponse struct { // support it (nor does it appear to be used on the server-side). // The name parameter specifies the configured DEP name to use. // See https://developer.apple.com/documentation/devicemanagement/remove_a_profile-c2c -func (c *Client) RemoveProfile(ctx context.Context, name string, devices []string) (*ClearProfileResponse, error) { +func (c *Client) RemoveProfile(ctx context.Context, name string, serials ...string) (*ClearProfileResponse, error) { req := &struct { // ProfileUUID string `json:"profile_uuid,omitempty"` Devices []string `json:"devices"` }{ - Devices: devices, + Devices: serials, } resp := new(ClearProfileResponse) return resp, c.do(ctx, name, http.MethodDelete, "/profile/devices", req, resp)