// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations import ( "net/http" ) // GetCountriesLibraryQueryParamType - 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 GetCountriesLibraryQueryParamType int64 const ( GetCountriesLibraryQueryParamTypeMovie GetCountriesLibraryQueryParamType = 1 GetCountriesLibraryQueryParamTypeTvShow GetCountriesLibraryQueryParamType = 2 GetCountriesLibraryQueryParamTypeSeason GetCountriesLibraryQueryParamType = 3 GetCountriesLibraryQueryParamTypeEpisode GetCountriesLibraryQueryParamType = 4 GetCountriesLibraryQueryParamTypeArtist GetCountriesLibraryQueryParamType = 5 GetCountriesLibraryQueryParamTypeAlbum GetCountriesLibraryQueryParamType = 6 GetCountriesLibraryQueryParamTypeTrack GetCountriesLibraryQueryParamType = 7 GetCountriesLibraryQueryParamTypePhotoAlbum GetCountriesLibraryQueryParamType = 8 GetCountriesLibraryQueryParamTypePhoto GetCountriesLibraryQueryParamType = 9 ) func (e GetCountriesLibraryQueryParamType) ToPointer() *GetCountriesLibraryQueryParamType { return &e } type GetCountriesLibraryRequest 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 GetCountriesLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"` } func (g *GetCountriesLibraryRequest) GetSectionKey() int { if g == nil { return 0 } return g.SectionKey } func (g *GetCountriesLibraryRequest) GetType() GetCountriesLibraryQueryParamType { if g == nil { return GetCountriesLibraryQueryParamType(0) } return g.Type } type GetCountriesLibraryDirectory struct { FastKey string `json:"fastKey"` Key string `json:"key"` Title string `json:"title"` } func (g *GetCountriesLibraryDirectory) GetFastKey() string { if g == nil { return "" } return g.FastKey } func (g *GetCountriesLibraryDirectory) GetKey() string { if g == nil { return "" } return g.Key } func (g *GetCountriesLibraryDirectory) GetTitle() string { if g == nil { return "" } return g.Title } type GetCountriesLibraryMediaContainer 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"` // The content type or mode. Content string `json:"content"` // 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"` Directory []GetCountriesLibraryDirectory `json:"Directory,omitempty"` } func (g *GetCountriesLibraryMediaContainer) GetSize() int { if g == nil { return 0 } return g.Size } func (g *GetCountriesLibraryMediaContainer) GetAllowSync() bool { if g == nil { return false } return g.AllowSync } func (g *GetCountriesLibraryMediaContainer) GetArt() string { if g == nil { return "" } return g.Art } func (g *GetCountriesLibraryMediaContainer) GetContent() string { if g == nil { return "" } return g.Content } func (g *GetCountriesLibraryMediaContainer) GetIdentifier() string { if g == nil { return "" } return g.Identifier } func (g *GetCountriesLibraryMediaContainer) GetMediaTagPrefix() string { if g == nil { return "" } return g.MediaTagPrefix } func (g *GetCountriesLibraryMediaContainer) GetMediaTagVersion() int64 { if g == nil { return 0 } return g.MediaTagVersion } func (g *GetCountriesLibraryMediaContainer) GetNocache() bool { if g == nil { return false } return g.Nocache } func (g *GetCountriesLibraryMediaContainer) GetThumb() string { if g == nil { return "" } return g.Thumb } func (g *GetCountriesLibraryMediaContainer) GetTitle1() string { if g == nil { return "" } return g.Title1 } func (g *GetCountriesLibraryMediaContainer) GetTitle2() string { if g == nil { return "" } return g.Title2 } func (g *GetCountriesLibraryMediaContainer) GetViewGroup() string { if g == nil { return "" } return g.ViewGroup } func (g *GetCountriesLibraryMediaContainer) GetDirectory() []GetCountriesLibraryDirectory { if g == nil { return nil } return g.Directory } // GetCountriesLibraryResponseBody - Successful response containing media container data. type GetCountriesLibraryResponseBody struct { MediaContainer *GetCountriesLibraryMediaContainer `json:"MediaContainer,omitempty"` } func (g *GetCountriesLibraryResponseBody) GetMediaContainer() *GetCountriesLibraryMediaContainer { if g == nil { return nil } return g.MediaContainer } type GetCountriesLibraryResponse 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 *GetCountriesLibraryResponseBody } func (g *GetCountriesLibraryResponse) GetContentType() string { if g == nil { return "" } return g.ContentType } func (g *GetCountriesLibraryResponse) GetStatusCode() int { if g == nil { return 0 } return g.StatusCode } func (g *GetCountriesLibraryResponse) GetRawResponse() *http.Response { if g == nil { return nil } return g.RawResponse } func (g *GetCountriesLibraryResponse) GetObject() *GetCountriesLibraryResponseBody { if g == nil { return nil } return g.Object }