Structure
ServiceAccount
public struct ServiceAccount: Decodable, Equatable
All programmatic interaction with the Disruptive Technologies API is done via a logged-in Service Account.
To learn more about Service Accounts, see the Service Account page on the developer website.
Functions relevant for ServiceAccount
s are implemented on the Disruptive
struct:
Relationships
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.
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
.
basicAuthEnabled
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.
updateTime
public let updateTime: Date
The timestamp for when the Service Account was last updated.