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

89 lines
3.3 KiB
Swift

//
// O11yO11yLogPipeline.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yLogPipeline: Sendable, Codable, ParameterConvertible, Hashable {
/** Alias is the pipeline's short name. */
public var alias: String?
/** Config is the pipeline's processors, in order. */
public var config: [O11yO11yLogPipelineOperator]?
/** CreatedAt is when the pipeline was created. */
public var createdAt: Date?
/** CreatedBy is the id of who created the pipeline. */
public var createdBy: String?
/** Description says what the pipeline is for. */
public var description: String?
/** Enabled says whether the pipeline is on. */
public var enabled: Bool?
/** Filter selects which records the pipeline processes. */
public var filter: O11yO11yLogFilter?
/** ID is the pipeline's id. */
public var id: String?
/** Name is the pipeline's display name. */
public var name: String?
/** OrderID is the pipeline's 1-based position in the set. */
public var orderId: Int64?
/** UpdatedAt is when the pipeline last changed. */
public var updatedAt: Date?
/** UpdatedBy is the id of who last changed it. */
public var updatedBy: String?
public init(alias: String? = nil, config: [O11yO11yLogPipelineOperator]? = nil, createdAt: Date? = nil, createdBy: String? = nil, description: String? = nil, enabled: Bool? = nil, filter: O11yO11yLogFilter? = nil, id: String? = nil, name: String? = nil, orderId: Int64? = nil, updatedAt: Date? = nil, updatedBy: String? = nil) {
self.alias = alias
self.config = config
self.createdAt = createdAt
self.createdBy = createdBy
self.description = description
self.enabled = enabled
self.filter = filter
self.id = id
self.name = name
self.orderId = orderId
self.updatedAt = updatedAt
self.updatedBy = updatedBy
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case alias
case config
case createdAt
case createdBy
case description
case enabled
case filter
case id
case name
case orderId
case updatedAt
case updatedBy
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(alias, forKey: .alias)
try container.encodeIfPresent(config, forKey: .config)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(createdBy, forKey: .createdBy)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(enabled, forKey: .enabled)
try container.encodeIfPresent(filter, forKey: .filter)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(orderId, forKey: .orderId)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
try container.encodeIfPresent(updatedBy, forKey: .updatedBy)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension O11yO11yLogPipeline: Identifiable {}