SimpleMDM-Swift Documentation

Structure Device.​Custom​Attribute​Value

struct CustomAttributeValue: ListableResource  

A custom attribute value assigned to a device.

%15 Device.CustomAttributeValue Device.CustomAttributeValue Resource Resource Device.CustomAttributeValue->Resource ListableResource ListableResource Device.CustomAttributeValue->ListableResource Decodable Decodable Device.CustomAttributeValue->Decodable

Member Of

Device

A device registered in your SimpleMDM account.

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 = String

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.

value

public let value: String

The value of the attribute you set for the device.

endpoint​Name

public static var endpointName: String  

The remote API endpoint identifying this resource.