Files
plexswift/Sources/Plexswift/models/operations/GetSearchLibraryRequest.swift

39 lines
1.3 KiB
Swift

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
import Foundation
extension Operations {
/// A model object
public struct GetSearchLibraryRequest: APIValue {
/// The unique key of the Plex library.
/// Note: This is unique in the context of the Plex server.
///
public let sectionKey: Int
/// The type of media to retrieve.
/// 1 = movie
/// 2 = show
/// 3 = season
/// 4 = episode
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
///
public let type: Operations.GetSearchLibraryQueryParamType
/// Creates an object with the specified parameters
///
/// - Parameter sectionKey: The unique key of the Plex library.
/// Note: This is unique in the context of the Plex server.
///
/// - Parameter type: The type of media to retrieve.
/// 1 = movie
/// 2 = show
/// 3 = season
/// 4 = episode
/// E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
///
///
public init(sectionKey: Int, type: Operations.GetSearchLibraryQueryParamType) {
self.sectionKey = sectionKey
self.type = type
}
}}