// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations import ( "net/http" ) // GetActorsLibraryQueryParamType - The type of media to retrieve or filter by. // 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 type GetActorsLibraryQueryParamType int64 const ( GetActorsLibraryQueryParamTypeMovie GetActorsLibraryQueryParamType = 1 GetActorsLibraryQueryParamTypeTvShow GetActorsLibraryQueryParamType = 2 GetActorsLibraryQueryParamTypeSeason GetActorsLibraryQueryParamType = 3 GetActorsLibraryQueryParamTypeEpisode GetActorsLibraryQueryParamType = 4 GetActorsLibraryQueryParamTypeArtist GetActorsLibraryQueryParamType = 5 GetActorsLibraryQueryParamTypeAlbum GetActorsLibraryQueryParamType = 6 GetActorsLibraryQueryParamTypeTrack GetActorsLibraryQueryParamType = 7 GetActorsLibraryQueryParamTypePhotoAlbum GetActorsLibraryQueryParamType = 8 GetActorsLibraryQueryParamTypePhoto GetActorsLibraryQueryParamType = 9 ) func (e GetActorsLibraryQueryParamType) ToPointer() *GetActorsLibraryQueryParamType { return &e } type GetActorsLibraryRequest struct { // The unique key of the Plex library. // Note: This is unique in the context of the Plex server. // SectionKey int `pathParam:"style=simple,explode=false,name=sectionKey"` // The type of media to retrieve or filter by. // 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 // Type GetActorsLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"` } func (g *GetActorsLibraryRequest) GetSectionKey() int { if g == nil { return 0 } return g.SectionKey } func (g *GetActorsLibraryRequest) GetType() GetActorsLibraryQueryParamType { if g == nil { return GetActorsLibraryQueryParamType(0) } return g.Type } type GetActorsLibraryDirectory struct { // A fast lookup key for the actor relative url. FastKey string `json:"fastKey"` // URL for the thumbnail image of the actor. Thumb string `json:"thumb"` // A unique key representing the actor. Key string `json:"key"` // The name of the actor. Title string `json:"title"` } func (g *GetActorsLibraryDirectory) GetFastKey() string { if g == nil { return "" } return g.FastKey } func (g *GetActorsLibraryDirectory) GetThumb() string { if g == nil { return "" } return g.Thumb } func (g *GetActorsLibraryDirectory) GetKey() string { if g == nil { return "" } return g.Key } func (g *GetActorsLibraryDirectory) GetTitle() string { if g == nil { return "" } return g.Title } type GetActorsLibraryMediaContainer struct { // Number of media items returned in this response. Size int `json:"size"` // Indicates whether syncing is allowed. AllowSync bool `json:"allowSync"` // URL for the background artwork of the media container. Art string `json:"art"` // An plugin identifier for the media container. Identifier string `json:"identifier"` // The prefix used for media tag resource paths. MediaTagPrefix string `json:"mediaTagPrefix"` // The version number for media tags. MediaTagVersion int64 `json:"mediaTagVersion"` // Specifies whether caching is disabled. Nocache bool `json:"nocache"` // URL for the thumbnail image of the media container. Thumb string `json:"thumb"` // The primary title of the media container. Title1 string `json:"title1"` // The secondary title of the media container. Title2 string `json:"title2"` // Identifier for the view group layout. ViewGroup string `json:"viewGroup"` // Identifier for the view mode. ViewMode *string `json:"viewMode,omitempty"` // An array of actor entries for media items. Directory []GetActorsLibraryDirectory `json:"Directory,omitempty"` } func (g *GetActorsLibraryMediaContainer) GetSize() int { if g == nil { return 0 } return g.Size } func (g *GetActorsLibraryMediaContainer) GetAllowSync() bool { if g == nil { return false } return g.AllowSync } func (g *GetActorsLibraryMediaContainer) GetArt() string { if g == nil { return "" } return g.Art } func (g *GetActorsLibraryMediaContainer) GetIdentifier() string { if g == nil { return "" } return g.Identifier } func (g *GetActorsLibraryMediaContainer) GetMediaTagPrefix() string { if g == nil { return "" } return g.MediaTagPrefix } func (g *GetActorsLibraryMediaContainer) GetMediaTagVersion() int64 { if g == nil { return 0 } return g.MediaTagVersion } func (g *GetActorsLibraryMediaContainer) GetNocache() bool { if g == nil { return false } return g.Nocache } func (g *GetActorsLibraryMediaContainer) GetThumb() string { if g == nil { return "" } return g.Thumb } func (g *GetActorsLibraryMediaContainer) GetTitle1() string { if g == nil { return "" } return g.Title1 } func (g *GetActorsLibraryMediaContainer) GetTitle2() string { if g == nil { return "" } return g.Title2 } func (g *GetActorsLibraryMediaContainer) GetViewGroup() string { if g == nil { return "" } return g.ViewGroup } func (g *GetActorsLibraryMediaContainer) GetViewMode() *string { if g == nil { return nil } return g.ViewMode } func (g *GetActorsLibraryMediaContainer) GetDirectory() []GetActorsLibraryDirectory { if g == nil { return nil } return g.Directory } // GetActorsLibraryResponseBody - Successful response containing media container data. type GetActorsLibraryResponseBody struct { MediaContainer *GetActorsLibraryMediaContainer `json:"MediaContainer,omitempty"` } func (g *GetActorsLibraryResponseBody) GetMediaContainer() *GetActorsLibraryMediaContainer { if g == nil { return nil } return g.MediaContainer } type GetActorsLibraryResponse 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 // Successful response containing media container data. Object *GetActorsLibraryResponseBody } func (g *GetActorsLibraryResponse) GetContentType() string { if g == nil { return "" } return g.ContentType } func (g *GetActorsLibraryResponse) GetStatusCode() int { if g == nil { return 0 } return g.StatusCode } func (g *GetActorsLibraryResponse) GetRawResponse() *http.Response { if g == nil { return nil } return g.RawResponse } func (g *GetActorsLibraryResponse) GetObject() *GetActorsLibraryResponseBody { if g == nil { return nil } return g.Object }