mirror of
https://github.com/LukeHagar/plexswift.git
synced 2025-12-06 20:57:46 +00:00
24 lines
878 B
Swift
24 lines
878 B
Swift
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
|
|
import Foundation
|
|
|
|
extension Operations.GetMediaProvidersRequest: Serializable {
|
|
func serialize(with format: SerializableFormat) throws -> String {
|
|
switch format {
|
|
case .header:
|
|
return serializeModel(with: try serializedHeaderParameters(), format: format)
|
|
case .path, .query, .multipart, .form:
|
|
throw SerializationError.invalidSerializationParameter(type: "Operations.GetMediaProvidersRequest", format: format.formatDescription)
|
|
}
|
|
}
|
|
}
|
|
|
|
extension Operations.GetMediaProvidersRequest: HeaderParameterSerializable {
|
|
func serializedHeaderParameters() throws -> [SerializedParameter] {
|
|
return [
|
|
SerializedParameter(name: "X-Plex-Token", serialized: try xPlexToken.serialize(with: .header(explode: false)))
|
|
]
|
|
}
|
|
}
|