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.
46 lines
1.4 KiB
Swift
46 lines
1.4 KiB
Swift
//
|
|
// SeoRankIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct SeoRankIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Domain is the site, with or without a subdomain — \"hanzo.ai\", \"docs.hanzo.ai\". */
|
|
public var domain: String?
|
|
/** Language is the ISO code. Defaults to \"en\". */
|
|
public var language: String?
|
|
/** Limit is how many placements to return, 1 to 1000. Defaults to 100. */
|
|
public var limit: Int64?
|
|
/** Location is the market, as the upstream's numeric code. Defaults to 2840. */
|
|
public var location: Int64?
|
|
|
|
public init(domain: String? = nil, language: String? = nil, limit: Int64? = nil, location: Int64? = nil) {
|
|
self.domain = domain
|
|
self.language = language
|
|
self.limit = limit
|
|
self.location = location
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case domain
|
|
case language
|
|
case limit
|
|
case location
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(domain, forKey: .domain)
|
|
try container.encodeIfPresent(language, forKey: .language)
|
|
try container.encodeIfPresent(limit, forKey: .limit)
|
|
try container.encodeIfPresent(location, forKey: .location)
|
|
}
|
|
}
|
|
|