mdmcommands

package module
v0.0.0-...-98d1786 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Unlicense Imports: 2 Imported by: 7

README

MDM command structs and helpers for Go

Package mdmcommands provides structs and helpers for working with Apple MDM commands in Go.

Go Reference

These structs and helpers are generated using admgencmd from the admgen project.

Documentation

Overview

Code generated by "admgencmd"; DO NOT EDIT. Sources: application.remove.yaml, application.install.yaml, application.install.enterprise.yaml, application.extensions.mappings.yaml, application.validate.yaml, application.installed.list.yaml, application.redemptioncode.yaml, application.invitetoprogram.yaml, managed.application.configuration.yaml, managed.application.feedback.yaml Options: no-shared=true

Code generated by "admgencmd"; DO NOT EDIT. Sources: device.shutdown.yaml, device.restart.yaml, device.configured.yaml, device.erase.yaml, device.lostmode.enable.yaml, device.lostmode.disable.yaml, device.lostmode.location.yaml, device.lostmode.playsound.yaml, device.restrictions.clearpassword.yaml, device.lock.yaml, device.esim.yaml, device.activationlock.bypasscode.yaml, device.activationlock.clearbypasscode.yaml, declarativemanagement.yaml, rotate.file.vault.key.yaml Options: no-shared=true

Code generated by "admgencmd"; DO NOT EDIT. Sources: information.device.yaml, information.security.yaml, certificate.list.yaml Options: no-shared=true

Code generated by "admgencmd"; DO NOT EDIT. Sources: lom.devicerequest.yaml, lom.setuprequest.yaml Options: no-shared=true

Code generated by "admgencmd"; DO NOT EDIT. Sources: media.install.yaml, media.remove.yaml, media.managed.list.yaml Options: no-shared=true

Code generated by "admgencmd"; DO NOT EDIT. Sources: mirroring.stop.yaml, mirroring.request.yaml Options: no-shared=true

Code generated by "admgencmd"; DO NOT EDIT. Sources: passcode.unlocktoken.yaml, passcode.recovery.set.yaml, passcode.clear.yaml, passcode.firmware.verify.yaml, passcode.recovery.verify.yaml, passcode.firmware.set.yaml Options: no-shared=true

Code generated by "admgencmd"; DO NOT EDIT. Sources: profile.install.yaml, profile.remove.yaml, profile.list.yaml, profile.provisioning.install.yaml, profile.provisioning.remove.yaml, profile.provisioning.list.yaml Options: no-shared=true

Code generated by "admgencmd"; DO NOT EDIT. Sources: remotedesktop.enable.yaml, remotedesktop.disable.yaml Options: no-shared=true

Code generated by "admgencmd"; DO NOT EDIT. Sources: system.update.schedule.yaml, system.update.available.yaml, system.update.scan.yaml, system.update.status.yaml Options: no-shared=true

Code generated by "admgencmd"; DO NOT EDIT. Sources: user.delete.yaml, user.list.yaml, user.logout.yaml, user.unlock.yaml, user.configured.yaml, set.auto.admin.password.yaml, account.configuration.yaml Options: no-shared=true

Package mdmcommands provides structs and helpers for working with Apple MDM commands in Go.

Code generated by "admgencmd"; DO NOT EDIT.

Index

Constants

View Source
const AccountConfigurationRequestType = "AccountConfiguration"
View Source
const ActivationLockBypassCodeRequestType = "ActivationLockBypassCode"
View Source
const ApplyRedemptionCodeRequestType = "ApplyRedemptionCode"
View Source
const AvailableOSUpdatesRequestType = "AvailableOSUpdates"
View Source
const CertificateListRequestType = "CertificateList"
View Source
const ClearActivationLockBypassCodeRequestType = "ClearActivationLockBypassCode"
View Source
const ClearPasscodeRequestType = "ClearPasscode"
View Source
const ClearRestrictionsPasswordRequestType = "ClearRestrictionsPassword"
View Source
const DeclarativeManagementRequestType = "DeclarativeManagement"
View Source
const DeleteUserRequestType = "DeleteUser"
View Source
const DeviceConfiguredRequestType = "DeviceConfigured"
View Source
const DeviceInformationRequestType = "DeviceInformation"
View Source
const DeviceLocationRequestType = "DeviceLocation"
View Source
const DeviceLockRequestType = "DeviceLock"
View Source
const DisableLostModeRequestType = "DisableLostMode"
View Source
const DisableRemoteDesktopRequestType = "DisableRemoteDesktop"
View Source
const EnableLostModeRequestType = "EnableLostMode"
View Source
const EnableRemoteDesktopRequestType = "EnableRemoteDesktop"
View Source
const EraseDeviceRequestType = "EraseDevice"
View Source
const InstallApplicationRequestType = "InstallApplication"
View Source
const InstallEnterpriseApplicationRequestType = "InstallEnterpriseApplication"
View Source
const InstallMediaRequestType = "InstallMedia"
View Source
const InstallProfileRequestType = "InstallProfile"
View Source
const InstallProvisioningProfileRequestType = "InstallProvisioningProfile"
View Source
const InstalledApplicationListRequestType = "InstalledApplicationList"
View Source
const InviteToProgramRequestType = "InviteToProgram"
View Source
const LOMDeviceRequestRequestType = "LOMDeviceRequest"
View Source
const LOMSetupRequestRequestType = "LOMSetupRequest"
View Source
const LogOutUserRequestType = "LogOutUser"
View Source
const ManagedApplicationConfigurationRequestType = "ManagedApplicationConfiguration"
View Source
const ManagedApplicationFeedbackRequestType = "ManagedApplicationFeedback"
View Source
const ManagedMediaListRequestType = "ManagedMediaList"
View Source
const NSExtensionMappingsRequestType = "NSExtensionMappings"
View Source
const OSUpdateStatusRequestType = "OSUpdateStatus"
View Source
const PlayLostModeSoundRequestType = "PlayLostModeSound"
View Source
const ProfileListRequestType = "ProfileList"
View Source
const ProvisioningProfileListRequestType = "ProvisioningProfileList"
View Source
const RefreshCellularPlansRequestType = "RefreshCellularPlans"
View Source
const RemoveApplicationRequestType = "RemoveApplication"
View Source
const RemoveMediaRequestType = "RemoveMedia"
View Source
const RemoveProfileRequestType = "RemoveProfile"
View Source
const RemoveProvisioningProfileRequestType = "RemoveProvisioningProfile"
View Source
const RequestMirroringRequestType = "RequestMirroring"
View Source
const RequestUnlockTokenRequestType = "RequestUnlockToken"
View Source
const RestartDeviceRequestType = "RestartDevice"
View Source
const RotateFileVaultKeyRequestType = "RotateFileVaultKey"
View Source
const ScheduleOSUpdateRequestType = "ScheduleOSUpdate"
View Source
const ScheduleOSUpdateScanRequestType = "ScheduleOSUpdateScan"
View Source
const SecurityInfoRequestType = "SecurityInfo"
View Source
const SetAutoAdminPasswordRequestType = "SetAutoAdminPassword"
View Source
const SetFirmwarePasswordRequestType = "SetFirmwarePassword"
View Source
const SetRecoveryLockRequestType = "SetRecoveryLock"
View Source
const ShutDownDeviceRequestType = "ShutDownDevice"
View Source
const StopMirroringRequestType = "StopMirroring"
View Source
const UnlockUserAccountRequestType = "UnlockUserAccount"
View Source
const UserConfiguredRequestType = "UserConfigured"
View Source
const UserListRequestType = "UserList"
View Source
const ValidateApplicationsRequestType = "ValidateApplications"
View Source
const VerifyFirmwarePasswordRequestType = "VerifyFirmwarePassword"
View Source
const VerifyRecoveryLockRequestType = "VerifyRecoveryLock"

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(requestType string, uuid string) interface{}

NewCommand creates a new command from requestType.

func NewResponse

func NewResponse(requestType string) interface{}

NewResponse creates a new command response from requestType.

func ValidRequestType

func ValidRequestType(requestType string) bool

ValidRequestType checks that we are able to create a new command from requestType.

Types

type AccessibilitySettings

type AccessibilitySettings struct {
	BoldTextEnabled            *bool
	IncreaseContrastEnabled    *bool
	ReduceMotionEnabled        *bool
	ReduceTransparencyEnabled  *bool
	TextSize                   *int // supported values: -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
	TouchAccommodationsEnabled *bool
	VoiceOverEnabled           *bool
	ZoomEnabled                *bool
	GrayscaleEnabled           *bool
}

type AccountConfigurationCommand

type AccountConfigurationCommand struct {
	Command     AccountConfigurationPayload
	CommandUUID string
}

AccountConfigurationCommand is the top-level structure for the "AccountConfiguration" Apple MDM command.

func NewAccountConfigurationCommand

func NewAccountConfigurationCommand(uuid string) *AccountConfigurationCommand

NewAccountConfigurationCommand creates a new "AccountConfiguration" Apple MDM command.

func (*AccountConfigurationCommand) GenericCommand

