Files
plexgo/models/operations/getplaylistgeneratoritems.go
speakeasybot 3ae6d27c3c ## Go SDK Changes:
* `PlexApi.LibraryPlaylists.AddPlaylistItems()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Hubs.GetMetadataHubs()`: 
  *  `request.Request.OnlyTransient` **Changed**
  *  `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LibraryCollections.MoveCollectionItem()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LibraryCollections.DeleteCollectionItem()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LibraryCollections.AddCollectionItems()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Content.GetSonicallySimilar()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Butler.StopTask()`:  `request.Request` **Changed** **Breaking** ⚠️
* `PlexApi.Butler.StartTask()`:  `request.Request` **Changed** **Breaking** ⚠️
* `PlexApi.Content.GetSonicPath()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.DownloadQueue.GetItemDecision()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Hubs.GetAllHubs()`: 
  *  `request.Request.OnlyTransient` **Changed**
  *  `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Hubs.GetContinueWatching()`:  `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Hubs.GetPromotedHubs()`:  `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Content.GetAllLeaves()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Hubs.GetPostplayHubs()`: 
  *  `request.Request.OnlyTransient` **Changed**
  *  `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Hubs.GetRelatedHubs()`: 
  *  `request.Request.OnlyTransient` **Changed**
  *  `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Hubs.GetSectionHubs()`: 
  *  `request.Request.OnlyTransient` **Changed**
  *  `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Content.ListContent()`: 
  *  `request.Request` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Content.GetAlbums()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Search.SearchHubs()`:  `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Search.VoiceSearchHubs()`: 
  *  `request.Request.Type` **Changed** **Breaking** ⚠️
  *  `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetLibraryItems()`: 
  *  `request.Request.MediaQuery` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.IngestTransientItem()`: 
  *  `request.Request` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetLibraryMatches()`: 
  *  `request.Request` **Changed** **Breaking** ⚠️
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Content.GetMetadataItem()`: 
  *  `request.Request` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetSections()`:  `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.AddSection()`: 
  *  `request.Request` **Changed**
  *  `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetTags()`: 
  *  `request.Request.Type` **Changed** **Breaking** ⚠️
* `PlexApi.Content.GetCollectionItems()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetAllItemLeaves()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Status.ListSessions()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.PlayQueue.MovePlayQueueItem()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetExtras()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.PlayQueue.DeletePlayQueueItem()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.PlayQueue.Unshuffle()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.ListMatches()`: 
  *  `request.Request.Manual` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.ListSonicallySimilar()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.PlayQueue.ResetPlayQueue()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetRelatedItems()`:  `response.MediaContainer.Hub.[].Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.ListSimilar()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.PlayQueue.ClearPlayQueue()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetItemTree()`:  `response.MediaContainer.MetadataItem.[]` **Changed** **Breaking** ⚠️
* `PlexApi.PlayQueue.AddToPlayQueue()`: 
  *  `request.Request.Next` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.PlayQueue.GetPlayQueue()`: 
  *  `request.Request` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LibraryPlaylists.MovePlaylistItem()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetPerson()`:  `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.ListPersonMedia()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LibraryPlaylists.GetPlaylistGeneratorItems()`:  `response.MediaContainer.Metadata` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetLibraryDetails()`: 
  *  `request.Request.IncludeDetails` **Changed**
  *  `response.MediaContainer.Directory.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LibraryPlaylists.ModifyPlaylistGenerator()`: 
  *  `request.Request.Item` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.Autocomplete()`: 
  *  `request.Request.MediaQuery` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetCollections()`: 
  *  `request.Request.MediaQuery` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.GetCommon()`: 
  *  `request.Request.MediaQuery` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LibraryPlaylists.DeletePlaylistItem()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LibraryPlaylists.ClearPlaylistItems()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.PlayQueue.Shuffle()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LibraryPlaylists.CreatePlaylist()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Playlist.GetPlaylistItems()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Playlist.GetPlaylist()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Collections.CreateCollection()`: 
  *  `request.Request.Type` **Changed** **Breaking** ⚠️
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.DvRs.TuneChannel()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LiveTv.GetSessions()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.LiveTv.GetLiveTvSession()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Playlist.ListPlaylists()`:  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Subscriptions.GetAllSubscriptions()`: 
  *  `request.Request` **Changed**
  *  `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️
* `PlexApi.Subscriptions.CreateSubscription()`:  `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️
* `PlexApi.Subscriptions.GetScheduledRecordings()`:  `response.MediaContainer.MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️
* `PlexApi.Subscriptions.GetTemplate()`:  `response.MediaContainer.SubscriptionTemplate.[].MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️
* `PlexApi.Subscriptions.GetSubscription()`: 
  *  `request.Request` **Changed**
  *  `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️
