mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
231 lines
4.9 KiB
Go
231 lines
4.9 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type GetGenresLibraryRequest 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"`
|
|
}
|
|
|
|
func (o *GetGenresLibraryRequest) GetSectionKey() int {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.SectionKey
|
|
}
|
|
|
|
type GetGenresLibraryDirectory struct {
|
|
FastKey string `json:"fastKey"`
|
|
Key string `json:"key"`
|
|
Title string `json:"title"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
func (o *GetGenresLibraryDirectory) GetFastKey() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.FastKey
|
|
}
|
|
|
|
func (o *GetGenresLibraryDirectory) GetKey() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Key
|
|
}
|
|
|
|
func (o *GetGenresLibraryDirectory) GetTitle() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Title
|
|
}
|
|
|
|
func (o *GetGenresLibraryDirectory) GetType() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Type
|
|
}
|
|
|
|
type GetGenresLibraryMediaContainer struct {
|
|
Size float64 `json:"size"`
|
|
Offset *int `json:"offset,omitempty"`
|
|
TotalSize *int `json:"totalSize,omitempty"`
|
|
Identifier string `json:"identifier"`
|
|
AllowSync bool `json:"allowSync"`
|
|
Art string `json:"art"`
|
|
Content string `json:"content"`
|
|
MediaTagPrefix string `json:"mediaTagPrefix"`
|
|
MediaTagVersion int64 `json:"mediaTagVersion"`
|
|
Nocache bool `json:"nocache"`
|
|
Thumb string `json:"thumb"`
|
|
Title1 string `json:"title1"`
|
|
Title2 string `json:"title2"`
|
|
ViewGroup string `json:"viewGroup"`
|
|
Directory []GetGenresLibraryDirectory `json:"Directory,omitempty"`
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetSize() float64 {
|
|
if o == nil {
|
|
return 0.0
|
|
}
|
|
return o.Size
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetOffset() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Offset
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetTotalSize() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.TotalSize
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetIdentifier() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Identifier
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetAllowSync() bool {
|
|
if o == nil {
|
|
return false
|
|
}
|
|
return o.AllowSync
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetArt() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Art
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetContent() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Content
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetMediaTagPrefix() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.MediaTagPrefix
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetMediaTagVersion() int64 {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.MediaTagVersion
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetNocache() bool {
|
|
if o == nil {
|
|
return false
|
|
}
|
|
return o.Nocache
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetThumb() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Thumb
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetTitle1() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Title1
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetTitle2() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Title2
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetViewGroup() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.ViewGroup
|
|
}
|
|
|
|
func (o *GetGenresLibraryMediaContainer) GetDirectory() []GetGenresLibraryDirectory {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Directory
|
|
}
|
|
|
|
// GetGenresLibraryResponseBody - Successful response containing media container data.
|
|
type GetGenresLibraryResponseBody struct {
|
|
MediaContainer *GetGenresLibraryMediaContainer `json:"MediaContainer,omitempty"`
|
|
}
|
|
|
|
func (o *GetGenresLibraryResponseBody) GetMediaContainer() *GetGenresLibraryMediaContainer {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.MediaContainer
|
|
}
|
|
|
|
type GetGenresLibraryResponse 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 *GetGenresLibraryResponseBody
|
|
}
|
|
|
|
func (o *GetGenresLibraryResponse) GetContentType() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.ContentType
|
|
}
|
|
|
|
func (o *GetGenresLibraryResponse) GetStatusCode() int {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.StatusCode
|
|
}
|
|
|
|
func (o *GetGenresLibraryResponse) GetRawResponse() *http.Response {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.RawResponse
|
|
}
|
|
|
|
func (o *GetGenresLibraryResponse) GetObject() *GetGenresLibraryResponseBody {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Object
|
|
}
|