Resource

public struct Resource : Codable
  • Declaration

    Swift

    public enum ModelType : String, Codable, CaseIterable
  • Declaration

    Swift

    public var type: ModelType
  • id

    If ID is set that is a permission for a specific resource. if it is not set it is a permission for all resources of that resource type.

    Declaration

    Swift

    public var id: String?
  • Optional name of the resource if the resource has a name field.

    Declaration

    Swift

    public var name: String?
  • If orgID is set that is a permission for all resources owned my that org. if it is not set it is a permission for all resources of that resource type.

    Declaration

    Swift

    public var orgID: String?
  • org

    Optional name of the organization of the organization with orgID.

    Declaration

    Swift

    public var org: String?
  • Declaration

    Swift

    public init(type: ModelType, id: String? = nil, name: String? = nil, orgID: String? = nil, org: String? = nil)