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
ListableResourceA protocol describing resource types that we can get a list of.
Types Conforming to FetchableListableResource
AppAn
Apprepresents an app in your app catalog. You can useAppGroupto install apps to your devices.AppGroupAn app group is an object that pairs
Appresources withDeviceGroupresources for the purpose of pushing apps to devices.CustomAttributeCustom attributes defined in your account.
CustomConfigurationProfileA custom configuration profile created with AppleConfiguration and applied to devices.
DeviceGroupA 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.