Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Commit

Permalink
Merge pull request #7 from mosen/feature/commandrequest_restrictions
Browse files Browse the repository at this point in the history
Add several types of commands to the request command struct.
  • Loading branch information
mosen authored Oct 12, 2016
2 parents 1b3e0e0 + 1691d17 commit 6e0586c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6e0586c

Please sign in to comment.