* `PlexApi.Subscriptions.EditSubscriptionPreferences()`:  `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️
* `PlexApi.Subscriptions.ReorderSubscription()`:  `response.MediaContainer.MediaSubscription.[].MediaGrabOperation.[].Metadata` **Changed** **Breaking** ⚠️
* `PlexApi.Transcoder.MakeDecision()`: 
  *  `request.Request` **Changed**
  *  `response.MediaContainer.Metadata.[]` **Changed** **Breaking** ⚠️
* `PlexApi.Library.RefreshItemsMetadata()`: 
  *  `request.Request.MarkUpdated` **Changed**
* `PlexApi.Authentication.Post-Users-Sign-In-Data()`: **Added**
* `PlexApi.Transcoder.StartTranscodeSession()`:  `request.Request` **Changed**
* `PlexApi.Devices.ModifyDevice()`: 
  *  `request.Request.Enabled` **Changed**
* `PlexApi.Library.GetMediaPart()`: 
  *  `request.Request.Download` **Changed**
* `PlexApi.Library.DetectIntros()`: 
  *  `request.Request.Force` **Changed**
* `PlexApi.Library.RefreshSection()`: 
  *  `request.Request.Force` **Changed**
* `PlexApi.LibraryPlaylists.UploadPlaylist()`: 
  *  `request.Request.Force` **Changed**
* `PlexApi.Library.DeleteMediaItem()`: 
  *  `request.Request.Proxy` **Changed**
* `PlexApi.Authentication.GetTokenDetails()`: **Added**
* `PlexApi.Library.GetFirstCharacters()`: 
  *  `request.Request.MediaQuery` **Changed**
* `PlexApi.Library.UpdateItems()`: 
  *  `request.Request.Field.locked` **Changed**
* `PlexApi.Library.DeleteLibrarySection()`: 
  *  `request.Request.Async` **Changed**
* `PlexApi.Library.SetStreamSelection()`: 
  *  `request.Request.AllParts` **Changed**
* `PlexApi.PlayQueue.CreatePlayQueue()`:  `request.Request` **Changed**
* `PlexApi.Library.GetAugmentationStatus()`: 
  *  `request.Request.Wait` **Changed**
* `PlexApi.Library.DetectVoiceActivity()`:  `request.Request` **Changed**
* `PlexApi.Transcoder.TranscodeImage()`:  `request.Request` **Changed**
* `PlexApi.Transcoder.TranscodeSubtitles()`:  `request.Request` **Changed**
* `PlexApi.Library.AddSubtitles()`:  `request.Request` **Changed**
* `PlexApi.Library.GetStream()`: 
  *  `request.Request.AutoAdjustSubtitle` **Changed**
* `PlexApi.Library.StartBifGeneration()`: 
  *  `request.Request.Force` **Changed**
* `PlexApi.Library.DetectCredits()`:  `request.Request` **Changed**
* `PlexApi.UltraBlur.GetImage()`: 
  *  `request.Request.Noise` **Changed**
* `PlexApi.Library.GenerateThumbs()`: 
  *  `request.Request.Force` **Changed**
* `PlexApi.Updater.ApplyUpdates()`:  `request.Request` **Changed**
* `PlexApi.Updater.CheckUpdates()`: 
  *  `request.Request.Download` **Changed**
* `PlexApi.Library.DeleteMetadataItem()`: 
  *  `request.Request.Proxy` **Changed**
* `PlexApi.Library.OptimizeDatabase()`: 
  *  `request.Request.Async` **Changed**
* `PlexApi.Hubs.UpdateHubVisibility()`:  `request.Request` **Changed**
* `PlexApi.Hubs.CreateCustomHub()`:  `request.Request` **Changed**
* `PlexApi.Library.GetSectionImage()`: 
  *  `request.Request.MediaQuery` **Changed**
* `PlexApi.DownloadQueue.AddDownloadQueueItems()`:  `request.Request` **Changed**
* `PlexApi.Timeline.Report()`:  `request.Request` **Changed**
* `PlexApi.General.GetSourceConnectionInformation()`: 
  *  `request.Request.Refresh` **Changed**
* `PlexApi.Plex.Get-Server-Resources()`: **Added**
* `PlexApi.Users.Get-Users()`: **Added**
2025-12-01 00:15:28 +00:00

1140 lines
34 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"
"github.com/LukeHagar/plexgo/types"
"net/http"
)
type GetPlaylistGeneratorItemsGlobals 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 GetPlaylistGeneratorItemsGlobals) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(g, "", false)
}
func (g *GetPlaylistGeneratorItemsGlobals) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil {
return err
}
return nil
}
func (g *GetPlaylistGeneratorItemsGlobals) GetAccepts() *components.Accepts {
if g == nil {
return nil
}
return g.Accepts
}
func (g *GetPlaylistGeneratorItemsGlobals) GetClientIdentifier() *string {
if g == nil {
return nil
}
return g.ClientIdentifier
}
func (g *GetPlaylistGeneratorItemsGlobals) GetProduct() *string {
if g == nil {
return nil
}
return g.Product
}
func (g *GetPlaylistGeneratorItemsGlobals) GetVersion() *string {
if g == nil {
return nil
}
return g.Version
}
func (g *GetPlaylistGeneratorItemsGlobals) GetPlatform() *string {
if g == nil {
return nil
}
return g.Platform
}
func (g *GetPlaylistGeneratorItemsGlobals) GetPlatformVersion() *string {
if g == nil {
return nil
}
return g.PlatformVersion
}
func (g *GetPlaylistGeneratorItemsGlobals) GetDevice() *string {
if g == nil {
return nil
}
return g.Device
}
func (g *GetPlaylistGeneratorItemsGlobals) GetModel() *string {
if g == nil {
return nil
}
return g.Model
}
func (g *GetPlaylistGeneratorItemsGlobals) GetDeviceVendor() *string {
if g == nil {
return nil
}
return g.DeviceVendor
}
func (g *GetPlaylistGeneratorItemsGlobals) GetDeviceName() *string {
if g == nil {
return nil
}
return g.DeviceName
}
func (g *GetPlaylistGeneratorItemsGlobals) GetMarketplace() *string {
if g == nil {
return nil
}
return g.Marketplace
}
type GetPlaylistGeneratorItemsRequest 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 GetPlaylistGeneratorItemsRequest) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(g, "", false)
}
func (g *GetPlaylistGeneratorItemsRequest) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &g, "", false, []string{"playlistId", "generatorId"}); err != nil {
return err
}
return nil
}
func (g *GetPlaylistGeneratorItemsRequest) GetAccepts() *components.Accepts {
if g == nil {
return nil
}
return g.Accepts
}
func (g *GetPlaylistGeneratorItemsRequest) GetClientIdentifier() *string {
if g == nil {
return nil
}
return g.ClientIdentifier
}
func (g *GetPlaylistGeneratorItemsRequest) GetProduct() *string {
if g == nil {
return nil
}
return g.Product
}
func (g *GetPlaylistGeneratorItemsRequest) GetVersion() *string {
if g == nil {
return nil
}
return g.Version
}
func (g *GetPlaylistGeneratorItemsRequest) GetPlatform() *string {
if g == nil {
return nil
}
return g.Platform
}
func (g *GetPlaylistGeneratorItemsRequest) GetPlatformVersion() *string {
if g == nil {
return nil
}
return g.PlatformVersion
}
func (g *GetPlaylistGeneratorItemsRequest) GetDevice() *string {
if g == nil {
return nil
}
return g.Device
}
func (g *GetPlaylistGeneratorItemsRequest) GetModel() *string {
if g == nil {
return nil
}
return g.Model
}
func (g *GetPlaylistGeneratorItemsRequest) GetDeviceVendor() *string {
if g == nil {
return nil
}
return g.DeviceVendor
}
func (g *GetPlaylistGeneratorItemsRequest) GetDeviceName() *string {
if g == nil {
return nil
}
return g.DeviceName
}
func (g *GetPlaylistGeneratorItemsRequest) GetMarketplace() *string {
if g == nil {
return nil
}
return g.Marketplace
}
func (g *GetPlaylistGeneratorItemsRequest) GetPlaylistID() int64 {
if g == nil {
return 0
}
return g.PlaylistID
}
func (g *GetPlaylistGeneratorItemsRequest) GetGeneratorID() int64 {
if g == nil {
return 0
}
return g.GeneratorID
}
type GetPlaylistGeneratorItemsGuids struct {
// The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
//
ID string `json:"id"`
}
func (g *GetPlaylistGeneratorItemsGuids) GetID() string {
if g == nil {
return ""
}
return g.ID
}
// ProcessingState - The state of processing if this generator is part of an optimizer playlist
type ProcessingState string
const (
ProcessingStateProcessed ProcessingState = "processed"
ProcessingStateCompleted ProcessingState = "completed"
ProcessingStateTombstoned ProcessingState = "tombstoned"
ProcessingStateDisabled ProcessingState = "disabled"
ProcessingStateError ProcessingState = "error"
ProcessingStatePending ProcessingState = "pending"
)
func (e ProcessingState) ToPointer() *ProcessingState {
return &e
}
func (e *ProcessingState) UnmarshalJSON(data []byte) error {
var v string
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "processed":
fallthrough
case "completed":
fallthrough
case "tombstoned":
fallthrough
case "disabled":
fallthrough
case "error":
fallthrough
case "pending":
*e = ProcessingState(v)
return nil
default:
return fmt.Errorf("invalid value for ProcessingState: %v", v)
}
}
// ProcessingStateContext - The error which could have occurred (or `good`)
type ProcessingStateContext string
const (
ProcessingStateContextGood ProcessingStateContext = "good"
ProcessingStateContextSourceFileUnavailable ProcessingStateContext = "sourceFileUnavailable"
ProcessingStateContextSourceFileMetadataError ProcessingStateContext = "sourceFileMetadataError"
ProcessingStateContextClientProfileError ProcessingStateContext = "clientProfileError"
ProcessingStateContextIoError ProcessingStateContext = "ioError"
ProcessingStateContextTranscoderError ProcessingStateContext = "transcoderError"
ProcessingStateContextUnknownError ProcessingStateContext = "unknownError"
ProcessingStateContextMediaAnalysisError ProcessingStateContext = "mediaAnalysisError"
ProcessingStateContextDownloadFailed ProcessingStateContext = "downloadFailed"
ProcessingStateContextAccessDenied ProcessingStateContext = "accessDenied"
ProcessingStateContextCannotTranscode ProcessingStateContext = "cannotTranscode"
ProcessingStateContextCodecInstallError ProcessingStateContext = "codecInstallError"
)
func (e ProcessingStateContext) ToPointer() *ProcessingStateContext {
return &e
}
func (e *ProcessingStateContext) UnmarshalJSON(data []byte) error {
var v string
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "good":
fallthrough
case "sourceFileUnavailable":
fallthrough
case "sourceFileMetadataError":
fallthrough
case "clientProfileError":
fallthrough
case "ioError":
fallthrough
case "transcoderError":
fallthrough
case "unknownError":
fallthrough
case "mediaAnalysisError":
fallthrough
case "downloadFailed":
fallthrough
case "accessDenied":
fallthrough
case "cannotTranscode":
fallthrough
case "codecInstallError":
*e = ProcessingStateContext(v)
return nil
default:
return fmt.Errorf("invalid value for ProcessingStateContext: %v", v)
}
}
// GetPlaylistGeneratorItemsMetadata - Items in a library are referred to as "metadata items." These metadata items are distinct from "media items" which represent actual instances of media that can be consumed. Consider a TV library that has a single video file in it for a particular episode of a show. The library has a single media item, but it has three metadata items: one for the show, one for the season, and one for the episode. Consider a movie library that has two video files in it: the same movie, but two different resolutions. The library has a single metadata item for the movie, but that metadata item has two media items, one for each resolution. Additionally a "media item" will have one or more "media parts" where the the parts are intended to be watched together, such as a CD1 and CD2 parts of the same movie.
//
// Note that when a metadata item has multiple media items, those media items should be isomorphic. That is, a 4K version and 1080p version of a movie are different versions of the same movie. They have the same duration, same summary, same rating, etc. and they can generally be considered interchangeable. A theatrical release vs. director's cut vs. unrated version on the other hand would be separate metadata items.
//
// Metadata items can often live in a hierarchy with relationships between them. For example, the metadata item for an episodes is associated with a season metadata item which is associated with a show metadata item. A similar hierarchy exists with track, album, and artist and photos and photo album. The relationships may be expressed via relative terms and absolute terms. For example, "leaves" refer to metadata items which has associated media (there is no media for a season nor show). A show will have "children" in the form of seasons and a season will have "children" in the form of episodes and episodes have "parent" in the form of a season which has a "parent" in the form of a show. Similarly, a show has "grandchildren" in the form of episodse and an episode has a "grandparent" in the form of a show.
type GetPlaylistGeneratorItemsMetadata struct {
// The title of the item (e.g. “300” or “The Simpsons”)
Title string `json:"title"`
// The type of the video item, such as `movie`, `episode`, or `clip`.
Type string `json:"type"`
// When present, contains the disc number for a track on multi-disc albums.
AbsoluteIndex *int `json:"absoluteIndex,omitempty"`
// In units of seconds since the epoch, returns the time at which the item was added to the library.
AddedAt int64 `json:"addedAt"`
// When present, the URL for the background artwork for the item.
Art *string `json:"art,omitempty"`
// Some rating systems separate reviewer ratings from audience ratings
AudienceRating *float32 `json:"audienceRating,omitempty"`
// A URI representing the image to be shown with the audience rating (e.g. rottentomatoes://image.rating.spilled).
AudienceRatingImage *string `json:"audienceRatingImage,omitempty"`
Autotag []components.Tag `json:"Autotag,omitempty"`
// When present, the URL for a banner graphic for the item.
Banner *string `json:"banner,omitempty"`
// When present, indicates the source for the chapters in the media file. Can be media (the chapters were embedded in the media itself), agent (a metadata agent computed them), or mixed (a combination of the two).
ChapterSource *string `json:"chapterSource,omitempty"`
// The number of child items associated with this media item.
ChildCount *int `json:"childCount,omitempty"`
// When present, the URL for a composite image for descendent items (e.g. photo albums or playlists).
Composite *string `json:"composite,omitempty"`
// If known, the content rating (e.g. MPAA) for an item.
ContentRating *string `json:"contentRating,omitempty"`
Country []components.Tag `json:"Country,omitempty"`
Director []components.Tag `json:"Director,omitempty"`
// When present, the duration for the item, in units of milliseconds.
Duration *int `json:"duration,omitempty"`
// Typically only seen in metadata at a library's top level
Filter []components.Filter `json:"Filter,omitempty"`
Genre []components.Tag `json:"Genre,omitempty"`
// The `art` of the grandparent
GrandparentArt *string `json:"grandparentArt,omitempty"`
// The GUID of the grandparent media item.
GrandparentGUID *string `json:"grandparentGuid,omitempty"`
// The `hero` of the grandparent
GrandparentHero *string `json:"grandparentHero,omitempty"`
// The `key` of the grandparent
GrandparentKey *string `json:"grandparentKey,omitempty"`
// The `ratingKey` of the grandparent
GrandparentRatingKey *string `json:"grandparentRatingKey,omitempty"`
// The `theme` of the grandparent
GrandparentTheme *string `json:"grandparentTheme,omitempty"`
// The `thumb` of the grandparent
GrandparentThumb *string `json:"grandparentThumb,omitempty"`
// The `title` of the grandparent
GrandparentTitle *string `json:"grandparentTitle,omitempty"`
// The globally unique identifier for the media item.
GUID *string `json:"guid,omitempty"`
Guids []GetPlaylistGeneratorItemsGuids `json:"Guid,omitempty"`
// When present, the URL for a hero image for the item.
Hero *string `json:"hero,omitempty"`
Image []components.Image `json:"Image,omitempty"`
// When present, this represents the episode number for episodes, season number for seasons, or track number for audio tracks.
Index *int `json:"index,omitempty"`
// The key at which the item's details can be fetched. In many cases a metadata item may be passed without all the details (such as in a hub) and this key corresponds to the endpoint to fetch additional details.
Key string `json:"key"`
LastViewedAt *int64 `json:"lastViewedAt,omitempty"`
// For shows and seasons, contains the number of total episodes.
LeafCount *int `json:"leafCount,omitempty"`
Media []components.Media `json:"Media,omitempty"`
// When present, in the format YYYY-MM-DD [HH:MM:SS] (the hours/minutes/seconds part is not always present). The air date, or a higher resolution release date for an item, depending on type. For example, episodes usually have air date like 1979-08-10 (we don't use epoch seconds because media existed prior to 1970). In some cases, recorded over-the-air content has higher resolution air date which includes a time component. Albums and movies may have day-resolution release dates as well.
OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"`
// When present, used to indicate an item's original title, e.g. a movie's foreign title.
OriginalTitle *string `json:"originalTitle,omitempty"`
// The GUID of the parent media item.
ParentGUID *string `json:"parentGuid,omitempty"`
// The `hero` of the parent
ParentHero *string `json:"parentHero,omitempty"`
// The `index` of the parent
ParentIndex *int `json:"parentIndex,omitempty"`
// The `key` of the parent
ParentKey *string `json:"parentKey,omitempty"`
// The `ratingKey` of the parent
ParentRatingKey *string `json:"parentRatingKey,omitempty"`
// The `thumb` of the parent
ParentThumb *string `json:"parentThumb,omitempty"`
// The `title` of the parent
ParentTitle *string `json:"parentTitle,omitempty"`
// Indicates that the item has a primary extra; for a movie, this is a trailer, and for a music track it is a music video. The URL points to the metadata details endpoint for the item.
PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"`
// Prompt to give the user for this directory (such as `Search Movies`)
Prompt *string `json:"prompt,omitempty"`
// When present, the rating for the item. The exact meaning and representation depends on where the rating was sourced from.
Rating *float32 `json:"rating,omitempty"`
RatingArray []components.Tag `json:"Rating,omitempty"`
// Number of ratings under this metadata
RatingCount *int `json:"ratingCount,omitempty"`
// When present, indicates an image to be shown with the rating. This is passed back as a small set of defined URI values, e.g. rottentomatoes://image.rating.rotten.
RatingImage *string `json:"ratingImage,omitempty"`
// This is the opaque string to be passed into timeline, scrobble, and rating endpoints to identify them. While it often appears to be numeric, this is not guaranteed.
RatingKey *string `json:"ratingKey,omitempty"`
Role []components.Tag `json:"Role,omitempty"`
// Indicates this is a search directory
Search *bool `json:"search,omitempty"`
// Used by old clients to provide nested menus allowing for primative (but structured) navigation.
Secondary *bool `json:"secondary,omitempty"`
// When found on a show item, indicates that the children (seasons) should be skipped in favor of the grandchildren (episodes). Useful for mini-series, etc.
SkipChildren *bool `json:"skipChildren,omitempty"`
// When present on an episode or track item, indicates parent should be skipped in favor of grandparent (show).
SkipParent *bool `json:"skipParent,omitempty"`
// Typically only seen in metadata at a library's top level
Sort []components.Sort `json:"Sort,omitempty"`
// When present, the studio or label which produced an item (e.g. movie studio for movies, record label for albums).
Studio *string `json:"studio,omitempty"`
// The subtype of the video item, such as `photo` when the video item is in a photo library
Subtype *string `json:"subtype,omitempty"`
// When present, the extended textual information about the item (e.g. movie plot, artist biography, album review).
Summary *string `json:"summary,omitempty"`
// When present, a pithy one-liner about the item (usually only seen for movies).
Tagline *string `json:"tagline,omitempty"`
// When present, the URL for theme music for the item (usually only for TV shows).
Theme *string `json:"theme,omitempty"`
// When present, the URL for the poster or thumbnail for the item. When available for types like movie, it will be the poster graphic, but fall-back to the extracted media thumbnail.
Thumb *string `json:"thumb,omitempty"`
// Whene present, this is the string used for sorting the item. It's usually the title with any leading articles removed (e.g. “Simpsons”).
TitleSort *string `json:"titleSort,omitempty"`
// In units of seconds since the epoch, returns the time at which the item was last changed (e.g. had its metadata updated).
UpdatedAt *int64 `json:"updatedAt,omitempty"`
// When the user has rated an item, this contains the user rating
UserRating *float32 `json:"userRating,omitempty"`
// When a users has completed watched or listened to an item, this attribute contains the number of consumptions.
ViewCount *int `json:"viewCount,omitempty"`
// For shows and seasons, contains the number of viewed episodes.
ViewedLeafCount *int `json:"viewedLeafCount,omitempty"`
// When a user is in the process of viewing or listening to this item, this attribute contains the current offset, in units of milliseconds.
ViewOffset *int `json:"viewOffset,omitempty"`
Writer []components.Tag `json:"Writer,omitempty"`
// When present, the year associated with the item's release (e.g. release year for a movie).
Year *int `json:"year,omitempty"`
// The state of processing if this generator is part of an optimizer playlist
ProcessingState *ProcessingState `json:"processingState,omitempty"`
// The error which could have occurred (or `good`)
ProcessingStateContext *ProcessingStateContext `json:"processingStateContext,omitempty"`
AdditionalProperties map[string]any `additionalProperties:"true" json:"-"`
}
func (g GetPlaylistGeneratorItemsMetadata) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(g, "", false)
}
func (g *GetPlaylistGeneratorItemsMetadata) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &g, "", false, []string{"title", "type", "addedAt", "key"}); err != nil {
return err
}
return nil
}
func (g *GetPlaylistGeneratorItemsMetadata) GetTitle() string {
if g == nil {
return ""
}
return g.Title
}
func (g *GetPlaylistGeneratorItemsMetadata) GetType() string {
if g == nil {
return ""
}
return g.Type
}
func (g *GetPlaylistGeneratorItemsMetadata) GetAbsoluteIndex() *int {
if g == nil {
return nil
}
return g.AbsoluteIndex
}
func (g *GetPlaylistGeneratorItemsMetadata) GetAddedAt() int64 {
if g == nil {
return 0
}
return g.AddedAt
}
func (g *GetPlaylistGeneratorItemsMetadata) GetArt() *string {
if g == nil {
return nil
}
return g.Art
}
func (g *GetPlaylistGeneratorItemsMetadata) GetAudienceRating() *float32 {
if g == nil {
return nil
}
return g.AudienceRating
}
func (g *GetPlaylistGeneratorItemsMetadata) GetAudienceRatingImage() *string {
if g == nil {
return nil
}
return g.AudienceRatingImage
}
func (g *GetPlaylistGeneratorItemsMetadata) GetAutotag() []components.Tag {
if g == nil {
return nil
}
return g.Autotag
}
func (g *GetPlaylistGeneratorItemsMetadata) GetBanner() *string {
if g == nil {
return nil
}
return g.Banner
}
func (g *GetPlaylistGeneratorItemsMetadata) GetChapterSource() *string {
if g == nil {
return nil
}
return g.ChapterSource
}
func (g *GetPlaylistGeneratorItemsMetadata) GetChildCount() *int {
if g == nil {
return nil
}
return g.ChildCount
}
func (g *GetPlaylistGeneratorItemsMetadata) GetComposite() *string {
if g == nil {
return nil
}
return g.Composite
}
func (g *GetPlaylistGeneratorItemsMetadata) GetContentRating() *string {
if g == nil {
return nil
}
return g.ContentRating
}
func (g *GetPlaylistGeneratorItemsMetadata) GetCountry() []components.Tag {
if g == nil {
return nil
}
return g.Country
}
func (g *GetPlaylistGeneratorItemsMetadata) GetDirector() []components.Tag {
if g == nil {
return nil
}
return g.Director
}
func (g *GetPlaylistGeneratorItemsMetadata) GetDuration() *int {
if g == nil {
return nil
}
return g.Duration
}
func (g *GetPlaylistGeneratorItemsMetadata) GetFilter() []components.Filter {
if g == nil {
return nil
}
return g.Filter
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGenre() []components.Tag {
if g == nil {
return nil
}
return g.Genre
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGrandparentArt() *string {
if g == nil {
return nil
}
return g.GrandparentArt
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGrandparentGUID() *string {
if g == nil {
return nil
}
return g.GrandparentGUID
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGrandparentHero() *string {
if g == nil {
return nil
}
return g.GrandparentHero
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGrandparentKey() *string {
if g == nil {
return nil
}
return g.GrandparentKey
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGrandparentRatingKey() *string {
if g == nil {
return nil
}
return g.GrandparentRatingKey
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGrandparentTheme() *string {
if g == nil {
return nil
}
return g.GrandparentTheme
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGrandparentThumb() *string {
if g == nil {
return nil
}
return g.GrandparentThumb
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGrandparentTitle() *string {
if g == nil {
return nil
}
return g.GrandparentTitle
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGUID() *string {
if g == nil {
return nil
}
return g.GUID
}
func (g *GetPlaylistGeneratorItemsMetadata) GetGuids() []GetPlaylistGeneratorItemsGuids {
if g == nil {
return nil
}
return g.Guids
}
func (g *GetPlaylistGeneratorItemsMetadata) GetHero() *string {
if g == nil {
return nil
}
return g.Hero
}
func (g *GetPlaylistGeneratorItemsMetadata) GetImage() []components.Image {
if g == nil {
return nil
}
return g.Image
}
func (g *GetPlaylistGeneratorItemsMetadata) GetIndex() *int {
if g == nil {
return nil
}
return g.Index
}
func (g *GetPlaylistGeneratorItemsMetadata) GetKey() string {
if g == nil {
return ""
}
return g.Key
}
func (g *GetPlaylistGeneratorItemsMetadata) GetLastViewedAt() *int64 {
if g == nil {
return nil
}
return g.LastViewedAt
}
func (g *GetPlaylistGeneratorItemsMetadata) GetLeafCount() *int {
if g == nil {
return nil
}
return g.LeafCount
}
func (g *GetPlaylistGeneratorItemsMetadata) GetMedia() []components.Media {
if g == nil {
return nil
}
return g.Media
}
func (g *GetPlaylistGeneratorItemsMetadata) GetOriginallyAvailableAt() *types.Date {
if g == nil {
return nil
}
return g.OriginallyAvailableAt
}
func (g *GetPlaylistGeneratorItemsMetadata) GetOriginalTitle() *string {
if g == nil {
return nil
}
return g.OriginalTitle
}
func (g *GetPlaylistGeneratorItemsMetadata) GetParentGUID() *string {
if g == nil {
return nil
}
return g.ParentGUID
}
func (g *GetPlaylistGeneratorItemsMetadata) GetParentHero() *string {
if g == nil {
return nil
}
return g.ParentHero
}
func (g *GetPlaylistGeneratorItemsMetadata) GetParentIndex() *int {
if g == nil {
return nil
}
return g.ParentIndex
}
func (g *GetPlaylistGeneratorItemsMetadata) GetParentKey() *string {
if g == nil {
return nil
}
return g.ParentKey
}
func (g *GetPlaylistGeneratorItemsMetadata) GetParentRatingKey() *string {
if g == nil {
return nil
}
return g.ParentRatingKey
}
func (g *GetPlaylistGeneratorItemsMetadata) GetParentThumb() *string {
if g == nil {
return nil
}
return g.ParentThumb
}
func (g *GetPlaylistGeneratorItemsMetadata) GetParentTitle() *string {
if g == nil {
return nil
}
return g.ParentTitle
}
func (g *GetPlaylistGeneratorItemsMetadata) GetPrimaryExtraKey() *string {
if g == nil {
return nil
}
return g.PrimaryExtraKey
}
func (g *GetPlaylistGeneratorItemsMetadata) GetPrompt() *string {
if g == nil {
return nil
}
return g.Prompt
}
func (g *GetPlaylistGeneratorItemsMetadata) GetRating() *float32 {
if g == nil {
return nil
}
return g.Rating
}
func (g *GetPlaylistGeneratorItemsMetadata) GetRatingArray() []components.Tag {
if g == nil {
return nil
}
return g.RatingArray
}
func (g *GetPlaylistGeneratorItemsMetadata) GetRatingCount() *int {
if g == nil {
return nil
}
return g.RatingCount
}
func (g *GetPlaylistGeneratorItemsMetadata) GetRatingImage() *string {
if g == nil {
return nil
}
return g.RatingImage
}
func (g *GetPlaylistGeneratorItemsMetadata) GetRatingKey() *string {
if g == nil {
return nil
}
return g.RatingKey
}
func (g *GetPlaylistGeneratorItemsMetadata) GetRole() []components.Tag {
if g == nil {
return nil
}
return g.Role
}
func (g *GetPlaylistGeneratorItemsMetadata) GetSearch() *bool {
if g == nil {
return nil
}
return g.Search
}
func (g *GetPlaylistGeneratorItemsMetadata) GetSecondary() *bool {
if g == nil {
return nil
}
return g.Secondary
}
func (g *GetPlaylistGeneratorItemsMetadata) GetSkipChildren() *bool {
if g == nil {
return nil
}
return g.SkipChildren
}
func (g *GetPlaylistGeneratorItemsMetadata) GetSkipParent() *bool {
if g == nil {
return nil
}
return g.SkipParent
}
func (g *GetPlaylistGeneratorItemsMetadata) GetSort() []components.Sort {
if g == nil {
return nil
}
return g.Sort
}
func (g *GetPlaylistGeneratorItemsMetadata) GetStudio() *string {
if g == nil {
return nil
}
return g.Studio
}
func (g *GetPlaylistGeneratorItemsMetadata) GetSubtype() *string {
if g == nil {
return nil
}
return g.Subtype
}
func (g *GetPlaylistGeneratorItemsMetadata) GetSummary() *string {
if g == nil {
return nil
}
return g.Summary
}
func (g *GetPlaylistGeneratorItemsMetadata) GetTagline() *string {
if g == nil {
return nil
}
return g.Tagline
}
func (g *GetPlaylistGeneratorItemsMetadata) GetTheme() *string {
if g == nil {
return nil
}
return g.Theme
}
func (g *GetPlaylistGeneratorItemsMetadata) GetThumb() *string {
if g == nil {
return nil
}
return g.Thumb
}
func (g *GetPlaylistGeneratorItemsMetadata) GetTitleSort() *string {
if g == nil {
return nil
}
return g.TitleSort
}
func (g *GetPlaylistGeneratorItemsMetadata) GetUpdatedAt() *int64 {
if g == nil {
return nil
}
return g.UpdatedAt
}
func (g *GetPlaylistGeneratorItemsMetadata) GetUserRating() *float32 {
if g == nil {
return nil
}
return g.UserRating
}
func (g *GetPlaylistGeneratorItemsMetadata) GetViewCount() *int {
if g == nil {
return nil
}
return g.ViewCount
}
func (g *GetPlaylistGeneratorItemsMetadata) GetViewedLeafCount() *int {
if g == nil {
return nil
}
return g.ViewedLeafCount
}
func (g *GetPlaylistGeneratorItemsMetadata) GetViewOffset() *int {
if g == nil {
return nil
}
return g.ViewOffset
}
func (g *GetPlaylistGeneratorItemsMetadata) GetWriter() []components.Tag {
if g == nil {
return nil
}
return g.Writer
}
func (g *GetPlaylistGeneratorItemsMetadata) GetYear() *int {
if g == nil {
return nil
}
return g.Year
}
func (g *GetPlaylistGeneratorItemsMetadata) GetProcessingState() *ProcessingState {
if g == nil {
return nil
}
return g.ProcessingState
}
func (g *GetPlaylistGeneratorItemsMetadata) GetProcessingStateContext() *ProcessingStateContext {
if g == nil {
return nil
}
return g.ProcessingStateContext
}
func (g *GetPlaylistGeneratorItemsMetadata) GetAdditionalProperties() map[string]any {
if g == nil {
return nil
}
return g.AdditionalProperties
}
// GetPlaylistGeneratorItemsMediaContainer - `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 GetPlaylistGeneratorItemsMediaContainer 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"`
Metadata *GetPlaylistGeneratorItemsMetadata `json:"Metadata,omitempty"`
}
func (g *GetPlaylistGeneratorItemsMediaContainer) GetIdentifier() *string {
if g == nil {
return nil
}
return g.Identifier
}
func (g *GetPlaylistGeneratorItemsMediaContainer) GetOffset() *int64 {
if g == nil {
return nil
}
return g.Offset
}
func (g *GetPlaylistGeneratorItemsMediaContainer) GetSize() *int64 {
if g == nil {
return nil
}
return g.Size
}
func (g *GetPlaylistGeneratorItemsMediaContainer) GetTotalSize() *int64 {
if g == nil {
return nil
}
return g.TotalSize
}
func (g *GetPlaylistGeneratorItemsMediaContainer) GetMetadata() *GetPlaylistGeneratorItemsMetadata {
if g == nil {
return nil
}
return g.Metadata
}
// GetPlaylistGeneratorItemsResponseBody - OK
type GetPlaylistGeneratorItemsResponseBody struct {
MediaContainer *GetPlaylistGeneratorItemsMediaContainer `json:"MediaContainer,omitempty"`
}
func (g *GetPlaylistGeneratorItemsResponseBody) GetMediaContainer() *GetPlaylistGeneratorItemsMediaContainer {
if g == nil {
return nil
}
return g.MediaContainer
}
type GetPlaylistGeneratorItemsResponse 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 *GetPlaylistGeneratorItemsResponseBody
}
func (g *GetPlaylistGeneratorItemsResponse) GetContentType() string {
if g == nil {
return ""
}
return g.ContentType
}
func (g *GetPlaylistGeneratorItemsResponse) GetStatusCode() int {
if g == nil {
return 0
}
return g.StatusCode
}
func (g *GetPlaylistGeneratorItemsResponse) GetRawResponse() *http.Response {
if g == nil {
return nil
}
return g.RawResponse
}
func (g *GetPlaylistGeneratorItemsResponse) GetObject() *GetPlaylistGeneratorItemsResponseBody {
if g == nil {
return nil
}
return g.Object
}