SimpleMDM-Swift Documentation

Protocol Fetchable​Listable​Resource

public protocol FetchableListableResource: ListableResource  

A protocol describing resource types that we can get a list of and that can be fetched from the API independently of another resource.

%101 FetchableListableResource FetchableListableResource ListableResource ListableResource FetchableListableResource->ListableResource CustomAttribute CustomAttribute CustomAttribute->FetchableListableResource AppGroup AppGroup AppGroup->FetchableListableResource DeviceGroup DeviceGroup DeviceGroup->FetchableListableResource CustomConfigurationProfile CustomConfigurationProfile CustomConfigurationProfile->FetchableListableResource App App App->FetchableListableResource

Conforms To

ListableResource

A protocol describing resource types that we can get a list of.

Types Conforming to Fetchable​Listable​Resource

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.

CustomConfigurationProfile

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

DeviceGroup

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

Default Implementations

all

static var all: AsyncResources<Self>  

Fetch the list of all resources of this type.

Because the SimpleMDM API enforces pagination when getting a list of resources, this method will fetch the resources page by page, and concatenate the results of each page. This means that if the total count of resources fetched is high (more than a hundred of resources), calling this method may end up making multiple HTTP requests to the SimpleMDM API.

Returns

An async sequence of resources.

Requirements

all

static var all: AsyncResources<Self>  

Get a list of all resources of this type.

Returns

An async sequence of resources.