SimpleMDM-Swift Documentation

Structure App​Group

public struct AppGroup: FetchableListableResource  

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

%23 AppGroup AppGroup Resource Resource AppGroup->Resource FetchableListableResource FetchableListableResource AppGroup->FetchableListableResource Decodable Decodable AppGroup->Decodable

Conforms To

Resource

A protocol adopted by all resources types of the library.

FetchableListableResource

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

Decodable

Nested Type Aliases

ID

public typealias ID = Int

The type of the unique identifier of this resource.

Initializers

init(from:​)

public init(from decoder: Decoder) throws  

Creates a new instance of the resource by decoding from the given decoder.

This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

Parameters

decoder Decoder

The decoder to read data from.

Properties

id

public let id: ID

The unique identifier of this resource.

name

public let name: String

The name of the group.

auto​Deploy

public let autoDeploy: Bool

Whether the apps in this group are deployed automatically to the devices in this group.

apps

public let apps: RelatedToMany<App>

The apps in this app group.

device​Groups

public let deviceGroups: RelatedToMany<DeviceGroup>

The groups of devices to which the apps in this group will be deployed on.

devices

public let devices: RelatedToMany<Device>

Other devices to which the apps in this group will be deployed on.

endpoint​Name

public static var endpointName: String  

The remote API endpoint identifying this resource.