mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 04:20:46 +00:00
1232 lines
28 KiB
Go
1232 lines
28 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"github.com/LukeHagar/plexgo/internal/utils"
|
|
"github.com/LukeHagar/plexgo/types"
|
|
"net/http"
|
|
)
|
|
|
|
type GetMetaDataByRatingKeyRequest struct {
|
|
// the id of the library item to return the children of.
|
|
RatingKey int64 `pathParam:"style=simple,explode=false,name=ratingKey"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyRequest) GetRatingKey() int64 {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.RatingKey
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyStream struct {
|
|
ID *int `json:"id,omitempty"`
|
|
StreamType *int `json:"streamType,omitempty"`
|
|
Default *bool `json:"default,omitempty"`
|
|
Codec *string `json:"codec,omitempty"`
|
|
Index *int `json:"index,omitempty"`
|
|
Bitrate *int `json:"bitrate,omitempty"`
|
|
BitDepth *int `json:"bitDepth,omitempty"`
|
|
ChromaLocation *string `json:"chromaLocation,omitempty"`
|
|
ChromaSubsampling *string `json:"chromaSubsampling,omitempty"`
|
|
CodedHeight *int `json:"codedHeight,omitempty"`
|
|
CodedWidth *int `json:"codedWidth,omitempty"`
|
|
ColorPrimaries *string `json:"colorPrimaries,omitempty"`
|
|
ColorRange *string `json:"colorRange,omitempty"`
|
|
ColorSpace *string `json:"colorSpace,omitempty"`
|
|
ColorTrc *string `json:"colorTrc,omitempty"`
|
|
FrameRate *int `json:"frameRate,omitempty"`
|
|
HasScalingMatrix *bool `json:"hasScalingMatrix,omitempty"`
|
|
Height *int `json:"height,omitempty"`
|
|
Level *int `json:"level,omitempty"`
|
|
Profile *string `json:"profile,omitempty"`
|
|
RefFrames *int `json:"refFrames,omitempty"`
|
|
ScanType *string `json:"scanType,omitempty"`
|
|
StreamIdentifier *string `json:"streamIdentifier,omitempty"`
|
|
Width *int `json:"width,omitempty"`
|
|
DisplayTitle *string `json:"displayTitle,omitempty"`
|
|
ExtendedDisplayTitle *string `json:"extendedDisplayTitle,omitempty"`
|
|
Selected *bool `json:"selected,omitempty"`
|
|
Channels *int `json:"channels,omitempty"`
|
|
Language *string `json:"language,omitempty"`
|
|
LanguageTag *string `json:"languageTag,omitempty"`
|
|
LanguageCode *string `json:"languageCode,omitempty"`
|
|
SamplingRate *int `json:"samplingRate,omitempty"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetStreamType() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.StreamType
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetDefault() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Default
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetCodec() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Codec
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetIndex() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Index
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetBitrate() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Bitrate
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetBitDepth() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.BitDepth
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetChromaLocation() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ChromaLocation
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetChromaSubsampling() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ChromaSubsampling
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetCodedHeight() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.CodedHeight
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetCodedWidth() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.CodedWidth
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetColorPrimaries() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ColorPrimaries
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetColorRange() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ColorRange
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetColorSpace() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ColorSpace
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetColorTrc() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ColorTrc
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetFrameRate() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.FrameRate
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetHasScalingMatrix() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.HasScalingMatrix
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetHeight() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Height
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetLevel() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Level
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetProfile() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Profile
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetRefFrames() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.RefFrames
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetScanType() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ScanType
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetStreamIdentifier() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.StreamIdentifier
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetWidth() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Width
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetDisplayTitle() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.DisplayTitle
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetExtendedDisplayTitle() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ExtendedDisplayTitle
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetSelected() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Selected
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetChannels() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Channels
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetLanguage() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Language
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetLanguageTag() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.LanguageTag
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetLanguageCode() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.LanguageCode
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyStream) GetSamplingRate() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.SamplingRate
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyPart struct {
|
|
ID *int `json:"id,omitempty"`
|
|
Key *string `json:"key,omitempty"`
|
|
Duration *int `json:"duration,omitempty"`
|
|
File *string `json:"file,omitempty"`
|
|
Size *int `json:"size,omitempty"`
|
|
AudioProfile *string `json:"audioProfile,omitempty"`
|
|
Container *string `json:"container,omitempty"`
|
|
Has64bitOffsets *bool `json:"has64bitOffsets,omitempty"`
|
|
OptimizedForStreaming *bool `json:"optimizedForStreaming,omitempty"`
|
|
VideoProfile *string `json:"videoProfile,omitempty"`
|
|
Stream []GetMetaDataByRatingKeyStream `json:"Stream,omitempty"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetKey() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Key
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetDuration() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Duration
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetFile() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.File
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetSize() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Size
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetAudioProfile() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AudioProfile
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetContainer() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Container
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetHas64bitOffsets() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Has64bitOffsets
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetOptimizedForStreaming() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.OptimizedForStreaming
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetVideoProfile() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.VideoProfile
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyPart) GetStream() []GetMetaDataByRatingKeyStream {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Stream
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyMedia struct {
|
|
ID *int `json:"id,omitempty"`
|
|
Duration *int `json:"duration,omitempty"`
|
|
Bitrate *int `json:"bitrate,omitempty"`
|
|
Width *int `json:"width,omitempty"`
|
|
Height *int `json:"height,omitempty"`
|
|
AspectRatio *float64 `json:"aspectRatio,omitempty"`
|
|
AudioChannels *int `json:"audioChannels,omitempty"`
|
|
AudioCodec *string `json:"audioCodec,omitempty"`
|
|
VideoCodec *string `json:"videoCodec,omitempty"`
|
|
VideoResolution *string `json:"videoResolution,omitempty"`
|
|
Container *string `json:"container,omitempty"`
|
|
VideoFrameRate *string `json:"videoFrameRate,omitempty"`
|
|
OptimizedForStreaming *int `json:"optimizedForStreaming,omitempty"`
|
|
AudioProfile *string `json:"audioProfile,omitempty"`
|
|
Has64bitOffsets *bool `json:"has64bitOffsets,omitempty"`
|
|
VideoProfile *string `json:"videoProfile,omitempty"`
|
|
Part []GetMetaDataByRatingKeyPart `json:"Part,omitempty"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetDuration() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Duration
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetBitrate() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Bitrate
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetWidth() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Width
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetHeight() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Height
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetAspectRatio() *float64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AspectRatio
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetAudioChannels() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AudioChannels
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetAudioCodec() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AudioCodec
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetVideoCodec() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.VideoCodec
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetVideoResolution() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.VideoResolution
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetContainer() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Container
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetVideoFrameRate() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.VideoFrameRate
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetOptimizedForStreaming() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.OptimizedForStreaming
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetAudioProfile() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AudioProfile
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetHas64bitOffsets() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Has64bitOffsets
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetVideoProfile() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.VideoProfile
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMedia) GetPart() []GetMetaDataByRatingKeyPart {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Part
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyGenre struct {
|
|
ID *int `json:"id,omitempty"`
|
|
Filter *string `json:"filter,omitempty"`
|
|
Tag *string `json:"tag,omitempty"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyGenre) GetID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyGenre) GetFilter() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Filter
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyGenre) GetTag() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Tag
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyCountry struct {
|
|
ID *int `json:"id,omitempty"`
|
|
Filter *string `json:"filter,omitempty"`
|
|
Tag *string `json:"tag,omitempty"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyCountry) GetID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyCountry) GetFilter() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Filter
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyCountry) GetTag() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Tag
|
|
}
|
|
|
|
type Guids struct {
|
|
ID *string `json:"id,omitempty"`
|
|
}
|
|
|
|
func (o *Guids) GetID() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
type Ratings struct {
|
|
Image *string `json:"image,omitempty"`
|
|
Value *float64 `json:"value,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
}
|
|
|
|
func (o *Ratings) GetImage() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Image
|
|
}
|
|
|
|
func (o *Ratings) GetValue() *float64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Value
|
|
}
|
|
|
|
func (o *Ratings) GetType() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Type
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyDirector struct {
|
|
ID *int `json:"id,omitempty"`
|
|
Filter *string `json:"filter,omitempty"`
|
|
Tag *string `json:"tag,omitempty"`
|
|
TagKey *string `json:"tagKey,omitempty"`
|
|
Thumb *string `json:"thumb,omitempty"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyDirector) GetID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyDirector) GetFilter() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Filter
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyDirector) GetTag() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Tag
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyDirector) GetTagKey() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.TagKey
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyDirector) GetThumb() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Thumb
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyWriter struct {
|
|
ID *int `json:"id,omitempty"`
|
|
Filter *string `json:"filter,omitempty"`
|
|
Tag *string `json:"tag,omitempty"`
|
|
TagKey *string `json:"tagKey,omitempty"`
|
|
Thumb *string `json:"thumb,omitempty"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyWriter) GetID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyWriter) GetFilter() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Filter
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyWriter) GetTag() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Tag
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyWriter) GetTagKey() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.TagKey
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyWriter) GetThumb() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Thumb
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyRole struct {
|
|
ID *int `json:"id,omitempty"`
|
|
Filter *string `json:"filter,omitempty"`
|
|
Tag *string `json:"tag,omitempty"`
|
|
TagKey *string `json:"tagKey,omitempty"`
|
|
Role *string `json:"role,omitempty"`
|
|
Thumb *string `json:"thumb,omitempty"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyRole) GetID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyRole) GetFilter() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Filter
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyRole) GetTag() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Tag
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyRole) GetTagKey() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.TagKey
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyRole) GetRole() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Role
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyRole) GetThumb() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Thumb
|
|
}
|
|
|
|
type Producer struct {
|
|
ID *int `json:"id,omitempty"`
|
|
Filter *string `json:"filter,omitempty"`
|
|
Tag *string `json:"tag,omitempty"`
|
|
TagKey *string `json:"tagKey,omitempty"`
|
|
Thumb *string `json:"thumb,omitempty"`
|
|
}
|
|
|
|
func (o *Producer) GetID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *Producer) GetFilter() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Filter
|
|
}
|
|
|
|
func (o *Producer) GetTag() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Tag
|
|
}
|
|
|
|
func (o *Producer) GetTagKey() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.TagKey
|
|
}
|
|
|
|
func (o *Producer) GetThumb() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Thumb
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyMetadata struct {
|
|
RatingKey *string `json:"ratingKey,omitempty"`
|
|
Key *string `json:"key,omitempty"`
|
|
GUID *string `json:"guid,omitempty"`
|
|
Studio *string `json:"studio,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
Title *string `json:"title,omitempty"`
|
|
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
|
LibrarySectionID *int `json:"librarySectionID,omitempty"`
|
|
LibrarySectionKey *string `json:"librarySectionKey,omitempty"`
|
|
// The name of the album artist for the track when audio, and the name of the TV show for the episode when video.
|
|
GrandparentTitle *string `json:"grandparentTitle,omitempty"`
|
|
// The name of the album for the track when audio, and the name of the season for the episode when TV show.
|
|
ParentTitle *string `json:"parentTitle,omitempty"`
|
|
// The orginal untranslated name of the media item when non-english.
|
|
OriginalTitle *string `json:"originalTitle,omitempty"`
|
|
// The index starting from 0 of this media item in the MetaData array.
|
|
Index *int64 `json:"index,omitempty"`
|
|
// The parent index starting from 0 of this media item in the parent MetaData array.
|
|
ParentIndex *int64 `json:"parentIndex,omitempty"`
|
|
ContentRating *string `json:"contentRating,omitempty"`
|
|
Summary *string `json:"summary,omitempty"`
|
|
Rating *float64 `json:"rating,omitempty"`
|
|
AudienceRating *float64 `json:"audienceRating,omitempty"`
|
|
Year *int `json:"year,omitempty"`
|
|
Tagline *string `json:"tagline,omitempty"`
|
|
Thumb *string `json:"thumb,omitempty"`
|
|
Art *string `json:"art,omitempty"`
|
|
Duration *int `json:"duration,omitempty"`
|
|
OriginallyAvailableAt *types.Date `json:"originallyAvailableAt,omitempty"`
|
|
AddedAt *int `json:"addedAt,omitempty"`
|
|
UpdatedAt *int `json:"updatedAt,omitempty"`
|
|
AudienceRatingImage *string `json:"audienceRatingImage,omitempty"`
|
|
HasPremiumPrimaryExtra *string `json:"hasPremiumPrimaryExtra,omitempty"`
|
|
RatingImage *string `json:"ratingImage,omitempty"`
|
|
Media []GetMetaDataByRatingKeyMedia `json:"Media,omitempty"`
|
|
Genre []GetMetaDataByRatingKeyGenre `json:"Genre,omitempty"`
|
|
Country []GetMetaDataByRatingKeyCountry `json:"Country,omitempty"`
|
|
Guids []Guids `json:"Guid,omitempty"`
|
|
Ratings []Ratings `json:"Rating,omitempty"`
|
|
Director []GetMetaDataByRatingKeyDirector `json:"Director,omitempty"`
|
|
Writer []GetMetaDataByRatingKeyWriter `json:"Writer,omitempty"`
|
|
Role []GetMetaDataByRatingKeyRole `json:"Role,omitempty"`
|
|
Producer []Producer `json:"Producer,omitempty"`
|
|
}
|
|
|
|
func (g GetMetaDataByRatingKeyMetadata) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(g, "", false)
|
|
}
|
|
|
|
func (g *GetMetaDataByRatingKeyMetadata) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetRatingKey() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.RatingKey
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetKey() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Key
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetGUID() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.GUID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetStudio() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Studio
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetType() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Type
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetTitle() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Title
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetLibrarySectionTitle() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.LibrarySectionTitle
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetLibrarySectionID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.LibrarySectionID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetLibrarySectionKey() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.LibrarySectionKey
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetGrandparentTitle() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.GrandparentTitle
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetParentTitle() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ParentTitle
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetOriginalTitle() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.OriginalTitle
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetIndex() *int64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Index
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetParentIndex() *int64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ParentIndex
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetContentRating() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ContentRating
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetSummary() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Summary
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetRating() *float64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Rating
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetAudienceRating() *float64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AudienceRating
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetYear() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Year
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetTagline() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Tagline
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetThumb() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Thumb
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetArt() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Art
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetDuration() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Duration
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetOriginallyAvailableAt() *types.Date {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.OriginallyAvailableAt
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetAddedAt() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AddedAt
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetUpdatedAt() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.UpdatedAt
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetAudienceRatingImage() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AudienceRatingImage
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetHasPremiumPrimaryExtra() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.HasPremiumPrimaryExtra
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetRatingImage() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.RatingImage
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetMedia() []GetMetaDataByRatingKeyMedia {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Media
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetGenre() []GetMetaDataByRatingKeyGenre {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Genre
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetCountry() []GetMetaDataByRatingKeyCountry {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Country
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetGuids() []Guids {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Guids
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetRatings() []Ratings {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Ratings
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetDirector() []GetMetaDataByRatingKeyDirector {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Director
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetWriter() []GetMetaDataByRatingKeyWriter {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Writer
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetRole() []GetMetaDataByRatingKeyRole {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Role
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMetadata) GetProducer() []Producer {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Producer
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyMediaContainer struct {
|
|
Size *int `json:"size,omitempty"`
|
|
AllowSync *bool `json:"allowSync,omitempty"`
|
|
Identifier *string `json:"identifier,omitempty"`
|
|
LibrarySectionID *int `json:"librarySectionID,omitempty"`
|
|
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
|
|
LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"`
|
|
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
|
|
MediaTagVersion *int `json:"mediaTagVersion,omitempty"`
|
|
Metadata []GetMetaDataByRatingKeyMetadata `json:"Metadata,omitempty"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMediaContainer) GetSize() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Size
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMediaContainer) GetAllowSync() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AllowSync
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMediaContainer) GetIdentifier() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Identifier
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMediaContainer) GetLibrarySectionID() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.LibrarySectionID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMediaContainer) GetLibrarySectionTitle() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.LibrarySectionTitle
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMediaContainer) GetLibrarySectionUUID() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.LibrarySectionUUID
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMediaContainer) GetMediaTagPrefix() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.MediaTagPrefix
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMediaContainer) GetMediaTagVersion() *int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.MediaTagVersion
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyMediaContainer) GetMetadata() []GetMetaDataByRatingKeyMetadata {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Metadata
|
|
}
|
|
|
|
// GetMetaDataByRatingKeyResponseBody - The metadata of the library item.
|
|
type GetMetaDataByRatingKeyResponseBody struct {
|
|
MediaContainer *GetMetaDataByRatingKeyMediaContainer `json:"MediaContainer,omitempty"`
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyResponseBody) GetMediaContainer() *GetMetaDataByRatingKeyMediaContainer {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.MediaContainer
|
|
}
|
|
|
|
type GetMetaDataByRatingKeyResponse 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
|
|
// The metadata of the library item.
|
|
Object *GetMetaDataByRatingKeyResponseBody
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyResponse) GetContentType() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.ContentType
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyResponse) GetStatusCode() int {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.StatusCode
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyResponse) GetRawResponse() *http.Response {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.RawResponse
|
|
}
|
|
|
|
func (o *GetMetaDataByRatingKeyResponse) GetObject() *GetMetaDataByRatingKeyResponseBody {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Object
|
|
}
|