Files
plexgo/models/operations/getsearchlibrary.go

380 lines
8.7 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package operations
import (
"net/http"
)
// GetSearchLibraryQueryParamType - 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 GetSearchLibraryQueryParamType int64
const (
GetSearchLibraryQueryParamTypeMovie GetSearchLibraryQueryParamType = 1
GetSearchLibraryQueryParamTypeTvShow GetSearchLibraryQueryParamType = 2
GetSearchLibraryQueryParamTypeSeason GetSearchLibraryQueryParamType = 3
GetSearchLibraryQueryParamTypeEpisode GetSearchLibraryQueryParamType = 4
GetSearchLibraryQueryParamTypeAudio GetSearchLibraryQueryParamType = 8
GetSearchLibraryQueryParamTypeAlbum GetSearchLibraryQueryParamType = 9
GetSearchLibraryQueryParamTypeTrack GetSearchLibraryQueryParamType = 10
)
func (e GetSearchLibraryQueryParamType) ToPointer() *GetSearchLibraryQueryParamType {
return &e
}
type GetSearchLibraryRequest 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 GetSearchLibraryQueryParamType `queryParam:"style=form,explode=true,name=type"`
}
func (o *GetSearchLibraryRequest) GetSectionKey() int {
if o == nil {
return 0
}
return o.SectionKey
}
func (o *GetSearchLibraryRequest) GetType() GetSearchLibraryQueryParamType {
if o == nil {
return GetSearchLibraryQueryParamType(0)
}
return o.Type
}
type GetSearchLibraryMetadata struct {
RatingKey *string `json:"ratingKey,omitempty"`
Key *string `json:"key,omitempty"`
ParentRatingKey *string `json:"parentRatingKey,omitempty"`
GUID *string `json:"guid,omitempty"`
ParentGUID *string `json:"parentGuid,omitempty"`
ParentStudio *string `json:"parentStudio,omitempty"`
Type *string `json:"type,omitempty"`
Title *string `json:"title,omitempty"`
ParentKey *string `json:"parentKey,omitempty"`
ParentTitle *string `json:"parentTitle,omitempty"`
Summary *string `json:"summary,omitempty"`
Index *int `json:"index,omitempty"`
ParentIndex *int `json:"parentIndex,omitempty"`
ParentYear *int `json:"parentYear,omitempty"`
Thumb *string `json:"thumb,omitempty"`
Art *string `json:"art,omitempty"`
ParentThumb *string `json:"parentThumb,omitempty"`
ParentTheme *string `json:"parentTheme,omitempty"`
AddedAt *int `json:"addedAt,omitempty"`
UpdatedAt *int `json:"updatedAt,omitempty"`
}
func (o *GetSearchLibraryMetadata) GetRatingKey() *string {
if o == nil {
return nil
}
return o.RatingKey
}
func (o *GetSearchLibraryMetadata) GetKey() *string {
if o == nil {
return nil
}
return o.Key
}
func (o *GetSearchLibraryMetadata) GetParentRatingKey() *string {
if o == nil {
return nil
}
return o.ParentRatingKey
}
func (o *GetSearchLibraryMetadata) GetGUID() *string {
if o == nil {
return nil
}
return o.GUID
}
func (o *GetSearchLibraryMetadata) GetParentGUID() *string {
if o == nil {
return nil
}
return o.ParentGUID
}
func (o *GetSearchLibraryMetadata) GetParentStudio() *string {
if o == nil {
return nil
}
return o.ParentStudio
}
func (o *GetSearchLibraryMetadata) GetType() *string {
if o == nil {
return nil
}
return o.Type
}
func (o *GetSearchLibraryMetadata) GetTitle() *string {
if o == nil {
return nil
}
return o.Title
}
func (o *GetSearchLibraryMetadata) GetParentKey() *string {
if o == nil {
return nil
}
return o.ParentKey
}
func (o *GetSearchLibraryMetadata) GetParentTitle() *string {
if o == nil {
return nil
}
return o.ParentTitle
}
func (o *GetSearchLibraryMetadata) GetSummary() *string {
if o == nil {
return nil
}
return o.Summary
}
func (o *GetSearchLibraryMetadata) GetIndex() *int {
if o == nil {
return nil
}
return o.Index
}
func (o *GetSearchLibraryMetadata) GetParentIndex() *int {
if o == nil {
return nil
}
return o.ParentIndex
}
func (o *GetSearchLibraryMetadata) GetParentYear() *int {
if o == nil {
return nil
}
return o.ParentYear
}
func (o *GetSearchLibraryMetadata) GetThumb() *string {
if o == nil {
return nil
}
return o.Thumb
}
func (o *GetSearchLibraryMetadata) GetArt() *string {
if o == nil {
return nil
}
return o.Art
}
func (o *GetSearchLibraryMetadata) GetParentThumb() *string {
if o == nil {
return nil
}
return o.ParentThumb
}
func (o *GetSearchLibraryMetadata) GetParentTheme() *string {
if o == nil {
return nil
}
return o.ParentTheme
}
func (o *GetSearchLibraryMetadata) GetAddedAt() *int {
if o == nil {
return nil
}
return o.AddedAt
}
func (o *GetSearchLibraryMetadata) GetUpdatedAt() *int {
if o == nil {
return nil
}
return o.UpdatedAt
}
type GetSearchLibraryMediaContainer struct {
Size *int `json:"size,omitempty"`
AllowSync *bool `json:"allowSync,omitempty"`
Art *string `json:"art,omitempty"`
Identifier *string `json:"identifier,omitempty"`
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
MediaTagVersion *int `json:"mediaTagVersion,omitempty"`
Nocache *bool `json:"nocache,omitempty"`
Thumb *string `json:"thumb,omitempty"`
Title1 *string `json:"title1,omitempty"`
Title2 *string `json:"title2,omitempty"`
ViewGroup *string `json:"viewGroup,omitempty"`
ViewMode *int `json:"viewMode,omitempty"`
Metadata []GetSearchLibraryMetadata `json:"Metadata,omitempty"`
}
func (o *GetSearchLibraryMediaContainer) GetSize() *int {
if o == nil {
return nil
}
return o.Size
}
func (o *GetSearchLibraryMediaContainer) GetAllowSync() *bool {
if o == nil {
return nil
}
return o.AllowSync
}
func (o *GetSearchLibraryMediaContainer) GetArt() *string {
if o == nil {
return nil
}
return o.Art
}
func (o *GetSearchLibraryMediaContainer) GetIdentifier() *string {
if o == nil {
return nil
}
return o.Identifier
}
func (o *GetSearchLibraryMediaContainer) GetMediaTagPrefix() *string {
if o == nil {
return nil
}
return o.MediaTagPrefix
}
func (o *GetSearchLibraryMediaContainer) GetMediaTagVersion() *int {
if o == nil {
return nil
}
return o.MediaTagVersion
}
func (o *GetSearchLibraryMediaContainer) GetNocache() *bool {
if o == nil {
return nil
}
return o.Nocache
}
func (o *GetSearchLibraryMediaContainer) GetThumb() *string {
if o == nil {
return nil
}
return o.Thumb
}
func (o *GetSearchLibraryMediaContainer) GetTitle1() *string {
if o == nil {
return nil
}
return o.Title1
}
func (o *GetSearchLibraryMediaContainer) GetTitle2() *string {
if o == nil {
return nil
}
return o.Title2
}
func (o *GetSearchLibraryMediaContainer) GetViewGroup() *string {
if o == nil {
return nil
}
return o.ViewGroup
}
func (o *GetSearchLibraryMediaContainer) GetViewMode() *int {
if o == nil {
return nil
}
return o.ViewMode
}
func (o *GetSearchLibraryMediaContainer) GetMetadata() []GetSearchLibraryMetadata {
if o == nil {
return nil
}
return o.Metadata
}
// GetSearchLibraryResponseBody - The contents of the library by section and type
type GetSearchLibraryResponseBody struct {
MediaContainer *GetSearchLibraryMediaContainer `json:"MediaContainer,omitempty"`
}
func (o *GetSearchLibraryResponseBody) GetMediaContainer() *GetSearchLibraryMediaContainer {
if o == nil {
return nil
}
return o.MediaContainer
}
type GetSearchLibraryResponse 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 contents of the library by section and type
Object *GetSearchLibraryResponseBody
}
func (o *GetSearchLibraryResponse) GetContentType() string {
if o == nil {
return ""
}
return o.ContentType
}
func (o *GetSearchLibraryResponse) GetStatusCode() int {
if o == nil {
return 0
}
return o.StatusCode
}
func (o *GetSearchLibraryResponse) GetRawResponse() *http.Response {
if o == nil {
return nil
}
return o.RawResponse
}
func (o *GetSearchLibraryResponse) GetObject() *GetSearchLibraryResponseBody {
if o == nil {
return nil
}
return o.Object
}