// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations import ( "net/http" ) type GetMetadataChildrenRequest struct { // the id of the library item to return the children of. RatingKey float64 `pathParam:"style=simple,explode=false,name=ratingKey"` // Adds additional elements to the response. Supported types are (Stream) // IncludeElements *string `queryParam:"style=form,explode=true,name=includeElements"` } func (g *GetMetadataChildrenRequest) GetRatingKey() float64 { if g == nil { return 0.0 } return g.RatingKey } func (g *GetMetadataChildrenRequest) GetIncludeElements() *string { if g == nil { return nil } return g.IncludeElements } type GetMetadataChildrenDirectory struct { LeafCount *int `json:"leafCount,omitempty"` Thumb *string `json:"thumb,omitempty"` ViewedLeafCount *int `json:"viewedLeafCount,omitempty"` Key *string `json:"key,omitempty"` Title *string `json:"title,omitempty"` } func (g *GetMetadataChildrenDirectory) GetLeafCount() *int { if g == nil { return nil } return g.LeafCount } func (g *GetMetadataChildrenDirectory) GetThumb() *string { if g == nil { return nil } return g.Thumb } func (g *GetMetadataChildrenDirectory) GetViewedLeafCount() *int { if g == nil { return nil } return g.ViewedLeafCount } func (g *GetMetadataChildrenDirectory) GetKey() *string { if g == nil { return nil } return g.Key } func (g *GetMetadataChildrenDirectory) GetTitle() *string { if g == nil { return nil } return g.Title } type GetMetadataChildrenMetadata 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"` ViewCount *int `json:"viewCount,omitempty"` LastViewedAt *int `json:"lastViewedAt,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"` LeafCount *int `json:"leafCount,omitempty"` ViewedLeafCount *int `json:"viewedLeafCount,omitempty"` AddedAt *int `json:"addedAt,omitempty"` UpdatedAt *int `json:"updatedAt,omitempty"` UserRating *int `json:"userRating,omitempty"` SkipCount *int `json:"skipCount,omitempty"` LastRatedAt *int `json:"lastRatedAt,omitempty"` } func (g *GetMetadataChildrenMetadata) GetRatingKey() *string { if g == nil { return nil } return g.RatingKey } func (g *GetMetadataChildrenMetadata) GetKey() *string { if g == nil { return nil } return g.Key } func (g *GetMetadataChildrenMetadata) GetParentRatingKey() *string { if g == nil { return nil } return g.ParentRatingKey } func (g *GetMetadataChildrenMetadata) GetGUID() *string { if g == nil { return nil } return g.GUID } func (g *GetMetadataChildrenMetadata) GetParentGUID() *string { if g == nil { return nil } return g.ParentGUID } func (g *GetMetadataChildrenMetadata) GetParentStudio() *string { if g == nil { return nil } return g.ParentStudio } func (g *GetMetadataChildrenMetadata) GetType() *string { if g == nil { return nil } return g.Type } func (g *GetMetadataChildrenMetadata) GetTitle() *string { if g == nil { return nil } return g.Title } func (g *GetMetadataChildrenMetadata) GetParentKey() *string { if g == nil { return nil } return g.ParentKey } func (g *GetMetadataChildrenMetadata) GetParentTitle() *string { if g == nil { return nil } return g.ParentTitle } func (g *GetMetadataChildrenMetadata) GetSummary() *string { if g == nil { return nil } return g.Summary } func (g *GetMetadataChildrenMetadata) GetIndex() *int { if g == nil { return nil } return g.Index } func (g *GetMetadataChildrenMetadata) GetParentIndex() *int { if g == nil { return nil } return g.ParentIndex } func (g *GetMetadataChildrenMetadata) GetViewCount() *int { if g == nil { return nil } return g.ViewCount } func (g *GetMetadataChildrenMetadata) GetLastViewedAt() *int { if g == nil { return nil } return g.LastViewedAt } func (g *GetMetadataChildrenMetadata) GetParentYear() *int { if g == nil { return nil } return g.ParentYear } func (g *GetMetadataChildrenMetadata) GetThumb() *string { if g == nil { return nil } return g.Thumb } func (g *GetMetadataChildrenMetadata) GetArt() *string { if g == nil { return nil } return g.Art } func (g *GetMetadataChildrenMetadata) GetParentThumb() *string { if g == nil { return nil } return g.ParentThumb } func (g *GetMetadataChildrenMetadata) GetParentTheme() *string { if g == nil { return nil } return g.ParentTheme } func (g *GetMetadataChildrenMetadata) GetLeafCount() *int { if g == nil { return nil } return g.LeafCount } func (g *GetMetadataChildrenMetadata) GetViewedLeafCount() *int { if g == nil { return nil } return g.ViewedLeafCount } func (g *GetMetadataChildrenMetadata) GetAddedAt() *int { if g == nil { return nil } return g.AddedAt } func (g *GetMetadataChildrenMetadata) GetUpdatedAt() *int { if g == nil { return nil } return g.UpdatedAt } func (g *GetMetadataChildrenMetadata) GetUserRating() *int { if g == nil { return nil } return g.UserRating } func (g *GetMetadataChildrenMetadata) GetSkipCount() *int { if g == nil { return nil } return g.SkipCount } func (g *GetMetadataChildrenMetadata) GetLastRatedAt() *int { if g == nil { return nil } return g.LastRatedAt } type GetMetadataChildrenMediaContainer struct { Size *int `json:"size,omitempty"` AllowSync *bool `json:"allowSync,omitempty"` Art *string `json:"art,omitempty"` Identifier *string `json:"identifier,omitempty"` Key *string `json:"key,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"` Nocache *bool `json:"nocache,omitempty"` ParentIndex *int `json:"parentIndex,omitempty"` ParentTitle *string `json:"parentTitle,omitempty"` ParentYear *int `json:"parentYear,omitempty"` Summary *string `json:"summary,omitempty"` Theme *string `json:"theme,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"` Directory []GetMetadataChildrenDirectory `json:"Directory,omitempty"` Metadata []GetMetadataChildrenMetadata `json:"Metadata,omitempty"` } func (g *GetMetadataChildrenMediaContainer) GetSize() *int { if g == nil { return nil } return g.Size } func (g *GetMetadataChildrenMediaContainer) GetAllowSync() *bool { if g == nil { return nil } return g.AllowSync } func (g *GetMetadataChildrenMediaContainer) GetArt() *string { if g == nil { return nil } return g.Art } func (g *GetMetadataChildrenMediaContainer) GetIdentifier() *string { if g == nil { return nil } return g.Identifier } func (g *GetMetadataChildrenMediaContainer) GetKey() *string { if g == nil { return nil } return g.Key } func (g *GetMetadataChildrenMediaContainer) GetLibrarySectionID() *int { if g == nil { return nil } return g.LibrarySectionID } func (g *GetMetadataChildrenMediaContainer) GetLibrarySectionTitle() *string { if g == nil { return nil } return g.LibrarySectionTitle } func (g *GetMetadataChildrenMediaContainer) GetLibrarySectionUUID() *string { if g == nil { return nil } return g.LibrarySectionUUID } func (g *GetMetadataChildrenMediaContainer) GetMediaTagPrefix() *string { if g == nil { return nil } return g.MediaTagPrefix } func (g *GetMetadataChildrenMediaContainer) GetMediaTagVersion() *int { if g == nil { return nil } return g.MediaTagVersion } func (g *GetMetadataChildrenMediaContainer) GetNocache() *bool { if g == nil { return nil } return g.Nocache } func (g *GetMetadataChildrenMediaContainer) GetParentIndex() *int { if g == nil { return nil } return g.ParentIndex } func (g *GetMetadataChildrenMediaContainer) GetParentTitle() *string { if g == nil { return nil } return g.ParentTitle } func (g *GetMetadataChildrenMediaContainer) GetParentYear() *int { if g == nil { return nil } return g.ParentYear } func (g *GetMetadataChildrenMediaContainer) GetSummary() *string { if g == nil { return nil } return g.Summary } func (g *GetMetadataChildrenMediaContainer) GetTheme() *string { if g == nil { return nil } return g.Theme } func (g *GetMetadataChildrenMediaContainer) GetThumb() *string { if g == nil { return nil } return g.Thumb } func (g *GetMetadataChildrenMediaContainer) GetTitle1() *string { if g == nil { return nil } return g.Title1 } func (g *GetMetadataChildrenMediaContainer) GetTitle2() *string { if g == nil { return nil } return g.Title2 } func (g *GetMetadataChildrenMediaContainer) GetViewGroup() *string { if g == nil { return nil } return g.ViewGroup } func (g *GetMetadataChildrenMediaContainer) GetViewMode() *int { if g == nil { return nil } return g.ViewMode } func (g *GetMetadataChildrenMediaContainer) GetDirectory() []GetMetadataChildrenDirectory { if g == nil { return nil } return g.Directory } func (g *GetMetadataChildrenMediaContainer) GetMetadata() []GetMetadataChildrenMetadata { if g == nil { return nil } return g.Metadata } // GetMetadataChildrenResponseBody - The children of the library item. type GetMetadataChildrenResponseBody struct { MediaContainer *GetMetadataChildrenMediaContainer `json:"MediaContainer,omitempty"` } func (g *GetMetadataChildrenResponseBody) GetMediaContainer() *GetMetadataChildrenMediaContainer { if g == nil { return nil } return g.MediaContainer } type GetMetadataChildrenResponse 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 children of the library item. Object *GetMetadataChildrenResponseBody } func (g *GetMetadataChildrenResponse) GetContentType() string { if g == nil { return "" } return g.ContentType } func (g *GetMetadataChildrenResponse) GetStatusCode() int { if g == nil { return 0 } return g.StatusCode } func (g *GetMetadataChildrenResponse) GetRawResponse() *http.Response { if g == nil { return nil } return g.RawResponse } func (g *GetMetadataChildrenResponse) GetObject() *GetMetadataChildrenResponseBody { if g == nil { return nil } return g.Object }