Files
sdk/Sources/Hanzo/Models/O11yGettableAgentCheckIn.swift
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

59 lines
2.5 KiB
Swift

//
// O11yGettableAgentCheckIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yGettableAgentCheckIn: Sendable, Codable, ParameterConvertible, Hashable {
/** Older fields for backward compatibility with existing AWS agents */
public var accountId: String?
public var cloudAccountId: String?
public var cloudIntegrationId: String?
public var integrationConfigLegacy: O11yIntegrationConfig?
public var integrationConfig: O11yProviderIntegrationConfig?
public var providerAccountId: String?
public var removedAtLegacy: Date?
public var removedAt: Date?
public init(accountId: String? = nil, cloudAccountId: String? = nil, cloudIntegrationId: String? = nil, integrationConfigLegacy: O11yIntegrationConfig? = nil, integrationConfig: O11yProviderIntegrationConfig? = nil, providerAccountId: String? = nil, removedAtLegacy: Date? = nil, removedAt: Date? = nil) {
self.accountId = accountId
self.cloudAccountId = cloudAccountId
self.cloudIntegrationId = cloudIntegrationId
self.integrationConfigLegacy = integrationConfigLegacy
self.integrationConfig = integrationConfig
self.providerAccountId = providerAccountId
self.removedAtLegacy = removedAtLegacy
self.removedAt = removedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case accountId = "account_id"
case cloudAccountId = "cloud_account_id"
case cloudIntegrationId
case integrationConfigLegacy = "integration_config"
case integrationConfig
case providerAccountId
case removedAtLegacy = "removed_at"
case removedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(accountId, forKey: .accountId)
try container.encodeIfPresent(cloudAccountId, forKey: .cloudAccountId)
try container.encodeIfPresent(cloudIntegrationId, forKey: .cloudIntegrationId)
try container.encodeIfPresent(integrationConfigLegacy, forKey: .integrationConfigLegacy)
try container.encodeIfPresent(integrationConfig, forKey: .integrationConfig)
try container.encodeIfPresent(providerAccountId, forKey: .providerAccountId)
try container.encodeIfPresent(removedAtLegacy, forKey: .removedAtLegacy)
try container.encodeIfPresent(removedAt, forKey: .removedAt)
}
}