Files
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

65 lines
2.0 KiB
Swift

//
// AlertPatch.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct AlertPatch: Sendable, Codable, ParameterConvertible, Hashable {
public var enforce: Bool?
public var id: String?
public var project: String?
public var rateLimitRpm: Int64?
public var service: String?
public var softPct: Int64?
public var subject: String?
public var threshold: Int64?
public var title: String?
public init(enforce: Bool? = nil, id: String? = nil, project: String? = nil, rateLimitRpm: Int64? = nil, service: String? = nil, softPct: Int64? = nil, subject: String? = nil, threshold: Int64? = nil, title: String? = nil) {
self.enforce = enforce
self.id = id
self.project = project
self.rateLimitRpm = rateLimitRpm
self.service = service
self.softPct = softPct
self.subject = subject
self.threshold = threshold
self.title = title
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case enforce
case id
case project
case rateLimitRpm
case service
case softPct
case subject
case threshold
case title
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(enforce, forKey: .enforce)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(project, forKey: .project)
try container.encodeIfPresent(rateLimitRpm, forKey: .rateLimitRpm)
try container.encodeIfPresent(service, forKey: .service)
try container.encodeIfPresent(softPct, forKey: .softPct)
try container.encodeIfPresent(subject, forKey: .subject)
try container.encodeIfPresent(threshold, forKey: .threshold)
try container.encodeIfPresent(title, forKey: .title)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension AlertPatch: Identifiable {}