SimpleMDM-Swift Documentation

Structure Push​Certificate

public struct PushCertificate: UniqueResource  

The Apple push certificate used by SimpleMDM to push configuration update to your devices.

%35 PushCertificate PushCertificate Resource Resource PushCertificate->Resource UniqueResource UniqueResource PushCertificate->UniqueResource Decodable Decodable PushCertificate->Decodable

Conforms To

Resource

A protocol adopted by all resources types of the library.

Decodable
UniqueResource

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

apple​Id

public let appleId: String

The Apple id of the certificate.

expires​At

public let expiresAt: Date

The expiration date of the certificate.

endpoint​Name

public static var endpointName: String  

The remote API endpoint identifying this resource.