AuthorizationPostRequest
public struct AuthorizationPostRequest : Codable
-
Declaration
Swift
public enum Status : String, Codable, CaseIterable
-
Status of the token. If `inactive`, requests using the token will be rejected.
Declaration
Swift
public var status: Status?
-
A description of the token.
Declaration
Swift
public var description: String?
-
ID of org that authorization is scoped to.
Declaration
Swift
public var orgID: String
-
ID of user that authorization is scoped to.
Declaration
Swift
public var userID: String?
-
List of permissions for an auth. An auth must have at least one Permission.
Declaration
Swift
public var permissions: [Permission]
-
Declaration
Swift
public init(status: Status? = .active, description: String? = nil, orgID: String, userID: String? = nil, permissions: [Permission])