Files
swift-sdk/Sources/Hanzo/Models/O11yO11yLogPipelines.swift
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

109 lines
4.5 KiB
Swift

//
// O11yO11yLogPipelines.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yLogPipelines: Sendable, Codable, ParameterConvertible, Hashable {
/** Config is the rendered collector config the version deployed. */
public var config: String?
/** CreatedAt is when the version was created. */
public var createdAt: Date?
/** CreatedBy is the id of who created the version. */
public var createdBy: String?
/** CreatedByName is the display name of who created the version. */
public var createdByName: String?
/** DeployResult is the deployment's outcome message. */
public var deployResult: String?
/** DeploySequence orders this deployment among the version's deployments. */
public var deploySequence: Int64?
/** DeployStatus is where the deployment stands, e.g. dirty, deploying, deployed, in_progress, failed, unknown. */
public var deployStatus: String?
/** ElementType is the config element this version carries — log_pipelines. */
public var elementType: String?
/** History is the recent version history, newest first. */
public var history: [O11yO11yLogConfigVersion]?
/** ID is the version record's id. */
public var id: String?
/** LastHash is the deployed config's hash. */
public var lastHash: String?
/** OrgID is the org the version belongs to. */
public var orgId: String?
/** Pipelines are the version's pipelines, in order. */
public var pipelines: [O11yO11yLogPipeline]?
/** UpdatedAt is when the version last changed. */
public var updatedAt: Date?
/** UpdatedBy is the id of who last changed it. */
public var updatedBy: String?
/** Version is the config version number. */
public var version: Int64?
public init(config: String? = nil, createdAt: Date? = nil, createdBy: String? = nil, createdByName: String? = nil, deployResult: String? = nil, deploySequence: Int64? = nil, deployStatus: String? = nil, elementType: String? = nil, history: [O11yO11yLogConfigVersion]? = nil, id: String? = nil, lastHash: String? = nil, orgId: String? = nil, pipelines: [O11yO11yLogPipeline]? = nil, updatedAt: Date? = nil, updatedBy: String? = nil, version: Int64? = nil) {
self.config = config
self.createdAt = createdAt
self.createdBy = createdBy
self.createdByName = createdByName
self.deployResult = deployResult
self.deploySequence = deploySequence
self.deployStatus = deployStatus
self.elementType = elementType
self.history = history
self.id = id
self.lastHash = lastHash
self.orgId = orgId
self.pipelines = pipelines
self.updatedAt = updatedAt
self.updatedBy = updatedBy
self.version = version
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case config
case createdAt
case createdBy
case createdByName
case deployResult
case deploySequence
case deployStatus
case elementType
case history
case id
case lastHash
case orgId
case pipelines
case updatedAt
case updatedBy
case version
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(config, forKey: .config)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(createdBy, forKey: .createdBy)
try container.encodeIfPresent(createdByName, forKey: .createdByName)
try container.encodeIfPresent(deployResult, forKey: .deployResult)
try container.encodeIfPresent(deploySequence, forKey: .deploySequence)
try container.encodeIfPresent(deployStatus, forKey: .deployStatus)
try container.encodeIfPresent(elementType, forKey: .elementType)
try container.encodeIfPresent(history, forKey: .history)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(lastHash, forKey: .lastHash)
try container.encodeIfPresent(orgId, forKey: .orgId)
try container.encodeIfPresent(pipelines, forKey: .pipelines)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
try container.encodeIfPresent(updatedBy, forKey: .updatedBy)
try container.encodeIfPresent(version, forKey: .version)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension O11yO11yLogPipelines: Identifiable {}