Protocol
FetchableListableResource
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.
Relationships
Conforms To
ListableResource
A protocol describing resource types that we can get a list of.
Types Conforming to FetchableListableResource
App
An
App
represents an app in your app catalog. You can useAppGroup
to install apps to your devices.AppGroup
An app group is an object that pairs
App
resources withDeviceGroup
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.