SimpleMDM-Swift Documentation

Structure App.​Managed​Config

struct ManagedConfig: ListableResource  

A managed app configuration (a key-value pair) associated with an App.

%51 App.ManagedConfig App.ManagedConfig Decodable Decodable App.ManagedConfig->Decodable ListableResource ListableResource App.ManagedConfig->ListableResource Resource Resource App.ManagedConfig->Resource

Member Of

App

An App represents an app in your app catalog. You can use AppGroup to install apps to your devices.

Conforms To

Resource

A protocol adopted by all resources types of the library.

ListableResource

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

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.

key

public let key: String

The key of the managed configuration.

value

public let value: String

The value of the managed configuration.

value​Type

public let valueType: String

The type of the value of the managed configuration (e.g. "string", "integer", "string array", etc.).

endpoint​Name

public static var endpointName: String  

The remote API endpoint identifying this resource.