SimpleMDM-Swift Documentation

Protocol Resource

public protocol Resource: Decodable  

A protocol adopted by all resources types of the library.

%115 Resource Resource Decodable Decodable Resource->Decodable App.ManagedConfig App.ManagedConfig App.ManagedConfig->Resource Device Device Device->Resource PushCertificate PushCertificate PushCertificate->Resource Device.CustomAttributeValue Device.CustomAttributeValue Device.CustomAttributeValue->Resource DeviceGroup DeviceGroup DeviceGroup->Resource IdentifiableResource IdentifiableResource IdentifiableResource->Resource Account Account Account->Resource CustomAttribute CustomAttribute CustomAttribute->Resource CustomConfigurationProfile CustomConfigurationProfile CustomConfigurationProfile->Resource App App App->Resource AppGroup AppGroup AppGroup->Resource InstalledApp InstalledApp InstalledApp->Resource

Conforms To

Decodable

Types Conforming to Resource

Account

Your SimpleMDM account.

App

An App represents an app in your app catalog. You can use AppGroup to install apps to your devices.

AppGroup

An app group is an object that pairs App resources with DeviceGroup resources for the purpose of pushing apps to devices.

CustomAttribute

Custom attributes defined in your account.

Device.CustomAttributeValue

A custom attribute value assigned to a device.

CustomConfigurationProfile

A custom configuration profile created with AppleConfiguration and applied to devices.

Device

A device registered in your SimpleMDM account.

DeviceGroup

A group of device, used to assign apps and profiles to devices.

InstalledApp

A representation of an app installation on a device.

App.ManagedConfig

A managed app configuration (a key-value pair) associated with an App.

PushCertificate

The Apple push certificate used by SimpleMDM to push configuration update to your devices.

IdentifiableResource

A protocol describing resource types of which multiple instances of can exists. These resources have an identifier which is unique per instance of the resource.

Requirements

endpoint​Name

static var endpointName: String  

The SimpleMDM API endpoint for this resources type.

This is an implementation detail, and you shouldn't have to use this.