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

43 lines
1.3 KiB
Swift

//
// O11yPostableAccountConfig.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yPostableAccountConfig: Sendable, Codable, ParameterConvertible, Hashable {
/** as agent version is common for all providers, we can keep it at top level of this struct */
public var agentVersion: String?
public var aws: O11yAWSPostableAccountConfig?
public var azure: O11yAzureAccountConfig?
public var gcp: O11yGCPAccountConfig?
public init(agentVersion: String? = nil, aws: O11yAWSPostableAccountConfig? = nil, azure: O11yAzureAccountConfig? = nil, gcp: O11yGCPAccountConfig? = nil) {
self.agentVersion = agentVersion
self.aws = aws
self.azure = azure
self.gcp = gcp
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case agentVersion = "AgentVersion"
case aws
case azure
case gcp
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(agentVersion, forKey: .agentVersion)
try container.encodeIfPresent(aws, forKey: .aws)
try container.encodeIfPresent(azure, forKey: .azure)
try container.encodeIfPresent(gcp, forKey: .gcp)
}
}