func (c *AccountConfigurationCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type AccountConfigurationPayload

type AccountConfigurationPayload struct {
	SkipPrimarySetupAccountCreation     *bool                        `plist:",omitempty"`
	SetPrimarySetupAccountAsRegularUser *bool                        `plist:",omitempty"`
	PrimaryAccountFullName              *string                      `plist:",omitempty"`
	PrimaryAccountUserName              *string                      `plist:",omitempty"`
	DontAutoPopulatePrimaryAccountInfo  *bool                        `plist:",omitempty"`
	LockPrimaryAccountInfo              *bool                        `plist:",omitempty"`
	AutoSetupAdminAccounts              *[]AutoSetupAdminAccountItem `plist:",omitempty"`
	ManagedLocalUserShortName           *string                      `plist:",omitempty"`
	RequestType                         string                       // supported value: AccountConfiguration
	RequestRequiresNetworkTether        *bool                        `plist:",omitempty"`
}

AccountConfigurationPayload is the "inner" command-specific payload for the "AccountConfiguration" Apple MDM command.

type AccountConfigurationResponse

type AccountConfigurationResponse struct {
	GenericResponse
}

AccountConfigurationResponse is the command result report (response) for the "AccountConfiguration" Apple MDM command.

func (*AccountConfigurationResponse) GetGenericResponse

func (r *AccountConfigurationResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*AccountConfigurationResponse) Validate

func (r *AccountConfigurationResponse) Validate() error

Validate checks for any command response errors.

type ActivationLockBypassCodeCommand

type ActivationLockBypassCodeCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

ActivationLockBypassCodeCommand is the top-level structure for the "ActivationLockBypassCode" Apple MDM command.

func NewActivationLockBypassCodeCommand

func NewActivationLockBypassCodeCommand(uuid string) *ActivationLockBypassCodeCommand

NewActivationLockBypassCodeCommand creates a new "ActivationLockBypassCode" Apple MDM command.

func (*ActivationLockBypassCodeCommand) GenericCommand

func (c *ActivationLockBypassCodeCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ActivationLockBypassCodeResponse

type ActivationLockBypassCodeResponse struct {
	ActivationLockBypassCode string
	GenericResponse
}

ActivationLockBypassCodeResponse is the command result report (response) for the "ActivationLockBypassCode" Apple MDM command.

func (*ActivationLockBypassCodeResponse) GetGenericResponse

func (r *ActivationLockBypassCodeResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ActivationLockBypassCodeResponse) Validate

Validate checks for any command response errors.

type ApplicationConfigurationsItem

type ApplicationConfigurationsItem struct {
	Identifier    string
	Configuration interface{} `plist:",omitempty"` // <any> type as single dictionary subkey
}

type ApplicationsItem

type ApplicationsItem struct {
	Allowed  *bool
	BundleID *string
	Name     *string
}

type ApplyRedemptionCodeCommand

type ApplyRedemptionCodeCommand struct {
	Command     ApplyRedemptionCodePayload
	CommandUUID string
}

ApplyRedemptionCodeCommand is the top-level structure for the "ApplyRedemptionCode" Apple MDM command.

func NewApplyRedemptionCodeCommand

func NewApplyRedemptionCodeCommand(uuid string) *ApplyRedemptionCodeCommand

NewApplyRedemptionCodeCommand creates a new "ApplyRedemptionCode" Apple MDM command.

func (*ApplyRedemptionCodeCommand) GenericCommand

func (c *ApplyRedemptionCodeCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ApplyRedemptionCodePayload

type ApplyRedemptionCodePayload struct {
	Identifier                   string
	RedemptionCode               string
	RequestType                  string // supported value: ApplyRedemptionCode
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

ApplyRedemptionCodePayload is the "inner" command-specific payload for the "ApplyRedemptionCode" Apple MDM command.

type ApplyRedemptionCodeResponse

type ApplyRedemptionCodeResponse struct {
	GenericResponse
}

ApplyRedemptionCodeResponse is the command result report (response) for the "ApplyRedemptionCode" Apple MDM command.

func (*ApplyRedemptionCodeResponse) GetGenericResponse

func (r *ApplyRedemptionCodeResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ApplyRedemptionCodeResponse) Validate

func (r *ApplyRedemptionCodeResponse) Validate() error

Validate checks for any command response errors.

type Attributes

type Attributes struct {
	VPNUUID                                *string   `plist:",omitempty"`
	ContentFilterUUID                      *string   `plist:",omitempty"`
	DNSProxyUUID                           *string   `plist:",omitempty"`
	RelayUUID                              *string   `plist:",omitempty"`
	AssociatedDomains                      *[]string `plist:",omitempty"`
	AssociatedDomainsEnableDirectDownloads *bool     `plist:",omitempty"`
	Removable                              *bool     `plist:",omitempty"`
	TapToPayScreenLock                     *bool     `plist:",omitempty"`
	CellularSliceUUID                      *string   `plist:",omitempty"`
	Hideable                               *bool     `plist:",omitempty"`
	Lockable                               *bool     `plist:",omitempty"`
}

type AutoSetupAdminAccountItem

type AutoSetupAdminAccountItem struct {
	ShortName    string  `plist:"shortName"`
	FullName     *string `plist:"fullName,omitempty"`
	PasswordHash *[]byte `plist:"passwordHash,omitempty"`
	Hidden       *bool   `plist:"hidden,omitempty"`
}

type AutoSetupAdminAccountsItem

type AutoSetupAdminAccountsItem struct {
	GUID      *string
	ShortName *string `plist:"shortName"`
}

type AvailableOSUpdatesCommand

type AvailableOSUpdatesCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

AvailableOSUpdatesCommand is the top-level structure for the "AvailableOSUpdates" Apple MDM command.

func NewAvailableOSUpdatesCommand

func NewAvailableOSUpdatesCommand(uuid string) *AvailableOSUpdatesCommand

NewAvailableOSUpdatesCommand creates a new "AvailableOSUpdates" Apple MDM command.

func (*AvailableOSUpdatesCommand) GenericCommand

func (c *AvailableOSUpdatesCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type AvailableOSUpdatesItem

type AvailableOSUpdatesItem struct {
	ProductKey                 string
	HumanReadableName          string
	HumanReadableNameLocale    string
	MetadataURL                string
	ProductName                string
	Version                    string
	Build                      string
	DownloadSize               int
	InstallSize                int
	AppIdentifiersToClose      []string
	IsCritical                 *bool      `plist:",omitempty"`
	IsConfigDataUpdate         *bool      `plist:",omitempty"`
	IsFirmwareUpdate           *bool      `plist:",omitempty"`
	IsMajorOSUpdate            *bool      `plist:",omitempty"`
	RestartRequired            *bool      `plist:",omitempty"`
	AllowsInstallLater         *bool      `plist:",omitempty"`
	DeferredUntil              *time.Time `plist:",omitempty"`
	RequiresBootstrapToken     *bool      `plist:",omitempty"`
	IsSecurityResponse         bool
	SupplementalBuildVersion   *string `plist:",omitempty"`
	SupplementalOSVersionExtra *string `plist:",omitempty"`
}

type AvailableOSUpdatesResponse

type AvailableOSUpdatesResponse struct {
	AvailableOSUpdates []AvailableOSUpdatesItem
	GenericResponse
}

AvailableOSUpdatesResponse is the command result report (response) for the "AvailableOSUpdates" Apple MDM command.

func (*AvailableOSUpdatesResponse) GetGenericResponse

func (r *AvailableOSUpdatesResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*AvailableOSUpdatesResponse) Validate

func (r *AvailableOSUpdatesResponse) Validate() error

Validate checks for any command response errors.

type BooksItem

type BooksItem struct {
	ITunesStoreID int     `plist:"iTunesStoreID"`
	State         *string `plist:",omitempty"`
	PersistentID  *string `plist:",omitempty"`
	Kind          *string `plist:",omitempty"`
	Version       *string `plist:",omitempty"`
	Author        *string `plist:",omitempty"`
	Title         *string `plist:",omitempty"`
}

type CertificateListCommand

type CertificateListCommand struct {
	Command     CertificateListPayload
	CommandUUID string
}

CertificateListCommand is the top-level structure for the "CertificateList" Apple MDM command.

func NewCertificateListCommand

func NewCertificateListCommand(uuid string) *CertificateListCommand

NewCertificateListCommand creates a new "CertificateList" Apple MDM command.

func (*CertificateListCommand) GenericCommand

func (c *CertificateListCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type CertificateListItem

type CertificateListItem struct {
	CommonName string
	IsIdentity bool
	Data       []byte
}

type CertificateListPayload

type CertificateListPayload struct {
	ManagedOnly                  *bool  `plist:",omitempty"`
	RequestType                  string // supported value: CertificateList
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

CertificateListPayload is the "inner" command-specific payload for the "CertificateList" Apple MDM command.

type CertificateListResponse

type CertificateListResponse struct {
	CertificateList []CertificateListItem
	GenericResponse
}

CertificateListResponse is the command result report (response) for the "CertificateList" Apple MDM command.

func (*CertificateListResponse) GetGenericResponse

func (r *CertificateListResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*CertificateListResponse) Validate

func (r *CertificateListResponse) Validate() error

Validate checks for any command response errors.

type ClearActivationLockBypassCodeCommand

type ClearActivationLockBypassCodeCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

ClearActivationLockBypassCodeCommand is the top-level structure for the "ClearActivationLockBypassCode" Apple MDM command.

func NewClearActivationLockBypassCodeCommand

func NewClearActivationLockBypassCodeCommand(uuid string) *ClearActivationLockBypassCodeCommand

NewClearActivationLockBypassCodeCommand creates a new "ClearActivationLockBypassCode" Apple MDM command.

func (*ClearActivationLockBypassCodeCommand) GenericCommand

GenericCommand creates a new generic command using the values of c.

type ClearActivationLockBypassCodeResponse

type ClearActivationLockBypassCodeResponse struct {
	GenericResponse
}

ClearActivationLockBypassCodeResponse is the command result report (response) for the "ClearActivationLockBypassCode" Apple MDM command.

func (*ClearActivationLockBypassCodeResponse) GetGenericResponse

func (r *ClearActivationLockBypassCodeResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ClearActivationLockBypassCodeResponse) Validate

Validate checks for any command response errors.

type ClearPasscodeCommand

type ClearPasscodeCommand struct {
	Command     ClearPasscodePayload
	CommandUUID string
}

ClearPasscodeCommand is the top-level structure for the "ClearPasscode" Apple MDM command.

func NewClearPasscodeCommand

func NewClearPasscodeCommand(uuid string) *ClearPasscodeCommand

NewClearPasscodeCommand creates a new "ClearPasscode" Apple MDM command.

func (*ClearPasscodeCommand) GenericCommand

func (c *ClearPasscodeCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ClearPasscodePayload

type ClearPasscodePayload struct {
	UnlockToken                  []byte
	RequestType                  string // supported value: ClearPasscode
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

ClearPasscodePayload is the "inner" command-specific payload for the "ClearPasscode" Apple MDM command.

type ClearPasscodeResponse

type ClearPasscodeResponse struct {
	GenericResponse
}

ClearPasscodeResponse is the command result report (response) for the "ClearPasscode" Apple MDM command.

func (*ClearPasscodeResponse) GetGenericResponse

func (r *ClearPasscodeResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ClearPasscodeResponse) Validate

func (r *ClearPasscodeResponse) Validate() error

Validate checks for any command response errors.

type ClearRestrictionsPasswordCommand

type ClearRestrictionsPasswordCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

ClearRestrictionsPasswordCommand is the top-level structure for the "ClearRestrictionsPassword" Apple MDM command.

func NewClearRestrictionsPasswordCommand

func NewClearRestrictionsPasswordCommand(uuid string) *ClearRestrictionsPasswordCommand

NewClearRestrictionsPasswordCommand creates a new "ClearRestrictionsPassword" Apple MDM command.

func (*ClearRestrictionsPasswordCommand) GenericCommand

func (c *ClearRestrictionsPasswordCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ClearRestrictionsPasswordResponse

type ClearRestrictionsPasswordResponse struct {
	GenericResponse
}

ClearRestrictionsPasswordResponse is the command result report (response) for the "ClearRestrictionsPassword" Apple MDM command.

func (*ClearRestrictionsPasswordResponse) GetGenericResponse

func (r *ClearRestrictionsPasswordResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ClearRestrictionsPasswordResponse) Validate

Validate checks for any command response errors.

type DeclarativeManagementCommand

type DeclarativeManagementCommand struct {
	Command     DeclarativeManagementPayload
	CommandUUID string
}

DeclarativeManagementCommand is the top-level structure for the "DeclarativeManagement" Apple MDM command.

func NewDeclarativeManagementCommand

func NewDeclarativeManagementCommand(uuid string) *DeclarativeManagementCommand

NewDeclarativeManagementCommand creates a new "DeclarativeManagement" Apple MDM command.

func (*DeclarativeManagementCommand) GenericCommand

func (c *DeclarativeManagementCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type DeclarativeManagementPayload

type DeclarativeManagementPayload struct {
	Data                         *[]byte `plist:",omitempty"`
	RequestType                  string  // supported value: DeclarativeManagement
	RequestRequiresNetworkTether *bool   `plist:",omitempty"`
}

DeclarativeManagementPayload is the "inner" command-specific payload for the "DeclarativeManagement" Apple MDM command.

type DeclarativeManagementResponse

type DeclarativeManagementResponse struct {
	GenericResponse
}

DeclarativeManagementResponse is the command result report (response) for the "DeclarativeManagement" Apple MDM command.

func (*DeclarativeManagementResponse) GetGenericResponse

func (r *DeclarativeManagementResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*DeclarativeManagementResponse) Validate

func (r *DeclarativeManagementResponse) Validate() error

Validate checks for any command response errors.

type DeleteUserCommand

type DeleteUserCommand struct {
	Command     DeleteUserPayload
	CommandUUID string
}

DeleteUserCommand is the top-level structure for the "DeleteUser" Apple MDM command.

func NewDeleteUserCommand

func NewDeleteUserCommand(uuid string) *DeleteUserCommand

NewDeleteUserCommand creates a new "DeleteUser" Apple MDM command.

func (*DeleteUserCommand) GenericCommand

func (c *DeleteUserCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type DeleteUserPayload

type DeleteUserPayload struct {
	UserName                     *string `plist:",omitempty"`
	ForceDeletion                *bool   `plist:",omitempty"`
	DeleteAllUsers               *bool   `plist:",omitempty"`
	RequestType                  string  // supported value: DeleteUser
	RequestRequiresNetworkTether *bool   `plist:",omitempty"`
}

DeleteUserPayload is the "inner" command-specific payload for the "DeleteUser" Apple MDM command.

type DeleteUserResponse

type DeleteUserResponse struct {
	GenericResponse
}

DeleteUserResponse is the command result report (response) for the "DeleteUser" Apple MDM command.

func (*DeleteUserResponse) GetGenericResponse

func (r *DeleteUserResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*DeleteUserResponse) Validate

func (r *DeleteUserResponse) Validate() error

Validate checks for any command response errors.

type DeviceConfiguredCommand

type DeviceConfiguredCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

DeviceConfiguredCommand is the top-level structure for the "DeviceConfigured" Apple MDM command.

func NewDeviceConfiguredCommand

func NewDeviceConfiguredCommand(uuid string) *DeviceConfiguredCommand

NewDeviceConfiguredCommand creates a new "DeviceConfigured" Apple MDM command.

func (*DeviceConfiguredCommand) GenericCommand

func (c *DeviceConfiguredCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type DeviceConfiguredResponse

type DeviceConfiguredResponse struct {
	GenericResponse
}

DeviceConfiguredResponse is the command result report (response) for the "DeviceConfigured" Apple MDM command.

func (*DeviceConfiguredResponse) GetGenericResponse

func (r *DeviceConfiguredResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*DeviceConfiguredResponse) Validate

func (r *DeviceConfiguredResponse) Validate() error

Validate checks for any command response errors.

type DeviceInformationCommand

type DeviceInformationCommand struct {
	Command     DeviceInformationPayload
	CommandUUID string
}

DeviceInformationCommand is the top-level structure for the "DeviceInformation" Apple MDM command.

func NewDeviceInformationCommand

func NewDeviceInformationCommand(uuid string) *DeviceInformationCommand

NewDeviceInformationCommand creates a new "DeviceInformation" Apple MDM command.

func (*DeviceInformationCommand) GenericCommand

func (c *DeviceInformationCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type DeviceInformationPayload

type DeviceInformationPayload struct {
	Queries                      []string // 85 array value(s) defined in schema
	DeviceAttestationNonce       *[]byte  `plist:",omitempty"`
	RequestType                  string   // supported value: DeviceInformation
	RequestRequiresNetworkTether *bool    `plist:",omitempty"`
}

DeviceInformationPayload is the "inner" command-specific payload for the "DeviceInformation" Apple MDM command.

type DeviceInformationResponse

type DeviceInformationResponse struct {
	QueryResponses QueryResponses
	GenericResponse
}

DeviceInformationResponse is the command result report (response) for the "DeviceInformation" Apple MDM command.

func (*DeviceInformationResponse) GetGenericResponse

func (r *DeviceInformationResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*DeviceInformationResponse) Validate

func (r *DeviceInformationResponse) Validate() error

Validate checks for any command response errors.

type DeviceLocationCommand

type DeviceLocationCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

DeviceLocationCommand is the top-level structure for the "DeviceLocation" Apple MDM command.

func NewDeviceLocationCommand

func NewDeviceLocationCommand(uuid string) *DeviceLocationCommand

NewDeviceLocationCommand creates a new "DeviceLocation" Apple MDM command.

func (*DeviceLocationCommand) GenericCommand

func (c *DeviceLocationCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type DeviceLocationResponse

type DeviceLocationResponse struct {
	Latitude           float64
	Longitude          float64
	HorizontalAccuracy float64
	VerticalAccuracy   float64
	Altitude           float64
	Speed              float64
	Course             float64
	Timestamp          string
	GenericResponse
}

DeviceLocationResponse is the command result report (response) for the "DeviceLocation" Apple MDM command.

func (*DeviceLocationResponse) GetGenericResponse

func (r *DeviceLocationResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*DeviceLocationResponse) Validate

func (r *DeviceLocationResponse) Validate() error

Validate checks for any command response errors.

type DeviceLockCommand

type DeviceLockCommand struct {
	Command     DeviceLockPayload
	CommandUUID string
}

DeviceLockCommand is the top-level structure for the "DeviceLock" Apple MDM command.

func NewDeviceLockCommand

func NewDeviceLockCommand(uuid string) *DeviceLockCommand

NewDeviceLockCommand creates a new "DeviceLock" Apple MDM command.

func (*DeviceLockCommand) GenericCommand

func (c *DeviceLockCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type DeviceLockPayload

type DeviceLockPayload struct {
	Message                      *string `plist:",omitempty"`
	PhoneNumber                  *string `plist:",omitempty"`
	PIN                          *string `plist:",omitempty"`
	RequestType                  string  // supported value: DeviceLock
	RequestRequiresNetworkTether *bool   `plist:",omitempty"`
}

DeviceLockPayload is the "inner" command-specific payload for the "DeviceLock" Apple MDM command.

type DeviceLockResponse

type DeviceLockResponse struct {
	MessageResult *string `plist:",omitempty"`
	GenericResponse
}

DeviceLockResponse is the command result report (response) for the "DeviceLock" Apple MDM command.

func (*DeviceLockResponse) GetGenericResponse

func (r *DeviceLockResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*DeviceLockResponse) Validate

func (r *DeviceLockResponse) Validate() error

Validate checks for any command response errors.

type DisableLostModeCommand

type DisableLostModeCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

DisableLostModeCommand is the top-level structure for the "DisableLostMode" Apple MDM command.

func NewDisableLostModeCommand

func NewDisableLostModeCommand(uuid string) *DisableLostModeCommand

NewDisableLostModeCommand creates a new "DisableLostMode" Apple MDM command.

func (*DisableLostModeCommand) GenericCommand

func (c *DisableLostModeCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type DisableLostModeResponse

type DisableLostModeResponse struct {
	GenericResponse
}

DisableLostModeResponse is the command result report (response) for the "DisableLostMode" Apple MDM command.

func (*DisableLostModeResponse) GetGenericResponse

func (r *DisableLostModeResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*DisableLostModeResponse) Validate

func (r *DisableLostModeResponse) Validate() error

Validate checks for any command response errors.

type DisableRemoteDesktopCommand

type DisableRemoteDesktopCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

DisableRemoteDesktopCommand is the top-level structure for the "DisableRemoteDesktop" Apple MDM command.

func NewDisableRemoteDesktopCommand

func NewDisableRemoteDesktopCommand(uuid string) *DisableRemoteDesktopCommand

NewDisableRemoteDesktopCommand creates a new "DisableRemoteDesktop" Apple MDM command.

func (*DisableRemoteDesktopCommand) GenericCommand

func (c *DisableRemoteDesktopCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type DisableRemoteDesktopResponse

type DisableRemoteDesktopResponse struct {
	GenericResponse
}

DisableRemoteDesktopResponse is the command result report (response) for the "DisableRemoteDesktop" Apple MDM command.

func (*DisableRemoteDesktopResponse) GetGenericResponse

func (r *DisableRemoteDesktopResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*DisableRemoteDesktopResponse) Validate

func (r *DisableRemoteDesktopResponse) Validate() error

Validate checks for any command response errors.

type EnableLostModeCommand

type EnableLostModeCommand struct {
	Command     EnableLostModePayload
	CommandUUID string
}

EnableLostModeCommand is the top-level structure for the "EnableLostMode" Apple MDM command.

func NewEnableLostModeCommand

func NewEnableLostModeCommand(uuid string) *EnableLostModeCommand

NewEnableLostModeCommand creates a new "EnableLostMode" Apple MDM command.

func (*EnableLostModeCommand) GenericCommand

func (c *EnableLostModeCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type EnableLostModePayload

type EnableLostModePayload struct {
	Message                      *string `plist:",omitempty"`
	PhoneNumber                  *string `plist:",omitempty"`
	Footnote                     *string `plist:",omitempty"`
	RequestType                  string  // supported value: EnableLostMode
	RequestRequiresNetworkTether *bool   `plist:",omitempty"`
}

EnableLostModePayload is the "inner" command-specific payload for the "EnableLostMode" Apple MDM command.

type EnableLostModeResponse

type EnableLostModeResponse struct {
	GenericResponse
}

EnableLostModeResponse is the command result report (response) for the "EnableLostMode" Apple MDM command.

func (*EnableLostModeResponse) GetGenericResponse

func (r *EnableLostModeResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*EnableLostModeResponse) Validate

func (r *EnableLostModeResponse) Validate() error

Validate checks for any command response errors.

type EnableRemoteDesktopCommand

type EnableRemoteDesktopCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

EnableRemoteDesktopCommand is the top-level structure for the "EnableRemoteDesktop" Apple MDM command.

func NewEnableRemoteDesktopCommand

func NewEnableRemoteDesktopCommand(uuid string) *EnableRemoteDesktopCommand

NewEnableRemoteDesktopCommand creates a new "EnableRemoteDesktop" Apple MDM command.

func (*EnableRemoteDesktopCommand) GenericCommand

func (c *EnableRemoteDesktopCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type EnableRemoteDesktopResponse

type EnableRemoteDesktopResponse struct {
	GenericResponse
}

EnableRemoteDesktopResponse is the command result report (response) for the "EnableRemoteDesktop" Apple MDM command.

func (*EnableRemoteDesktopResponse) GetGenericResponse

func (r *EnableRemoteDesktopResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*EnableRemoteDesktopResponse) Validate

func (r *EnableRemoteDesktopResponse) Validate() error

Validate checks for any command response errors.

type Enrollment

type Enrollment struct {
	UDID             *string `plist:",omitempty"`
	UserID           *string `plist:",omitempty"`
	UserShortName    *string `plist:",omitempty"`
	UserLongName     *string `plist:",omitempty"`
	EnrollmentID     *string `plist:",omitempty"`
	EnrollmentUserID *string `plist:",omitempty"`
}

Enrollment represents the various enrollment-related data sent with responses.

type EraseDeviceCommand

type EraseDeviceCommand struct {
	Command     EraseDevicePayload
	CommandUUID string
}

EraseDeviceCommand is the top-level structure for the "EraseDevice" Apple MDM command.

func NewEraseDeviceCommand

func NewEraseDeviceCommand(uuid string) *EraseDeviceCommand

NewEraseDeviceCommand creates a new "EraseDevice" Apple MDM command.

func (*EraseDeviceCommand) GenericCommand

func (c *EraseDeviceCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type EraseDevicePayload

type EraseDevicePayload struct {
	PreserveDataPlan             *bool            `plist:",omitempty"`
	DisallowProximitySetup       *bool            `plist:",omitempty"`
	PIN                          *string          `plist:",omitempty"`
	ObliterationBehavior         *string          `plist:",omitempty"` // supported values: Default, DoNotObliterate, ObliterateWithWarning, Always
	ReturnToService              *ReturnToService `plist:",omitempty"`
	RequestType                  string           // supported value: EraseDevice
	RequestRequiresNetworkTether *bool            `plist:",omitempty"`
}

EraseDevicePayload is the "inner" command-specific payload for the "EraseDevice" Apple MDM command.

type EraseDeviceResponse

type EraseDeviceResponse struct {
	GenericResponse
}

EraseDeviceResponse is the command result report (response) for the "EraseDevice" Apple MDM command.

func (*EraseDeviceResponse) GetGenericResponse

func (r *EraseDeviceResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*EraseDeviceResponse) Validate

func (r *EraseDeviceResponse) Validate() error

Validate checks for any command response errors.

type ErrorChain

type ErrorChain []ErrorChainItem

ErrorChain represents any errors that occured on the client executing an MDM command.

func (*ErrorChain) Error

func (ec *ErrorChain) Error() string

Error adapts a standard Go error for ErrorChain.

type ErrorChainItem

type ErrorChainItem struct {
	ErrorCode            int
	ErrorDomain          string
	LocalizedDescription string
	USEnglishDescription string
}

ErrorChainItem represents an error that occured on the client executing an MDM command.

type ExtensionsItem

type ExtensionsItem struct {
	Identifier     string
	ExtensionPoint string
	DisplayName    string
}

type FileVaultUnlock

type FileVaultUnlock struct {
	Password                 *string `plist:",omitempty"`
	PrivateKeyExport         *[]byte `plist:",omitempty"`
	PrivateKeyExportPassword *string `plist:",omitempty"`
}

type FirewallSettings

type FirewallSettings struct {
	FirewallEnabled  *bool
	BlockAllIncoming *bool
	StealthMode      *bool
	Applications     *[]ApplicationsItem
	LoggingEnabled   *bool
	LoggingOption    *string // supported values: throttled, brief, detail
}

type FirmwarePasswordStatus

type FirmwarePasswordStatus struct {
	PasswordExists *bool
	ChangePending  *bool
	AllowOroms     *bool
}

type GenericCommand

type GenericCommand struct {
	CommandUUID string
	Command     GenericCommandPayload
}

GenericCommand represents a generic command.

func NewGenericCommand

func NewGenericCommand(requestType, uuid string) *GenericCommand

NewGenericCommand creates a new generic Apple MDM command.

type GenericCommandPayload

type GenericCommandPayload struct {
	RequestType                  string // supported value: the MDM command name
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

GenericCommandPayload is the "inner" generic payload for Apple MDM commands.

type GenericCommander

type GenericCommander interface {
	GenericCommand() *GenericCommand
}

GenericCommanders can extract a GenericCommand.

type GenericResponse

type GenericResponse struct {
	CommandUUID  string
	Status       string // supported values: Acknowledged, Error, CommandFormatError, Idle, NotNow
	NotOnConsole bool
	ErrorChain   *ErrorChain `plist:",omitempty"`
	Enrollment
}

GenericResponse represents the common MDM command response fields.

func (*GenericResponse) Validate

func (r *GenericResponse) Validate() error

Validate checks for any command response errors.

type GenericResponser

type GenericResponser interface {
	GetGenericResponse() *GenericResponse
}

GenericResponsers can extract a GenericResponse.

type InstallApplicationCommand

type InstallApplicationCommand struct {
	Command     InstallApplicationPayload
	CommandUUID string
}

InstallApplicationCommand is the top-level structure for the "InstallApplication" Apple MDM command.

func NewInstallApplicationCommand

func NewInstallApplicationCommand(uuid string) *InstallApplicationCommand

NewInstallApplicationCommand creates a new "InstallApplication" Apple MDM command.

func (*InstallApplicationCommand) GenericCommand

func (c *InstallApplicationCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type InstallApplicationPayload

type InstallApplicationPayload struct {
	ITunesStoreID                *int        `plist:"iTunesStoreID,omitempty"`
	Identifier                   *string     `plist:",omitempty"`
	Options                      *Options    `plist:",omitempty"`
	ManifestURL                  *string     `plist:",omitempty"`
	ManagementFlags              *int        `plist:",omitempty"` // supported values: 1, 4, 5
	Configuration                interface{} `plist:",omitempty"` // <any> type as single dictionary subkey
	Attributes                   *Attributes `plist:",omitempty"`
	ChangeManagementState        *string     `plist:",omitempty"` // supported value: Managed
	InstallAsManaged             *bool       `plist:",omitempty"`
	IOSApp                       *bool       `plist:"iOSApp,omitempty"`
	RequestType                  string      // supported value: InstallApplication
	RequestRequiresNetworkTether *bool       `plist:",omitempty"`
}

InstallApplicationPayload is the "inner" command-specific payload for the "InstallApplication" Apple MDM command.

type InstallApplicationResponse

type InstallApplicationResponse struct {
	Identifier      *string `plist:",omitempty"`
	State           *string `plist:",omitempty"` // supported values: Queued, NeedsRedemption, Redeeming, Prompting, PromptingForLogin, ValidatingPurchase, Installing, Managed, ManagedButUninstalled, UserInstalledApp, UserRejected, PromptingForUpdate, PromptingForUpdateLogin, ValidatingUpdate, Updating, UpdateRejected, PromptingForManagement, ManagementRejected, Failed, Unknown
	RejectionReason *string `plist:",omitempty"` // supported values: AppAlreadyInstalled, AppAlreadyQueued, AppStoreDisabled, CouldNotVerifyAppID, ManagementChangeNotSupported, NotAnApp, NotSupported, Other, PurchaseMethodNotSupported, PurchaseMethodNotSupportedInMultiUser
	GenericResponse
}

InstallApplicationResponse is the command result report (response) for the "InstallApplication" Apple MDM command.

func (*InstallApplicationResponse) GetGenericResponse

func (r *InstallApplicationResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*InstallApplicationResponse) Validate

func (r *InstallApplicationResponse) Validate() error

Validate checks for any command response errors.

type InstallEnterpriseApplicationCommand

type InstallEnterpriseApplicationCommand struct {
	Command     InstallEnterpriseApplicationPayload
	CommandUUID string
}

InstallEnterpriseApplicationCommand is the top-level structure for the "InstallEnterpriseApplication" Apple MDM command.

func NewInstallEnterpriseApplicationCommand

func NewInstallEnterpriseApplicationCommand(uuid string) *InstallEnterpriseApplicationCommand

NewInstallEnterpriseApplicationCommand creates a new "InstallEnterpriseApplication" Apple MDM command.

func (*InstallEnterpriseApplicationCommand) GenericCommand

GenericCommand creates a new generic command using the values of c.

type InstallEnterpriseApplicationPayload

type InstallEnterpriseApplicationPayload struct {
	Manifest                       interface{} `plist:",omitempty"` // <any> type as single dictionary subkey
	ManifestURL                    *string     `plist:",omitempty"`
	ManifestURLPinningCerts        *[][]byte   `plist:",omitempty"`
	PinningRevocationCheckRequired *bool       `plist:",omitempty"`
	InstallAsManaged               *bool       `plist:",omitempty"`
	ManagementFlags                *int        `plist:",omitempty"` // supported value: 1
	Configuration                  interface{} `plist:",omitempty"` // <any> type as single dictionary subkey
	ChangeManagementState          *string     `plist:",omitempty"` // supported value: Managed
	IOSApp                         *bool       `plist:"iOSApp,omitempty"`
	RequestType                    string      // supported value: InstallEnterpriseApplication
	RequestRequiresNetworkTether   *bool       `plist:",omitempty"`
}

InstallEnterpriseApplicationPayload is the "inner" command-specific payload for the "InstallEnterpriseApplication" Apple MDM command.

type InstallEnterpriseApplicationResponse

type InstallEnterpriseApplicationResponse struct {
	GenericResponse
}

InstallEnterpriseApplicationResponse is the command result report (response) for the "InstallEnterpriseApplication" Apple MDM command.

func (*InstallEnterpriseApplicationResponse) GetGenericResponse

func (r *InstallEnterpriseApplicationResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*InstallEnterpriseApplicationResponse) Validate

Validate checks for any command response errors.

type InstallMediaCommand

type InstallMediaCommand struct {
	Command     InstallMediaPayload
	CommandUUID string
}

InstallMediaCommand is the top-level structure for the "InstallMedia" Apple MDM command.

func NewInstallMediaCommand

func NewInstallMediaCommand(uuid string) *InstallMediaCommand

NewInstallMediaCommand creates a new "InstallMedia" Apple MDM command.

func (*InstallMediaCommand) GenericCommand

func (c *InstallMediaCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type InstallMediaPayload

type InstallMediaPayload struct {
	ITunesStoreID                *int    `plist:"iTunesStoreID,omitempty"`
	MediaURL                     *string `plist:",omitempty"`
	MediaType                    string  // supported value: Book
	PersistentID                 *string `plist:",omitempty"`
	Kind                         *string `plist:",omitempty"` // supported values: pdf, epub, ibooks
	Version                      *string `plist:",omitempty"`
	Author                       *string `plist:",omitempty"`
	Title                        *string `plist:",omitempty"`
	RequestType                  string  // supported value: InstallMedia
	RequestRequiresNetworkTether *bool   `plist:",omitempty"`
}

InstallMediaPayload is the "inner" command-specific payload for the "InstallMedia" Apple MDM command.

type InstallMediaResponse

type InstallMediaResponse struct {
	ITunesStoreID   *int    `plist:"iTunesStoreID,omitempty"`
	MediaURL        *string `plist:",omitempty"`
	PersistentID    *string `plist:",omitempty"`
	MediaType       *string `plist:",omitempty"`
	State           *string `plist:",omitempty"` // supported values: Queued, PromptingForLogin, Updating, Installing, Managed, ManagedButUninstalled, Installed, Uninstalled, Failed, Unknown
	RejectionReason *string `plist:",omitempty"` // supported values: CouldNotVerifyITunesStoreID, PurchaseNotFound, AppStoreDisabled, WrongMediaType, DownloadInvalid, EnterpriseBooksNotSupportedInMultiUser
	GenericResponse
}

InstallMediaResponse is the command result report (response) for the "InstallMedia" Apple MDM command.

func (*InstallMediaResponse) GetGenericResponse

func (r *InstallMediaResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*InstallMediaResponse) Validate

func (r *InstallMediaResponse) Validate() error

Validate checks for any command response errors.

type InstallProfileCommand

type InstallProfileCommand struct {
	Command     InstallProfilePayload
	CommandUUID string
}

InstallProfileCommand is the top-level structure for the "InstallProfile" Apple MDM command.

func NewInstallProfileCommand

func NewInstallProfileCommand(uuid string) *InstallProfileCommand

NewInstallProfileCommand creates a new "InstallProfile" Apple MDM command.

func (*InstallProfileCommand) GenericCommand

func (c *InstallProfileCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type InstallProfilePayload

type InstallProfilePayload struct {
	Payload                      []byte
	RequestType                  string // supported value: InstallProfile
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

InstallProfilePayload is the "inner" command-specific payload for the "InstallProfile" Apple MDM command.

type InstallProfileResponse

type InstallProfileResponse struct {
	GenericResponse
}

InstallProfileResponse is the command result report (response) for the "InstallProfile" Apple MDM command.

func (*InstallProfileResponse) GetGenericResponse

func (r *InstallProfileResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*InstallProfileResponse) Validate

func (r *InstallProfileResponse) Validate() error

Validate checks for any command response errors.

type InstallProvisioningProfileCommand

type InstallProvisioningProfileCommand struct {
	Command     InstallProvisioningProfilePayload
	CommandUUID string
}

InstallProvisioningProfileCommand is the top-level structure for the "InstallProvisioningProfile" Apple MDM command.

func NewInstallProvisioningProfileCommand

func NewInstallProvisioningProfileCommand(uuid string) *InstallProvisioningProfileCommand

NewInstallProvisioningProfileCommand creates a new "InstallProvisioningProfile" Apple MDM command.

func (*InstallProvisioningProfileCommand) GenericCommand

GenericCommand creates a new generic command using the values of c.

type InstallProvisioningProfilePayload

type InstallProvisioningProfilePayload struct {
	ProvisioningProfile          []byte
	RequestType                  string // supported value: InstallProvisioningProfile
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

InstallProvisioningProfilePayload is the "inner" command-specific payload for the "InstallProvisioningProfile" Apple MDM command.

type InstallProvisioningProfileResponse

type InstallProvisioningProfileResponse struct {
	GenericResponse
}

InstallProvisioningProfileResponse is the command result report (response) for the "InstallProvisioningProfile" Apple MDM command.

func (*InstallProvisioningProfileResponse) GetGenericResponse

func (r *InstallProvisioningProfileResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*InstallProvisioningProfileResponse) Validate

Validate checks for any command response errors.

type InstalledApplicationListCommand

type InstalledApplicationListCommand struct {
	Command     InstalledApplicationListPayload
	CommandUUID string
}

InstalledApplicationListCommand is the top-level structure for the "InstalledApplicationList" Apple MDM command.

func NewInstalledApplicationListCommand

func NewInstalledApplicationListCommand(uuid string) *InstalledApplicationListCommand

NewInstalledApplicationListCommand creates a new "InstalledApplicationList" Apple MDM command.

func (*InstalledApplicationListCommand) GenericCommand

func (c *InstalledApplicationListCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type InstalledApplicationListItem

type InstalledApplicationListItem struct {
	Identifier                *string `plist:",omitempty"`
	ExternalVersionIdentifier *int    `plist:",omitempty"`
	DistributorIdentifier     *string `plist:",omitempty"`
	Version                   *string `plist:",omitempty"`
	ShortVersion              *string `plist:",omitempty"`
	Name                      *string `plist:",omitempty"`
	BundleSize                *int    `plist:",omitempty"`
	DynamicSize               *int    `plist:",omitempty"`
	IsValidated               *bool   `plist:",omitempty"`
	Installing                *bool   `plist:",omitempty"`
	AppStoreVendable          *bool   `plist:",omitempty"`
	DeviceBasedVPP            *bool   `plist:",omitempty"`
	BetaApp                   *bool   `plist:",omitempty"`
	AdHocCodeSigned           *bool   `plist:",omitempty"`
	HasUpdateAvailable        *bool   `plist:",omitempty"`
	DownloadFailed            *bool   `plist:",omitempty"`
	DownloadWaiting           *bool   `plist:",omitempty"`
	DownloadPaused            *bool   `plist:",omitempty"`
	DownloadCancelled         *bool   `plist:",omitempty"`
	IsAppClip                 *bool   `plist:",omitempty"`
	Source                    *string `plist:",omitempty"`
}

type InstalledApplicationListPayload

type InstalledApplicationListPayload struct {
	Identifiers                  *[]string `plist:",omitempty"`
	ManagedAppsOnly              *bool     `plist:",omitempty"`
	Items                        *[]string `plist:",omitempty"` // supported values: AdHocCodeSigned, AppStoreVendable, BetaApp, BundleSize, DeviceBasedVPP, DistributorIdentifier, DynamicSize, ExternalVersionIdentifier, HasUpdateAvailable, Identifier, Installing, IsAppClip, IsValidated, Name, ShortVersion, Version
	RequestType                  string    // supported value: InstalledApplicationList
	RequestRequiresNetworkTether *bool     `plist:",omitempty"`
}

InstalledApplicationListPayload is the "inner" command-specific payload for the "InstalledApplicationList" Apple MDM command.

type InstalledApplicationListResponse

type InstalledApplicationListResponse struct {
	InstalledApplicationList []InstalledApplicationListItem
	GenericResponse
}

InstalledApplicationListResponse is the command result report (response) for the "InstalledApplicationList" Apple MDM command.

func (*InstalledApplicationListResponse) GetGenericResponse

func (r *InstalledApplicationListResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*InstalledApplicationListResponse) Validate

Validate checks for any command response errors.

type InviteToProgramCommand

type InviteToProgramCommand struct {
	Command     InviteToProgramPayload
	CommandUUID string
}

InviteToProgramCommand is the top-level structure for the "InviteToProgram" Apple MDM command.

func NewInviteToProgramCommand

func NewInviteToProgramCommand(uuid string) *InviteToProgramCommand

NewInviteToProgramCommand creates a new "InviteToProgram" Apple MDM command.

func (*InviteToProgramCommand) GenericCommand

func (c *InviteToProgramCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type InviteToProgramPayload

type InviteToProgramPayload struct {
	ProgramID                    string // supported value: com.apple.cloudvpp
	InvitationURL                string
	RequestType                  string // supported value: InviteToProgram
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

InviteToProgramPayload is the "inner" command-specific payload for the "InviteToProgram" Apple MDM command.

type InviteToProgramResponse

type InviteToProgramResponse struct {
	InvitationResult string // supported values: Acknowledged, InvalidProgramID, InvalidInvitationURL
	GenericResponse
}

InviteToProgramResponse is the command result report (response) for the "InviteToProgram" Apple MDM command.

func (*InviteToProgramResponse) GetGenericResponse

func (r *InviteToProgramResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*InviteToProgramResponse) Validate

func (r *InviteToProgramResponse) Validate() error

Validate checks for any command response errors.

type LOMDeviceRequestCommand

type LOMDeviceRequestCommand struct {
	Command     LOMDeviceRequestPayload
	CommandUUID string
}

LOMDeviceRequestCommand is the top-level structure for the "LOMDeviceRequest" Apple MDM command.

func NewLOMDeviceRequestCommand

func NewLOMDeviceRequestCommand(uuid string) *LOMDeviceRequestCommand

NewLOMDeviceRequestCommand creates a new "LOMDeviceRequest" Apple MDM command.

func (*LOMDeviceRequestCommand) GenericCommand

func (c *LOMDeviceRequestCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type LOMDeviceRequestPayload

type LOMDeviceRequestPayload struct {
	RequestList                  []RequestListItem
	RequestType                  string // supported value: LOMDeviceRequest
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

LOMDeviceRequestPayload is the "inner" command-specific payload for the "LOMDeviceRequest" Apple MDM command.

type LOMDeviceRequestResponse

type LOMDeviceRequestResponse struct {
	ResponseList []ResponseListItem
	GenericResponse
}

LOMDeviceRequestResponse is the command result report (response) for the "LOMDeviceRequest" Apple MDM command.

func (*LOMDeviceRequestResponse) GetGenericResponse

func (r *LOMDeviceRequestResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*LOMDeviceRequestResponse) Validate

func (r *LOMDeviceRequestResponse) Validate() error

Validate checks for any command response errors.

type LOMSetupRequestCommand

type LOMSetupRequestCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

LOMSetupRequestCommand is the top-level structure for the "LOMSetupRequest" Apple MDM command.

func NewLOMSetupRequestCommand

func NewLOMSetupRequestCommand(uuid string) *LOMSetupRequestCommand

NewLOMSetupRequestCommand creates a new "LOMSetupRequest" Apple MDM command.

func (*LOMSetupRequestCommand) GenericCommand

func (c *LOMSetupRequestCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type LOMSetupRequestResponse

type LOMSetupRequestResponse struct {
	PrimaryIPv6AddressList   []string
	SecondaryIPv6AddressList []string
	LOMProtocolVersion       int
	GenericResponse
}

LOMSetupRequestResponse is the command result report (response) for the "LOMSetupRequest" Apple MDM command.

func (*LOMSetupRequestResponse) GetGenericResponse

func (r *LOMSetupRequestResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*LOMSetupRequestResponse) Validate

func (r *LOMSetupRequestResponse) Validate() error

Validate checks for any command response errors.

type LogOutUserCommand

type LogOutUserCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

LogOutUserCommand is the top-level structure for the "LogOutUser" Apple MDM command.

func NewLogOutUserCommand

func NewLogOutUserCommand(uuid string) *LogOutUserCommand

NewLogOutUserCommand creates a new "LogOutUser" Apple MDM command.

func (*LogOutUserCommand) GenericCommand

func (c *LogOutUserCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type LogOutUserResponse

type LogOutUserResponse struct {
	GenericResponse
}

LogOutUserResponse is the command result report (response) for the "LogOutUser" Apple MDM command.

func (*LogOutUserResponse) GetGenericResponse

func (r *LogOutUserResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*LogOutUserResponse) Validate

func (r *LogOutUserResponse) Validate() error

Validate checks for any command response errors.

type MDMOptions

type MDMOptions struct {
	ActivationLockAllowedWhileSupervised             *bool `plist:",omitempty"`
	BootstrapTokenAllowed                            *bool `plist:",omitempty"`
	PromptUserToAllowBootstrapTokenForAuthentication *bool `plist:",omitempty"`
}

type ManagedApplicationConfigurationCommand

type ManagedApplicationConfigurationCommand struct {
	Command     ManagedApplicationConfigurationPayload
	CommandUUID string
}

ManagedApplicationConfigurationCommand is the top-level structure for the "ManagedApplicationConfiguration" Apple MDM command.

func NewManagedApplicationConfigurationCommand

func NewManagedApplicationConfigurationCommand(uuid string) *ManagedApplicationConfigurationCommand

NewManagedApplicationConfigurationCommand creates a new "ManagedApplicationConfiguration" Apple MDM command.

func (*ManagedApplicationConfigurationCommand) GenericCommand

GenericCommand creates a new generic command using the values of c.

type ManagedApplicationConfigurationPayload

type ManagedApplicationConfigurationPayload struct {
	Identifiers                  []string
	RequestType                  string // supported value: ManagedApplicationConfiguration
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

ManagedApplicationConfigurationPayload is the "inner" command-specific payload for the "ManagedApplicationConfiguration" Apple MDM command.

type ManagedApplicationConfigurationResponse

type ManagedApplicationConfigurationResponse struct {
	ApplicationConfigurations []ApplicationConfigurationsItem
	GenericResponse
}

ManagedApplicationConfigurationResponse is the command result report (response) for the "ManagedApplicationConfiguration" Apple MDM command.

func (*ManagedApplicationConfigurationResponse) GetGenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ManagedApplicationConfigurationResponse) Validate

Validate checks for any command response errors.

type ManagedApplicationFeedbackCommand

type ManagedApplicationFeedbackCommand struct {
	Command     ManagedApplicationFeedbackPayload
	CommandUUID string
}

ManagedApplicationFeedbackCommand is the top-level structure for the "ManagedApplicationFeedback" Apple MDM command.

func NewManagedApplicationFeedbackCommand

func NewManagedApplicationFeedbackCommand(uuid string) *ManagedApplicationFeedbackCommand

NewManagedApplicationFeedbackCommand creates a new "ManagedApplicationFeedback" Apple MDM command.

func (*ManagedApplicationFeedbackCommand) GenericCommand

GenericCommand creates a new generic command using the values of c.

type ManagedApplicationFeedbackItem

type ManagedApplicationFeedbackItem struct {
	Identifier string
	Feedback   interface{} `plist:",omitempty"` // <any> type as single dictionary subkey
}

type ManagedApplicationFeedbackPayload

type ManagedApplicationFeedbackPayload struct {
	Identifiers                  []string
	DeleteFeedback               *bool  `plist:",omitempty"`
	RequestType                  string // supported value: ManagedApplicationFeedback
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

ManagedApplicationFeedbackPayload is the "inner" command-specific payload for the "ManagedApplicationFeedback" Apple MDM command.

type ManagedApplicationFeedbackResponse

type ManagedApplicationFeedbackResponse struct {
	ManagedApplicationFeedback []ManagedApplicationFeedbackItem
	GenericResponse
}

ManagedApplicationFeedbackResponse is the command result report (response) for the "ManagedApplicationFeedback" Apple MDM command.

func (*ManagedApplicationFeedbackResponse) GetGenericResponse

func (r *ManagedApplicationFeedbackResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ManagedApplicationFeedbackResponse) Validate

Validate checks for any command response errors.

type ManagedMediaListCommand

type ManagedMediaListCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

ManagedMediaListCommand is the top-level structure for the "ManagedMediaList" Apple MDM command.

func NewManagedMediaListCommand

func NewManagedMediaListCommand(uuid string) *ManagedMediaListCommand

NewManagedMediaListCommand creates a new "ManagedMediaList" Apple MDM command.

func (*ManagedMediaListCommand) GenericCommand

func (c *ManagedMediaListCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ManagedMediaListResponse

type ManagedMediaListResponse struct {
	Books []BooksItem
	GenericResponse
}

ManagedMediaListResponse is the command result report (response) for the "ManagedMediaList" Apple MDM command.

func (*ManagedMediaListResponse) GetGenericResponse

func (r *ManagedMediaListResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ManagedMediaListResponse) Validate

func (r *ManagedMediaListResponse) Validate() error

Validate checks for any command response errors.

type ManagementStatus

type ManagementStatus struct {
	EnrolledViaDEP             *bool
	UserApprovedEnrollment     *bool
	IsUserEnrollment           *bool
	IsActivationLockManageable *bool
}

type NSExtensionMappingsCommand

type NSExtensionMappingsCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

NSExtensionMappingsCommand is the top-level structure for the "NSExtensionMappings" Apple MDM command.

func NewNSExtensionMappingsCommand

func NewNSExtensionMappingsCommand(uuid string) *NSExtensionMappingsCommand

NewNSExtensionMappingsCommand creates a new "NSExtensionMappings" Apple MDM command.

func (*NSExtensionMappingsCommand) GenericCommand

func (c *NSExtensionMappingsCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type NSExtensionMappingsResponse

type NSExtensionMappingsResponse struct {
	Extensions []ExtensionsItem
	GenericResponse
}

NSExtensionMappingsResponse is the command result report (response) for the "NSExtensionMappings" Apple MDM command.

func (*NSExtensionMappingsResponse) GetGenericResponse

func (r *NSExtensionMappingsResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*NSExtensionMappingsResponse) Validate

func (r *NSExtensionMappingsResponse) Validate() error

Validate checks for any command response errors.

type OSUpdateSettings

type OSUpdateSettings struct {
	CatalogURL                      *string `plist:",omitempty"`
	IsDefaultCatalog                *bool
	PreviousScanDate                *time.Time
	PreviousScanResult              *string `plist:",omitempty"`
	PerformPeriodicCheck            *bool
	AutoCheckEnabled                *bool
	BackgroundDownloadEnabled       *bool
	AutomaticAppInstallationEnabled *bool
	AutomaticOSInstallationEnabled  *bool
	AutomaticSecurityUpdatesEnabled *bool
}

type OSUpdateStatusCommand

type OSUpdateStatusCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

OSUpdateStatusCommand is the top-level structure for the "OSUpdateStatus" Apple MDM command.

func NewOSUpdateStatusCommand

func NewOSUpdateStatusCommand(uuid string) *OSUpdateStatusCommand

NewOSUpdateStatusCommand creates a new "OSUpdateStatus" Apple MDM command.

func (*OSUpdateStatusCommand) GenericCommand

func (c *OSUpdateStatusCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type OSUpdateStatusItem

type OSUpdateStatusItem struct {
	ProductKey              string
	IsDownloaded            bool
	DownloadPercentComplete float64
	Status                  string
	MaxDeferrals            *int         `plist:",omitempty"`
	DeferralsRemaining      *int         `plist:",omitempty"`
	NextScheduledInstall    *time.Time   `plist:",omitempty"`
	PastNotifications       *[]time.Time `plist:",omitempty"`
}

type OSUpdateStatusResponse

type OSUpdateStatusResponse struct {
	OSUpdateStatus []OSUpdateStatusItem
	GenericResponse
}

OSUpdateStatusResponse is the command result report (response) for the "OSUpdateStatus" Apple MDM command.

func (*OSUpdateStatusResponse) GetGenericResponse

func (r *OSUpdateStatusResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*OSUpdateStatusResponse) Validate

func (r *OSUpdateStatusResponse) Validate() error

Validate checks for any command response errors.

type Options

type Options struct {
	PurchaseMethod *int `plist:",omitempty"` // supported values: 0, 1
}

type OrganizationInfo

type OrganizationInfo struct {
	OrganizationName    string
	OrganizationAddress *string `plist:",omitempty"`
	OrganizationPhone   *string `plist:",omitempty"`
	OrganizationEmail   *string `plist:",omitempty"`
	OrganizationMagic   *string `plist:",omitempty"`
}

type PayloadContentItem

type PayloadContentItem struct {
	PayloadType         string
	PayloadVersion      int
	PayloadIdentifier   string
	PayloadUUID         string
	PayloadDisplayName  *string `plist:",omitempty"`
	PayloadDescription  *string `plist:",omitempty"`
	PayloadOrganization *string `plist:",omitempty"`
}

type PlayLostModeSoundCommand

type PlayLostModeSoundCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

PlayLostModeSoundCommand is the top-level structure for the "PlayLostModeSound" Apple MDM command.

func NewPlayLostModeSoundCommand

func NewPlayLostModeSoundCommand(uuid string) *PlayLostModeSoundCommand

NewPlayLostModeSoundCommand creates a new "PlayLostModeSound" Apple MDM command.

func (*PlayLostModeSoundCommand) GenericCommand

func (c *PlayLostModeSoundCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type PlayLostModeSoundResponse

type PlayLostModeSoundResponse struct {
	GenericResponse
}

PlayLostModeSoundResponse is the command result report (response) for the "PlayLostModeSound" Apple MDM command.

func (*PlayLostModeSoundResponse) GetGenericResponse

func (r *PlayLostModeSoundResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*PlayLostModeSoundResponse) Validate

func (r *PlayLostModeSoundResponse) Validate() error

Validate checks for any command response errors.

type ProfileListCommand

type ProfileListCommand struct {
	Command     ProfileListPayload
	CommandUUID string
}

ProfileListCommand is the top-level structure for the "ProfileList" Apple MDM command.

func NewProfileListCommand

func NewProfileListCommand(uuid string) *ProfileListCommand

NewProfileListCommand creates a new "ProfileList" Apple MDM command.

func (*ProfileListCommand) GenericCommand

func (c *ProfileListCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ProfileListItem

type ProfileListItem struct {
	PayloadUUID              string
	PayloadIdentifier        string
	PayloadVersion           *int                  `plist:",omitempty"`
	PayloadDisplayName       *string               `plist:",omitempty"`
	PayloadOrganization      *string               `plist:",omitempty"`
	PayloadDescription       *string               `plist:",omitempty"`
	PayloadRemovalDisallowed *bool                 `plist:",omitempty"`
	HasRemovalPasscode       *bool                 `plist:",omitempty"`
	IsEncrypted              *bool                 `plist:",omitempty"`
	SignerCertificates       *[][]byte             `plist:",omitempty"`
	IsManaged                *bool                 `plist:",omitempty"`
	Source                   *string               `plist:",omitempty"`
	PayloadContent           *[]PayloadContentItem `plist:",omitempty"`
}

type ProfileListPayload

type ProfileListPayload struct {
	ManagedOnly                  *bool  `plist:",omitempty"`
	RequestType                  string // supported value: ProfileList
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

ProfileListPayload is the "inner" command-specific payload for the "ProfileList" Apple MDM command.

type ProfileListResponse

type ProfileListResponse struct {
	ProfileList []ProfileListItem
	GenericResponse
}

ProfileListResponse is the command result report (response) for the "ProfileList" Apple MDM command.

func (*ProfileListResponse) GetGenericResponse

func (r *ProfileListResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ProfileListResponse) Validate

func (r *ProfileListResponse) Validate() error

Validate checks for any command response errors.

type ProvisioningProfileListCommand

type ProvisioningProfileListCommand struct {
	Command     ProvisioningProfileListPayload
	CommandUUID string
}

ProvisioningProfileListCommand is the top-level structure for the "ProvisioningProfileList" Apple MDM command.

func NewProvisioningProfileListCommand

func NewProvisioningProfileListCommand(uuid string) *ProvisioningProfileListCommand

NewProvisioningProfileListCommand creates a new "ProvisioningProfileList" Apple MDM command.

func (*ProvisioningProfileListCommand) GenericCommand

func (c *ProvisioningProfileListCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ProvisioningProfileListItem

type ProvisioningProfileListItem struct {
	Name       string
	UUID       string
	ExpiryDate *time.Time `plist:",omitempty"`
}

type ProvisioningProfileListPayload

type ProvisioningProfileListPayload struct {
	ManagedOnly                  *bool  `plist:",omitempty"`
	RequestType                  string // supported value: ProvisioningProfileList
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

ProvisioningProfileListPayload is the "inner" command-specific payload for the "ProvisioningProfileList" Apple MDM command.

type ProvisioningProfileListResponse

type ProvisioningProfileListResponse struct {
	ProvisioningProfileList []ProvisioningProfileListItem
	GenericResponse
}

ProvisioningProfileListResponse is the command result report (response) for the "ProvisioningProfileList" Apple MDM command.

func (*ProvisioningProfileListResponse) GetGenericResponse

func (r *ProvisioningProfileListResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ProvisioningProfileListResponse) Validate

func (r *ProvisioningProfileListResponse) Validate() error

Validate checks for any command response errors.

type QueryResponses

type QueryResponses struct {
	UDID                                  *string
	ProvisioningUDID                      *string
	OrganizationInfo                      *OrganizationInfo
	MDMOptions                            *MDMOptions
	LastCloudBackupDate                   *time.Time
	AwaitingConfiguration                 *bool
	ITunesStoreAccountIsActive            *bool   `plist:"iTunesStoreAccountIsActive"`
	ITunesStoreAccountHash                *string `plist:"iTunesStoreAccountHash"`
	DeviceName                            *string
	OSVersion                             *string
	SupplementalOSVersionExtra            *string
	BuildVersion                          *string
	SupplementalBuildVersion              *string
	ModelName                             *string
	Model                                 *string
	ModelNumber                           *string
	IsAppleSilicon                        *bool
	ProductName                           *string
	SerialNumber                          *string
	DeviceCapacity                        *float64
	AvailableDeviceCapacity               *float64
	IMEI                                  *string
	MEID                                  *string
	ModemFirmwareVersion                  *string
	CellularTechnology                    *int // supported values: 0, 1, 2, 3
	BatteryLevel                          *float64
	HasBattery                            *bool
	IsSupervised                          *bool
	IsMultiUser                           *bool
	IsDeviceLocatorServiceEnabled         *bool
	IsActivationLockEnabled               *bool
	IsActivationLockSupported             *bool
	IsDoNotDisturbInEffect                *bool
	SupportsLOMDevice                     *bool
	DeviceID                              *string
	EASDeviceIdentifier                   *string
	IsCloudBackupEnabled                  *bool
	ActiveManagedUsers                    *[]string
	OSUpdateSettings                      *OSUpdateSettings
	LocalHostName                         *string
	HostName                              *string
	AutoSetupAdminAccounts                *[]AutoSetupAdminAccountsItem
	SystemIntegrityProtectionEnabled      *bool
	IsMDMLostModeEnabled                  *bool
	MaximumResidentUsers                  *int
	EstimatedResidentUsers                *int
	QuotaSize                             *int
	ResidentUsers                         *int
	UserSessionTimeout                    *int
	TemporarySessionTimeout               *int
	TemporarySessionOnly                  *bool
	ManagedAppleIDDefaultDomains          *[]string
	OnlineAuthenticationGracePeriod       *int
	SkipLanguageAndLocaleSetupForNewUsers *bool
	PushToken                             *[]byte
	DiagnosticSubmissionEnabled           *bool
	AppAnalyticsEnabled                   *bool
	TimeZone                              *string
	ICCID                                 *string
	BluetoothMAC                          *string
	WiFiMAC                               *string
	EthernetMAC                           *string
	CurrentCarrierNetwork                 *string
	SIMCarrierNetwork                     *string
	SubscriberCarrierNetwork              *string
	CarrierSettingsVersion                *string
	PhoneNumber                           *string
	DataRoamingEnabled                    *bool
	VoiceRoamingEnabled                   *bool
	PersonalHotspotEnabled                *bool
	IsNetworkTethered                     *bool
	IsRoaming                             *bool
	SIMMCC                                *string
	SIMMNC                                *string
	SubscriberMCC                         *string
	SubscriberMNC                         *string
	CurrentMCC                            *string
	CurrentMNC                            *string
	ServiceSubscriptions                  *[]ServiceSubscriptionProperty
	PINRequiredForEraseDevice             *bool
	PINRequiredForDeviceLock              *bool
	SupportsiOSAppInstalls                *bool
	SoftwareUpdateDeviceID                *string
	SoftwareUpdateSettings                *SoftwareUpdateSettings
	AccessibilitySettings                 *AccessibilitySettings
	DevicePropertiesAttestation           *[][]byte
	EACSPreflight                         *string
}

type RefreshCellularPlansCommand

type RefreshCellularPlansCommand struct {
	Command     RefreshCellularPlansPayload
	CommandUUID string
}

RefreshCellularPlansCommand is the top-level structure for the "RefreshCellularPlans" Apple MDM command.

func NewRefreshCellularPlansCommand

func NewRefreshCellularPlansCommand(uuid string) *RefreshCellularPlansCommand

NewRefreshCellularPlansCommand creates a new "RefreshCellularPlans" Apple MDM command.

func (*RefreshCellularPlansCommand) GenericCommand

func (c *RefreshCellularPlansCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type RefreshCellularPlansPayload

type RefreshCellularPlansPayload struct {
	ESIMServerURL                string `plist:"eSIMServerURL"`
	RequestType                  string // supported value: RefreshCellularPlans
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

RefreshCellularPlansPayload is the "inner" command-specific payload for the "RefreshCellularPlans" Apple MDM command.

type RefreshCellularPlansResponse

type RefreshCellularPlansResponse struct {
	GenericResponse
}

RefreshCellularPlansResponse is the command result report (response) for the "RefreshCellularPlans" Apple MDM command.

func (*RefreshCellularPlansResponse) GetGenericResponse

func (r *RefreshCellularPlansResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*RefreshCellularPlansResponse) Validate

func (r *RefreshCellularPlansResponse) Validate() error

Validate checks for any command response errors.

type RemoveApplicationCommand

type RemoveApplicationCommand struct {
	Command     RemoveApplicationPayload
	CommandUUID string
}

RemoveApplicationCommand is the top-level structure for the "RemoveApplication" Apple MDM command.

func NewRemoveApplicationCommand

func NewRemoveApplicationCommand(uuid string) *RemoveApplicationCommand

NewRemoveApplicationCommand creates a new "RemoveApplication" Apple MDM command.

func (*RemoveApplicationCommand) GenericCommand

func (c *RemoveApplicationCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type RemoveApplicationPayload

type RemoveApplicationPayload struct {
	Identifier                   string
	RequestType                  string // supported value: RemoveApplication
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

RemoveApplicationPayload is the "inner" command-specific payload for the "RemoveApplication" Apple MDM command.

type RemoveApplicationResponse

type RemoveApplicationResponse struct {
	GenericResponse
}

RemoveApplicationResponse is the command result report (response) for the "RemoveApplication" Apple MDM command.

func (*RemoveApplicationResponse) GetGenericResponse

func (r *RemoveApplicationResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*RemoveApplicationResponse) Validate

func (r *RemoveApplicationResponse) Validate() error

Validate checks for any command response errors.

type RemoveMediaCommand

type RemoveMediaCommand struct {
	Command     RemoveMediaPayload
	CommandUUID string
}

RemoveMediaCommand is the top-level structure for the "RemoveMedia" Apple MDM command.

func NewRemoveMediaCommand

func NewRemoveMediaCommand(uuid string) *RemoveMediaCommand

NewRemoveMediaCommand creates a new "RemoveMedia" Apple MDM command.

func (*RemoveMediaCommand) GenericCommand

func (c *RemoveMediaCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type RemoveMediaPayload

type RemoveMediaPayload struct {
	MediaType                    string  // supported value: Book
	ITunesStoreID                *string `plist:"iTunesStoreID,omitempty"`
	PersistentID                 *string `plist:",omitempty"`
	RequestType                  string  // supported value: RemoveMedia
	RequestRequiresNetworkTether *bool   `plist:",omitempty"`
}

RemoveMediaPayload is the "inner" command-specific payload for the "RemoveMedia" Apple MDM command.

type RemoveMediaResponse

type RemoveMediaResponse struct {
	GenericResponse
}

RemoveMediaResponse is the command result report (response) for the "RemoveMedia" Apple MDM command.

func (*RemoveMediaResponse) GetGenericResponse

func (r *RemoveMediaResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*RemoveMediaResponse) Validate

func (r *RemoveMediaResponse) Validate() error

Validate checks for any command response errors.

type RemoveProfileCommand

type RemoveProfileCommand struct {
	Command     RemoveProfilePayload
	CommandUUID string
}

RemoveProfileCommand is the top-level structure for the "RemoveProfile" Apple MDM command.

func NewRemoveProfileCommand

func NewRemoveProfileCommand(uuid string) *RemoveProfileCommand

NewRemoveProfileCommand creates a new "RemoveProfile" Apple MDM command.

func (*RemoveProfileCommand) GenericCommand

func (c *RemoveProfileCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type RemoveProfilePayload

type RemoveProfilePayload struct {
	Identifier                   string
	RequestType                  string // supported value: RemoveProfile
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

RemoveProfilePayload is the "inner" command-specific payload for the "RemoveProfile" Apple MDM command.

type RemoveProfileResponse

type RemoveProfileResponse struct {
	GenericResponse
}

RemoveProfileResponse is the command result report (response) for the "RemoveProfile" Apple MDM command.

func (*RemoveProfileResponse) GetGenericResponse

func (r *RemoveProfileResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*RemoveProfileResponse) Validate

func (r *RemoveProfileResponse) Validate() error

Validate checks for any command response errors.

type RemoveProvisioningProfileCommand

type RemoveProvisioningProfileCommand struct {
	Command     RemoveProvisioningProfilePayload
	CommandUUID string
}

RemoveProvisioningProfileCommand is the top-level structure for the "RemoveProvisioningProfile" Apple MDM command.

func NewRemoveProvisioningProfileCommand

func NewRemoveProvisioningProfileCommand(uuid string) *RemoveProvisioningProfileCommand

NewRemoveProvisioningProfileCommand creates a new "RemoveProvisioningProfile" Apple MDM command.

func (*RemoveProvisioningProfileCommand) GenericCommand

func (c *RemoveProvisioningProfileCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type RemoveProvisioningProfilePayload

type RemoveProvisioningProfilePayload struct {
	UUID                         string
	RequestType                  string // supported value: RemoveProvisioningProfile
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

RemoveProvisioningProfilePayload is the "inner" command-specific payload for the "RemoveProvisioningProfile" Apple MDM command.

type RemoveProvisioningProfileResponse

type RemoveProvisioningProfileResponse struct {
	GenericResponse
}

RemoveProvisioningProfileResponse is the command result report (response) for the "RemoveProvisioningProfile" Apple MDM command.

func (*RemoveProvisioningProfileResponse) GetGenericResponse

func (r *RemoveProvisioningProfileResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*RemoveProvisioningProfileResponse) Validate

Validate checks for any command response errors.

type RequestListItem

type RequestListItem struct {
	DeviceRequestType        string // supported values: PowerON, PowerOFF, Reset
	DeviceRequestUUID        string
	DeviceDNSName            string
	PrimaryIPv6AddressList   []string
	SecondaryIPv6AddressList []string
	LOMProtocolVersion       int
}

type RequestMirroringCommand

type RequestMirroringCommand struct {
	Command     RequestMirroringPayload
	CommandUUID string
}

RequestMirroringCommand is the top-level structure for the "RequestMirroring" Apple MDM command.

func NewRequestMirroringCommand

func NewRequestMirroringCommand(uuid string) *RequestMirroringCommand

NewRequestMirroringCommand creates a new "RequestMirroring" Apple MDM command.

func (*RequestMirroringCommand) GenericCommand

func (c *RequestMirroringCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type RequestMirroringPayload

type RequestMirroringPayload struct {
	DestinationName              *string `plist:",omitempty"`
	DestinationDeviceID          *string `plist:",omitempty"`
	ScanTime                     *int    `plist:",omitempty"`
	Password                     *string `plist:",omitempty"`
	RequestType                  string  // supported value: RequestMirroring
	RequestRequiresNetworkTether *bool   `plist:",omitempty"`
}

RequestMirroringPayload is the "inner" command-specific payload for the "RequestMirroring" Apple MDM command.

type RequestMirroringResponse

type RequestMirroringResponse struct {
	MirroringResult *string `plist:",omitempty"`
	GenericResponse
}

RequestMirroringResponse is the command result report (response) for the "RequestMirroring" Apple MDM command.

func (*RequestMirroringResponse) GetGenericResponse

func (r *RequestMirroringResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*RequestMirroringResponse) Validate

func (r *RequestMirroringResponse) Validate() error

Validate checks for any command response errors.

type RequestUnlockTokenCommand

type RequestUnlockTokenCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

RequestUnlockTokenCommand is the top-level structure for the "RequestUnlockToken" Apple MDM command.

func NewRequestUnlockTokenCommand

func NewRequestUnlockTokenCommand(uuid string) *RequestUnlockTokenCommand

NewRequestUnlockTokenCommand creates a new "RequestUnlockToken" Apple MDM command.

func (*RequestUnlockTokenCommand) GenericCommand

func (c *RequestUnlockTokenCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type RequestUnlockTokenResponse

type RequestUnlockTokenResponse struct {
	UnlockToken []byte
	GenericResponse
}

RequestUnlockTokenResponse is the command result report (response) for the "RequestUnlockToken" Apple MDM command.

func (*RequestUnlockTokenResponse) GetGenericResponse

func (r *RequestUnlockTokenResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*RequestUnlockTokenResponse) Validate

func (r *RequestUnlockTokenResponse) Validate() error

Validate checks for any command response errors.

type ResponseListItem

type ResponseListItem struct {
	DeviceRequestSuccess     bool
	DeviceRequestUUID        string
	DeviceRequestReturnError *string `plist:",omitempty"`
}

type RestartDeviceCommand

type RestartDeviceCommand struct {
	Command     RestartDevicePayload
	CommandUUID string
}

RestartDeviceCommand is the top-level structure for the "RestartDevice" Apple MDM command.

func NewRestartDeviceCommand

func NewRestartDeviceCommand(uuid string) *RestartDeviceCommand

NewRestartDeviceCommand creates a new "RestartDevice" Apple MDM command.

func (*RestartDeviceCommand) GenericCommand

func (c *RestartDeviceCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type RestartDevicePayload

type RestartDevicePayload struct {
	RebuildKernelCache           *bool     `plist:",omitempty"`
	KextPaths                    *[]string `plist:",omitempty"`
	NotifyUser                   *bool     `plist:",omitempty"`
	RequestType                  string    // supported value: RestartDevice
	RequestRequiresNetworkTether *bool     `plist:",omitempty"`
}

RestartDevicePayload is the "inner" command-specific payload for the "RestartDevice" Apple MDM command.

type RestartDeviceResponse

type RestartDeviceResponse struct {
	GenericResponse
}

RestartDeviceResponse is the command result report (response) for the "RestartDevice" Apple MDM command.

func (*RestartDeviceResponse) GetGenericResponse

func (r *RestartDeviceResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*RestartDeviceResponse) Validate

func (r *RestartDeviceResponse) Validate() error

Validate checks for any command response errors.

type ReturnToService

type ReturnToService struct {
	Enabled         bool
	WiFiProfileData *[]byte `plist:",omitempty"`
	MDMProfileData  *[]byte `plist:",omitempty"`
}

type RotateFileVaultKeyCommand

type RotateFileVaultKeyCommand struct {
	Command     RotateFileVaultKeyPayload
	CommandUUID string
}

RotateFileVaultKeyCommand is the top-level structure for the "RotateFileVaultKey" Apple MDM command.

func NewRotateFileVaultKeyCommand

func NewRotateFileVaultKeyCommand(uuid string) *RotateFileVaultKeyCommand

NewRotateFileVaultKeyCommand creates a new "RotateFileVaultKey" Apple MDM command.

func (*RotateFileVaultKeyCommand) GenericCommand

func (c *RotateFileVaultKeyCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type RotateFileVaultKeyPayload

type RotateFileVaultKeyPayload struct {
	KeyType                      string // supported values: personal, institutional
	FileVaultUnlock              FileVaultUnlock
	NewCertificate               *[]byte `plist:",omitempty"`
	ReplyEncryptionCertificate   *[]byte `plist:",omitempty"`
	RequestType                  string  // supported value: RotateFileVaultKey
	RequestRequiresNetworkTether *bool   `plist:",omitempty"`
}

RotateFileVaultKeyPayload is the "inner" command-specific payload for the "RotateFileVaultKey" Apple MDM command.

type RotateFileVaultKeyResponse

type RotateFileVaultKeyResponse struct {
	RotateResult *RotateResult `plist:",omitempty"`
	GenericResponse
}

RotateFileVaultKeyResponse is the command result report (response) for the "RotateFileVaultKey" Apple MDM command.

func (*RotateFileVaultKeyResponse) GetGenericResponse

func (r *RotateFileVaultKeyResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*RotateFileVaultKeyResponse) Validate

func (r *RotateFileVaultKeyResponse) Validate() error

Validate checks for any command response errors.

type RotateResult

type RotateResult struct {
	EncryptedNewRecoveryKey *[]byte `plist:",omitempty"`
}

type ScheduleOSUpdateCommand

type ScheduleOSUpdateCommand struct {
	Command     ScheduleOSUpdatePayload
	CommandUUID string
}

ScheduleOSUpdateCommand is the top-level structure for the "ScheduleOSUpdate" Apple MDM command.

func NewScheduleOSUpdateCommand

func NewScheduleOSUpdateCommand(uuid string) *ScheduleOSUpdateCommand

NewScheduleOSUpdateCommand creates a new "ScheduleOSUpdate" Apple MDM command.

func (*ScheduleOSUpdateCommand) GenericCommand

func (c *ScheduleOSUpdateCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ScheduleOSUpdatePayload

type ScheduleOSUpdatePayload struct {
	Updates                      []UpdatesItem
	RequestType                  string // supported value: ScheduleOSUpdate
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

ScheduleOSUpdatePayload is the "inner" command-specific payload for the "ScheduleOSUpdate" Apple MDM command.

type ScheduleOSUpdateResponse

type ScheduleOSUpdateResponse struct {
	UpdateResults []UpdateResultsItem
	GenericResponse
}

ScheduleOSUpdateResponse is the command result report (response) for the "ScheduleOSUpdate" Apple MDM command.

func (*ScheduleOSUpdateResponse) GetGenericResponse

func (r *ScheduleOSUpdateResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ScheduleOSUpdateResponse) Validate

func (r *ScheduleOSUpdateResponse) Validate() error

Validate checks for any command response errors.

type ScheduleOSUpdateScanCommand

type ScheduleOSUpdateScanCommand struct {
	Command     ScheduleOSUpdateScanPayload
	CommandUUID string
}

ScheduleOSUpdateScanCommand is the top-level structure for the "ScheduleOSUpdateScan" Apple MDM command.

func NewScheduleOSUpdateScanCommand

func NewScheduleOSUpdateScanCommand(uuid string) *ScheduleOSUpdateScanCommand

NewScheduleOSUpdateScanCommand creates a new "ScheduleOSUpdateScan" Apple MDM command.

func (*ScheduleOSUpdateScanCommand) GenericCommand

func (c *ScheduleOSUpdateScanCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ScheduleOSUpdateScanPayload

type ScheduleOSUpdateScanPayload struct {
	Force                        *bool  `plist:",omitempty"`
	RequestType                  string // supported value: ScheduleOSUpdateScan
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

ScheduleOSUpdateScanPayload is the "inner" command-specific payload for the "ScheduleOSUpdateScan" Apple MDM command.

type ScheduleOSUpdateScanResponse

type ScheduleOSUpdateScanResponse struct {
	ScanInitiated bool
	GenericResponse
}

ScheduleOSUpdateScanResponse is the command result report (response) for the "ScheduleOSUpdateScan" Apple MDM command.

func (*ScheduleOSUpdateScanResponse) GetGenericResponse

func (r *ScheduleOSUpdateScanResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ScheduleOSUpdateScanResponse) Validate

func (r *ScheduleOSUpdateScanResponse) Validate() error

Validate checks for any command response errors.

type SecureBoot

type SecureBoot struct {
	SecureBootLevel   *string   // supported values: off, medium, full, not supported
	ExternalBootLevel *string   // supported values: allowed, disallowed, not supported
	ReducedSecurity   *[]string // 3 array value(s) defined in schema
}

type SecurityInfo

type SecurityInfo struct {
	HardwareEncryptionCaps                           *int
	PasscodePresent                                  *bool
	PasscodeCompliant                                *bool
	PasscodeCompliantWithProfiles                    *bool
	PasscodeLockGracePeriod                          *int
	PasscodeLockGracePeriodEnforced                  *int
	AutoLockTime                                     *int
	FDEEnabled                                       *bool   `plist:"FDE_Enabled"`
	FDEHasPersonalRecoveryKey                        *bool   `plist:"FDE_HasPersonalRecoveryKey"`
	FDEHasInstitutionalRecoveryKey                   *bool   `plist:"FDE_HasInstitutionalRecoveryKey"`
	FDEPersonalRecoveryKeyCMS                        *[]byte `plist:"FDE_PersonalRecoveryKeyCMS"`
	FDEPersonalRecoveryKeyDeviceKey                  *string `plist:"FDE_PersonalRecoveryKeyDeviceKey"`
	SystemIntegrityProtectionEnabled                 *bool
	FirewallSettings                                 *FirewallSettings
	FirmwarePasswordStatus                           *FirmwarePasswordStatus
	ManagementStatus                                 *ManagementStatus
	SecureBoot                                       *SecureBoot
	RemoteDesktopEnabled                             *bool
	AuthenticatedRootVolumeEnabled                   *bool
	BootstrapTokenAllowedForAuthentication           *string // supported values: allowed, disallowed, not supported
	BootstrapTokenRequiredForSoftwareUpdate          *bool
	BootstrapTokenRequiredForKernelExtensionApproval *bool
	IsRecoveryLockEnabled                            *bool
}

type SecurityInfoCommand

type SecurityInfoCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

SecurityInfoCommand is the top-level structure for the "SecurityInfo" Apple MDM command.

func NewSecurityInfoCommand

func NewSecurityInfoCommand(uuid string) *SecurityInfoCommand

NewSecurityInfoCommand creates a new "SecurityInfo" Apple MDM command.

func (*SecurityInfoCommand) GenericCommand

func (c *SecurityInfoCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type SecurityInfoResponse

type SecurityInfoResponse struct {
	SecurityInfo SecurityInfo
	GenericResponse
}

SecurityInfoResponse is the command result report (response) for the "SecurityInfo" Apple MDM command.

func (*SecurityInfoResponse) GetGenericResponse

func (r *SecurityInfoResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*SecurityInfoResponse) Validate

func (r *SecurityInfoResponse) Validate() error

Validate checks for any command response errors.

type ServiceSubscriptionProperty

type ServiceSubscriptionProperty struct {
	CarrierSettingsVersion   *string
	CurrentCarrierNetwork    *string
	CurrentMCC               *string
	CurrentMNC               *string
	ICCID                    *string
	EID                      *string
	IMEI                     *string
	IsDataPreferred          *bool
	IsRoaming                *bool
	IsVoicePreferred         *bool
	Label                    *string
	LabelID                  *string
	MEID                     *string
	PhoneNumber              *string
	Slot                     *string
	SubscriberCarrierNetwork *string
}

type SetAutoAdminPasswordCommand

type SetAutoAdminPasswordCommand struct {
	Command     SetAutoAdminPasswordPayload
	CommandUUID string
}

SetAutoAdminPasswordCommand is the top-level structure for the "SetAutoAdminPassword" Apple MDM command.

func NewSetAutoAdminPasswordCommand

func NewSetAutoAdminPasswordCommand(uuid string) *SetAutoAdminPasswordCommand

NewSetAutoAdminPasswordCommand creates a new "SetAutoAdminPassword" Apple MDM command.

func (*SetAutoAdminPasswordCommand) GenericCommand

func (c *SetAutoAdminPasswordCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type SetAutoAdminPasswordPayload

type SetAutoAdminPasswordPayload struct {
	GUID                         string
	PasswordHash                 []byte `plist:"passwordHash"`
	RequestType                  string // supported value: SetAutoAdminPassword
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

SetAutoAdminPasswordPayload is the "inner" command-specific payload for the "SetAutoAdminPassword" Apple MDM command.

type SetAutoAdminPasswordResponse

type SetAutoAdminPasswordResponse struct {
	GenericResponse
}

SetAutoAdminPasswordResponse is the command result report (response) for the "SetAutoAdminPassword" Apple MDM command.

func (*SetAutoAdminPasswordResponse) GetGenericResponse

func (r *SetAutoAdminPasswordResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*SetAutoAdminPasswordResponse) Validate

func (r *SetAutoAdminPasswordResponse) Validate() error

Validate checks for any command response errors.

type SetFirmwarePassword

type SetFirmwarePassword struct {
	PasswordChanged bool
}

type SetFirmwarePasswordCommand

type SetFirmwarePasswordCommand struct {
	Command     SetFirmwarePasswordPayload
	CommandUUID string
}

SetFirmwarePasswordCommand is the top-level structure for the "SetFirmwarePassword" Apple MDM command.

func NewSetFirmwarePasswordCommand

func NewSetFirmwarePasswordCommand(uuid string) *SetFirmwarePasswordCommand

NewSetFirmwarePasswordCommand creates a new "SetFirmwarePassword" Apple MDM command.

func (*SetFirmwarePasswordCommand) GenericCommand

func (c *SetFirmwarePasswordCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type SetFirmwarePasswordPayload

type SetFirmwarePasswordPayload struct {
	CurrentPassword              *string `plist:",omitempty"`
	NewPassword                  string
	AllowOroms                   *bool  `plist:",omitempty"`
	RequestType                  string // supported value: SetFirmwarePassword
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

SetFirmwarePasswordPayload is the "inner" command-specific payload for the "SetFirmwarePassword" Apple MDM command.

type SetFirmwarePasswordResponse

type SetFirmwarePasswordResponse struct {
	SetFirmwarePassword SetFirmwarePassword
	GenericResponse
}

SetFirmwarePasswordResponse is the command result report (response) for the "SetFirmwarePassword" Apple MDM command.

func (*SetFirmwarePasswordResponse) GetGenericResponse

func (r *SetFirmwarePasswordResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*SetFirmwarePasswordResponse) Validate

func (r *SetFirmwarePasswordResponse) Validate() error

Validate checks for any command response errors.

type SetRecoveryLockCommand

type SetRecoveryLockCommand struct {
	Command     SetRecoveryLockPayload
	CommandUUID string
}

SetRecoveryLockCommand is the top-level structure for the "SetRecoveryLock" Apple MDM command.

func NewSetRecoveryLockCommand

func NewSetRecoveryLockCommand(uuid string) *SetRecoveryLockCommand

NewSetRecoveryLockCommand creates a new "SetRecoveryLock" Apple MDM command.

func (*SetRecoveryLockCommand) GenericCommand

func (c *SetRecoveryLockCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type SetRecoveryLockPayload

type SetRecoveryLockPayload struct {
	CurrentPassword              *string `plist:",omitempty"`
	NewPassword                  string
	RequestType                  string // supported value: SetRecoveryLock
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

SetRecoveryLockPayload is the "inner" command-specific payload for the "SetRecoveryLock" Apple MDM command.

type SetRecoveryLockResponse

type SetRecoveryLockResponse struct {
	GenericResponse
}

SetRecoveryLockResponse is the command result report (response) for the "SetRecoveryLock" Apple MDM command.

func (*SetRecoveryLockResponse) GetGenericResponse

func (r *SetRecoveryLockResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*SetRecoveryLockResponse) Validate

func (r *SetRecoveryLockResponse) Validate() error

Validate checks for any command response errors.

type ShutDownDeviceCommand

type ShutDownDeviceCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

ShutDownDeviceCommand is the top-level structure for the "ShutDownDevice" Apple MDM command.

func NewShutDownDeviceCommand

func NewShutDownDeviceCommand(uuid string) *ShutDownDeviceCommand

NewShutDownDeviceCommand creates a new "ShutDownDevice" Apple MDM command.

func (*ShutDownDeviceCommand) GenericCommand

func (c *ShutDownDeviceCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ShutDownDeviceResponse

type ShutDownDeviceResponse struct {
	GenericResponse
}

ShutDownDeviceResponse is the command result report (response) for the "ShutDownDevice" Apple MDM command.

func (*ShutDownDeviceResponse) GetGenericResponse

func (r *ShutDownDeviceResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ShutDownDeviceResponse) Validate

func (r *ShutDownDeviceResponse) Validate() error

Validate checks for any command response errors.

type SoftwareUpdateSettings

type SoftwareUpdateSettings struct {
	RecommendationsCadence *int
}

type StopMirroringCommand

type StopMirroringCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

StopMirroringCommand is the top-level structure for the "StopMirroring" Apple MDM command.

func NewStopMirroringCommand

func NewStopMirroringCommand(uuid string) *StopMirroringCommand

NewStopMirroringCommand creates a new "StopMirroring" Apple MDM command.

func (*StopMirroringCommand) GenericCommand

func (c *StopMirroringCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type StopMirroringResponse

type StopMirroringResponse struct {
	GenericResponse
}

StopMirroringResponse is the command result report (response) for the "StopMirroring" Apple MDM command.

func (*StopMirroringResponse) GetGenericResponse

func (r *StopMirroringResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*StopMirroringResponse) Validate

func (r *StopMirroringResponse) Validate() error

Validate checks for any command response errors.

type UnlockUserAccountCommand

type UnlockUserAccountCommand struct {
	Command     UnlockUserAccountPayload
	CommandUUID string
}

UnlockUserAccountCommand is the top-level structure for the "UnlockUserAccount" Apple MDM command.

func NewUnlockUserAccountCommand

func NewUnlockUserAccountCommand(uuid string) *UnlockUserAccountCommand

NewUnlockUserAccountCommand creates a new "UnlockUserAccount" Apple MDM command.

func (*UnlockUserAccountCommand) GenericCommand

func (c *UnlockUserAccountCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type UnlockUserAccountPayload

type UnlockUserAccountPayload struct {
	UserName                     string
	RequestType                  string // supported value: UnlockUserAccount
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

UnlockUserAccountPayload is the "inner" command-specific payload for the "UnlockUserAccount" Apple MDM command.

type UnlockUserAccountResponse

type UnlockUserAccountResponse struct {
	GenericResponse
}

UnlockUserAccountResponse is the command result report (response) for the "UnlockUserAccount" Apple MDM command.

func (*UnlockUserAccountResponse) GetGenericResponse

func (r *UnlockUserAccountResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*UnlockUserAccountResponse) Validate

func (r *UnlockUserAccountResponse) Validate() error

Validate checks for any command response errors.

type UpdateResultsItem

type UpdateResultsItem struct {
	ProductKey    string
	InstallAction string         // supported values: Error, DownloadOnly, InstallASAP, NotifyOnly, InstallLater, InstallForceRestart
	Status        string         // supported values: Idle, Downloading, DownloadFailed, DownloadRequiresComputer, DownloadInsufficientSpace, DownloadInsufficientPower, DownloadInsufficientNetwork, Installing, InstallInsufficientSpace, InstallInsufficientPower, InstallPhoneCallInProgress, InstallFailed
	ErrorChain    *[]interface{} `plist:",omitempty"` // <any> type as single dictionary subkey
}

type UpdatesItem

type UpdatesItem struct {
	ProductKey       *string `plist:",omitempty"`
	ProductVersion   *string `plist:",omitempty"`
	InstallAction    string  // supported values: Default, DownloadOnly, InstallASAP, NotifyOnly, InstallLater, InstallForceRestart
	MaxUserDeferrals *int    `plist:",omitempty"`
	Priority         *string `plist:",omitempty"` // supported values: Low, High
}

type UserConfiguredCommand

type UserConfiguredCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

UserConfiguredCommand is the top-level structure for the "UserConfigured" Apple MDM command.

func NewUserConfiguredCommand

func NewUserConfiguredCommand(uuid string) *UserConfiguredCommand

NewUserConfiguredCommand creates a new "UserConfigured" Apple MDM command.

func (*UserConfiguredCommand) GenericCommand

func (c *UserConfiguredCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type UserConfiguredResponse

type UserConfiguredResponse struct {
	GenericResponse
}

UserConfiguredResponse is the command result report (response) for the "UserConfigured" Apple MDM command.

func (*UserConfiguredResponse) GetGenericResponse

func (r *UserConfiguredResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*UserConfiguredResponse) Validate

func (r *UserConfiguredResponse) Validate() error

Validate checks for any command response errors.

type UserListCommand

type UserListCommand struct {
	Command     GenericCommandPayload
	CommandUUID string
}

UserListCommand is the top-level structure for the "UserList" Apple MDM command.

func NewUserListCommand

func NewUserListCommand(uuid string) *UserListCommand

NewUserListCommand creates a new "UserList" Apple MDM command.

func (*UserListCommand) GenericCommand

func (c *UserListCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type UserListResponse

type UserListResponse struct {
	Users []UsersItem
	GenericResponse
}

UserListResponse is the command result report (response) for the "UserList" Apple MDM command.

func (*UserListResponse) GetGenericResponse

func (r *UserListResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*UserListResponse) Validate

func (r *UserListResponse) Validate() error

Validate checks for any command response errors.

type UsersItem

type UsersItem struct {
	UserName       string
	FullName       string
	UID            int
	UserGUID       string
	IsLoggedIn     bool
	HasDataToSync  bool
	DataQuota      int
	DataUsed       int
	MobileAccount  bool
	HasSecureToken bool
}

type ValidateApplicationsCommand

type ValidateApplicationsCommand struct {
	Command     ValidateApplicationsPayload
	CommandUUID string
}

ValidateApplicationsCommand is the top-level structure for the "ValidateApplications" Apple MDM command.

func NewValidateApplicationsCommand

func NewValidateApplicationsCommand(uuid string) *ValidateApplicationsCommand

NewValidateApplicationsCommand creates a new "ValidateApplications" Apple MDM command.

func (*ValidateApplicationsCommand) GenericCommand

func (c *ValidateApplicationsCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type ValidateApplicationsPayload

type ValidateApplicationsPayload struct {
	Identifiers                  *[]string `plist:",omitempty"`
	RequestType                  string    // supported value: ValidateApplications
	RequestRequiresNetworkTether *bool     `plist:",omitempty"`
}

ValidateApplicationsPayload is the "inner" command-specific payload for the "ValidateApplications" Apple MDM command.

type ValidateApplicationsResponse

type ValidateApplicationsResponse struct {
	GenericResponse
}

ValidateApplicationsResponse is the command result report (response) for the "ValidateApplications" Apple MDM command.

func (*ValidateApplicationsResponse) GetGenericResponse

func (r *ValidateApplicationsResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*ValidateApplicationsResponse) Validate

func (r *ValidateApplicationsResponse) Validate() error

Validate checks for any command response errors.

type VerifyFirmwarePassword

type VerifyFirmwarePassword struct {
	PasswordVerified bool
}

type VerifyFirmwarePasswordCommand

type VerifyFirmwarePasswordCommand struct {
	Command     VerifyFirmwarePasswordPayload
	CommandUUID string
}

VerifyFirmwarePasswordCommand is the top-level structure for the "VerifyFirmwarePassword" Apple MDM command.

func NewVerifyFirmwarePasswordCommand

func NewVerifyFirmwarePasswordCommand(uuid string) *VerifyFirmwarePasswordCommand

NewVerifyFirmwarePasswordCommand creates a new "VerifyFirmwarePassword" Apple MDM command.

func (*VerifyFirmwarePasswordCommand) GenericCommand

func (c *VerifyFirmwarePasswordCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type VerifyFirmwarePasswordPayload

type VerifyFirmwarePasswordPayload struct {
	Password                     string
	RequestType                  string // supported value: VerifyFirmwarePassword
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

VerifyFirmwarePasswordPayload is the "inner" command-specific payload for the "VerifyFirmwarePassword" Apple MDM command.

type VerifyFirmwarePasswordResponse

type VerifyFirmwarePasswordResponse struct {
	VerifyFirmwarePassword VerifyFirmwarePassword
	GenericResponse
}

VerifyFirmwarePasswordResponse is the command result report (response) for the "VerifyFirmwarePassword" Apple MDM command.

func (*VerifyFirmwarePasswordResponse) GetGenericResponse

func (r *VerifyFirmwarePasswordResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*VerifyFirmwarePasswordResponse) Validate

func (r *VerifyFirmwarePasswordResponse) Validate() error

Validate checks for any command response errors.

type VerifyRecoveryLockCommand

type VerifyRecoveryLockCommand struct {
	Command     VerifyRecoveryLockPayload
	CommandUUID string
}

VerifyRecoveryLockCommand is the top-level structure for the "VerifyRecoveryLock" Apple MDM command.

func NewVerifyRecoveryLockCommand

func NewVerifyRecoveryLockCommand(uuid string) *VerifyRecoveryLockCommand

NewVerifyRecoveryLockCommand creates a new "VerifyRecoveryLock" Apple MDM command.

func (*VerifyRecoveryLockCommand) GenericCommand

func (c *VerifyRecoveryLockCommand) GenericCommand() *GenericCommand

GenericCommand creates a new generic command using the values of c.

type VerifyRecoveryLockPayload

type VerifyRecoveryLockPayload struct {
	Password                     string
	RequestType                  string // supported value: VerifyRecoveryLock
	RequestRequiresNetworkTether *bool  `plist:",omitempty"`
}

VerifyRecoveryLockPayload is the "inner" command-specific payload for the "VerifyRecoveryLock" Apple MDM command.

type VerifyRecoveryLockResponse

type VerifyRecoveryLockResponse struct {
	PasswordVerified bool
	GenericResponse
}

VerifyRecoveryLockResponse is the command result report (response) for the "VerifyRecoveryLock" Apple MDM command.

func (*VerifyRecoveryLockResponse) GetGenericResponse

func (r *VerifyRecoveryLockResponse) GetGenericResponse() *GenericResponse

GetGenericResponse creates a new generic command response using the values of r.

func (*VerifyRecoveryLockResponse) Validate

func (r *VerifyRecoveryLockResponse) Validate() error

Validate checks for any command response errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL