mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
58 lines
1.8 KiB
Swift
58 lines
1.8 KiB
Swift
//
|
|
// CampaignUpdate.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct CampaignUpdate: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var audience: String?
|
|
public var budget: Int64?
|
|
public var channels: [ChannelSpec]?
|
|
public var content: [String]?
|
|
/** ID is the campaign to update, from the path. */
|
|
public var id: String?
|
|
public var name: String?
|
|
public var scheduleAt: Int64?
|
|
|
|
public init(audience: String? = nil, budget: Int64? = nil, channels: [ChannelSpec]? = nil, content: [String]? = nil, id: String? = nil, name: String? = nil, scheduleAt: Int64? = nil) {
|
|
self.audience = audience
|
|
self.budget = budget
|
|
self.channels = channels
|
|
self.content = content
|
|
self.id = id
|
|
self.name = name
|
|
self.scheduleAt = scheduleAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case audience
|
|
case budget
|
|
case channels
|
|
case content
|
|
case id
|
|
case name
|
|
case scheduleAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(audience, forKey: .audience)
|
|
try container.encodeIfPresent(budget, forKey: .budget)
|
|
try container.encodeIfPresent(channels, forKey: .channels)
|
|
try container.encodeIfPresent(content, forKey: .content)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(scheduleAt, forKey: .scheduleAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension CampaignUpdate: Identifiable {}
|