mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-07 20:57:44 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.4
This commit is contained in:
@@ -33,10 +33,8 @@ module PlexRubySDK
|
||||
autoload :Marker, 'plex_ruby_sdk/models/operations/marker.rb'
|
||||
autoload :Media, 'plex_ruby_sdk/models/operations/media.rb'
|
||||
autoload :MediaContainer, 'plex_ruby_sdk/models/operations/mediacontainer.rb'
|
||||
autoload :MediaGuid, 'plex_ruby_sdk/models/operations/mediaguid.rb'
|
||||
autoload :MediaProvider, 'plex_ruby_sdk/models/operations/mediaprovider.rb'
|
||||
autoload :Meta, 'plex_ruby_sdk/models/operations/meta.rb'
|
||||
autoload :MetaDataRating, 'plex_ruby_sdk/models/operations/metadatarating.rb'
|
||||
autoload :Metadata, 'plex_ruby_sdk/models/operations/metadata.rb'
|
||||
autoload :MyPlex, 'plex_ruby_sdk/models/operations/myplex.rb'
|
||||
autoload :Operator, 'plex_ruby_sdk/models/operations/operator.rb'
|
||||
@@ -104,9 +102,7 @@ module PlexRubySDK
|
||||
autoload :DeletePlaylistRequest, 'plex_ruby_sdk/models/operations/deleteplaylist_request.rb'
|
||||
autoload :DeletePlaylistResponse, 'plex_ruby_sdk/models/operations/deleteplaylist_response.rb'
|
||||
autoload :Download, 'plex_ruby_sdk/models/operations/download.rb'
|
||||
autoload :EnableCreditsMarkerGeneration, 'plex_ruby_sdk/models/operations/enablecreditsmarkergeneration.rb'
|
||||
autoload :EnablePaperTrailResponse, 'plex_ruby_sdk/models/operations/enablepapertrail_response.rb'
|
||||
autoload :EpisodeSort, 'plex_ruby_sdk/models/operations/episodesort.rb'
|
||||
autoload :Filter, 'plex_ruby_sdk/models/operations/filter.rb'
|
||||
autoload :FlattenSeasons, 'plex_ruby_sdk/models/operations/flattenseasons.rb'
|
||||
autoload :Force, 'plex_ruby_sdk/models/operations/force.rb'
|
||||
@@ -155,16 +151,9 @@ module PlexRubySDK
|
||||
autoload :GetLibraryItemsFilter, 'plex_ruby_sdk/models/operations/get_library_items_filter.rb'
|
||||
autoload :GetLibraryItemsGenre, 'plex_ruby_sdk/models/operations/get_library_items_genre.rb'
|
||||
autoload :GetLibraryItemsImage, 'plex_ruby_sdk/models/operations/get_library_items_image.rb'
|
||||
autoload :GetLibraryItemsLibraryField, 'plex_ruby_sdk/models/operations/get_library_items_library_field.rb'
|
||||
autoload :GetLibraryItemsLibraryFieldType, 'plex_ruby_sdk/models/operations/get_library_items_library_fieldtype.rb'
|
||||
autoload :GetLibraryItemsLibraryFilter, 'plex_ruby_sdk/models/operations/get_library_items_library_filter.rb'
|
||||
autoload :GetLibraryItemsLibraryOperator, 'plex_ruby_sdk/models/operations/get_library_items_library_operator.rb'
|
||||
autoload :GetLibraryItemsLibrarySort, 'plex_ruby_sdk/models/operations/get_library_items_library_sort.rb'
|
||||
autoload :GetLibraryItemsLibraryActiveDirection, 'plex_ruby_sdk/models/operations/get_library_items_library_activedirection.rb'
|
||||
autoload :GetLibraryItemsLibraryDefaultDirection, 'plex_ruby_sdk/models/operations/get_library_items_library_defaultdirection.rb'
|
||||
autoload :GetLibraryItemsLibraryResponse200Type, 'plex_ruby_sdk/models/operations/get_library_items_library_response_200_type.rb'
|
||||
autoload :GetLibraryItemsLibraryResponseType, 'plex_ruby_sdk/models/operations/get_library_items_library_response_type.rb'
|
||||
autoload :GetLibraryItemsLibraryType, 'plex_ruby_sdk/models/operations/get_library_items_library_type.rb'
|
||||
autoload :GetLibraryItemsLibraryOptimizedForStreaming, 'plex_ruby_sdk/models/operations/get_library_items_library_optimizedforstreaming.rb'
|
||||
autoload :GetLibraryItemsLibraryResponseType, 'plex_ruby_sdk/models/operations/get_library_items_library_response_type.rb'
|
||||
autoload :GetLibraryItemsLocation, 'plex_ruby_sdk/models/operations/get_library_items_location.rb'
|
||||
autoload :GetLibraryItemsMedia, 'plex_ruby_sdk/models/operations/get_library_items_media.rb'
|
||||
autoload :GetLibraryItemsMediaContainer, 'plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb'
|
||||
@@ -172,21 +161,24 @@ module PlexRubySDK
|
||||
autoload :GetLibraryItemsMetadata, 'plex_ruby_sdk/models/operations/get_library_items_metadata.rb'
|
||||
autoload :GetLibraryItemsOperator, 'plex_ruby_sdk/models/operations/get_library_items_operator.rb'
|
||||
autoload :GetLibraryItemsPart, 'plex_ruby_sdk/models/operations/get_library_items_part.rb'
|
||||
autoload :GetLibraryItemsProducer, 'plex_ruby_sdk/models/operations/get_library_items_producer.rb'
|
||||
autoload :GetLibraryItemsRole, 'plex_ruby_sdk/models/operations/get_library_items_role.rb'
|
||||
autoload :GetLibraryItemsSimilar, 'plex_ruby_sdk/models/operations/get_library_items_similar.rb'
|
||||
autoload :GetLibraryItemsSort, 'plex_ruby_sdk/models/operations/get_library_items_sort.rb'
|
||||
autoload :GetLibraryItemsStream, 'plex_ruby_sdk/models/operations/get_library_items_stream.rb'
|
||||
autoload :GetLibraryItemsType, 'plex_ruby_sdk/models/operations/get_library_items_type.rb'
|
||||
autoload :GetLibraryItemsUltraBlurColors, 'plex_ruby_sdk/models/operations/get_library_items_ultrablurcolors.rb'
|
||||
autoload :GetLibraryItemsWriter, 'plex_ruby_sdk/models/operations/get_library_items_writer.rb'
|
||||
autoload :GetLibraryItemsActiveDirection, 'plex_ruby_sdk/models/operations/get_library_items_activedirection.rb'
|
||||
autoload :GetLibraryItemsDefaultDirection, 'plex_ruby_sdk/models/operations/get_library_items_defaultdirection.rb'
|
||||
autoload :GetLibraryItemsGuids, 'plex_ruby_sdk/models/operations/get_library_items_guids.rb'
|
||||
autoload :GetLibraryItemsHasThumbnail, 'plex_ruby_sdk/models/operations/get_library_items_hasthumbnail.rb'
|
||||
autoload :GetLibraryItemsOptimizedForStreaming, 'plex_ruby_sdk/models/operations/get_library_items_optimizedforstreaming.rb'
|
||||
autoload :GetLibraryItemsOptimizedForStreaming1, 'plex_ruby_sdk/models/operations/get_library_items_optimizedforstreaming_1.rb'
|
||||
autoload :GetLibraryItemsQueryParamIncludeMeta, 'plex_ruby_sdk/models/operations/get_library_items_queryparam_includemeta.rb'
|
||||
autoload :GetLibraryItemsQueryParamType, 'plex_ruby_sdk/models/operations/get_library_items_queryparam_type.rb'
|
||||
autoload :GetLibraryItemsRequest, 'plex_ruby_sdk/models/operations/get_library_items_request.rb'
|
||||
autoload :GetLibraryItemsResponse, 'plex_ruby_sdk/models/operations/get_library_items_response.rb'
|
||||
autoload :GetLibraryItemsResponseBody, 'plex_ruby_sdk/models/operations/get_library_items_responsebody.rb'
|
||||
autoload :GetLibraryItemsType, 'plex_ruby_sdk/models/operations/get_library_items_type.rb'
|
||||
autoload :GetLibrarySectionsAllCollection, 'plex_ruby_sdk/models/operations/get_library_sections_all_collection.rb'
|
||||
autoload :GetLibrarySectionsAllCountry, 'plex_ruby_sdk/models/operations/get_library_sections_all_country.rb'
|
||||
autoload :GetLibrarySectionsAllDirector, 'plex_ruby_sdk/models/operations/get_library_sections_all_director.rb'
|
||||
@@ -216,29 +208,34 @@ module PlexRubySDK
|
||||
autoload :GetLibrarySectionsAllHasThumbnail, 'plex_ruby_sdk/models/operations/get_library_sections_all_hasthumbnail.rb'
|
||||
autoload :GetLibrarySectionsAllOptimizedForStreaming, 'plex_ruby_sdk/models/operations/get_library_sections_all_optimizedforstreaming.rb'
|
||||
autoload :GetLibrarySectionsAllOptimizedForStreaming1, 'plex_ruby_sdk/models/operations/get_library_sections_all_optimizedforstreaming_1.rb'
|
||||
autoload :GetLibrarySectionsAllOptimizedForStreamingLibrary1, 'plex_ruby_sdk/models/operations/get_library_sections_all_optimizedforstreaming_library_1.rb'
|
||||
autoload :GetLibrarySectionsAllQueryParamIncludeMeta, 'plex_ruby_sdk/models/operations/get_library_sections_all_queryparam_includemeta.rb'
|
||||
autoload :GetLibrarySectionsAllQueryParamType, 'plex_ruby_sdk/models/operations/get_library_sections_all_queryparam_type.rb'
|
||||
autoload :GetLibrarySectionsAllRequest, 'plex_ruby_sdk/models/operations/get_library_sections_all_request.rb'
|
||||
autoload :GetLibrarySectionsAllResponse, 'plex_ruby_sdk/models/operations/get_library_sections_all_response.rb'
|
||||
autoload :GetLibrarySectionsAllResponseBody, 'plex_ruby_sdk/models/operations/get_library_sections_all_responsebody.rb'
|
||||
autoload :GetLibrarySectionsAllStreamType, 'plex_ruby_sdk/models/operations/get_library_sections_all_streamtype.rb'
|
||||
autoload :GetMediaArtsMediaContainer, 'plex_ruby_sdk/models/operations/get_media_arts_mediacontainer.rb'
|
||||
autoload :GetMediaArtsMetadata, 'plex_ruby_sdk/models/operations/get_media_arts_metadata.rb'
|
||||
autoload :GetMediaArtsRequest, 'plex_ruby_sdk/models/operations/get_media_arts_request.rb'
|
||||
autoload :GetMediaArtsResponse, 'plex_ruby_sdk/models/operations/get_media_arts_response.rb'
|
||||
autoload :GetMediaArtsResponseBody, 'plex_ruby_sdk/models/operations/get_media_arts_responsebody.rb'
|
||||
autoload :GetMediaMetaDataAttributes, 'plex_ruby_sdk/models/operations/get_media_meta_data_attributes.rb'
|
||||
autoload :GetMediaMetaDataChapter, 'plex_ruby_sdk/models/operations/get_media_meta_data_chapter.rb'
|
||||
autoload :GetMediaMetaDataCountry, 'plex_ruby_sdk/models/operations/get_media_meta_data_country.rb'
|
||||
autoload :GetMediaMetaDataDirector, 'plex_ruby_sdk/models/operations/get_media_meta_data_director.rb'
|
||||
autoload :GetMediaMetaDataExtras, 'plex_ruby_sdk/models/operations/get_media_meta_data_extras.rb'
|
||||
autoload :GetMediaMetaDataGenre, 'plex_ruby_sdk/models/operations/get_media_meta_data_genre.rb'
|
||||
autoload :GetMediaMetaDataImage, 'plex_ruby_sdk/models/operations/get_media_meta_data_image.rb'
|
||||
autoload :GetMediaMetaDataLibraryOptimizedForStreaming, 'plex_ruby_sdk/models/operations/get_media_meta_data_library_optimizedforstreaming.rb'
|
||||
autoload :GetMediaMetaDataLibraryType, 'plex_ruby_sdk/models/operations/get_media_meta_data_library_type.rb'
|
||||
autoload :GetMediaMetaDataLocation, 'plex_ruby_sdk/models/operations/get_media_meta_data_location.rb'
|
||||
autoload :GetMediaMetaDataMarker, 'plex_ruby_sdk/models/operations/get_media_meta_data_marker.rb'
|
||||
autoload :GetMediaMetaDataMedia, 'plex_ruby_sdk/models/operations/get_media_meta_data_media.rb'
|
||||
autoload :GetMediaMetaDataMediaContainer, 'plex_ruby_sdk/models/operations/get_media_meta_data_mediacontainer.rb'
|
||||
autoload :GetMediaMetaDataMetadata, 'plex_ruby_sdk/models/operations/get_media_meta_data_metadata.rb'
|
||||
autoload :GetMediaMetaDataPart, 'plex_ruby_sdk/models/operations/get_media_meta_data_part.rb'
|
||||
autoload :GetMediaMetaDataProducer, 'plex_ruby_sdk/models/operations/get_media_meta_data_producer.rb'
|
||||
autoload :GetMediaMetaDataRatings, 'plex_ruby_sdk/models/operations/get_media_meta_data_ratings.rb'
|
||||
autoload :GetMediaMetaDataRole, 'plex_ruby_sdk/models/operations/get_media_meta_data_role.rb'
|
||||
autoload :GetMediaMetaDataSimilar, 'plex_ruby_sdk/models/operations/get_media_meta_data_similar.rb'
|
||||
autoload :GetMediaMetaDataStream, 'plex_ruby_sdk/models/operations/get_media_meta_data_stream.rb'
|
||||
@@ -252,7 +249,6 @@ module PlexRubySDK
|
||||
autoload :GetMediaMetaDataRequest, 'plex_ruby_sdk/models/operations/get_media_meta_data_request.rb'
|
||||
autoload :GetMediaMetaDataResponse, 'plex_ruby_sdk/models/operations/get_media_meta_data_response.rb'
|
||||
autoload :GetMediaMetaDataResponseBody, 'plex_ruby_sdk/models/operations/get_media_meta_data_responsebody.rb'
|
||||
autoload :GetMediaMetaDataStreamType, 'plex_ruby_sdk/models/operations/get_media_meta_data_streamtype.rb'
|
||||
autoload :GetMediaMetaDataType, 'plex_ruby_sdk/models/operations/get_media_meta_data_type.rb'
|
||||
autoload :GetMediaPostersMediaContainer, 'plex_ruby_sdk/models/operations/get_media_posters_mediacontainer.rb'
|
||||
autoload :GetMediaPostersMetadata, 'plex_ruby_sdk/models/operations/get_media_posters_metadata.rb'
|
||||
@@ -298,28 +294,27 @@ module PlexRubySDK
|
||||
autoload :GetRecentlyAddedResponseBody, 'plex_ruby_sdk/models/operations/get_recently_added_responsebody.rb'
|
||||
autoload :GetRefreshLibraryMetadataRequest, 'plex_ruby_sdk/models/operations/get_refresh_library_metadata_request.rb'
|
||||
autoload :GetRefreshLibraryMetadataResponse, 'plex_ruby_sdk/models/operations/get_refresh_library_metadata_response.rb'
|
||||
autoload :GetSearchAllLibrariesCollection, 'plex_ruby_sdk/models/operations/get_search_all_libraries_collection.rb'
|
||||
autoload :GetSearchAllLibrariesCountry, 'plex_ruby_sdk/models/operations/get_search_all_libraries_country.rb'
|
||||
autoload :GetSearchAllLibrariesDirector, 'plex_ruby_sdk/models/operations/get_search_all_libraries_director.rb'
|
||||
autoload :GetSearchAllLibrariesDirectory, 'plex_ruby_sdk/models/operations/get_search_all_libraries_directory.rb'
|
||||
autoload :GetSearchAllLibrariesGenre, 'plex_ruby_sdk/models/operations/get_search_all_libraries_genre.rb'
|
||||
autoload :GetSearchAllLibrariesImage, 'plex_ruby_sdk/models/operations/get_search_all_libraries_image.rb'
|
||||
autoload :GetSearchAllLibrariesLibraryOptimizedForStreaming, 'plex_ruby_sdk/models/operations/get_search_all_libraries_library_optimizedforstreaming.rb'
|
||||
autoload :GetSearchAllLibrariesLibraryType, 'plex_ruby_sdk/models/operations/get_search_all_libraries_library_type.rb'
|
||||
autoload :GetSearchAllLibrariesLocation, 'plex_ruby_sdk/models/operations/get_search_all_libraries_location.rb'
|
||||
autoload :GetSearchAllLibrariesMedia, 'plex_ruby_sdk/models/operations/get_search_all_libraries_media.rb'
|
||||
autoload :GetSearchAllLibrariesMediaContainer, 'plex_ruby_sdk/models/operations/get_search_all_libraries_mediacontainer.rb'
|
||||
autoload :GetSearchAllLibrariesMediaGuid, 'plex_ruby_sdk/models/operations/get_search_all_libraries_mediaguid.rb'
|
||||
autoload :GetSearchAllLibrariesMetaDataRating, 'plex_ruby_sdk/models/operations/get_search_all_libraries_metadatarating.rb'
|
||||
autoload :GetSearchAllLibrariesMetadata, 'plex_ruby_sdk/models/operations/get_search_all_libraries_metadata.rb'
|
||||
autoload :GetSearchAllLibrariesPart, 'plex_ruby_sdk/models/operations/get_search_all_libraries_part.rb'
|
||||
autoload :GetSearchAllLibrariesRole, 'plex_ruby_sdk/models/operations/get_search_all_libraries_role.rb'
|
||||
autoload :GetSearchAllLibrariesStream, 'plex_ruby_sdk/models/operations/get_search_all_libraries_stream.rb'
|
||||
autoload :GetSearchAllLibrariesUltraBlurColors, 'plex_ruby_sdk/models/operations/get_search_all_libraries_ultrablurcolors.rb'
|
||||
autoload :GetSearchAllLibrariesWriter, 'plex_ruby_sdk/models/operations/get_search_all_libraries_writer.rb'
|
||||
autoload :GetSearchAllLibrariesEnableCreditsMarkerGeneration, 'plex_ruby_sdk/models/operations/get_search_all_libraries_enablecreditsmarkergeneration.rb'
|
||||
autoload :GetSearchAllLibrariesEpisodeSort, 'plex_ruby_sdk/models/operations/get_search_all_libraries_episodesort.rb'
|
||||
autoload :GetSearchAllLibrariesFlattenSeasons, 'plex_ruby_sdk/models/operations/get_search_all_libraries_flattenseasons.rb'
|
||||
autoload :GetSearchAllLibrariesGuids, 'plex_ruby_sdk/models/operations/get_search_all_libraries_guids.rb'
|
||||
autoload :GetSearchAllLibrariesHasThumbnail, 'plex_ruby_sdk/models/operations/get_search_all_libraries_hasthumbnail.rb'
|
||||
autoload :GetSearchAllLibrariesOptimizedForStreaming, 'plex_ruby_sdk/models/operations/get_search_all_libraries_optimizedforstreaming.rb'
|
||||
autoload :GetSearchAllLibrariesOptimizedForStreaming1, 'plex_ruby_sdk/models/operations/get_search_all_libraries_optimizedforstreaming_1.rb'
|
||||
autoload :GetSearchAllLibrariesOptimizedForStreamingLibrary1, 'plex_ruby_sdk/models/operations/get_search_all_libraries_optimizedforstreaming_library_1.rb'
|
||||
autoload :GetSearchAllLibrariesQueryParamIncludeCollections, 'plex_ruby_sdk/models/operations/get_search_all_libraries_queryparam_includecollections.rb'
|
||||
autoload :GetSearchAllLibrariesQueryParamIncludeExternalMedia, 'plex_ruby_sdk/models/operations/get_search_all_libraries_queryparam_includeexternalmedia.rb'
|
||||
autoload :GetSearchAllLibrariesRequest, 'plex_ruby_sdk/models/operations/get_search_all_libraries_request.rb'
|
||||
@@ -597,7 +592,6 @@ module PlexRubySDK
|
||||
autoload :StopTaskResponse, 'plex_ruby_sdk/models/operations/stoptask_response.rb'
|
||||
autoload :StopTranscodeSessionRequest, 'plex_ruby_sdk/models/operations/stoptranscodesession_request.rb'
|
||||
autoload :StopTranscodeSessionResponse, 'plex_ruby_sdk/models/operations/stoptranscodesession_response.rb'
|
||||
autoload :StreamType, 'plex_ruby_sdk/models/operations/streamtype.rb'
|
||||
autoload :Tag, 'plex_ruby_sdk/models/operations/tag.rb'
|
||||
autoload :TaskName, 'plex_ruby_sdk/models/operations/taskname.rb'
|
||||
autoload :Tonight, 'plex_ruby_sdk/models/operations/tonight.rb'
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# EnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
class EnableCreditsMarkerGeneration < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
DISABLED = new('0')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,21 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# EpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
class EpisodeSort < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
OLDEST_FIRST = new('0')
|
||||
NEWEST_FIRST = new('1')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -9,6 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# FlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
#
|
||||
class FlattenSeasons < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
|
||||
@@ -35,14 +35,14 @@ module PlexRubySDK
|
||||
field :title2, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title2') } }
|
||||
# Identifier for the view group layout.
|
||||
field :view_group, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewGroup') } }
|
||||
# Identifier for the view mode.
|
||||
field :view_mode, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewMode') } }
|
||||
# An array of actor entries for media items.
|
||||
field :directory, T.nilable(T::Array[Models::Operations::GetActorsLibraryDirectory]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Directory') } }
|
||||
# Identifier for the view mode.
|
||||
field :view_mode, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewMode') } }
|
||||
|
||||
|
||||
sig { params(allow_sync: T::Boolean, art: ::String, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, nocache: T::Boolean, size: ::Integer, thumb: ::String, title1: ::String, title2: ::String, view_group: ::String, view_mode: ::String, directory: T.nilable(T::Array[Models::Operations::GetActorsLibraryDirectory])).void }
|
||||
def initialize(allow_sync: nil, art: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, nocache: nil, size: nil, thumb: nil, title1: nil, title2: nil, view_group: nil, view_mode: nil, directory: nil)
|
||||
sig { params(allow_sync: T::Boolean, art: ::String, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, nocache: T::Boolean, size: ::Integer, thumb: ::String, title1: ::String, title2: ::String, view_group: ::String, directory: T.nilable(T::Array[Models::Operations::GetActorsLibraryDirectory]), view_mode: T.nilable(::String)).void }
|
||||
def initialize(allow_sync: nil, art: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, nocache: nil, size: nil, thumb: nil, title1: nil, title2: nil, view_group: nil, directory: nil, view_mode: nil)
|
||||
@allow_sync = allow_sync
|
||||
@art = art
|
||||
@identifier = identifier
|
||||
@@ -54,8 +54,8 @@ module PlexRubySDK
|
||||
@title1 = title1
|
||||
@title2 = title2
|
||||
@view_group = view_group
|
||||
@view_mode = view_mode
|
||||
@directory = directory
|
||||
@view_mode = view_mode
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
@@ -71,8 +71,8 @@ module PlexRubySDK
|
||||
return false unless @title1 == other.title1
|
||||
return false unless @title2 == other.title2
|
||||
return false unless @view_group == other.view_group
|
||||
return false unless @view_mode == other.view_mode
|
||||
return false unless @directory == other.directory
|
||||
return false unless @view_mode == other.view_mode
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,11 +13,11 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The user-made collection this media item belongs to
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
|
||||
sig { params(tag: T.nilable(::String)).void }
|
||||
sig { params(tag: ::String).void }
|
||||
def initialize(tag: nil)
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
@@ -13,17 +13,23 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The unique identifier for the country.
|
||||
# NOTE: This is different for each Plex server and is not globally unique.
|
||||
#
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The country of origin of this media item
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
|
||||
sig { params(tag: T.nilable(::String)).void }
|
||||
def initialize(tag: nil)
|
||||
sig { params(id: ::Integer, tag: ::String).void }
|
||||
def initialize(id: nil, tag: nil)
|
||||
@id = id
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
|
||||
@@ -13,18 +13,26 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# Unique identifier for the director.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The role of Director
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The absolute URL of the thumbnail image for the director.
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(tag: T.nilable(::String)).void }
|
||||
def initialize(tag: nil)
|
||||
sig { params(id: ::Integer, tag: ::String, thumb: T.nilable(::String)).void }
|
||||
def initialize(id: nil, tag: nil, thumb: nil)
|
||||
@id = id
|
||||
@tag = tag
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -24,17 +24,14 @@ module PlexRubySDK
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :advanced, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('advanced') } }
|
||||
|
||||
|
||||
sig { params(filter: ::String, filter_type: ::String, key: ::String, title: ::String, type: ::String, advanced: T.nilable(T::Boolean)).void }
|
||||
def initialize(filter: nil, filter_type: nil, key: nil, title: nil, type: nil, advanced: nil)
|
||||
sig { params(filter: ::String, filter_type: ::String, key: ::String, title: ::String, type: ::String).void }
|
||||
def initialize(filter: nil, filter_type: nil, key: nil, title: nil, type: nil)
|
||||
@filter = filter
|
||||
@filter_type = filter_type
|
||||
@key = key
|
||||
@title = title
|
||||
@type = type
|
||||
@advanced = advanced
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
@@ -44,7 +41,6 @@ module PlexRubySDK
|
||||
return false unless @key == other.key
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @advanced == other.advanced
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,17 +13,24 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The unique identifier for the genre.
|
||||
# NOTE: This is different for each Plex server and is not globally unique.
|
||||
#
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The genre name of this media-item
|
||||
#
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
|
||||
sig { params(tag: T.nilable(::String)).void }
|
||||
def initialize(tag: nil)
|
||||
sig { params(id: ::Integer, tag: ::String).void }
|
||||
def initialize(id: nil, tag: nil)
|
||||
@id = id
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
|
||||
@@ -9,12 +9,11 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class MediaGuid
|
||||
class GetLibraryItemsGuids
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# Can be one of the following formats:
|
||||
# imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||
# The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
#
|
||||
field :id, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
@@ -8,7 +8,8 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
# GetLibraryItemsHasThumbnail - Indicates if the part has a thumbnail.
|
||||
#
|
||||
class GetLibraryItemsHasThumbnail < T::Enum
|
||||
enums do
|
||||
FALSE = new('0')
|
||||
|
||||
@@ -16,12 +16,12 @@ module PlexRubySDK
|
||||
|
||||
field :alt, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('alt') } }
|
||||
|
||||
field :type, Models::Operations::GetLibraryItemsLibraryResponse200Type, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibraryItemsLibraryResponse200Type, false) } }
|
||||
field :type, Models::Operations::GetLibraryItemsLibraryResponseType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibraryItemsLibraryResponseType, false) } }
|
||||
|
||||
field :url, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('url') } }
|
||||
|
||||
|
||||
sig { params(alt: ::String, type: Models::Operations::GetLibraryItemsLibraryResponse200Type, url: ::String).void }
|
||||
sig { params(alt: ::String, type: Models::Operations::GetLibraryItemsLibraryResponseType, url: ::String).void }
|
||||
def initialize(alt: nil, type: nil, url: nil)
|
||||
@alt = alt
|
||||
@type = type
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetLibraryItemsLibraryActiveDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
class GetLibraryItemsLibraryActiveDirection < T::Enum
|
||||
enums do
|
||||
ASCENDING = new('asc')
|
||||
DESCENDING = new('desc')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,21 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetLibraryItemsLibraryDefaultDirection - The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
class GetLibraryItemsLibraryDefaultDirection < T::Enum
|
||||
enums do
|
||||
ASCENDING = new('asc')
|
||||
DESCENDING = new('desc')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,45 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsLibraryField
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :sub_type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subType') } }
|
||||
|
||||
|
||||
sig { params(key: ::String, title: ::String, type: ::String, sub_type: T.nilable(::String)).void }
|
||||
def initialize(key: nil, title: nil, type: nil, sub_type: nil)
|
||||
@key = key
|
||||
@title = title
|
||||
@type = type
|
||||
@sub_type = sub_type
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @key == other.key
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @sub_type == other.sub_type
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,37 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsLibraryFieldType
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :operator, T::Array[Models::Operations::GetLibraryItemsLibraryOperator], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Operator') } }
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
|
||||
sig { params(operator: T::Array[Models::Operations::GetLibraryItemsLibraryOperator], type: ::String).void }
|
||||
def initialize(operator: nil, type: nil)
|
||||
@operator = operator
|
||||
@type = type
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @operator == other.operator
|
||||
return false unless @type == other.type
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,49 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsLibraryFilter
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
|
||||
field :filter_type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filterType') } }
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
|
||||
sig { params(filter: ::String, filter_type: ::String, key: ::String, title: ::String, type: ::String).void }
|
||||
def initialize(filter: nil, filter_type: nil, key: nil, title: nil, type: nil)
|
||||
@filter = filter
|
||||
@filter_type = filter_type
|
||||
@key = key
|
||||
@title = title
|
||||
@type = type
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @filter == other.filter
|
||||
return false unless @filter_type == other.filter_type
|
||||
return false unless @key == other.key
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,37 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsLibraryOperator
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
|
||||
sig { params(key: ::String, title: ::String).void }
|
||||
def initialize(key: nil, title: nil)
|
||||
@key = key
|
||||
@title = title
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @key == other.key
|
||||
return false unless @title == other.title
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -8,23 +8,19 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetSearchAllLibrariesCollection
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
#
|
||||
class GetLibraryItemsLibraryOptimizedForStreaming
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
|
||||
sig { params(tag: T.nilable(::String)).void }
|
||||
def initialize(tag: nil)
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def initialize; end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
end
|
||||
@@ -9,47 +9,12 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsLibraryResponseType
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :active, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('active') } }
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :field, T.nilable(T::Array[Models::Operations::GetLibraryItemsLibraryField]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Field') } }
|
||||
|
||||
field :filter, T.nilable(T::Array[Models::Operations::GetLibraryItemsLibraryFilter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Filter') } }
|
||||
|
||||
field :sort, T.nilable(T::Array[Models::Operations::GetLibraryItemsLibrarySort]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Sort') } }
|
||||
|
||||
|
||||
sig { params(active: T::Boolean, key: ::String, title: ::String, type: ::String, field: T.nilable(T::Array[Models::Operations::GetLibraryItemsLibraryField]), filter: T.nilable(T::Array[Models::Operations::GetLibraryItemsLibraryFilter]), sort: T.nilable(T::Array[Models::Operations::GetLibraryItemsLibrarySort])).void }
|
||||
def initialize(active: nil, key: nil, title: nil, type: nil, field: nil, filter: nil, sort: nil)
|
||||
@active = active
|
||||
@key = key
|
||||
@title = title
|
||||
@type = type
|
||||
@field = field
|
||||
@filter = filter
|
||||
@sort = sort
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @active == other.active
|
||||
return false unless @key == other.key
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @field == other.field
|
||||
return false unless @filter == other.filter
|
||||
return false unless @sort == other.sort
|
||||
true
|
||||
class GetLibraryItemsLibraryResponseType < T::Enum
|
||||
enums do
|
||||
COVER_POSTER = new('coverPoster')
|
||||
BACKGROUND = new('background')
|
||||
SNAPSHOT = new('snapshot')
|
||||
CLEAR_LOGO = new('clearLogo')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsLibrarySort
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
field :default_direction, Models::Operations::GetLibraryItemsLibraryDefaultDirection, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultDirection'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibraryItemsLibraryDefaultDirection, false) } }
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
field :active, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('active') } }
|
||||
# The direction of the sort. Can be either `asc` or `desc`.
|
||||
#
|
||||
field :active_direction, T.nilable(Models::Operations::GetLibraryItemsLibraryActiveDirection), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('activeDirection'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibraryItemsLibraryActiveDirection, true) } }
|
||||
|
||||
field :default, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('default') } }
|
||||
|
||||
field :desc_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('descKey') } }
|
||||
|
||||
field :first_character_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('firstCharacterKey') } }
|
||||
|
||||
|
||||
sig { params(default_direction: Models::Operations::GetLibraryItemsLibraryDefaultDirection, key: ::String, title: ::String, active: T.nilable(T::Boolean), active_direction: T.nilable(Models::Operations::GetLibraryItemsLibraryActiveDirection), default: T.nilable(::String), desc_key: T.nilable(::String), first_character_key: T.nilable(::String)).void }
|
||||
def initialize(default_direction: nil, key: nil, title: nil, active: nil, active_direction: nil, default: nil, desc_key: nil, first_character_key: nil)
|
||||
@default_direction = default_direction
|
||||
@key = key
|
||||
@title = title
|
||||
@active = active
|
||||
@active_direction = active_direction
|
||||
@default = default
|
||||
@desc_key = desc_key
|
||||
@first_character_key = first_character_key
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @default_direction == other.default_direction
|
||||
return false unless @key == other.key
|
||||
return false unless @title == other.title
|
||||
return false unless @active == other.active
|
||||
return false unless @active_direction == other.active_direction
|
||||
return false unless @default == other.default
|
||||
return false unless @desc_key == other.desc_key
|
||||
return false unless @first_character_key == other.first_character_key
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -8,20 +8,48 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetLibraryItemsLibraryType - The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
#
|
||||
class GetLibraryItemsLibraryType < T::Enum
|
||||
enums do
|
||||
MOVIE = new('movie')
|
||||
TV_SHOW = new('show')
|
||||
SEASON = new('season')
|
||||
EPISODE = new('episode')
|
||||
ARTIST = new('artist')
|
||||
ALBUM = new('album')
|
||||
TRACK = new('track')
|
||||
PHOTO_ALBUM = new('photoalbum')
|
||||
PHOTO = new('photo')
|
||||
COLLECTION = new('collection')
|
||||
|
||||
class GetLibraryItemsLibraryType
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :active, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('active') } }
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :field, T.nilable(T::Array[Models::Operations::GetLibraryItemsField]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Field') } }
|
||||
|
||||
field :filter, T.nilable(T::Array[Models::Operations::GetLibraryItemsFilter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Filter') } }
|
||||
|
||||
field :sort, T.nilable(T::Array[Models::Operations::GetLibraryItemsSort]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Sort') } }
|
||||
|
||||
|
||||
sig { params(active: T::Boolean, key: ::String, title: ::String, type: ::String, field: T.nilable(T::Array[Models::Operations::GetLibraryItemsField]), filter: T.nilable(T::Array[Models::Operations::GetLibraryItemsFilter]), sort: T.nilable(T::Array[Models::Operations::GetLibraryItemsSort])).void }
|
||||
def initialize(active: nil, key: nil, title: nil, type: nil, field: nil, filter: nil, sort: nil)
|
||||
@active = active
|
||||
@key = key
|
||||
@title = title
|
||||
@type = type
|
||||
@field = field
|
||||
@filter = filter
|
||||
@sort = sort
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @active == other.active
|
||||
return false unless @key == other.key
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @field == other.field
|
||||
return false unless @filter == other.filter
|
||||
return false unless @sort == other.sort
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,16 +8,16 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
# The folder path for the media item.
|
||||
class GetLibraryItemsLocation
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('path') } }
|
||||
field :path, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('path') } }
|
||||
|
||||
|
||||
sig { params(path: T.nilable(::String)).void }
|
||||
sig { params(path: ::String).void }
|
||||
def initialize(path: nil)
|
||||
@path = path
|
||||
end
|
||||
|
||||
@@ -13,59 +13,65 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :container, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
||||
|
||||
# Unique media identifier.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
field :part, T::Array[Models::Operations::GetLibraryItemsPart], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
|
||||
|
||||
# Aspect ratio of the video.
|
||||
field :aspect_ratio, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('aspectRatio') } }
|
||||
|
||||
# Number of audio channels.
|
||||
field :audio_channels, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioChannels') } }
|
||||
|
||||
# Audio codec used.
|
||||
field :audio_codec, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioCodec') } }
|
||||
|
||||
# The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
field :audio_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioProfile') } }
|
||||
|
||||
# Bitrate in bits per second.
|
||||
field :bitrate, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('bitrate') } }
|
||||
# Container format of the media.
|
||||
field :container, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
||||
|
||||
field :display_offset, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('displayOffset') } }
|
||||
# Duration of the media in milliseconds.
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
|
||||
# Indicates whether the media has 64-bit offsets.
|
||||
# This is relevant for media files that may require larger offsets than what 32-bit integers can provide.
|
||||
#
|
||||
field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
|
||||
|
||||
# Indicates whether voice activity is detected.
|
||||
field :has_voice_activity, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasVoiceActivity') } }
|
||||
|
||||
# Video height in pixels.
|
||||
field :height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('height') } }
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::OptimizedForStreaming1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
|
||||
field :optimized_for_streaming, T.nilable(Models::Operations::GetLibraryItemsOptimizedForStreaming), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibraryItemsOptimizedForStreaming, true) } }
|
||||
|
||||
field :part, T.nilable(T::Array[Models::Operations::GetLibraryItemsPart]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
|
||||
# Video codec used.
|
||||
field :video_codec, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoCodec') } }
|
||||
|
||||
# Frame rate of the video. Values found include NTSC, PAL, 24p
|
||||
#
|
||||
field :video_frame_rate, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoFrameRate') } }
|
||||
|
||||
# Video profile (e.g., main 10).
|
||||
field :video_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
|
||||
|
||||
# Video resolution (e.g., 4k).
|
||||
field :video_resolution, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoResolution') } }
|
||||
|
||||
# Video width in pixels.
|
||||
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
||||
|
||||
|
||||
sig { params(container: ::String, id: ::Integer, part: T::Array[Models::Operations::GetLibraryItemsPart], aspect_ratio: T.nilable(::Float), audio_channels: T.nilable(::Integer), audio_codec: T.nilable(::String), audio_profile: T.nilable(::String), bitrate: T.nilable(::Integer), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), has_voice_activity: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(Models::Operations::GetLibraryItemsOptimizedForStreaming), video_codec: T.nilable(::String), video_frame_rate: T.nilable(::String), video_profile: T.nilable(::String), video_resolution: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(container: nil, id: nil, part: nil, aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, duration: nil, has64bit_offsets: nil, has_voice_activity: nil, height: nil, optimized_for_streaming: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil)
|
||||
@container = container
|
||||
sig { params(id: ::Integer, aspect_ratio: T.nilable(::Float), audio_channels: T.nilable(::Integer), audio_codec: T.nilable(::String), audio_profile: T.nilable(::String), bitrate: T.nilable(::Integer), container: T.nilable(::String), display_offset: T.nilable(::Integer), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), has_voice_activity: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(T.any(Models::Operations::OptimizedForStreaming1, T::Boolean)), part: T.nilable(T::Array[Models::Operations::GetLibraryItemsPart]), video_codec: T.nilable(::String), video_frame_rate: T.nilable(::String), video_profile: T.nilable(::String), video_resolution: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(id: nil, aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, display_offset: nil, duration: nil, has64bit_offsets: nil, has_voice_activity: nil, height: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil)
|
||||
@id = id
|
||||
@part = part
|
||||
@aspect_ratio = aspect_ratio
|
||||
@audio_channels = audio_channels
|
||||
@audio_codec = audio_codec
|
||||
@audio_profile = audio_profile
|
||||
@bitrate = bitrate
|
||||
@container = container
|
||||
@display_offset = display_offset
|
||||
@duration = duration
|
||||
@has64bit_offsets = has64bit_offsets
|
||||
@has_voice_activity = has_voice_activity
|
||||
@height = height
|
||||
@optimized_for_streaming = optimized_for_streaming
|
||||
@part = part
|
||||
@video_codec = video_codec
|
||||
@video_frame_rate = video_frame_rate
|
||||
@video_profile = video_profile
|
||||
@@ -75,19 +81,20 @@ module PlexRubySDK
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @container == other.container
|
||||
return false unless @id == other.id
|
||||
return false unless @part == other.part
|
||||
return false unless @aspect_ratio == other.aspect_ratio
|
||||
return false unless @audio_channels == other.audio_channels
|
||||
return false unless @audio_codec == other.audio_codec
|
||||
return false unless @audio_profile == other.audio_profile
|
||||
return false unless @bitrate == other.bitrate
|
||||
return false unless @container == other.container
|
||||
return false unless @display_offset == other.display_offset
|
||||
return false unless @duration == other.duration
|
||||
return false unless @has64bit_offsets == other.has64bit_offsets
|
||||
return false unless @has_voice_activity == other.has_voice_activity
|
||||
return false unless @height == other.height
|
||||
return false unless @optimized_for_streaming == other.optimized_for_streaming
|
||||
return false unless @part == other.part
|
||||
return false unless @video_codec == other.video_codec
|
||||
return false unless @video_frame_rate == other.video_frame_rate
|
||||
return false unless @video_profile == other.video_profile
|
||||
|
||||
@@ -8,72 +8,66 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
#
|
||||
|
||||
class GetLibraryItemsMediaContainer
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
# Indicates whether syncing is allowed.
|
||||
field :allow_sync, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('allowSync') } }
|
||||
|
||||
# URL for the background artwork of the media container.
|
||||
field :art, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
|
||||
|
||||
# The content type or mode.
|
||||
field :content, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('content') } }
|
||||
|
||||
# An plugin identifier for the media container.
|
||||
field :identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
||||
|
||||
field :library_section_id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
|
||||
field :library_section_title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
|
||||
field :library_section_uuid, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionUUID') } }
|
||||
|
||||
# The prefix used for media tag resource paths.
|
||||
field :media_tag_prefix, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagPrefix') } }
|
||||
|
||||
# The version number for media tags.
|
||||
field :media_tag_version, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagVersion') } }
|
||||
|
||||
# An array of metadata items.
|
||||
field :metadata, T::Array[Models::Operations::GetLibraryItemsMetadata], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
# Specifies whether caching is disabled.
|
||||
field :nocache, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('nocache') } }
|
||||
# Offset value for pagination.
|
||||
field :offset, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('offset') } }
|
||||
|
||||
# Number of media items returned in this response.
|
||||
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
|
||||
# URL for the thumbnail image of the media container.
|
||||
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
# The primary title of the media container.
|
||||
field :title1, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title1') } }
|
||||
|
||||
# The secondary title of the media container.
|
||||
field :title2, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title2') } }
|
||||
|
||||
# Total number of media items in the library.
|
||||
field :total_size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('totalSize') } }
|
||||
|
||||
# Identifier for the view group layout.
|
||||
field :view_group, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewGroup') } }
|
||||
|
||||
field :field_type, T.nilable(T::Array[Models::Operations::GetLibraryItemsFieldType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('FieldType') } }
|
||||
# The unique identifier for the library section.
|
||||
field :library_section_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
# The universally unique identifier for the library section.
|
||||
field :library_section_uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionUUID') } }
|
||||
# The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
#
|
||||
field :meta, T.nilable(Models::Operations::GetLibraryItemsMeta), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Meta') } }
|
||||
|
||||
field :metadata, T.nilable(T::Array[Models::Operations::GetLibraryItemsMetadata]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
|
||||
# Indicates if the media container has mixed parents.
|
||||
field :mixed_parents, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mixedParents') } }
|
||||
|
||||
field :nocache, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('nocache') } }
|
||||
|
||||
field :type, T.nilable(T::Array[Models::Operations::GetLibraryItemsType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Type') } }
|
||||
|
||||
field :view_mode, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewMode') } }
|
||||
# Identifier for the view mode.
|
||||
field :view_mode, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewMode') } }
|
||||
|
||||
|
||||
sig { params(allow_sync: T::Boolean, art: ::String, content: ::String, identifier: ::String, library_section_id: ::Integer, library_section_title: ::String, library_section_uuid: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, offset: ::Integer, size: ::Integer, thumb: ::String, title1: ::String, title2: ::String, total_size: ::Integer, view_group: ::String, field_type: T.nilable(T::Array[Models::Operations::GetLibraryItemsFieldType]), meta: T.nilable(Models::Operations::GetLibraryItemsMeta), metadata: T.nilable(T::Array[Models::Operations::GetLibraryItemsMetadata]), mixed_parents: T.nilable(T::Boolean), nocache: T.nilable(T::Boolean), type: T.nilable(T::Array[Models::Operations::GetLibraryItemsType]), view_mode: T.nilable(::Integer)).void }
|
||||
def initialize(allow_sync: nil, art: nil, content: nil, identifier: nil, library_section_id: nil, library_section_title: nil, library_section_uuid: nil, media_tag_prefix: nil, media_tag_version: nil, offset: nil, size: nil, thumb: nil, title1: nil, title2: nil, total_size: nil, view_group: nil, field_type: nil, meta: nil, metadata: nil, mixed_parents: nil, nocache: nil, type: nil, view_mode: nil)
|
||||
sig { params(allow_sync: T::Boolean, art: ::String, content: ::String, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, metadata: T::Array[Models::Operations::GetLibraryItemsMetadata], nocache: T::Boolean, offset: ::Integer, size: ::Integer, thumb: ::String, title1: ::String, title2: ::String, total_size: ::Integer, view_group: ::String, library_section_id: T.nilable(::Integer), library_section_title: T.nilable(::String), library_section_uuid: T.nilable(::String), meta: T.nilable(Models::Operations::GetLibraryItemsMeta), mixed_parents: T.nilable(T::Boolean), view_mode: T.nilable(::String)).void }
|
||||
def initialize(allow_sync: nil, art: nil, content: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, metadata: nil, nocache: nil, offset: nil, size: nil, thumb: nil, title1: nil, title2: nil, total_size: nil, view_group: nil, library_section_id: nil, library_section_title: nil, library_section_uuid: nil, meta: nil, mixed_parents: nil, view_mode: nil)
|
||||
@allow_sync = allow_sync
|
||||
@art = art
|
||||
@content = content
|
||||
@identifier = identifier
|
||||
@library_section_id = library_section_id
|
||||
@library_section_title = library_section_title
|
||||
@library_section_uuid = library_section_uuid
|
||||
@media_tag_prefix = media_tag_prefix
|
||||
@media_tag_version = media_tag_version
|
||||
@metadata = metadata
|
||||
@nocache = nocache
|
||||
@offset = offset
|
||||
@size = size
|
||||
@thumb = thumb
|
||||
@@ -81,12 +75,11 @@ module PlexRubySDK
|
||||
@title2 = title2
|
||||
@total_size = total_size
|
||||
@view_group = view_group
|
||||
@field_type = field_type
|
||||
@library_section_id = library_section_id
|
||||
@library_section_title = library_section_title
|
||||
@library_section_uuid = library_section_uuid
|
||||
@meta = meta
|
||||
@metadata = metadata
|
||||
@mixed_parents = mixed_parents
|
||||
@nocache = nocache
|
||||
@type = type
|
||||
@view_mode = view_mode
|
||||
end
|
||||
|
||||
@@ -96,11 +89,10 @@ module PlexRubySDK
|
||||
return false unless @art == other.art
|
||||
return false unless @content == other.content
|
||||
return false unless @identifier == other.identifier
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @library_section_uuid == other.library_section_uuid
|
||||
return false unless @media_tag_prefix == other.media_tag_prefix
|
||||
return false unless @media_tag_version == other.media_tag_version
|
||||
return false unless @metadata == other.metadata
|
||||
return false unless @nocache == other.nocache
|
||||
return false unless @offset == other.offset
|
||||
return false unless @size == other.size
|
||||
return false unless @thumb == other.thumb
|
||||
@@ -108,12 +100,11 @@ module PlexRubySDK
|
||||
return false unless @title2 == other.title2
|
||||
return false unless @total_size == other.total_size
|
||||
return false unless @view_group == other.view_group
|
||||
return false unless @field_type == other.field_type
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @library_section_uuid == other.library_section_uuid
|
||||
return false unless @meta == other.meta
|
||||
return false unless @metadata == other.metadata
|
||||
return false unless @mixed_parents == other.mixed_parents
|
||||
return false unless @nocache == other.nocache
|
||||
return false unless @type == other.type
|
||||
return false unless @view_mode == other.view_mode
|
||||
true
|
||||
end
|
||||
|
||||
@@ -15,12 +15,12 @@ module PlexRubySDK
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :field_type, T.nilable(T::Array[Models::Operations::GetLibraryItemsLibraryFieldType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('FieldType') } }
|
||||
field :field_type, T.nilable(T::Array[Models::Operations::GetLibraryItemsFieldType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('FieldType') } }
|
||||
|
||||
field :type, T.nilable(T::Array[Models::Operations::GetLibraryItemsLibraryResponseType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Type') } }
|
||||
field :type, T.nilable(T::Array[Models::Operations::GetLibraryItemsLibraryType]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Type') } }
|
||||
|
||||
|
||||
sig { params(field_type: T.nilable(T::Array[Models::Operations::GetLibraryItemsLibraryFieldType]), type: T.nilable(T::Array[Models::Operations::GetLibraryItemsLibraryResponseType])).void }
|
||||
sig { params(field_type: T.nilable(T::Array[Models::Operations::GetLibraryItemsFieldType]), type: T.nilable(T::Array[Models::Operations::GetLibraryItemsLibraryType])).void }
|
||||
def initialize(field_type: nil, type: nil)
|
||||
@field_type = field_type
|
||||
@type = type
|
||||
|
||||
@@ -8,199 +8,210 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
# Unknown
|
||||
#
|
||||
class GetLibraryItemsMetadata
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# Unix epoch datetime in seconds
|
||||
|
||||
field :added_at, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('addedAt') } }
|
||||
|
||||
# The art image URL for the media item.
|
||||
field :art, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
|
||||
# The audience rating for the media item.
|
||||
field :audience_rating, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRating') } }
|
||||
# The banner image URL for the media item.
|
||||
field :banner, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('banner') } }
|
||||
# The number of child items associated with this media item.
|
||||
field :child_count, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('childCount') } }
|
||||
# The duration of the media item in milliseconds.
|
||||
field :duration, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
# The globally unique identifier for the media item.
|
||||
field :guid, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('guid') } }
|
||||
|
||||
# The index position of the media item.
|
||||
field :index, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
||||
# The unique key for the media item.
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# The rating key (Media ID) of this media item.
|
||||
# Note: This is always an integer, but is represented as a string in the API.
|
||||
#
|
||||
# The critic rating for the media item.
|
||||
field :rating, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('rating') } }
|
||||
# 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.
|
||||
field :rating_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingKey') } }
|
||||
|
||||
# The total number of seasons (for TV shows).
|
||||
field :season_count, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('seasonCount') } }
|
||||
# A URL‐friendly version of the media title.
|
||||
field :slug, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('slug') } }
|
||||
# A synopsis of the media item.
|
||||
field :summary, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
|
||||
|
||||
# A brief tagline for the media item.
|
||||
field :tagline, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagline') } }
|
||||
# The theme URL for the media item.
|
||||
field :theme, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('theme') } }
|
||||
# The thumbnail image URL for the media item.
|
||||
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
# The title of the media item.
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
# The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
#
|
||||
field :type, Models::Operations::GetLibraryItemsLibraryType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibraryItemsLibraryType, false) } }
|
||||
|
||||
field :art, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
|
||||
|
||||
field :audience_rating, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRating') } }
|
||||
# The sort title used for ordering media items.
|
||||
field :title_sort, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('titleSort') } }
|
||||
|
||||
field :type, Models::Operations::GetLibraryItemsType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibraryItemsType, false) } }
|
||||
# The URL for the audience rating image.
|
||||
field :audience_rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRatingImage') } }
|
||||
|
||||
field :banner, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('banner') } }
|
||||
|
||||
field :chapter, T.nilable(T::Array[Models::Operations::Chapter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Chapter') } }
|
||||
# The source from which chapter data is derived.
|
||||
field :chapter_source, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chapterSource') } }
|
||||
|
||||
field :child_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('childCount') } }
|
||||
|
||||
field :collection, T.nilable(T::Array[Models::Operations::GetLibraryItemsCollection]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Collection') } }
|
||||
|
||||
# The content rating for the media item.
|
||||
field :content_rating, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('contentRating') } }
|
||||
|
||||
field :country, T.nilable(T::Array[Models::Operations::GetLibraryItemsCountry]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Country') } }
|
||||
# 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).
|
||||
field :created_at_accuracy, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAtAccuracy') } }
|
||||
# The time zone offset for the creation timestamp, represented as a string. This offset indicates the difference from UTC.
|
||||
field :created_at_tz_offset, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAtTZOffset') } }
|
||||
|
||||
field :director, T.nilable(T::Array[Models::Operations::GetLibraryItemsDirector]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Director') } }
|
||||
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
# Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
field :enable_credits_marker_generation, T.nilable(Models::Operations::EnableCreditsMarkerGeneration), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('enableCreditsMarkerGeneration'), 'decoder': Utils.enum_from_string(Models::Operations::EnableCreditsMarkerGeneration, true) } }
|
||||
# Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
field :episode_sort, T.nilable(Models::Operations::EpisodeSort), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('episodeSort'), 'decoder': Utils.enum_from_string(Models::Operations::EpisodeSort, true) } }
|
||||
field :extras, T.nilable(Models::Operations::Extras), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Extras') } }
|
||||
# Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
#
|
||||
field :flatten_seasons, T.nilable(Models::Operations::FlattenSeasons), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('flattenSeasons'), 'decoder': Utils.enum_from_string(Models::Operations::FlattenSeasons, true) } }
|
||||
|
||||
field :genre, T.nilable(T::Array[Models::Operations::GetLibraryItemsGenre]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Genre') } }
|
||||
|
||||
# The art URL for the grandparent media item.
|
||||
field :grandparent_art, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentArt') } }
|
||||
|
||||
# The GUID of the grandparent media item.
|
||||
field :grandparent_guid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentGuid') } }
|
||||
|
||||
# The key of the grandparent media item.
|
||||
field :grandparent_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentKey') } }
|
||||
|
||||
# The rating key of the grandparent media item.
|
||||
field :grandparent_rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentRatingKey') } }
|
||||
|
||||
# The slug for the grandparent media item.
|
||||
field :grandparent_slug, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentSlug') } }
|
||||
|
||||
# The theme URL for the grandparent media item.
|
||||
field :grandparent_theme, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentTheme') } }
|
||||
|
||||
# The thumbnail URL for the grandparent media item.
|
||||
field :grandparent_thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentThumb') } }
|
||||
|
||||
# The title of the grandparent media item.
|
||||
field :grandparent_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentTitle') } }
|
||||
|
||||
field :has_premium_extras, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasPremiumExtras') } }
|
||||
|
||||
field :has_premium_primary_extra, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasPremiumPrimaryExtra') } }
|
||||
field :guids, T.nilable(T::Array[Models::Operations::GetLibraryItemsGuids]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
|
||||
|
||||
field :image, T.nilable(T::Array[Models::Operations::GetLibraryItemsImage]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Image') } }
|
||||
|
||||
field :index, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
||||
|
||||
# The Unix timestamp representing the last time the item was rated.
|
||||
field :last_rated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastRatedAt') } }
|
||||
# Unix timestamp for when the media item was last viewed.
|
||||
field :last_viewed_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastViewedAt') } }
|
||||
|
||||
# The number of leaf items (end nodes) under this media item.
|
||||
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
||||
|
||||
# The identifier for the library section.
|
||||
field :library_section_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
|
||||
# The key corresponding to the library section.
|
||||
field :library_section_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionKey') } }
|
||||
|
||||
# The title of the library section.
|
||||
field :library_section_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
|
||||
field :location, T.nilable(T::Array[Models::Operations::GetLibraryItemsLocation]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Location') } }
|
||||
# The Media object is only included when type query is `4` or higher.
|
||||
#
|
||||
|
||||
field :marker, T.nilable(T::Array[Models::Operations::Marker]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Marker') } }
|
||||
|
||||
field :media, T.nilable(T::Array[Models::Operations::GetLibraryItemsMedia]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
|
||||
# The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||
#
|
||||
field :media_guid, T.nilable(T::Array[Models::Operations::MediaGuid]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
|
||||
|
||||
field :meta_data_rating, T.nilable(T::Array[Models::Operations::MetaDataRating]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Rating') } }
|
||||
|
||||
# The original release date of the media item.
|
||||
field :originally_available_at, T.nilable(::Date), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(true) } }
|
||||
|
||||
# The original title of the media item (if different).
|
||||
field :original_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originalTitle') } }
|
||||
|
||||
# The GUID of the parent media item.
|
||||
field :parent_guid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentGuid') } }
|
||||
|
||||
# The index position of the parent media item.
|
||||
field :parent_index, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentIndex') } }
|
||||
|
||||
# The key of the parent media item.
|
||||
field :parent_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentKey') } }
|
||||
# The rating key of the parent item.
|
||||
#
|
||||
# The rating key of the parent media item.
|
||||
field :parent_rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentRatingKey') } }
|
||||
|
||||
field :parent_slug, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentSlug') } }
|
||||
|
||||
field :parent_studio, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentStudio') } }
|
||||
|
||||
field :parent_theme, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentTheme') } }
|
||||
|
||||
# The thumbnail URL for the parent media item.
|
||||
field :parent_thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentThumb') } }
|
||||
|
||||
# The title of the parent media item.
|
||||
field :parent_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentTitle') } }
|
||||
|
||||
field :parent_year, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentYear') } }
|
||||
|
||||
# The primary extra key associated with this media item.
|
||||
field :primary_extra_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('primaryExtraKey') } }
|
||||
|
||||
field :rating, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('rating') } }
|
||||
|
||||
field :producer, T.nilable(T::Array[Models::Operations::GetLibraryItemsProducer]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Producer') } }
|
||||
# The URL for the rating image.
|
||||
field :rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingImage') } }
|
||||
|
||||
field :role, T.nilable(T::Array[Models::Operations::GetLibraryItemsRole]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Role') } }
|
||||
field :ratings, T.nilable(T::Array[Models::Operations::Ratings]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Rating') } }
|
||||
|
||||
field :season_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('seasonCount') } }
|
||||
field :role, T.nilable(T::Array[Models::Operations::GetLibraryItemsRole]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Role') } }
|
||||
# Setting that indicates the episode ordering for the show.
|
||||
# None = Library default,
|
||||
# tmdbAiring = The Movie Database (Aired),
|
||||
# aired = TheTVDB (Aired),
|
||||
# dvd = TheTVDB (DVD),
|
||||
# absolute = TheTVDB (Absolute)).
|
||||
# Options:
|
||||
# - None = Library default
|
||||
# - tmdbAiring = The Movie Database (Aired)
|
||||
# - aired = TheTVDB (Aired)
|
||||
# - dvd = TheTVDB (DVD)
|
||||
# - absolute = TheTVDB (Absolute)
|
||||
#
|
||||
field :show_ordering, T.nilable(Models::Operations::ShowOrdering), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('showOrdering'), 'decoder': Utils.enum_from_string(Models::Operations::ShowOrdering, true) } }
|
||||
|
||||
field :similar, T.nilable(T::Array[Models::Operations::GetLibraryItemsSimilar]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Similar') } }
|
||||
# Indicates whether child items should be skipped.
|
||||
field :skip_children, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('skipChildren') } }
|
||||
|
||||
# The number of times this media item has been skipped.
|
||||
field :skip_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('skipCount') } }
|
||||
|
||||
field :slug, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('slug') } }
|
||||
|
||||
# The studio that produced the media item.
|
||||
field :studio, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('studio') } }
|
||||
|
||||
field :tagline, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagline') } }
|
||||
|
||||
field :theme, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('theme') } }
|
||||
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
field :title_sort, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('titleSort') } }
|
||||
# A classification that further describes the type of media item. For example, 'clip' indicates that the item is a short video clip.
|
||||
field :subtype, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subtype') } }
|
||||
|
||||
field :ultra_blur_colors, T.nilable(Models::Operations::GetLibraryItemsUltraBlurColors), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('UltraBlurColors') } }
|
||||
# Unix epoch datetime in seconds
|
||||
field :updated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('updatedAt') } }
|
||||
|
||||
# The rating provided by a user for the item. This value is expressed as a decimal number.
|
||||
field :user_rating, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('userRating') } }
|
||||
# The number of times this media item has been viewed.
|
||||
field :view_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewCount') } }
|
||||
|
||||
# The number of leaf items that have been viewed.
|
||||
field :viewed_leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewedLeafCount') } }
|
||||
|
||||
# The current playback offset (in milliseconds).
|
||||
field :view_offset, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewOffset') } }
|
||||
|
||||
field :writer, T.nilable(T::Array[Models::Operations::GetLibraryItemsWriter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Writer') } }
|
||||
|
||||
# The release year of the media item.
|
||||
field :year, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('year') } }
|
||||
|
||||
|
||||
sig { params(added_at: ::Integer, guid: ::String, key: ::String, rating_key: ::String, summary: ::String, title: ::String, type: Models::Operations::GetLibraryItemsLibraryType, art: T.nilable(::String), audience_rating: T.nilable(::Float), audience_rating_image: T.nilable(::String), banner: T.nilable(::String), chapter_source: T.nilable(::String), child_count: T.nilable(::Integer), collection: T.nilable(T::Array[Models::Operations::GetLibraryItemsCollection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::GetLibraryItemsCountry]), director: T.nilable(T::Array[Models::Operations::GetLibraryItemsDirector]), duration: T.nilable(::Integer), enable_credits_marker_generation: T.nilable(Models::Operations::EnableCreditsMarkerGeneration), episode_sort: T.nilable(Models::Operations::EpisodeSort), flatten_seasons: T.nilable(Models::Operations::FlattenSeasons), genre: T.nilable(T::Array[Models::Operations::GetLibraryItemsGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), has_premium_extras: T.nilable(::String), has_premium_primary_extra: T.nilable(::String), image: T.nilable(T::Array[Models::Operations::GetLibraryItemsImage]), index: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), library_section_id: T.nilable(::Integer), library_section_key: T.nilable(::String), library_section_title: T.nilable(::String), location: T.nilable(T::Array[Models::Operations::GetLibraryItemsLocation]), media: T.nilable(T::Array[Models::Operations::GetLibraryItemsMedia]), media_guid: T.nilable(T::Array[Models::Operations::MediaGuid]), meta_data_rating: T.nilable(T::Array[Models::Operations::MetaDataRating]), originally_available_at: T.nilable(::Date), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_slug: T.nilable(::String), parent_studio: T.nilable(::String), parent_theme: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), parent_year: T.nilable(::Integer), primary_extra_key: T.nilable(::String), rating: T.nilable(::Float), rating_image: T.nilable(::String), role: T.nilable(T::Array[Models::Operations::GetLibraryItemsRole]), season_count: T.nilable(::Integer), show_ordering: T.nilable(Models::Operations::ShowOrdering), skip_children: T.nilable(T::Boolean), skip_count: T.nilable(::Integer), slug: T.nilable(::String), studio: T.nilable(::String), tagline: T.nilable(::String), theme: T.nilable(::String), thumb: T.nilable(::String), title_sort: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::GetLibraryItemsUltraBlurColors), updated_at: T.nilable(::Integer), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::GetLibraryItemsWriter]), year: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, guid: nil, key: nil, rating_key: nil, summary: nil, title: nil, type: nil, art: nil, audience_rating: nil, audience_rating_image: nil, banner: nil, chapter_source: nil, child_count: nil, collection: nil, content_rating: nil, country: nil, director: nil, duration: nil, enable_credits_marker_generation: nil, episode_sort: nil, flatten_seasons: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, has_premium_extras: nil, has_premium_primary_extra: nil, image: nil, index: nil, last_viewed_at: nil, leaf_count: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, location: nil, media: nil, media_guid: nil, meta_data_rating: nil, originally_available_at: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_slug: nil, parent_studio: nil, parent_theme: nil, parent_thumb: nil, parent_title: nil, parent_year: nil, primary_extra_key: nil, rating: nil, rating_image: nil, role: nil, season_count: nil, show_ordering: nil, skip_children: nil, skip_count: nil, slug: nil, studio: nil, tagline: nil, theme: nil, thumb: nil, title_sort: nil, ultra_blur_colors: nil, updated_at: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
||||
sig { params(added_at: ::Integer, art: ::String, audience_rating: ::Float, banner: ::String, child_count: ::Integer, duration: ::Integer, guid: ::String, index: ::Integer, key: ::String, rating: ::Float, rating_key: ::String, season_count: ::Integer, slug: ::String, summary: ::String, tagline: ::String, theme: ::String, thumb: ::String, title: ::String, title_sort: ::String, type: Models::Operations::GetLibraryItemsType, audience_rating_image: T.nilable(::String), chapter: T.nilable(T::Array[Models::Operations::Chapter]), chapter_source: T.nilable(::String), collection: T.nilable(T::Array[Models::Operations::GetLibraryItemsCollection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::GetLibraryItemsCountry]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[Models::Operations::GetLibraryItemsDirector]), extras: T.nilable(Models::Operations::Extras), flatten_seasons: T.nilable(Models::Operations::FlattenSeasons), genre: T.nilable(T::Array[Models::Operations::GetLibraryItemsGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), guids: T.nilable(T::Array[Models::Operations::GetLibraryItemsGuids]), image: T.nilable(T::Array[Models::Operations::GetLibraryItemsImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), library_section_id: T.nilable(::Integer), library_section_key: T.nilable(::String), library_section_title: T.nilable(::String), location: T.nilable(T::Array[Models::Operations::GetLibraryItemsLocation]), marker: T.nilable(T::Array[Models::Operations::Marker]), media: T.nilable(T::Array[Models::Operations::GetLibraryItemsMedia]), originally_available_at: T.nilable(::Date), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), primary_extra_key: T.nilable(::String), producer: T.nilable(T::Array[Models::Operations::GetLibraryItemsProducer]), rating_image: T.nilable(::String), ratings: T.nilable(T::Array[Models::Operations::Ratings]), role: T.nilable(T::Array[Models::Operations::GetLibraryItemsRole]), show_ordering: T.nilable(Models::Operations::ShowOrdering), similar: T.nilable(T::Array[Models::Operations::GetLibraryItemsSimilar]), skip_children: T.nilable(T::Boolean), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::GetLibraryItemsUltraBlurColors), updated_at: T.nilable(::Integer), user_rating: T.nilable(::Float), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::GetLibraryItemsWriter]), year: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, art: nil, audience_rating: nil, banner: nil, child_count: nil, duration: nil, guid: nil, index: nil, key: nil, rating: nil, rating_key: nil, season_count: nil, slug: nil, summary: nil, tagline: nil, theme: nil, thumb: nil, title: nil, title_sort: nil, type: nil, audience_rating_image: nil, chapter: nil, chapter_source: nil, collection: nil, content_rating: nil, country: nil, created_at_accuracy: nil, created_at_tz_offset: nil, director: nil, extras: nil, flatten_seasons: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, guids: nil, image: nil, last_rated_at: nil, last_viewed_at: nil, leaf_count: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, location: nil, marker: nil, media: nil, originally_available_at: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_thumb: nil, parent_title: nil, primary_extra_key: nil, producer: nil, rating_image: nil, ratings: nil, role: nil, show_ordering: nil, similar: nil, skip_children: nil, skip_count: nil, studio: nil, subtype: nil, ultra_blur_colors: nil, updated_at: nil, user_rating: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
||||
@added_at = added_at
|
||||
@guid = guid
|
||||
@key = key
|
||||
@rating_key = rating_key
|
||||
@summary = summary
|
||||
@title = title
|
||||
@type = type
|
||||
@art = art
|
||||
@audience_rating = audience_rating
|
||||
@audience_rating_image = audience_rating_image
|
||||
@banner = banner
|
||||
@chapter_source = chapter_source
|
||||
@child_count = child_count
|
||||
@duration = duration
|
||||
@guid = guid
|
||||
@index = index
|
||||
@key = key
|
||||
@rating = rating
|
||||
@rating_key = rating_key
|
||||
@season_count = season_count
|
||||
@slug = slug
|
||||
@summary = summary
|
||||
@tagline = tagline
|
||||
@theme = theme
|
||||
@thumb = thumb
|
||||
@title = title
|
||||
@title_sort = title_sort
|
||||
@type = type
|
||||
@audience_rating_image = audience_rating_image
|
||||
@chapter = chapter
|
||||
@chapter_source = chapter_source
|
||||
@collection = collection
|
||||
@content_rating = content_rating
|
||||
@country = country
|
||||
@created_at_accuracy = created_at_accuracy
|
||||
@created_at_tz_offset = created_at_tz_offset
|
||||
@director = director
|
||||
@duration = duration
|
||||
@enable_credits_marker_generation = enable_credits_marker_generation
|
||||
@episode_sort = episode_sort
|
||||
@extras = extras
|
||||
@flatten_seasons = flatten_seasons
|
||||
@genre = genre
|
||||
@grandparent_art = grandparent_art
|
||||
@@ -211,47 +222,39 @@ module PlexRubySDK
|
||||
@grandparent_theme = grandparent_theme
|
||||
@grandparent_thumb = grandparent_thumb
|
||||
@grandparent_title = grandparent_title
|
||||
@has_premium_extras = has_premium_extras
|
||||
@has_premium_primary_extra = has_premium_primary_extra
|
||||
@guids = guids
|
||||
@image = image
|
||||
@index = index
|
||||
@last_rated_at = last_rated_at
|
||||
@last_viewed_at = last_viewed_at
|
||||
@leaf_count = leaf_count
|
||||
@library_section_id = library_section_id
|
||||
@library_section_key = library_section_key
|
||||
@library_section_title = library_section_title
|
||||
@location = location
|
||||
@marker = marker
|
||||
@media = media
|
||||
@media_guid = media_guid
|
||||
@meta_data_rating = meta_data_rating
|
||||
@originally_available_at = originally_available_at
|
||||
@original_title = original_title
|
||||
@parent_guid = parent_guid
|
||||
@parent_index = parent_index
|
||||
@parent_key = parent_key
|
||||
@parent_rating_key = parent_rating_key
|
||||
@parent_slug = parent_slug
|
||||
@parent_studio = parent_studio
|
||||
@parent_theme = parent_theme
|
||||
@parent_thumb = parent_thumb
|
||||
@parent_title = parent_title
|
||||
@parent_year = parent_year
|
||||
@primary_extra_key = primary_extra_key
|
||||
@rating = rating
|
||||
@producer = producer
|
||||
@rating_image = rating_image
|
||||
@ratings = ratings
|
||||
@role = role
|
||||
@season_count = season_count
|
||||
@show_ordering = show_ordering
|
||||
@similar = similar
|
||||
@skip_children = skip_children
|
||||
@skip_count = skip_count
|
||||
@slug = slug
|
||||
@studio = studio
|
||||
@tagline = tagline
|
||||
@theme = theme
|
||||
@thumb = thumb
|
||||
@title_sort = title_sort
|
||||
@subtype = subtype
|
||||
@ultra_blur_colors = ultra_blur_colors
|
||||
@updated_at = updated_at
|
||||
@user_rating = user_rating
|
||||
@view_count = view_count
|
||||
@viewed_leaf_count = viewed_leaf_count
|
||||
@view_offset = view_offset
|
||||
@@ -262,25 +265,35 @@ module PlexRubySDK
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @added_at == other.added_at
|
||||
return false unless @guid == other.guid
|
||||
return false unless @key == other.key
|
||||
return false unless @rating_key == other.rating_key
|
||||
return false unless @summary == other.summary
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @art == other.art
|
||||
return false unless @audience_rating == other.audience_rating
|
||||
return false unless @audience_rating_image == other.audience_rating_image
|
||||
return false unless @banner == other.banner
|
||||
return false unless @chapter_source == other.chapter_source
|
||||
return false unless @child_count == other.child_count
|
||||
return false unless @duration == other.duration
|
||||
return false unless @guid == other.guid
|
||||
return false unless @index == other.index
|
||||
return false unless @key == other.key
|
||||
return false unless @rating == other.rating
|
||||
return false unless @rating_key == other.rating_key
|
||||
return false unless @season_count == other.season_count
|
||||
return false unless @slug == other.slug
|
||||
return false unless @summary == other.summary
|
||||
return false unless @tagline == other.tagline
|
||||
return false unless @theme == other.theme
|
||||
return false unless @thumb == other.thumb
|
||||
return false unless @title == other.title
|
||||
return false unless @title_sort == other.title_sort
|
||||
return false unless @type == other.type
|
||||
return false unless @audience_rating_image == other.audience_rating_image
|
||||
return false unless @chapter == other.chapter
|
||||
return false unless @chapter_source == other.chapter_source
|
||||
return false unless @collection == other.collection
|
||||
return false unless @content_rating == other.content_rating
|
||||
return false unless @country == other.country
|
||||
return false unless @created_at_accuracy == other.created_at_accuracy
|
||||
return false unless @created_at_tz_offset == other.created_at_tz_offset
|
||||
return false unless @director == other.director
|
||||
return false unless @duration == other.duration
|
||||
return false unless @enable_credits_marker_generation == other.enable_credits_marker_generation
|
||||
return false unless @episode_sort == other.episode_sort
|
||||
return false unless @extras == other.extras
|
||||
return false unless @flatten_seasons == other.flatten_seasons
|
||||
return false unless @genre == other.genre
|
||||
return false unless @grandparent_art == other.grandparent_art
|
||||
@@ -291,47 +304,39 @@ module PlexRubySDK
|
||||
return false unless @grandparent_theme == other.grandparent_theme
|
||||
return false unless @grandparent_thumb == other.grandparent_thumb
|
||||
return false unless @grandparent_title == other.grandparent_title
|
||||
return false unless @has_premium_extras == other.has_premium_extras
|
||||
return false unless @has_premium_primary_extra == other.has_premium_primary_extra
|
||||
return false unless @guids == other.guids
|
||||
return false unless @image == other.image
|
||||
return false unless @index == other.index
|
||||
return false unless @last_rated_at == other.last_rated_at
|
||||
return false unless @last_viewed_at == other.last_viewed_at
|
||||
return false unless @leaf_count == other.leaf_count
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_key == other.library_section_key
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @location == other.location
|
||||
return false unless @marker == other.marker
|
||||
return false unless @media == other.media
|
||||
return false unless @media_guid == other.media_guid
|
||||
return false unless @meta_data_rating == other.meta_data_rating
|
||||
return false unless @originally_available_at == other.originally_available_at
|
||||
return false unless @original_title == other.original_title
|
||||
return false unless @parent_guid == other.parent_guid
|
||||
return false unless @parent_index == other.parent_index
|
||||
return false unless @parent_key == other.parent_key
|
||||
return false unless @parent_rating_key == other.parent_rating_key
|
||||
return false unless @parent_slug == other.parent_slug
|
||||
return false unless @parent_studio == other.parent_studio
|
||||
return false unless @parent_theme == other.parent_theme
|
||||
return false unless @parent_thumb == other.parent_thumb
|
||||
return false unless @parent_title == other.parent_title
|
||||
return false unless @parent_year == other.parent_year
|
||||
return false unless @primary_extra_key == other.primary_extra_key
|
||||
return false unless @rating == other.rating
|
||||
return false unless @producer == other.producer
|
||||
return false unless @rating_image == other.rating_image
|
||||
return false unless @ratings == other.ratings
|
||||
return false unless @role == other.role
|
||||
return false unless @season_count == other.season_count
|
||||
return false unless @show_ordering == other.show_ordering
|
||||
return false unless @similar == other.similar
|
||||
return false unless @skip_children == other.skip_children
|
||||
return false unless @skip_count == other.skip_count
|
||||
return false unless @slug == other.slug
|
||||
return false unless @studio == other.studio
|
||||
return false unless @tagline == other.tagline
|
||||
return false unless @theme == other.theme
|
||||
return false unless @thumb == other.thumb
|
||||
return false unless @title_sort == other.title_sort
|
||||
return false unless @subtype == other.subtype
|
||||
return false unless @ultra_blur_colors == other.ultra_blur_colors
|
||||
return false unless @updated_at == other.updated_at
|
||||
return false unless @user_rating == other.user_rating
|
||||
return false unless @view_count == other.view_count
|
||||
return false unless @viewed_leaf_count == other.viewed_leaf_count
|
||||
return false unless @view_offset == other.view_offset
|
||||
|
||||
@@ -8,11 +8,19 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
class GetLibraryItemsOptimizedForStreaming
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
class GetLibraryItemsOptimizedForStreaming < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
|
||||
|
||||
|
||||
def initialize; end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,12 +9,10 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsLibraryResponse200Type < T::Enum
|
||||
class GetLibraryItemsOptimizedForStreaming1 < T::Enum
|
||||
enums do
|
||||
COVER_POSTER = new('coverPoster')
|
||||
BACKGROUND = new('background')
|
||||
SNAPSHOT = new('snapshot')
|
||||
CLEAR_LOGO = new('clearLogo')
|
||||
ZERO = new(0)
|
||||
ONE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -13,66 +13,74 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The container format of the media file.
|
||||
#
|
||||
field :container, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
||||
|
||||
field :file, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('file') } }
|
||||
|
||||
# Unique part identifier.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
|
||||
# Indicates if the part is accessible.
|
||||
field :accessible, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('accessible') } }
|
||||
# The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
field :audio_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioProfile') } }
|
||||
|
||||
# Container format of the part.
|
||||
field :container, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
||||
# Duration of the part in milliseconds.
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
# Indicates if the part exists.
|
||||
field :exists, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('exists') } }
|
||||
# File path for the part.
|
||||
field :file, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('file') } }
|
||||
|
||||
field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
|
||||
|
||||
field :has_thumbnail, T.nilable(Models::Operations::GetLibraryItemsHasThumbnail), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasThumbnail'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibraryItemsHasThumbnail, true) } }
|
||||
|
||||
field :indexes, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('indexes') } }
|
||||
# Key to access this part.
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
#
|
||||
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::GetLibraryItemsOptimizedForStreaming1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
|
||||
field :optimized_for_streaming, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
|
||||
field :stream, T.nilable(T::Array[Models::Operations::GetLibraryItemsStream]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Stream') } }
|
||||
|
||||
field :packet_length, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('packetLength') } }
|
||||
# File size in bytes.
|
||||
field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
# Video profile for the part.
|
||||
field :video_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
|
||||
|
||||
|
||||
sig { params(container: ::String, file: ::String, id: ::Integer, key: ::String, size: ::Integer, audio_profile: T.nilable(::String), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), has_thumbnail: T.nilable(Models::Operations::GetLibraryItemsHasThumbnail), indexes: T.nilable(::String), optimized_for_streaming: T.nilable(T::Boolean), stream: T.nilable(T::Array[Models::Operations::GetLibraryItemsStream]), video_profile: T.nilable(::String)).void }
|
||||
def initialize(container: nil, file: nil, id: nil, key: nil, size: nil, audio_profile: nil, duration: nil, has64bit_offsets: nil, has_thumbnail: nil, indexes: nil, optimized_for_streaming: nil, stream: nil, video_profile: nil)
|
||||
@container = container
|
||||
@file = file
|
||||
sig { params(id: ::Integer, accessible: T.nilable(T::Boolean), audio_profile: T.nilable(::String), container: T.nilable(::String), duration: T.nilable(::Integer), exists: T.nilable(T::Boolean), file: T.nilable(::String), has64bit_offsets: T.nilable(T::Boolean), has_thumbnail: T.nilable(Models::Operations::GetLibraryItemsHasThumbnail), indexes: T.nilable(::String), key: T.nilable(::String), optimized_for_streaming: T.nilable(T.any(Models::Operations::GetLibraryItemsOptimizedForStreaming1, T::Boolean)), packet_length: T.nilable(::Integer), size: T.nilable(::Integer), video_profile: T.nilable(::String)).void }
|
||||
def initialize(id: nil, accessible: nil, audio_profile: nil, container: nil, duration: nil, exists: nil, file: nil, has64bit_offsets: nil, has_thumbnail: nil, indexes: nil, key: nil, optimized_for_streaming: nil, packet_length: nil, size: nil, video_profile: nil)
|
||||
@id = id
|
||||
@key = key
|
||||
@size = size
|
||||
@accessible = accessible
|
||||
@audio_profile = audio_profile
|
||||
@container = container
|
||||
@duration = duration
|
||||
@exists = exists
|
||||
@file = file
|
||||
@has64bit_offsets = has64bit_offsets
|
||||
@has_thumbnail = has_thumbnail
|
||||
@indexes = indexes
|
||||
@key = key
|
||||
@optimized_for_streaming = optimized_for_streaming
|
||||
@stream = stream
|
||||
@packet_length = packet_length
|
||||
@size = size
|
||||
@video_profile = video_profile
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @container == other.container
|
||||
return false unless @file == other.file
|
||||
return false unless @id == other.id
|
||||
return false unless @key == other.key
|
||||
return false unless @size == other.size
|
||||
return false unless @accessible == other.accessible
|
||||
return false unless @audio_profile == other.audio_profile
|
||||
return false unless @container == other.container
|
||||
return false unless @duration == other.duration
|
||||
return false unless @exists == other.exists
|
||||
return false unless @file == other.file
|
||||
return false unless @has64bit_offsets == other.has64bit_offsets
|
||||
return false unless @has_thumbnail == other.has_thumbnail
|
||||
return false unless @indexes == other.indexes
|
||||
return false unless @key == other.key
|
||||
return false unless @optimized_for_streaming == other.optimized_for_streaming
|
||||
return false unless @stream == other.stream
|
||||
return false unless @packet_length == other.packet_length
|
||||
return false unless @size == other.size
|
||||
return false unless @video_profile == other.video_profile
|
||||
true
|
||||
end
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsProducer
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The filter string for the role.
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
# The unique role identifier.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The actor's name.
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# A key associated with the actor tag.
|
||||
field :tag_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The character name or role.
|
||||
field :role, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('role') } }
|
||||
# URL for the role thumbnail image.
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String, tag_key: ::String, role: T.nilable(::String), thumb: T.nilable(::String)).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, role: nil, thumb: nil)
|
||||
@filter = filter
|
||||
@id = id
|
||||
@tag = tag
|
||||
@tag_key = tag_key
|
||||
@role = role
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @filter == other.filter
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
return false unless @tag_key == other.tag_key
|
||||
return false unless @role == other.role
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -13,37 +13,31 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The filter used to find the actor or tag.
|
||||
field :filter, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
# The ID of the tag or actor.
|
||||
field :id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The role of the actor or tag in the media.
|
||||
# The unique identifier for the role.
|
||||
# NOTE: This is different for each Plex server and is not globally unique.
|
||||
#
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The display tag for the actor (typically the actor's name).
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The role played by the actor in the media item.
|
||||
field :role, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('role') } }
|
||||
# The name of the tag or actor.
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# Unique identifier for the tag.
|
||||
field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The thumbnail of the actor
|
||||
# The absolute URL of the thumbnail image for the actor.
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(filter: T.nilable(::String), id: T.nilable(::Integer), role: T.nilable(::String), tag: T.nilable(::String), tag_key: T.nilable(::String), thumb: T.nilable(::String)).void }
|
||||
def initialize(filter: nil, id: nil, role: nil, tag: nil, tag_key: nil, thumb: nil)
|
||||
@filter = filter
|
||||
sig { params(id: ::Integer, tag: ::String, role: T.nilable(::String), thumb: T.nilable(::String)).void }
|
||||
def initialize(id: nil, tag: nil, role: nil, thumb: nil)
|
||||
@id = id
|
||||
@role = role
|
||||
@tag = tag
|
||||
@tag_key = tag_key
|
||||
@role = role
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @filter == other.filter
|
||||
return false unless @id == other.id
|
||||
return false unless @role == other.role
|
||||
return false unless @tag == other.tag
|
||||
return false unless @tag_key == other.tag_key
|
||||
return false unless @role == other.role
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsSimilar
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The filter string for similar items.
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
# The unique similar item identifier.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The tag or title of the similar content.
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
|
||||
sig { params(filter: ::String, id: ::Integer, tag: ::String).void }
|
||||
def initialize(filter: nil, id: nil, tag: nil)
|
||||
@filter = filter
|
||||
@id = id
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @filter == other.filter
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,181 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsStream
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# Codec used by the stream
|
||||
field :codec, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('codec') } }
|
||||
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The index of the stream
|
||||
field :index, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
||||
# Type of stream (1 = video, 2 = audio, 3 = subtitle)
|
||||
field :stream_type, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType') } }
|
||||
# The audio channel layout
|
||||
field :audio_channel_layout, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioChannelLayout') } }
|
||||
# The bit depth of the video stream
|
||||
field :bit_depth, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('bitDepth') } }
|
||||
# The bitrate of the stream in kbps
|
||||
field :bitrate, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('bitrate') } }
|
||||
# Indicates if the subtitle stream can auto-sync
|
||||
field :can_auto_sync, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('canAutoSync') } }
|
||||
# Number of audio channels (for audio streams)
|
||||
field :channels, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('channels') } }
|
||||
# The chroma location of the video stream
|
||||
field :chroma_location, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chromaLocation') } }
|
||||
# The chroma subsampling format
|
||||
field :chroma_subsampling, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chromaSubsampling') } }
|
||||
|
||||
field :closed_captions, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('closedCaptions') } }
|
||||
# The coded height of the video stream
|
||||
field :coded_height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('codedHeight') } }
|
||||
# The coded width of the video stream
|
||||
field :coded_width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('codedWidth') } }
|
||||
# The color primaries of the video stream
|
||||
field :color_primaries, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('colorPrimaries') } }
|
||||
# The color range of the video stream
|
||||
field :color_range, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('colorRange') } }
|
||||
# The color space of the video stream
|
||||
field :color_space, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('colorSpace') } }
|
||||
# The transfer characteristics (TRC) of the video stream
|
||||
field :color_trc, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('colorTrc') } }
|
||||
# Indicates if this is the default stream
|
||||
field :default, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('default') } }
|
||||
# Display title of the stream
|
||||
field :display_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('displayTitle') } }
|
||||
|
||||
field :embedded_in_video, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('embeddedInVideo') } }
|
||||
# Extended display title of the stream
|
||||
field :extended_display_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('extendedDisplayTitle') } }
|
||||
# The frame rate of the video stream
|
||||
field :frame_rate, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('frameRate') } }
|
||||
# Indicates if the stream has a scaling matrix
|
||||
field :has_scaling_matrix, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasScalingMatrix') } }
|
||||
|
||||
field :hearing_impaired, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hearingImpaired') } }
|
||||
# The height of the video stream
|
||||
field :height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('height') } }
|
||||
# The language of the stream (for audio/subtitle streams)
|
||||
field :language, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('language') } }
|
||||
# Language code of the stream
|
||||
field :language_code, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('languageCode') } }
|
||||
# Language tag of the stream
|
||||
field :language_tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('languageTag') } }
|
||||
# The level of the video codec
|
||||
field :level, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('level') } }
|
||||
# The profile of the video codec
|
||||
field :profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('profile') } }
|
||||
# Number of reference frames
|
||||
field :ref_frames, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('refFrames') } }
|
||||
# Sampling rate of the audio stream in Hz
|
||||
field :sampling_rate, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('samplingRate') } }
|
||||
# The scan type (progressive or interlaced)
|
||||
field :scan_type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('scanType') } }
|
||||
# Indicates if the stream is selected
|
||||
field :selected, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('selected') } }
|
||||
# The identifier of the video stream
|
||||
field :stream_identifier, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamIdentifier') } }
|
||||
# Title of the subtitle track (for subtitle streams)
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
# The width of the video stream
|
||||
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
||||
|
||||
|
||||
sig { params(codec: ::String, id: ::Integer, index: ::Integer, stream_type: ::Integer, audio_channel_layout: T.nilable(::String), bit_depth: T.nilable(::Integer), bitrate: T.nilable(::Integer), can_auto_sync: T.nilable(T::Boolean), channels: T.nilable(::Integer), chroma_location: T.nilable(::String), chroma_subsampling: T.nilable(::String), closed_captions: T.nilable(T::Boolean), coded_height: T.nilable(::Integer), coded_width: T.nilable(::Integer), color_primaries: T.nilable(::String), color_range: T.nilable(::String), color_space: T.nilable(::String), color_trc: T.nilable(::String), default: T.nilable(T::Boolean), display_title: T.nilable(::String), embedded_in_video: T.nilable(::String), extended_display_title: T.nilable(::String), frame_rate: T.nilable(::Float), has_scaling_matrix: T.nilable(T::Boolean), hearing_impaired: T.nilable(T::Boolean), height: T.nilable(::Integer), language: T.nilable(::String), language_code: T.nilable(::String), language_tag: T.nilable(::String), level: T.nilable(::Integer), profile: T.nilable(::String), ref_frames: T.nilable(::Integer), sampling_rate: T.nilable(::Integer), scan_type: T.nilable(::String), selected: T.nilable(T::Boolean), stream_identifier: T.nilable(::String), title: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(codec: nil, id: nil, index: nil, stream_type: nil, audio_channel_layout: nil, bit_depth: nil, bitrate: nil, can_auto_sync: nil, channels: nil, chroma_location: nil, chroma_subsampling: nil, closed_captions: nil, coded_height: nil, coded_width: nil, color_primaries: nil, color_range: nil, color_space: nil, color_trc: nil, default: nil, display_title: nil, embedded_in_video: nil, extended_display_title: nil, frame_rate: nil, has_scaling_matrix: nil, hearing_impaired: nil, height: nil, language: nil, language_code: nil, language_tag: nil, level: nil, profile: nil, ref_frames: nil, sampling_rate: nil, scan_type: nil, selected: nil, stream_identifier: nil, title: nil, width: nil)
|
||||
@codec = codec
|
||||
@id = id
|
||||
@index = index
|
||||
@stream_type = stream_type
|
||||
@audio_channel_layout = audio_channel_layout
|
||||
@bit_depth = bit_depth
|
||||
@bitrate = bitrate
|
||||
@can_auto_sync = can_auto_sync
|
||||
@channels = channels
|
||||
@chroma_location = chroma_location
|
||||
@chroma_subsampling = chroma_subsampling
|
||||
@closed_captions = closed_captions
|
||||
@coded_height = coded_height
|
||||
@coded_width = coded_width
|
||||
@color_primaries = color_primaries
|
||||
@color_range = color_range
|
||||
@color_space = color_space
|
||||
@color_trc = color_trc
|
||||
@default = default
|
||||
@display_title = display_title
|
||||
@embedded_in_video = embedded_in_video
|
||||
@extended_display_title = extended_display_title
|
||||
@frame_rate = frame_rate
|
||||
@has_scaling_matrix = has_scaling_matrix
|
||||
@hearing_impaired = hearing_impaired
|
||||
@height = height
|
||||
@language = language
|
||||
@language_code = language_code
|
||||
@language_tag = language_tag
|
||||
@level = level
|
||||
@profile = profile
|
||||
@ref_frames = ref_frames
|
||||
@sampling_rate = sampling_rate
|
||||
@scan_type = scan_type
|
||||
@selected = selected
|
||||
@stream_identifier = stream_identifier
|
||||
@title = title
|
||||
@width = width
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @codec == other.codec
|
||||
return false unless @id == other.id
|
||||
return false unless @index == other.index
|
||||
return false unless @stream_type == other.stream_type
|
||||
return false unless @audio_channel_layout == other.audio_channel_layout
|
||||
return false unless @bit_depth == other.bit_depth
|
||||
return false unless @bitrate == other.bitrate
|
||||
return false unless @can_auto_sync == other.can_auto_sync
|
||||
return false unless @channels == other.channels
|
||||
return false unless @chroma_location == other.chroma_location
|
||||
return false unless @chroma_subsampling == other.chroma_subsampling
|
||||
return false unless @closed_captions == other.closed_captions
|
||||
return false unless @coded_height == other.coded_height
|
||||
return false unless @coded_width == other.coded_width
|
||||
return false unless @color_primaries == other.color_primaries
|
||||
return false unless @color_range == other.color_range
|
||||
return false unless @color_space == other.color_space
|
||||
return false unless @color_trc == other.color_trc
|
||||
return false unless @default == other.default
|
||||
return false unless @display_title == other.display_title
|
||||
return false unless @embedded_in_video == other.embedded_in_video
|
||||
return false unless @extended_display_title == other.extended_display_title
|
||||
return false unless @frame_rate == other.frame_rate
|
||||
return false unless @has_scaling_matrix == other.has_scaling_matrix
|
||||
return false unless @hearing_impaired == other.hearing_impaired
|
||||
return false unless @height == other.height
|
||||
return false unless @language == other.language
|
||||
return false unless @language_code == other.language_code
|
||||
return false unless @language_tag == other.language_tag
|
||||
return false unless @level == other.level
|
||||
return false unless @profile == other.profile
|
||||
return false unless @ref_frames == other.ref_frames
|
||||
return false unless @sampling_rate == other.sampling_rate
|
||||
return false unless @scan_type == other.scan_type
|
||||
return false unless @selected == other.selected
|
||||
return false unless @stream_identifier == other.stream_identifier
|
||||
return false unless @title == other.title
|
||||
return false unless @width == other.width
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -8,52 +8,20 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetLibraryItemsType
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :active, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('active') } }
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
|
||||
field :field, T.nilable(T::Array[Models::Operations::GetLibraryItemsField]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Field') } }
|
||||
|
||||
field :filter, T.nilable(T::Array[Models::Operations::GetLibraryItemsFilter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Filter') } }
|
||||
|
||||
field :sort, T.nilable(T::Array[Models::Operations::GetLibraryItemsSort]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Sort') } }
|
||||
|
||||
field :subtype, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subtype') } }
|
||||
|
||||
|
||||
sig { params(active: T::Boolean, key: ::String, title: ::String, type: ::String, field: T.nilable(T::Array[Models::Operations::GetLibraryItemsField]), filter: T.nilable(T::Array[Models::Operations::GetLibraryItemsFilter]), sort: T.nilable(T::Array[Models::Operations::GetLibraryItemsSort]), subtype: T.nilable(::String)).void }
|
||||
def initialize(active: nil, key: nil, title: nil, type: nil, field: nil, filter: nil, sort: nil, subtype: nil)
|
||||
@active = active
|
||||
@key = key
|
||||
@title = title
|
||||
@type = type
|
||||
@field = field
|
||||
@filter = filter
|
||||
@sort = sort
|
||||
@subtype = subtype
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @active == other.active
|
||||
return false unless @key == other.key
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @field == other.field
|
||||
return false unless @filter == other.filter
|
||||
return false unless @sort == other.sort
|
||||
return false unless @subtype == other.subtype
|
||||
true
|
||||
# GetLibraryItemsType - The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
#
|
||||
class GetLibraryItemsType < T::Enum
|
||||
enums do
|
||||
MOVIE = new('movie')
|
||||
TV_SHOW = new('show')
|
||||
SEASON = new('season')
|
||||
EPISODE = new('episode')
|
||||
ARTIST = new('artist')
|
||||
ALBUM = new('album')
|
||||
TRACK = new('track')
|
||||
PHOTO_ALBUM = new('photoalbum')
|
||||
PHOTO = new('photo')
|
||||
COLLECTION = new('collection')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,18 +13,26 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# Unique identifier for the writer.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The role of Writer
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The absolute URL of the thumbnail image for the writer.
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(tag: T.nilable(::String)).void }
|
||||
def initialize(tag: nil)
|
||||
sig { params(id: ::Integer, tag: ::String, thumb: T.nilable(::String)).void }
|
||||
def initialize(id: nil, tag: nil, thumb: nil)
|
||||
@id = id
|
||||
@tag = tag
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -38,7 +38,7 @@ module PlexRubySDK
|
||||
# Video height in pixels.
|
||||
field :height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('height') } }
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::OptimizedForStreaming1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::GetLibrarySectionsAllOptimizedForStreaming1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
# An array of parts for this media item.
|
||||
field :part, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllPart]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
|
||||
# Video codec used.
|
||||
@@ -54,7 +54,7 @@ module PlexRubySDK
|
||||
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
||||
|
||||
|
||||
sig { params(id: ::Integer, aspect_ratio: T.nilable(::Float), audio_channels: T.nilable(::Integer), audio_codec: T.nilable(::String), audio_profile: T.nilable(::String), bitrate: T.nilable(::Integer), container: T.nilable(::String), display_offset: T.nilable(::Integer), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), has_voice_activity: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(T.any(Models::Operations::OptimizedForStreaming1, T::Boolean)), part: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllPart]), video_codec: T.nilable(::String), video_frame_rate: T.nilable(::String), video_profile: T.nilable(::String), video_resolution: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
sig { params(id: ::Integer, aspect_ratio: T.nilable(::Float), audio_channels: T.nilable(::Integer), audio_codec: T.nilable(::String), audio_profile: T.nilable(::String), bitrate: T.nilable(::Integer), container: T.nilable(::String), display_offset: T.nilable(::Integer), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), has_voice_activity: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(T.any(Models::Operations::GetLibrarySectionsAllOptimizedForStreaming1, T::Boolean)), part: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllPart]), video_codec: T.nilable(::String), video_frame_rate: T.nilable(::String), video_profile: T.nilable(::String), video_resolution: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(id: nil, aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, display_offset: nil, duration: nil, has64bit_offsets: nil, has_voice_activity: nil, height: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil)
|
||||
@id = id
|
||||
@aspect_ratio = aspect_ratio
|
||||
|
||||
@@ -21,10 +21,6 @@ module PlexRubySDK
|
||||
field :content, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('content') } }
|
||||
# An plugin identifier for the media container.
|
||||
field :identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
||||
# The unique identifier for the library section.
|
||||
field :library_section_id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
# The prefix used for media tag resource paths.
|
||||
field :media_tag_prefix, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagPrefix') } }
|
||||
# The version number for media tags.
|
||||
@@ -45,6 +41,10 @@ module PlexRubySDK
|
||||
field :total_size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('totalSize') } }
|
||||
# Identifier for the view group layout.
|
||||
field :view_group, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewGroup') } }
|
||||
# The unique identifier for the library section.
|
||||
field :library_section_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
# The universally unique identifier for the library section.
|
||||
field :library_section_uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionUUID') } }
|
||||
# The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.
|
||||
@@ -54,14 +54,12 @@ module PlexRubySDK
|
||||
field :metadata, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMetadata]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
|
||||
|
||||
sig { params(allow_sync: T::Boolean, art: ::String, content: ::String, identifier: ::String, library_section_id: ::Integer, library_section_title: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, nocache: T::Boolean, offset: ::Integer, size: ::Integer, thumb: ::String, title1: ::String, title2: ::String, total_size: ::Integer, view_group: ::String, library_section_uuid: T.nilable(::String), meta: T.nilable(Models::Operations::GetLibrarySectionsAllMeta), metadata: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMetadata])).void }
|
||||
def initialize(allow_sync: nil, art: nil, content: nil, identifier: nil, library_section_id: nil, library_section_title: nil, media_tag_prefix: nil, media_tag_version: nil, nocache: nil, offset: nil, size: nil, thumb: nil, title1: nil, title2: nil, total_size: nil, view_group: nil, library_section_uuid: nil, meta: nil, metadata: nil)
|
||||
sig { params(allow_sync: T::Boolean, art: ::String, content: ::String, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, nocache: T::Boolean, offset: ::Integer, size: ::Integer, thumb: ::String, title1: ::String, title2: ::String, total_size: ::Integer, view_group: ::String, library_section_id: T.nilable(::Integer), library_section_title: T.nilable(::String), library_section_uuid: T.nilable(::String), meta: T.nilable(Models::Operations::GetLibrarySectionsAllMeta), metadata: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMetadata])).void }
|
||||
def initialize(allow_sync: nil, art: nil, content: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, nocache: nil, offset: nil, size: nil, thumb: nil, title1: nil, title2: nil, total_size: nil, view_group: nil, library_section_id: nil, library_section_title: nil, library_section_uuid: nil, meta: nil, metadata: nil)
|
||||
@allow_sync = allow_sync
|
||||
@art = art
|
||||
@content = content
|
||||
@identifier = identifier
|
||||
@library_section_id = library_section_id
|
||||
@library_section_title = library_section_title
|
||||
@media_tag_prefix = media_tag_prefix
|
||||
@media_tag_version = media_tag_version
|
||||
@nocache = nocache
|
||||
@@ -72,6 +70,8 @@ module PlexRubySDK
|
||||
@title2 = title2
|
||||
@total_size = total_size
|
||||
@view_group = view_group
|
||||
@library_section_id = library_section_id
|
||||
@library_section_title = library_section_title
|
||||
@library_section_uuid = library_section_uuid
|
||||
@meta = meta
|
||||
@metadata = metadata
|
||||
@@ -83,8 +83,6 @@ module PlexRubySDK
|
||||
return false unless @art == other.art
|
||||
return false unless @content == other.content
|
||||
return false unless @identifier == other.identifier
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @media_tag_prefix == other.media_tag_prefix
|
||||
return false unless @media_tag_version == other.media_tag_version
|
||||
return false unless @nocache == other.nocache
|
||||
@@ -95,6 +93,8 @@ module PlexRubySDK
|
||||
return false unless @title2 == other.title2
|
||||
return false unless @total_size == other.total_size
|
||||
return false unless @view_group == other.view_group
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @library_section_uuid == other.library_section_uuid
|
||||
return false unless @meta == other.meta
|
||||
return false unless @metadata == other.metadata
|
||||
|
||||
@@ -30,8 +30,6 @@ module PlexRubySDK
|
||||
field :index, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
||||
# The unique key for the media item.
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# The original release date of the media item.
|
||||
field :originally_available_at, ::Date, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(false) } }
|
||||
# The critic rating for the media item.
|
||||
field :rating, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('rating') } }
|
||||
# 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.
|
||||
@@ -100,6 +98,8 @@ module PlexRubySDK
|
||||
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
||||
|
||||
field :media, T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMedia]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
|
||||
# The original release date of the media item.
|
||||
field :originally_available_at, T.nilable(::Date), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(true) } }
|
||||
# The original title of the media item (if different).
|
||||
field :original_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originalTitle') } }
|
||||
# The GUID of the parent media item.
|
||||
@@ -144,8 +144,8 @@ module PlexRubySDK
|
||||
field :year, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('year') } }
|
||||
|
||||
|
||||
sig { params(added_at: ::Integer, art: ::String, audience_rating: ::Float, child_count: ::Integer, duration: ::Integer, guid: ::String, index: ::Integer, key: ::String, originally_available_at: ::Date, rating: ::Float, rating_key: ::String, season_count: ::Integer, slug: ::String, summary: ::String, tagline: ::String, theme: ::String, thumb: ::String, title: ::String, title_sort: ::String, type: Models::Operations::GetLibrarySectionsAllLibraryType, audience_rating_image: T.nilable(::String), chapter_source: T.nilable(::String), collection: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCollection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCountry]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllDirector]), genre: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), guids: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGuids]), image: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), media: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMedia]), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), primary_extra_key: T.nilable(::String), rating_image: T.nilable(::String), role: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllRole]), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::GetLibrarySectionsAllUltraBlurColors), updated_at: T.nilable(::Integer), user_rating: T.nilable(::Float), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllWriter]), year: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, art: nil, audience_rating: nil, child_count: nil, duration: nil, guid: nil, index: nil, key: nil, originally_available_at: nil, rating: nil, rating_key: nil, season_count: nil, slug: nil, summary: nil, tagline: nil, theme: nil, thumb: nil, title: nil, title_sort: nil, type: nil, audience_rating_image: nil, chapter_source: nil, collection: nil, content_rating: nil, country: nil, created_at_accuracy: nil, created_at_tz_offset: nil, director: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, guids: nil, image: nil, last_rated_at: nil, last_viewed_at: nil, leaf_count: nil, media: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_thumb: nil, parent_title: nil, primary_extra_key: nil, rating_image: nil, role: nil, skip_count: nil, studio: nil, subtype: nil, ultra_blur_colors: nil, updated_at: nil, user_rating: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
||||
sig { params(added_at: ::Integer, art: ::String, audience_rating: ::Float, child_count: ::Integer, duration: ::Integer, guid: ::String, index: ::Integer, key: ::String, rating: ::Float, rating_key: ::String, season_count: ::Integer, slug: ::String, summary: ::String, tagline: ::String, theme: ::String, thumb: ::String, title: ::String, title_sort: ::String, type: Models::Operations::GetLibrarySectionsAllLibraryType, audience_rating_image: T.nilable(::String), chapter_source: T.nilable(::String), collection: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCollection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllCountry]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllDirector]), genre: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), guids: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllGuids]), image: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), media: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllMedia]), originally_available_at: T.nilable(::Date), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), primary_extra_key: T.nilable(::String), rating_image: T.nilable(::String), role: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllRole]), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::GetLibrarySectionsAllUltraBlurColors), updated_at: T.nilable(::Integer), user_rating: T.nilable(::Float), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllWriter]), year: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, art: nil, audience_rating: nil, child_count: nil, duration: nil, guid: nil, index: nil, key: nil, rating: nil, rating_key: nil, season_count: nil, slug: nil, summary: nil, tagline: nil, theme: nil, thumb: nil, title: nil, title_sort: nil, type: nil, audience_rating_image: nil, chapter_source: nil, collection: nil, content_rating: nil, country: nil, created_at_accuracy: nil, created_at_tz_offset: nil, director: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, guids: nil, image: nil, last_rated_at: nil, last_viewed_at: nil, leaf_count: nil, media: nil, originally_available_at: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_thumb: nil, parent_title: nil, primary_extra_key: nil, rating_image: nil, role: nil, skip_count: nil, studio: nil, subtype: nil, ultra_blur_colors: nil, updated_at: nil, user_rating: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
||||
@added_at = added_at
|
||||
@art = art
|
||||
@audience_rating = audience_rating
|
||||
@@ -154,7 +154,6 @@ module PlexRubySDK
|
||||
@guid = guid
|
||||
@index = index
|
||||
@key = key
|
||||
@originally_available_at = originally_available_at
|
||||
@rating = rating
|
||||
@rating_key = rating_key
|
||||
@season_count = season_count
|
||||
@@ -189,6 +188,7 @@ module PlexRubySDK
|
||||
@last_viewed_at = last_viewed_at
|
||||
@leaf_count = leaf_count
|
||||
@media = media
|
||||
@originally_available_at = originally_available_at
|
||||
@original_title = original_title
|
||||
@parent_guid = parent_guid
|
||||
@parent_index = parent_index
|
||||
@@ -222,7 +222,6 @@ module PlexRubySDK
|
||||
return false unless @guid == other.guid
|
||||
return false unless @index == other.index
|
||||
return false unless @key == other.key
|
||||
return false unless @originally_available_at == other.originally_available_at
|
||||
return false unless @rating == other.rating
|
||||
return false unless @rating_key == other.rating_key
|
||||
return false unless @season_count == other.season_count
|
||||
@@ -257,6 +256,7 @@ module PlexRubySDK
|
||||
return false unless @last_viewed_at == other.last_viewed_at
|
||||
return false unless @leaf_count == other.leaf_count
|
||||
return false unless @media == other.media
|
||||
return false unless @originally_available_at == other.originally_available_at
|
||||
return false unless @original_title == other.original_title
|
||||
return false unless @parent_guid == other.parent_guid
|
||||
return false unless @parent_index == other.parent_index
|
||||
|
||||
@@ -8,16 +8,11 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# StreamType - Stream type:
|
||||
# - 1 = video
|
||||
# - 2 = audio
|
||||
# - 3 = subtitle
|
||||
#
|
||||
class StreamType < T::Enum
|
||||
|
||||
class GetLibrarySectionsAllOptimizedForStreamingLibrary1 < T::Enum
|
||||
enums do
|
||||
VIDEO = new(1)
|
||||
AUDIO = new(2)
|
||||
SUBTITLE = new(3)
|
||||
ZERO = new(0)
|
||||
ONE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -38,7 +38,7 @@ module PlexRubySDK
|
||||
|
||||
field :indexes, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('indexes') } }
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::GetLibrarySectionsAllOptimizedForStreaming1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::GetLibrarySectionsAllOptimizedForStreamingLibrary1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
|
||||
field :packet_length, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('packetLength') } }
|
||||
# An array of streams for this part.
|
||||
@@ -47,7 +47,7 @@ module PlexRubySDK
|
||||
field :video_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
|
||||
|
||||
|
||||
sig { params(file: ::String, id: ::Integer, key: ::String, size: ::Integer, accessible: T.nilable(T::Boolean), audio_profile: T.nilable(::String), container: T.nilable(::String), duration: T.nilable(::Integer), exists: T.nilable(T::Boolean), has64bit_offsets: T.nilable(T::Boolean), has_thumbnail: T.nilable(Models::Operations::GetLibrarySectionsAllHasThumbnail), indexes: T.nilable(::String), optimized_for_streaming: T.nilable(T.any(Models::Operations::GetLibrarySectionsAllOptimizedForStreaming1, T::Boolean)), packet_length: T.nilable(::Integer), stream: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllStream]), video_profile: T.nilable(::String)).void }
|
||||
sig { params(file: ::String, id: ::Integer, key: ::String, size: ::Integer, accessible: T.nilable(T::Boolean), audio_profile: T.nilable(::String), container: T.nilable(::String), duration: T.nilable(::Integer), exists: T.nilable(T::Boolean), has64bit_offsets: T.nilable(T::Boolean), has_thumbnail: T.nilable(Models::Operations::GetLibrarySectionsAllHasThumbnail), indexes: T.nilable(::String), optimized_for_streaming: T.nilable(T.any(Models::Operations::GetLibrarySectionsAllOptimizedForStreamingLibrary1, T::Boolean)), packet_length: T.nilable(::Integer), stream: T.nilable(T::Array[Models::Operations::GetLibrarySectionsAllStream]), video_profile: T.nilable(::String)).void }
|
||||
def initialize(file: nil, id: nil, key: nil, size: nil, accessible: nil, audio_profile: nil, container: nil, duration: nil, exists: nil, has64bit_offsets: nil, has_thumbnail: nil, indexes: nil, optimized_for_streaming: nil, packet_length: nil, stream: nil, video_profile: nil)
|
||||
@file = file
|
||||
@id = id
|
||||
|
||||
@@ -22,11 +22,11 @@ module PlexRubySDK
|
||||
# Unique stream identifier.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# Stream type:
|
||||
# - 1 = video
|
||||
# - 2 = audio
|
||||
# - 3 = subtitle
|
||||
# - VIDEO = 1
|
||||
# - AUDIO = 2
|
||||
# - SUBTITLE = 3
|
||||
#
|
||||
field :stream_type, Models::Operations::GetLibrarySectionsAllStreamType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType'), 'decoder': Utils.enum_from_string(Models::Operations::GetLibrarySectionsAllStreamType, false) } }
|
||||
field :stream_type, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType') } }
|
||||
# Audio channel layout.
|
||||
field :audio_channel_layout, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioChannelLayout') } }
|
||||
# Bit depth of the video stream.
|
||||
@@ -121,7 +121,7 @@ module PlexRubySDK
|
||||
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
||||
|
||||
|
||||
sig { params(codec: ::String, display_title: ::String, extended_display_title: ::String, id: ::Integer, stream_type: Models::Operations::GetLibrarySectionsAllStreamType, audio_channel_layout: T.nilable(::String), bit_depth: T.nilable(::Integer), bitrate: T.nilable(::Integer), can_auto_sync: T.nilable(T::Boolean), channels: T.nilable(::Integer), chroma_location: T.nilable(::String), chroma_subsampling: T.nilable(::String), closed_captions: T.nilable(T::Boolean), coded_height: T.nilable(::Integer), coded_width: T.nilable(::Integer), color_primaries: T.nilable(::String), color_range: T.nilable(::String), color_space: T.nilable(::String), color_trc: T.nilable(::String), default: T.nilable(T::Boolean), dovibl_compat_id: T.nilable(::Integer), dovibl_present: T.nilable(T::Boolean), doviel_present: T.nilable(T::Boolean), dovi_level: T.nilable(::Integer), dovi_present: T.nilable(T::Boolean), dovi_profile: T.nilable(::Integer), dovirpu_present: T.nilable(T::Boolean), dovi_version: T.nilable(::String), dub: T.nilable(T::Boolean), embedded_in_video: T.nilable(::String), forced: T.nilable(T::Boolean), format: T.nilable(::String), frame_rate: T.nilable(::Float), has_scaling_matrix: T.nilable(T::Boolean), header_compression: T.nilable(T::Boolean), hearing_impaired: T.nilable(T::Boolean), height: T.nilable(::Integer), index: T.nilable(::Integer), key: T.nilable(::String), language: T.nilable(::String), language_code: T.nilable(::String), language_tag: T.nilable(::String), level: T.nilable(::Integer), original: T.nilable(T::Boolean), profile: T.nilable(::String), ref_frames: T.nilable(::Integer), sampling_rate: T.nilable(::Integer), scan_type: T.nilable(::String), selected: T.nilable(T::Boolean), title: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
sig { params(codec: ::String, display_title: ::String, extended_display_title: ::String, id: ::Integer, stream_type: ::Integer, audio_channel_layout: T.nilable(::String), bit_depth: T.nilable(::Integer), bitrate: T.nilable(::Integer), can_auto_sync: T.nilable(T::Boolean), channels: T.nilable(::Integer), chroma_location: T.nilable(::String), chroma_subsampling: T.nilable(::String), closed_captions: T.nilable(T::Boolean), coded_height: T.nilable(::Integer), coded_width: T.nilable(::Integer), color_primaries: T.nilable(::String), color_range: T.nilable(::String), color_space: T.nilable(::String), color_trc: T.nilable(::String), default: T.nilable(T::Boolean), dovibl_compat_id: T.nilable(::Integer), dovibl_present: T.nilable(T::Boolean), doviel_present: T.nilable(T::Boolean), dovi_level: T.nilable(::Integer), dovi_present: T.nilable(T::Boolean), dovi_profile: T.nilable(::Integer), dovirpu_present: T.nilable(T::Boolean), dovi_version: T.nilable(::String), dub: T.nilable(T::Boolean), embedded_in_video: T.nilable(::String), forced: T.nilable(T::Boolean), format: T.nilable(::String), frame_rate: T.nilable(::Float), has_scaling_matrix: T.nilable(T::Boolean), header_compression: T.nilable(T::Boolean), hearing_impaired: T.nilable(T::Boolean), height: T.nilable(::Integer), index: T.nilable(::Integer), key: T.nilable(::String), language: T.nilable(::String), language_code: T.nilable(::String), language_tag: T.nilable(::String), level: T.nilable(::Integer), original: T.nilable(T::Boolean), profile: T.nilable(::String), ref_frames: T.nilable(::Integer), sampling_rate: T.nilable(::Integer), scan_type: T.nilable(::String), selected: T.nilable(T::Boolean), title: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(codec: nil, display_title: nil, extended_display_title: nil, id: nil, stream_type: nil, audio_channel_layout: nil, bit_depth: nil, bitrate: nil, can_auto_sync: nil, channels: nil, chroma_location: nil, chroma_subsampling: nil, closed_captions: nil, coded_height: nil, coded_width: nil, color_primaries: nil, color_range: nil, color_space: nil, color_trc: nil, default: nil, dovibl_compat_id: nil, dovibl_present: nil, doviel_present: nil, dovi_level: nil, dovi_present: nil, dovi_profile: nil, dovirpu_present: nil, dovi_version: nil, dub: nil, embedded_in_video: nil, forced: nil, format: nil, frame_rate: nil, has_scaling_matrix: nil, header_compression: nil, hearing_impaired: nil, height: nil, index: nil, key: nil, language: nil, language_code: nil, language_tag: nil, level: nil, original: nil, profile: nil, ref_frames: nil, sampling_rate: nil, scan_type: nil, selected: nil, title: nil, width: nil)
|
||||
@codec = codec
|
||||
@display_title = display_title
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetLibrarySectionsAllStreamType - Stream type:
|
||||
# - 1 = video
|
||||
# - 2 = audio
|
||||
# - 3 = subtitle
|
||||
#
|
||||
class GetLibrarySectionsAllStreamType < T::Enum
|
||||
enums do
|
||||
VIDEO = new(1)
|
||||
AUDIO = new(2)
|
||||
SUBTITLE = new(3)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,37 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# Attributes associated with the marker.
|
||||
class GetMediaMetaDataAttributes
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The identifier for the attributes.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The version number of the marker attributes.
|
||||
field :version, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('version') } }
|
||||
|
||||
|
||||
sig { params(id: ::Integer, version: T.nilable(::Integer)).void }
|
||||
def initialize(id: nil, version: nil)
|
||||
@id = id
|
||||
@version = version
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @version == other.version
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,53 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# The thumbnail for the chapter
|
||||
class GetMediaMetaDataChapter
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :end_time_offset, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('endTimeOffset') } }
|
||||
|
||||
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
field :index, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
||||
|
||||
field :start_time_offset, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('startTimeOffset') } }
|
||||
|
||||
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(end_time_offset: ::Integer, filter: ::String, id: ::Integer, index: ::Integer, start_time_offset: ::Integer, thumb: ::String).void }
|
||||
def initialize(end_time_offset: nil, filter: nil, id: nil, index: nil, start_time_offset: nil, thumb: nil)
|
||||
@end_time_offset = end_time_offset
|
||||
@filter = filter
|
||||
@id = id
|
||||
@index = index
|
||||
@start_time_offset = start_time_offset
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @end_time_offset == other.end_time_offset
|
||||
return false unless @filter == other.filter
|
||||
return false unless @id == other.id
|
||||
return false unless @index == other.index
|
||||
return false unless @start_time_offset == other.start_time_offset
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,33 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetMediaMetaDataExtras
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The size of the extras.
|
||||
field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
|
||||
|
||||
sig { params(size: T.nilable(::Integer)).void }
|
||||
def initialize(size: nil)
|
||||
@size = size
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @size == other.size
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -9,6 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# GetMediaMetaDataHasThumbnail - Indicates if the part has a thumbnail.
|
||||
#
|
||||
class GetMediaMetaDataHasThumbnail < T::Enum
|
||||
enums do
|
||||
FALSE = new('0')
|
||||
|
||||
@@ -9,6 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
#
|
||||
class GetMediaMetaDataLibraryOptimizedForStreaming
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# The final status of the marker
|
||||
class GetMediaMetaDataMarker
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :end_time_offset, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('endTimeOffset') } }
|
||||
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
field :start_time_offset, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('startTimeOffset') } }
|
||||
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
# Attributes associated with the marker.
|
||||
field :attributes, T.nilable(Models::Operations::GetMediaMetaDataAttributes), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Attributes') } }
|
||||
|
||||
field :final, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('final') } }
|
||||
|
||||
|
||||
sig { params(end_time_offset: ::Integer, id: ::Integer, start_time_offset: ::Integer, type: ::String, attributes: T.nilable(Models::Operations::GetMediaMetaDataAttributes), final: T.nilable(T::Boolean)).void }
|
||||
def initialize(end_time_offset: nil, id: nil, start_time_offset: nil, type: nil, attributes: nil, final: nil)
|
||||
@end_time_offset = end_time_offset
|
||||
@id = id
|
||||
@start_time_offset = start_time_offset
|
||||
@type = type
|
||||
@attributes = attributes
|
||||
@final = final
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @end_time_offset == other.end_time_offset
|
||||
return false unless @id == other.id
|
||||
return false unless @start_time_offset == other.start_time_offset
|
||||
return false unless @type == other.type
|
||||
return false unless @attributes == other.attributes
|
||||
return false unless @final == other.final
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -25,13 +25,15 @@ module PlexRubySDK
|
||||
field :audio_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioProfile') } }
|
||||
# Bitrate in bits per second.
|
||||
field :bitrate, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('bitrate') } }
|
||||
# File container type.
|
||||
# Container format of the media.
|
||||
field :container, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
||||
|
||||
field :display_offset, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('displayOffset') } }
|
||||
# Duration of the media in milliseconds.
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
|
||||
# Indicates whether the media has 64-bit offsets.
|
||||
# This is relevant for media files that may require larger offsets than what 32-bit integers can provide.
|
||||
#
|
||||
field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
|
||||
# Indicates whether voice activity is detected.
|
||||
field :has_voice_activity, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasVoiceActivity') } }
|
||||
@@ -39,7 +41,7 @@ module PlexRubySDK
|
||||
field :height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('height') } }
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::GetMediaMetaDataOptimizedForStreaming1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
# An array of parts for this media item.
|
||||
|
||||
field :part, T.nilable(T::Array[Models::Operations::GetMediaMetaDataPart]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
|
||||
# Video codec used.
|
||||
field :video_codec, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoCodec') } }
|
||||
|
||||
@@ -17,10 +17,6 @@ module PlexRubySDK
|
||||
field :allow_sync, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('allowSync') } }
|
||||
# An plugin identifier for the media container.
|
||||
field :identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
||||
# The unique identifier for the library section.
|
||||
field :library_section_id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
# The prefix used for media tag resource paths.
|
||||
field :media_tag_prefix, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagPrefix') } }
|
||||
# The version number for media tags.
|
||||
@@ -29,20 +25,24 @@ module PlexRubySDK
|
||||
field :metadata, T::Array[Models::Operations::GetMediaMetaDataMetadata], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
# Number of media items returned in this response.
|
||||
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
# The unique identifier for the library section.
|
||||
field :library_section_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
# The universally unique identifier for the library section.
|
||||
field :library_section_uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionUUID') } }
|
||||
|
||||
|
||||
sig { params(allow_sync: T::Boolean, identifier: ::String, library_section_id: ::Integer, library_section_title: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, metadata: T::Array[Models::Operations::GetMediaMetaDataMetadata], size: ::Integer, library_section_uuid: T.nilable(::String)).void }
|
||||
def initialize(allow_sync: nil, identifier: nil, library_section_id: nil, library_section_title: nil, media_tag_prefix: nil, media_tag_version: nil, metadata: nil, size: nil, library_section_uuid: nil)
|
||||
sig { params(allow_sync: T::Boolean, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, metadata: T::Array[Models::Operations::GetMediaMetaDataMetadata], size: ::Integer, library_section_id: T.nilable(::Integer), library_section_title: T.nilable(::String), library_section_uuid: T.nilable(::String)).void }
|
||||
def initialize(allow_sync: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, metadata: nil, size: nil, library_section_id: nil, library_section_title: nil, library_section_uuid: nil)
|
||||
@allow_sync = allow_sync
|
||||
@identifier = identifier
|
||||
@library_section_id = library_section_id
|
||||
@library_section_title = library_section_title
|
||||
@media_tag_prefix = media_tag_prefix
|
||||
@media_tag_version = media_tag_version
|
||||
@metadata = metadata
|
||||
@size = size
|
||||
@library_section_id = library_section_id
|
||||
@library_section_title = library_section_title
|
||||
@library_section_uuid = library_section_uuid
|
||||
end
|
||||
|
||||
@@ -50,12 +50,12 @@ module PlexRubySDK
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @allow_sync == other.allow_sync
|
||||
return false unless @identifier == other.identifier
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @media_tag_prefix == other.media_tag_prefix
|
||||
return false unless @media_tag_version == other.media_tag_version
|
||||
return false unless @metadata == other.metadata
|
||||
return false unless @size == other.size
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @library_section_uuid == other.library_section_uuid
|
||||
true
|
||||
end
|
||||
|
||||
@@ -30,14 +30,6 @@ module PlexRubySDK
|
||||
field :index, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
||||
# The unique key for the media item.
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# The identifier for the library section.
|
||||
field :library_section_id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The key corresponding to the library section.
|
||||
field :library_section_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionKey') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
# The original release date of the media item.
|
||||
field :originally_available_at, ::Date, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(false) } }
|
||||
# The critic rating for the media item.
|
||||
field :rating, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('rating') } }
|
||||
# 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.
|
||||
@@ -63,7 +55,7 @@ module PlexRubySDK
|
||||
# The URL for the audience rating image.
|
||||
field :audience_rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRatingImage') } }
|
||||
|
||||
field :chapter, T.nilable(T::Array[Models::Operations::Chapter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Chapter') } }
|
||||
field :chapter, T.nilable(T::Array[Models::Operations::GetMediaMetaDataChapter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Chapter') } }
|
||||
# The source from which chapter data is derived.
|
||||
field :chapter_source, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chapterSource') } }
|
||||
# The content rating for the media item.
|
||||
@@ -77,7 +69,7 @@ module PlexRubySDK
|
||||
|
||||
field :director, T.nilable(T::Array[Models::Operations::GetMediaMetaDataDirector]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Director') } }
|
||||
|
||||
field :extras, T.nilable(Models::Operations::Extras), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Extras') } }
|
||||
field :extras, T.nilable(Models::Operations::GetMediaMetaDataExtras), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Extras') } }
|
||||
|
||||
field :genre, T.nilable(T::Array[Models::Operations::GetMediaMetaDataGenre]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Genre') } }
|
||||
# The art URL for the grandparent media item.
|
||||
@@ -106,12 +98,20 @@ module PlexRubySDK
|
||||
field :last_viewed_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastViewedAt') } }
|
||||
# The number of leaf items (end nodes) under this media item.
|
||||
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
||||
# The identifier for the library section.
|
||||
field :library_section_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The key corresponding to the library section.
|
||||
field :library_section_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionKey') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
|
||||
field :location, T.nilable(T::Array[Models::Operations::GetMediaMetaDataLocation]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Location') } }
|
||||
|
||||
field :marker, T.nilable(T::Array[Models::Operations::Marker]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Marker') } }
|
||||
field :marker, T.nilable(T::Array[Models::Operations::GetMediaMetaDataMarker]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Marker') } }
|
||||
|
||||
field :media, T.nilable(T::Array[Models::Operations::GetMediaMetaDataMedia]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
|
||||
# The original release date of the media item.
|
||||
field :originally_available_at, T.nilable(::Date), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(true) } }
|
||||
# The original title of the media item (if different).
|
||||
field :original_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originalTitle') } }
|
||||
# The GUID of the parent media item.
|
||||
@@ -133,7 +133,7 @@ module PlexRubySDK
|
||||
# The URL for the rating image.
|
||||
field :rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingImage') } }
|
||||
|
||||
field :ratings, T.nilable(T::Array[Models::Operations::Ratings]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Rating') } }
|
||||
field :ratings, T.nilable(T::Array[Models::Operations::GetMediaMetaDataRatings]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Rating') } }
|
||||
|
||||
field :role, T.nilable(T::Array[Models::Operations::GetMediaMetaDataRole]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Role') } }
|
||||
|
||||
@@ -162,8 +162,8 @@ module PlexRubySDK
|
||||
field :year, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('year') } }
|
||||
|
||||
|
||||
sig { params(added_at: ::Integer, art: ::String, audience_rating: ::Float, child_count: ::Integer, duration: ::Integer, guid: ::String, index: ::Integer, key: ::String, library_section_id: ::Integer, library_section_key: ::String, library_section_title: ::String, originally_available_at: ::Date, rating: ::Float, rating_key: ::String, season_count: ::Integer, slug: ::String, summary: ::String, tagline: ::String, theme: ::String, thumb: ::String, title: ::String, title_sort: ::String, type: Models::Operations::GetMediaMetaDataType, audience_rating_image: T.nilable(::String), chapter: T.nilable(T::Array[Models::Operations::Chapter]), chapter_source: T.nilable(::String), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::GetMediaMetaDataCountry]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[Models::Operations::GetMediaMetaDataDirector]), extras: T.nilable(Models::Operations::Extras), genre: T.nilable(T::Array[Models::Operations::GetMediaMetaDataGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), guids: T.nilable(T::Array[Models::Operations::GetMediaMetaDataGuids]), image: T.nilable(T::Array[Models::Operations::GetMediaMetaDataImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), location: T.nilable(T::Array[Models::Operations::GetMediaMetaDataLocation]), marker: T.nilable(T::Array[Models::Operations::Marker]), media: T.nilable(T::Array[Models::Operations::GetMediaMetaDataMedia]), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), primary_extra_key: T.nilable(::String), producer: T.nilable(T::Array[Models::Operations::GetMediaMetaDataProducer]), rating_image: T.nilable(::String), ratings: T.nilable(T::Array[Models::Operations::Ratings]), role: T.nilable(T::Array[Models::Operations::GetMediaMetaDataRole]), similar: T.nilable(T::Array[Models::Operations::GetMediaMetaDataSimilar]), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::GetMediaMetaDataUltraBlurColors), updated_at: T.nilable(::Integer), user_rating: T.nilable(::Float), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::GetMediaMetaDataWriter]), year: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, art: nil, audience_rating: nil, child_count: nil, duration: nil, guid: nil, index: nil, key: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, originally_available_at: nil, rating: nil, rating_key: nil, season_count: nil, slug: nil, summary: nil, tagline: nil, theme: nil, thumb: nil, title: nil, title_sort: nil, type: nil, audience_rating_image: nil, chapter: nil, chapter_source: nil, content_rating: nil, country: nil, created_at_accuracy: nil, created_at_tz_offset: nil, director: nil, extras: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, guids: nil, image: nil, last_rated_at: nil, last_viewed_at: nil, leaf_count: nil, location: nil, marker: nil, media: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_thumb: nil, parent_title: nil, primary_extra_key: nil, producer: nil, rating_image: nil, ratings: nil, role: nil, similar: nil, skip_count: nil, studio: nil, subtype: nil, ultra_blur_colors: nil, updated_at: nil, user_rating: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
||||
sig { params(added_at: ::Integer, art: ::String, audience_rating: ::Float, child_count: ::Integer, duration: ::Integer, guid: ::String, index: ::Integer, key: ::String, rating: ::Float, rating_key: ::String, season_count: ::Integer, slug: ::String, summary: ::String, tagline: ::String, theme: ::String, thumb: ::String, title: ::String, title_sort: ::String, type: Models::Operations::GetMediaMetaDataType, audience_rating_image: T.nilable(::String), chapter: T.nilable(T::Array[Models::Operations::GetMediaMetaDataChapter]), chapter_source: T.nilable(::String), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::GetMediaMetaDataCountry]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[Models::Operations::GetMediaMetaDataDirector]), extras: T.nilable(Models::Operations::GetMediaMetaDataExtras), genre: T.nilable(T::Array[Models::Operations::GetMediaMetaDataGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), guids: T.nilable(T::Array[Models::Operations::GetMediaMetaDataGuids]), image: T.nilable(T::Array[Models::Operations::GetMediaMetaDataImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), library_section_id: T.nilable(::Integer), library_section_key: T.nilable(::String), library_section_title: T.nilable(::String), location: T.nilable(T::Array[Models::Operations::GetMediaMetaDataLocation]), marker: T.nilable(T::Array[Models::Operations::GetMediaMetaDataMarker]), media: T.nilable(T::Array[Models::Operations::GetMediaMetaDataMedia]), originally_available_at: T.nilable(::Date), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), primary_extra_key: T.nilable(::String), producer: T.nilable(T::Array[Models::Operations::GetMediaMetaDataProducer]), rating_image: T.nilable(::String), ratings: T.nilable(T::Array[Models::Operations::GetMediaMetaDataRatings]), role: T.nilable(T::Array[Models::Operations::GetMediaMetaDataRole]), similar: T.nilable(T::Array[Models::Operations::GetMediaMetaDataSimilar]), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::GetMediaMetaDataUltraBlurColors), updated_at: T.nilable(::Integer), user_rating: T.nilable(::Float), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::GetMediaMetaDataWriter]), year: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, art: nil, audience_rating: nil, child_count: nil, duration: nil, guid: nil, index: nil, key: nil, rating: nil, rating_key: nil, season_count: nil, slug: nil, summary: nil, tagline: nil, theme: nil, thumb: nil, title: nil, title_sort: nil, type: nil, audience_rating_image: nil, chapter: nil, chapter_source: nil, content_rating: nil, country: nil, created_at_accuracy: nil, created_at_tz_offset: nil, director: nil, extras: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, guids: nil, image: nil, last_rated_at: nil, last_viewed_at: nil, leaf_count: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, location: nil, marker: nil, media: nil, originally_available_at: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_thumb: nil, parent_title: nil, primary_extra_key: nil, producer: nil, rating_image: nil, ratings: nil, role: nil, similar: nil, skip_count: nil, studio: nil, subtype: nil, ultra_blur_colors: nil, updated_at: nil, user_rating: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
||||
@added_at = added_at
|
||||
@art = art
|
||||
@audience_rating = audience_rating
|
||||
@@ -172,10 +172,6 @@ module PlexRubySDK
|
||||
@guid = guid
|
||||
@index = index
|
||||
@key = key
|
||||
@library_section_id = library_section_id
|
||||
@library_section_key = library_section_key
|
||||
@library_section_title = library_section_title
|
||||
@originally_available_at = originally_available_at
|
||||
@rating = rating
|
||||
@rating_key = rating_key
|
||||
@season_count = season_count
|
||||
@@ -210,9 +206,13 @@ module PlexRubySDK
|
||||
@last_rated_at = last_rated_at
|
||||
@last_viewed_at = last_viewed_at
|
||||
@leaf_count = leaf_count
|
||||
@library_section_id = library_section_id
|
||||
@library_section_key = library_section_key
|
||||
@library_section_title = library_section_title
|
||||
@location = location
|
||||
@marker = marker
|
||||
@media = media
|
||||
@originally_available_at = originally_available_at
|
||||
@original_title = original_title
|
||||
@parent_guid = parent_guid
|
||||
@parent_index = parent_index
|
||||
@@ -249,10 +249,6 @@ module PlexRubySDK
|
||||
return false unless @guid == other.guid
|
||||
return false unless @index == other.index
|
||||
return false unless @key == other.key
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_key == other.library_section_key
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @originally_available_at == other.originally_available_at
|
||||
return false unless @rating == other.rating
|
||||
return false unless @rating_key == other.rating_key
|
||||
return false unless @season_count == other.season_count
|
||||
@@ -287,9 +283,13 @@ module PlexRubySDK
|
||||
return false unless @last_rated_at == other.last_rated_at
|
||||
return false unless @last_viewed_at == other.last_viewed_at
|
||||
return false unless @leaf_count == other.leaf_count
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_key == other.library_section_key
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @location == other.location
|
||||
return false unless @marker == other.marker
|
||||
return false unless @media == other.media
|
||||
return false unless @originally_available_at == other.originally_available_at
|
||||
return false unless @original_title == other.original_title
|
||||
return false unless @parent_guid == other.parent_guid
|
||||
return false unless @parent_index == other.parent_index
|
||||
|
||||
@@ -13,14 +13,8 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# File path for the part.
|
||||
field :file, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('file') } }
|
||||
# Unique part identifier.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# Key to access this part.
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# File size in bytes.
|
||||
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
# Indicates if the part is accessible.
|
||||
field :accessible, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('accessible') } }
|
||||
# The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
@@ -31,58 +25,65 @@ module PlexRubySDK
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
# Indicates if the part exists.
|
||||
field :exists, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('exists') } }
|
||||
# File path for the part.
|
||||
field :file, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('file') } }
|
||||
|
||||
field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
|
||||
|
||||
field :has_thumbnail, T.nilable(Models::Operations::GetMediaMetaDataHasThumbnail), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasThumbnail'), 'decoder': Utils.enum_from_string(Models::Operations::GetMediaMetaDataHasThumbnail, true) } }
|
||||
|
||||
field :indexes, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('indexes') } }
|
||||
# Key to access this part.
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
#
|
||||
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::GetMediaMetaDataOptimizedForStreamingLibrary1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
|
||||
field :packet_length, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('packetLength') } }
|
||||
# An array of streams for this part.
|
||||
# File size in bytes.
|
||||
field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
|
||||
field :stream, T.nilable(T::Array[Models::Operations::GetMediaMetaDataStream]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Stream') } }
|
||||
# Video profile for the part.
|
||||
field :video_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
|
||||
|
||||
|
||||
sig { params(file: ::String, id: ::Integer, key: ::String, size: ::Integer, accessible: T.nilable(T::Boolean), audio_profile: T.nilable(::String), container: T.nilable(::String), duration: T.nilable(::Integer), exists: T.nilable(T::Boolean), has64bit_offsets: T.nilable(T::Boolean), has_thumbnail: T.nilable(Models::Operations::GetMediaMetaDataHasThumbnail), indexes: T.nilable(::String), optimized_for_streaming: T.nilable(T.any(Models::Operations::GetMediaMetaDataOptimizedForStreamingLibrary1, T::Boolean)), packet_length: T.nilable(::Integer), stream: T.nilable(T::Array[Models::Operations::GetMediaMetaDataStream]), video_profile: T.nilable(::String)).void }
|
||||
def initialize(file: nil, id: nil, key: nil, size: nil, accessible: nil, audio_profile: nil, container: nil, duration: nil, exists: nil, has64bit_offsets: nil, has_thumbnail: nil, indexes: nil, optimized_for_streaming: nil, packet_length: nil, stream: nil, video_profile: nil)
|
||||
@file = file
|
||||
sig { params(id: ::Integer, accessible: T.nilable(T::Boolean), audio_profile: T.nilable(::String), container: T.nilable(::String), duration: T.nilable(::Integer), exists: T.nilable(T::Boolean), file: T.nilable(::String), has64bit_offsets: T.nilable(T::Boolean), has_thumbnail: T.nilable(Models::Operations::GetMediaMetaDataHasThumbnail), indexes: T.nilable(::String), key: T.nilable(::String), optimized_for_streaming: T.nilable(T.any(Models::Operations::GetMediaMetaDataOptimizedForStreamingLibrary1, T::Boolean)), packet_length: T.nilable(::Integer), size: T.nilable(::Integer), stream: T.nilable(T::Array[Models::Operations::GetMediaMetaDataStream]), video_profile: T.nilable(::String)).void }
|
||||
def initialize(id: nil, accessible: nil, audio_profile: nil, container: nil, duration: nil, exists: nil, file: nil, has64bit_offsets: nil, has_thumbnail: nil, indexes: nil, key: nil, optimized_for_streaming: nil, packet_length: nil, size: nil, stream: nil, video_profile: nil)
|
||||
@id = id
|
||||
@key = key
|
||||
@size = size
|
||||
@accessible = accessible
|
||||
@audio_profile = audio_profile
|
||||
@container = container
|
||||
@duration = duration
|
||||
@exists = exists
|
||||
@file = file
|
||||
@has64bit_offsets = has64bit_offsets
|
||||
@has_thumbnail = has_thumbnail
|
||||
@indexes = indexes
|
||||
@key = key
|
||||
@optimized_for_streaming = optimized_for_streaming
|
||||
@packet_length = packet_length
|
||||
@size = size
|
||||
@stream = stream
|
||||
@video_profile = video_profile
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @file == other.file
|
||||
return false unless @id == other.id
|
||||
return false unless @key == other.key
|
||||
return false unless @size == other.size
|
||||
return false unless @accessible == other.accessible
|
||||
return false unless @audio_profile == other.audio_profile
|
||||
return false unless @container == other.container
|
||||
return false unless @duration == other.duration
|
||||
return false unless @exists == other.exists
|
||||
return false unless @file == other.file
|
||||
return false unless @has64bit_offsets == other.has64bit_offsets
|
||||
return false unless @has_thumbnail == other.has_thumbnail
|
||||
return false unless @indexes == other.indexes
|
||||
return false unless @key == other.key
|
||||
return false unless @optimized_for_streaming == other.optimized_for_streaming
|
||||
return false unless @packet_length == other.packet_length
|
||||
return false unless @size == other.size
|
||||
return false unless @stream == other.stream
|
||||
return false unless @video_profile == other.video_profile
|
||||
true
|
||||
|
||||
@@ -9,15 +9,15 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class MetaDataRating
|
||||
class GetMediaMetaDataRatings
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# A URI or path to the rating image.
|
||||
# The image or reference for the rating.
|
||||
field :image, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('image') } }
|
||||
# The type of rating (e.g., audience, critic).
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
# The value of the rating.
|
||||
# The rating value.
|
||||
field :value, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('value') } }
|
||||
|
||||
|
||||
@@ -13,20 +13,14 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# Codec used by the stream.
|
||||
field :codec, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('codec') } }
|
||||
# Display title for the stream.
|
||||
field :display_title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('displayTitle') } }
|
||||
# Extended display title for the stream.
|
||||
field :extended_display_title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('extendedDisplayTitle') } }
|
||||
# Unique stream identifier.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# Stream type:
|
||||
# - 1 = video
|
||||
# - 2 = audio
|
||||
# - 3 = subtitle
|
||||
# - VIDEO = 1
|
||||
# - AUDIO = 2
|
||||
# - SUBTITLE = 3
|
||||
#
|
||||
field :stream_type, Models::Operations::GetMediaMetaDataStreamType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType'), 'decoder': Utils.enum_from_string(Models::Operations::GetMediaMetaDataStreamType, false) } }
|
||||
field :stream_type, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType') } }
|
||||
# Audio channel layout.
|
||||
field :audio_channel_layout, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioChannelLayout') } }
|
||||
# Bit depth of the video stream.
|
||||
@@ -43,6 +37,8 @@ module PlexRubySDK
|
||||
field :chroma_subsampling, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chromaSubsampling') } }
|
||||
|
||||
field :closed_captions, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('closedCaptions') } }
|
||||
# Codec used by the stream.
|
||||
field :codec, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('codec') } }
|
||||
# Coded video height.
|
||||
field :coded_height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('codedHeight') } }
|
||||
# Coded video width.
|
||||
@@ -57,6 +53,8 @@ module PlexRubySDK
|
||||
field :color_trc, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('colorTrc') } }
|
||||
# Indicates if this stream is default.
|
||||
field :default, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('default') } }
|
||||
# Display title for the stream.
|
||||
field :display_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('displayTitle') } }
|
||||
# Dolby Vision BL compatibility ID.
|
||||
field :dovibl_compat_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('DOVIBLCompatID') } }
|
||||
# Indicates if Dolby Vision BL is present.
|
||||
@@ -77,6 +75,8 @@ module PlexRubySDK
|
||||
field :dub, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('dub') } }
|
||||
|
||||
field :embedded_in_video, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('embeddedInVideo') } }
|
||||
# Extended display title for the stream.
|
||||
field :extended_display_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('extendedDisplayTitle') } }
|
||||
|
||||
field :forced, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('forced') } }
|
||||
# Format of the stream (e.g., srt).
|
||||
@@ -121,11 +121,8 @@ module PlexRubySDK
|
||||
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
||||
|
||||
|
||||
sig { params(codec: ::String, display_title: ::String, extended_display_title: ::String, id: ::Integer, stream_type: Models::Operations::GetMediaMetaDataStreamType, audio_channel_layout: T.nilable(::String), bit_depth: T.nilable(::Integer), bitrate: T.nilable(::Integer), can_auto_sync: T.nilable(T::Boolean), channels: T.nilable(::Integer), chroma_location: T.nilable(::String), chroma_subsampling: T.nilable(::String), closed_captions: T.nilable(T::Boolean), coded_height: T.nilable(::Integer), coded_width: T.nilable(::Integer), color_primaries: T.nilable(::String), color_range: T.nilable(::String), color_space: T.nilable(::String), color_trc: T.nilable(::String), default: T.nilable(T::Boolean), dovibl_compat_id: T.nilable(::Integer), dovibl_present: T.nilable(T::Boolean), doviel_present: T.nilable(T::Boolean), dovi_level: T.nilable(::Integer), dovi_present: T.nilable(T::Boolean), dovi_profile: T.nilable(::Integer), dovirpu_present: T.nilable(T::Boolean), dovi_version: T.nilable(::String), dub: T.nilable(T::Boolean), embedded_in_video: T.nilable(::String), forced: T.nilable(T::Boolean), format: T.nilable(::String), frame_rate: T.nilable(::Float), has_scaling_matrix: T.nilable(T::Boolean), header_compression: T.nilable(T::Boolean), hearing_impaired: T.nilable(T::Boolean), height: T.nilable(::Integer), index: T.nilable(::Integer), key: T.nilable(::String), language: T.nilable(::String), language_code: T.nilable(::String), language_tag: T.nilable(::String), level: T.nilable(::Integer), original: T.nilable(T::Boolean), profile: T.nilable(::String), ref_frames: T.nilable(::Integer), sampling_rate: T.nilable(::Integer), scan_type: T.nilable(::String), selected: T.nilable(T::Boolean), title: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(codec: nil, display_title: nil, extended_display_title: nil, id: nil, stream_type: nil, audio_channel_layout: nil, bit_depth: nil, bitrate: nil, can_auto_sync: nil, channels: nil, chroma_location: nil, chroma_subsampling: nil, closed_captions: nil, coded_height: nil, coded_width: nil, color_primaries: nil, color_range: nil, color_space: nil, color_trc: nil, default: nil, dovibl_compat_id: nil, dovibl_present: nil, doviel_present: nil, dovi_level: nil, dovi_present: nil, dovi_profile: nil, dovirpu_present: nil, dovi_version: nil, dub: nil, embedded_in_video: nil, forced: nil, format: nil, frame_rate: nil, has_scaling_matrix: nil, header_compression: nil, hearing_impaired: nil, height: nil, index: nil, key: nil, language: nil, language_code: nil, language_tag: nil, level: nil, original: nil, profile: nil, ref_frames: nil, sampling_rate: nil, scan_type: nil, selected: nil, title: nil, width: nil)
|
||||
@codec = codec
|
||||
@display_title = display_title
|
||||
@extended_display_title = extended_display_title
|
||||
sig { params(id: ::Integer, stream_type: ::Integer, audio_channel_layout: T.nilable(::String), bit_depth: T.nilable(::Integer), bitrate: T.nilable(::Integer), can_auto_sync: T.nilable(T::Boolean), channels: T.nilable(::Integer), chroma_location: T.nilable(::String), chroma_subsampling: T.nilable(::String), closed_captions: T.nilable(T::Boolean), codec: T.nilable(::String), coded_height: T.nilable(::Integer), coded_width: T.nilable(::Integer), color_primaries: T.nilable(::String), color_range: T.nilable(::String), color_space: T.nilable(::String), color_trc: T.nilable(::String), default: T.nilable(T::Boolean), display_title: T.nilable(::String), dovibl_compat_id: T.nilable(::Integer), dovibl_present: T.nilable(T::Boolean), doviel_present: T.nilable(T::Boolean), dovi_level: T.nilable(::Integer), dovi_present: T.nilable(T::Boolean), dovi_profile: T.nilable(::Integer), dovirpu_present: T.nilable(T::Boolean), dovi_version: T.nilable(::String), dub: T.nilable(T::Boolean), embedded_in_video: T.nilable(::String), extended_display_title: T.nilable(::String), forced: T.nilable(T::Boolean), format: T.nilable(::String), frame_rate: T.nilable(::Float), has_scaling_matrix: T.nilable(T::Boolean), header_compression: T.nilable(T::Boolean), hearing_impaired: T.nilable(T::Boolean), height: T.nilable(::Integer), index: T.nilable(::Integer), key: T.nilable(::String), language: T.nilable(::String), language_code: T.nilable(::String), language_tag: T.nilable(::String), level: T.nilable(::Integer), original: T.nilable(T::Boolean), profile: T.nilable(::String), ref_frames: T.nilable(::Integer), sampling_rate: T.nilable(::Integer), scan_type: T.nilable(::String), selected: T.nilable(T::Boolean), title: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(id: nil, stream_type: nil, audio_channel_layout: nil, bit_depth: nil, bitrate: nil, can_auto_sync: nil, channels: nil, chroma_location: nil, chroma_subsampling: nil, closed_captions: nil, codec: nil, coded_height: nil, coded_width: nil, color_primaries: nil, color_range: nil, color_space: nil, color_trc: nil, default: nil, display_title: nil, dovibl_compat_id: nil, dovibl_present: nil, doviel_present: nil, dovi_level: nil, dovi_present: nil, dovi_profile: nil, dovirpu_present: nil, dovi_version: nil, dub: nil, embedded_in_video: nil, extended_display_title: nil, forced: nil, format: nil, frame_rate: nil, has_scaling_matrix: nil, header_compression: nil, hearing_impaired: nil, height: nil, index: nil, key: nil, language: nil, language_code: nil, language_tag: nil, level: nil, original: nil, profile: nil, ref_frames: nil, sampling_rate: nil, scan_type: nil, selected: nil, title: nil, width: nil)
|
||||
@id = id
|
||||
@stream_type = stream_type
|
||||
@audio_channel_layout = audio_channel_layout
|
||||
@@ -136,6 +133,7 @@ module PlexRubySDK
|
||||
@chroma_location = chroma_location
|
||||
@chroma_subsampling = chroma_subsampling
|
||||
@closed_captions = closed_captions
|
||||
@codec = codec
|
||||
@coded_height = coded_height
|
||||
@coded_width = coded_width
|
||||
@color_primaries = color_primaries
|
||||
@@ -143,6 +141,7 @@ module PlexRubySDK
|
||||
@color_space = color_space
|
||||
@color_trc = color_trc
|
||||
@default = default
|
||||
@display_title = display_title
|
||||
@dovibl_compat_id = dovibl_compat_id
|
||||
@dovibl_present = dovibl_present
|
||||
@doviel_present = doviel_present
|
||||
@@ -153,6 +152,7 @@ module PlexRubySDK
|
||||
@dovi_version = dovi_version
|
||||
@dub = dub
|
||||
@embedded_in_video = embedded_in_video
|
||||
@extended_display_title = extended_display_title
|
||||
@forced = forced
|
||||
@format = format
|
||||
@frame_rate = frame_rate
|
||||
@@ -178,9 +178,6 @@ module PlexRubySDK
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @codec == other.codec
|
||||
return false unless @display_title == other.display_title
|
||||
return false unless @extended_display_title == other.extended_display_title
|
||||
return false unless @id == other.id
|
||||
return false unless @stream_type == other.stream_type
|
||||
return false unless @audio_channel_layout == other.audio_channel_layout
|
||||
@@ -191,6 +188,7 @@ module PlexRubySDK
|
||||
return false unless @chroma_location == other.chroma_location
|
||||
return false unless @chroma_subsampling == other.chroma_subsampling
|
||||
return false unless @closed_captions == other.closed_captions
|
||||
return false unless @codec == other.codec
|
||||
return false unless @coded_height == other.coded_height
|
||||
return false unless @coded_width == other.coded_width
|
||||
return false unless @color_primaries == other.color_primaries
|
||||
@@ -198,6 +196,7 @@ module PlexRubySDK
|
||||
return false unless @color_space == other.color_space
|
||||
return false unless @color_trc == other.color_trc
|
||||
return false unless @default == other.default
|
||||
return false unless @display_title == other.display_title
|
||||
return false unless @dovibl_compat_id == other.dovibl_compat_id
|
||||
return false unless @dovibl_present == other.dovibl_present
|
||||
return false unless @doviel_present == other.doviel_present
|
||||
@@ -208,6 +207,7 @@ module PlexRubySDK
|
||||
return false unless @dovi_version == other.dovi_version
|
||||
return false unless @dub == other.dub
|
||||
return false unless @embedded_in_video == other.embedded_in_video
|
||||
return false unless @extended_display_title == other.extended_display_title
|
||||
return false unless @forced == other.forced
|
||||
return false unless @format == other.format
|
||||
return false unless @frame_rate == other.frame_rate
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetMediaMetaDataStreamType - Stream type:
|
||||
# - 1 = video
|
||||
# - 2 = audio
|
||||
# - 3 = subtitle
|
||||
#
|
||||
class GetMediaMetaDataStreamType < T::Enum
|
||||
enums do
|
||||
VIDEO = new(1)
|
||||
AUDIO = new(2)
|
||||
SUBTITLE = new(3)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -30,14 +30,6 @@ module PlexRubySDK
|
||||
field :index, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
||||
# The unique key for the media item.
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# The identifier for the library section.
|
||||
field :library_section_id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The key corresponding to the library section.
|
||||
field :library_section_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionKey') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
# The original release date of the media item.
|
||||
field :originally_available_at, ::Date, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(false) } }
|
||||
# The studio of the parent media item.
|
||||
field :parent_studio, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentStudio') } }
|
||||
# The theme URL for the parent media item.
|
||||
@@ -108,10 +100,18 @@ module PlexRubySDK
|
||||
field :last_viewed_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastViewedAt') } }
|
||||
# The number of leaf items (end nodes) under this media item.
|
||||
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
||||
# The identifier for the library section.
|
||||
field :library_section_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The key corresponding to the library section.
|
||||
field :library_section_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionKey') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
|
||||
field :location, T.nilable(T::Array[Models::Operations::Location]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Location') } }
|
||||
|
||||
field :media, T.nilable(T::Array[Models::Operations::Media]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
|
||||
# The original release date of the media item.
|
||||
field :originally_available_at, T.nilable(::Date), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(true) } }
|
||||
# The original title of the media item (if different).
|
||||
field :original_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originalTitle') } }
|
||||
# The GUID of the parent media item.
|
||||
@@ -166,8 +166,8 @@ module PlexRubySDK
|
||||
field :year, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('year') } }
|
||||
|
||||
|
||||
sig { params(added_at: ::Integer, art: ::String, audience_rating: ::Float, child_count: ::Integer, duration: ::Integer, guid: ::String, index: ::Integer, key: ::String, library_section_id: ::Integer, library_section_key: ::String, library_section_title: ::String, originally_available_at: ::Date, parent_studio: ::String, parent_theme: ::String, rating: ::Float, rating_key: ::String, season_count: ::Integer, slug: ::String, summary: ::String, tagline: ::String, theme: ::String, thumb: ::String, title: ::String, title_sort: ::String, type: Models::Operations::GetRecentlyAddedHubsType, audience_rating_image: T.nilable(::String), chapter_source: T.nilable(::String), collection: T.nilable(T::Array[Models::Operations::Collection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::Country]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[Models::Operations::Director]), genre: T.nilable(T::Array[Models::Operations::Genre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), guids: T.nilable(T::Array[Models::Operations::Guids]), image: T.nilable(T::Array[Models::Operations::GetRecentlyAddedImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), location: T.nilable(T::Array[Models::Operations::Location]), media: T.nilable(T::Array[Models::Operations::Media]), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_slug: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), parent_year: T.nilable(::Integer), primary_extra_key: T.nilable(::String), producer: T.nilable(T::Array[Models::Operations::Producer]), rating1: T.nilable(T::Array[Models::Operations::Rating]), rating_image: T.nilable(::String), role: T.nilable(T::Array[Models::Operations::Role]), similar: T.nilable(T::Array[Models::Operations::Similar]), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::UltraBlurColors), updated_at: T.nilable(::Integer), user_rating: T.nilable(::Float), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::Writer]), year: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, art: nil, audience_rating: nil, child_count: nil, duration: nil, guid: nil, index: nil, key: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, originally_available_at: nil, parent_studio: nil, parent_theme: nil, rating: nil, rating_key: nil, season_count: nil, slug: nil, summary: nil, tagline: nil, theme: nil, thumb: nil, title: nil, title_sort: nil, type: nil, audience_rating_image: nil, chapter_source: nil, collection: nil, content_rating: nil, country: nil, created_at_accuracy: nil, created_at_tz_offset: nil, director: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, guids: nil, image: nil, last_rated_at: nil, last_viewed_at: nil, leaf_count: nil, location: nil, media: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_slug: nil, parent_thumb: nil, parent_title: nil, parent_year: nil, primary_extra_key: nil, producer: nil, rating1: nil, rating_image: nil, role: nil, similar: nil, skip_count: nil, studio: nil, subtype: nil, ultra_blur_colors: nil, updated_at: nil, user_rating: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
||||
sig { params(added_at: ::Integer, art: ::String, audience_rating: ::Float, child_count: ::Integer, duration: ::Integer, guid: ::String, index: ::Integer, key: ::String, parent_studio: ::String, parent_theme: ::String, rating: ::Float, rating_key: ::String, season_count: ::Integer, slug: ::String, summary: ::String, tagline: ::String, theme: ::String, thumb: ::String, title: ::String, title_sort: ::String, type: Models::Operations::GetRecentlyAddedHubsType, audience_rating_image: T.nilable(::String), chapter_source: T.nilable(::String), collection: T.nilable(T::Array[Models::Operations::Collection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::Country]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[Models::Operations::Director]), genre: T.nilable(T::Array[Models::Operations::Genre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), guids: T.nilable(T::Array[Models::Operations::Guids]), image: T.nilable(T::Array[Models::Operations::GetRecentlyAddedImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), library_section_id: T.nilable(::Integer), library_section_key: T.nilable(::String), library_section_title: T.nilable(::String), location: T.nilable(T::Array[Models::Operations::Location]), media: T.nilable(T::Array[Models::Operations::Media]), originally_available_at: T.nilable(::Date), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_slug: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), parent_year: T.nilable(::Integer), primary_extra_key: T.nilable(::String), producer: T.nilable(T::Array[Models::Operations::Producer]), rating1: T.nilable(T::Array[Models::Operations::Rating]), rating_image: T.nilable(::String), role: T.nilable(T::Array[Models::Operations::Role]), similar: T.nilable(T::Array[Models::Operations::Similar]), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::UltraBlurColors), updated_at: T.nilable(::Integer), user_rating: T.nilable(::Float), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::Writer]), year: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, art: nil, audience_rating: nil, child_count: nil, duration: nil, guid: nil, index: nil, key: nil, parent_studio: nil, parent_theme: nil, rating: nil, rating_key: nil, season_count: nil, slug: nil, summary: nil, tagline: nil, theme: nil, thumb: nil, title: nil, title_sort: nil, type: nil, audience_rating_image: nil, chapter_source: nil, collection: nil, content_rating: nil, country: nil, created_at_accuracy: nil, created_at_tz_offset: nil, director: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, guids: nil, image: nil, last_rated_at: nil, last_viewed_at: nil, leaf_count: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, location: nil, media: nil, originally_available_at: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_slug: nil, parent_thumb: nil, parent_title: nil, parent_year: nil, primary_extra_key: nil, producer: nil, rating1: nil, rating_image: nil, role: nil, similar: nil, skip_count: nil, studio: nil, subtype: nil, ultra_blur_colors: nil, updated_at: nil, user_rating: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
||||
@added_at = added_at
|
||||
@art = art
|
||||
@audience_rating = audience_rating
|
||||
@@ -176,10 +176,6 @@ module PlexRubySDK
|
||||
@guid = guid
|
||||
@index = index
|
||||
@key = key
|
||||
@library_section_id = library_section_id
|
||||
@library_section_key = library_section_key
|
||||
@library_section_title = library_section_title
|
||||
@originally_available_at = originally_available_at
|
||||
@parent_studio = parent_studio
|
||||
@parent_theme = parent_theme
|
||||
@rating = rating
|
||||
@@ -215,8 +211,12 @@ module PlexRubySDK
|
||||
@last_rated_at = last_rated_at
|
||||
@last_viewed_at = last_viewed_at
|
||||
@leaf_count = leaf_count
|
||||
@library_section_id = library_section_id
|
||||
@library_section_key = library_section_key
|
||||
@library_section_title = library_section_title
|
||||
@location = location
|
||||
@media = media
|
||||
@originally_available_at = originally_available_at
|
||||
@original_title = original_title
|
||||
@parent_guid = parent_guid
|
||||
@parent_index = parent_index
|
||||
@@ -255,10 +255,6 @@ module PlexRubySDK
|
||||
return false unless @guid == other.guid
|
||||
return false unless @index == other.index
|
||||
return false unless @key == other.key
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_key == other.library_section_key
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @originally_available_at == other.originally_available_at
|
||||
return false unless @parent_studio == other.parent_studio
|
||||
return false unless @parent_theme == other.parent_theme
|
||||
return false unless @rating == other.rating
|
||||
@@ -294,8 +290,12 @@ module PlexRubySDK
|
||||
return false unless @last_rated_at == other.last_rated_at
|
||||
return false unless @last_viewed_at == other.last_viewed_at
|
||||
return false unless @leaf_count == other.leaf_count
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_key == other.library_section_key
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @location == other.location
|
||||
return false unless @media == other.media
|
||||
return false unless @originally_available_at == other.originally_available_at
|
||||
return false unless @original_title == other.original_title
|
||||
return false unless @parent_guid == other.parent_guid
|
||||
return false unless @parent_index == other.parent_index
|
||||
|
||||
@@ -13,17 +13,23 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The unique identifier for the country.
|
||||
# NOTE: This is different for each Plex server and is not globally unique.
|
||||
#
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The country of origin of this media item
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
|
||||
sig { params(tag: T.nilable(::String)).void }
|
||||
def initialize(tag: nil)
|
||||
sig { params(id: ::Integer, tag: ::String).void }
|
||||
def initialize(id: nil, tag: nil)
|
||||
@id = id
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
|
||||
@@ -13,18 +13,26 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# Unique identifier for the director.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The role of Director
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The absolute URL of the thumbnail image for the director.
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(tag: T.nilable(::String)).void }
|
||||
def initialize(tag: nil)
|
||||
sig { params(id: ::Integer, tag: ::String, thumb: T.nilable(::String)).void }
|
||||
def initialize(id: nil, tag: nil, thumb: nil)
|
||||
@id = id
|
||||
@tag = tag
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetSearchAllLibrariesDirectory
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The unique identifier path for the search result item.
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# The identifier for the library section.
|
||||
field :library_section_id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The key corresponding to the library section.
|
||||
field :library_section_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionKey') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The type of the directory.
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
# The number of items associated with this search result.
|
||||
field :count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('count') } }
|
||||
# The filter string used to query this specific item in the library.
|
||||
field :filter, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
|
||||
field :library_section_type, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionType') } }
|
||||
# The unique identifier for the tag associated with this search result.
|
||||
field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The type of tag associated with this search result (e.g., Director, Actor).
|
||||
field :tag_type, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagType') } }
|
||||
# The URL to the thumbnail image associated with this search result.
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(id: ::Integer, key: ::String, library_section_id: ::Integer, library_section_key: ::String, library_section_title: ::String, tag: ::String, type: ::String, count: T.nilable(::Integer), filter: T.nilable(::String), library_section_type: T.nilable(::Integer), tag_key: T.nilable(::String), tag_type: T.nilable(::Integer), thumb: T.nilable(::String)).void }
|
||||
def initialize(id: nil, key: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, tag: nil, type: nil, count: nil, filter: nil, library_section_type: nil, tag_key: nil, tag_type: nil, thumb: nil)
|
||||
@id = id
|
||||
@key = key
|
||||
@library_section_id = library_section_id
|
||||
@library_section_key = library_section_key
|
||||
@library_section_title = library_section_title
|
||||
@tag = tag
|
||||
@type = type
|
||||
@count = count
|
||||
@filter = filter
|
||||
@library_section_type = library_section_type
|
||||
@tag_key = tag_key
|
||||
@tag_type = tag_type
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @key == other.key
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_key == other.library_section_key
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @tag == other.tag
|
||||
return false unless @type == other.type
|
||||
return false unless @count == other.count
|
||||
return false unless @filter == other.filter
|
||||
return false unless @library_section_type == other.library_section_type
|
||||
return false unless @tag_key == other.tag_key
|
||||
return false unless @tag_type == other.tag_type
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,20 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetSearchAllLibrariesEnableCreditsMarkerGeneration - Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
class GetSearchAllLibrariesEnableCreditsMarkerGeneration < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
DISABLED = new('0')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,21 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# GetSearchAllLibrariesEpisodeSort - Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
class GetSearchAllLibrariesEpisodeSort < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
OLDEST_FIRST = new('0')
|
||||
NEWEST_FIRST = new('1')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -9,6 +9,7 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# GetSearchAllLibrariesFlattenSeasons - Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
#
|
||||
class GetSearchAllLibrariesFlattenSeasons < T::Enum
|
||||
enums do
|
||||
LIBRARY_DEFAULT = new('-1')
|
||||
|
||||
@@ -13,17 +13,24 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The unique identifier for the genre.
|
||||
# NOTE: This is different for each Plex server and is not globally unique.
|
||||
#
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The genre name of this media-item
|
||||
#
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
|
||||
|
||||
sig { params(tag: T.nilable(::String)).void }
|
||||
def initialize(tag: nil)
|
||||
sig { params(id: ::Integer, tag: ::String).void }
|
||||
def initialize(id: nil, tag: nil)
|
||||
@id = id
|
||||
@tag = tag
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
true
|
||||
end
|
||||
|
||||
@@ -9,12 +9,11 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
|
||||
class GetSearchAllLibrariesMediaGuid
|
||||
class GetSearchAllLibrariesGuids
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# Can be one of the following formats:
|
||||
# imdb://tt13015952, tmdb://2434012, tvdb://7945991
|
||||
# The unique identifier for the Guid. Can be prefixed with imdb://, tmdb://, tvdb://
|
||||
#
|
||||
field :id, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
@@ -8,7 +8,8 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
# GetSearchAllLibrariesHasThumbnail - Indicates if the part has a thumbnail.
|
||||
#
|
||||
class GetSearchAllLibrariesHasThumbnail < T::Enum
|
||||
enums do
|
||||
FALSE = new('0')
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
#
|
||||
class GetSearchAllLibrariesLibraryOptimizedForStreaming
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
|
||||
|
||||
def initialize; end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -8,16 +8,16 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
# The folder path for the media item.
|
||||
class GetSearchAllLibrariesLocation
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :path, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('path') } }
|
||||
field :path, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('path') } }
|
||||
|
||||
|
||||
sig { params(path: T.nilable(::String)).void }
|
||||
sig { params(path: ::String).void }
|
||||
def initialize(path: nil)
|
||||
@path = path
|
||||
end
|
||||
|
||||
@@ -13,59 +13,65 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :container, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
||||
|
||||
# Unique media identifier.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
field :part, T::Array[Models::Operations::GetSearchAllLibrariesPart], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
|
||||
|
||||
# Aspect ratio of the video.
|
||||
field :aspect_ratio, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('aspectRatio') } }
|
||||
|
||||
# Number of audio channels.
|
||||
field :audio_channels, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioChannels') } }
|
||||
|
||||
# Audio codec used.
|
||||
field :audio_codec, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioCodec') } }
|
||||
|
||||
# The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
field :audio_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioProfile') } }
|
||||
|
||||
# Bitrate in bits per second.
|
||||
field :bitrate, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('bitrate') } }
|
||||
# Container format of the media.
|
||||
field :container, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
||||
|
||||
field :display_offset, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('displayOffset') } }
|
||||
# Duration of the media in milliseconds.
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
|
||||
# Indicates whether the media has 64-bit offsets.
|
||||
# This is relevant for media files that may require larger offsets than what 32-bit integers can provide.
|
||||
#
|
||||
field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
|
||||
|
||||
# Indicates whether voice activity is detected.
|
||||
field :has_voice_activity, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasVoiceActivity') } }
|
||||
|
||||
# Video height in pixels.
|
||||
field :height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('height') } }
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::GetSearchAllLibrariesOptimizedForStreaming1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
|
||||
field :optimized_for_streaming, T.nilable(Models::Operations::GetSearchAllLibrariesOptimizedForStreaming), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming'), 'decoder': Utils.enum_from_string(Models::Operations::GetSearchAllLibrariesOptimizedForStreaming, true) } }
|
||||
|
||||
field :part, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesPart]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Part') } }
|
||||
# Video codec used.
|
||||
field :video_codec, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoCodec') } }
|
||||
|
||||
# Frame rate of the video. Values found include NTSC, PAL, 24p
|
||||
#
|
||||
field :video_frame_rate, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoFrameRate') } }
|
||||
|
||||
# Video profile (e.g., main 10).
|
||||
field :video_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
|
||||
|
||||
# Video resolution (e.g., 4k).
|
||||
field :video_resolution, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoResolution') } }
|
||||
|
||||
# Video width in pixels.
|
||||
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
||||
|
||||
|
||||
sig { params(container: ::String, id: ::Integer, part: T::Array[Models::Operations::GetSearchAllLibrariesPart], aspect_ratio: T.nilable(::Float), audio_channels: T.nilable(::Integer), audio_codec: T.nilable(::String), audio_profile: T.nilable(::String), bitrate: T.nilable(::Integer), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), has_voice_activity: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(Models::Operations::GetSearchAllLibrariesOptimizedForStreaming), video_codec: T.nilable(::String), video_frame_rate: T.nilable(::String), video_profile: T.nilable(::String), video_resolution: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(container: nil, id: nil, part: nil, aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, duration: nil, has64bit_offsets: nil, has_voice_activity: nil, height: nil, optimized_for_streaming: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil)
|
||||
@container = container
|
||||
sig { params(id: ::Integer, aspect_ratio: T.nilable(::Float), audio_channels: T.nilable(::Integer), audio_codec: T.nilable(::String), audio_profile: T.nilable(::String), bitrate: T.nilable(::Integer), container: T.nilable(::String), display_offset: T.nilable(::Integer), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), has_voice_activity: T.nilable(T::Boolean), height: T.nilable(::Integer), optimized_for_streaming: T.nilable(T.any(Models::Operations::GetSearchAllLibrariesOptimizedForStreaming1, T::Boolean)), part: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesPart]), video_codec: T.nilable(::String), video_frame_rate: T.nilable(::String), video_profile: T.nilable(::String), video_resolution: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(id: nil, aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, display_offset: nil, duration: nil, has64bit_offsets: nil, has_voice_activity: nil, height: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil)
|
||||
@id = id
|
||||
@part = part
|
||||
@aspect_ratio = aspect_ratio
|
||||
@audio_channels = audio_channels
|
||||
@audio_codec = audio_codec
|
||||
@audio_profile = audio_profile
|
||||
@bitrate = bitrate
|
||||
@container = container
|
||||
@display_offset = display_offset
|
||||
@duration = duration
|
||||
@has64bit_offsets = has64bit_offsets
|
||||
@has_voice_activity = has_voice_activity
|
||||
@height = height
|
||||
@optimized_for_streaming = optimized_for_streaming
|
||||
@part = part
|
||||
@video_codec = video_codec
|
||||
@video_frame_rate = video_frame_rate
|
||||
@video_profile = video_profile
|
||||
@@ -75,19 +81,20 @@ module PlexRubySDK
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @container == other.container
|
||||
return false unless @id == other.id
|
||||
return false unless @part == other.part
|
||||
return false unless @aspect_ratio == other.aspect_ratio
|
||||
return false unless @audio_channels == other.audio_channels
|
||||
return false unless @audio_codec == other.audio_codec
|
||||
return false unless @audio_profile == other.audio_profile
|
||||
return false unless @bitrate == other.bitrate
|
||||
return false unless @container == other.container
|
||||
return false unless @display_offset == other.display_offset
|
||||
return false unless @duration == other.duration
|
||||
return false unless @has64bit_offsets == other.has64bit_offsets
|
||||
return false unless @has_voice_activity == other.has_voice_activity
|
||||
return false unless @height == other.height
|
||||
return false unless @optimized_for_streaming == other.optimized_for_streaming
|
||||
return false unless @part == other.part
|
||||
return false unless @video_codec == other.video_codec
|
||||
return false unless @video_frame_rate == other.video_frame_rate
|
||||
return false unless @video_profile == other.video_profile
|
||||
|
||||
@@ -13,22 +13,50 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# Indicates whether syncing is allowed.
|
||||
field :allow_sync, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('allowSync') } }
|
||||
# An plugin identifier for the media container.
|
||||
field :identifier, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
||||
# The prefix used for media tag resource paths.
|
||||
field :media_tag_prefix, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagPrefix') } }
|
||||
# The version number for media tags.
|
||||
field :media_tag_version, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaTagVersion') } }
|
||||
|
||||
field :search_result, T::Array[Models::Operations::SearchResult], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('SearchResult') } }
|
||||
|
||||
field :size, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
# Number of media items returned in this response.
|
||||
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
# The unique identifier for the library section.
|
||||
field :library_section_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
# The title of the library section.
|
||||
field :library_section_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
# The universally unique identifier for the library section.
|
||||
field :library_section_uuid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionUUID') } }
|
||||
|
||||
|
||||
sig { params(search_result: T::Array[Models::Operations::SearchResult], size: ::Float).void }
|
||||
def initialize(search_result: nil, size: nil)
|
||||
sig { params(allow_sync: T::Boolean, identifier: ::String, media_tag_prefix: ::String, media_tag_version: ::Integer, search_result: T::Array[Models::Operations::SearchResult], size: ::Integer, library_section_id: T.nilable(::Integer), library_section_title: T.nilable(::String), library_section_uuid: T.nilable(::String)).void }
|
||||
def initialize(allow_sync: nil, identifier: nil, media_tag_prefix: nil, media_tag_version: nil, search_result: nil, size: nil, library_section_id: nil, library_section_title: nil, library_section_uuid: nil)
|
||||
@allow_sync = allow_sync
|
||||
@identifier = identifier
|
||||
@media_tag_prefix = media_tag_prefix
|
||||
@media_tag_version = media_tag_version
|
||||
@search_result = search_result
|
||||
@size = size
|
||||
@library_section_id = library_section_id
|
||||
@library_section_title = library_section_title
|
||||
@library_section_uuid = library_section_uuid
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @allow_sync == other.allow_sync
|
||||
return false unless @identifier == other.identifier
|
||||
return false unless @media_tag_prefix == other.media_tag_prefix
|
||||
return false unless @media_tag_version == other.media_tag_version
|
||||
return false unless @search_result == other.search_result
|
||||
return false unless @size == other.size
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @library_section_uuid == other.library_section_uuid
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,199 +8,195 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
# Unknown
|
||||
#
|
||||
class GetSearchAllLibrariesMetadata
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# Unix epoch datetime in seconds
|
||||
|
||||
field :added_at, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('addedAt') } }
|
||||
|
||||
# The art image URL for the media item.
|
||||
field :art, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
|
||||
# The audience rating for the media item.
|
||||
field :audience_rating, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRating') } }
|
||||
# The banner image URL for the media item.
|
||||
field :banner, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('banner') } }
|
||||
# The number of child items associated with this media item.
|
||||
field :child_count, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('childCount') } }
|
||||
# The duration of the media item in milliseconds.
|
||||
field :duration, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
# The globally unique identifier for the media item.
|
||||
field :guid, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('guid') } }
|
||||
|
||||
# The index position of the media item.
|
||||
field :index, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
||||
# The unique key for the media item.
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# The rating key (Media ID) of this media item.
|
||||
# Note: This is always an integer, but is represented as a string in the API.
|
||||
#
|
||||
# The critic rating for the media item.
|
||||
field :rating, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('rating') } }
|
||||
# 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.
|
||||
field :rating_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingKey') } }
|
||||
|
||||
# The total number of seasons (for TV shows).
|
||||
field :season_count, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('seasonCount') } }
|
||||
# A URL‐friendly version of the media title.
|
||||
field :slug, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('slug') } }
|
||||
# A synopsis of the media item.
|
||||
field :summary, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
|
||||
|
||||
# A brief tagline for the media item.
|
||||
field :tagline, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagline') } }
|
||||
# The theme URL for the media item.
|
||||
field :theme, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('theme') } }
|
||||
# The thumbnail image URL for the media item.
|
||||
field :thumb, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
# The title of the media item.
|
||||
field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
# The type of media content in the Plex library. This can represent videos, music, or photos.
|
||||
#
|
||||
# The sort title used for ordering media items.
|
||||
field :title_sort, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('titleSort') } }
|
||||
|
||||
field :type, Models::Operations::GetSearchAllLibrariesType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(Models::Operations::GetSearchAllLibrariesType, false) } }
|
||||
|
||||
field :art, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
|
||||
|
||||
field :audience_rating, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRating') } }
|
||||
|
||||
# The URL for the audience rating image.
|
||||
field :audience_rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRatingImage') } }
|
||||
|
||||
field :banner, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('banner') } }
|
||||
|
||||
# The source from which chapter data is derived.
|
||||
field :chapter_source, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chapterSource') } }
|
||||
|
||||
field :child_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('childCount') } }
|
||||
|
||||
field :collection, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesCollection]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Collection') } }
|
||||
|
||||
# The content rating for the media item.
|
||||
field :content_rating, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('contentRating') } }
|
||||
|
||||
field :country, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesCountry]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Country') } }
|
||||
# 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).
|
||||
field :created_at_accuracy, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAtAccuracy') } }
|
||||
# The time zone offset for the creation timestamp, represented as a string. This offset indicates the difference from UTC.
|
||||
field :created_at_tz_offset, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('createdAtTZOffset') } }
|
||||
|
||||
field :director, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesDirector]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Director') } }
|
||||
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
# Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||
field :enable_credits_marker_generation, T.nilable(Models::Operations::GetSearchAllLibrariesEnableCreditsMarkerGeneration), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('enableCreditsMarkerGeneration'), 'decoder': Utils.enum_from_string(Models::Operations::GetSearchAllLibrariesEnableCreditsMarkerGeneration, true) } }
|
||||
# Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||
field :episode_sort, T.nilable(Models::Operations::GetSearchAllLibrariesEpisodeSort), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('episodeSort'), 'decoder': Utils.enum_from_string(Models::Operations::GetSearchAllLibrariesEpisodeSort, true) } }
|
||||
# Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||
#
|
||||
field :flatten_seasons, T.nilable(Models::Operations::GetSearchAllLibrariesFlattenSeasons), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('flattenSeasons'), 'decoder': Utils.enum_from_string(Models::Operations::GetSearchAllLibrariesFlattenSeasons, true) } }
|
||||
|
||||
field :genre, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesGenre]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Genre') } }
|
||||
|
||||
# The art URL for the grandparent media item.
|
||||
field :grandparent_art, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentArt') } }
|
||||
|
||||
# The GUID of the grandparent media item.
|
||||
field :grandparent_guid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentGuid') } }
|
||||
|
||||
# The key of the grandparent media item.
|
||||
field :grandparent_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentKey') } }
|
||||
|
||||
# The rating key of the grandparent media item.
|
||||
field :grandparent_rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentRatingKey') } }
|
||||
|
||||
# The slug for the grandparent media item.
|
||||
field :grandparent_slug, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentSlug') } }
|
||||
|
||||
# The theme URL for the grandparent media item.
|
||||
field :grandparent_theme, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentTheme') } }
|
||||
|
||||
# The thumbnail URL for the grandparent media item.
|
||||
field :grandparent_thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentThumb') } }
|
||||
|
||||
# The title of the grandparent media item.
|
||||
field :grandparent_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentTitle') } }
|
||||
|
||||
field :has_premium_extras, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasPremiumExtras') } }
|
||||
|
||||
field :has_premium_primary_extra, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasPremiumPrimaryExtra') } }
|
||||
field :guids, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesGuids]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
|
||||
|
||||
field :image, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesImage]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Image') } }
|
||||
|
||||
field :index, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
||||
|
||||
# The Unix timestamp representing the last time the item was rated.
|
||||
field :last_rated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastRatedAt') } }
|
||||
# Unix timestamp for when the media item was last viewed.
|
||||
field :last_viewed_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastViewedAt') } }
|
||||
|
||||
# The number of leaf items (end nodes) under this media item.
|
||||
field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
|
||||
|
||||
# The identifier for the library section.
|
||||
field :library_section_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
|
||||
|
||||
# The key corresponding to the library section.
|
||||
field :library_section_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionKey') } }
|
||||
|
||||
# The title of the library section.
|
||||
field :library_section_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
|
||||
|
||||
field :location, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesLocation]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Location') } }
|
||||
# The Media object is only included when type query is `4` or higher.
|
||||
#
|
||||
|
||||
field :media, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesMedia]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
|
||||
# The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
|
||||
#
|
||||
field :media_guid, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesMediaGuid]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
|
||||
|
||||
field :meta_data_rating, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesMetaDataRating]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Rating') } }
|
||||
|
||||
# The original release date of the media item.
|
||||
field :originally_available_at, T.nilable(::Date), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(true) } }
|
||||
|
||||
# The original title of the media item (if different).
|
||||
field :original_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originalTitle') } }
|
||||
|
||||
# The GUID of the parent media item.
|
||||
field :parent_guid, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentGuid') } }
|
||||
|
||||
# The index position of the parent media item.
|
||||
field :parent_index, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentIndex') } }
|
||||
|
||||
# The key of the parent media item.
|
||||
field :parent_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentKey') } }
|
||||
# The rating key of the parent item.
|
||||
#
|
||||
# The rating key of the parent media item.
|
||||
field :parent_rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentRatingKey') } }
|
||||
|
||||
field :parent_slug, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentSlug') } }
|
||||
|
||||
field :parent_studio, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentStudio') } }
|
||||
|
||||
field :parent_theme, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentTheme') } }
|
||||
|
||||
# The thumbnail URL for the parent media item.
|
||||
field :parent_thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentThumb') } }
|
||||
|
||||
# The title of the parent media item.
|
||||
field :parent_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentTitle') } }
|
||||
|
||||
# The release year of the parent media item.
|
||||
field :parent_year, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentYear') } }
|
||||
|
||||
# The primary extra key associated with this media item.
|
||||
field :primary_extra_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('primaryExtraKey') } }
|
||||
|
||||
field :rating, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('rating') } }
|
||||
|
||||
# The URL for the rating image.
|
||||
field :rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingImage') } }
|
||||
|
||||
field :role, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesRole]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Role') } }
|
||||
|
||||
field :season_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('seasonCount') } }
|
||||
# Setting that indicates the episode ordering for the show.
|
||||
# None = Library default,
|
||||
# tmdbAiring = The Movie Database (Aired),
|
||||
# aired = TheTVDB (Aired),
|
||||
# dvd = TheTVDB (DVD),
|
||||
# absolute = TheTVDB (Absolute)).
|
||||
# Options:
|
||||
# - None = Library default
|
||||
# - tmdbAiring = The Movie Database (Aired)
|
||||
# - aired = TheTVDB (Aired)
|
||||
# - dvd = TheTVDB (DVD)
|
||||
# - absolute = TheTVDB (Absolute)
|
||||
#
|
||||
field :show_ordering, T.nilable(Models::Operations::GetSearchAllLibrariesShowOrdering), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('showOrdering'), 'decoder': Utils.enum_from_string(Models::Operations::GetSearchAllLibrariesShowOrdering, true) } }
|
||||
|
||||
# Indicates whether child items should be skipped.
|
||||
field :skip_children, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('skipChildren') } }
|
||||
|
||||
# The number of times this media item has been skipped.
|
||||
field :skip_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('skipCount') } }
|
||||
|
||||
field :slug, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('slug') } }
|
||||
|
||||
# The studio that produced the media item.
|
||||
field :studio, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('studio') } }
|
||||
|
||||
field :tagline, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagline') } }
|
||||
|
||||
field :theme, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('theme') } }
|
||||
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
field :title_sort, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('titleSort') } }
|
||||
# A classification that further describes the type of media item. For example, 'clip' indicates that the item is a short video clip.
|
||||
field :subtype, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subtype') } }
|
||||
|
||||
field :ultra_blur_colors, T.nilable(Models::Operations::GetSearchAllLibrariesUltraBlurColors), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('UltraBlurColors') } }
|
||||
# Unix epoch datetime in seconds
|
||||
field :updated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('updatedAt') } }
|
||||
|
||||
# The rating provided by a user for the item. This value is expressed as a decimal number.
|
||||
field :user_rating, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('userRating') } }
|
||||
# The number of times this media item has been viewed.
|
||||
field :view_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewCount') } }
|
||||
|
||||
# The number of leaf items that have been viewed.
|
||||
field :viewed_leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewedLeafCount') } }
|
||||
|
||||
# The current playback offset (in milliseconds).
|
||||
field :view_offset, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewOffset') } }
|
||||
|
||||
field :writer, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesWriter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Writer') } }
|
||||
|
||||
# The release year of the media item.
|
||||
field :year, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('year') } }
|
||||
|
||||
|
||||
sig { params(added_at: ::Integer, guid: ::String, key: ::String, rating_key: ::String, summary: ::String, title: ::String, type: Models::Operations::GetSearchAllLibrariesType, art: T.nilable(::String), audience_rating: T.nilable(::Float), audience_rating_image: T.nilable(::String), banner: T.nilable(::String), chapter_source: T.nilable(::String), child_count: T.nilable(::Integer), collection: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesCollection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesCountry]), director: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesDirector]), duration: T.nilable(::Integer), enable_credits_marker_generation: T.nilable(Models::Operations::GetSearchAllLibrariesEnableCreditsMarkerGeneration), episode_sort: T.nilable(Models::Operations::GetSearchAllLibrariesEpisodeSort), flatten_seasons: T.nilable(Models::Operations::GetSearchAllLibrariesFlattenSeasons), genre: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), has_premium_extras: T.nilable(::String), has_premium_primary_extra: T.nilable(::String), image: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesImage]), index: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), library_section_id: T.nilable(::Integer), library_section_key: T.nilable(::String), library_section_title: T.nilable(::String), location: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesLocation]), media: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesMedia]), media_guid: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesMediaGuid]), meta_data_rating: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesMetaDataRating]), originally_available_at: T.nilable(::Date), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_slug: T.nilable(::String), parent_studio: T.nilable(::String), parent_theme: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), parent_year: T.nilable(::Integer), primary_extra_key: T.nilable(::String), rating: T.nilable(::Float), rating_image: T.nilable(::String), role: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesRole]), season_count: T.nilable(::Integer), show_ordering: T.nilable(Models::Operations::GetSearchAllLibrariesShowOrdering), skip_children: T.nilable(T::Boolean), skip_count: T.nilable(::Integer), slug: T.nilable(::String), studio: T.nilable(::String), tagline: T.nilable(::String), theme: T.nilable(::String), thumb: T.nilable(::String), title_sort: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::GetSearchAllLibrariesUltraBlurColors), updated_at: T.nilable(::Integer), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesWriter]), year: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, guid: nil, key: nil, rating_key: nil, summary: nil, title: nil, type: nil, art: nil, audience_rating: nil, audience_rating_image: nil, banner: nil, chapter_source: nil, child_count: nil, collection: nil, content_rating: nil, country: nil, director: nil, duration: nil, enable_credits_marker_generation: nil, episode_sort: nil, flatten_seasons: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, has_premium_extras: nil, has_premium_primary_extra: nil, image: nil, index: nil, last_viewed_at: nil, leaf_count: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, location: nil, media: nil, media_guid: nil, meta_data_rating: nil, originally_available_at: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_slug: nil, parent_studio: nil, parent_theme: nil, parent_thumb: nil, parent_title: nil, parent_year: nil, primary_extra_key: nil, rating: nil, rating_image: nil, role: nil, season_count: nil, show_ordering: nil, skip_children: nil, skip_count: nil, slug: nil, studio: nil, tagline: nil, theme: nil, thumb: nil, title_sort: nil, ultra_blur_colors: nil, updated_at: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
||||
sig { params(added_at: ::Integer, art: ::String, audience_rating: ::Float, banner: ::String, child_count: ::Integer, duration: ::Integer, guid: ::String, index: ::Integer, key: ::String, rating: ::Float, rating_key: ::String, season_count: ::Integer, slug: ::String, summary: ::String, tagline: ::String, theme: ::String, thumb: ::String, title: ::String, title_sort: ::String, type: Models::Operations::GetSearchAllLibrariesType, audience_rating_image: T.nilable(::String), chapter_source: T.nilable(::String), content_rating: T.nilable(::String), country: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesCountry]), created_at_accuracy: T.nilable(::String), created_at_tz_offset: T.nilable(::String), director: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesDirector]), flatten_seasons: T.nilable(Models::Operations::GetSearchAllLibrariesFlattenSeasons), genre: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), guids: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesGuids]), image: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesImage]), last_rated_at: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), library_section_id: T.nilable(::Integer), library_section_key: T.nilable(::String), library_section_title: T.nilable(::String), location: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesLocation]), media: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesMedia]), originally_available_at: T.nilable(::Date), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), parent_year: T.nilable(::Integer), primary_extra_key: T.nilable(::String), rating_image: T.nilable(::String), role: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesRole]), show_ordering: T.nilable(Models::Operations::GetSearchAllLibrariesShowOrdering), skip_children: T.nilable(T::Boolean), skip_count: T.nilable(::Integer), studio: T.nilable(::String), subtype: T.nilable(::String), ultra_blur_colors: T.nilable(Models::Operations::GetSearchAllLibrariesUltraBlurColors), updated_at: T.nilable(::Integer), user_rating: T.nilable(::Float), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesWriter]), year: T.nilable(::Integer)).void }
|
||||
def initialize(added_at: nil, art: nil, audience_rating: nil, banner: nil, child_count: nil, duration: nil, guid: nil, index: nil, key: nil, rating: nil, rating_key: nil, season_count: nil, slug: nil, summary: nil, tagline: nil, theme: nil, thumb: nil, title: nil, title_sort: nil, type: nil, audience_rating_image: nil, chapter_source: nil, content_rating: nil, country: nil, created_at_accuracy: nil, created_at_tz_offset: nil, director: nil, flatten_seasons: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, guids: nil, image: nil, last_rated_at: nil, last_viewed_at: nil, leaf_count: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, location: nil, media: nil, originally_available_at: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_thumb: nil, parent_title: nil, parent_year: nil, primary_extra_key: nil, rating_image: nil, role: nil, show_ordering: nil, skip_children: nil, skip_count: nil, studio: nil, subtype: nil, ultra_blur_colors: nil, updated_at: nil, user_rating: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
|
||||
@added_at = added_at
|
||||
@guid = guid
|
||||
@key = key
|
||||
@rating_key = rating_key
|
||||
@summary = summary
|
||||
@title = title
|
||||
@type = type
|
||||
@art = art
|
||||
@audience_rating = audience_rating
|
||||
@audience_rating_image = audience_rating_image
|
||||
@banner = banner
|
||||
@chapter_source = chapter_source
|
||||
@child_count = child_count
|
||||
@collection = collection
|
||||
@duration = duration
|
||||
@guid = guid
|
||||
@index = index
|
||||
@key = key
|
||||
@rating = rating
|
||||
@rating_key = rating_key
|
||||
@season_count = season_count
|
||||
@slug = slug
|
||||
@summary = summary
|
||||
@tagline = tagline
|
||||
@theme = theme
|
||||
@thumb = thumb
|
||||
@title = title
|
||||
@title_sort = title_sort
|
||||
@type = type
|
||||
@audience_rating_image = audience_rating_image
|
||||
@chapter_source = chapter_source
|
||||
@content_rating = content_rating
|
||||
@country = country
|
||||
@created_at_accuracy = created_at_accuracy
|
||||
@created_at_tz_offset = created_at_tz_offset
|
||||
@director = director
|
||||
@duration = duration
|
||||
@enable_credits_marker_generation = enable_credits_marker_generation
|
||||
@episode_sort = episode_sort
|
||||
@flatten_seasons = flatten_seasons
|
||||
@genre = genre
|
||||
@grandparent_art = grandparent_art
|
||||
@@ -211,10 +207,9 @@ module PlexRubySDK
|
||||
@grandparent_theme = grandparent_theme
|
||||
@grandparent_thumb = grandparent_thumb
|
||||
@grandparent_title = grandparent_title
|
||||
@has_premium_extras = has_premium_extras
|
||||
@has_premium_primary_extra = has_premium_primary_extra
|
||||
@guids = guids
|
||||
@image = image
|
||||
@index = index
|
||||
@last_rated_at = last_rated_at
|
||||
@last_viewed_at = last_viewed_at
|
||||
@leaf_count = leaf_count
|
||||
@library_section_id = library_section_id
|
||||
@@ -222,36 +217,26 @@ module PlexRubySDK
|
||||
@library_section_title = library_section_title
|
||||
@location = location
|
||||
@media = media
|
||||
@media_guid = media_guid
|
||||
@meta_data_rating = meta_data_rating
|
||||
@originally_available_at = originally_available_at
|
||||
@original_title = original_title
|
||||
@parent_guid = parent_guid
|
||||
@parent_index = parent_index
|
||||
@parent_key = parent_key
|
||||
@parent_rating_key = parent_rating_key
|
||||
@parent_slug = parent_slug
|
||||
@parent_studio = parent_studio
|
||||
@parent_theme = parent_theme
|
||||
@parent_thumb = parent_thumb
|
||||
@parent_title = parent_title
|
||||
@parent_year = parent_year
|
||||
@primary_extra_key = primary_extra_key
|
||||
@rating = rating
|
||||
@rating_image = rating_image
|
||||
@role = role
|
||||
@season_count = season_count
|
||||
@show_ordering = show_ordering
|
||||
@skip_children = skip_children
|
||||
@skip_count = skip_count
|
||||
@slug = slug
|
||||
@studio = studio
|
||||
@tagline = tagline
|
||||
@theme = theme
|
||||
@thumb = thumb
|
||||
@title_sort = title_sort
|
||||
@subtype = subtype
|
||||
@ultra_blur_colors = ultra_blur_colors
|
||||
@updated_at = updated_at
|
||||
@user_rating = user_rating
|
||||
@view_count = view_count
|
||||
@viewed_leaf_count = viewed_leaf_count
|
||||
@view_offset = view_offset
|
||||
@@ -262,25 +247,32 @@ module PlexRubySDK
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @added_at == other.added_at
|
||||
return false unless @guid == other.guid
|
||||
return false unless @key == other.key
|
||||
return false unless @rating_key == other.rating_key
|
||||
return false unless @summary == other.summary
|
||||
return false unless @title == other.title
|
||||
return false unless @type == other.type
|
||||
return false unless @art == other.art
|
||||
return false unless @audience_rating == other.audience_rating
|
||||
return false unless @audience_rating_image == other.audience_rating_image
|
||||
return false unless @banner == other.banner
|
||||
return false unless @chapter_source == other.chapter_source
|
||||
return false unless @child_count == other.child_count
|
||||
return false unless @collection == other.collection
|
||||
return false unless @duration == other.duration
|
||||
return false unless @guid == other.guid
|
||||
return false unless @index == other.index
|
||||
return false unless @key == other.key
|
||||
return false unless @rating == other.rating
|
||||
return false unless @rating_key == other.rating_key
|
||||
return false unless @season_count == other.season_count
|
||||
return false unless @slug == other.slug
|
||||
return false unless @summary == other.summary
|
||||
return false unless @tagline == other.tagline
|
||||
return false unless @theme == other.theme
|
||||
return false unless @thumb == other.thumb
|
||||
return false unless @title == other.title
|
||||
return false unless @title_sort == other.title_sort
|
||||
return false unless @type == other.type
|
||||
return false unless @audience_rating_image == other.audience_rating_image
|
||||
return false unless @chapter_source == other.chapter_source
|
||||
return false unless @content_rating == other.content_rating
|
||||
return false unless @country == other.country
|
||||
return false unless @created_at_accuracy == other.created_at_accuracy
|
||||
return false unless @created_at_tz_offset == other.created_at_tz_offset
|
||||
return false unless @director == other.director
|
||||
return false unless @duration == other.duration
|
||||
return false unless @enable_credits_marker_generation == other.enable_credits_marker_generation
|
||||
return false unless @episode_sort == other.episode_sort
|
||||
return false unless @flatten_seasons == other.flatten_seasons
|
||||
return false unless @genre == other.genre
|
||||
return false unless @grandparent_art == other.grandparent_art
|
||||
@@ -291,10 +283,9 @@ module PlexRubySDK
|
||||
return false unless @grandparent_theme == other.grandparent_theme
|
||||
return false unless @grandparent_thumb == other.grandparent_thumb
|
||||
return false unless @grandparent_title == other.grandparent_title
|
||||
return false unless @has_premium_extras == other.has_premium_extras
|
||||
return false unless @has_premium_primary_extra == other.has_premium_primary_extra
|
||||
return false unless @guids == other.guids
|
||||
return false unless @image == other.image
|
||||
return false unless @index == other.index
|
||||
return false unless @last_rated_at == other.last_rated_at
|
||||
return false unless @last_viewed_at == other.last_viewed_at
|
||||
return false unless @leaf_count == other.leaf_count
|
||||
return false unless @library_section_id == other.library_section_id
|
||||
@@ -302,36 +293,26 @@ module PlexRubySDK
|
||||
return false unless @library_section_title == other.library_section_title
|
||||
return false unless @location == other.location
|
||||
return false unless @media == other.media
|
||||
return false unless @media_guid == other.media_guid
|
||||
return false unless @meta_data_rating == other.meta_data_rating
|
||||
return false unless @originally_available_at == other.originally_available_at
|
||||
return false unless @original_title == other.original_title
|
||||
return false unless @parent_guid == other.parent_guid
|
||||
return false unless @parent_index == other.parent_index
|
||||
return false unless @parent_key == other.parent_key
|
||||
return false unless @parent_rating_key == other.parent_rating_key
|
||||
return false unless @parent_slug == other.parent_slug
|
||||
return false unless @parent_studio == other.parent_studio
|
||||
return false unless @parent_theme == other.parent_theme
|
||||
return false unless @parent_thumb == other.parent_thumb
|
||||
return false unless @parent_title == other.parent_title
|
||||
return false unless @parent_year == other.parent_year
|
||||
return false unless @primary_extra_key == other.primary_extra_key
|
||||
return false unless @rating == other.rating
|
||||
return false unless @rating_image == other.rating_image
|
||||
return false unless @role == other.role
|
||||
return false unless @season_count == other.season_count
|
||||
return false unless @show_ordering == other.show_ordering
|
||||
return false unless @skip_children == other.skip_children
|
||||
return false unless @skip_count == other.skip_count
|
||||
return false unless @slug == other.slug
|
||||
return false unless @studio == other.studio
|
||||
return false unless @tagline == other.tagline
|
||||
return false unless @theme == other.theme
|
||||
return false unless @thumb == other.thumb
|
||||
return false unless @title_sort == other.title_sort
|
||||
return false unless @subtype == other.subtype
|
||||
return false unless @ultra_blur_colors == other.ultra_blur_colors
|
||||
return false unless @updated_at == other.updated_at
|
||||
return false unless @user_rating == other.user_rating
|
||||
return false unless @view_count == other.view_count
|
||||
return false unless @viewed_leaf_count == other.viewed_leaf_count
|
||||
return false unless @view_offset == other.view_offset
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetSearchAllLibrariesMetaDataRating
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# A URI or path to the rating image.
|
||||
field :image, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('image') } }
|
||||
# The type of rating (e.g., audience, critic).
|
||||
field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
|
||||
# The value of the rating.
|
||||
field :value, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('value') } }
|
||||
|
||||
|
||||
sig { params(image: ::String, type: ::String, value: ::Float).void }
|
||||
def initialize(image: nil, type: nil, value: nil)
|
||||
@image = image
|
||||
@type = type
|
||||
@value = value
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @image == other.image
|
||||
return false unless @type == other.type
|
||||
return false unless @value == other.value
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -8,11 +8,19 @@ module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
class GetSearchAllLibrariesOptimizedForStreaming
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
class GetSearchAllLibrariesOptimizedForStreaming < T::Enum
|
||||
enums do
|
||||
DISABLE = new(0)
|
||||
ENABLE = new(1)
|
||||
|
||||
|
||||
|
||||
def initialize; end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetSearchAllLibrariesOptimizedForStreaming1 < T::Enum
|
||||
enums do
|
||||
ZERO = new(0)
|
||||
ONE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,20 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetSearchAllLibrariesOptimizedForStreamingLibrary1 < T::Enum
|
||||
enums do
|
||||
ZERO = new(0)
|
||||
ONE = new(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -13,66 +13,74 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The container format of the media file.
|
||||
#
|
||||
field :container, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
||||
|
||||
field :file, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('file') } }
|
||||
|
||||
# Unique part identifier.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
|
||||
field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
|
||||
field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
|
||||
# Indicates if the part is accessible.
|
||||
field :accessible, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('accessible') } }
|
||||
# The audio profile used for the media (e.g., DTS, Dolby Digital, etc.).
|
||||
field :audio_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioProfile') } }
|
||||
|
||||
# Container format of the part.
|
||||
field :container, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
|
||||
# Duration of the part in milliseconds.
|
||||
field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
|
||||
# Indicates if the part exists.
|
||||
field :exists, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('exists') } }
|
||||
# File path for the part.
|
||||
field :file, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('file') } }
|
||||
|
||||
field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
|
||||
|
||||
field :has_thumbnail, T.nilable(Models::Operations::GetSearchAllLibrariesHasThumbnail), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasThumbnail'), 'decoder': Utils.enum_from_string(Models::Operations::GetSearchAllLibrariesHasThumbnail, true) } }
|
||||
|
||||
field :indexes, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('indexes') } }
|
||||
# Key to access this part.
|
||||
field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
|
||||
# Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
|
||||
#
|
||||
field :optimized_for_streaming, T.nilable(T.any(Models::Operations::GetSearchAllLibrariesOptimizedForStreamingLibrary1, T::Boolean)), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
|
||||
field :optimized_for_streaming, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
|
||||
|
||||
field :stream, T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesStream]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Stream') } }
|
||||
|
||||
field :packet_length, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('packetLength') } }
|
||||
# File size in bytes.
|
||||
field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
|
||||
# Video profile for the part.
|
||||
field :video_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
|
||||
|
||||
|
||||
sig { params(container: ::String, file: ::String, id: ::Integer, key: ::String, size: ::Integer, audio_profile: T.nilable(::String), duration: T.nilable(::Integer), has64bit_offsets: T.nilable(T::Boolean), has_thumbnail: T.nilable(Models::Operations::GetSearchAllLibrariesHasThumbnail), indexes: T.nilable(::String), optimized_for_streaming: T.nilable(T::Boolean), stream: T.nilable(T::Array[Models::Operations::GetSearchAllLibrariesStream]), video_profile: T.nilable(::String)).void }
|
||||
def initialize(container: nil, file: nil, id: nil, key: nil, size: nil, audio_profile: nil, duration: nil, has64bit_offsets: nil, has_thumbnail: nil, indexes: nil, optimized_for_streaming: nil, stream: nil, video_profile: nil)
|
||||
@container = container
|
||||
@file = file
|
||||
sig { params(id: ::Integer, accessible: T.nilable(T::Boolean), audio_profile: T.nilable(::String), container: T.nilable(::String), duration: T.nilable(::Integer), exists: T.nilable(T::Boolean), file: T.nilable(::String), has64bit_offsets: T.nilable(T::Boolean), has_thumbnail: T.nilable(Models::Operations::GetSearchAllLibrariesHasThumbnail), indexes: T.nilable(::String), key: T.nilable(::String), optimized_for_streaming: T.nilable(T.any(Models::Operations::GetSearchAllLibrariesOptimizedForStreamingLibrary1, T::Boolean)), packet_length: T.nilable(::Integer), size: T.nilable(::Integer), video_profile: T.nilable(::String)).void }
|
||||
def initialize(id: nil, accessible: nil, audio_profile: nil, container: nil, duration: nil, exists: nil, file: nil, has64bit_offsets: nil, has_thumbnail: nil, indexes: nil, key: nil, optimized_for_streaming: nil, packet_length: nil, size: nil, video_profile: nil)
|
||||
@id = id
|
||||
@key = key
|
||||
@size = size
|
||||
@accessible = accessible
|
||||
@audio_profile = audio_profile
|
||||
@container = container
|
||||
@duration = duration
|
||||
@exists = exists
|
||||
@file = file
|
||||
@has64bit_offsets = has64bit_offsets
|
||||
@has_thumbnail = has_thumbnail
|
||||
@indexes = indexes
|
||||
@key = key
|
||||
@optimized_for_streaming = optimized_for_streaming
|
||||
@stream = stream
|
||||
@packet_length = packet_length
|
||||
@size = size
|
||||
@video_profile = video_profile
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @container == other.container
|
||||
return false unless @file == other.file
|
||||
return false unless @id == other.id
|
||||
return false unless @key == other.key
|
||||
return false unless @size == other.size
|
||||
return false unless @accessible == other.accessible
|
||||
return false unless @audio_profile == other.audio_profile
|
||||
return false unless @container == other.container
|
||||
return false unless @duration == other.duration
|
||||
return false unless @exists == other.exists
|
||||
return false unless @file == other.file
|
||||
return false unless @has64bit_offsets == other.has64bit_offsets
|
||||
return false unless @has_thumbnail == other.has_thumbnail
|
||||
return false unless @indexes == other.indexes
|
||||
return false unless @key == other.key
|
||||
return false unless @optimized_for_streaming == other.optimized_for_streaming
|
||||
return false unless @stream == other.stream
|
||||
return false unless @packet_length == other.packet_length
|
||||
return false unless @size == other.size
|
||||
return false unless @video_profile == other.video_profile
|
||||
true
|
||||
end
|
||||
|
||||
@@ -13,37 +13,31 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# The filter used to find the actor or tag.
|
||||
field :filter, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
||||
# The ID of the tag or actor.
|
||||
field :id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The role of the actor or tag in the media.
|
||||
# The unique identifier for the role.
|
||||
# NOTE: This is different for each Plex server and is not globally unique.
|
||||
#
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The display tag for the actor (typically the actor's name).
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The role played by the actor in the media item.
|
||||
field :role, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('role') } }
|
||||
# The name of the tag or actor.
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# Unique identifier for the tag.
|
||||
field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
|
||||
# The thumbnail of the actor
|
||||
# The absolute URL of the thumbnail image for the actor.
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(filter: T.nilable(::String), id: T.nilable(::Integer), role: T.nilable(::String), tag: T.nilable(::String), tag_key: T.nilable(::String), thumb: T.nilable(::String)).void }
|
||||
def initialize(filter: nil, id: nil, role: nil, tag: nil, tag_key: nil, thumb: nil)
|
||||
@filter = filter
|
||||
sig { params(id: ::Integer, tag: ::String, role: T.nilable(::String), thumb: T.nilable(::String)).void }
|
||||
def initialize(id: nil, tag: nil, role: nil, thumb: nil)
|
||||
@id = id
|
||||
@role = role
|
||||
@tag = tag
|
||||
@tag_key = tag_key
|
||||
@role = role
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @filter == other.filter
|
||||
return false unless @id == other.id
|
||||
return false unless @role == other.role
|
||||
return false unless @tag == other.tag
|
||||
return false unless @tag_key == other.tag_key
|
||||
return false unless @role == other.role
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
|
||||
@@ -9,11 +9,12 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# GetSearchAllLibrariesShowOrdering - Setting that indicates the episode ordering for the show.
|
||||
# None = Library default,
|
||||
# tmdbAiring = The Movie Database (Aired),
|
||||
# aired = TheTVDB (Aired),
|
||||
# dvd = TheTVDB (DVD),
|
||||
# absolute = TheTVDB (Absolute)).
|
||||
# Options:
|
||||
# - None = Library default
|
||||
# - tmdbAiring = The Movie Database (Aired)
|
||||
# - aired = TheTVDB (Aired)
|
||||
# - dvd = TheTVDB (DVD)
|
||||
# - absolute = TheTVDB (Absolute)
|
||||
#
|
||||
class GetSearchAllLibrariesShowOrdering < T::Enum
|
||||
enums do
|
||||
|
||||
@@ -1,181 +0,0 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Operations
|
||||
|
||||
|
||||
class GetSearchAllLibrariesStream
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
# Codec used by the stream
|
||||
field :codec, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('codec') } }
|
||||
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The index of the stream
|
||||
field :index, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
|
||||
# Type of stream (1 = video, 2 = audio, 3 = subtitle)
|
||||
field :stream_type, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType') } }
|
||||
# The audio channel layout
|
||||
field :audio_channel_layout, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioChannelLayout') } }
|
||||
# The bit depth of the video stream
|
||||
field :bit_depth, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('bitDepth') } }
|
||||
# The bitrate of the stream in kbps
|
||||
field :bitrate, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('bitrate') } }
|
||||
# Indicates if the subtitle stream can auto-sync
|
||||
field :can_auto_sync, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('canAutoSync') } }
|
||||
# Number of audio channels (for audio streams)
|
||||
field :channels, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('channels') } }
|
||||
# The chroma location of the video stream
|
||||
field :chroma_location, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chromaLocation') } }
|
||||
# The chroma subsampling format
|
||||
field :chroma_subsampling, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chromaSubsampling') } }
|
||||
|
||||
field :closed_captions, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('closedCaptions') } }
|
||||
# The coded height of the video stream
|
||||
field :coded_height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('codedHeight') } }
|
||||
# The coded width of the video stream
|
||||
field :coded_width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('codedWidth') } }
|
||||
# The color primaries of the video stream
|
||||
field :color_primaries, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('colorPrimaries') } }
|
||||
# The color range of the video stream
|
||||
field :color_range, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('colorRange') } }
|
||||
# The color space of the video stream
|
||||
field :color_space, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('colorSpace') } }
|
||||
# The transfer characteristics (TRC) of the video stream
|
||||
field :color_trc, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('colorTrc') } }
|
||||
# Indicates if this is the default stream
|
||||
field :default, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('default') } }
|
||||
# Display title of the stream
|
||||
field :display_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('displayTitle') } }
|
||||
|
||||
field :embedded_in_video, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('embeddedInVideo') } }
|
||||
# Extended display title of the stream
|
||||
field :extended_display_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('extendedDisplayTitle') } }
|
||||
# The frame rate of the video stream
|
||||
field :frame_rate, T.nilable(::Float), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('frameRate') } }
|
||||
# Indicates if the stream has a scaling matrix
|
||||
field :has_scaling_matrix, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasScalingMatrix') } }
|
||||
|
||||
field :hearing_impaired, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hearingImpaired') } }
|
||||
# The height of the video stream
|
||||
field :height, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('height') } }
|
||||
# The language of the stream (for audio/subtitle streams)
|
||||
field :language, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('language') } }
|
||||
# Language code of the stream
|
||||
field :language_code, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('languageCode') } }
|
||||
# Language tag of the stream
|
||||
field :language_tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('languageTag') } }
|
||||
# The level of the video codec
|
||||
field :level, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('level') } }
|
||||
# The profile of the video codec
|
||||
field :profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('profile') } }
|
||||
# Number of reference frames
|
||||
field :ref_frames, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('refFrames') } }
|
||||
# Sampling rate of the audio stream in Hz
|
||||
field :sampling_rate, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('samplingRate') } }
|
||||
# The scan type (progressive or interlaced)
|
||||
field :scan_type, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('scanType') } }
|
||||
# Indicates if the stream is selected
|
||||
field :selected, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('selected') } }
|
||||
# The identifier of the video stream
|
||||
field :stream_identifier, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamIdentifier') } }
|
||||
# Title of the subtitle track (for subtitle streams)
|
||||
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
||||
# The width of the video stream
|
||||
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
||||
|
||||
|
||||
sig { params(codec: ::String, id: ::Integer, index: ::Integer, stream_type: ::Integer, audio_channel_layout: T.nilable(::String), bit_depth: T.nilable(::Integer), bitrate: T.nilable(::Integer), can_auto_sync: T.nilable(T::Boolean), channels: T.nilable(::Integer), chroma_location: T.nilable(::String), chroma_subsampling: T.nilable(::String), closed_captions: T.nilable(T::Boolean), coded_height: T.nilable(::Integer), coded_width: T.nilable(::Integer), color_primaries: T.nilable(::String), color_range: T.nilable(::String), color_space: T.nilable(::String), color_trc: T.nilable(::String), default: T.nilable(T::Boolean), display_title: T.nilable(::String), embedded_in_video: T.nilable(::String), extended_display_title: T.nilable(::String), frame_rate: T.nilable(::Float), has_scaling_matrix: T.nilable(T::Boolean), hearing_impaired: T.nilable(T::Boolean), height: T.nilable(::Integer), language: T.nilable(::String), language_code: T.nilable(::String), language_tag: T.nilable(::String), level: T.nilable(::Integer), profile: T.nilable(::String), ref_frames: T.nilable(::Integer), sampling_rate: T.nilable(::Integer), scan_type: T.nilable(::String), selected: T.nilable(T::Boolean), stream_identifier: T.nilable(::String), title: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(codec: nil, id: nil, index: nil, stream_type: nil, audio_channel_layout: nil, bit_depth: nil, bitrate: nil, can_auto_sync: nil, channels: nil, chroma_location: nil, chroma_subsampling: nil, closed_captions: nil, coded_height: nil, coded_width: nil, color_primaries: nil, color_range: nil, color_space: nil, color_trc: nil, default: nil, display_title: nil, embedded_in_video: nil, extended_display_title: nil, frame_rate: nil, has_scaling_matrix: nil, hearing_impaired: nil, height: nil, language: nil, language_code: nil, language_tag: nil, level: nil, profile: nil, ref_frames: nil, sampling_rate: nil, scan_type: nil, selected: nil, stream_identifier: nil, title: nil, width: nil)
|
||||
@codec = codec
|
||||
@id = id
|
||||
@index = index
|
||||
@stream_type = stream_type
|
||||
@audio_channel_layout = audio_channel_layout
|
||||
@bit_depth = bit_depth
|
||||
@bitrate = bitrate
|
||||
@can_auto_sync = can_auto_sync
|
||||
@channels = channels
|
||||
@chroma_location = chroma_location
|
||||
@chroma_subsampling = chroma_subsampling
|
||||
@closed_captions = closed_captions
|
||||
@coded_height = coded_height
|
||||
@coded_width = coded_width
|
||||
@color_primaries = color_primaries
|
||||
@color_range = color_range
|
||||
@color_space = color_space
|
||||
@color_trc = color_trc
|
||||
@default = default
|
||||
@display_title = display_title
|
||||
@embedded_in_video = embedded_in_video
|
||||
@extended_display_title = extended_display_title
|
||||
@frame_rate = frame_rate
|
||||
@has_scaling_matrix = has_scaling_matrix
|
||||
@hearing_impaired = hearing_impaired
|
||||
@height = height
|
||||
@language = language
|
||||
@language_code = language_code
|
||||
@language_tag = language_tag
|
||||
@level = level
|
||||
@profile = profile
|
||||
@ref_frames = ref_frames
|
||||
@sampling_rate = sampling_rate
|
||||
@scan_type = scan_type
|
||||
@selected = selected
|
||||
@stream_identifier = stream_identifier
|
||||
@title = title
|
||||
@width = width
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @codec == other.codec
|
||||
return false unless @id == other.id
|
||||
return false unless @index == other.index
|
||||
return false unless @stream_type == other.stream_type
|
||||
return false unless @audio_channel_layout == other.audio_channel_layout
|
||||
return false unless @bit_depth == other.bit_depth
|
||||
return false unless @bitrate == other.bitrate
|
||||
return false unless @can_auto_sync == other.can_auto_sync
|
||||
return false unless @channels == other.channels
|
||||
return false unless @chroma_location == other.chroma_location
|
||||
return false unless @chroma_subsampling == other.chroma_subsampling
|
||||
return false unless @closed_captions == other.closed_captions
|
||||
return false unless @coded_height == other.coded_height
|
||||
return false unless @coded_width == other.coded_width
|
||||
return false unless @color_primaries == other.color_primaries
|
||||
return false unless @color_range == other.color_range
|
||||
return false unless @color_space == other.color_space
|
||||
return false unless @color_trc == other.color_trc
|
||||
return false unless @default == other.default
|
||||
return false unless @display_title == other.display_title
|
||||
return false unless @embedded_in_video == other.embedded_in_video
|
||||
return false unless @extended_display_title == other.extended_display_title
|
||||
return false unless @frame_rate == other.frame_rate
|
||||
return false unless @has_scaling_matrix == other.has_scaling_matrix
|
||||
return false unless @hearing_impaired == other.hearing_impaired
|
||||
return false unless @height == other.height
|
||||
return false unless @language == other.language
|
||||
return false unless @language_code == other.language_code
|
||||
return false unless @language_tag == other.language_tag
|
||||
return false unless @level == other.level
|
||||
return false unless @profile == other.profile
|
||||
return false unless @ref_frames == other.ref_frames
|
||||
return false unless @sampling_rate == other.sampling_rate
|
||||
return false unless @scan_type == other.scan_type
|
||||
return false unless @selected == other.selected
|
||||
return false unless @stream_identifier == other.stream_identifier
|
||||
return false unless @title == other.title
|
||||
return false unless @width == other.width
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -13,18 +13,26 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# Unique identifier for the writer.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# The role of Writer
|
||||
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
||||
# The absolute URL of the thumbnail image for the writer.
|
||||
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
|
||||
|
||||
|
||||
sig { params(tag: T.nilable(::String)).void }
|
||||
def initialize(tag: nil)
|
||||
sig { params(id: ::Integer, tag: ::String, thumb: T.nilable(::String)).void }
|
||||
def initialize(id: nil, tag: nil, thumb: nil)
|
||||
@id = id
|
||||
@tag = tag
|
||||
@thumb = thumb
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @id == other.id
|
||||
return false unless @tag == other.tag
|
||||
return false unless @thumb == other.thumb
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,22 +13,26 @@ module PlexRubySDK
|
||||
extend T::Sig
|
||||
include Crystalline::MetadataFields
|
||||
|
||||
|
||||
field :metadata, Models::Operations::GetSearchAllLibrariesMetadata, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
|
||||
# The score of the search result, typically a float value between 0 and 1.
|
||||
field :score, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('score') } }
|
||||
|
||||
field :directory, T.nilable(Models::Operations::GetSearchAllLibrariesDirectory), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Directory') } }
|
||||
|
||||
sig { params(metadata: Models::Operations::GetSearchAllLibrariesMetadata, score: ::Float).void }
|
||||
def initialize(metadata: nil, score: nil)
|
||||
@metadata = metadata
|
||||
field :metadata, T.nilable(Models::Operations::GetSearchAllLibrariesMetadata), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Metadata') } }
|
||||
|
||||
|
||||
sig { params(score: ::Float, directory: T.nilable(Models::Operations::GetSearchAllLibrariesDirectory), metadata: T.nilable(Models::Operations::GetSearchAllLibrariesMetadata)).void }
|
||||
def initialize(score: nil, directory: nil, metadata: nil)
|
||||
@score = score
|
||||
@directory = directory
|
||||
@metadata = metadata
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @metadata == other.metadata
|
||||
return false unless @score == other.score
|
||||
return false unless @directory == other.directory
|
||||
return false unless @metadata == other.metadata
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,11 +9,12 @@ module PlexRubySDK
|
||||
module Operations
|
||||
|
||||
# ShowOrdering - Setting that indicates the episode ordering for the show.
|
||||
# None = Library default,
|
||||
# tmdbAiring = The Movie Database (Aired),
|
||||
# aired = TheTVDB (Aired),
|
||||
# dvd = TheTVDB (DVD),
|
||||
# absolute = TheTVDB (Absolute)).
|
||||
# Options:
|
||||
# - None = Library default
|
||||
# - tmdbAiring = The Movie Database (Aired)
|
||||
# - aired = TheTVDB (Aired)
|
||||
# - dvd = TheTVDB (DVD)
|
||||
# - absolute = TheTVDB (Absolute)
|
||||
#
|
||||
class ShowOrdering < T::Enum
|
||||
enums do
|
||||
|
||||
@@ -22,11 +22,11 @@ module PlexRubySDK
|
||||
# Unique stream identifier.
|
||||
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
||||
# Stream type:
|
||||
# - 1 = video
|
||||
# - 2 = audio
|
||||
# - 3 = subtitle
|
||||
# - VIDEO = 1
|
||||
# - AUDIO = 2
|
||||
# - SUBTITLE = 3
|
||||
#
|
||||
field :stream_type, Models::Operations::StreamType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType'), 'decoder': Utils.enum_from_string(Models::Operations::StreamType, false) } }
|
||||
field :stream_type, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('streamType') } }
|
||||
# Audio channel layout.
|
||||
field :audio_channel_layout, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioChannelLayout') } }
|
||||
# Bit depth of the video stream.
|
||||
@@ -121,7 +121,7 @@ module PlexRubySDK
|
||||
field :width, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('width') } }
|
||||
|
||||
|
||||
sig { params(codec: ::String, display_title: ::String, extended_display_title: ::String, id: ::Integer, stream_type: Models::Operations::StreamType, audio_channel_layout: T.nilable(::String), bit_depth: T.nilable(::Integer), bitrate: T.nilable(::Integer), can_auto_sync: T.nilable(T::Boolean), channels: T.nilable(::Integer), chroma_location: T.nilable(::String), chroma_subsampling: T.nilable(::String), closed_captions: T.nilable(T::Boolean), coded_height: T.nilable(::Integer), coded_width: T.nilable(::Integer), color_primaries: T.nilable(::String), color_range: T.nilable(::String), color_space: T.nilable(::String), color_trc: T.nilable(::String), default: T.nilable(T::Boolean), dovibl_compat_id: T.nilable(::Integer), dovibl_present: T.nilable(T::Boolean), doviel_present: T.nilable(T::Boolean), dovi_level: T.nilable(::Integer), dovi_present: T.nilable(T::Boolean), dovi_profile: T.nilable(::Integer), dovirpu_present: T.nilable(T::Boolean), dovi_version: T.nilable(::String), dub: T.nilable(T::Boolean), embedded_in_video: T.nilable(::String), forced: T.nilable(T::Boolean), format: T.nilable(::String), frame_rate: T.nilable(::Float), has_scaling_matrix: T.nilable(T::Boolean), header_compression: T.nilable(T::Boolean), hearing_impaired: T.nilable(T::Boolean), height: T.nilable(::Integer), index: T.nilable(::Integer), key: T.nilable(::String), language: T.nilable(::String), language_code: T.nilable(::String), language_tag: T.nilable(::String), level: T.nilable(::Integer), original: T.nilable(T::Boolean), profile: T.nilable(::String), ref_frames: T.nilable(::Integer), sampling_rate: T.nilable(::Integer), scan_type: T.nilable(::String), selected: T.nilable(T::Boolean), title: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
sig { params(codec: ::String, display_title: ::String, extended_display_title: ::String, id: ::Integer, stream_type: ::Integer, audio_channel_layout: T.nilable(::String), bit_depth: T.nilable(::Integer), bitrate: T.nilable(::Integer), can_auto_sync: T.nilable(T::Boolean), channels: T.nilable(::Integer), chroma_location: T.nilable(::String), chroma_subsampling: T.nilable(::String), closed_captions: T.nilable(T::Boolean), coded_height: T.nilable(::Integer), coded_width: T.nilable(::Integer), color_primaries: T.nilable(::String), color_range: T.nilable(::String), color_space: T.nilable(::String), color_trc: T.nilable(::String), default: T.nilable(T::Boolean), dovibl_compat_id: T.nilable(::Integer), dovibl_present: T.nilable(T::Boolean), doviel_present: T.nilable(T::Boolean), dovi_level: T.nilable(::Integer), dovi_present: T.nilable(T::Boolean), dovi_profile: T.nilable(::Integer), dovirpu_present: T.nilable(T::Boolean), dovi_version: T.nilable(::String), dub: T.nilable(T::Boolean), embedded_in_video: T.nilable(::String), forced: T.nilable(T::Boolean), format: T.nilable(::String), frame_rate: T.nilable(::Float), has_scaling_matrix: T.nilable(T::Boolean), header_compression: T.nilable(T::Boolean), hearing_impaired: T.nilable(T::Boolean), height: T.nilable(::Integer), index: T.nilable(::Integer), key: T.nilable(::String), language: T.nilable(::String), language_code: T.nilable(::String), language_tag: T.nilable(::String), level: T.nilable(::Integer), original: T.nilable(T::Boolean), profile: T.nilable(::String), ref_frames: T.nilable(::Integer), sampling_rate: T.nilable(::Integer), scan_type: T.nilable(::String), selected: T.nilable(T::Boolean), title: T.nilable(::String), width: T.nilable(::Integer)).void }
|
||||
def initialize(codec: nil, display_title: nil, extended_display_title: nil, id: nil, stream_type: nil, audio_channel_layout: nil, bit_depth: nil, bitrate: nil, can_auto_sync: nil, channels: nil, chroma_location: nil, chroma_subsampling: nil, closed_captions: nil, coded_height: nil, coded_width: nil, color_primaries: nil, color_range: nil, color_space: nil, color_trc: nil, default: nil, dovibl_compat_id: nil, dovibl_present: nil, doviel_present: nil, dovi_level: nil, dovi_present: nil, dovi_profile: nil, dovirpu_present: nil, dovi_version: nil, dub: nil, embedded_in_video: nil, forced: nil, format: nil, frame_rate: nil, has_scaling_matrix: nil, header_compression: nil, hearing_impaired: nil, height: nil, index: nil, key: nil, language: nil, language_code: nil, language_tag: nil, level: nil, original: nil, profile: nil, ref_frames: nil, sampling_rate: nil, scan_type: nil, selected: nil, title: nil, width: nil)
|
||||
@codec = codec
|
||||
@display_title = display_title
|
||||
|
||||
Reference in New Issue
Block a user