Disruptive Documentation

Structure Service​Account

public struct ServiceAccount: Decodable, Equatable  

All programmatic interaction with the Disruptive Technologies API is done via a logged-in Service Account.

%93 ServiceAccount ServiceAccount Equatable Equatable ServiceAccount->Equatable Decodable Decodable ServiceAccount->Decodable

Nested Types

ServiceAccount.Key

A key that can be used to authenticate a Service Account.

ServiceAccount.KeySecret

A secret along with the corresponding key used to authenticate a Service Account. This is the response value for when a new key is created for a Service Account.

Conforms To

Decodable
Equatable

Initializers

init(from:​)

public init(from decoder: Decoder) throws  

Properties

identifier

public let identifier: String

The unique identifier of the Service Account. This will be different from the name field in the REST API in that it is just the identifier without the projects/*/serviceaccounts/ prefix.

project​ID

public let projectID: String

The identifier of the project the Service Account is in.

email

public let email: String

The email of the Service Accounts. Used for authenticating the Service Account. Has the format: <identifier>@<projectID>.serviceaccount.d21s.com.

display​Name

public let displayName: String

The display name of the Service Account.

basic​Auth​Enabled

public let basicAuthEnabled: Bool

Indicates whether or not the Service Account can be authenticated using HTTP basic auth. It is not recommended to have this enabled in a production environment.

create​Time

public let createTime: Date

The timestamp for when the Service Account was created.

update​Time

public let updateTime: Date

The timestamp for when the Service Account was last updated.