ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.406.0

This commit is contained in:
speakeasybot
2024-10-03 00:09:11 +00:00
parent 1506db4d6b
commit 66f5103cac
94 changed files with 2378 additions and 737 deletions

View File

@@ -9,25 +9,29 @@ public struct GlobalParameters {
public let clientID: String?
public let clientName: String?
public let clientVersion: String?
public let clientPlatform: String?
public let deviceName: String?
public let platform: String?
public let deviceNickname: String?
/// Creates an object with the given parameters
///
/// - Parameter clientID: 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)
/// - Parameter clientID: An opaque identifier unique to the client (UUID, serial number, or other unique device ID)
/// - Parameter clientName: The name of the client application. (Plex Web, Plex Media Server, etc.)
/// - Parameter clientVersion: The version of the client application.
/// - Parameter deviceNickname: A relatively friendly name for the client device
/// - Parameter platform: The platform of the client application.
///
public init(
clientID: String? = nil,
clientName: String? = nil,
clientVersion: String? = nil,
clientPlatform: String? = nil,
deviceName: String? = nil
platform: String? = nil,
deviceNickname: String? = nil
) {
self.clientID = clientID
self.clientName = clientName
self.clientVersion = clientVersion
self.clientPlatform = clientPlatform
self.deviceName = deviceName
self.platform = platform
self.deviceNickname = deviceNickname
}
}
@@ -40,11 +44,6 @@ extension GlobalParameters: ParameterDefaults {
public func defaultQueryParameter(for key: String) -> AnyValue? {
switch key {
case "ClientID": return clientID.map { AnyValue($0) }
case "ClientName": return clientName.map { AnyValue($0) }
case "ClientVersion": return clientVersion.map { AnyValue($0) }
case "ClientPlatform": return clientPlatform.map { AnyValue($0) }
case "DeviceName": return deviceName.map { AnyValue($0) }
default: return nil
}
}