Regeneration

This commit is contained in:
Luke Hagar
2024-04-11 11:10:38 -05:00
parent 5c1a849e2e
commit d4c7b32e80
502 changed files with 25175 additions and 22 deletions

View File

@@ -0,0 +1,38 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
/// The protocol to use when connecting to your plex server.
public enum ServerProtocol: String, Codable, APIValue {
case http = "http"
case https = "https"
}
enum GlobalServers: Servers, ServerConvertible {
/// Supported server value with substituted variables
///
/// Corresponds to `{protocol}://{ip}:{port}`
case server1(`protocol`: ServerProtocol = .http, ip: String = "10.10.10.47", port: String = "32400")
/// Defines the raw URL strings for each server option.
///
/// > Note: You do not need to use these values directly.
///
/// The available URL strings are defined as:
/// ```swift
/// public static let urlStrings = [
/// "{protocol}://{ip}:{port}"
/// ]
/// ```
public static let urlStrings = [
"{protocol}://{ip}:{port}"
]
func server() throws -> Server {
switch self {
case .server1(let `protocol`, let ip, let port):
return try type(of: self).server(at: 0, substituting: ["protocol": `protocol`.rawValue, "ip": ip, "port": port])
}
}
}