mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
* `PlexApi.Butler.StartTask()`: * `request` **Changed** **Breaking** ⚠️ * `error` **Changed** **Breaking** ⚠️ * `PlexApi.Butler.StopTask()`: * `request` **Changed** **Breaking** ⚠️ * `error` **Changed** **Breaking** ⚠️ * `PlexApi.Updater.ApplyUpdates()`: * `request` **Changed** **Breaking** ⚠️ * `error` **Changed** **Breaking** ⚠️ * `PlexApi.General.GetServerInfo()`: **Added** * `PlexApi.General.GetIdentity()`: **Added** * `PlexApi.General.GetSourceConnectionInformation()`: **Added** * `PlexApi.General.GetTransientToken()`: **Added** * `PlexApi.Events.GetNotifications()`: **Added** * `PlexApi.Events.ConnectWebSocket()`: **Added** * `PlexApi.Preferences.GetAllPreferences()`: **Added** * `PlexApi.Preferences.SetPreferences()`: **Added** * `PlexApi.Preferences.GetPreference()`: **Added** * `PlexApi.Rate.SetRating()`: **Added** * `PlexApi.Timeline.MarkPlayed()`: **Added** * `PlexApi.Timeline.Report()`: **Added** * `PlexApi.Timeline.Unscrobble()`: **Added** * `PlexApi.Activities.ListActivities()`: **Added** * `PlexApi.Activities.CancelActivity()`: **Added** * `PlexApi.Butler.StopTasks()`: **Added** * `PlexApi.Butler.GetTasks()`: **Added** * `PlexApi.Butler.StartTasks()`: **Added** * `PlexApi.DownloadQueue.CreateDownloadQueue()`: **Added** * `PlexApi.DownloadQueue.GetDownloadQueue()`: **Added** * `PlexApi.DownloadQueue.AddDownloadQueueItems()`: **Added** * `PlexApi.DownloadQueue.ListDownloadQueueItems()`: **Added** * `PlexApi.DownloadQueue.GetItemDecision()`: **Added** * `PlexApi.DownloadQueue.GetDownloadQueueMedia()`: **Added** * `PlexApi.DownloadQueue.RemoveDownloadQueueItems()`: **Added** * `PlexApi.DownloadQueue.GetDownloadQueueItems()`: **Added** * `PlexApi.DownloadQueue.RestartProcessingDownloadQueueItems()`: **Added** * `PlexApi.Hubs.GetAllHubs()`: **Added** * `PlexApi.Hubs.GetContinueWatching()`: **Added** * `PlexApi.Hubs.GetHubItems()`: **Added** * `PlexApi.Hubs.GetPromotedHubs()`: **Added** * `PlexApi.Hubs.GetMetadataHubs()`: **Added** * `PlexApi.Hubs.GetPostplayHubs()`: **Added** * `PlexApi.Hubs.GetRelatedHubs()`: **Added** * `PlexApi.Hubs.GetSectionHubs()`: **Added** * `PlexApi.Hubs.ResetSectionDefaults()`: **Added** * `PlexApi.Hubs.ListHubs()`: **Added** * `PlexApi.Hubs.CreateCustomHub()`: **Added** * `PlexApi.Hubs.MoveHub()`: **Added** * `PlexApi.Hubs.DeleteCustomHub()`: **Added** * `PlexApi.Hubs.UpdateHubVisibility()`: **Added** * `PlexApi.Search.SearchHubs()`: **Added** * `PlexApi.Search.VoiceSearchHubs()`: **Added** * `PlexApi.Library.GetLibraryItems()`: **Added** * `PlexApi.Library.DeleteCaches()`: **Added** * `PlexApi.Library.CleanBundles()`: **Added** * `PlexApi.Library.IngestTransientItem()`: **Added** * `PlexApi.Library.GetLibraryMatches()`: **Added** * `PlexApi.Library.OptimizeDatabase()`: **Added** * `PlexApi.Library.GetRandomArtwork()`: **Added** * `PlexApi.Library.GetSections()`: **Added** * `PlexApi.Library.AddSection()`: **Added** * `PlexApi.Library.StopAllRefreshes()`: **Added** * `PlexApi.Library.GetSectionsPrefs()`: **Added** * `PlexApi.Library.RefreshSectionsMetadata()`: **Added** * `PlexApi.Library.GetTags()`: **Added** * `PlexApi.Library.DeleteMetadataItem()`: **Added** * `PlexApi.Library.EditMetadataItem()`: **Added** * `PlexApi.Library.DetectAds()`: **Added** * `PlexApi.Library.GetAllItemLeaves()`: **Added** * `PlexApi.Library.AnalyzeMetadata()`: **Added** * `PlexApi.Library.GenerateThumbs()`: **Added** * `PlexApi.Library.DetectCredits()`: **Added** * `PlexApi.Library.GetExtras()`: **Added** * `PlexApi.Library.AddExtras()`: **Added** * `PlexApi.Library.GetFile()`: **Added** * `PlexApi.Library.StartBifGeneration()`: **Added** * `PlexApi.Library.DetectIntros()`: **Added** * `PlexApi.Library.CreateMarker()`: **Added** * `PlexApi.Library.MatchItem()`: **Added** * `PlexApi.Library.ListMatches()`: **Added** * `PlexApi.Library.MergeItems()`: **Added** * `PlexApi.Library.ListSonicallySimilar()`: **Added** * `PlexApi.Library.SetItemPreferences()`: **Added** * `PlexApi.Library.RefreshItemsMetadata()`: **Added** * `PlexApi.Library.GetRelatedItems()`: **Added** * `PlexApi.Library.ListSimilar()`: **Added** * `PlexApi.Library.SplitItem()`: **Added** * `PlexApi.Library.AddSubtitles()`: **Added** * `PlexApi.Library.GetItemTree()`: **Added** * `PlexApi.Library.Unmatch()`: **Added** * `PlexApi.Library.ListTopUsers()`: **Added** * `PlexApi.Library.DetectVoiceActivity()`: **Added** * `PlexApi.Library.GetAugmentationStatus()`: **Added** * `PlexApi.Library.SetStreamSelection()`: **Added** * `PlexApi.Library.GetPerson()`: **Added** * `PlexApi.Library.ListPersonMedia()`: **Added** * `PlexApi.Library.DeleteLibrarySection()`: **Added** * `PlexApi.Library.GetLibraryDetails()`: **Added** * `PlexApi.Library.EditSection()`: **Added** * `PlexApi.Library.UpdateItems()`: **Added** * `PlexApi.Library.StartAnalysis()`: **Added** * `PlexApi.Library.Autocomplete()`: **Added** * `PlexApi.Library.GetCollections()`: **Added** * `PlexApi.Library.GetCommon()`: **Added** * `PlexApi.Library.EmptyTrash()`: **Added** * `PlexApi.Library.GetSectionFilters()`: **Added** * `PlexApi.Library.GetFirstCharacters()`: **Added** * `PlexApi.Library.DeleteIndexes()`: **Added** * `PlexApi.Library.DeleteIntros()`: **Added** * `PlexApi.Library.GetSectionPreferences()`: **Added** * `PlexApi.Library.SetSectionPreferences()`: **Added** * `PlexApi.Library.CancelRefresh()`: **Added** * `PlexApi.Library.RefreshSection()`: **Added** * `PlexApi.Library.GetAvailableSorts()`: **Added** * `PlexApi.Library.GetStreamLevels()`: **Added** * `PlexApi.Library.GetStreamLoudness()`: **Added** * `PlexApi.Library.GetChapterImage()`: **Added** * `PlexApi.Library.SetItemArtwork()`: **Added** * `PlexApi.Library.UpdateItemArtwork()`: **Added** * `PlexApi.Library.DeleteMarker()`: **Added** * `PlexApi.Library.EditMarker()`: **Added** * `PlexApi.Library.DeleteMediaItem()`: **Added** * `PlexApi.Library.GetPartIndex()`: **Added** * `PlexApi.Library.DeleteCollection()`: **Added** * `PlexApi.Library.GetSectionImage()`: **Added** * `PlexApi.Library.DeleteStream()`: **Added** * `PlexApi.Library.GetStream()`: **Added** * `PlexApi.Library.SetStreamOffset()`: **Added** * `PlexApi.Library.GetItemArtwork()`: **Added** * `PlexApi.Library.GetMediaPart()`: **Added** * `PlexApi.Library.GetImageFromBif()`: **Added** * `PlexApi.Collections.CreateCollection()`: **Added** * `PlexApi.DvRs.ListDvRs()`: **Added** * `PlexApi.DvRs.CreateDvr()`: **Added** * `PlexApi.DvRs.DeleteDvr()`: **Added** * `PlexApi.DvRs.GetDvr()`: **Added** * `PlexApi.DvRs.DeleteLineup()`: **Added** * `PlexApi.DvRs.AddLineup()`: **Added** * `PlexApi.DvRs.SetDvrPreferences()`: **Added** * `PlexApi.DvRs.StopDvrReload()`: **Added** * `PlexApi.DvRs.ReloadGuide()`: **Added** * `PlexApi.DvRs.TuneChannel()`: **Added** * `PlexApi.DvRs.RemoveDeviceFromDvr()`: **Added** * `PlexApi.DvRs.AddDeviceToDvr()`: **Added** * `PlexApi.Epg.ComputeChannelMap()`: **Added** * `PlexApi.Epg.GetChannels()`: **Added** * `PlexApi.Epg.GetCountries()`: **Added** * `PlexApi.Epg.GetAllLanguages()`: **Added** * `PlexApi.Epg.GetLineup()`: **Added** * `PlexApi.Epg.GetLineupChannels()`: **Added** * `PlexApi.Epg.GetCountriesLineups()`: **Added** * `PlexApi.Epg.GetCountryRegions()`: **Added** * `PlexApi.Epg.ListLineups()`: **Added** * `PlexApi.LiveTv.GetSessions()`: **Added** * `PlexApi.LiveTv.GetLiveTvSession()`: **Added** * `PlexApi.LiveTv.GetSessionPlaylistIndex()`: **Added** * `PlexApi.LiveTv.GetSessionSegment()`: **Added** * `PlexApi.Log.WriteLog()`: **Added** * `PlexApi.Log.WriteMessage()`: **Added** * `PlexApi.Log.EnablePapertrail()`: **Added** * `PlexApi.Devices.GetAvailableGrabbers()`: **Added** * `PlexApi.Devices.ListDevices()`: **Added** * `PlexApi.Devices.AddDevice()`: **Added** * `PlexApi.Devices.DiscoverDevices()`: **Added** * `PlexApi.Devices.RemoveDevice()`: **Added** * `PlexApi.Devices.GetDeviceDetails()`: **Added** * `PlexApi.Devices.ModifyDevice()`: **Added** * `PlexApi.Devices.SetChannelmap()`: **Added** * `PlexApi.Devices.GetDevicesChannels()`: **Added** * `PlexApi.Devices.SetDevicePreferences()`: **Added** * `PlexApi.Devices.StopScan()`: **Added** * `PlexApi.Devices.Scan()`: **Added** * `PlexApi.Devices.GetThumb()`: **Added** * `PlexApi.Provider.ListProviders()`: **Added** * `PlexApi.Provider.AddProvider()`: **Added** * `PlexApi.Provider.RefreshProviders()`: **Added** * `PlexApi.Provider.DeleteMediaProvider()`: **Added** * `PlexApi.Subscriptions.GetAllSubscriptions()`: **Added** * `PlexApi.Subscriptions.CreateSubscription()`: **Added** * `PlexApi.Subscriptions.ProcessSubscriptions()`: **Added** * `PlexApi.Subscriptions.GetScheduledRecordings()`: **Added** * `PlexApi.Subscriptions.GetTemplate()`: **Added** * `PlexApi.Subscriptions.CancelGrab()`: **Added** * `PlexApi.Subscriptions.DeleteSubscription()`: **Added** * `PlexApi.Subscriptions.GetSubscription()`: **Added** * `PlexApi.Subscriptions.EditSubscriptionPreferences()`: **Added** * `PlexApi.Subscriptions.ReorderSubscription()`: **Added** * `PlexApi.Transcoder.TranscodeImage()`: **Added** * `PlexApi.Transcoder.MakeDecision()`: **Added** * `PlexApi.Transcoder.TriggerFallback()`: **Added** * `PlexApi.Transcoder.TranscodeSubtitles()`: **Added** * `PlexApi.Transcoder.StartTranscodeSession()`: **Added** * `PlexApi.Playlist.ListPlaylists()`: **Added** * `PlexApi.Playlist.GetPlaylist()`: **Added** * `PlexApi.Playlist.GetPlaylistItems()`: **Added** * `PlexApi.LibraryPlaylists.CreatePlaylist()`: **Added** * `PlexApi.LibraryPlaylists.UploadPlaylist()`: **Added** * `PlexApi.LibraryPlaylists.DeletePlaylist()`: **Added** * `PlexApi.LibraryPlaylists.UpdatePlaylist()`: **Added** * `PlexApi.LibraryPlaylists.GetPlaylistGenerators()`: **Added** * `PlexApi.LibraryPlaylists.ClearPlaylistItems()`: **Added** * `PlexApi.LibraryPlaylists.AddPlaylistItems()`: **Added** * `PlexApi.LibraryPlaylists.DeletePlaylistItem()`: **Added** * `PlexApi.LibraryPlaylists.GetPlaylistGenerator()`: **Added** * `PlexApi.LibraryPlaylists.ModifyPlaylistGenerator()`: **Added** * `PlexApi.LibraryPlaylists.GetPlaylistGeneratorItems()`: **Added** * `PlexApi.LibraryPlaylists.MovePlaylistItem()`: **Added** * `PlexApi.LibraryPlaylists.RefreshPlaylist()`: **Added** * `PlexApi.PlayQueue.CreatePlayQueue()`: **Added** * `PlexApi.PlayQueue.GetPlayQueue()`: **Added** * `PlexApi.PlayQueue.AddToPlayQueue()`: **Added** * `PlexApi.PlayQueue.ClearPlayQueue()`: **Added** * `PlexApi.PlayQueue.ResetPlayQueue()`: **Added** * `PlexApi.PlayQueue.Shuffle()`: **Added** * `PlexApi.PlayQueue.Unshuffle()`: **Added** * `PlexApi.PlayQueue.DeletePlayQueueItem()`: **Added** * `PlexApi.PlayQueue.MovePlayQueueItem()`: **Added** * `PlexApi.UltraBlur.GetColors()`: **Added** * `PlexApi.UltraBlur.GetImage()`: **Added** * `PlexApi.Status.ListSessions()`: **Added** * `PlexApi.Status.GetBackgroundTasks()`: **Added** * `PlexApi.Status.ListPlaybackHistory()`: **Added** * `PlexApi.Status.TerminateSession()`: **Added** * `PlexApi.Status.DeleteHistory()`: **Added** * `PlexApi.Status.GetHistoryItem()`: **Added** * `PlexApi.Updater.CheckUpdates()`: **Added** * `PlexApi.Updater.GetUpdatesStatus()`: **Added** * `PlexApi.Content.GetCollectionItems()`: **Added** * `PlexApi.Content.GetMetadataItem()`: **Added** * `PlexApi.Content.GetAlbums()`: **Added** * `PlexApi.Content.ListContent()`: **Added** * `PlexApi.Content.GetAllLeaves()`: **Added** * `PlexApi.Content.GetArts()`: **Added** * `PlexApi.Content.GetCategories()`: **Added** * `PlexApi.Content.GetCluster()`: **Added** * `PlexApi.Content.GetSonicPath()`: **Added** * `PlexApi.Content.GetFolders()`: **Added** * `PlexApi.Content.ListMoments()`: **Added** * `PlexApi.Content.GetSonicallySimilar()`: **Added** * `PlexApi.Content.GetCollectionImage()`: **Added** * `PlexApi.LibraryCollections.AddCollectionItems()`: **Added** * `PlexApi.LibraryCollections.DeleteCollectionItem()`: **Added** * `PlexApi.LibraryCollections.MoveCollectionItem()`: **Added** * `PlexApi.Server.GetServerCapabilities()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Server.GetServerPreferences()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Server.GetAvailableClients()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Server.GetDevices()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Server.Get-Server-Identity()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Server.GetMyPlexAccount()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Server.GetResizedPhoto()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Server.Get-Media-Providers()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Server.GetServerList()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Media.MarkPlayed()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Media.MarkUnplayed()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Media.UpdatePlayProgress()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Media.Get-Banner-Image()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Media.Get-Thumb-Image()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Video.GetTimeline()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Video.StartUniversalTranscode()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Activities.GetServerActivities()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Activities.CancelServerActivities()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Butler.GetButlerTasks()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Butler.StartAllTasks()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Butler.StopAllTasks()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Plex.GetCompanionsData()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Plex.GetUserFriends()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Plex.GetGeoData()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Plex.GetHomeData()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Plex.Get-Server-Resources()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Plex.GetPin()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Plex.GetTokenByPinId()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Hubs.GetGlobalHubs()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Hubs.Get-Recently-Added()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Hubs.GetLibraryHubs()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Search.PerformSearch()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Search.PerformVoiceSearch()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Search.GetSearchResults()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.GetFileHash()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Recently-Added-Library()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-All-Libraries()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Library-Details()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.DeleteLibrary()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Library-Items()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Library-Sections-All()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Refresh-Library-Metadata()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Search-Library()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Genres-Library()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Countries-Library()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Actors-Library()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Search-All-Libraries()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Media-Meta-Data()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Media-Arts()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Post-Media-Arts()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Get-Media-Posters()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.Post-Media-Poster()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.GetMetadataChildren()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Library.GetTopWatchedContent()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Watchlist.Get-Watch-List()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Log.LogLine()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Log.LogMultiLine()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Log.EnablePaperTrail()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Playlists.CreatePlaylist()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Playlists.GetPlaylists()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Playlists.GetPlaylist()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Playlists.DeletePlaylist()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Playlists.UpdatePlaylist()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Playlists.GetPlaylistContents()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Playlists.ClearPlaylistContents()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Playlists.AddPlaylistContents()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Playlists.UploadPlaylist()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Authentication.GetTransientToken()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Authentication.GetSourceConnectionInformation()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Authentication.GetTokenDetails()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Authentication.Post-Users-Sign-In-Data()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Statistics.GetStatistics()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Statistics.GetResourcesStatistics()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Statistics.GetBandwidthStatistics()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Sessions.GetSessions()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Sessions.GetSessionHistory()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Sessions.GetTranscodeSessions()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Sessions.StopTranscodeSession()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Updater.GetUpdateStatus()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Updater.CheckForUpdates()`: **Deleted** **Breaking** ⚠️ * `PlexApi.Users.Get-Users()`: **Deleted** **Breaking** ⚠️
874 lines
22 KiB
Go
874 lines
22 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
"github.com/LukeHagar/plexgo/internal/utils"
|
|
"github.com/LukeHagar/plexgo/models/components"
|
|
"net/http"
|
|
)
|
|
|
|
type GetPlaylistGeneratorGlobals struct {
|
|
// Indicates the client accepts the indicated media types
|
|
Accepts *components.Accepts `default:"application/xml" header:"style=simple,explode=false,name=accepts"`
|
|
// An opaque identifier unique to the client
|
|
ClientIdentifier *string `header:"style=simple,explode=false,name=X-Plex-Client-Identifier"`
|
|
// The name of the client product
|
|
Product *string `header:"style=simple,explode=false,name=X-Plex-Product"`
|
|
// The version of the client application
|
|
Version *string `header:"style=simple,explode=false,name=X-Plex-Version"`
|
|
// The platform of the client
|
|
Platform *string `header:"style=simple,explode=false,name=X-Plex-Platform"`
|
|
// The version of the platform
|
|
PlatformVersion *string `header:"style=simple,explode=false,name=X-Plex-Platform-Version"`
|
|
// A relatively friendly name for the client device
|
|
Device *string `header:"style=simple,explode=false,name=X-Plex-Device"`
|
|
// A potentially less friendly identifier for the device model
|
|
Model *string `header:"style=simple,explode=false,name=X-Plex-Model"`
|
|
// The device vendor
|
|
DeviceVendor *string `header:"style=simple,explode=false,name=X-Plex-Device-Vendor"`
|
|
// A friendly name for the client
|
|
DeviceName *string `header:"style=simple,explode=false,name=X-Plex-Device-Name"`
|
|
// The marketplace on which the client application is distributed
|
|
Marketplace *string `header:"style=simple,explode=false,name=X-Plex-Marketplace"`
|
|
}
|
|
|
|
func (g GetPlaylistGeneratorGlobals) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(g, "", false)
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetAccepts() *components.Accepts {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Accepts
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetClientIdentifier() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.ClientIdentifier
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetProduct() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Product
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetVersion() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Version
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetPlatform() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Platform
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetPlatformVersion() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.PlatformVersion
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetDevice() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Device
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetModel() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Model
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetDeviceVendor() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.DeviceVendor
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetDeviceName() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.DeviceName
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorGlobals) GetMarketplace() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Marketplace
|
|
}
|
|
|
|
type GetPlaylistGeneratorRequest struct {
|
|
// Indicates the client accepts the indicated media types
|
|
Accepts *components.Accepts `default:"application/xml" header:"style=simple,explode=false,name=accepts"`
|
|
// An opaque identifier unique to the client
|
|
ClientIdentifier *string `header:"style=simple,explode=false,name=X-Plex-Client-Identifier"`
|
|
// The name of the client product
|
|
Product *string `header:"style=simple,explode=false,name=X-Plex-Product"`
|
|
// The version of the client application
|
|
Version *string `header:"style=simple,explode=false,name=X-Plex-Version"`
|
|
// The platform of the client
|
|
Platform *string `header:"style=simple,explode=false,name=X-Plex-Platform"`
|
|
// The version of the platform
|
|
PlatformVersion *string `header:"style=simple,explode=false,name=X-Plex-Platform-Version"`
|
|
// A relatively friendly name for the client device
|
|
Device *string `header:"style=simple,explode=false,name=X-Plex-Device"`
|
|
// A potentially less friendly identifier for the device model
|
|
Model *string `header:"style=simple,explode=false,name=X-Plex-Model"`
|
|
// The device vendor
|
|
DeviceVendor *string `header:"style=simple,explode=false,name=X-Plex-Device-Vendor"`
|
|
// A friendly name for the client
|
|
DeviceName *string `header:"style=simple,explode=false,name=X-Plex-Device-Name"`
|
|
// The marketplace on which the client application is distributed
|
|
Marketplace *string `header:"style=simple,explode=false,name=X-Plex-Marketplace"`
|
|
// The ID of the playlist
|
|
PlaylistID int64 `pathParam:"style=simple,explode=false,name=playlistId"`
|
|
// The generator item ID to delete.
|
|
GeneratorID int64 `pathParam:"style=simple,explode=false,name=generatorId"`
|
|
}
|
|
|
|
func (g GetPlaylistGeneratorRequest) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(g, "", false)
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &g, "", false, []string{"playlistId", "generatorId"}); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetAccepts() *components.Accepts {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Accepts
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetClientIdentifier() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.ClientIdentifier
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetProduct() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Product
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetVersion() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Version
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetPlatform() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Platform
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetPlatformVersion() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.PlatformVersion
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetDevice() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Device
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetModel() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Model
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetDeviceVendor() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.DeviceVendor
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetDeviceName() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.DeviceName
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetMarketplace() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Marketplace
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetPlaylistID() int64 {
|
|
if g == nil {
|
|
return 0
|
|
}
|
|
return g.PlaylistID
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorRequest) GetGeneratorID() int64 {
|
|
if g == nil {
|
|
return 0
|
|
}
|
|
return g.GeneratorID
|
|
}
|
|
|
|
type GetPlaylistGeneratorDevice struct {
|
|
Profile *string `json:"profile,omitempty"`
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorDevice) GetProfile() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Profile
|
|
}
|
|
|
|
type GetPlaylistGeneratorLocation struct {
|
|
LibrarySectionID *int64 `json:"librarySectionID,omitempty"`
|
|
URI *string `json:"uri,omitempty"`
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorLocation) GetLibrarySectionID() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.LibrarySectionID
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorLocation) GetURI() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.URI
|
|
}
|
|
|
|
type AdvancedSubtitles string
|
|
|
|
const (
|
|
AdvancedSubtitlesAuto AdvancedSubtitles = "auto"
|
|
AdvancedSubtitlesBurn AdvancedSubtitles = "burn"
|
|
AdvancedSubtitlesNone AdvancedSubtitles = "none"
|
|
AdvancedSubtitlesSidecar AdvancedSubtitles = "sidecar"
|
|
AdvancedSubtitlesEmbedded AdvancedSubtitles = "embedded"
|
|
AdvancedSubtitlesSegmented AdvancedSubtitles = "segmented"
|
|
)
|
|
|
|
func (e AdvancedSubtitles) ToPointer() *AdvancedSubtitles {
|
|
return &e
|
|
}
|
|
func (e *AdvancedSubtitles) UnmarshalJSON(data []byte) error {
|
|
var v string
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case "auto":
|
|
fallthrough
|
|
case "burn":
|
|
fallthrough
|
|
case "none":
|
|
fallthrough
|
|
case "sidecar":
|
|
fallthrough
|
|
case "embedded":
|
|
fallthrough
|
|
case "segmented":
|
|
*e = AdvancedSubtitles(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for AdvancedSubtitles: %v", v)
|
|
}
|
|
}
|
|
|
|
type GetPlaylistGeneratorSubtitles string
|
|
|
|
const (
|
|
GetPlaylistGeneratorSubtitlesAuto GetPlaylistGeneratorSubtitles = "auto"
|
|
GetPlaylistGeneratorSubtitlesBurn GetPlaylistGeneratorSubtitles = "burn"
|
|
GetPlaylistGeneratorSubtitlesNone GetPlaylistGeneratorSubtitles = "none"
|
|
GetPlaylistGeneratorSubtitlesSidecar GetPlaylistGeneratorSubtitles = "sidecar"
|
|
GetPlaylistGeneratorSubtitlesEmbedded GetPlaylistGeneratorSubtitles = "embedded"
|
|
GetPlaylistGeneratorSubtitlesSegmented GetPlaylistGeneratorSubtitles = "segmented"
|
|
)
|
|
|
|
func (e GetPlaylistGeneratorSubtitles) ToPointer() *GetPlaylistGeneratorSubtitles {
|
|
return &e
|
|
}
|
|
func (e *GetPlaylistGeneratorSubtitles) UnmarshalJSON(data []byte) error {
|
|
var v string
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case "auto":
|
|
fallthrough
|
|
case "burn":
|
|
fallthrough
|
|
case "none":
|
|
fallthrough
|
|
case "sidecar":
|
|
fallthrough
|
|
case "embedded":
|
|
fallthrough
|
|
case "segmented":
|
|
*e = GetPlaylistGeneratorSubtitles(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for GetPlaylistGeneratorSubtitles: %v", v)
|
|
}
|
|
}
|
|
|
|
type MediaSettings struct {
|
|
AdvancedSubtitles *AdvancedSubtitles `json:"advancedSubtitles,omitempty"`
|
|
AudioBoost *int64 `json:"audioBoost,omitempty"`
|
|
AudioChannelCount *int64 `json:"audioChannelCount,omitempty"`
|
|
AutoAdjustQuality *bool `json:"autoAdjustQuality,omitempty"`
|
|
AutoAdjustSubtitle *bool `json:"autoAdjustSubtitle,omitempty"`
|
|
DirectPlay *bool `json:"directPlay,omitempty"`
|
|
DirectStream *bool `json:"directStream,omitempty"`
|
|
DirectStreamAudio *bool `json:"directStreamAudio,omitempty"`
|
|
DisableResolutionRotation *bool `json:"disableResolutionRotation,omitempty"`
|
|
MaxVideoBitrate *int64 `json:"maxVideoBitrate,omitempty"`
|
|
MusicBitrate *int64 `json:"musicBitrate,omitempty"`
|
|
PeakBitrate *int64 `json:"peakBitrate,omitempty"`
|
|
PhotoQuality *int64 `json:"photoQuality,omitempty"`
|
|
PhotoResolution *string `json:"photoResolution,omitempty"`
|
|
SecondsPerSegment *int64 `json:"secondsPerSegment,omitempty"`
|
|
Subtitles *GetPlaylistGeneratorSubtitles `json:"subtitles,omitempty"`
|
|
SubtitleSize *int64 `json:"subtitleSize,omitempty"`
|
|
VideoBitrate *int64 `json:"videoBitrate,omitempty"`
|
|
VideoQuality *int64 `json:"videoQuality,omitempty"`
|
|
VideoResolution *string `json:"videoResolution,omitempty"`
|
|
}
|
|
|
|
func (m *MediaSettings) GetAdvancedSubtitles() *AdvancedSubtitles {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.AdvancedSubtitles
|
|
}
|
|
|
|
func (m *MediaSettings) GetAudioBoost() *int64 {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.AudioBoost
|
|
}
|
|
|
|
func (m *MediaSettings) GetAudioChannelCount() *int64 {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.AudioChannelCount
|
|
}
|
|
|
|
func (m *MediaSettings) GetAutoAdjustQuality() *bool {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.AutoAdjustQuality
|
|
}
|
|
|
|
func (m *MediaSettings) GetAutoAdjustSubtitle() *bool {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.AutoAdjustSubtitle
|
|
}
|
|
|
|
func (m *MediaSettings) GetDirectPlay() *bool {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.DirectPlay
|
|
}
|
|
|
|
func (m *MediaSettings) GetDirectStream() *bool {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.DirectStream
|
|
}
|
|
|
|
func (m *MediaSettings) GetDirectStreamAudio() *bool {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.DirectStreamAudio
|
|
}
|
|
|
|
func (m *MediaSettings) GetDisableResolutionRotation() *bool {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.DisableResolutionRotation
|
|
}
|
|
|
|
func (m *MediaSettings) GetMaxVideoBitrate() *int64 {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.MaxVideoBitrate
|
|
}
|
|
|
|
func (m *MediaSettings) GetMusicBitrate() *int64 {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.MusicBitrate
|
|
}
|
|
|
|
func (m *MediaSettings) GetPeakBitrate() *int64 {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.PeakBitrate
|
|
}
|
|
|
|
func (m *MediaSettings) GetPhotoQuality() *int64 {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.PhotoQuality
|
|
}
|
|
|
|
func (m *MediaSettings) GetPhotoResolution() *string {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.PhotoResolution
|
|
}
|
|
|
|
func (m *MediaSettings) GetSecondsPerSegment() *int64 {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.SecondsPerSegment
|
|
}
|
|
|
|
func (m *MediaSettings) GetSubtitles() *GetPlaylistGeneratorSubtitles {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.Subtitles
|
|
}
|
|
|
|
func (m *MediaSettings) GetSubtitleSize() *int64 {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.SubtitleSize
|
|
}
|
|
|
|
func (m *MediaSettings) GetVideoBitrate() *int64 {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.VideoBitrate
|
|
}
|
|
|
|
func (m *MediaSettings) GetVideoQuality() *int64 {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.VideoQuality
|
|
}
|
|
|
|
func (m *MediaSettings) GetVideoResolution() *string {
|
|
if m == nil {
|
|
return nil
|
|
}
|
|
return m.VideoResolution
|
|
}
|
|
|
|
type GetPlaylistGeneratorScope string
|
|
|
|
const (
|
|
GetPlaylistGeneratorScopeAll GetPlaylistGeneratorScope = "all"
|
|
GetPlaylistGeneratorScopeCount GetPlaylistGeneratorScope = "count"
|
|
)
|
|
|
|
func (e GetPlaylistGeneratorScope) ToPointer() *GetPlaylistGeneratorScope {
|
|
return &e
|
|
}
|
|
func (e *GetPlaylistGeneratorScope) UnmarshalJSON(data []byte) error {
|
|
var v string
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case "all":
|
|
fallthrough
|
|
case "count":
|
|
*e = GetPlaylistGeneratorScope(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for GetPlaylistGeneratorScope: %v", v)
|
|
}
|
|
}
|
|
|
|
type GetPlaylistGeneratorPolicy struct {
|
|
Scope *GetPlaylistGeneratorScope `json:"scope,omitempty"`
|
|
// True if only unwatched items are optimized
|
|
Unwatched *bool `json:"unwatched,omitempty"`
|
|
// If the scope is count, the number of items to optimize
|
|
Value *int64 `json:"value,omitempty"`
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorPolicy) GetScope() *GetPlaylistGeneratorScope {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Scope
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorPolicy) GetUnwatched() *bool {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Unwatched
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorPolicy) GetValue() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Value
|
|
}
|
|
|
|
type GetPlaylistGeneratorState string
|
|
|
|
const (
|
|
GetPlaylistGeneratorStatePending GetPlaylistGeneratorState = "pending"
|
|
GetPlaylistGeneratorStateComplete GetPlaylistGeneratorState = "complete"
|
|
GetPlaylistGeneratorStateFailed GetPlaylistGeneratorState = "failed"
|
|
)
|
|
|
|
func (e GetPlaylistGeneratorState) ToPointer() *GetPlaylistGeneratorState {
|
|
return &e
|
|
}
|
|
func (e *GetPlaylistGeneratorState) UnmarshalJSON(data []byte) error {
|
|
var v string
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case "pending":
|
|
fallthrough
|
|
case "complete":
|
|
fallthrough
|
|
case "failed":
|
|
*e = GetPlaylistGeneratorState(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for GetPlaylistGeneratorState: %v", v)
|
|
}
|
|
}
|
|
|
|
type GetPlaylistGeneratorStatus struct {
|
|
ItemsCompleteCount *int64 `json:"itemsCompleteCount,omitempty"`
|
|
ItemsCount *int64 `json:"itemsCount,omitempty"`
|
|
ItemsSuccessfulCount *int64 `json:"itemsSuccessfulCount,omitempty"`
|
|
State *GetPlaylistGeneratorState `json:"state,omitempty"`
|
|
TotalSize *int64 `json:"totalSize,omitempty"`
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorStatus) GetItemsCompleteCount() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.ItemsCompleteCount
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorStatus) GetItemsCount() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.ItemsCount
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorStatus) GetItemsSuccessfulCount() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.ItemsSuccessfulCount
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorStatus) GetState() *GetPlaylistGeneratorState {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.State
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorStatus) GetTotalSize() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.TotalSize
|
|
}
|
|
|
|
// GetPlaylistGeneratorType - The type of this generator
|
|
type GetPlaylistGeneratorType int64
|
|
|
|
const (
|
|
GetPlaylistGeneratorTypeMinus1 GetPlaylistGeneratorType = -1
|
|
GetPlaylistGeneratorTypeFortyTwo GetPlaylistGeneratorType = 42
|
|
)
|
|
|
|
func (e GetPlaylistGeneratorType) ToPointer() *GetPlaylistGeneratorType {
|
|
return &e
|
|
}
|
|
func (e *GetPlaylistGeneratorType) UnmarshalJSON(data []byte) error {
|
|
var v int64
|
|
if err := json.Unmarshal(data, &v); err != nil {
|
|
return err
|
|
}
|
|
switch v {
|
|
case -1:
|
|
fallthrough
|
|
case 42:
|
|
*e = GetPlaylistGeneratorType(v)
|
|
return nil
|
|
default:
|
|
return fmt.Errorf("invalid value for GetPlaylistGeneratorType: %v", v)
|
|
}
|
|
}
|
|
|
|
type GetPlaylistGeneratorItem struct {
|
|
// The composite thumbnail image path
|
|
Composite *string `json:"composite,omitempty"`
|
|
Device *GetPlaylistGeneratorDevice `json:"Device,omitempty"`
|
|
ID *int64 `json:"id,omitempty"`
|
|
Location *GetPlaylistGeneratorLocation `json:"Location,omitempty"`
|
|
MediaSettings *MediaSettings `json:"MediaSettings,omitempty"`
|
|
Policy *GetPlaylistGeneratorPolicy `json:"Policy,omitempty"`
|
|
Status *GetPlaylistGeneratorStatus `json:"Status,omitempty"`
|
|
Target *string `json:"target,omitempty"`
|
|
// The tag of this generator's settings
|
|
TargetTagID *int64 `json:"targetTagID,omitempty"`
|
|
Title *string `json:"title,omitempty"`
|
|
// The type of this generator
|
|
Type *GetPlaylistGeneratorType `json:"type,omitempty"`
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetComposite() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Composite
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetDevice() *GetPlaylistGeneratorDevice {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Device
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetID() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.ID
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetLocation() *GetPlaylistGeneratorLocation {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Location
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetMediaSettings() *MediaSettings {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.MediaSettings
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetPolicy() *GetPlaylistGeneratorPolicy {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Policy
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetStatus() *GetPlaylistGeneratorStatus {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Status
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetTarget() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Target
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetTargetTagID() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.TargetTagID
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetTitle() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Title
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorItem) GetType() *GetPlaylistGeneratorType {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Type
|
|
}
|
|
|
|
// GetPlaylistGeneratorMediaContainer - `MediaContainer` is the root element of most Plex API responses. It serves as a generic container for various types of content (Metadata, Hubs, Directories, etc.) and includes pagination information (offset, size, totalSize) when applicable.
|
|
// Common attributes: - identifier: Unique identifier for this container - size: Number of items in this response page - totalSize: Total number of items available (for pagination) - offset: Starting index of this page (for pagination)
|
|
// The container often "hoists" common attributes from its children. For example, if all tracks in a container share the same album title, the `parentTitle` attribute may appear on the MediaContainer rather than being repeated on each track.
|
|
type GetPlaylistGeneratorMediaContainer struct {
|
|
Identifier *string `json:"identifier,omitempty"`
|
|
// The offset of where this container page starts among the total objects available. Also provided in the `X-Plex-Container-Start` header.
|
|
//
|
|
Offset *int64 `json:"offset,omitempty"`
|
|
Size *int64 `json:"size,omitempty"`
|
|
// The total size of objects available. Also provided in the `X-Plex-Container-Total-Size` header.
|
|
//
|
|
TotalSize *int64 `json:"totalSize,omitempty"`
|
|
Item []GetPlaylistGeneratorItem `json:"Item,omitempty"`
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorMediaContainer) GetIdentifier() *string {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Identifier
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorMediaContainer) GetOffset() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Offset
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorMediaContainer) GetSize() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Size
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorMediaContainer) GetTotalSize() *int64 {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.TotalSize
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorMediaContainer) GetItem() []GetPlaylistGeneratorItem {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Item
|
|
}
|
|
|
|
// GetPlaylistGeneratorResponseBody - OK
|
|
type GetPlaylistGeneratorResponseBody struct {
|
|
MediaContainer *GetPlaylistGeneratorMediaContainer `json:"MediaContainer,omitempty"`
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorResponseBody) GetMediaContainer() *GetPlaylistGeneratorMediaContainer {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.MediaContainer
|
|
}
|
|
|
|
type GetPlaylistGeneratorResponse struct {
|
|
// HTTP response content type for this operation
|
|
ContentType string
|
|
// HTTP response status code for this operation
|
|
StatusCode int
|
|
// Raw HTTP response; suitable for custom response parsing
|
|
RawResponse *http.Response
|
|
// OK
|
|
Object *GetPlaylistGeneratorResponseBody
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorResponse) GetContentType() string {
|
|
if g == nil {
|
|
return ""
|
|
}
|
|
return g.ContentType
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorResponse) GetStatusCode() int {
|
|
if g == nil {
|
|
return 0
|
|
}
|
|
return g.StatusCode
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorResponse) GetRawResponse() *http.Response {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.RawResponse
|
|
}
|
|
|
|
func (g *GetPlaylistGeneratorResponse) GetObject() *GetPlaylistGeneratorResponseBody {
|
|
if g == nil {
|
|
return nil
|
|
}
|
|
return g.Object
|
|
}
|