Files
plexswift/Sources/Plexswift/configuration/GlobalParameters.swift

38 lines
1.1 KiB
Swift

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
/// Describes common parameters which can be used when making API requests.
///
/// > Note: These parameters may be overridden by individual API operations
public struct GlobalParameters {
public let xPlexClientIdentifier: String?
/// Creates an object with the given parameters
///
/// - Parameter xPlexClientIdentifier: The unique identifier for the client application
/// This is used to track the client application and its usage
/// (UUID, serial number, or other number unique per device)
///
///
public init(
xPlexClientIdentifier: String? = nil
) {
self.xPlexClientIdentifier = xPlexClientIdentifier
}
}
extension GlobalParameters: ParameterDefaults {
public func defaultSerializedPathParameter(for key: String) throws -> String? {
switch key {
default: return nil
}
}
public func defaultQueryParameter(for key: String) -> AnyValue? {
switch key {
default: return nil
}
}
}