Structure
CustomAttribute
public struct CustomAttribute: FetchableListableResource
Custom attributes defined in your account.
See CustomAttributeValue
for the values of these attributes associated to devices.
Relationships
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
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
Name | Type | Description |
---|---|---|
decoder | Decoder |
The decoder to read data from. |
Properties
endpointName
public static var endpointName: String
The remote API endpoint identifying this resource.