From 1691d17d7505f9782b4f0081021aec6e8ce9fc3c Mon Sep 17 00:00:00 2001 From: Mosen Date: Wed, 12 Oct 2016 13:47:20 +1100 Subject: [PATCH] Add several types of commands to the request command struct. Add `Restrictions` as a valid payload-less command. --- command.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/command.go b/command.go index ab085c3..289496a 100644 --- a/command.go +++ b/command.go @@ -17,7 +17,17 @@ type CommandRequest struct { AccountConfiguration ScheduleOSUpdateScan InstallProfile + RemoveProfile + InstallProvisioningProfile + RemoveProvisioningProfile InstalledApplicationList + DeviceLock + ClearPasscode + EraseDevice + RequestMirroring + Restrictions + DeleteUser + EnableLostMode } // Payload is an MDM payload @@ -241,7 +251,8 @@ func NewPayload(request *CommandRequest) (*Payload, error) { "ManagedMediaList", "OSUpdateStatus", "DeviceConfigured", - "AvailableOSUpdates": + "AvailableOSUpdates", + "Restrictions": return payload, nil case "InstallApplication": payload.Command.InstallApplication = request.InstallApplication