Disruptive Documentation

Enumeration Role.​Role​Type

public enum RoleType: Codable, Equatable  

The level of access that is given to a role.

%207 Role.RoleType Role.RoleType Codable Codable Role.RoleType->Codable Equatable Equatable Role.RoleType->Equatable

Member Of

Role

Represents a role that a user can have within a project or an organization.

Conforms To

Codable
Equatable

Initializers

init(from:​)

public init(from decoder: Decoder) throws  

Enumeration Cases

project​User

case projectUser

Can only view data in projects, no editing rights.

project​Developer

case projectDeveloper

Can edit devices and project settings.

project​Admin

case projectAdmin

Can move devices between projects inside the organization. Can add and remove users in the project.

organization​Admin

case organizationAdmin

Can create new Projects and have Project administrator access in all Projects of the Organization.

unknown

case unknown(value: String) 

The access level received for the role was unknown. Added for backwards compatibility in case a new access level is added on the backend, and not yet added to this client library.

Methods

encode(to:​)

public func encode(to encoder: Encoder) throws