Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

64 lines
2.2 KiB
Swift

//
// O11yO11yAPIKey.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yAPIKey: Sendable, Codable, ParameterConvertible, Hashable {
/** CreatedAt is when the key was minted. */
public var createdAt: Date?
/** ExpiresAt is when the key stops working, as a unix timestamp in seconds; zero means never. */
public var expiresAt: Int?
/** ID is the key id. */
public var id: String?
/** LastObservedAt is when the key was last seen authenticating. */
public var lastObservedAt: Date?
/** Name is the key's name. */
public var name: String?
/** ServiceAccountID is the account the key belongs to. */
public var serviceAccountId: String?
/** UpdatedAt is when it last changed. */
public var updatedAt: Date?
public init(createdAt: Date? = nil, expiresAt: Int? = nil, id: String? = nil, lastObservedAt: Date? = nil, name: String? = nil, serviceAccountId: String? = nil, updatedAt: Date? = nil) {
self.createdAt = createdAt
self.expiresAt = expiresAt
self.id = id
self.lastObservedAt = lastObservedAt
self.name = name
self.serviceAccountId = serviceAccountId
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case createdAt
case expiresAt
case id
case lastObservedAt
case name
case serviceAccountId
case updatedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(expiresAt, forKey: .expiresAt)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(lastObservedAt, forKey: .lastObservedAt)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(serviceAccountId, forKey: .serviceAccountId)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension O11yO11yAPIKey: Identifiable {}