Files
plexgo/models/operations/getrecentlyaddedlibrary.go

1151 lines
26 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package operations
import (
"encoding/json"
"fmt"
"github.com/LukeHagar/plexgo/internal/utils"
"net/http"
"time"
)
// QueryParamType - The type of media to retrieve.
// 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 QueryParamType int64
const (
QueryParamTypeMovie QueryParamType = 1
QueryParamTypeTvShow QueryParamType = 2
QueryParamTypeSeason QueryParamType = 3
QueryParamTypeEpisode QueryParamType = 4
QueryParamTypeAudio QueryParamType = 8
QueryParamTypeAlbum QueryParamType = 9
QueryParamTypeTrack QueryParamType = 10
)
func (e QueryParamType) ToPointer() *QueryParamType {
return &e
}
func (e *QueryParamType) UnmarshalJSON(data []byte) error {
var v int64
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case 1:
fallthrough
case 2:
fallthrough
case 3:
fallthrough
case 4:
fallthrough
case 8:
fallthrough
case 9:
fallthrough
case 10:
*e = QueryParamType(v)
return nil
default:
return fmt.Errorf("invalid value for QueryParamType: %v", v)
}
}
// QueryParamIncludeMeta - Adds the Meta object to the response
type QueryParamIncludeMeta int
const (
QueryParamIncludeMetaDisable QueryParamIncludeMeta = 0
QueryParamIncludeMetaEnable QueryParamIncludeMeta = 1
)
func (e QueryParamIncludeMeta) ToPointer() *QueryParamIncludeMeta {
return &e
}
func (e *QueryParamIncludeMeta) UnmarshalJSON(data []byte) error {
var v int
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case 0:
fallthrough
case 1:
*e = QueryParamIncludeMeta(v)
return nil
default:
return fmt.Errorf("invalid value for QueryParamIncludeMeta: %v", v)
}
}
type GetRecentlyAddedLibraryRequest struct {
ContentDirectoryID *int64 `queryParam:"style=form,explode=true,name=contentDirectoryID"`
PinnedContentDirectoryID []int64 `queryParam:"style=form,explode=true,name=pinnedContentDirectoryID"`
// The library section ID for filtering content.
SectionID *int64 `queryParam:"style=form,explode=true,name=sectionID"`
// The type of media to retrieve.
// 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 QueryParamType `queryParam:"style=form,explode=true,name=type"`
// Adds the Meta object to the response
//
IncludeMeta *QueryParamIncludeMeta `default:"0" queryParam:"style=form,explode=true,name=includeMeta"`
// The index of the first item to return. If not specified, the first item will be returned.
// If the number of items exceeds the limit, the response will be paginated.
// By default this is 0
//
XPlexContainerStart *int `default:"0" queryParam:"style=form,explode=true,name=X-Plex-Container-Start"`
// The number of items to return. If not specified, all items will be returned.
// If the number of items exceeds the limit, the response will be paginated.
// By default this is 50
//
XPlexContainerSize *int `default:"50" queryParam:"style=form,explode=true,name=X-Plex-Container-Size"`
}
func (g GetRecentlyAddedLibraryRequest) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(g, "", false)
}
func (g *GetRecentlyAddedLibraryRequest) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
return err
}
return nil
}
func (o *GetRecentlyAddedLibraryRequest) GetContentDirectoryID() *int64 {
if o == nil {
return nil
}
return o.ContentDirectoryID
}
func (o *GetRecentlyAddedLibraryRequest) GetPinnedContentDirectoryID() []int64 {
if o == nil {
return nil
}
return o.PinnedContentDirectoryID
}
func (o *GetRecentlyAddedLibraryRequest) GetSectionID() *int64 {
if o == nil {
return nil
}
return o.SectionID
}
func (o *GetRecentlyAddedLibraryRequest) GetType() QueryParamType {
if o == nil {
return QueryParamType(0)
}
return o.Type
}
func (o *GetRecentlyAddedLibraryRequest) GetIncludeMeta() *QueryParamIncludeMeta {
if o == nil {
return nil
}
return o.IncludeMeta
}
func (o *GetRecentlyAddedLibraryRequest) GetXPlexContainerStart() *int {
if o == nil {
return nil
}
return o.XPlexContainerStart
}
func (o *GetRecentlyAddedLibraryRequest) GetXPlexContainerSize() *int {
if o == nil {
return nil
}
return o.XPlexContainerSize
}
type GetRecentlyAddedLibraryFilter struct {
Filter string `json:"filter"`
FilterType string `json:"filterType"`
Key string `json:"key"`
Title string `json:"title"`
Type string `json:"type"`
}
func (o *GetRecentlyAddedLibraryFilter) GetFilter() string {
if o == nil {
return ""
}
return o.Filter
}
func (o *GetRecentlyAddedLibraryFilter) GetFilterType() string {
if o == nil {
return ""
}
return o.FilterType
}
func (o *GetRecentlyAddedLibraryFilter) GetKey() string {
if o == nil {
return ""
}
return o.Key
}
func (o *GetRecentlyAddedLibraryFilter) GetTitle() string {
if o == nil {
return ""
}
return o.Title
}
func (o *GetRecentlyAddedLibraryFilter) GetType() string {
if o == nil {
return ""
}
return o.Type
}
// ActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
type ActiveDirection string
const (
ActiveDirectionAscending ActiveDirection = "asc"
ActiveDirectionDescending ActiveDirection = "desc"
)
func (e ActiveDirection) ToPointer() *ActiveDirection {
return &e
}
func (e *ActiveDirection) UnmarshalJSON(data []byte) error {
var v string
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "asc":
fallthrough
case "desc":
*e = ActiveDirection(v)
return nil
default:
return fmt.Errorf("invalid value for ActiveDirection: %v", v)
}
}
// DefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
type DefaultDirection string
const (
DefaultDirectionAscending DefaultDirection = "asc"
DefaultDirectionDescending DefaultDirection = "desc"
)
func (e DefaultDirection) ToPointer() *DefaultDirection {
return &e
}
func (e *DefaultDirection) UnmarshalJSON(data []byte) error {
var v string
if err := json.Unmarshal(data, &v); err != nil {
return err
}
switch v {
case "asc":
fallthrough
case "desc":
*e = DefaultDirection(v)
return nil
default:
return fmt.Errorf("invalid value for DefaultDirection: %v", v)
}
}
type Sort struct {
Default *string `json:"default,omitempty"`
Active *bool `json:"active,omitempty"`
// The direction of the sort. Can be either `asc` or `desc`.
//
ActiveDirection *ActiveDirection `default:"asc" json:"activeDirection"`
// The direction of the sort. Can be either `asc` or `desc`.
//
DefaultDirection *DefaultDirection `default:"asc" json:"defaultDirection"`
DescKey *string `json:"descKey,omitempty"`
FirstCharacterKey *string `json:"firstCharacterKey,omitempty"`
Key string `json:"key"`
Title string `json:"title"`
}
func (s Sort) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(s, "", false)
}
func (s *Sort) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
return err
}
return nil
}
func (o *Sort) GetDefault() *string {
if o == nil {
return nil
}
return o.Default
}
func (o *Sort) GetActive() *bool {
if o == nil {
return nil
}
return o.Active
}
func (o *Sort) GetActiveDirection() *ActiveDirection {
if o == nil {
return nil
}
return o.ActiveDirection
}
func (o *Sort) GetDefaultDirection() *DefaultDirection {
if o == nil {
return nil
}
return o.DefaultDirection
}
func (o *Sort) GetDescKey() *string {
if o == nil {
return nil
}
return o.DescKey
}
func (o *Sort) GetFirstCharacterKey() *string {
if o == nil {
return nil
}
return o.FirstCharacterKey
}
func (o *Sort) GetKey() string {
if o == nil {
return ""
}
return o.Key
}
func (o *Sort) GetTitle() string {
if o == nil {
return ""
}
return o.Title
}
type Field struct {
Key string `json:"key"`
Title string `json:"title"`
Type string `json:"type"`
SubType *string `json:"subType,omitempty"`
}
func (o *Field) GetKey() string {
if o == nil {
return ""
}
return o.Key
}
func (o *Field) GetTitle() string {
if o == nil {
return ""
}
return o.Title
}
func (o *Field) GetType() string {
if o == nil {
return ""
}
return o.Type
}
func (o *Field) GetSubType() *string {
if o == nil {
return nil
}
return o.SubType
}
type GetRecentlyAddedLibraryType struct {
Key string `json:"key"`
Type string `json:"type"`
Title string `json:"title"`
Active bool `json:"active"`
Filter []GetRecentlyAddedLibraryFilter `json:"Filter,omitempty"`
Sort []Sort `json:"Sort,omitempty"`
Field []Field `json:"Field,omitempty"`
}
func (o *GetRecentlyAddedLibraryType) GetKey() string {
if o == nil {
return ""
}
return o.Key
}
func (o *GetRecentlyAddedLibraryType) GetType() string {
if o == nil {
return ""
}
return o.Type
}
func (o *GetRecentlyAddedLibraryType) GetTitle() string {
if o == nil {
return ""
}
return o.Title
}
func (o *GetRecentlyAddedLibraryType) GetActive() bool {
if o == nil {
return false
}
return o.Active
}
func (o *GetRecentlyAddedLibraryType) GetFilter() []GetRecentlyAddedLibraryFilter {
if o == nil {
return nil
}
return o.Filter
}
func (o *GetRecentlyAddedLibraryType) GetSort() []Sort {
if o == nil {
return nil
}
return o.Sort
}
func (o *GetRecentlyAddedLibraryType) GetField() []Field {
if o == nil {
return nil
}
return o.Field
}
type Operator struct {
Key string `json:"key"`
Title string `json:"title"`
}
func (o *Operator) GetKey() string {
if o == nil {
return ""
}
return o.Key
}
func (o *Operator) GetTitle() string {
if o == nil {
return ""
}
return o.Title
}
type FieldType struct {
Type string `json:"type"`
Operator []Operator `json:"Operator"`
}
func (o *FieldType) GetType() string {
if o == nil {
return ""
}
return o.Type
}
func (o *FieldType) GetOperator() []Operator {
if o == nil {
return []Operator{}
}
return o.Operator
}
type GetRecentlyAddedLibraryPart struct {
ID *float64 `json:"id,omitempty"`
Key *string `json:"key,omitempty"`
Duration *float64 `json:"duration,omitempty"`
File *string `json:"file,omitempty"`
Size *float64 `json:"size,omitempty"`
Container *string `json:"container,omitempty"`
Has64bitOffsets *bool `json:"has64bitOffsets,omitempty"`
HasThumbnail *float64 `json:"hasThumbnail,omitempty"`
OptimizedForStreaming *bool `json:"optimizedForStreaming,omitempty"`
VideoProfile *string `json:"videoProfile,omitempty"`
}
func (o *GetRecentlyAddedLibraryPart) GetID() *float64 {
if o == nil {
return nil
}
return o.ID
}
func (o *GetRecentlyAddedLibraryPart) GetKey() *string {
if o == nil {
return nil
}
return o.Key
}
func (o *GetRecentlyAddedLibraryPart) GetDuration() *float64 {
if o == nil {
return nil
}
return o.Duration
}
func (o *GetRecentlyAddedLibraryPart) GetFile() *string {
if o == nil {
return nil
}
return o.File
}
func (o *GetRecentlyAddedLibraryPart) GetSize() *float64 {
if o == nil {
return nil
}
return o.Size
}
func (o *GetRecentlyAddedLibraryPart) GetContainer() *string {
if o == nil {
return nil
}
return o.Container
}
func (o *GetRecentlyAddedLibraryPart) GetHas64bitOffsets() *bool {
if o == nil {
return nil
}
return o.Has64bitOffsets
}
func (o *GetRecentlyAddedLibraryPart) GetHasThumbnail() *float64 {
if o == nil {
return nil
}
return o.HasThumbnail
}
func (o *GetRecentlyAddedLibraryPart) GetOptimizedForStreaming() *bool {
if o == nil {
return nil
}
return o.OptimizedForStreaming
}
func (o *GetRecentlyAddedLibraryPart) GetVideoProfile() *string {
if o == nil {
return nil
}
return o.VideoProfile
}
type GetRecentlyAddedLibraryMedia struct {
ID *float64 `json:"id,omitempty"`
Duration *float64 `json:"duration,omitempty"`
Bitrate *float64 `json:"bitrate,omitempty"`
Width *float64 `json:"width,omitempty"`
Height *float64 `json:"height,omitempty"`
AspectRatio *float64 `json:"aspectRatio,omitempty"`
AudioChannels *float64 `json:"audioChannels,omitempty"`
AudioCodec *string `json:"audioCodec,omitempty"`
VideoCodec *string `json:"videoCodec,omitempty"`
VideoResolution *float64 `json:"videoResolution,omitempty"`
Container *string `json:"container,omitempty"`
VideoFrameRate *string `json:"videoFrameRate,omitempty"`
OptimizedForStreaming *float64 `json:"optimizedForStreaming,omitempty"`
Has64bitOffsets *bool `json:"has64bitOffsets,omitempty"`
VideoProfile *string `json:"videoProfile,omitempty"`
Part []GetRecentlyAddedLibraryPart `json:"Part,omitempty"`
}
func (o *GetRecentlyAddedLibraryMedia) GetID() *float64 {
if o == nil {
return nil
}
return o.ID
}
func (o *GetRecentlyAddedLibraryMedia) GetDuration() *float64 {
if o == nil {
return nil
}
return o.Duration
}
func (o *GetRecentlyAddedLibraryMedia) GetBitrate() *float64 {
if o == nil {
return nil
}
return o.Bitrate
}
func (o *GetRecentlyAddedLibraryMedia) GetWidth() *float64 {
if o == nil {
return nil
}
return o.Width
}
func (o *GetRecentlyAddedLibraryMedia) GetHeight() *float64 {
if o == nil {
return nil
}
return o.Height
}
func (o *GetRecentlyAddedLibraryMedia) GetAspectRatio() *float64 {
if o == nil {
return nil
}
return o.AspectRatio
}
func (o *GetRecentlyAddedLibraryMedia) GetAudioChannels() *float64 {
if o == nil {
return nil
}
return o.AudioChannels
}
func (o *GetRecentlyAddedLibraryMedia) GetAudioCodec() *string {
if o == nil {
return nil
}
return o.AudioCodec
}
func (o *GetRecentlyAddedLibraryMedia) GetVideoCodec() *string {
if o == nil {
return nil
}
return o.VideoCodec
}
func (o *GetRecentlyAddedLibraryMedia) GetVideoResolution() *float64 {
if o == nil {
return nil
}
return o.VideoResolution
}
func (o *GetRecentlyAddedLibraryMedia) GetContainer() *string {
if o == nil {
return nil
}
return o.Container
}
func (o *GetRecentlyAddedLibraryMedia) GetVideoFrameRate() *string {
if o == nil {
return nil
}
return o.VideoFrameRate
}
func (o *GetRecentlyAddedLibraryMedia) GetOptimizedForStreaming() *float64 {
if o == nil {
return nil
}
return o.OptimizedForStreaming
}
func (o *GetRecentlyAddedLibraryMedia) GetHas64bitOffsets() *bool {
if o == nil {
return nil
}
return o.Has64bitOffsets
}
func (o *GetRecentlyAddedLibraryMedia) GetVideoProfile() *string {
if o == nil {
return nil
}
return o.VideoProfile
}
func (o *GetRecentlyAddedLibraryMedia) GetPart() []GetRecentlyAddedLibraryPart {
if o == nil {
return nil
}
return o.Part
}
type GetRecentlyAddedLibraryGenre struct {
Tag *string `json:"tag,omitempty"`
}
func (o *GetRecentlyAddedLibraryGenre) GetTag() *string {
if o == nil {
return nil
}
return o.Tag
}
type GetRecentlyAddedLibraryDirector struct {
Tag *string `json:"tag,omitempty"`
}
func (o *GetRecentlyAddedLibraryDirector) GetTag() *string {
if o == nil {
return nil
}
return o.Tag
}
type GetRecentlyAddedLibraryWriter struct {
Tag *string `json:"tag,omitempty"`
}
func (o *GetRecentlyAddedLibraryWriter) GetTag() *string {
if o == nil {
return nil
}
return o.Tag
}
type GetRecentlyAddedLibraryCountry struct {
Tag *string `json:"tag,omitempty"`
}
func (o *GetRecentlyAddedLibraryCountry) GetTag() *string {
if o == nil {
return nil
}
return o.Tag
}
type GetRecentlyAddedLibraryRole struct {
Tag *string `json:"tag,omitempty"`
}
func (o *GetRecentlyAddedLibraryRole) GetTag() *string {
if o == nil {
return nil
}
return o.Tag
}
type GetRecentlyAddedLibraryMetadata struct {
AllowSync *bool `json:"allowSync,omitempty"`
LibrarySectionID *float64 `json:"librarySectionID,omitempty"`
LibrarySectionTitle *string `json:"librarySectionTitle,omitempty"`
LibrarySectionUUID *string `json:"librarySectionUUID,omitempty"`
RatingKey *float64 `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"`
ContentRating *string `json:"contentRating,omitempty"`
Summary *string `json:"summary,omitempty"`
Rating *float64 `json:"rating,omitempty"`
AudienceRating *float64 `json:"audienceRating,omitempty"`
Year *float64 `json:"year,omitempty"`
Tagline *string `json:"tagline,omitempty"`
Thumb *string `json:"thumb,omitempty"`
Art *string `json:"art,omitempty"`
Duration *float64 `json:"duration,omitempty"`
OriginallyAvailableAt *time.Time `json:"originallyAvailableAt,omitempty"`
AddedAt *float64 `json:"addedAt,omitempty"`
UpdatedAt *float64 `json:"updatedAt,omitempty"`
AudienceRatingImage *string `json:"audienceRatingImage,omitempty"`
ChapterSource *string `json:"chapterSource,omitempty"`
PrimaryExtraKey *string `json:"primaryExtraKey,omitempty"`
RatingImage *string `json:"ratingImage,omitempty"`
Media []GetRecentlyAddedLibraryMedia `json:"Media,omitempty"`
Genre []GetRecentlyAddedLibraryGenre `json:"Genre,omitempty"`
Director []GetRecentlyAddedLibraryDirector `json:"Director,omitempty"`
Writer []GetRecentlyAddedLibraryWriter `json:"Writer,omitempty"`
Country []GetRecentlyAddedLibraryCountry `json:"Country,omitempty"`
Role []GetRecentlyAddedLibraryRole `json:"Role,omitempty"`
}
func (g GetRecentlyAddedLibraryMetadata) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(g, "", false)
}
func (g *GetRecentlyAddedLibraryMetadata) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
return err
}
return nil
}
func (o *GetRecentlyAddedLibraryMetadata) GetAllowSync() *bool {
if o == nil {
return nil
}
return o.AllowSync
}
func (o *GetRecentlyAddedLibraryMetadata) GetLibrarySectionID() *float64 {
if o == nil {
return nil
}
return o.LibrarySectionID
}
func (o *GetRecentlyAddedLibraryMetadata) GetLibrarySectionTitle() *string {
if o == nil {
return nil
}
return o.LibrarySectionTitle
}
func (o *GetRecentlyAddedLibraryMetadata) GetLibrarySectionUUID() *string {
if o == nil {
return nil
}
return o.LibrarySectionUUID
}
func (o *GetRecentlyAddedLibraryMetadata) GetRatingKey() *float64 {
if o == nil {
return nil
}
return o.RatingKey
}
func (o *GetRecentlyAddedLibraryMetadata) GetKey() *string {
if o == nil {
return nil
}
return o.Key
}
func (o *GetRecentlyAddedLibraryMetadata) GetGUID() *string {
if o == nil {
return nil
}
return o.GUID
}
func (o *GetRecentlyAddedLibraryMetadata) GetStudio() *string {
if o == nil {
return nil
}
return o.Studio
}
func (o *GetRecentlyAddedLibraryMetadata) GetType() *string {
if o == nil {
return nil
}
return o.Type
}
func (o *GetRecentlyAddedLibraryMetadata) GetTitle() *string {
if o == nil {
return nil
}
return o.Title
}
func (o *GetRecentlyAddedLibraryMetadata) GetContentRating() *string {
if o == nil {
return nil
}
return o.ContentRating
}
func (o *GetRecentlyAddedLibraryMetadata) GetSummary() *string {
if o == nil {
return nil
}
return o.Summary
}
func (o *GetRecentlyAddedLibraryMetadata) GetRating() *float64 {
if o == nil {
return nil
}
return o.Rating
}
func (o *GetRecentlyAddedLibraryMetadata) GetAudienceRating() *float64 {
if o == nil {
return nil
}
return o.AudienceRating
}
func (o *GetRecentlyAddedLibraryMetadata) GetYear() *float64 {
if o == nil {
return nil
}
return o.Year
}
func (o *GetRecentlyAddedLibraryMetadata) GetTagline() *string {
if o == nil {
return nil
}
return o.Tagline
}
func (o *GetRecentlyAddedLibraryMetadata) GetThumb() *string {
if o == nil {
return nil
}
return o.Thumb
}
func (o *GetRecentlyAddedLibraryMetadata) GetArt() *string {
if o == nil {
return nil
}
return o.Art
}
func (o *GetRecentlyAddedLibraryMetadata) GetDuration() *float64 {
if o == nil {
return nil
}
return o.Duration
}
func (o *GetRecentlyAddedLibraryMetadata) GetOriginallyAvailableAt() *time.Time {
if o == nil {
return nil
}
return o.OriginallyAvailableAt
}
func (o *GetRecentlyAddedLibraryMetadata) GetAddedAt() *float64 {
if o == nil {
return nil
}
return o.AddedAt
}
func (o *GetRecentlyAddedLibraryMetadata) GetUpdatedAt() *float64 {
if o == nil {
return nil
}
return o.UpdatedAt
}
func (o *GetRecentlyAddedLibraryMetadata) GetAudienceRatingImage() *string {
if o == nil {
return nil
}
return o.AudienceRatingImage
}
func (o *GetRecentlyAddedLibraryMetadata) GetChapterSource() *string {
if o == nil {
return nil
}
return o.ChapterSource
}
func (o *GetRecentlyAddedLibraryMetadata) GetPrimaryExtraKey() *string {
if o == nil {
return nil
}
return o.PrimaryExtraKey
}
func (o *GetRecentlyAddedLibraryMetadata) GetRatingImage() *string {
if o == nil {
return nil
}
return o.RatingImage
}
func (o *GetRecentlyAddedLibraryMetadata) GetMedia() []GetRecentlyAddedLibraryMedia {
if o == nil {
return nil
}
return o.Media
}
func (o *GetRecentlyAddedLibraryMetadata) GetGenre() []GetRecentlyAddedLibraryGenre {
if o == nil {
return nil
}
return o.Genre
}
func (o *GetRecentlyAddedLibraryMetadata) GetDirector() []GetRecentlyAddedLibraryDirector {
if o == nil {
return nil
}
return o.Director
}
func (o *GetRecentlyAddedLibraryMetadata) GetWriter() []GetRecentlyAddedLibraryWriter {
if o == nil {
return nil
}
return o.Writer
}
func (o *GetRecentlyAddedLibraryMetadata) GetCountry() []GetRecentlyAddedLibraryCountry {
if o == nil {
return nil
}
return o.Country
}
func (o *GetRecentlyAddedLibraryMetadata) GetRole() []GetRecentlyAddedLibraryRole {
if o == nil {
return nil
}
return o.Role
}
// GetRecentlyAddedLibraryMediaContainer - The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
type GetRecentlyAddedLibraryMediaContainer struct {
Type []GetRecentlyAddedLibraryType `json:"Type,omitempty"`
FieldType []FieldType `json:"FieldType,omitempty"`
Size *float64 `json:"size,omitempty"`
AllowSync *bool `json:"allowSync,omitempty"`
Identifier *string `json:"identifier,omitempty"`
MediaTagPrefix *string `json:"mediaTagPrefix,omitempty"`
MediaTagVersion *float64 `json:"mediaTagVersion,omitempty"`
MixedParents *bool `json:"mixedParents,omitempty"`
Metadata []GetRecentlyAddedLibraryMetadata `json:"Metadata,omitempty"`
}
func (o *GetRecentlyAddedLibraryMediaContainer) GetType() []GetRecentlyAddedLibraryType {
if o == nil {
return nil
}
return o.Type
}
func (o *GetRecentlyAddedLibraryMediaContainer) GetFieldType() []FieldType {
if o == nil {
return nil
}
return o.FieldType
}
func (o *GetRecentlyAddedLibraryMediaContainer) GetSize() *float64 {
if o == nil {
return nil
}
return o.Size
}
func (o *GetRecentlyAddedLibraryMediaContainer) GetAllowSync() *bool {
if o == nil {
return nil
}
return o.AllowSync
}
func (o *GetRecentlyAddedLibraryMediaContainer) GetIdentifier() *string {
if o == nil {
return nil
}
return o.Identifier
}
func (o *GetRecentlyAddedLibraryMediaContainer) GetMediaTagPrefix() *string {
if o == nil {
return nil
}
return o.MediaTagPrefix
}
func (o *GetRecentlyAddedLibraryMediaContainer) GetMediaTagVersion() *float64 {
if o == nil {
return nil
}
return o.MediaTagVersion
}
func (o *GetRecentlyAddedLibraryMediaContainer) GetMixedParents() *bool {
if o == nil {
return nil
}
return o.MixedParents
}
func (o *GetRecentlyAddedLibraryMediaContainer) GetMetadata() []GetRecentlyAddedLibraryMetadata {
if o == nil {
return nil
}
return o.Metadata
}
// GetRecentlyAddedLibraryResponseBody - The recently added content
type GetRecentlyAddedLibraryResponseBody struct {
MediaContainer *GetRecentlyAddedLibraryMediaContainer `json:"MediaContainer,omitempty"`
}
func (o *GetRecentlyAddedLibraryResponseBody) GetMediaContainer() *GetRecentlyAddedLibraryMediaContainer {
if o == nil {
return nil
}
return o.MediaContainer
}
type GetRecentlyAddedLibraryResponse 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 recently added content
Object *GetRecentlyAddedLibraryResponseBody
}
func (o *GetRecentlyAddedLibraryResponse) GetContentType() string {
if o == nil {
return ""
}
return o.ContentType
}
func (o *GetRecentlyAddedLibraryResponse) GetStatusCode() int {
if o == nil {
return 0
}
return o.StatusCode
}
func (o *GetRecentlyAddedLibraryResponse) GetRawResponse() *http.Response {
if o == nil {
return nil
}
return o.RawResponse
}
func (o *GetRecentlyAddedLibraryResponse) GetObject() *GetRecentlyAddedLibraryResponseBody {
if o == nil {
return nil
}
return o.Object
}