Files
plexphp/src/Models/Operations/GetAllMediaLibraryMetadata.php

717 lines
24 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
declare(strict_types=1);
namespace LukeHagar\Plex_API\Models\Operations;
use Brick\DateTime\LocalDate;
/**
* GetAllMediaLibraryMetadata - Unknown
*
*
*/
class GetAllMediaLibraryMetadata
{
/**
* The rating key (Media ID) of this media item. Note: Although this is always an integer, it is represented as a string in the API.
*
* @var string $ratingKey
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('ratingKey')]
public string $ratingKey;
/**
* The unique key for the media item.
*
* @var string $key
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('key')]
public string $key;
/**
* The globally unique identifier for the media item.
*
* @var string $guid
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('guid')]
public string $guid;
/**
* A URLfriendly version of the media title.
*
* @var string $slug
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('slug')]
public string $slug;
/**
*
* @var GetAllMediaLibraryLibraryType $type
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('type')]
#[\Speakeasy\Serializer\Annotation\Type('\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryLibraryType')]
public GetAllMediaLibraryLibraryType $type;
/**
* The title of the media item.
*
* @var string $title
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('title')]
public string $title;
/**
* The sort title used for ordering media items.
*
* @var string $titleSort
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('titleSort')]
public string $titleSort;
/**
* A synopsis of the media item.
*
* @var string $summary
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('summary')]
public string $summary;
/**
* The critic rating for the media item.
*
* @var float $rating
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('rating')]
public float $rating;
/**
* The audience rating for the media item.
*
* @var float $audienceRating
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('audienceRating')]
public float $audienceRating;
/**
* A brief tagline for the media item.
*
* @var string $tagline
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('tagline')]
public string $tagline;
/**
* The thumbnail image URL for the media item.
*
* @var string $thumb
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('thumb')]
public string $thumb;
/**
* The art image URL for the media item.
*
* @var string $art
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('art')]
public string $art;
/**
* The theme URL for the media item.
*
* @var string $theme
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('theme')]
public string $theme;
/**
* The index position of the media item.
*
* @var int $index
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('index')]
public int $index;
/**
* The number of child items associated with this media item.
*
* @var int $childCount
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('childCount')]
public int $childCount;
/**
* The total number of seasons (for TV shows).
*
* @var int $seasonCount
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('seasonCount')]
public int $seasonCount;
/**
* The duration of the media item in milliseconds.
*
* @var int $duration
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('duration')]
public int $duration;
/**
* The original release date of the media item.
*
* @var LocalDate $originallyAvailableAt
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('originallyAvailableAt')]
public LocalDate $originallyAvailableAt;
/**
*
* @var int $addedAt
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('addedAt')]
public int $addedAt;
/**
* The studio that produced the media item.
*
* @var ?string $studio
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('studio')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $studio = null;
/**
* The content rating for the media item.
*
* @var ?string $contentRating
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('contentRating')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $contentRating = null;
/**
* The release year of the media item.
*
* @var ?int $year
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('year')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?int $year = null;
/**
* The number of leaf items (end nodes) under this media item.
*
* @var ?int $leafCount
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('leafCount')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?int $leafCount = null;
/**
* The number of leaf items that have been viewed.
*
* @var ?int $viewedLeafCount
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('viewedLeafCount')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?int $viewedLeafCount = null;
/**
* Unix epoch datetime in seconds
*
* @var ?int $updatedAt
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('updatedAt')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?int $updatedAt = null;
/**
* The URL for the audience rating image.
*
* @var ?string $audienceRatingImage
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('audienceRatingImage')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $audienceRatingImage = null;
/**
* The source from which chapter data is derived.
*
* @var ?string $chapterSource
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('chapterSource')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $chapterSource = null;
/**
* The primary extra key associated with this media item.
*
* @var ?string $primaryExtraKey
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('primaryExtraKey')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $primaryExtraKey = null;
/**
* The original title of the media item (if different).
*
* @var ?string $originalTitle
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('originalTitle')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $originalTitle = null;
/**
* The rating key of the parent media item.
*
* @var ?string $parentRatingKey
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('parentRatingKey')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $parentRatingKey = null;
/**
* The rating key of the grandparent media item.
*
* @var ?string $grandparentRatingKey
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('grandparentRatingKey')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $grandparentRatingKey = null;
/**
* The GUID of the parent media item.
*
* @var ?string $parentGuid
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('parentGuid')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $parentGuid = null;
/**
* The GUID of the grandparent media item.
*
* @var ?string $grandparentGuid
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('grandparentGuid')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $grandparentGuid = null;
/**
* The slug for the grandparent media item.
*
* @var ?string $grandparentSlug
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('grandparentSlug')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $grandparentSlug = null;
/**
* The key of the grandparent media item.
*
* @var ?string $grandparentKey
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('grandparentKey')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $grandparentKey = null;
/**
* The key of the parent media item.
*
* @var ?string $parentKey
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('parentKey')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $parentKey = null;
/**
* The title of the grandparent media item.
*
* @var ?string $grandparentTitle
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('grandparentTitle')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $grandparentTitle = null;
/**
* The thumbnail URL for the grandparent media item.
*
* @var ?string $grandparentThumb
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('grandparentThumb')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $grandparentThumb = null;
/**
* The theme URL for the grandparent media item.
*
* @var ?string $grandparentTheme
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('grandparentTheme')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $grandparentTheme = null;
/**
* The art URL for the grandparent media item.
*
* @var ?string $grandparentArt
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('grandparentArt')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $grandparentArt = null;
/**
* The title of the parent media item.
*
* @var ?string $parentTitle
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('parentTitle')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $parentTitle = null;
/**
* The index position of the parent media item.
*
* @var ?int $parentIndex
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('parentIndex')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?int $parentIndex = null;
/**
* The thumbnail URL for the parent media item.
*
* @var ?string $parentThumb
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('parentThumb')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $parentThumb = null;
/**
* The URL for the rating image.
*
* @var ?string $ratingImage
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('ratingImage')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $ratingImage = null;
/**
* The number of times this media item has been viewed.
*
* @var ?int $viewCount
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('viewCount')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?int $viewCount = null;
/**
* The current playback offset (in milliseconds).
*
* @var ?int $viewOffset
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('viewOffset')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?int $viewOffset = null;
/**
* The number of times this media item has been skipped.
*
* @var ?int $skipCount
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('skipCount')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?int $skipCount = null;
/**
* A classification that further describes the type of media item. For example, 'clip' indicates that the item is a short video clip.
*
* @var ?string $subtype
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('subtype')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $subtype = null;
/**
* The Unix timestamp representing the last time the item was rated.
*
* @var ?int $lastRatedAt
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('lastRatedAt')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?int $lastRatedAt = null;
/**
* The accuracy of the creation timestamp. This value indicates the format(s) provided (for example, 'epoch,local' means both epoch and local time formats are available).
*
* @var ?string $createdAtAccuracy
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('createdAtAccuracy')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $createdAtAccuracy = null;
/**
* The time zone offset for the creation timestamp, represented as a string. This offset indicates the difference from UTC.
*
* @var ?string $createdAtTZOffset
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('createdAtTZOffset')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?string $createdAtTZOffset = null;
/**
* Unix timestamp for when the media item was last viewed.
*
* @var ?int $lastViewedAt
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('lastViewedAt')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?int $lastViewedAt = null;
/**
* The rating provided by a user for the item. This value is expressed as a decimal number.
*
* @var ?float $userRating
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('userRating')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?float $userRating = null;
/**
* $image
*
* @var ?array<GetAllMediaLibraryImage> $image
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('Image')]
#[\Speakeasy\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryImage>|null')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?array $image = null;
/**
*
* @var ?GetAllMediaLibraryUltraBlurColors $ultraBlurColors
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('UltraBlurColors')]
#[\Speakeasy\Serializer\Annotation\Type('\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryUltraBlurColors|null')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?GetAllMediaLibraryUltraBlurColors $ultraBlurColors = null;
/**
* $media
*
* @var ?array<GetAllMediaLibraryMedia> $media
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('Media')]
#[\Speakeasy\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryMedia>|null')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?array $media = null;
/**
* $genre
*
* @var ?array<GetAllMediaLibraryGenre> $genre
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('Genre')]
#[\Speakeasy\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryGenre>|null')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?array $genre = null;
/**
* $country
*
* @var ?array<GetAllMediaLibraryCountry> $country
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('Country')]
#[\Speakeasy\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryCountry>|null')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?array $country = null;
/**
* $director
*
* @var ?array<GetAllMediaLibraryDirector> $director
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('Director')]
#[\Speakeasy\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryDirector>|null')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?array $director = null;
/**
* $writer
*
* @var ?array<GetAllMediaLibraryWriter> $writer
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('Writer')]
#[\Speakeasy\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryWriter>|null')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?array $writer = null;
/**
* $role
*
* @var ?array<GetAllMediaLibraryRole> $role
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('Role')]
#[\Speakeasy\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryRole>|null')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?array $role = null;
/**
* $guids
*
* @var ?array<GetAllMediaLibraryGuids> $guids
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('Guid')]
#[\Speakeasy\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryGuids>|null')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?array $guids = null;
/**
* $collection
*
* @var ?array<GetAllMediaLibraryCollection> $collection
*/
#[\Speakeasy\Serializer\Annotation\SerializedName('Collection')]
#[\Speakeasy\Serializer\Annotation\Type('array<\LukeHagar\Plex_API\Models\Operations\GetAllMediaLibraryCollection>|null')]
#[\Speakeasy\Serializer\Annotation\SkipWhenNull]
public ?array $collection = null;
/**
* @param string $ratingKey
* @param string $key
* @param string $guid
* @param string $slug
* @param GetAllMediaLibraryLibraryType $type
* @param string $title
* @param string $titleSort
* @param string $summary
* @param float $rating
* @param float $audienceRating
* @param string $tagline
* @param string $thumb
* @param string $art
* @param string $theme
* @param int $index
* @param int $childCount
* @param int $seasonCount
* @param int $duration
* @param LocalDate $originallyAvailableAt
* @param int $addedAt
* @param ?string $studio
* @param ?string $contentRating
* @param ?int $year
* @param ?int $leafCount
* @param ?int $viewedLeafCount
* @param ?int $updatedAt
* @param ?string $audienceRatingImage
* @param ?string $chapterSource
* @param ?string $primaryExtraKey
* @param ?string $originalTitle
* @param ?string $parentRatingKey
* @param ?string $grandparentRatingKey
* @param ?string $parentGuid
* @param ?string $grandparentGuid
* @param ?string $grandparentSlug
* @param ?string $grandparentKey
* @param ?string $parentKey
* @param ?string $grandparentTitle
* @param ?string $grandparentThumb
* @param ?string $grandparentTheme
* @param ?string $grandparentArt
* @param ?string $parentTitle
* @param ?int $parentIndex
* @param ?string $parentThumb
* @param ?string $ratingImage
* @param ?int $viewCount
* @param ?int $viewOffset
* @param ?int $skipCount
* @param ?string $subtype
* @param ?int $lastRatedAt
* @param ?string $createdAtAccuracy
* @param ?string $createdAtTZOffset
* @param ?int $lastViewedAt
* @param ?float $userRating
* @param ?array<GetAllMediaLibraryImage> $image
* @param ?GetAllMediaLibraryUltraBlurColors $ultraBlurColors
* @param ?array<GetAllMediaLibraryMedia> $media
* @param ?array<GetAllMediaLibraryGenre> $genre
* @param ?array<GetAllMediaLibraryCountry> $country
* @param ?array<GetAllMediaLibraryDirector> $director
* @param ?array<GetAllMediaLibraryWriter> $writer
* @param ?array<GetAllMediaLibraryRole> $role
* @param ?array<GetAllMediaLibraryGuids> $guids
* @param ?array<GetAllMediaLibraryCollection> $collection
* @phpstan-pure
*/
public function __construct(string $ratingKey, string $key, string $guid, string $slug, GetAllMediaLibraryLibraryType $type, string $title, string $titleSort, string $summary, float $rating, float $audienceRating, string $tagline, string $thumb, string $art, string $theme, int $index, int $childCount, int $seasonCount, int $duration, LocalDate $originallyAvailableAt, int $addedAt, ?string $studio = null, ?string $contentRating = null, ?int $year = null, ?int $leafCount = null, ?int $viewedLeafCount = null, ?int $updatedAt = null, ?string $audienceRatingImage = null, ?string $chapterSource = null, ?string $primaryExtraKey = null, ?string $originalTitle = null, ?string $parentRatingKey = null, ?string $grandparentRatingKey = null, ?string $parentGuid = null, ?string $grandparentGuid = null, ?string $grandparentSlug = null, ?string $grandparentKey = null, ?string $parentKey = null, ?string $grandparentTitle = null, ?string $grandparentThumb = null, ?string $grandparentTheme = null, ?string $grandparentArt = null, ?string $parentTitle = null, ?int $parentIndex = null, ?string $parentThumb = null, ?string $ratingImage = null, ?int $viewCount = null, ?int $viewOffset = null, ?int $skipCount = null, ?string $subtype = null, ?int $lastRatedAt = null, ?string $createdAtAccuracy = null, ?string $createdAtTZOffset = null, ?int $lastViewedAt = null, ?float $userRating = null, ?array $image = null, ?GetAllMediaLibraryUltraBlurColors $ultraBlurColors = null, ?array $media = null, ?array $genre = null, ?array $country = null, ?array $director = null, ?array $writer = null, ?array $role = null, ?array $guids = null, ?array $collection = null)
{
$this->ratingKey = $ratingKey;
$this->key = $key;
$this->guid = $guid;
$this->slug = $slug;
$this->type = $type;
$this->title = $title;
$this->titleSort = $titleSort;
$this->summary = $summary;
$this->rating = $rating;
$this->audienceRating = $audienceRating;
$this->tagline = $tagline;
$this->thumb = $thumb;
$this->art = $art;
$this->theme = $theme;
$this->index = $index;
$this->childCount = $childCount;
$this->seasonCount = $seasonCount;
$this->duration = $duration;
$this->originallyAvailableAt = $originallyAvailableAt;
$this->addedAt = $addedAt;
$this->studio = $studio;
$this->contentRating = $contentRating;
$this->year = $year;
$this->leafCount = $leafCount;
$this->viewedLeafCount = $viewedLeafCount;
$this->updatedAt = $updatedAt;
$this->audienceRatingImage = $audienceRatingImage;
$this->chapterSource = $chapterSource;
$this->primaryExtraKey = $primaryExtraKey;
$this->originalTitle = $originalTitle;
$this->parentRatingKey = $parentRatingKey;
$this->grandparentRatingKey = $grandparentRatingKey;
$this->parentGuid = $parentGuid;
$this->grandparentGuid = $grandparentGuid;
$this->grandparentSlug = $grandparentSlug;
$this->grandparentKey = $grandparentKey;
$this->parentKey = $parentKey;
$this->grandparentTitle = $grandparentTitle;
$this->grandparentThumb = $grandparentThumb;
$this->grandparentTheme = $grandparentTheme;
$this->grandparentArt = $grandparentArt;
$this->parentTitle = $parentTitle;
$this->parentIndex = $parentIndex;
$this->parentThumb = $parentThumb;
$this->ratingImage = $ratingImage;
$this->viewCount = $viewCount;
$this->viewOffset = $viewOffset;
$this->skipCount = $skipCount;
$this->subtype = $subtype;
$this->lastRatedAt = $lastRatedAt;
$this->createdAtAccuracy = $createdAtAccuracy;
$this->createdAtTZOffset = $createdAtTZOffset;
$this->lastViewedAt = $lastViewedAt;
$this->userRating = $userRating;
$this->image = $image;
$this->ultraBlurColors = $ultraBlurColors;
$this->media = $media;
$this->genre = $genre;
$this->country = $country;
$this->director = $director;
$this->writer = $writer;
$this->role = $role;
$this->guids = $guids;
$this->collection = $collection;
}
}