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

51 lines
1.8 KiB
Swift

//
// O11yO11yFunnelStepsUpdateIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yFunnelStepsUpdateIn: Sendable, Codable, ParameterConvertible, Hashable {
/** Description replaces the funnel's description. Empty leaves it as it was. */
public var description: String?
/** FunnelID is the funnel to update. */
public var funnelId: String?
/** Name replaces the funnel's name. Empty leaves it as it was. */
public var funnelName: String?
/** Steps are the funnel's steps, in order. At least two are needed before any analytics read will answer. */
public var steps: [O11yFunnelStep]?
/** Timestamp is when the change was made, as a millisecond epoch. */
public var timestamp: Int64?
public init(description: String? = nil, funnelId: String? = nil, funnelName: String? = nil, steps: [O11yFunnelStep]? = nil, timestamp: Int64? = nil) {
self.description = description
self.funnelId = funnelId
self.funnelName = funnelName
self.steps = steps
self.timestamp = timestamp
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case description
case funnelId = "funnel_id"
case funnelName = "funnel_name"
case steps
case timestamp
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(funnelId, forKey: .funnelId)
try container.encodeIfPresent(funnelName, forKey: .funnelName)
try container.encodeIfPresent(steps, forKey: .steps)
try container.encodeIfPresent(timestamp, forKey: .timestamp)
}
}