SimpleMDM-Swift Documentation

Structure Custom​Configuration​Profile

public struct CustomConfigurationProfile: FetchableListableResource  

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

%67 CustomConfigurationProfile CustomConfigurationProfile Decodable Decodable CustomConfigurationProfile->Decodable Resource Resource CustomConfigurationProfile->Resource FetchableListableResource FetchableListableResource CustomConfigurationProfile->FetchableListableResource

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 configuration profile.

device​Groups

public let deviceGroups: RelatedToMany<DeviceGroup>

The device groups to which the profile is applied.

endpoint​Name

public static var endpointName: String  

The remote API endpoint identifying this resource.